@snabcentr/common-lib 3.8.0 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var Gt = Object.defineProperty;
2
- var Wt = (i, r, e) => r in i ? Gt(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var s = (i, r, e) => Wt(i, typeof r != "symbol" ? r + "" : r, e);
1
+ var zt = Object.defineProperty;
2
+ var Wt = (n, r, e) => r in n ? zt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => Wt(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as gt } from "jwt-decode";
5
- import { merge as Ne, isNil as m, isEmpty as V, noop as R, mapValues as ft, isArray as Q, every as zt, split as jt, isString as _, startsWith as Yt, endsWith as Qt, includes as Vt, isFunction as qr, map as P, isObject as Xe, isDate as Ze, isError as zr, toLower as Jt, isPlainObject as Kt, isUndefined as Be, constant as Xt, toUpper as Zt, cloneDeep as es, forEach as rs, some as jr, round as mt, omitBy as yt } from "lodash-es";
5
+ import { merge as Ne, isNil as m, isEmpty as Q, noop as R, mapValues as ft, isArray as V, every as jt, split as Yt, isString as I, startsWith as mt, endsWith as Vt, includes as Qt, isFunction as qr, map as P, isObject as Ze, isDate as er, isError as Wr, toLower as Jt, isPlainObject as Kt, isUndefined as Be, constant as Xt, toUpper as Zt, cloneDeep as es, forEach as rs, some as jr, round as yt, omitBy as at } from "lodash-es";
6
6
  import { objectToCamel as Nr, objectToSnake as ts } from "ts-case-convert";
7
7
  import { defineStore as ue } from "pinia";
8
8
  import { ref as C, markRaw as ss, computed as b } from "vue";
9
- import { isAfter as Yr, parseISO as I, startOfToday as Ee, isValid as Qr, format as $, endOfMonth as x, addMonths as k, differenceInCalendarMonths as is, startOfMonth as H, getDate as Vr, getDaysInMonth as ns, endOfDay as B, startOfDay as re, setDate as os, startOfWeek as te, addWeeks as dr, differenceInCalendarDays as ze, addDays as se, subDays as je, addBusinessDays as cs, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as ls, startOfTomorrow as us, endOfYesterday as ps, startOfYesterday as hs, endOfToday as gs, startOfQuarter as Oe, endOfQuarter as Ge, addYears as pr, addQuarters as hr, subYears as gr, subQuarters as fr, subMonths as mr, subWeeks as Jr, addSeconds as fs } from "date-fns";
9
+ import { isAfter as Yr, parseISO as _, startOfToday as Ee, isValid as Vr, format as $, endOfMonth as x, addMonths as k, differenceInCalendarMonths as is, startOfMonth as H, getDate as Qr, getDaysInMonth as ns, endOfDay as B, startOfDay as re, setDate as os, startOfWeek as te, addWeeks as dr, differenceInCalendarDays as je, addDays as se, subDays as Ye, addBusinessDays as cs, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as ls, startOfTomorrow as us, endOfYesterday as ps, startOfYesterday as hs, endOfToday as gs, startOfQuarter as Oe, endOfQuarter as Ge, addYears as hr, addQuarters as gr, subYears as fr, subQuarters as mr, subMonths as yr, subWeeks as Jr, addSeconds as fs } from "date-fns";
10
10
  import ms, { CanceledError as ys } from "axios";
11
11
  class be {
12
12
  /**
@@ -111,7 +111,7 @@ class be {
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class at extends be {
114
+ class wt extends be {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,8 +151,8 @@ class at extends be {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = gt(e), n = new at(Nr(t));
155
- return n.resourceAccess = t.resource_access, n;
154
+ const t = gt(e), i = new wt(Nr(t));
155
+ return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
158
  class as {
@@ -230,7 +230,7 @@ class Cs {
230
230
  * Дополнительные параметры.
231
231
  */
232
232
  s(this, "additionalParams");
233
- var e, t, n, o;
233
+ var e, t, i, o;
234
234
  this.dsn = (r == null ? void 0 : r.dsn) ?? "", this.environment = (r == null ? void 0 : r.environment) ?? "production", this.ignoreErrors = (r == null ? void 0 : r.ignoreErrors) ?? [
235
235
  /Network\s{1,3}Error/,
236
236
  /Request\s{1,3}aborted/,
@@ -239,7 +239,7 @@ class Cs {
239
239
  allowedTargets: ((e = r == null ? void 0 : r.trace) == null ? void 0 : e.allowedTargets) ?? [/^\//],
240
240
  sampleRate: ((t = r == null ? void 0 : r.trace) == null ? void 0 : t.sampleRate) ?? 0
241
241
  }, this.replay = {
242
- replaysOnErrorSampleRate: ((n = r == null ? void 0 : r.replay) == null ? void 0 : n.replaysOnErrorSampleRate) ?? 0,
242
+ replaysOnErrorSampleRate: ((i = r == null ? void 0 : r.replay) == null ? void 0 : i.replaysOnErrorSampleRate) ?? 0,
243
243
  replaysSessionSampleRate: ((o = r == null ? void 0 : r.replay) == null ? void 0 : o.replaysSessionSampleRate) ?? 0
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
@@ -330,43 +330,43 @@ class Ds {
330
330
  * @inheritDoc
331
331
  */
332
332
  s(this, "numberPrecision");
333
- var e, t, n, o;
333
+ var e, t, i, o;
334
334
  this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new ws(r == null ? void 0 : r.http), this.deviceTypeByResolution = new as(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Cs({
335
335
  environment: this.environment,
336
336
  ...r == null ? void 0 : r.sentry
337
337
  }), 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 vs(r.websocket) : void 0, this.dateFormats = {
338
338
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
339
339
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
340
- uiDateWithTime: ((n = r == null ? void 0 : r.dateFormats) == null ? void 0 : n.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
340
+ uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
341
341
  }, this.numberPrecision = {
342
342
  priceCoefficient: ((o = r == null ? void 0 : r.numberPrecision) == null ? void 0 : o.priceCoefficient) ?? 7
343
343
  };
344
344
  }
345
345
  }
346
346
  const S = ue("common.config", () => {
347
- const i = C(new Ds());
347
+ const n = C(new Ds());
348
348
  return {
349
349
  /**
350
350
  * Конфигурационные данные приложения.
351
351
  */
352
- config: i,
352
+ config: n,
353
353
  /**
354
354
  * Получает конфигурацию приложения.
355
355
  *
356
356
  * @returns Конфигурация приложения.
357
357
  */
358
- getConfig: () => i.value,
358
+ getConfig: () => n.value,
359
359
  /**
360
360
  * Устанавливает конфигурацию приложения.
361
361
  *
362
362
  * @param appConfig Конфигурация приложения.
363
363
  */
364
364
  setConfig: (t) => {
365
- i.value = Ne(i.value, t);
365
+ n.value = Ne(n.value, t);
366
366
  }
367
367
  };
368
368
  });
369
- class Ye {
369
+ class Ve {
370
370
  /**
371
371
  * Возвращает актуальные и не просроченные данные из хранилища.
372
372
  *
@@ -385,8 +385,8 @@ class Ye {
385
385
  if (e)
386
386
  try {
387
387
  const t = JSON.parse(e);
388
- if (!t.availableFor || Yr(I(t.availableFor) || Ee(), /* @__PURE__ */ new Date())) {
389
- if (m(t.data) || V(t.data))
388
+ if (!t.availableFor || Yr(_(t.availableFor) || Ee(), /* @__PURE__ */ new Date())) {
389
+ if (m(t.data) || Q(t.data))
390
390
  throw new Error("Data is empty");
391
391
  return t.data;
392
392
  }
@@ -409,16 +409,16 @@ class Ye {
409
409
  static saveActualDataToStorage(r, e, t) {
410
410
  if (this.isLocalStorageAvailable())
411
411
  try {
412
- if (m(e) || V(e))
412
+ if (m(e) || Q(e))
413
413
  throw new Error("Data is empty");
414
- const n = JSON.stringify({
414
+ const i = JSON.stringify({
415
415
  availableFor: t,
416
416
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
417
417
  data: e
418
418
  });
419
- localStorage.setItem(r, n);
420
- } catch (n) {
421
- if (n instanceof DOMException && n.code === DOMException.QUOTA_EXCEEDED_ERR) {
419
+ localStorage.setItem(r, i);
420
+ } catch (i) {
421
+ if (i instanceof DOMException && i.code === DOMException.QUOTA_EXCEEDED_ERR) {
422
422
  this.clearOldData();
423
423
  try {
424
424
  const o = JSON.stringify({
@@ -457,10 +457,10 @@ class Ye {
457
457
  const t = localStorage.key(e);
458
458
  if (t)
459
459
  try {
460
- const n = localStorage.getItem(t);
461
- if (n) {
462
- const o = JSON.parse(n);
463
- o.availableFor && !Yr(I(o.availableFor) || Ee(), /* @__PURE__ */ new Date()) && r.push(t);
460
+ const i = localStorage.getItem(t);
461
+ if (i) {
462
+ const o = JSON.parse(i);
463
+ o.availableFor && !Yr(_(o.availableFor) || Ee(), /* @__PURE__ */ new Date()) && r.push(t);
464
464
  }
465
465
  } catch {
466
466
  r.push(t);
@@ -476,19 +476,19 @@ class Ye {
476
476
  }
477
477
  }
478
478
  }
479
- function Kr(i) {
479
+ function Kr(n) {
480
480
  try {
481
- const r = be.getJwtPayload(i);
481
+ const r = be.getJwtPayload(n);
482
482
  return new Date(r.exp * 1e3);
483
483
  } catch {
484
484
  return;
485
485
  }
486
486
  }
487
487
  const we = ue("common.auth_state_private", () => {
488
- const i = C(
488
+ const n = C(
489
489
  (() => {
490
490
  var u;
491
- const o = Ye.getActualDataFromStorage(
491
+ const o = Ve.getActualDataFromStorage(
492
492
  "sc.token"
493
493
  /* JwtToken */
494
494
  );
@@ -498,8 +498,8 @@ const we = ue("common.auth_state_private", () => {
498
498
  return c ? Promise.resolve(c) : void 0;
499
499
  })()
500
500
  ), r = C(void 0), e = C(void 0), t = ss(/* @__PURE__ */ new Map());
501
- function n() {
502
- e.value = void 0, m(i.value) || i.value.then((o) => {
501
+ function i() {
502
+ e.value = void 0, m(n.value) || n.value.then((o) => {
503
503
  const c = be.getJwtPayload(o);
504
504
  e.value = c.exp * 1e3 > Date.now() ? ft(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
505
505
  }).catch(R);
@@ -508,7 +508,7 @@ const we = ue("common.auth_state_private", () => {
508
508
  /**
509
509
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
510
510
  */
511
- jwtToken: i,
511
+ jwtToken: n,
512
512
  /**
513
513
  * Функция для обновления jwt-ключа доступа к системам.
514
514
  */
@@ -524,15 +524,15 @@ const we = ue("common.auth_state_private", () => {
524
524
  /**
525
525
  * Принудительно пересчитывает права доступа пользователя на основе текущего JWT токена.
526
526
  */
527
- recalculateUserPermissions: n
527
+ recalculateUserPermissions: i
528
528
  };
529
- }), yr = ue("common.auth_state", () => {
530
- const i = b(() => {
529
+ }), ze = ue("common.auth_state", () => {
530
+ const n = b(() => {
531
531
  const o = we();
532
532
  if (m(o.jwtToken) && !m(o.jwtTokenUpdater)) {
533
533
  const c = o.jwtTokenUpdater();
534
534
  o.jwtToken = c, c.then((u) => {
535
- o.jwtToken = Promise.resolve(u), Ye.saveActualDataToStorage("sc.token", u, Kr(u)), o.recalculateUserPermissions();
535
+ o.jwtToken = Promise.resolve(u), Ve.saveActualDataToStorage("sc.token", u, Kr(u)), o.recalculateUserPermissions();
536
536
  }).catch(R);
537
537
  }
538
538
  return o.jwtToken;
@@ -542,31 +542,31 @@ const we = ue("common.auth_state_private", () => {
542
542
  }
543
543
  function e(o) {
544
544
  const c = we();
545
- c.jwtToken = Promise.resolve(o), Ye.saveActualDataToStorage("sc.token", o, Kr(o)), c.recalculateUserPermissions();
545
+ c.jwtToken = Promise.resolve(o), Ve.saveActualDataToStorage("sc.token", o, Kr(o)), c.recalculateUserPermissions();
546
546
  }
547
547
  function t() {
548
548
  const o = we();
549
- o.jwtToken = void 0, o.userPermissions = void 0, Ye.saveActualDataToStorage("sc.token", void 0);
549
+ o.jwtToken = void 0, o.userPermissions = void 0, Ve.saveActualDataToStorage("sc.token", void 0);
550
550
  }
551
- function n(o) {
551
+ function i(o) {
552
552
  const c = we();
553
553
  !m(c.jwtToken) && m(c.userPermissions) && c.jwtToken.then((g) => {
554
554
  const a = be.getJwtPayload(g);
555
555
  c.userPermissions = a.exp * 1e3 > Date.now() ? ft(a.resourceAccess, (T) => (T == null ? void 0 : T.roles) ?? []) : void 0;
556
556
  }).catch(R);
557
- const u = Q(o) ? o.join(" && ") : o;
557
+ const u = V(o) ? o.join(" && ") : o;
558
558
  if (c.userPermissionsComputedRefs.has(u))
559
559
  return c.userPermissionsComputedRefs.get(u);
560
560
  const p = b(() => {
561
561
  const g = (a) => {
562
562
  var ye;
563
- const T = jt(a, ".");
563
+ const T = Yt(a, ".");
564
564
  if (T.length < 2)
565
565
  return !1;
566
566
  const [Ae, Se] = T, me = (ye = we().userPermissions) == null ? void 0 : ye[Ae];
567
- return Q(me) && me.includes(Se);
567
+ return V(me) && me.includes(Se);
568
568
  };
569
- return Q(o) ? zt(o, (a) => g(a)) : g(o);
569
+ return V(o) ? jt(o, (a) => g(a)) : g(o);
570
570
  });
571
571
  return c.userPermissionsComputedRefs.set(u, p), p;
572
572
  }
@@ -574,7 +574,7 @@ const we = ue("common.auth_state_private", () => {
574
574
  /**
575
575
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
576
576
  */
577
- jwtToken: i,
577
+ jwtToken: n,
578
578
  /**
579
579
  * Устанавливает механизм для обновления jwt-ключа доступа к системам.
580
580
  *
@@ -596,10 +596,10 @@ const we = ue("common.auth_state_private", () => {
596
596
  *
597
597
  * @param name Проверяемое право доступа или их список. Должны быть представлены в виде значения: <РЕСУРС>.<РОЛЬ>.
598
598
  */
599
- hasUserPermission: n
599
+ hasUserPermission: i
600
600
  };
601
601
  });
602
- var Qe = /* @__PURE__ */ ((i) => (i.Image = "image", i.Video = "video", i))(Qe || {});
602
+ var Qe = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Qe || {});
603
603
  class pe {
604
604
  /**
605
605
  * Инициализирует экземпляр класса {@link Identity}.
@@ -668,7 +668,7 @@ class Ar extends pe {
668
668
  return this.mediaType === Qe.Video;
669
669
  }
670
670
  }
671
- var Ve = /* @__PURE__ */ ((i) => (i.Draft = "draft", i.Published = "published", i.Scheduled = "scheduled", i))(Ve || {});
671
+ var Je = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Je || {});
672
672
  class O {
673
673
  /**
674
674
  * Преобразует значение даты из данных ответа в дату.
@@ -679,8 +679,8 @@ class O {
679
679
  static parse(r) {
680
680
  if (m(r))
681
681
  return;
682
- const e = _(r) ? I(r) : r;
683
- return Qr(e) ? e : void 0;
682
+ const e = I(r) ? _(r) : r;
683
+ return Vr(e) ? e : void 0;
684
684
  }
685
685
  /**
686
686
  * Возвращает дату в формате API либо `null`, если дата не задана или некорректна.
@@ -688,7 +688,7 @@ class O {
688
688
  * @param date Дата.
689
689
  */
690
690
  static toApiFormat(r) {
691
- return m(r) || !Qr(r) ? null : $(r, S().config.dateFormats.api);
691
+ return m(r) || !Vr(r) ? null : $(r, S().config.dateFormats.api);
692
692
  }
693
693
  /**
694
694
  * Возвращает период с датами начала и окончания в формате API.
@@ -699,7 +699,7 @@ class O {
699
699
  return { from: O.toApiFormat(r.from), to: O.toApiFormat(r.to) };
700
700
  }
701
701
  }
702
- class tr extends pe {
702
+ class sr extends pe {
703
703
  /**
704
704
  * Инициализирует экземпляр класса {@link CreatableIdentity}.
705
705
  *
@@ -715,7 +715,7 @@ class tr extends pe {
715
715
  this.createdAt = O.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
716
716
  }
717
717
  }
718
- class Fe extends tr {
718
+ class Ue extends sr {
719
719
  /**
720
720
  * Инициализирует экземпляр класса {@link BlogPostShortInfo}.
721
721
  *
@@ -735,7 +735,7 @@ class Fe extends tr {
735
735
  * @inheritDoc
736
736
  */
737
737
  s(this, "publishedAt");
738
- 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);
738
+ this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = Ue.parseDate(e == null ? void 0 : e.publishedAt);
739
739
  }
740
740
  /**
741
741
  * Возвращает состояние публикации статьи по дате её публикации.
@@ -743,7 +743,7 @@ class Fe extends tr {
743
743
  * @param publishedAt Дата и время публикации статьи.
744
744
  */
745
745
  static resolvePublicationStatus(e) {
746
- return m(e) ? Ve.Draft : e.getTime() > Date.now() ? Ve.Scheduled : Ve.Published;
746
+ return m(e) ? Je.Draft : e.getTime() > Date.now() ? Je.Scheduled : Je.Published;
747
747
  }
748
748
  /**
749
749
  * Возвращает описание ошибки символьного обозначения статьи либо пустую строку,
@@ -755,7 +755,7 @@ class Fe extends tr {
755
755
  * @param slug Символьное обозначение статьи.
756
756
  */
757
757
  static getSlugError(e) {
758
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Yt(e, "-") || Qt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Vt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
758
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : mt(e, "-") || Vt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Qt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
759
759
  }
760
760
  /**
761
761
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -763,16 +763,16 @@ class Fe extends tr {
763
763
  * @param value Значение даты.
764
764
  */
765
765
  static parseDate(e) {
766
- return m(e) ? null : _(e) ? I(e) : e;
766
+ return m(e) ? null : I(e) ? _(e) : e;
767
767
  }
768
768
  /**
769
769
  * Возвращает состояние публикации статьи.
770
770
  */
771
771
  getPublicationStatus() {
772
- return Fe.resolvePublicationStatus(this.publishedAt);
772
+ return Ue.resolvePublicationStatus(this.publishedAt);
773
773
  }
774
774
  }
775
- class ar extends Fe {
775
+ class ar extends Ue {
776
776
  /**
777
777
  * Инициализирует экземпляр класса {@link BlogPost}.
778
778
  *
@@ -829,7 +829,7 @@ class de {
829
829
  return Object.keys(this).forEach((e) => {
830
830
  const t = this[e];
831
831
  m(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
832
- _(t) && t.trim().length === 0 || qr(t.isNewRec) && t.isNewRec() || (r[e] = t);
832
+ I(t) && t.trim().length === 0 || qr(t.isNewRec) && t.isNewRec() || (r[e] = t);
833
833
  }), r;
834
834
  }
835
835
  }
@@ -848,7 +848,7 @@ class D {
848
848
  * Окончание периода.
849
849
  */
850
850
  s(this, "to");
851
- this.from = _(r == null ? void 0 : r.from) ? I(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = _(r == null ? void 0 : r.to) ? I(r.to) : (r == null ? void 0 : r.to) ?? null;
851
+ this.from = I(r == null ? void 0 : r.from) ? _(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = I(r == null ? void 0 : r.to) ? _(r.to) : (r == null ? void 0 : r.to) ?? null;
852
852
  }
853
853
  }
854
854
  class mi extends de {
@@ -921,13 +921,13 @@ class mi extends de {
921
921
  * задачей по унификации.
922
922
  */
923
923
  asClearRaw() {
924
- var t, n, o, c;
924
+ var t, i, o, c;
925
925
  const e = super.asClearRaw();
926
- return !((t = e == null ? void 0 : e.publishedAt) != null && t.from) && !((n = e == null ? void 0 : e.publishedAt) != null && n.to) && delete e.publishedAt, !((o = e == null ? void 0 : e.createdAt) != null && o.from) && !((c = e == null ? void 0 : e.createdAt) != null && c.to) && delete e.createdAt, e;
926
+ return !((t = e == null ? void 0 : e.publishedAt) != null && t.from) && !((i = e == null ? void 0 : e.publishedAt) != null && i.to) && delete e.publishedAt, !((o = e == null ? void 0 : e.createdAt) != null && o.from) && !((c = e == null ? void 0 : e.createdAt) != null && c.to) && delete e.createdAt, e;
927
927
  }
928
928
  }
929
- var W = /* @__PURE__ */ ((i) => (i.BASE_URL_REQUEST_INTERCEPTOR = "baseUrlRequestInterceptor", i.DEFAULT_REQUEST_INTERCEPTOR = "defaultRequestInterceptor", i.AUTH_REQUEST_INTERCEPTOR = "authRequestInterceptor", i.DATA_CONVERTER_REQUEST_INTERCEPTOR = "dataConverterRequestInterceptor", i.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR = "convertHttpErrorResponseInterceptor", i.CANCELED_RESPONSE_INTERCEPTOR = "canceledResponseInterceptor", i.AUTH_ERRORS_RESPONSE_INTERCEPTOR = "authErrorsResponseInterceptor", i.DATA_CONVERTER_RESPONSE_INTERCEPTOR = "dataConverterResponseInterceptor", i))(W || {});
930
- class F {
929
+ var z = /* @__PURE__ */ ((n) => (n.BASE_URL_REQUEST_INTERCEPTOR = "baseUrlRequestInterceptor", n.DEFAULT_REQUEST_INTERCEPTOR = "defaultRequestInterceptor", n.AUTH_REQUEST_INTERCEPTOR = "authRequestInterceptor", n.DATA_CONVERTER_REQUEST_INTERCEPTOR = "dataConverterRequestInterceptor", n.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR = "convertHttpErrorResponseInterceptor", n.CANCELED_RESPONSE_INTERCEPTOR = "canceledResponseInterceptor", n.AUTH_ERRORS_RESPONSE_INTERCEPTOR = "authErrorsResponseInterceptor", n.DATA_CONVERTER_RESPONSE_INTERCEPTOR = "dataConverterResponseInterceptor", n))(z || {});
930
+ class U {
931
931
  /**
932
932
  * Инициализирует экземпляр указанного класса.
933
933
  *
@@ -954,9 +954,9 @@ class F {
954
954
  * @throws TypeError Если вместо списка данных получены данные другого типа.
955
955
  */
956
956
  static instanceListInitializer(r, e) {
957
- if (!Q(e))
957
+ if (!V(e))
958
958
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
959
- return P(e, (t) => F.instanceInitializer(r, t));
959
+ return P(e, (t) => U.instanceInitializer(r, t));
960
960
  }
961
961
  }
962
962
  const w = class w {
@@ -989,7 +989,7 @@ const w = class w {
989
989
  */
990
990
  // eslint-disable-next-line class-methods-use-this
991
991
  s(this, "authRequestInterceptor", async (r) => {
992
- const e = yr().jwtToken, t = m(e) ? void 0 : await e;
992
+ const e = ze().jwtToken, t = m(e) ? void 0 : await e;
993
993
  return t && r.headers.set("Authorization", `Bearer ${t}`), r;
994
994
  });
995
995
  /**
@@ -1012,7 +1012,7 @@ const w = class w {
1012
1012
  return Promise.reject(r);
1013
1013
  e.__isRetryRequest = !0;
1014
1014
  try {
1015
- await w.refreshAccessToken();
1015
+ await w.isStaleUnauthorizedRequest(e) || await w.refreshAccessToken();
1016
1016
  } catch {
1017
1017
  return Promise.reject(r);
1018
1018
  }
@@ -1044,28 +1044,28 @@ const w = class w {
1044
1044
  Accept: "application/json",
1045
1045
  "Content-Type": "application/json"
1046
1046
  }
1047
- }), this.interceptorIds.request[W.DATA_CONVERTER_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1047
+ }), this.interceptorIds.request[z.DATA_CONVERTER_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1048
1048
  this.dataConverterRequestInterceptor,
1049
1049
  (r) => Promise.reject(r)
1050
- ), this.interceptorIds.request[W.AUTH_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1050
+ ), this.interceptorIds.request[z.AUTH_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1051
1051
  this.authRequestInterceptor,
1052
1052
  (r) => Promise.reject(r)
1053
- ), this.interceptorIds.request[W.DEFAULT_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1053
+ ), this.interceptorIds.request[z.DEFAULT_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1054
1054
  (r) => w.applyDefaultRequestHook(r),
1055
1055
  (r) => Promise.reject(r)
1056
- ), this.interceptorIds.request[W.BASE_URL_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1056
+ ), this.interceptorIds.request[z.BASE_URL_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1057
1057
  this.setBaseUrlRequestInterceptor,
1058
1058
  (r) => Promise.reject(r)
1059
- ), this.interceptorIds.response[W.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1059
+ ), this.interceptorIds.response[z.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1060
1060
  (r) => r,
1061
1061
  (r) => w.convertHttpErrorResponse(r)
1062
- ), this.interceptorIds.response[W.CANCELED_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1062
+ ), this.interceptorIds.response[z.CANCELED_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1063
1063
  (r) => r,
1064
1064
  this.canceledResponseInterceptor
1065
- ), this.interceptorIds.response[W.AUTH_ERRORS_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1065
+ ), this.interceptorIds.response[z.AUTH_ERRORS_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1066
1066
  (r) => r,
1067
1067
  this.authErrorsResponseInterceptors
1068
- ), this.interceptorIds.response[W.DATA_CONVERTER_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1068
+ ), this.interceptorIds.response[z.DATA_CONVERTER_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1069
1069
  this.dataConverterResponseInterceptor,
1070
1070
  (r) => Promise.reject(r)
1071
1071
  );
@@ -1094,7 +1094,7 @@ const w = class w {
1094
1094
  * @param value Проверяемое значение.
1095
1095
  */
1096
1096
  static canConvertCaseKeys(r) {
1097
- return Xe(r) ? !(r instanceof Blob || r instanceof FormData || r instanceof ArrayBuffer || Ze(r) || ArrayBuffer.isView(r)) : !1;
1097
+ return Ze(r) ? !(r instanceof Blob || r instanceof FormData || r instanceof ArrayBuffer || er(r) || ArrayBuffer.isView(r)) : !1;
1098
1098
  }
1099
1099
  /**
1100
1100
  * Приводит ключи данных к camelCase, если значение является обычным объектом или массивом.
@@ -1112,14 +1112,46 @@ const w = class w {
1112
1112
  static toSnakeCaseData(r) {
1113
1113
  return w.canConvertCaseKeys(r) ? ts(r) : r;
1114
1114
  }
1115
+ /**
1116
+ * Возвращает токен доступа из заголовка Authorization исходного запроса.
1117
+ *
1118
+ * @param request Данные запроса.
1119
+ */
1120
+ static getRequestAccessToken(r) {
1121
+ const e = r.headers.get("Authorization"), t = I(e) ? e : void 0, i = "Bearer ";
1122
+ if (m(t) || !mt(t, i))
1123
+ return;
1124
+ const o = t.slice(i.length);
1125
+ return o === "" ? void 0 : o;
1126
+ }
1127
+ /**
1128
+ * Проверяет, что 401 пришёл на токен, который уже заменён.
1129
+ *
1130
+ * Такой ответ нельзя считать поводом сбрасывать текущий токен: запрос ушёл со старым ключом, а в сторе уже лежит новый.
1131
+ *
1132
+ * @param request Данные запроса.
1133
+ */
1134
+ static async isStaleUnauthorizedRequest(r) {
1135
+ const e = w.getRequestAccessToken(r);
1136
+ if (m(e))
1137
+ return !1;
1138
+ const t = ze().jwtToken;
1139
+ if (m(t))
1140
+ return !1;
1141
+ try {
1142
+ return await t !== e;
1143
+ } catch {
1144
+ return !1;
1145
+ }
1146
+ }
1115
1147
  /**
1116
1148
  * Сбрасывает токен и запускает одно обновление на все параллельные ответы 401.
1117
1149
  */
1118
1150
  static refreshAccessToken() {
1119
1151
  if (!m(w.tokenRefreshPromise))
1120
1152
  return w.tokenRefreshPromise;
1121
- yr().invalidateJwtToken();
1122
- const e = yr().jwtToken ?? Promise.resolve();
1153
+ ze().invalidateJwtToken();
1154
+ const e = ze().jwtToken ?? Promise.resolve();
1123
1155
  return w.tokenRefreshPromise = e.finally(() => {
1124
1156
  w.tokenRefreshPromise = void 0;
1125
1157
  }), w.tokenRefreshPromise;
@@ -1140,7 +1172,7 @@ const w = class w {
1140
1172
  * @param type Тип данных, которыми оперирует метод.
1141
1173
  */
1142
1174
  static getInstance(r) {
1143
- return Object.prototype.hasOwnProperty.call(w.instances, r.name) || (w.instances[r.name] = F.simpleInstanceInitializer(r)), w.instances[r.name];
1175
+ return Object.prototype.hasOwnProperty.call(w.instances, r.name) || (w.instances[r.name] = U.simpleInstanceInitializer(r)), w.instances[r.name];
1144
1176
  }
1145
1177
  /**
1146
1178
  * Приводит данные об ошибке к форме ошибки HTTP запроса.
@@ -1151,12 +1183,12 @@ const w = class w {
1151
1183
  * @param error Данные об ошибке.
1152
1184
  */
1153
1185
  static toHttpResponseError(r) {
1154
- return Xe(r) && "status" in r ? r : {
1186
+ return Ze(r) && "status" in r ? r : {
1155
1187
  status: 0,
1156
1188
  statusText: "Invalid response data",
1157
- message: zr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1189
+ message: Wr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1158
1190
  headers: {},
1159
- rawError: zr(r) ? r : new Error(String(r))
1191
+ rawError: Wr(r) ? r : new Error(String(r))
1160
1192
  };
1161
1193
  }
1162
1194
  /**
@@ -1165,15 +1197,16 @@ const w = class w {
1165
1197
  * @param error Данные об ошибке.
1166
1198
  */
1167
1199
  static convertHttpErrorResponse(r) {
1200
+ var e, t;
1168
1201
  if (m(r) || !m(r.request) || !m(r.response)) {
1169
- const e = m(r) ? {} : r == null ? void 0 : r.response, t = w.toCamelCaseData(e == null ? void 0 : e.data);
1202
+ const i = m(r) ? {} : r == null ? void 0 : r.response;
1170
1203
  return Promise.reject({
1171
- status: (e == null ? void 0 : e.status) ?? 0,
1172
- statusText: (e == null ? void 0 : e.statusText) ?? "Unknown",
1173
- message: (t == null ? void 0 : t.message) ?? "Unknown Error. Probably network error.",
1174
- errors: t == null ? void 0 : t.errors,
1175
- headers: (e == null ? void 0 : e.headers) ?? {},
1176
- data: t,
1204
+ status: (i == null ? void 0 : i.status) ?? 0,
1205
+ statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
1206
+ message: ((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error.",
1207
+ errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
1208
+ headers: (i == null ? void 0 : i.headers) ?? {},
1209
+ data: i == null ? void 0 : i.data,
1177
1210
  rawError: r
1178
1211
  });
1179
1212
  }
@@ -1187,10 +1220,10 @@ const w = class w {
1187
1220
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1188
1221
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1189
1222
  */
1190
- request(r, e = void 0, t = {}, n = !1) {
1223
+ request(r, e = void 0, t = {}, i = !1) {
1191
1224
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1192
1225
  return o.catch((c) => {
1193
- (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, n);
1226
+ (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, i);
1194
1227
  }), o;
1195
1228
  }
1196
1229
  /**
@@ -1202,8 +1235,8 @@ const w = class w {
1202
1235
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1203
1236
  * @param signal Сигнал отмены запроса.
1204
1237
  */
1205
- get(r, e = {}, t = void 0, n = !1, o = void 0) {
1206
- return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, n);
1238
+ get(r, e = {}, t = void 0, i = !1, o = void 0) {
1239
+ return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, i);
1207
1240
  }
1208
1241
  /**
1209
1242
  * Выполняет get-запрос и возвращает список экземпляров указанного класса.
@@ -1215,12 +1248,12 @@ const w = class w {
1215
1248
  * @param signal Сигнал отмены запроса.
1216
1249
  */
1217
1250
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1218
- getTypedList(r, e, t = {}, n = !1, o = void 0) {
1251
+ getTypedList(r, e, t = {}, i = !1, o = void 0) {
1219
1252
  return this.get(
1220
1253
  e,
1221
1254
  t,
1222
- (c) => F.instanceListInitializer(r, c.data),
1223
- n,
1255
+ (c) => U.instanceListInitializer(r, c.data),
1256
+ i,
1224
1257
  o
1225
1258
  );
1226
1259
  }
@@ -1233,8 +1266,8 @@ const w = class w {
1233
1266
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1234
1267
  * @param signal Сигнал отмены запроса.
1235
1268
  */
1236
- getBlob(r, e = {}, t = void 0, n = !1, o = void 0) {
1237
- return this.request({ method: "GET", url: r, params: e, responseType: "blob", signal: o }, t, {}, n);
1269
+ getBlob(r, e = {}, t = void 0, i = !1, o = void 0) {
1270
+ return this.request({ method: "GET", url: r, params: e, responseType: "blob", signal: o }, t, {}, i);
1238
1271
  }
1239
1272
  /**
1240
1273
  * Выполняет patch-запрос с параметрами по умолчанию.
@@ -1246,8 +1279,8 @@ const w = class w {
1246
1279
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1247
1280
  * @param signal Сигнал отмены запроса.
1248
1281
  */
1249
- patch(r, e = {}, t = void 0, n = {}, o = !1, c = void 0) {
1250
- return this.request({ method: "PATCH", url: r, data: e, signal: c }, t, n, o);
1282
+ patch(r, e = {}, t = void 0, i = {}, o = !1, c = void 0) {
1283
+ return this.request({ method: "PATCH", url: r, data: e, signal: c }, t, i, o);
1251
1284
  }
1252
1285
  /**
1253
1286
  * Выполняет post-запрос с параметрами по умолчанию.
@@ -1259,8 +1292,8 @@ const w = class w {
1259
1292
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1260
1293
  * @param signal Сигнал отмены запроса.
1261
1294
  */
1262
- post(r, e = {}, t = void 0, n = {}, o = !1, c = void 0) {
1263
- return this.request({ method: "POST", url: r, data: e, signal: c }, t, n, o);
1295
+ post(r, e = {}, t = void 0, i = {}, o = !1, c = void 0) {
1296
+ return this.request({ method: "POST", url: r, data: e, signal: c }, t, i, o);
1264
1297
  }
1265
1298
  /**
1266
1299
  * Выполняет delete-запрос с параметрами по умолчанию.
@@ -1270,8 +1303,8 @@ const w = class w {
1270
1303
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1271
1304
  * @param signal Сигнал отмены запроса.
1272
1305
  */
1273
- delete(r, e = void 0, t = !1, n = void 0) {
1274
- return this.request({ method: "DELETE", url: r, signal: n }, e, {}, t);
1306
+ delete(r, e = void 0, t = !1, i = void 0) {
1307
+ return this.request({ method: "DELETE", url: r, signal: i }, e, {}, t);
1275
1308
  }
1276
1309
  };
1277
1310
  /**
@@ -1293,7 +1326,7 @@ s(w, "defaultRequestHook"), /**
1293
1326
  */
1294
1327
  s(w, "tokenRefreshPromise");
1295
1328
  let h = w;
1296
- var Er = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Er || {});
1329
+ var Er = /* @__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))(Er || {});
1297
1330
  class Xr {
1298
1331
  /**
1299
1332
  * Инициализирует экземпляр класса {@link FilterItem}.
@@ -1325,7 +1358,7 @@ class Xr {
1325
1358
  field: this.field,
1326
1359
  op: this.op
1327
1360
  };
1328
- if (Ze(this.value))
1361
+ if (er(this.value))
1329
1362
  e.value = $(this.value, r);
1330
1363
  else if (Kt(this.value)) {
1331
1364
  const t = this.value;
@@ -1358,7 +1391,7 @@ class ie {
1358
1391
  */
1359
1392
  s(this, "groups");
1360
1393
  var e, t;
1361
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new Xr(n))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((n) => new ie(n))) ?? [];
1394
+ 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 Xr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new ie(i))) ?? [];
1362
1395
  }
1363
1396
  /**
1364
1397
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1386,12 +1419,12 @@ class M extends h {
1386
1419
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
1387
1420
  * @param signal Сигнал отмены запроса.
1388
1421
  */
1389
- getPaginated(r, e, t, n, o, c, u, p = void 0) {
1422
+ getPaginated(r, e, t, i, o, c, u, p = void 0) {
1390
1423
  let g = {
1391
- page: (n == null ? void 0 : n.page) ?? 1,
1392
- perPage: (n == null ? void 0 : n.pageSize) ?? 10
1424
+ page: (i == null ? void 0 : i.page) ?? 1,
1425
+ perPage: (i == null ? void 0 : i.pageSize) ?? 10
1393
1426
  };
1394
- return e && (g.filters = JSON.stringify((e instanceof ie ? e : new ie(e)).toPrimitive())), V(t) || (g.sort = Q(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1427
+ return e && (g.filters = JSON.stringify((e instanceof ie ? e : new ie(e)).toPrimitive())), Q(t) || (g.sort = V(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1395
1428
  }
1396
1429
  /**
1397
1430
  * Получает пагинированный список экземпляров указанного класса.
@@ -1405,16 +1438,16 @@ class M extends h {
1405
1438
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
1406
1439
  * @param signal Сигнал отмены запроса.
1407
1440
  */
1408
- getTypedPaginated(r, e, t, n, o, c, u, p = void 0) {
1441
+ getTypedPaginated(r, e, t, i, o, c, u, p = void 0) {
1409
1442
  return this.getPaginated(
1410
1443
  e,
1411
1444
  t,
1412
- n,
1445
+ i,
1413
1446
  o,
1414
1447
  c,
1415
1448
  (g) => ({
1416
1449
  ...g.data,
1417
- data: F.instanceListInitializer(r, g.data.data)
1450
+ data: U.instanceListInitializer(r, g.data.data)
1418
1451
  }),
1419
1452
  u,
1420
1453
  p
@@ -1451,10 +1484,10 @@ class Sr extends M {
1451
1484
  * @see /doc/api/internal#/operations/api_internal_blog_get_list
1452
1485
  */
1453
1486
  getPostList(r, e, t) {
1454
- return this.getPaginated("/internal/blog", r, e, t, {}, (n) => ({
1455
- ...n.data,
1487
+ return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1488
+ ...i.data,
1456
1489
  // eslint-disable-next-line lodash/prefer-lodash-method
1457
- data: n.data.data.map((o) => new Fe(o))
1490
+ data: i.data.data.map((o) => new Ue(o))
1458
1491
  }));
1459
1492
  }
1460
1493
  /**
@@ -1492,7 +1525,7 @@ class Sr extends M {
1492
1525
  * @see /doc/api/internal#/operations/api_internal_blog_update
1493
1526
  */
1494
1527
  updatePost(r, e, t = {}) {
1495
- return this.patch(`/internal/blog/${r}`, Sr.preparePostSaveData(e), (n) => new ar(n.data), t);
1528
+ return this.patch(`/internal/blog/${r}`, Sr.preparePostSaveData(e), (i) => new ar(i.data), t);
1496
1529
  }
1497
1530
  /**
1498
1531
  * Удаляет статью блога.
@@ -1517,14 +1550,14 @@ class Sr extends M {
1517
1550
  *
1518
1551
  * @see /doc/api/internal#/operations/api_internal_blog_upload_media
1519
1552
  */
1520
- uploadMedia(r, e, t, n, o = {}) {
1553
+ uploadMedia(r, e, t, i, o = {}) {
1521
1554
  return this.request(
1522
1555
  {
1523
1556
  method: "POST",
1524
1557
  url: `/internal/blog/${r}/media`,
1525
1558
  data: { file: e, isCover: t ?? !1 },
1526
1559
  onUploadProgress: (c) => {
1527
- n && n(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1560
+ i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1528
1561
  }
1529
1562
  },
1530
1563
  (c) => new Ar(c.data),
@@ -1543,12 +1576,12 @@ class Sr extends M {
1543
1576
  *
1544
1577
  * @see /doc/api/internal#/operations/api_internal_blog_update_media
1545
1578
  */
1546
- updateMedia(r, e, t, n = {}) {
1579
+ updateMedia(r, e, t, i = {}) {
1547
1580
  return this.patch(
1548
1581
  `/internal/blog/${r}/media/${e}`,
1549
1582
  { isCover: t },
1550
1583
  (o) => new Ar(o.data),
1551
- n
1584
+ i
1552
1585
  );
1553
1586
  }
1554
1587
  /**
@@ -1583,10 +1616,10 @@ class N extends pe {
1583
1616
  * @inheritdoc
1584
1617
  */
1585
1618
  nameOrGuid() {
1586
- return V(this.name) ? this.guid : this.name;
1619
+ return Q(this.name) ? this.guid : this.name;
1587
1620
  }
1588
1621
  }
1589
- class sr extends N {
1622
+ class ir extends N {
1590
1623
  /**
1591
1624
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1592
1625
  *
@@ -1605,7 +1638,7 @@ class sr extends N {
1605
1638
  this.createdAt = O.parse(e == null ? void 0 : e.createdAt), this.updatedAt = O.parse(e == null ? void 0 : e.updatedAt);
1606
1639
  }
1607
1640
  }
1608
- class ir extends sr {
1641
+ class nr extends ir {
1609
1642
  /**
1610
1643
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1611
1644
  *
@@ -1639,7 +1672,7 @@ class q extends N {
1639
1672
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1640
1673
  }
1641
1674
  }
1642
- class Fr extends ir {
1675
+ class Ur extends nr {
1643
1676
  /**
1644
1677
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1645
1678
  *
@@ -1674,7 +1707,7 @@ class Fr extends ir {
1674
1707
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = O.parse(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);
1675
1708
  }
1676
1709
  }
1677
- class ve extends sr {
1710
+ class ve extends ir {
1678
1711
  /**
1679
1712
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1680
1713
  *
@@ -1693,7 +1726,7 @@ class ve extends sr {
1693
1726
  this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1694
1727
  }
1695
1728
  }
1696
- var wt = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(wt || {});
1729
+ var Ct = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ct || {});
1697
1730
  class v extends N {
1698
1731
  /**
1699
1732
  * Инициализирует экземпляр класса {@link Reference}.
@@ -1720,14 +1753,14 @@ class he extends v {
1720
1753
  static getRetailPriceCoefficient() {
1721
1754
  const r = new he({
1722
1755
  id: -2,
1723
- slug: wt.Retail,
1756
+ slug: Ct.Retail,
1724
1757
  name: "Розн. цена",
1725
1758
  guid: ""
1726
1759
  });
1727
1760
  return r.isNewRec = Xt(!0), r;
1728
1761
  }
1729
1762
  }
1730
- class Ur {
1763
+ class Fr {
1731
1764
  /**
1732
1765
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1733
1766
  *
@@ -1757,7 +1790,7 @@ class Ur {
1757
1790
  this.coefficient = new he(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;
1758
1791
  }
1759
1792
  }
1760
- class Ct {
1793
+ class vt {
1761
1794
  /**
1762
1795
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1763
1796
  *
@@ -1806,7 +1839,7 @@ class He extends v {
1806
1839
  * Координаты склада.
1807
1840
  */
1808
1841
  s(this, "coordinates");
1809
- 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((n) => new X(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ct(e == null ? void 0 : e.coordinates);
1842
+ 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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new vt(e == null ? void 0 : e.coordinates);
1810
1843
  }
1811
1844
  }
1812
1845
  class Rs {
@@ -1881,7 +1914,7 @@ class Zr extends N {
1881
1914
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1882
1915
  }
1883
1916
  }
1884
- class Ue extends N {
1917
+ class Fe extends N {
1885
1918
  /**
1886
1919
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1887
1920
  *
@@ -1896,7 +1929,7 @@ class Ue extends N {
1896
1929
  this.code = (e == null ? void 0 : e.code) ?? "";
1897
1930
  }
1898
1931
  }
1899
- class vt extends Ue {
1932
+ class Dt extends Fe {
1900
1933
  /**
1901
1934
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1902
1935
  *
@@ -1915,7 +1948,7 @@ class vt extends Ue {
1915
1948
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1916
1949
  }
1917
1950
  }
1918
- class Ps extends vt {
1951
+ class Ps extends Dt {
1919
1952
  /**
1920
1953
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1921
1954
  *
@@ -1953,7 +1986,7 @@ class Ts {
1953
1986
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1954
1987
  }
1955
1988
  }
1956
- class $r extends vt {
1989
+ class $r extends Dt {
1957
1990
  /**
1958
1991
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1959
1992
  *
@@ -1975,7 +2008,7 @@ class E extends Ps {
1975
2008
  * @param data Данные для первоначальной инициализации.
1976
2009
  */
1977
2010
  constructor(e) {
1978
- var n, o, c, u;
2011
+ var i, o, c, u;
1979
2012
  super(e);
1980
2013
  /**
1981
2014
  * Артикул производителя/поставщика.
@@ -2045,9 +2078,9 @@ class E extends Ps {
2045
2078
  * Список коэффициентов цен на продукт.
2046
2079
  */
2047
2080
  s(this, "priceCoefficients");
2048
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Zr(e.unit) : new Zr(), 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 = _(e == null ? void 0 : e.costDate) ? I(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((p) => new Rs(p))) ?? [], this.type = "product";
2081
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Zr(e.unit) : new Zr(), 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 = I(e == null ? void 0 : e.costDate) ? _(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 Rs(p))) ?? [], this.type = "product";
2049
2082
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
2050
- t && (this.category = new $r({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new $r(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Ts(p, S().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ur(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2083
+ t && (this.category = new $r({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new $r(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Ts(p, S().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Fr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2051
2084
  }
2052
2085
  /**
2053
2086
  * Возвращает признак, что это измеряемый товар.
@@ -2068,7 +2101,7 @@ class E extends Ps {
2068
2101
  return this.retailCostRub ?? this.costRub;
2069
2102
  }
2070
2103
  }
2071
- var Mr = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Mr || {});
2104
+ var Mr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Mr || {});
2072
2105
  class Pe extends E {
2073
2106
  /**
2074
2107
  * Инициализирует экземпляр класса {@link ClientProduct}.
@@ -2113,7 +2146,7 @@ class Pe extends E {
2113
2146
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2114
2147
  */
2115
2148
  s(this, "isFavorite");
2116
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Mr.Product, this.discount = e != null && e.discount ? new Fr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ve(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new he(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2149
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Mr.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ve(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new he(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2117
2150
  }
2118
2151
  }
2119
2152
  class ge extends $r {
@@ -2140,10 +2173,10 @@ class ge extends $r {
2140
2173
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2141
2174
  */
2142
2175
  s(this, "currencyRates");
2143
- 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, n]) => [Zt(t), n])) : void 0;
2176
+ 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]) => [Zt(t), i])) : void 0;
2144
2177
  }
2145
2178
  }
2146
- class Dt extends pe {
2179
+ class Rt extends pe {
2147
2180
  /**
2148
2181
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2149
2182
  *
@@ -2222,7 +2255,7 @@ class Dt extends pe {
2222
2255
  this.product = new Pe(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 && es(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;
2223
2256
  }
2224
2257
  }
2225
- let Hr = class extends Dt {
2258
+ let Hr = class extends Rt {
2226
2259
  /**
2227
2260
  * Инициализирует экземпляр класса {@link OrderItem}.
2228
2261
  *
@@ -2266,7 +2299,7 @@ let Hr = class extends Dt {
2266
2299
  * @inheritDoc
2267
2300
  */
2268
2301
  s(this, "currency");
2269
- 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 = Q(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new J(e.currency);
2302
+ 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 = V(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new J(e.currency);
2270
2303
  }
2271
2304
  };
2272
2305
  class Le {
@@ -2338,7 +2371,7 @@ class ai extends h {
2338
2371
  is_additional_sale: e.isAdditionalSale,
2339
2372
  ...e.configuratorParams
2340
2373
  },
2341
- (n) => new Le(n.data),
2374
+ (i) => new Le(i.data),
2342
2375
  t
2343
2376
  );
2344
2377
  }
@@ -2368,7 +2401,7 @@ class ai extends h {
2368
2401
  is_additional_sale: e.isAdditionalSale,
2369
2402
  ...e.configuratorParams
2370
2403
  },
2371
- (n) => new Le(n.data),
2404
+ (i) => new Le(i.data),
2372
2405
  t
2373
2406
  );
2374
2407
  }
@@ -2405,7 +2438,7 @@ class ai extends h {
2405
2438
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2406
2439
  }
2407
2440
  }
2408
- var bs = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(bs || {}), ds = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))(ds || {}), Rt = /* @__PURE__ */ ((i) => (i.Checkbox = "checkbox", i.Range = "range", i.Toggle = "toggle", i))(Rt || {});
2441
+ var bs = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(bs || {}), ds = /* @__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))(ds || {}), Pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(Pt || {});
2409
2442
  class Y extends ge {
2410
2443
  /**
2411
2444
  * Инициализирует экземпляр класса {@link Category}.
@@ -2413,7 +2446,7 @@ class Y extends ge {
2413
2446
  * @param data Данные для первоначальной инициализации.
2414
2447
  */
2415
2448
  constructor(e) {
2416
- var t, n;
2449
+ var t, i;
2417
2450
  super(e);
2418
2451
  /**
2419
2452
  * Данные о вложенных категориях.
@@ -2423,10 +2456,10 @@ class Y extends ge {
2423
2456
  * Список продуктов категории.
2424
2457
  */
2425
2458
  s(this, "products");
2426
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new E(o));
2459
+ 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 E(o));
2427
2460
  }
2428
2461
  }
2429
- class Pt {
2462
+ class Tt {
2430
2463
  /**
2431
2464
  * Инициализирует экземпляр класса {@link ContactLinks}.
2432
2465
  *
@@ -2444,9 +2477,9 @@ class Pt {
2444
2477
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2445
2478
  }
2446
2479
  }
2447
- class U extends v {
2480
+ class F extends v {
2448
2481
  }
2449
- class Br extends sr {
2482
+ class Br extends ir {
2450
2483
  /**
2451
2484
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2452
2485
  *
@@ -2474,12 +2507,12 @@ class Br extends sr {
2474
2507
  * @inheritDoc
2475
2508
  */
2476
2509
  s(this, "isRegionalDirector");
2477
- this.salesDirection = e != null && e.salesDirection ? new U(e.salesDirection) : new U(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Pt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2510
+ 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 Tt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2478
2511
  }
2479
2512
  }
2480
2513
  class Gr extends v {
2481
2514
  }
2482
- class Tt extends N {
2515
+ class bt extends N {
2483
2516
  /**
2484
2517
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2485
2518
  *
@@ -2502,7 +2535,7 @@ class Tt extends N {
2502
2535
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2503
2536
  }
2504
2537
  }
2505
- class nr extends N {
2538
+ class or extends N {
2506
2539
  /**
2507
2540
  * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
2508
2541
  *
@@ -2524,7 +2557,7 @@ class Z extends Br {
2524
2557
  * @param data Данные для первоначальной инициализации.
2525
2558
  */
2526
2559
  constructor(e) {
2527
- var t, n, o;
2560
+ var t, i, o;
2528
2561
  super(e);
2529
2562
  /**
2530
2563
  * Признак активности учетной записи менеджера.
@@ -2570,7 +2603,7 @@ class Z extends Br {
2570
2603
  * Дата и время последнего входа в систему.
2571
2604
  */
2572
2605
  s(this, "lastLoginAt");
2573
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new Tt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Gr(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (n = e == null ? void 0 : e.managerRegions) == null ? void 0 : n.map((c) => new nr(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = _(e == null ? void 0 : e.lastLoginAt) ? I(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2606
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new bt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Gr(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 or(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2574
2607
  }
2575
2608
  }
2576
2609
  class As extends ge {
@@ -2604,14 +2637,14 @@ class As extends ge {
2604
2637
  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 Z(e.manager) : void 0;
2605
2638
  }
2606
2639
  }
2607
- class er extends As {
2640
+ class rr extends As {
2608
2641
  /**
2609
2642
  * Инициализирует экземпляр класса {@link ClientCategory}.
2610
2643
  *
2611
2644
  * @param data Данные для первоначальной инициализации.
2612
2645
  */
2613
2646
  constructor(e) {
2614
- var t, n;
2647
+ var t, i;
2615
2648
  super(e);
2616
2649
  /**
2617
2650
  * Данные о вложенных категориях.
@@ -2621,10 +2654,10 @@ class er extends As {
2621
2654
  * Список продуктов категории.
2622
2655
  */
2623
2656
  s(this, "products");
2624
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new er(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new Pe(o));
2657
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new rr(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Pe(o));
2625
2658
  }
2626
2659
  }
2627
- class bt {
2660
+ class dt {
2628
2661
  /**
2629
2662
  * Инициализирует экземпляр класса {@link PriceCatalogableItem}.
2630
2663
  *
@@ -2642,7 +2675,7 @@ class bt {
2642
2675
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new he(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2643
2676
  }
2644
2677
  }
2645
- class dt extends bt {
2678
+ class At extends dt {
2646
2679
  /**
2647
2680
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2648
2681
  *
@@ -2652,7 +2685,7 @@ class dt extends bt {
2652
2685
  super(r);
2653
2686
  }
2654
2687
  }
2655
- class wr extends dt {
2688
+ class wr extends At {
2656
2689
  /**
2657
2690
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2658
2691
  *
@@ -2667,7 +2700,7 @@ class wr extends dt {
2667
2700
  this.productCategory = new ge(e == null ? void 0 : e.productCategory);
2668
2701
  }
2669
2702
  }
2670
- class Wr extends N {
2703
+ class zr extends N {
2671
2704
  /**
2672
2705
  * Инициализирует экземпляр класса {@link Curator}.
2673
2706
  *
@@ -2687,7 +2720,7 @@ class Wr extends N {
2687
2720
  * @inheritDoc
2688
2721
  */
2689
2722
  s(this, "curatedDirection");
2690
- this.photo = e.photo, this.contacts = new Pt(e.contacts), this.curatedDirection = new Gr(e.curatedDirection);
2723
+ this.photo = e.photo, this.contacts = new Tt(e.contacts), this.curatedDirection = new Gr(e.curatedDirection);
2691
2724
  }
2692
2725
  }
2693
2726
  class Te extends v {
@@ -2722,7 +2755,7 @@ class ee extends v {
2722
2755
  e && (this.region = new ne(e.region));
2723
2756
  }
2724
2757
  }
2725
- class At extends sr {
2758
+ class St extends ir {
2726
2759
  /**
2727
2760
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2728
2761
  *
@@ -2754,10 +2787,10 @@ class At extends sr {
2754
2787
  * Признак активности учетной записи пользователя.
2755
2788
  */
2756
2789
  s(this, "isActive");
2757
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new U(e.salesDirection) : void 0, this.lastLoginAt = _(e == null ? void 0 : e.lastLoginAt) ? I(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2790
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : void 0, this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2758
2791
  }
2759
2792
  }
2760
- class fe extends At {
2793
+ class fe extends St {
2761
2794
  /**
2762
2795
  * Инициализирует экземпляр класса {@link Client}.
2763
2796
  *
@@ -2765,7 +2798,7 @@ class fe extends At {
2765
2798
  */
2766
2799
  // eslint-disable-next-line sonarjs/cognitive-complexity
2767
2800
  constructor(e) {
2768
- var t, n;
2801
+ var t, i;
2769
2802
  super(e);
2770
2803
  /**
2771
2804
  * Направление продаж.
@@ -2803,10 +2836,10 @@ class fe extends At {
2803
2836
  * @inheritDoc
2804
2837
  */
2805
2838
  s(this, "curators");
2806
- this.salesDirection = new U(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ee(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 Br(o))) ?? [], this.curators = ((n = e == null ? void 0 : e.curators) == null ? void 0 : n.map((o) => new Wr(o))) ?? void 0;
2839
+ 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 ee(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 Br(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new zr(o))) ?? void 0;
2807
2840
  }
2808
2841
  }
2809
- class Ss extends tr {
2842
+ class Ss extends sr {
2810
2843
  /**
2811
2844
  * Инициализирует экземпляр класса {@link DeletableIdentity}.
2812
2845
  *
@@ -2841,7 +2874,7 @@ class xe extends Ss {
2841
2874
  this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new ve(e == null ? void 0 : e.priceTemplate);
2842
2875
  }
2843
2876
  }
2844
- class Cr extends dt {
2877
+ class Cr extends At {
2845
2878
  /**
2846
2879
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2847
2880
  *
@@ -2856,7 +2889,7 @@ class Cr extends dt {
2856
2889
  this.product = new E(e == null ? void 0 : e.product);
2857
2890
  }
2858
2891
  }
2859
- class St extends v {
2892
+ class $t extends v {
2860
2893
  }
2861
2894
  class De extends N {
2862
2895
  /**
@@ -2882,7 +2915,7 @@ class De extends N {
2882
2915
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2883
2916
  */
2884
2917
  s(this, "isFilterable");
2885
- this.type = new St(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;
2918
+ this.type = new $t(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;
2886
2919
  }
2887
2920
  }
2888
2921
  class Ce {
@@ -2964,16 +2997,16 @@ class wi {
2964
2997
  * только актуальные данные.
2965
2998
  */
2966
2999
  asClearRaw() {
2967
- var e, t, n, o;
3000
+ var e, t, i, o;
2968
3001
  const r = {};
2969
3002
  return Object.keys(this).forEach((c) => {
2970
3003
  const u = this[c];
2971
3004
  // eslint-disable-next-line prettier/prettier
2972
- m(u) || _(u) && u.trim().length === 0 || qr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2973
- }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
3005
+ m(u) || I(u) && u.trim().length === 0 || qr(u.isNewRec) && u.isNewRec() || (r[c] = u);
3006
+ }), !((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;
2974
3007
  }
2975
3008
  }
2976
- class $t extends bt {
3009
+ class kt extends dt {
2977
3010
  /**
2978
3011
  * Инициализирует экземпляр класса {@link ClientPriceCatalogableItem}.
2979
3012
  *
@@ -2992,7 +3025,7 @@ class $t extends bt {
2992
3025
  this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = O.parse(e == null ? void 0 : e.createdAt);
2993
3026
  }
2994
3027
  }
2995
- class vr extends $t {
3028
+ class vr extends kt {
2996
3029
  /**
2997
3030
  * Инициализирует экземпляр класса {@link ClientPriceProduct}.
2998
3031
  *
@@ -3007,7 +3040,7 @@ class vr extends $t {
3007
3040
  this.product = new E(e == null ? void 0 : e.product);
3008
3041
  }
3009
3042
  }
3010
- class et extends $t {
3043
+ class et extends kt {
3011
3044
  /**
3012
3045
  * Инициализирует экземпляр класса {@link ClientPriceCategory}.
3013
3046
  *
@@ -3195,7 +3228,7 @@ class Os {
3195
3228
  */
3196
3229
  s(this, "max");
3197
3230
  var e;
3198
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? Rt.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 ks(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3231
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? Pt.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new ks(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3199
3232
  }
3200
3233
  }
3201
3234
  class Ci extends h {
@@ -3224,9 +3257,9 @@ class Ci extends h {
3224
3257
  * @see /doc/api/internal#/operations/api_internal_price_export
3225
3258
  */
3226
3259
  // eslint-disable-next-line class-methods-use-this
3227
- getPriceExportLink(r = "csv", e = !1, t = void 0, n = void 0) {
3260
+ getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3228
3261
  let c = `${S().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3229
- return t && (c += `&category_id=${t}`), n && (c += `&client_id=${n}`), c;
3262
+ return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3230
3263
  }
3231
3264
  }
3232
3265
  class vi extends h {
@@ -3273,7 +3306,7 @@ class vi extends h {
3273
3306
  *
3274
3307
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_update
3275
3308
  */
3276
- updateCategoryPrices(r, e, t, n = !1) {
3309
+ updateCategoryPrices(r, e, t, i = !1) {
3277
3310
  var o;
3278
3311
  return this.request({
3279
3312
  method: "PATCH",
@@ -3282,7 +3315,7 @@ class vi extends h {
3282
3315
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3283
3316
  increase_percent: t.value
3284
3317
  },
3285
- params: n ? { recursively: !0 } : {}
3318
+ params: i ? { recursively: !0 } : {}
3286
3319
  });
3287
3320
  }
3288
3321
  /**
@@ -3416,11 +3449,11 @@ class vi extends h {
3416
3449
  * @see /doc/api/internal#/operations/api_internal_client_price_products_update
3417
3450
  */
3418
3451
  updateProductPrice(r, e, t) {
3419
- var n;
3452
+ var i;
3420
3453
  return this.patch(
3421
3454
  `/internal/clients/${r}/price/products/${e}`,
3422
3455
  {
3423
- price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3456
+ price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3424
3457
  increase_percent: t.value
3425
3458
  },
3426
3459
  (o) => new vr(o.data)
@@ -3529,12 +3562,12 @@ class Di extends h {
3529
3562
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3530
3563
  */
3531
3564
  attachTemplate(r, e, t) {
3532
- const n = S().config.dateFormats.api;
3565
+ const i = S().config.dateFormats.api;
3533
3566
  return this.post(
3534
3567
  `/internal/clients/${r}/price/templates/${e}`,
3535
3568
  t && {
3536
- startAt: t.startAt && $(t.startAt, n),
3537
- endAt: t.endAt && $(t.endAt, n)
3569
+ startAt: t.startAt && $(t.startAt, i),
3570
+ endAt: t.endAt && $(t.endAt, i)
3538
3571
  },
3539
3572
  (o) => new xe(o.data),
3540
3573
  {},
@@ -3562,13 +3595,13 @@ class Di extends h {
3562
3595
  *
3563
3596
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3564
3597
  */
3565
- changeTemplate(r, e, t, n) {
3598
+ changeTemplate(r, e, t, i) {
3566
3599
  const o = S().config.dateFormats.api;
3567
3600
  return this.patch(
3568
3601
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3569
- n && {
3570
- startAt: n.startAt && $(n.startAt, o),
3571
- endAt: n.endAt && $(n.endAt, o)
3602
+ i && {
3603
+ startAt: i.startAt && $(i.startAt, o),
3604
+ endAt: i.endAt && $(i.endAt, o)
3572
3605
  },
3573
3606
  (c) => new xe(c.data)
3574
3607
  );
@@ -3615,7 +3648,7 @@ class Ri extends h {
3615
3648
  showHidden: e,
3616
3649
  withNestedCategories: t
3617
3650
  },
3618
- (n) => new Y(n.data)
3651
+ (i) => new Y(i.data)
3619
3652
  );
3620
3653
  }
3621
3654
  /**
@@ -3642,7 +3675,7 @@ class Ri extends h {
3642
3675
  showHidden: t,
3643
3676
  withPriceCoefficients: e
3644
3677
  },
3645
- (n) => P(n.data, (o) => new E(o))
3678
+ (i) => P(i.data, (o) => new E(o))
3646
3679
  );
3647
3680
  }
3648
3681
  /**
@@ -3655,7 +3688,7 @@ class Ri extends h {
3655
3688
  getCategoryProductsCoefficients(r) {
3656
3689
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3657
3690
  const { data: t } = e;
3658
- return rs(t, (n) => n.map((o) => new Ur(o))), t;
3691
+ return rs(t, (i) => i.map((o) => new Fr(o))), t;
3659
3692
  });
3660
3693
  }
3661
3694
  /**
@@ -3665,11 +3698,11 @@ class Ri extends h {
3665
3698
  * @param limit Количество возвращаемых записей.
3666
3699
  */
3667
3700
  publicSimpleSearch(r, e = 10) {
3668
- return new Promise((t, n) => {
3701
+ return new Promise((t, i) => {
3669
3702
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3670
3703
  t(o.categories.map((c) => new Y(c)));
3671
3704
  }).catch((o) => {
3672
- n(o);
3705
+ i(o);
3673
3706
  });
3674
3707
  });
3675
3708
  }
@@ -3705,7 +3738,7 @@ class Pi extends M {
3705
3738
  return this.get(
3706
3739
  `/internal/catalog/products/${r}/coefficients`,
3707
3740
  {},
3708
- (e) => P(e.data, (t) => new Ur(t))
3741
+ (e) => P(e.data, (t) => new Fr(t))
3709
3742
  );
3710
3743
  }
3711
3744
  /**
@@ -3718,9 +3751,9 @@ class Pi extends M {
3718
3751
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3719
3752
  */
3720
3753
  getNewProducts(r, e, t = !0) {
3721
- const n = S().config.dateFormats.api;
3754
+ const i = S().config.dateFormats.api;
3722
3755
  return this.getTypedPaginated(E, "/internal/catalog/products/new", void 0, void 0, e, {
3723
- period: { from: $(r, n) },
3756
+ period: { from: $(r, i) },
3724
3757
  withPriceCoefficients: t
3725
3758
  });
3726
3759
  }
@@ -3731,11 +3764,11 @@ class Pi extends M {
3731
3764
  * @param limit Количество возвращаемых записей.
3732
3765
  */
3733
3766
  publicSimpleSearch(r, e = 10) {
3734
- return new Promise((t, n) => {
3767
+ return new Promise((t, i) => {
3735
3768
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3736
3769
  t(o.products.map((c) => new E(c)));
3737
3770
  }).catch((o) => {
3738
- n(o);
3771
+ i(o);
3739
3772
  });
3740
3773
  });
3741
3774
  }
@@ -3750,7 +3783,7 @@ class Ti extends h {
3750
3783
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3751
3784
  */
3752
3785
  getRootCategoriesList(r, e = !1) {
3753
- return this.getTypedList(er, "/internal/catalog/categories", {
3786
+ return this.getTypedList(rr, "/internal/catalog/categories", {
3754
3787
  clientId: r,
3755
3788
  showHidden: e
3756
3789
  });
@@ -3765,15 +3798,15 @@ class Ti extends h {
3765
3798
  *
3766
3799
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
3767
3800
  */
3768
- getCategoryData(r, e, t = !1, n = !1) {
3801
+ getCategoryData(r, e, t = !1, i = !1) {
3769
3802
  return this.get(
3770
3803
  `/internal/catalog/categories/${e}`,
3771
3804
  {
3772
3805
  clientId: r,
3773
3806
  showHidden: t,
3774
- withNestedCategories: n
3807
+ withNestedCategories: i
3775
3808
  },
3776
- (o) => new er(o.data)
3809
+ (o) => new rr(o.data)
3777
3810
  );
3778
3811
  }
3779
3812
  /**
@@ -3786,12 +3819,12 @@ class Ti extends h {
3786
3819
  *
3787
3820
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
3788
3821
  */
3789
- getCategoryProductsList(r, e, t = !0, n = !1) {
3822
+ getCategoryProductsList(r, e, t = !0, i = !1) {
3790
3823
  return this.get(
3791
3824
  `/internal/catalog/categories/${e}/products`,
3792
3825
  {
3793
3826
  client_id: r,
3794
- showHidden: n,
3827
+ showHidden: i,
3795
3828
  withPriceCoefficients: t
3796
3829
  },
3797
3830
  (o) => P(o.data, (c) => new Pe(c))
@@ -3815,7 +3848,7 @@ class bi extends M {
3815
3848
  clientId: e,
3816
3849
  withPriceCoefficients: t
3817
3850
  },
3818
- (n) => new Pe(n.data)
3851
+ (i) => new Pe(i.data)
3819
3852
  );
3820
3853
  }
3821
3854
  /**
@@ -3828,12 +3861,12 @@ class bi extends M {
3828
3861
  *
3829
3862
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3830
3863
  */
3831
- getNewProducts(r, e, t, n = !0) {
3864
+ getNewProducts(r, e, t, i = !0) {
3832
3865
  const o = S().config.dateFormats.api;
3833
3866
  return this.getTypedPaginated(Pe, "/internal/catalog/products/new", void 0, void 0, t, {
3834
3867
  clientId: r,
3835
3868
  period: { from: $(e, o) },
3836
- withPriceCoefficients: n
3869
+ withPriceCoefficients: i
3837
3870
  });
3838
3871
  }
3839
3872
  }
@@ -3883,7 +3916,7 @@ class di extends M {
3883
3916
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3884
3917
  */
3885
3918
  updateTemplate(r, e, t = {}) {
3886
- return this.patch(`/internal/price/templates/${r}`, e, (n) => new ve(n.data), t);
3919
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new ve(i.data), t);
3887
3920
  }
3888
3921
  /**
3889
3922
  * Удаляет данные о шаблоне прайс-листа.
@@ -3926,11 +3959,11 @@ class di extends M {
3926
3959
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_save
3927
3960
  */
3928
3961
  saveProductTemplatePrice(r, e, t) {
3929
- var n;
3962
+ var i;
3930
3963
  return this.post(
3931
3964
  `/internal/price/templates/${r}/products/${e}`,
3932
3965
  {
3933
- price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3966
+ price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3934
3967
  increase_percent: t.value
3935
3968
  },
3936
3969
  (o) => new Cr(o.data)
@@ -3983,7 +4016,7 @@ class di extends M {
3983
4016
  *
3984
4017
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
3985
4018
  */
3986
- saveCategoryTemplatePrice(r, e, t, n = !1) {
4019
+ saveCategoryTemplatePrice(r, e, t, i = !1) {
3987
4020
  var o;
3988
4021
  return this.request(
3989
4022
  {
@@ -3993,7 +4026,7 @@ class di extends M {
3993
4026
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3994
4027
  increase_percent: t.value
3995
4028
  },
3996
- params: n ? { recursively: !0 } : {}
4029
+ params: i ? { recursively: !0 } : {}
3997
4030
  },
3998
4031
  (c) => new wr(c.data)
3999
4032
  );
@@ -4098,7 +4131,7 @@ class Ai extends h {
4098
4131
  return this.patch(
4099
4132
  `/internal/price/roles/rules/categories/${r}`,
4100
4133
  e,
4101
- (t) => F.instanceListInitializer(rt, t.data)
4134
+ (t) => U.instanceListInitializer(rt, t.data)
4102
4135
  );
4103
4136
  }
4104
4137
  }
@@ -4129,7 +4162,7 @@ class Si extends M {
4129
4162
  ...t,
4130
4163
  type: e
4131
4164
  },
4132
- (n) => new De(n.data)
4165
+ (i) => new De(i.data)
4133
4166
  );
4134
4167
  }
4135
4168
  /**
@@ -4149,11 +4182,11 @@ class Si extends M {
4149
4182
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_update
4150
4183
  */
4151
4184
  updateProperty(r, e) {
4152
- const { typeId: t, ...n } = e;
4185
+ const { typeId: t, ...i } = e;
4153
4186
  return this.patch(
4154
4187
  `/internal/catalog/properties/${r}`,
4155
4188
  {
4156
- ...n,
4189
+ ...i,
4157
4190
  type: t
4158
4191
  },
4159
4192
  (o) => new De(o.data)
@@ -4196,7 +4229,7 @@ class Si extends M {
4196
4229
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
4197
4230
  */
4198
4231
  updateProductProperty(r, e, t) {
4199
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new Ce(n.data));
4232
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new Ce(i.data));
4200
4233
  }
4201
4234
  /**
4202
4235
  * Удаляет значение свойства продукта.
@@ -4342,7 +4375,7 @@ class Si extends M {
4342
4375
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4343
4376
  */
4344
4377
  updateCategoryProperty(r, e, t) {
4345
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new Ce(n.data));
4378
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new Ce(i.data));
4346
4379
  }
4347
4380
  /**
4348
4381
  * Удаляет значение свойства категории.
@@ -4481,7 +4514,7 @@ class Si extends M {
4481
4514
  return this.get(
4482
4515
  `/internal/catalog/categories/${r}/filters`,
4483
4516
  { recursively: e },
4484
- (t) => t.data.map((n) => new Os(n))
4517
+ (t) => t.data.map((i) => new Os(i))
4485
4518
  );
4486
4519
  }
4487
4520
  /**
@@ -4505,7 +4538,7 @@ class Si extends M {
4505
4538
  return this.patch(
4506
4539
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4507
4540
  t,
4508
- (n) => new tt(n.data)
4541
+ (i) => new tt(i.data)
4509
4542
  );
4510
4543
  }
4511
4544
  /**
@@ -4544,13 +4577,13 @@ class $i extends h {
4544
4577
  *
4545
4578
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
4546
4579
  */
4547
- getCategoryData(r, e, t = !1, n = !1) {
4580
+ getCategoryData(r, e, t = !1, i = !1) {
4548
4581
  return this.get(
4549
4582
  `/internal/catalog/categories/${e}`,
4550
4583
  {
4551
4584
  priceTemplateId: r,
4552
4585
  showHidden: t,
4553
- withNestedCategories: n
4586
+ withNestedCategories: i
4554
4587
  },
4555
4588
  (o) => new Y(o.data)
4556
4589
  );
@@ -4565,26 +4598,26 @@ class $i extends h {
4565
4598
  *
4566
4599
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
4567
4600
  */
4568
- getCategoryProductsList(r, e, t = !0, n = !1) {
4601
+ getCategoryProductsList(r, e, t = !0, i = !1) {
4569
4602
  return this.get(
4570
4603
  `/internal/catalog/categories/${e}/products`,
4571
4604
  {
4572
4605
  priceTemplateId: r,
4573
- showHidden: n,
4606
+ showHidden: i,
4574
4607
  withPriceCoefficients: t
4575
4608
  },
4576
4609
  (o) => P(o.data, (c) => new E(c))
4577
4610
  );
4578
4611
  }
4579
4612
  }
4580
- function st(i, r, e) {
4613
+ function st(n, r, e) {
4581
4614
  let t;
4582
- return i.some((n) => {
4583
- if (n.type === e && n.id === r)
4584
- return t = n, !0;
4585
- if (n.type === "product")
4615
+ return n.some((i) => {
4616
+ if (i.type === e && i.id === r)
4617
+ return t = i, !0;
4618
+ if (i.type === "product")
4586
4619
  return !1;
4587
- const o = n;
4620
+ const o = i;
4588
4621
  if (o.products && o.products.length > 0) {
4589
4622
  const c = st(o.products, r, e);
4590
4623
  if (c)
@@ -4598,16 +4631,16 @@ function st(i, r, e) {
4598
4631
  return !1;
4599
4632
  }), t;
4600
4633
  }
4601
- function it(i) {
4634
+ function it(n) {
4602
4635
  const r = [];
4603
- return i.forEach((e) => {
4636
+ return n.forEach((e) => {
4604
4637
  if (r.push(e), e.type === "category") {
4605
4638
  const t = e;
4606
4639
  t.products && t.products.length > 0 && r.push(...it(t.products)), t.categories && t.categories.length > 0 && r.push(...it(t.categories));
4607
4640
  }
4608
4641
  }), r;
4609
4642
  }
4610
- var Ls = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i.SalesDirection = "sales_direction", i.Managers = "managers", i.Curators = "curators", i))(Ls || {}), K = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(K || {});
4643
+ 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 || {}), K = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(K || {});
4611
4644
  class kr extends pe {
4612
4645
  /**
4613
4646
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -4639,7 +4672,7 @@ class kr extends pe {
4639
4672
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new J(e.currency));
4640
4673
  }
4641
4674
  }
4642
- class Or extends ir {
4675
+ class Or extends nr {
4643
4676
  /**
4644
4677
  * Инициализирует экземпляр класса {@link Contact}.
4645
4678
  *
@@ -4700,7 +4733,7 @@ class ce extends v {
4700
4733
  }
4701
4734
  class le extends v {
4702
4735
  }
4703
- class kt extends ir {
4736
+ class Ot extends nr {
4704
4737
  /**
4705
4738
  * Инициализирует экземпляр класса {@link ContragentBase}.
4706
4739
  *
@@ -4744,20 +4777,20 @@ class kt extends ir {
4744
4777
  if (e) {
4745
4778
  if (this.opf = new ce(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new le(e.partnerGroup)), e.contacts) {
4746
4779
  const t = [];
4747
- e.contacts.forEach((n) => {
4748
- t.push(new oe(n));
4780
+ e.contacts.forEach((i) => {
4781
+ t.push(new oe(i));
4749
4782
  }), this.contacts = t;
4750
4783
  }
4751
4784
  if (e.bankAccounts) {
4752
4785
  const t = [];
4753
- e.bankAccounts.forEach((n) => {
4754
- t.push(new kr(n));
4786
+ e.bankAccounts.forEach((i) => {
4787
+ t.push(new kr(i));
4755
4788
  }), this.bankAccounts = t;
4756
4789
  }
4757
4790
  }
4758
4791
  }
4759
4792
  }
4760
- class xs extends kt {
4793
+ class xs extends Ot {
4761
4794
  /**
4762
4795
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4763
4796
  *
@@ -4767,7 +4800,7 @@ class xs extends kt {
4767
4800
  super(r);
4768
4801
  }
4769
4802
  }
4770
- class Ot extends kt {
4803
+ class Lt extends Ot {
4771
4804
  /**
4772
4805
  * Инициализирует экземпляр класса {@link ContragentIc}.
4773
4806
  *
@@ -4810,7 +4843,7 @@ class Ot extends kt {
4810
4843
  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 ?? "");
4811
4844
  }
4812
4845
  }
4813
- class Lt extends Ot {
4846
+ class xt extends Lt {
4814
4847
  /**
4815
4848
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4816
4849
  *
@@ -4825,7 +4858,7 @@ class Lt extends Ot {
4825
4858
  e && (this.kpp = e.kpp ?? "");
4826
4859
  }
4827
4860
  }
4828
- class Is extends Lt {
4861
+ class Is extends xt {
4829
4862
  /**
4830
4863
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4831
4864
  *
@@ -4848,7 +4881,7 @@ class Is extends Lt {
4848
4881
  e && (this.registrationCountry = new Te(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4849
4882
  }
4850
4883
  }
4851
- class rr {
4884
+ class tr {
4852
4885
  /**
4853
4886
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4854
4887
  *
@@ -4857,9 +4890,9 @@ class rr {
4857
4890
  static createInstance(r) {
4858
4891
  switch (r.opf.slug) {
4859
4892
  case K.Ic:
4860
- return new Ot(r);
4861
- case K.UlR:
4862
4893
  return new Lt(r);
4894
+ case K.UlR:
4895
+ return new xt(r);
4863
4896
  case K.UlNr:
4864
4897
  return new Is(r);
4865
4898
  default:
@@ -4867,7 +4900,7 @@ class rr {
4867
4900
  }
4868
4901
  }
4869
4902
  }
4870
- class qe extends ir {
4903
+ class qe extends nr {
4871
4904
  /**
4872
4905
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4873
4906
  *
@@ -4904,13 +4937,13 @@ class qe extends ir {
4904
4937
  * Признак того, что указанный адрес является адресом транспортной компании.
4905
4938
  */
4906
4939
  s(this, "isTransportCompanyAddress");
4907
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ct(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new oe(n))) ?? [], 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;
4940
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new vt(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new oe(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;
4908
4941
  }
4909
4942
  }
4910
- class xt extends v {
4911
- }
4912
4943
  class It extends v {
4913
4944
  }
4945
+ class _t extends v {
4946
+ }
4914
4947
  class nt extends fe {
4915
4948
  /**
4916
4949
  * Инициализирует экземпляр класса {@link Client}.
@@ -4919,7 +4952,7 @@ class nt extends fe {
4919
4952
  */
4920
4953
  // eslint-disable-next-line sonarjs/cognitive-complexity
4921
4954
  constructor(e) {
4922
- var t, n, o, c;
4955
+ var t, i, o, c;
4923
4956
  super(e);
4924
4957
  /**
4925
4958
  * @inheritDoc
@@ -4961,7 +4994,7 @@ class nt extends fe {
4961
4994
  * @inheritDoc
4962
4995
  */
4963
4996
  s(this, "extraData");
4964
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => rr.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new le(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new oe(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new xt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new It(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4997
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => tr.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new oe(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new It(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new _t(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4965
4998
  }
4966
4999
  }
4967
5000
  class ki extends de {
@@ -4971,7 +5004,7 @@ class ki extends de {
4971
5004
  * @param data Данные для первоначальной инициализации.
4972
5005
  */
4973
5006
  constructor(e) {
4974
- var t, n, o, c, u, p, g, a;
5007
+ var t, i, o, c, u, p, g, a;
4975
5008
  super();
4976
5009
  /**
4977
5010
  * @inheritDoc
@@ -5077,7 +5110,7 @@ class ki extends de {
5077
5110
  * @inheritDoc
5078
5111
  */
5079
5112
  s(this, "noOrdersPeriod", new D());
5080
- 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((T) => new ee(T)), this.region = new ne(e == null ? void 0 : e.region), this.country = new Te(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 D(e == null ? void 0 : e.createdAt), this.lastLoginDate = new D(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((T) => new Z(T))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((T) => new Wr(T))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((T) => new U(T)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ce(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new X(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((T) => new le(T)), this.contact = new Or(e == null ? void 0 : e.contact), this.lastOrder = {
5113
+ 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((T) => new ee(T)), this.region = new ne(e == null ? void 0 : e.region), this.country = new Te(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 D(e == null ? void 0 : e.createdAt), this.lastLoginDate = new D(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((T) => new Z(T))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((T) => new zr(T))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((T) => new F(T)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ce(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new X(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((T) => new le(T)), this.contact = new Or(e == null ? void 0 : e.contact), this.lastOrder = {
5081
5114
  createdAt: new D((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
5082
5115
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
5083
5116
  isApproved: (a = e == null ? void 0 : e.lastOrder) == null ? void 0 : a.isApproved
@@ -5140,12 +5173,12 @@ class ki extends de {
5140
5173
  * @inheritDoc
5141
5174
  */
5142
5175
  asClearRaw() {
5143
- var t, n, o, c, u, p;
5176
+ var t, i, o, c, u, p;
5144
5177
  const e = super.asClearRaw();
5145
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.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;
5178
+ 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;
5146
5179
  }
5147
5180
  }
5148
- class _t extends tr {
5181
+ class qt extends sr {
5149
5182
  /**
5150
5183
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
5151
5184
  *
@@ -5167,7 +5200,7 @@ class _s extends N {
5167
5200
  * @param data Данные для первоначальной инициализации.
5168
5201
  */
5169
5202
  constructor(e) {
5170
- var t, n, o, c;
5203
+ var t, i, o, c;
5171
5204
  super(e);
5172
5205
  /**
5173
5206
  * @inheritDoc
@@ -5197,7 +5230,7 @@ class _s extends N {
5197
5230
  * @inheritDoc
5198
5231
  */
5199
5232
  s(this, "curators");
5200
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new oe(u))) ?? void 0, this.lastOrder = e.lastOrder ? new _t(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new le(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new U(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Br(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Wr(u))) ?? void 0;
5233
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new oe(u))) ?? void 0, this.lastOrder = e.lastOrder ? new qt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(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 Br(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new zr(u))) ?? void 0;
5201
5234
  }
5202
5235
  }
5203
5236
  class Dr extends pe {
@@ -5243,7 +5276,7 @@ class qs extends oe {
5243
5276
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Dr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Dr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Dr(t))));
5244
5277
  }
5245
5278
  }
5246
- class z extends M {
5279
+ class W extends M {
5247
5280
  /**
5248
5281
  * Преобразует данные о клиенте в данные требуемые для запроса.
5249
5282
  *
@@ -5254,7 +5287,7 @@ class z extends M {
5254
5287
  return {
5255
5288
  name: r.name,
5256
5289
  alternative_name: r.alternativeName,
5257
- partner_groups: r.partnerGroups.map((n) => n.id),
5290
+ partner_groups: r.partnerGroups.map((i) => i.id),
5258
5291
  phone: r.phone,
5259
5292
  email: r.email,
5260
5293
  city_id: r.city.id,
@@ -5273,7 +5306,7 @@ class z extends M {
5273
5306
  static transformContragentClientDataToRequest(r) {
5274
5307
  var c, u, p, g;
5275
5308
  let e;
5276
- const t = r, n = r, o = r;
5309
+ const t = r, i = r, o = r;
5277
5310
  switch (r.opf.slug) {
5278
5311
  case K.Ic:
5279
5312
  e = {
@@ -5294,20 +5327,20 @@ class z extends M {
5294
5327
  break;
5295
5328
  case K.UlR:
5296
5329
  e = {
5297
- opf: n.opf.slug,
5298
- name: n.name,
5299
- alternative_name: n.alternativeName,
5300
- partner_group_id: (u = n.partnerGroup) == null ? void 0 : u.id,
5301
- comment: n.comment,
5302
- inn: n.inn,
5303
- kpp: n.kpp,
5304
- okpo: n.okpo,
5305
- director_name: n.directorName,
5306
- director_position: n.directorPosition,
5307
- director_acts_on: n.directorActsOn,
5308
- legal_address: n.legalAddress,
5309
- postal_address: n.postalAddress,
5310
- actual_address: n.actualAddress
5330
+ opf: i.opf.slug,
5331
+ name: i.name,
5332
+ alternative_name: i.alternativeName,
5333
+ partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
5334
+ comment: i.comment,
5335
+ inn: i.inn,
5336
+ kpp: i.kpp,
5337
+ okpo: i.okpo,
5338
+ director_name: i.directorName,
5339
+ director_position: i.directorPosition,
5340
+ director_acts_on: i.directorActsOn,
5341
+ legal_address: i.legalAddress,
5342
+ postal_address: i.postalAddress,
5343
+ actual_address: i.actualAddress
5311
5344
  };
5312
5345
  break;
5313
5346
  case K.UlNr:
@@ -5346,7 +5379,7 @@ class z extends M {
5346
5379
  * @param deliveryAddress Данные об адресе доставки клиенту.
5347
5380
  */
5348
5381
  static transformClientDeliveryAddressToRequest(r) {
5349
- var t, n;
5382
+ var t, i;
5350
5383
  const e = {
5351
5384
  address: r.address,
5352
5385
  is_one_time: r.isOneTime ?? !1,
@@ -5355,7 +5388,7 @@ class z extends M {
5355
5388
  };
5356
5389
  return r.coordinates && (e.coordinates = {
5357
5390
  lat: (t = r.coordinates) == null ? void 0 : t.lat,
5358
- long: (n = r.coordinates) == null ? void 0 : n.long
5391
+ long: (i = r.coordinates) == null ? void 0 : i.long
5359
5392
  }), r.operatingHours && (e.operating_hours = {
5360
5393
  from: r.operatingHours.from,
5361
5394
  to: r.operatingHours.to
@@ -5395,8 +5428,8 @@ class z extends M {
5395
5428
  *
5396
5429
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5397
5430
  */
5398
- getClientsList(r, e, t, n, o = void 0) {
5399
- return this.getTypedPaginated(fe, "/internal/clients", r, e, t, n, void 0, o);
5431
+ getClientsList(r, e, t, i, o = void 0) {
5432
+ return this.getTypedPaginated(fe, "/internal/clients", r, e, t, i, void 0, o);
5400
5433
  }
5401
5434
  /**
5402
5435
  * Выполняет поиск клиентов по терму в строке.
@@ -5429,11 +5462,11 @@ class z extends M {
5429
5462
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_additional_data_for_clients_list
5430
5463
  */
5431
5464
  getAdditionalClientsData(r, e) {
5432
- const t = r.map((n) => n.id);
5465
+ const t = r.map((i) => i.id);
5433
5466
  return this.post(
5434
5467
  "/internal/clients/additional-data",
5435
5468
  { clients: t, requested_data_types: e },
5436
- (n) => F.instanceListInitializer(_s, n.data)
5469
+ (i) => U.instanceListInitializer(_s, i.data)
5437
5470
  );
5438
5471
  }
5439
5472
  /**
@@ -5453,7 +5486,7 @@ class z extends M {
5453
5486
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5454
5487
  */
5455
5488
  createClientCommonData(r, e = {}) {
5456
- return this.post("/internal/clients", z.transformClientDataToRequest(r), (t) => new nt(t.data), e);
5489
+ return this.post("/internal/clients", W.transformClientDataToRequest(r), (t) => new nt(t.data), e);
5457
5490
  }
5458
5491
  /**
5459
5492
  * Обновляет данные указанного клиента.
@@ -5463,7 +5496,7 @@ class z extends M {
5463
5496
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5464
5497
  */
5465
5498
  updateClientCommonData(r, e = {}) {
5466
- return this.patch(`/internal/clients/${r.id}`, z.transformClientDataToRequest(r), void 0, e);
5499
+ return this.patch(`/internal/clients/${r.id}`, W.transformClientDataToRequest(r), void 0, e);
5467
5500
  }
5468
5501
  /**
5469
5502
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -5487,7 +5520,7 @@ class z extends M {
5487
5520
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5488
5521
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5489
5522
  */
5490
- changeClientPassword(r, e, t, n = {}) {
5523
+ changeClientPassword(r, e, t, i = {}) {
5491
5524
  return this.patch(
5492
5525
  `/internal/clients/${r}`,
5493
5526
  {
@@ -5495,7 +5528,7 @@ class z extends M {
5495
5528
  password_confirmation: t
5496
5529
  },
5497
5530
  void 0,
5498
- n
5531
+ i
5499
5532
  );
5500
5533
  }
5501
5534
  /**
@@ -5525,7 +5558,7 @@ class z extends M {
5525
5558
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_attach
5526
5559
  */
5527
5560
  async attachClientToManagers(r, e) {
5528
- const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/attach`, { is_primary: n.isDefault }));
5561
+ const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/attach`, { is_primary: i.isDefault }));
5529
5562
  await Promise.all(t);
5530
5563
  }
5531
5564
  /**
@@ -5537,7 +5570,7 @@ class z extends M {
5537
5570
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_detach
5538
5571
  */
5539
5572
  async detachClientFromManagers(r, e) {
5540
- const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/detach`));
5573
+ const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/detach`));
5541
5574
  await Promise.all(t);
5542
5575
  }
5543
5576
  /**
@@ -5592,8 +5625,8 @@ class z extends M {
5592
5625
  createContragentClientData(r, e, t = {}) {
5593
5626
  return this.post(
5594
5627
  `/internal/clients/${r}/contragents`,
5595
- z.transformContragentClientDataToRequest(e),
5596
- (n) => rr.createInstance(n.data),
5628
+ W.transformContragentClientDataToRequest(e),
5629
+ (i) => tr.createInstance(i.data),
5597
5630
  t
5598
5631
  );
5599
5632
  }
@@ -5608,8 +5641,8 @@ class z extends M {
5608
5641
  updateContragentClientData(r, e, t = {}) {
5609
5642
  return this.patch(
5610
5643
  `/internal/clients/${r}/contragents/${e.id}`,
5611
- z.transformContragentClientDataToRequest(e),
5612
- (n) => rr.createInstance(n.data),
5644
+ W.transformContragentClientDataToRequest(e),
5645
+ (i) => tr.createInstance(i.data),
5613
5646
  t
5614
5647
  );
5615
5648
  }
@@ -5643,8 +5676,8 @@ class z extends M {
5643
5676
  createClientDeliveryAddress(r, e, t = {}) {
5644
5677
  return this.post(
5645
5678
  `/internal/clients/${r}/delivery-addresses`,
5646
- z.transformClientDeliveryAddressToRequest(e),
5647
- (n) => new qe(n.data),
5679
+ W.transformClientDeliveryAddressToRequest(e),
5680
+ (i) => new qe(i.data),
5648
5681
  t
5649
5682
  );
5650
5683
  }
@@ -5659,8 +5692,8 @@ class z extends M {
5659
5692
  updateClientDeliveryAddress(r, e, t = {}) {
5660
5693
  return this.patch(
5661
5694
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5662
- z.transformClientDeliveryAddressToRequest(e),
5663
- (n) => new qe(n.data),
5695
+ W.transformClientDeliveryAddressToRequest(e),
5696
+ (i) => new qe(i.data),
5664
5697
  t
5665
5698
  );
5666
5699
  }
@@ -5683,12 +5716,12 @@ class z extends M {
5683
5716
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5684
5717
  * @see /doc/api/internal#/Банковские реквизиты/api_internal_client_contragent_bank_accounts_create
5685
5718
  */
5686
- createContragentBankAccount(r, e, t, n = {}) {
5719
+ createContragentBankAccount(r, e, t, i = {}) {
5687
5720
  return this.post(
5688
5721
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5689
- z.transformClientContragentBankAccountToRequest(t),
5722
+ W.transformClientContragentBankAccountToRequest(t),
5690
5723
  (o) => new kr(o.data),
5691
- n
5724
+ i
5692
5725
  );
5693
5726
  }
5694
5727
  /**
@@ -5700,12 +5733,12 @@ class z extends M {
5700
5733
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5701
5734
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
5702
5735
  */
5703
- updateContragentBankAccount(r, e, t, n = {}) {
5736
+ updateContragentBankAccount(r, e, t, i = {}) {
5704
5737
  return this.patch(
5705
5738
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5706
- z.transformClientContragentBankAccountToRequest(t),
5739
+ W.transformClientContragentBankAccountToRequest(t),
5707
5740
  (o) => new kr(o.data),
5708
- n
5741
+ i
5709
5742
  );
5710
5743
  }
5711
5744
  /**
@@ -5760,7 +5793,7 @@ class z extends M {
5760
5793
  comment: e.comment,
5761
5794
  not_disturb: e.notDisturb
5762
5795
  },
5763
- (n) => new oe(n.data),
5796
+ (i) => new oe(i.data),
5764
5797
  t
5765
5798
  );
5766
5799
  }
@@ -5793,7 +5826,7 @@ class z extends M {
5793
5826
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5794
5827
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
5795
5828
  */
5796
- createContragentContact(r, e, t, n = {}) {
5829
+ createContragentContact(r, e, t, i = {}) {
5797
5830
  return this.createContact(
5798
5831
  r,
5799
5832
  t,
@@ -5806,7 +5839,7 @@ class z extends M {
5806
5839
  }
5807
5840
  ]
5808
5841
  },
5809
- n
5842
+ i
5810
5843
  );
5811
5844
  }
5812
5845
  /**
@@ -5840,7 +5873,7 @@ class z extends M {
5840
5873
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5841
5874
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
5842
5875
  */
5843
- createDeliveryAddressContact(r, e, t, n = {}) {
5876
+ createDeliveryAddressContact(r, e, t, i = {}) {
5844
5877
  return this.createContact(
5845
5878
  r,
5846
5879
  t,
@@ -5853,7 +5886,7 @@ class z extends M {
5853
5886
  }
5854
5887
  ]
5855
5888
  },
5856
- n
5889
+ i
5857
5890
  );
5858
5891
  }
5859
5892
  /**
@@ -5889,7 +5922,7 @@ class z extends M {
5889
5922
  * @param extraData Дополнительные данные
5890
5923
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5891
5924
  */
5892
- createContact(r, e, t, n = {}) {
5925
+ createContact(r, e, t, i = {}) {
5893
5926
  var c, u;
5894
5927
  const o = {
5895
5928
  name: e.name,
@@ -5897,7 +5930,7 @@ class z extends M {
5897
5930
  comment: e.comment,
5898
5931
  ...t
5899
5932
  };
5900
- 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 oe(p.data), n);
5933
+ 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 oe(p.data), i);
5901
5934
  }
5902
5935
  /**
5903
5936
  * Устанавливает признак основного контактного лица.
@@ -5934,8 +5967,8 @@ class Oi extends h {
5934
5967
  */
5935
5968
  checkPhoneIsBusy(r) {
5936
5969
  return new Promise((e, t) => {
5937
- this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((n) => {
5938
- e(!!n.isBusy);
5970
+ this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((i) => {
5971
+ e(!!i.isBusy);
5939
5972
  }).catch(t);
5940
5973
  });
5941
5974
  }
@@ -5959,10 +5992,10 @@ class Li {
5959
5992
  * Текущая версия приложения.
5960
5993
  */
5961
5994
  s(this, "version");
5962
- this.date = _(r == null ? void 0 : r.date) ? I(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5995
+ this.date = I(r == null ? void 0 : r.date) ? _(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";
5963
5996
  }
5964
5997
  }
5965
- var Ns = /* @__PURE__ */ ((i) => (i.Kozyrek = "kozyrek", i.Mosquitto = "mosquitto", i.Strip = "strip", i.MetalForDoors = "metal_for_doors", i.Sandwich = "sandwich", i.SandwichM2 = "sandwich_m2", i))(Ns || {});
5998
+ var Ns = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Ns || {});
5966
5999
  class xi extends h {
5967
6000
  /**
5968
6001
  * Возвращает настройки указанного конфигуратора для указанной категории.
@@ -5988,16 +6021,16 @@ class xi extends h {
5988
6021
  *
5989
6022
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_products_get
5990
6023
  */
5991
- searchProduct(r, e, t, n = {}) {
6024
+ searchProduct(r, e, t, i = {}) {
5992
6025
  var o;
5993
6026
  return this.request(
5994
6027
  {
5995
6028
  method: "GET",
5996
6029
  url: `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
5997
- params: { client_id: e, ...t }
6030
+ params: { params: t, client_id: e }
5998
6031
  },
5999
6032
  (c) => new E(c.data),
6000
- n
6033
+ i
6001
6034
  );
6002
6035
  }
6003
6036
  /**
@@ -6013,7 +6046,7 @@ class xi extends h {
6013
6046
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_template_create
6014
6047
  */
6015
6048
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6016
- createTemplate(r, e, t, n = {}) {
6049
+ createTemplate(r, e, t, i = {}) {
6017
6050
  var o;
6018
6051
  return this.post(
6019
6052
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/template?client_id=${e}`,
@@ -6021,7 +6054,7 @@ class xi extends h {
6021
6054
  // eslint-disable-next-line lodash/prefer-noop, @typescript-eslint/no-empty-function
6022
6055
  () => {
6023
6056
  },
6024
- n
6057
+ i
6025
6058
  );
6026
6059
  }
6027
6060
  /**
@@ -6035,8 +6068,8 @@ class xi extends h {
6035
6068
  */
6036
6069
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6037
6070
  removeTemplate(r, e, t) {
6038
- var n;
6039
- return this.delete(`internal/catalog/categories/${r.id}/configurators/${(n = r.properties) == null ? void 0 : n.configurator}/template/${t}?client_id=${e}`);
6071
+ var i;
6072
+ return this.delete(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template/${t}?client_id=${e}`);
6040
6073
  }
6041
6074
  /**
6042
6075
  * Выполняет расчет, через указанный конфигуратор с переданными параметрами.
@@ -6048,8 +6081,8 @@ class xi extends h {
6048
6081
  * @see /doc/api/internal#/Каталог/api_public_catalog_categories_category_configurator_calculate
6049
6082
  */
6050
6083
  calculate(r, e, t) {
6051
- var n;
6052
- return this.get(`internal/catalog/categories/${r.id}/configurators/${(n = r.properties) == null ? void 0 : n.configurator}/calculate`, {
6084
+ var i;
6085
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/calculate`, {
6053
6086
  client_id: e,
6054
6087
  ...t
6055
6088
  });
@@ -6139,8 +6172,8 @@ class y {
6139
6172
  * @param shift Смещение в декадах, может быть отрицательным.
6140
6173
  */
6141
6174
  static shiftDecadeInterval(r, e) {
6142
- const [t, n] = y.shiftedDecadeBounds(r, e);
6143
- return { from: t, to: n };
6175
+ const [t, i] = y.shiftedDecadeBounds(r, e);
6176
+ return { from: t, to: i };
6144
6177
  }
6145
6178
  /**
6146
6179
  * Возвращает начало полугодия, в которое попадает указанная дата.
@@ -6177,7 +6210,7 @@ class y {
6177
6210
  * @param date Опорная дата.
6178
6211
  */
6179
6212
  static intervalTillSameDate(r, e, t) {
6180
- const n = is(H(t), H(r)), o = H(k(e, n)), c = Math.min(Vr(t), ns(o));
6213
+ const i = is(H(t), H(r)), o = H(k(e, i)), c = Math.min(Qr(t), ns(o));
6181
6214
  return { from: re(e), to: B(os(o, c)) };
6182
6215
  }
6183
6216
  /**
@@ -6187,8 +6220,8 @@ class y {
6187
6220
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
6188
6221
  */
6189
6222
  static weekTillSameWeekday(r, e) {
6190
- const t = te(dr(r, e), { weekStartsOn: 1 }), n = ze(r, te(r, { weekStartsOn: 1 }));
6191
- return { from: t, to: B(se(t, n)) };
6223
+ const t = te(dr(r, e), { weekStartsOn: 1 }), i = je(r, te(r, { weekStartsOn: 1 }));
6224
+ return { from: t, to: B(se(t, i)) };
6192
6225
  }
6193
6226
  /**
6194
6227
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -6198,8 +6231,8 @@ class y {
6198
6231
  * @param shift Смещение в декадах, может быть отрицательным.
6199
6232
  */
6200
6233
  static decadeTillSameDayNumber(r, e) {
6201
- const [t] = y.shiftedDecadeBounds(r, 0), n = ze(r, t) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = ze(c, o) + 1;
6202
- return { from: o, to: B(se(o, Math.min(n, u) - 1)) };
6234
+ const [t] = y.shiftedDecadeBounds(r, 0), i = je(r, t) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = je(c, o) + 1;
6235
+ return { from: o, to: B(se(o, Math.min(i, u) - 1)) };
6203
6236
  }
6204
6237
  /**
6205
6238
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6208,31 +6241,31 @@ class y {
6208
6241
  * @param shift Смещение в декадах, может быть отрицательным.
6209
6242
  */
6210
6243
  static shiftedDecadeBounds(r, e) {
6211
- const t = Vr(r);
6212
- let n = 2;
6213
- t <= 10 ? n = 0 : t <= 20 && (n = 1);
6214
- const o = n + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = H(k(r, c)), g = se(p, u * 10), a = u === 2 ? x(p) : B(se(g, 9));
6244
+ const t = Qr(r);
6245
+ let i = 2;
6246
+ t <= 10 ? i = 0 : t <= 20 && (i = 1);
6247
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = H(k(r, c)), g = se(p, u * 10), a = u === 2 ? x(p) : B(se(g, 9));
6215
6248
  return [g, a];
6216
6249
  }
6217
6250
  }
6218
- function qi(i) {
6219
- return $(je(Ee(), i), "yyyy-MM-dd");
6251
+ function qi(n) {
6252
+ return $(Ye(Ee(), n), "yyyy-MM-dd");
6220
6253
  }
6221
- function Fs(i, r) {
6222
- const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(i));
6254
+ function Us(n, r) {
6255
+ const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6223
6256
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6224
6257
  }
6225
- function Ni(i) {
6226
- const r = I(i), e = ze(Ee(), r);
6258
+ function Ni(n) {
6259
+ const r = _(n), e = je(Ee(), r);
6227
6260
  switch (!0) {
6228
6261
  case e === 0:
6229
6262
  return "Сегодня";
6230
6263
  case e === 1:
6231
6264
  return "Вчера";
6232
6265
  case e < 0:
6233
- return i;
6266
+ return n;
6234
6267
  default:
6235
- return `${e} ${Fs(e, ["день", "дня", "дней"])} назад`;
6268
+ return `${e} ${Us(e, ["день", "дня", "дней"])} назад`;
6236
6269
  }
6237
6270
  }
6238
6271
  class Ei {
@@ -6242,7 +6275,7 @@ class Ei {
6242
6275
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6243
6276
  */
6244
6277
  static defaultDateRanges(r) {
6245
- const e = cs(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), n = ae(r === void 0 ? t : new Date(r, 0, 1)), o = $e(n);
6278
+ const e = cs(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ae(r === void 0 ? t : new Date(r, 0, 1)), o = $e(i);
6246
6279
  return {
6247
6280
  // 'Следующий рабочий день' - это значение по-умолчанию
6248
6281
  nextWorkingDay: { label: "Следующий рабочий день", from: re(e), to: B(e) },
@@ -6251,16 +6284,16 @@ class Ei {
6251
6284
  tomorrow: { label: "Завтра", from: us(), to: ls() },
6252
6285
  currentWeek: { label: "Неделя", from: te(t, { weekStartsOn: 1 }), to: ke(t, { weekStartsOn: 1 }) },
6253
6286
  currentMonth: { label: "Месяц", from: H(t), to: x(t) },
6254
- oneMonth: { label: "1 месяц", from: n, to: x(n) },
6255
- threeMonths: { label: "3 месяца", from: n, to: x(k(n, 2)) },
6256
- nineMonths: { label: "9 месяцев", from: n, to: x(k(n, 8)) },
6257
- firstQuarter: { label: "I квартал", from: n, to: x(k(n, 2)) },
6258
- secondQuarter: { label: "II квартал", from: k(n, 3), to: x(k(n, 5)) },
6259
- thirdQuarter: { label: "III квартал", from: k(n, 6), to: x(k(n, 8)) },
6260
- fourthQuarter: { label: "IV квартал", from: k(n, 9), to: x(k(n, 11)) },
6261
- firstHalfYear: { label: "I полугодие", from: n, to: x(k(n, 5)) },
6262
- secondHalfYear: { label: "II полугодие", from: k(n, 6), to: o },
6263
- currentYear: { label: "12 месяцев", from: n, to: o }
6287
+ oneMonth: { label: "1 месяц", from: i, to: x(i) },
6288
+ threeMonths: { label: "3 месяца", from: i, to: x(k(i, 2)) },
6289
+ nineMonths: { label: "9 месяцев", from: i, to: x(k(i, 8)) },
6290
+ firstQuarter: { label: "I квартал", from: i, to: x(k(i, 2)) },
6291
+ secondQuarter: { label: "II квартал", from: k(i, 3), to: x(k(i, 5)) },
6292
+ thirdQuarter: { label: "III квартал", from: k(i, 6), to: x(k(i, 8)) },
6293
+ fourthQuarter: { label: "IV квартал", from: k(i, 9), to: x(k(i, 11)) },
6294
+ firstHalfYear: { label: "I полугодие", from: i, to: x(k(i, 5)) },
6295
+ secondHalfYear: { label: "II полугодие", from: k(i, 6), to: o },
6296
+ currentYear: { label: "12 месяцев", from: i, to: o }
6264
6297
  };
6265
6298
  }
6266
6299
  /**
@@ -6271,10 +6304,10 @@ class Ei {
6271
6304
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6272
6305
  */
6273
6306
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
6274
- const e = { weekStartsOn: 1 }, t = re(r), n = B(r), o = y.decadeInterval(r), c = H(r), u = Oe(r), p = y.startOfHalfYear(r), g = ae(r), a = y.addHalfYears(r, -1), T = y.addHalfYears(r, 1);
6307
+ const e = { weekStartsOn: 1 }, t = re(r), i = B(r), o = y.decadeInterval(r), c = H(r), u = Oe(r), p = y.startOfHalfYear(r), g = ae(r), a = y.addHalfYears(r, -1), T = y.addHalfYears(r, 1);
6275
6308
  return {
6276
- yesterday: { label: "Вчера", group: "day", from: re(je(r, 1)), to: B(je(r, 1)) },
6277
- today: { label: "Сегодня", group: "day", from: t, to: n },
6309
+ yesterday: { label: "Вчера", group: "day", from: re(Ye(r, 1)), to: B(Ye(r, 1)) },
6310
+ today: { label: "Сегодня", group: "day", from: t, to: i },
6278
6311
  tomorrow: { label: "Завтра", group: "day", from: re(se(r, 1)), to: B(se(r, 1)) },
6279
6312
  lastWeek: { label: "Прошлая неделя", group: "week", from: te(Jr(r, 1), e), to: ke(Jr(r, 1), e) },
6280
6313
  thisWeek: { label: "Эта неделя", group: "week", from: te(r, e), to: ke(r, e) },
@@ -6282,12 +6315,12 @@ class Ei {
6282
6315
  lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
6283
6316
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6284
6317
  nextTenDays: { label: "Следующая декада", group: "decade", ...y.shiftDecadeInterval(r, 1) },
6285
- lastMonth: { label: "Прошлый месяц", group: "month", from: H(mr(r, 1)), to: x(mr(r, 1)) },
6318
+ lastMonth: { label: "Прошлый месяц", group: "month", from: H(yr(r, 1)), to: x(yr(r, 1)) },
6286
6319
  thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6287
6320
  nextMonth: { label: "Следующий месяц", group: "month", from: H(k(r, 1)), to: x(k(r, 1)) },
6288
- lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Oe(fr(r, 1)), to: Ge(fr(r, 1)) },
6321
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Oe(mr(r, 1)), to: Ge(mr(r, 1)) },
6289
6322
  thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Ge(r) },
6290
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: Oe(hr(r, 1)), to: Ge(hr(r, 1)) },
6323
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Oe(gr(r, 1)), to: Ge(gr(r, 1)) },
6291
6324
  lastHalfYear: {
6292
6325
  label: "Прошлое полугодие",
6293
6326
  group: "halfYear",
@@ -6296,15 +6329,15 @@ class Ei {
6296
6329
  },
6297
6330
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: y.endOfHalfYear(r) },
6298
6331
  nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: y.startOfHalfYear(T), to: y.endOfHalfYear(T) },
6299
- lastYear: { label: "Прошлый год", group: "year", from: ae(gr(r, 1)), to: $e(gr(r, 1)) },
6332
+ lastYear: { label: "Прошлый год", group: "year", from: ae(fr(r, 1)), to: $e(fr(r, 1)) },
6300
6333
  thisYear: { label: "Этот год", group: "year", from: g, to: $e(r) },
6301
- nextYear: { label: "Следующий год", group: "year", from: ae(pr(r, 1)), to: $e(pr(r, 1)) },
6302
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: te(r, e), to: n },
6303
- fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: n },
6304
- fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: n },
6305
- fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: n },
6306
- fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: n },
6307
- fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: n },
6334
+ nextYear: { label: "Следующий год", group: "year", from: ae(hr(r, 1)), to: $e(hr(r, 1)) },
6335
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: te(r, e), to: i },
6336
+ fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6337
+ fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6338
+ fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6339
+ fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6340
+ fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6308
6341
  tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: ke(r, e) },
6309
6342
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6310
6343
  tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
@@ -6322,13 +6355,13 @@ class Ei {
6322
6355
  label: "Прошлый месяц, до такой же даты",
6323
6356
  group: "other",
6324
6357
  section: "lastTillSame",
6325
- ...y.intervalTillSameDate(c, H(mr(r, 1)), r)
6358
+ ...y.intervalTillSameDate(c, H(yr(r, 1)), r)
6326
6359
  },
6327
6360
  lastQuarterTillSameDate: {
6328
6361
  label: "Прошлый квартал, до такой же даты",
6329
6362
  group: "other",
6330
6363
  section: "lastTillSame",
6331
- ...y.intervalTillSameDate(u, Oe(fr(r, 1)), r)
6364
+ ...y.intervalTillSameDate(u, Oe(mr(r, 1)), r)
6332
6365
  },
6333
6366
  lastHalfYearTillSameDate: {
6334
6367
  label: "Прошлое полугодие, до такой же даты",
@@ -6340,7 +6373,7 @@ class Ei {
6340
6373
  label: "Прошлый год, до такой же даты",
6341
6374
  group: "other",
6342
6375
  section: "lastTillSame",
6343
- ...y.intervalTillSameDate(g, ae(gr(r, 1)), r)
6376
+ ...y.intervalTillSameDate(g, ae(fr(r, 1)), r)
6344
6377
  },
6345
6378
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...y.weekTillSameWeekday(r, 1) },
6346
6379
  nextTenDaysTillSameDayNumber: {
@@ -6359,7 +6392,7 @@ class Ei {
6359
6392
  label: "Следующий квартал, до такой же даты",
6360
6393
  group: "other",
6361
6394
  section: "nextTillSame",
6362
- ...y.intervalTillSameDate(u, Oe(hr(r, 1)), r)
6395
+ ...y.intervalTillSameDate(u, Oe(gr(r, 1)), r)
6363
6396
  },
6364
6397
  nextHalfYearTillSameDate: {
6365
6398
  label: "Следующее полугодие, до такой же даты",
@@ -6371,14 +6404,14 @@ class Ei {
6371
6404
  label: "Следующий год, до такой же даты",
6372
6405
  group: "other",
6373
6406
  section: "nextTillSame",
6374
- ...y.intervalTillSameDate(g, ae(pr(r, 1)), r)
6407
+ ...y.intervalTillSameDate(g, ae(hr(r, 1)), r)
6375
6408
  },
6376
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: re(je(r, 6)), to: n },
6409
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: re(Ye(r, 6)), to: i },
6377
6410
  next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(se(r, 6)) }
6378
6411
  };
6379
6412
  }
6380
6413
  }
6381
- const Fi = [
6414
+ const Ui = [
6382
6415
  { key: "day", label: "День" },
6383
6416
  { key: "week", label: "Неделя" },
6384
6417
  { key: "decade", label: "Декада" },
@@ -6387,7 +6420,7 @@ const Fi = [
6387
6420
  { key: "halfYear", label: "Полугодие" },
6388
6421
  { key: "year", label: "Год" },
6389
6422
  { key: "other", label: "Прочее" }
6390
- ], Ui = [
6423
+ ], Fi = [
6391
6424
  { key: "fromBeginning", label: "С начала периода" },
6392
6425
  { key: "tillEnd", label: "До конца периода" },
6393
6426
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
@@ -6413,7 +6446,7 @@ class Lr extends N {
6413
6446
  this.city = e != null && e.city ? new ee(e.city) : void 0, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
6414
6447
  }
6415
6448
  }
6416
- class Us {
6449
+ class Fs {
6417
6450
  /**
6418
6451
  * Инициализирует экземпляр класса {@link DiscountConditions}.
6419
6452
  *
@@ -6456,7 +6489,7 @@ class Us {
6456
6489
  * @inheritDoc
6457
6490
  */
6458
6491
  s(this, "lastOrderDate");
6459
- this.salesDirections = P((r == null ? void 0 : r.salesDirections) ?? [], (e) => new U(e)), this.partnerGroups = P((r == null ? void 0 : r.partnerGroups) ?? [], (e) => new le(e)), this.managers = P((r == null ? void 0 : r.managers) ?? [], (e) => new q(e)), this.additionalClients = P((r == null ? void 0 : r.additionalClients) ?? [], (e) => new Lr(e)), this.fixedClients = P((r == null ? void 0 : r.fixedClients) ?? [], (e) => new Lr(e)), this.regions = P((r == null ? void 0 : r.regions) ?? [], (e) => new ne(e)), this.cities = P((r == null ? void 0 : r.cities) ?? [], (e) => new ee(e)), this.lastLoginDate = new D(r == null ? void 0 : r.lastLoginDate), this.lastOrderDate = new D(r == null ? void 0 : r.lastOrderDate);
6492
+ this.salesDirections = P((r == null ? void 0 : r.salesDirections) ?? [], (e) => new F(e)), this.partnerGroups = P((r == null ? void 0 : r.partnerGroups) ?? [], (e) => new le(e)), this.managers = P((r == null ? void 0 : r.managers) ?? [], (e) => new q(e)), this.additionalClients = P((r == null ? void 0 : r.additionalClients) ?? [], (e) => new Lr(e)), this.fixedClients = P((r == null ? void 0 : r.fixedClients) ?? [], (e) => new Lr(e)), this.regions = P((r == null ? void 0 : r.regions) ?? [], (e) => new ne(e)), this.cities = P((r == null ? void 0 : r.cities) ?? [], (e) => new ee(e)), this.lastLoginDate = new D(r == null ? void 0 : r.lastLoginDate), this.lastOrderDate = new D(r == null ? void 0 : r.lastOrderDate);
6460
6493
  }
6461
6494
  /**
6462
6495
  * Возвращает признак того, что задано хотя бы одно условие отбора клиентов.
@@ -6464,7 +6497,7 @@ class Us {
6464
6497
  * Скидка без условий отбора клиентов доступна всем клиентам.
6465
6498
  */
6466
6499
  hasClientConditions() {
6467
- return jr([this.salesDirections, this.partnerGroups, this.managers, this.additionalClients, this.fixedClients, this.regions, this.cities], (r) => !V(r)) || jr([this.lastLoginDate, this.lastOrderDate], (r) => !!r.from || !!r.to);
6500
+ return jr([this.salesDirections, this.partnerGroups, this.managers, this.additionalClients, this.fixedClients, this.regions, this.cities], (r) => !Q(r)) || jr([this.lastLoginDate, this.lastOrderDate], (r) => !!r.from || !!r.to);
6468
6501
  }
6469
6502
  /**
6470
6503
  * Устанавливает период последнего входа или последнего заказа клиента целыми днями:
@@ -6500,10 +6533,10 @@ class Ms {
6500
6533
  * @param percent Процент скидки (10 для скидки 10 %).
6501
6534
  */
6502
6535
  static percentToCostCoefficient(r) {
6503
- return mt((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6536
+ return yt((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6504
6537
  }
6505
6538
  }
6506
- var Je = /* @__PURE__ */ ((i) => (i.Active = "active", i.Scheduled = "scheduled", i.Completed = "completed", i))(Je || {});
6539
+ var Ke = /* @__PURE__ */ ((n) => (n.Active = "active", n.Scheduled = "scheduled", n.Completed = "completed", n))(Ke || {});
6507
6540
  class Hs {
6508
6541
  /**
6509
6542
  * Возвращает состояние скидки на указанный момент по датам начала и окончания действия.
@@ -6512,10 +6545,10 @@ class Hs {
6512
6545
  * @param now Момент, на который определяется состояние.
6513
6546
  */
6514
6547
  static resolve(r, e = /* @__PURE__ */ new Date()) {
6515
- return r.deletedAt && r.deletedAt.getTime() <= e.getTime() ? Je.Completed : r.publishedAt && r.publishedAt.getTime() > e.getTime() ? Je.Scheduled : Je.Active;
6548
+ return r.deletedAt && r.deletedAt.getTime() <= e.getTime() ? Ke.Completed : r.publishedAt && r.publishedAt.getTime() > e.getTime() ? Ke.Scheduled : Ke.Active;
6516
6549
  }
6517
6550
  }
6518
- class Rr extends Fr {
6551
+ class Rr extends Ur {
6519
6552
  /**
6520
6553
  * Инициализирует экземпляр класса {@link Discount}.
6521
6554
  *
@@ -6551,7 +6584,7 @@ class Rr extends Fr {
6551
6584
  * @inheritDoc
6552
6585
  */
6553
6586
  s(this, "countDiscountedClients");
6554
- this.conditions = new Us(e == null ? void 0 : e.conditions), this.products = P((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = P((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
6587
+ this.conditions = new Fs(e == null ? void 0 : e.conditions), this.products = P((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = P((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
6555
6588
  }
6556
6589
  /**
6557
6590
  * Возвращает состояние скидки на указанный момент.
@@ -6708,8 +6741,8 @@ class xr extends M {
6708
6741
  *
6709
6742
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_get_list
6710
6743
  */
6711
- getDiscountsList(r, e, t, n = void 0) {
6712
- return this.getTypedPaginated(Fr, "/internal/price/discounts", r, e, t, {}, void 0, n);
6744
+ getDiscountsList(r, e, t, i = void 0) {
6745
+ return this.getTypedPaginated(Ur, "/internal/price/discounts", r, e, t, {}, void 0, i);
6713
6746
  }
6714
6747
  /**
6715
6748
  * Возвращает полные данные о скидке.
@@ -6737,7 +6770,7 @@ class xr extends M {
6737
6770
  return this.post(
6738
6771
  "/internal/price/discounts",
6739
6772
  xr.prepareSaveData(r, e),
6740
- (n) => new Rr(n.data),
6773
+ (i) => new Rr(i.data),
6741
6774
  t
6742
6775
  );
6743
6776
  }
@@ -6754,12 +6787,12 @@ class xr extends M {
6754
6787
  *
6755
6788
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_change
6756
6789
  */
6757
- updateDiscount(r, e, t, n = {}) {
6790
+ updateDiscount(r, e, t, i = {}) {
6758
6791
  return this.patch(
6759
6792
  `/internal/price/discounts/${r}`,
6760
6793
  xr.prepareSaveData(e, t),
6761
6794
  (o) => new Rr(o.data),
6762
- n
6795
+ i
6763
6796
  );
6764
6797
  }
6765
6798
  /**
@@ -6798,7 +6831,7 @@ class xr extends M {
6798
6831
  );
6799
6832
  }
6800
6833
  }
6801
- class Ke extends N {
6834
+ class Xe extends N {
6802
6835
  /**
6803
6836
  * Инициализирует экземпляр класса {@link FaqGroup}.
6804
6837
  *
@@ -6830,7 +6863,7 @@ class We extends pe {
6830
6863
  * @inheritDoc
6831
6864
  */
6832
6865
  s(this, "groups");
6833
- this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = P((e == null ? void 0 : e.groups) ?? [], (t) => new Ke(t));
6866
+ this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = P((e == null ? void 0 : e.groups) ?? [], (t) => new Xe(t));
6834
6867
  }
6835
6868
  /**
6836
6869
  * Возвращает данные вопроса для отправки на портал.
@@ -6890,7 +6923,7 @@ class Hi extends M {
6890
6923
  * @see /doc/api/internal#/operations/api_internal_faq_update
6891
6924
  */
6892
6925
  updateFaq(r, e, t = {}) {
6893
- return this.patch(`/internal/faq/${r}`, e, (n) => new We(n.data), t);
6926
+ return this.patch(`/internal/faq/${r}`, e, (i) => new We(i.data), t);
6894
6927
  }
6895
6928
  /**
6896
6929
  * Удаляет часто задаваемый вопрос.
@@ -6908,7 +6941,7 @@ class Hi extends M {
6908
6941
  * @see /doc/api/internal#/operations/api_internal_faq_groups_get_list
6909
6942
  */
6910
6943
  getGroupsList() {
6911
- return this.getTypedList(Ke, "/internal/faq/groups");
6944
+ return this.getTypedList(Xe, "/internal/faq/groups");
6912
6945
  }
6913
6946
  /**
6914
6947
  * Создаёт новую группу часто задаваемых вопросов.
@@ -6921,7 +6954,7 @@ class Hi extends M {
6921
6954
  * @see /doc/api/internal#/operations/api_internal_faq_groups_create
6922
6955
  */
6923
6956
  createGroup(r, e = {}) {
6924
- return this.post("/internal/faq/groups", r, (t) => new Ke(t.data), e);
6957
+ return this.post("/internal/faq/groups", r, (t) => new Xe(t.data), e);
6925
6958
  }
6926
6959
  /**
6927
6960
  * Изменяет данные о группе часто задаваемых вопросов.
@@ -6935,7 +6968,7 @@ class Hi extends M {
6935
6968
  * @see /doc/api/internal#/operations/api_internal_faq_groups_update
6936
6969
  */
6937
6970
  updateGroup(r, e, t = {}) {
6938
- return this.patch(`/internal/faq/groups/${r}`, e, (n) => new Ke(n.data), t);
6971
+ return this.patch(`/internal/faq/groups/${r}`, e, (i) => new Xe(i.data), t);
6939
6972
  }
6940
6973
  /**
6941
6974
  * Удаляет группу часто задаваемых вопросов. Вопросы группы при этом не удаляются.
@@ -6948,11 +6981,11 @@ class Hi extends M {
6948
6981
  return this.delete(`/internal/faq/groups/${r}`);
6949
6982
  }
6950
6983
  }
6951
- function Bi(i) {
6952
- const r = mt(i * 100);
6984
+ function Bi(n) {
6985
+ const r = yt(n * 100);
6953
6986
  return `${r >= 0 ? "+" : ""}${r}%`;
6954
6987
  }
6955
- class qt {
6988
+ class Nt {
6956
6989
  /**
6957
6990
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6958
6991
  *
@@ -6968,7 +7001,7 @@ class qt {
6968
7001
  */
6969
7002
  static getProductMultiplicity(r) {
6970
7003
  var e, t;
6971
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !qt.productIsMeasurable(r) ? r.properties.minCount : 1;
7004
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Nt.productIsMeasurable(r) ? r.properties.minCount : 1;
6972
7005
  }
6973
7006
  /**
6974
7007
  * Возвращает кратность длины для указанного товара.
@@ -6976,8 +7009,8 @@ class qt {
6976
7009
  * @param product Данные о товаре для которого необходимо вернуть кратность длины.
6977
7010
  */
6978
7011
  static getProductLengthMultiplicity(r) {
6979
- var e, t, n;
6980
- return ((e = r.properties) == null ? void 0 : e.lengthStep) != null ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((n = r.properties) == null ? void 0 : n.minCount) != null ? r.properties.minCount : 0.01;
7012
+ var e, t, i;
7013
+ 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;
6981
7014
  }
6982
7015
  }
6983
7016
  const Re = class Re extends h {
@@ -7027,9 +7060,9 @@ const Re = class Re extends h {
7027
7060
  * @param signal Сигнал отмены запроса.
7028
7061
  */
7029
7062
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
7030
- getTypedDataArrayRequester(e, t, n = !1, o = {}, c = void 0) {
7031
- const u = t + (V(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = n ? Re.getCachedResponse(u) : void 0;
7032
- return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (n && g && this.cacheResponse(u, g), g));
7063
+ getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
7064
+ const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? Re.getCachedResponse(u) : void 0;
7065
+ return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
7033
7066
  }
7034
7067
  };
7035
7068
  /**
@@ -7053,7 +7086,7 @@ class Gi {
7053
7086
  return r.id === 0 && r.guid === "-undefined-";
7054
7087
  }
7055
7088
  }
7056
- class Nt extends Me {
7089
+ class Et extends Me {
7057
7090
  /**
7058
7091
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
7059
7092
  */
@@ -7061,8 +7094,8 @@ class Nt extends Me {
7061
7094
  const r = "/internal/managers", e = Me.getCachedResponse(r);
7062
7095
  if (e)
7063
7096
  return e;
7064
- const t = await this.get(r), n = F.instanceListInitializer(Z, t.data);
7065
- return this.cacheResponse(r, n), n;
7097
+ const t = await this.get(r), i = U.instanceListInitializer(Z, t.data);
7098
+ return this.cacheResponse(r, i), i;
7066
7099
  }
7067
7100
  /**
7068
7101
  * Возвращает {@link Promise} для получения полных данных о менеджере с указанным идентификатором.
@@ -7075,7 +7108,7 @@ class Nt extends Me {
7075
7108
  return this.get(`/internal/managers/${r}`, {}, (e) => new Z(e.data));
7076
7109
  }
7077
7110
  }
7078
- var _e = /* @__PURE__ */ ((i) => (i.Processing = "processing", i.Completed = "completed", i.Error = "error", i.NeedsActualization = "needs_actualization", i))(_e || {});
7111
+ var _e = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(_e || {});
7079
7112
  class Bs {
7080
7113
  /**
7081
7114
  * Инициализирует экземпляр класса {@link OfferActualization}.
@@ -7132,7 +7165,7 @@ class Bs {
7132
7165
  return this.status === _e.Completed && !this.isOutdatedAt(r);
7133
7166
  }
7134
7167
  }
7135
- class Et extends tr {
7168
+ class Ut extends sr {
7136
7169
  /**
7137
7170
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
7138
7171
  *
@@ -7203,10 +7236,10 @@ class Gs extends Hr {
7203
7236
  * @inheritDoc
7204
7237
  */
7205
7238
  get isOrderable() {
7206
- return !this.isProductStub && !this.isIgnored && V(this.lineError);
7239
+ return !this.isProductStub && !this.isIgnored && Q(this.lineError);
7207
7240
  }
7208
7241
  }
7209
- class G extends Et {
7242
+ class G extends Ut {
7210
7243
  /**
7211
7244
  * Инициализирует экземпляр класса {@link Offer}.
7212
7245
  *
@@ -7227,7 +7260,7 @@ class G extends Et {
7227
7260
  );
7228
7261
  }
7229
7262
  }
7230
- class Wi extends de {
7263
+ class zi extends de {
7231
7264
  /**
7232
7265
  * Инициализирует экземпляр класса {@link OffersListFilters}.
7233
7266
  *
@@ -7263,21 +7296,21 @@ class Wi extends de {
7263
7296
  * @inheritDoc
7264
7297
  */
7265
7298
  asClearRaw() {
7266
- var t, n;
7299
+ var t, i;
7267
7300
  const e = super.asClearRaw();
7268
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, e;
7301
+ 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;
7269
7302
  }
7270
7303
  }
7271
- class or extends v {
7304
+ class cr extends v {
7272
7305
  }
7273
- class Ft extends _t {
7306
+ class Ft extends qt {
7274
7307
  /**
7275
7308
  * Инициализирует экземпляр класса {@link OrderInfo}.
7276
7309
  *
7277
7310
  * @param data Данные для первоначальной инициализации.
7278
7311
  */
7279
7312
  constructor(e) {
7280
- var t, n, o, c, u, p, g, a;
7313
+ var t, i, o, c, u, p, g, a;
7281
7314
  super(e);
7282
7315
  /**
7283
7316
  * @inheritDoc
@@ -7333,17 +7366,17 @@ class Ft extends _t {
7333
7366
  s(this, "isLargeOrder");
7334
7367
  this.client = new fe(e == null ? void 0 : e.client), this.payment = {
7335
7368
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
7336
- status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
7369
+ status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
7337
7370
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
7338
7371
  }, this.delivery = {
7339
7372
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
7340
- date: _((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? I(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
7373
+ date: I((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? _(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
7341
7374
  address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new qe(e.delivery.address) : void 0,
7342
7375
  warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new He(e.delivery.warehouse) : void 0
7343
- }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new or(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new v(e.statusDetail) : void 0, this.salesDirection = new U(e == null ? void 0 : e.salesDirection), this.attachedAt = _(e == null ? void 0 : e.attachedAt) ? I(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
7376
+ }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new cr(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 = I(e == null ? void 0 : e.attachedAt) ? _(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
7344
7377
  }
7345
7378
  }
7346
- class Ws extends Dt {
7379
+ class zs extends Rt {
7347
7380
  /**
7348
7381
  * Инициализирует экземпляр класса {@link OrderItem}.
7349
7382
  *
@@ -7400,7 +7433,7 @@ class Ws extends Dt {
7400
7433
  * Продукт, которым заменена текущая запись.
7401
7434
  */
7402
7435
  s(this, "replacement");
7403
- this.product = new Pe(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 = Q(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"));
7436
+ this.product = new Pe(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 = V(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"));
7404
7437
  }
7405
7438
  }
7406
7439
  class L extends Ft {
@@ -7468,14 +7501,14 @@ class L extends Ft {
7468
7501
  * @inheritDoc
7469
7502
  */
7470
7503
  s(this, "numberDoc");
7471
- this.products = (e.products ?? []).map((n) => {
7504
+ this.products = (e.products ?? []).map((i) => {
7472
7505
  var c;
7473
- const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
7474
- return new Ws(n, o);
7475
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? rr.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((n) => new or(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
7506
+ const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
7507
+ return new zs(i, o);
7508
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? tr.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 cr(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
7476
7509
  }
7477
7510
  }
7478
- class zi extends M {
7511
+ class Wi extends M {
7479
7512
  /**
7480
7513
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
7481
7514
  *
@@ -7486,8 +7519,8 @@ class zi extends M {
7486
7519
  *
7487
7520
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
7488
7521
  */
7489
- getOffers(r, e, t, n = void 0) {
7490
- return this.getTypedPaginated(Et, "/internal/orders/offers", r, e, t, {}, void 0, n);
7522
+ getOffers(r, e, t, i = void 0) {
7523
+ return this.getTypedPaginated(Ut, "/internal/orders/offers", r, e, t, {}, void 0, i);
7491
7524
  }
7492
7525
  /**
7493
7526
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -7506,7 +7539,7 @@ class zi extends M {
7506
7539
  name: e,
7507
7540
  items: t != null && t.length ? t : void 0
7508
7541
  },
7509
- (n) => new G(n.data)
7542
+ (i) => new G(i.data)
7510
7543
  );
7511
7544
  }
7512
7545
  /**
@@ -7521,8 +7554,8 @@ class zi extends M {
7521
7554
  *
7522
7555
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_profstroy
7523
7556
  */
7524
- createProfstroyOffer(r, e, t, n = {}) {
7525
- return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new G(o.data), n);
7557
+ createProfstroyOffer(r, e, t, i = {}) {
7558
+ return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new G(o.data), i);
7526
7559
  }
7527
7560
  /**
7528
7561
  * Запускает актуализацию заказа-черновика, созданного из файла «Профстрой»: текущий состав записи
@@ -7590,7 +7623,7 @@ class zi extends M {
7590
7623
  *
7591
7624
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
7592
7625
  */
7593
- createOrderFromDraft(r, e, t, n = {}) {
7626
+ createOrderFromDraft(r, e, t, i = {}) {
7594
7627
  const o = S().config.dateFormats.api;
7595
7628
  return this.post(
7596
7629
  `/internal/orders/offers/${r}/create-order`,
@@ -7599,8 +7632,8 @@ class zi extends M {
7599
7632
  deliveryDate: e.deliveryDate ? $(e.deliveryDate, o) : void 0,
7600
7633
  items: t != null && t.length ? t : void 0
7601
7634
  },
7602
- (c) => F.instanceListInitializer(L, c.data),
7603
- n
7635
+ (c) => U.instanceListInitializer(L, c.data),
7636
+ i
7604
7637
  );
7605
7638
  }
7606
7639
  /**
@@ -7628,7 +7661,7 @@ class zi extends M {
7628
7661
  is_additional_sale: e.isAdditionalSale,
7629
7662
  ...e.configuratorParams
7630
7663
  },
7631
- (n) => new G(n.data),
7664
+ (i) => new G(i.data),
7632
7665
  t
7633
7666
  );
7634
7667
  }
@@ -7643,7 +7676,7 @@ class zi extends M {
7643
7676
  *
7644
7677
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_modify
7645
7678
  */
7646
- patchOfferProduct(r, e, t, n = {}) {
7679
+ patchOfferProduct(r, e, t, i = {}) {
7647
7680
  return this.patch(
7648
7681
  `/internal/orders/offers/${r}/products/${e}`,
7649
7682
  {
@@ -7659,7 +7692,7 @@ class zi extends M {
7659
7692
  ...t.configuratorParams
7660
7693
  },
7661
7694
  (o) => new G(o.data),
7662
- n
7695
+ i
7663
7696
  );
7664
7697
  }
7665
7698
  /**
@@ -7730,7 +7763,7 @@ class ji {
7730
7763
  return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
7731
7764
  }
7732
7765
  }
7733
- var zs = /* @__PURE__ */ ((i) => (i.View = "view", i.Share = "share", i.EditTags = "edit_tags", i.SaveOrderIgnoredProducts = "save_order_ignored_products", i.ChangeStatus = "change_status", i.ChangeProducts = "change_products", i.ChangeOrderParameters = "change_order_parameters", i.Recalculate = "recalculate", i.AttachOrder = "attach_order", i.DetachOrder = "detach_order", i.ChangeAttachedOperator = "change_attached_operator", i.SendOnlinePaymentLink = "send_online_payment_link", i.ConfirmOnlineFullPayment = "confirm_online_full_payment", i.MergeOrders = "merge_orders", i.GetHistory = "get_history", i.CloneOrder = "clone_order", i.DeleteAttachedFile = "delete_attached_file", i))(zs || {});
7766
+ var Ws = /* @__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))(Ws || {});
7734
7767
  class Yi {
7735
7768
  /**
7736
7769
  * Инициализирует экземпляр класса {@link OrderEditorData}.
@@ -7794,22 +7827,22 @@ class Yi {
7794
7827
  * @inheritDoc
7795
7828
  */
7796
7829
  s(this, "isAdditionalSale");
7797
- var e, t, n;
7798
- 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 = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.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;
7830
+ var e, t, i;
7831
+ 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;
7799
7832
  }
7800
7833
  }
7801
- class Ut extends v {
7802
- }
7803
7834
  class Mt extends v {
7804
7835
  }
7805
- class Qi extends de {
7836
+ class Ht extends v {
7837
+ }
7838
+ class Vi extends de {
7806
7839
  /**
7807
7840
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7808
7841
  *
7809
7842
  * @param data Данные для первоначальной инициализации.
7810
7843
  */
7811
7844
  constructor(e) {
7812
- var t, n, o, c;
7845
+ var t, i, o, c;
7813
7846
  super();
7814
7847
  /**
7815
7848
  * @inheritDoc
@@ -7903,7 +7936,7 @@ class Qi extends de {
7903
7936
  * @inheritDoc
7904
7937
  */
7905
7938
  s(this, "onlyMyRegions");
7906
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Ut(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new ee(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 D(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new U(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Mt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7939
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Mt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(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 ee(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 D(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 X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Ht(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7907
7940
  }
7908
7941
  /**
7909
7942
  * @inheritDoc
@@ -7949,9 +7982,9 @@ class Qi extends de {
7949
7982
  * @inheritDoc
7950
7983
  */
7951
7984
  asClearRaw() {
7952
- var t, n, o, c, u, p;
7985
+ var t, i, o, c, u, p;
7953
7986
  const e = super.asClearRaw();
7954
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.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;
7987
+ 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;
7955
7988
  }
7956
7989
  }
7957
7990
  class js {
@@ -7977,10 +8010,10 @@ class js {
7977
8010
  * @inheritDoc
7978
8011
  */
7979
8012
  s(this, "createdAt");
7980
- this.user = new q(r == null ? void 0 : r.user), this.status = new or(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = _(r == null ? void 0 : r.createdAt) ? I(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
8013
+ this.user = new q(r == null ? void 0 : r.user), this.status = new cr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = I(r == null ? void 0 : r.createdAt) ? _(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7981
8014
  }
7982
8015
  }
7983
- class Vi extends M {
8016
+ class Qi extends M {
7984
8017
  /**
7985
8018
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7986
8019
  *
@@ -7991,8 +8024,8 @@ class Vi extends M {
7991
8024
  *
7992
8025
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7993
8026
  */
7994
- getOrders(r, e, t, n = void 0) {
7995
- return this.getTypedPaginated(Ft, "/internal/orders", r, e, t, {}, void 0, n);
8027
+ getOrders(r, e, t, i = void 0) {
8028
+ return this.getTypedPaginated(Ft, "/internal/orders", r, e, t, {}, void 0, i);
7996
8029
  }
7997
8030
  /**
7998
8031
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -8046,7 +8079,7 @@ class Vi extends M {
8046
8079
  * в случае ошибок в запросах.
8047
8080
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
8048
8081
  */
8049
- createClientOrder(r, e, t, n = {}) {
8082
+ createClientOrder(r, e, t, i = {}) {
8050
8083
  const o = S().config.dateFormats.api;
8051
8084
  return this.post(
8052
8085
  `/internal/clients/${r}/orders`,
@@ -8055,8 +8088,8 @@ class Vi extends M {
8055
8088
  deliveryDate: $(e.deliveryDate, o),
8056
8089
  items: t != null && t.length ? t : void 0
8057
8090
  },
8058
- (c) => F.instanceListInitializer(L, c.data),
8059
- n
8091
+ (c) => U.instanceListInitializer(L, c.data),
8092
+ i
8060
8093
  );
8061
8094
  }
8062
8095
  /**
@@ -8122,12 +8155,12 @@ class Vi extends M {
8122
8155
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
8123
8156
  */
8124
8157
  updateOrder(r, e, t = {}) {
8125
- const n = S().config.dateFormats.api;
8158
+ const i = S().config.dateFormats.api;
8126
8159
  return this.patch(
8127
8160
  `/internal/orders/${r}`,
8128
8161
  {
8129
8162
  ...e,
8130
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, n) : void 0
8163
+ deliveryDate: e.deliveryDate ? $(e.deliveryDate, i) : void 0
8131
8164
  },
8132
8165
  (o) => new L(o.data),
8133
8166
  t
@@ -8159,7 +8192,7 @@ class Vi extends M {
8159
8192
  is_additional_sale: e.isAdditionalSale,
8160
8193
  ...e.configuratorParams
8161
8194
  },
8162
- (n) => new L(n.data),
8195
+ (i) => new L(i.data),
8163
8196
  t
8164
8197
  );
8165
8198
  }
@@ -8175,7 +8208,7 @@ class Vi extends M {
8175
8208
  *
8176
8209
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
8177
8210
  */
8178
- changeOrderStatus(r, e, t, n = {}) {
8211
+ changeOrderStatus(r, e, t, i = {}) {
8179
8212
  return this.patch(
8180
8213
  `/internal/orders/${r}/status`,
8181
8214
  {
@@ -8183,7 +8216,7 @@ class Vi extends M {
8183
8216
  statusDetail: t
8184
8217
  },
8185
8218
  (o) => new L(o.data),
8186
- n
8219
+ i
8187
8220
  );
8188
8221
  }
8189
8222
  /**
@@ -8285,7 +8318,7 @@ class Vi extends M {
8285
8318
  *
8286
8319
  * @see /doc/api/internal#/Заказы/api_internal_orders_product_update
8287
8320
  */
8288
- patchOrderProduct(r, e, t, n = {}) {
8321
+ patchOrderProduct(r, e, t, i = {}) {
8289
8322
  return this.patch(
8290
8323
  `/internal/orders/${r}/products/${e}`,
8291
8324
  {
@@ -8301,7 +8334,7 @@ class Vi extends M {
8301
8334
  ...t.configuratorParams
8302
8335
  },
8303
8336
  (o) => new L(o.data),
8304
- n
8337
+ i
8305
8338
  );
8306
8339
  }
8307
8340
  /**
@@ -8334,7 +8367,7 @@ class Vi extends M {
8334
8367
  *
8335
8368
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
8336
8369
  */
8337
- getDeliveryCost(r, e, t, n = void 0) {
8370
+ getDeliveryCost(r, e, t, i = void 0) {
8338
8371
  const o = S().config.dateFormats.api;
8339
8372
  return this.get(
8340
8373
  `/internal/orders/delivery/${r}/cost`,
@@ -8344,7 +8377,7 @@ class Vi extends M {
8344
8377
  },
8345
8378
  (c) => c.data,
8346
8379
  void 0,
8347
- n
8380
+ i
8348
8381
  );
8349
8382
  }
8350
8383
  }
@@ -8379,22 +8412,22 @@ class Pr {
8379
8412
  this.client = new fe(r == null ? void 0 : r.client), this.product = new E(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) ?? Mr.Product;
8380
8413
  }
8381
8414
  }
8382
- const Tr = (i) => {
8383
- var r, e, t, n, o;
8384
- return i ? yt(
8415
+ const Tr = (n) => {
8416
+ var r, e, t, i, o;
8417
+ return n ? at(
8385
8418
  {
8386
- cities: (r = i.cities) == null ? void 0 : r.map((c) => c.id),
8387
- clients: (e = i.clients) == null ? void 0 : e.map((c) => c.id),
8388
- managers: (t = i.managers) == null ? void 0 : t.map((c) => c.id),
8389
- partnerGroups: (n = i.partnerGroups) == null ? void 0 : n.map((c) => c.id),
8390
- salesDirections: (o = i.salesDirections) == null ? void 0 : o.map((c) => c.id),
8391
- hideNotActive: i.hideNotActive
8419
+ cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
8420
+ clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
8421
+ managers: (t = n.managers) == null ? void 0 : t.map((c) => c.id),
8422
+ partnerGroups: (i = n.partnerGroups) == null ? void 0 : i.map((c) => c.id),
8423
+ salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
8424
+ hideNotActive: n.hideNotActive
8392
8425
  },
8393
- (c) => m(c) || (Q(c) || Xe(c)) && V(c)
8426
+ (c) => m(c) || (V(c) || Ze(c)) && Q(c)
8394
8427
  ) : {};
8395
- }, ct = (i) => {
8428
+ }, ct = (n) => {
8396
8429
  const r = {};
8397
- return i.from && (i.from.coefficient || i.from.value) && (r.from = {}, i.from.coefficient && (r.from.priceCoefficientId = i.from.coefficient.id), i.from.value && (r.from.increasePercent = i.from.value)), i.to && (i.to.coefficient || i.to.value) && (r.to = {}, i.to.coefficient && (r.to.priceCoefficientId = i.to.coefficient.id), i.to.value && (r.to.increasePercent = i.to.value)), r;
8430
+ 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;
8398
8431
  };
8399
8432
  class Ki extends h {
8400
8433
  /**
@@ -8413,7 +8446,7 @@ class Ki extends h {
8413
8446
  ...ct(e),
8414
8447
  filters: Tr(t)
8415
8448
  },
8416
- (n) => F.instanceListInitializer(Pr, n.data)
8449
+ (i) => U.instanceListInitializer(Pr, i.data)
8417
8450
  );
8418
8451
  }
8419
8452
  /**
@@ -8432,7 +8465,7 @@ class Ki extends h {
8432
8465
  ...ct(e),
8433
8466
  filters: Tr(t)
8434
8467
  },
8435
- (n) => F.instanceListInitializer(Pr, n.data)
8468
+ (i) => U.instanceListInitializer(Pr, i.data)
8436
8469
  );
8437
8470
  }
8438
8471
  /**
@@ -8453,7 +8486,7 @@ class Ki extends h {
8453
8486
  ...e,
8454
8487
  filters: Tr(t)
8455
8488
  },
8456
- (n) => F.instanceListInitializer(Pr, n.data)
8489
+ (i) => U.instanceListInitializer(Pr, i.data)
8457
8490
  );
8458
8491
  }
8459
8492
  }
@@ -8504,10 +8537,10 @@ class Ys {
8504
8537
  * @inheritDoc
8505
8538
  */
8506
8539
  s(this, "currency");
8507
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = _(r.costDate) ? I(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Ue(r.product) : void 0, this.client = r.client ? new 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;
8540
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = I(r.costDate) ? _(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Fe(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new J(r.currency) : void 0;
8508
8541
  }
8509
8542
  }
8510
- class Qs extends Ue {
8543
+ class Vs extends Fe {
8511
8544
  /**
8512
8545
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
8513
8546
  *
@@ -8532,17 +8565,17 @@ class Xi extends h {
8532
8565
  */
8533
8566
  getProductPriceHistory(r) {
8534
8567
  var o, c, u, p, g;
8535
- const e = S().config.dateFormats.api, t = yt(
8568
+ const e = S().config.dateFormats.api, t = at(
8536
8569
  Ne(r, {
8537
8570
  costDate: {
8538
- from: Ze((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
8539
- to: Ze((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
8571
+ from: er((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
8572
+ to: er((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
8540
8573
  }
8541
8574
  }),
8542
- (a) => m(a) || (Q(a) || Xe(a)) && V(a)
8543
- ), n = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
8544
- return delete t.product, this.get(`/internal/price/products/${n}/history`, t).then((a) => [
8545
- new Qs(Ne(a[0], { history: a }))
8575
+ (a) => m(a) || (V(a) || Ze(a)) && Q(a)
8576
+ ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
8577
+ return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
8578
+ new Vs(Ne(a[0], { history: a }))
8546
8579
  ]);
8547
8580
  }
8548
8581
  }
@@ -8561,7 +8594,7 @@ class lt {
8561
8594
  * Список рекомендованных категорий продуктов.
8562
8595
  */
8563
8596
  s(this, "productCategories", []);
8564
- r != null && r.products && (this.products = r.products.map((e) => new Ue(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ue(e)));
8597
+ r != null && r.products && (this.products = r.products.map((e) => new Fe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Fe(e)));
8565
8598
  }
8566
8599
  }
8567
8600
  class Zi extends h {
@@ -8610,7 +8643,7 @@ class Zi extends h {
8610
8643
  });
8611
8644
  }
8612
8645
  }
8613
- var Vs = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(Vs || {}), Js = /* @__PURE__ */ ((i) => (i.CanceledBy1c = "canceled_by1c", i.CanceledByClient = "canceled_by_client", i.FinishedNotApproved = "finished_not_approved", i.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", i.WillWaiting = "will_waiting", i))(Js || {});
8646
+ var Qs = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(Qs || {}), Js = /* @__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))(Js || {});
8614
8647
  class Ks extends v {
8615
8648
  }
8616
8649
  class Xs extends v {
@@ -8628,7 +8661,7 @@ class ut extends v {
8628
8661
  * @inheritDoc
8629
8662
  */
8630
8663
  s(this, "userRegions");
8631
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((n) => new nr(n))) ?? [];
8664
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new or(i))) ?? [];
8632
8665
  }
8633
8666
  }
8634
8667
  class Zs extends v {
@@ -8658,7 +8691,7 @@ class en {
8658
8691
  return r.id === 0 && r.slug === "-undefined-";
8659
8692
  }
8660
8693
  }
8661
- class Ht extends v {
8694
+ class Bt extends v {
8662
8695
  }
8663
8696
  const j = class j extends Me {
8664
8697
  /**
@@ -8685,7 +8718,7 @@ const j = class j extends Me {
8685
8718
  * первичного интереса.
8686
8719
  */
8687
8720
  getChannelPrimaryInterest() {
8688
- return this.getTypedDataArrayRequester(xt, "/internal/references/channel-primary-interest", !0);
8721
+ return this.getTypedDataArrayRequester(It, "/internal/references/channel-primary-interest", !0);
8689
8722
  }
8690
8723
  /**
8691
8724
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -8722,7 +8755,7 @@ const j = class j extends Me {
8722
8755
  * Возвращает {@link Promise} для получения справочника операторов.
8723
8756
  */
8724
8757
  getOperators() {
8725
- return this.getTypedDataArrayRequester(Ut, "/internal/references/operator", !0);
8758
+ return this.getTypedDataArrayRequester(Mt, "/internal/references/operator", !0);
8726
8759
  }
8727
8760
  /**
8728
8761
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -8734,7 +8767,7 @@ const j = class j extends Me {
8734
8767
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
8735
8768
  */
8736
8769
  getOrderStatuses() {
8737
- return this.getTypedDataArrayRequester(or, "/internal/references/order-status", !0);
8770
+ return this.getTypedDataArrayRequester(cr, "/internal/references/order-status", !0);
8738
8771
  }
8739
8772
  /**
8740
8773
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
@@ -8746,25 +8779,25 @@ const j = class j extends Me {
8746
8779
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
8747
8780
  */
8748
8781
  getPaymentTypes() {
8749
- return this.getTypedDataArrayRequester(Mt, "/public/references/payment-type", !0);
8782
+ return this.getTypedDataArrayRequester(Ht, "/public/references/payment-type", !0);
8750
8783
  }
8751
8784
  /**
8752
8785
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
8753
8786
  */
8754
8787
  getResourceTypes() {
8755
- return this.getTypedDataArrayRequester(Ht, "/internal/references/resource-type", !0);
8788
+ return this.getTypedDataArrayRequester(Bt, "/internal/references/resource-type", !0);
8756
8789
  }
8757
8790
  /**
8758
8791
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
8759
8792
  */
8760
8793
  getSalesDirections() {
8761
- return this.getTypedDataArrayRequester(U, "/public/references/sales-direction", !0);
8794
+ return this.getTypedDataArrayRequester(F, "/public/references/sales-direction", !0);
8762
8795
  }
8763
8796
  /**
8764
8797
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
8765
8798
  */
8766
8799
  getSourcePrimaryInterest() {
8767
- return this.getTypedDataArrayRequester(It, "/internal/references/source-primary-interest", !0);
8800
+ return this.getTypedDataArrayRequester(_t, "/internal/references/source-primary-interest", !0);
8768
8801
  }
8769
8802
  /**
8770
8803
  * Выполняет поиск данных о городах по терму в названии.
@@ -8832,7 +8865,7 @@ const j = class j extends Me {
8832
8865
  !1,
8833
8866
  { term: r, ...e ? { params: { countryId: e } } : {} },
8834
8867
  t
8835
- ).then((n) => j.withoutUnknownLocation(n));
8868
+ ).then((i) => j.withoutUnknownLocation(i));
8836
8869
  }
8837
8870
  /**
8838
8871
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -8870,7 +8903,7 @@ const j = class j extends Me {
8870
8903
  * Возвращает {@link Promise} для получения справочника типов свойств.
8871
8904
  */
8872
8905
  getPropertyTypes() {
8873
- return this.getTypedDataArrayRequester(St, "/internal/references/property-type", !0);
8906
+ return this.getTypedDataArrayRequester($t, "/internal/references/property-type", !0);
8874
8907
  }
8875
8908
  /**
8876
8909
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -8892,12 +8925,12 @@ const j = class j extends Me {
8892
8925
  s(j, "unknownLocationId", 1);
8893
8926
  let d = j;
8894
8927
  const A = ue("common.references_private", () => {
8895
- const i = C({}), r = C(void 0), e = C(void 0), t = C(void 0), n = C(void 0), o = C(void 0), c = C(void 0), u = C(void 0), p = C(void 0), g = C(void 0), a = C(void 0), T = C(void 0), Ae = C(void 0), Se = C(void 0), me = C(void 0), ye = C(void 0), cr = C(void 0), lr = C(void 0), ur = C(void 0), l = C(void 0);
8928
+ const n = C({}), r = C(void 0), e = C(void 0), t = C(void 0), i = C(void 0), o = C(void 0), c = C(void 0), u = C(void 0), p = C(void 0), g = C(void 0), a = C(void 0), T = C(void 0), Ae = C(void 0), Se = C(void 0), me = C(void 0), ye = C(void 0), lr = C(void 0), ur = C(void 0), pr = C(void 0), l = C(void 0);
8896
8929
  return {
8897
8930
  /**
8898
8931
  * Список загружаемых/загруженных на данный момент значений.
8899
8932
  */
8900
- dataLoaderList: i,
8933
+ dataLoaderList: n,
8901
8934
  /**
8902
8935
  * Справочник каналов первичного интереса.
8903
8936
  */
@@ -8913,7 +8946,7 @@ const A = ue("common.references_private", () => {
8913
8946
  /**
8914
8947
  * Справочник типов доставки.
8915
8948
  */
8916
- deliveryTypeReference: n,
8949
+ deliveryTypeReference: i,
8917
8950
  /**
8918
8951
  * Список менеджеров.
8919
8952
  */
@@ -8961,22 +8994,22 @@ const A = ue("common.references_private", () => {
8961
8994
  /**
8962
8995
  * Справочник источников первичного интереса.
8963
8996
  */
8964
- sourcePrimaryInterestReference: cr,
8997
+ sourcePrimaryInterestReference: lr,
8965
8998
  /**
8966
8999
  * Справочник складов.
8967
9000
  */
8968
- warehousesReference: lr,
9001
+ warehousesReference: ur,
8969
9002
  /**
8970
9003
  * Справочник типов свойств.
8971
9004
  */
8972
- propertyTypesReference: ur,
9005
+ propertyTypesReference: pr,
8973
9006
  /**
8974
9007
  * Справочник коэффициентов цен.
8975
9008
  */
8976
9009
  priceCoefficientsReference: l
8977
9010
  };
8978
9011
  }), rn = ue("common.references", () => {
8979
- const i = b(() => {
9012
+ const n = b(() => {
8980
9013
  const l = A();
8981
9014
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8982
9015
  l.channelPrimaryInterestReference = f;
@@ -8996,7 +9029,7 @@ const A = ue("common.references_private", () => {
8996
9029
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8997
9030
  l.opfReference = f;
8998
9031
  }).catch(R)), l.opfReference;
8999
- }), n = b(() => {
9032
+ }), i = b(() => {
9000
9033
  const l = A();
9001
9034
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
9002
9035
  l.operatorReference = f;
@@ -9053,20 +9086,20 @@ const A = ue("common.references_private", () => {
9053
9086
  }).catch(R)), l.deliveryTypeReference;
9054
9087
  }), ye = b(() => {
9055
9088
  const l = A();
9056
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Nt).getManagers().then((f) => {
9089
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Et).getManagers().then((f) => {
9057
9090
  l.managersList = f;
9058
9091
  }).catch(R)), l.managersList;
9059
- }), cr = b(() => {
9092
+ }), lr = b(() => {
9060
9093
  const l = A();
9061
9094
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
9062
9095
  l.warehousesReference = f;
9063
9096
  }).catch(R)), l.warehousesReference;
9064
- }), lr = b(() => {
9097
+ }), ur = b(() => {
9065
9098
  const l = A();
9066
9099
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
9067
9100
  l.propertyTypesReference = f;
9068
9101
  }).catch(R)), l.propertyTypesReference;
9069
- }), ur = b(() => {
9102
+ }), pr = b(() => {
9070
9103
  const l = A();
9071
9104
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
9072
9105
  l.priceCoefficientsReference = f;
@@ -9076,7 +9109,7 @@ const A = ue("common.references_private", () => {
9076
9109
  /**
9077
9110
  * Справочник каналов первичного интереса.
9078
9111
  */
9079
- channelPrimaryInterestsReference: i,
9112
+ channelPrimaryInterestsReference: n,
9080
9113
  /**
9081
9114
  * Справочник должностей контактных лиц.
9082
9115
  */
@@ -9092,7 +9125,7 @@ const A = ue("common.references_private", () => {
9092
9125
  /**
9093
9126
  * Справочник операторов.
9094
9127
  */
9095
- operatorReference: n,
9128
+ operatorReference: i,
9096
9129
  /**
9097
9130
  * Справочник статусов оплаты заказа.
9098
9131
  */
@@ -9140,15 +9173,15 @@ const A = ue("common.references_private", () => {
9140
9173
  /**
9141
9174
  * Справочник складов.
9142
9175
  */
9143
- warehousesReference: cr,
9176
+ warehousesReference: lr,
9144
9177
  /**
9145
9178
  * Справочник типов свойств.
9146
9179
  */
9147
- propertyTypesReference: lr,
9180
+ propertyTypesReference: ur,
9148
9181
  /**
9149
9182
  * Справочник коэффициентов цен.
9150
9183
  */
9151
- priceCoefficientsReference: ur
9184
+ priceCoefficientsReference: pr
9152
9185
  };
9153
9186
  });
9154
9187
  class si {
@@ -9209,7 +9242,7 @@ class pt {
9209
9242
  */
9210
9243
  s(this, "tags");
9211
9244
  var e;
9212
- this.resourceType = new Ht(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 si(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
9245
+ this.resourceType = new Bt(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 si(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
9213
9246
  }
9214
9247
  }
9215
9248
  class tn extends h {
@@ -9282,16 +9315,16 @@ class sn extends h {
9282
9315
  */
9283
9316
  execSuggestionQuery(r, e) {
9284
9317
  return this.get(r, { query: e }).then((t) => {
9285
- const n = [...t];
9318
+ const i = [...t];
9286
9319
  let o = 1;
9287
- return n.forEach((c) => {
9320
+ return i.forEach((c) => {
9288
9321
  c.id = o++;
9289
- }), n;
9322
+ }), i;
9290
9323
  });
9291
9324
  }
9292
9325
  }
9293
- var Bt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.ExternalSeo = "external_seo", i.Guest = "guest", i))(Bt || {});
9294
- class ii extends At {
9326
+ var Gt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Gt || {});
9327
+ class ii extends St {
9295
9328
  /**
9296
9329
  * Инициализирует экземпляр класса {@link User}.
9297
9330
  *
@@ -9315,7 +9348,7 @@ class ii extends At {
9315
9348
  * Роль ценообразования текущего пользователя.
9316
9349
  */
9317
9350
  s(this, "pricingRole");
9318
- 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 Tt(e.pricingRole) : void 0;
9351
+ 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 bt(e.pricingRole) : void 0;
9319
9352
  }
9320
9353
  }
9321
9354
  class nn extends h {
@@ -9344,12 +9377,12 @@ class ni extends h {
9344
9377
  }
9345
9378
  }
9346
9379
  const Ir = ue("common.user_state_private", () => {
9347
- const i = C({}), r = C(void 0), e = C(void 0);
9380
+ const n = C({}), r = C(void 0), e = C(void 0);
9348
9381
  return {
9349
9382
  /**
9350
9383
  * Список загружаемых/загруженных на данный момент значений.
9351
9384
  */
9352
- dataLoaderList: i,
9385
+ dataLoaderList: n,
9353
9386
  /**
9354
9387
  * Данные о текущем пользователе.
9355
9388
  */
@@ -9360,28 +9393,28 @@ const Ir = ue("common.user_state_private", () => {
9360
9393
  currentManager: e
9361
9394
  };
9362
9395
  });
9363
- function ht(i) {
9396
+ function ht(n) {
9364
9397
  const r = Ir();
9365
- (i == null ? void 0 : i.type) !== Bt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Nt).getManager(i.id).then((e) => {
9398
+ (n == null ? void 0 : n.type) !== Gt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Et).getManager(n.id).then((e) => {
9366
9399
  r.currentManager = e;
9367
9400
  }).catch(R).finally(() => {
9368
9401
  r.dataLoaderList.currentManager = !1;
9369
9402
  }));
9370
9403
  }
9371
9404
  const on = ue("common.user_state", () => {
9372
- const i = b(() => {
9405
+ const n = b(() => {
9373
9406
  const e = Ir();
9374
9407
  return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(ni).getCurrentUser().then((t) => {
9375
9408
  e.currentUser = t, ht(t);
9376
9409
  }).catch(R).finally(() => {
9377
9410
  e.dataLoaderList.currentUser = !1;
9378
9411
  })), e.currentUser;
9379
- }), r = b(() => (ht(i.value), Ir().currentManager));
9412
+ }), r = b(() => (ht(n.value), Ir().currentManager));
9380
9413
  return {
9381
9414
  /**
9382
9415
  * Данные о текущем пользователе.
9383
9416
  */
9384
- currentUser: i,
9417
+ currentUser: n,
9385
9418
  /**
9386
9419
  * Данные о текущем менеджере (если текущий пользователь является менеджером).
9387
9420
  */
@@ -9403,17 +9436,17 @@ class _r {
9403
9436
  * @inheritDoc
9404
9437
  */
9405
9438
  s(this, "salesDirection");
9406
- this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new U(r == null ? void 0 : r.salesDirection);
9439
+ this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
9407
9440
  }
9408
9441
  }
9409
- class br extends nr {
9442
+ class br extends or {
9410
9443
  /**
9411
9444
  * Инициализирует экземпляр класса {@link UserRegion}.
9412
9445
  *
9413
9446
  * @param data Данные для первоначальной инициализации.
9414
9447
  */
9415
9448
  constructor(e) {
9416
- var t, n;
9449
+ var t, i;
9417
9450
  super(e);
9418
9451
  /**
9419
9452
  * @inheritDoc
@@ -9423,7 +9456,7 @@ class br extends nr {
9423
9456
  * @inheritDoc
9424
9457
  */
9425
9458
  s(this, "users");
9426
- this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ee(o))) ?? [], this.users = ((n = e == null ? void 0 : e.users) == null ? void 0 : n.map((o) => new _r(o))) ?? [];
9459
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ee(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new _r(o))) ?? [];
9427
9460
  }
9428
9461
  }
9429
9462
  class cn extends de {
@@ -9473,7 +9506,7 @@ class ln extends M {
9473
9506
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
9474
9507
  */
9475
9508
  getRegionsList(r, e, t) {
9476
- return this.getTypedPaginated(nr, "/internal/users/regions", r, e, t);
9509
+ return this.getTypedPaginated(or, "/internal/users/regions", r, e, t);
9477
9510
  }
9478
9511
  /**
9479
9512
  * Возвращает полные данные о регионе пользователей.
@@ -9510,7 +9543,7 @@ class ln extends M {
9510
9543
  * @see /doc/api/internal#/operations/api_internal_user_region_change
9511
9544
  */
9512
9545
  updateRegion(r, e, t = {}) {
9513
- return this.patch(`/internal/users/regions/${r}`, e, (n) => new br(n.data), t);
9546
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new br(i.data), t);
9514
9547
  }
9515
9548
  /**
9516
9549
  * Удаляет регион пользователей.
@@ -9542,7 +9575,7 @@ class ln extends M {
9542
9575
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
9543
9576
  */
9544
9577
  attachRegionEmployee(r, e, t) {
9545
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (n) => new _r(n.data));
9578
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new _r(i.data));
9546
9579
  }
9547
9580
  /**
9548
9581
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -9592,8 +9625,8 @@ export {
9592
9625
  ar as BlogPost,
9593
9626
  Ar as BlogPostMediaFile,
9594
9627
  Qe as BlogPostMediaTypeEnum,
9595
- Ve as BlogPostPublicationStatusEnum,
9596
- Fe as BlogPostShortInfo,
9628
+ Je as BlogPostPublicationStatusEnum,
9629
+ Ue as BlogPostShortInfo,
9597
9630
  mi as BlogPostsListFilters,
9598
9631
  Sr as BlogProvider,
9599
9632
  bs as CalculationTypeEnum,
@@ -9601,21 +9634,21 @@ export {
9601
9634
  Le as Cart,
9602
9635
  ai as CartProvider,
9603
9636
  Ci as CatalogProvider,
9604
- vt as CatalogableItem,
9637
+ Dt as CatalogableItem,
9605
9638
  Y as Category,
9606
9639
  Os as CategoryFilter,
9607
9640
  tt as CategoryFilterSetting,
9608
9641
  ks as CategoryFilterValue,
9609
9642
  rt as CategoryPricingRule,
9610
- xt as ChannelPrimaryInterest,
9643
+ It as ChannelPrimaryInterest,
9611
9644
  Xs as City,
9612
9645
  ee as CityWithRegionAndCountry,
9613
9646
  ut as CityWithUserRegion,
9614
9647
  nt as Client,
9615
9648
  _s as ClientAdditionalData,
9616
- er as ClientCategory,
9617
- z as ClientDataProvider,
9618
- $t as ClientPriceCatalogableItem,
9649
+ rr as ClientCategory,
9650
+ W as ClientDataProvider,
9651
+ kt as ClientPriceCatalogableItem,
9619
9652
  et as ClientPriceCategory,
9620
9653
  vr as ClientPriceProduct,
9621
9654
  vi as ClientPriceProvider,
@@ -9626,109 +9659,109 @@ export {
9626
9659
  fe as ClientShortInfo,
9627
9660
  Ls as ClientsAdditionalDataRequestTypeEnum,
9628
9661
  ki as ClientsListFilters,
9629
- Ue as CodedIdentity,
9662
+ Fe as CodedIdentity,
9630
9663
  xi as ConfiguratorProvider,
9631
9664
  Ns as ConfiguratorsEnum,
9632
9665
  Or as Contact,
9633
- Pt as ContactLinks,
9666
+ Tt as ContactLinks,
9634
9667
  oe as ContactPerson,
9635
9668
  qs as ContactPersonRelated,
9636
9669
  Zs as ContactPosition,
9637
9670
  Dr as ContactRelation,
9638
- kt as ContragentBase,
9639
- rr as ContragentFactory,
9640
- Ot as ContragentIc,
9671
+ Ot as ContragentBase,
9672
+ tr as ContragentFactory,
9673
+ Lt as ContragentIc,
9641
9674
  xs as ContragentPerson,
9642
9675
  Is as ContragentUlNr,
9643
- Lt as ContragentUlR,
9676
+ xt as ContragentUlR,
9644
9677
  Mr as CostSourceEnum,
9645
9678
  Te as Country,
9646
- tr as CreatableIdentity,
9679
+ sr as CreatableIdentity,
9647
9680
  Gr as CuratedDirection,
9648
- Wr as Curator,
9681
+ zr as Curator,
9649
9682
  J as Currency,
9650
9683
  sn as DataSuggestionProvider,
9651
9684
  O as DateHelper,
9652
9685
  Ei as DateTimeProvider,
9653
9686
  Ss as DeletableIdentity,
9654
- ir as DeletableNamedIdentity,
9687
+ nr as DeletableNamedIdentity,
9655
9688
  qe as DeliveryAddress,
9656
9689
  X as DeliveryType,
9657
- at as DetailedJwtPayload,
9690
+ wt as DetailedJwtPayload,
9658
9691
  as as DeviceTypeResolutionConfig,
9659
9692
  Rr as Discount,
9660
9693
  Lr as DiscountClient,
9661
9694
  ot as DiscountClientEligibility,
9662
- Us as DiscountConditions,
9695
+ Fs as DiscountConditions,
9663
9696
  Ms as DiscountHelper,
9664
9697
  xr as DiscountProvider,
9665
- Fr as DiscountShortInfo,
9666
- Je as DiscountStateEnum,
9698
+ Ur as DiscountShortInfo,
9699
+ Ke as DiscountStateEnum,
9667
9700
  Hs as DiscountStateHelper,
9668
9701
  Mi as DiscountsListFilters,
9669
9702
  We as Faq,
9670
- Ke as FaqGroup,
9703
+ Xe as FaqGroup,
9671
9704
  Hi as FaqProvider,
9672
9705
  un as FieldValidationResultData,
9673
9706
  ie as FilterGroup,
9674
9707
  Xr as FilterItem,
9675
9708
  Er as FilterOpEnum,
9676
9709
  $s as FilterSettings,
9677
- Ct as GeoCoordinates,
9710
+ vt as GeoCoordinates,
9678
9711
  Ps as HiddenCatalogableItem,
9679
9712
  Me as HttpCachedRequester,
9680
9713
  ws as HttpParamsConfig,
9681
9714
  h as HttpRequester,
9682
9715
  pe as Identity,
9683
9716
  Ts as Image,
9684
- W as InterceptorsEnum,
9717
+ z as InterceptorsEnum,
9685
9718
  be as JwtPayload,
9686
9719
  Z as Manager,
9687
9720
  Br as ManagerCommon,
9688
9721
  Gi as ManagerDataFactory,
9689
- Nt as ManagerDataProvider,
9722
+ Et as ManagerDataProvider,
9690
9723
  si as MetaTagItem,
9691
9724
  N as NamedIdentity,
9692
9725
  G as Offer,
9693
9726
  Bs as OfferActualization,
9694
9727
  _e as OfferActualizationStatus,
9695
9728
  ji as OfferHelper,
9696
- Et as OfferShortInfo,
9697
- zi as OffersDataProvider,
9698
- Wi as OffersListFilters,
9699
- Ut as Operator,
9729
+ Ut as OfferShortInfo,
9730
+ Wi as OffersDataProvider,
9731
+ zi as OffersListFilters,
9732
+ Mt as Operator,
9700
9733
  ce as Opf,
9701
9734
  K as OpfEnum,
9702
9735
  L as Order,
9703
- zs as OrderAction,
9736
+ Ws as OrderAction,
9704
9737
  Yi as OrderEditorData,
9705
9738
  Ft as OrderInfo,
9706
- Ws as OrderItem,
9707
- Dt as OrderItemBase,
9739
+ zs as OrderItem,
9740
+ Rt as OrderItemBase,
9708
9741
  ei as OrderPaymentStatus,
9709
- _t as OrderShortInfo,
9710
- or as OrderStatus,
9742
+ qt as OrderShortInfo,
9743
+ cr as OrderStatus,
9711
9744
  ri as OrderStatusDetail,
9712
9745
  Js as OrderStatusDetailEnum,
9713
- Vs as OrderStatusEnum,
9746
+ Qs as OrderStatusEnum,
9714
9747
  js as OrderStatusHistoryInfo,
9715
- Vi as OrdersDataProvider,
9716
- Qi as OrdersListFilters,
9748
+ Qi as OrdersDataProvider,
9749
+ Vi as OrdersListFilters,
9717
9750
  de as PaginationFiltersBase,
9718
9751
  le as PartnerGroup,
9719
- Mt as PaymentType,
9720
- Ye as PreferencesStorageProvider,
9752
+ Ht as PaymentType,
9753
+ Ve as PreferencesStorageProvider,
9721
9754
  Pr as PriceAnalyze,
9722
9755
  Ki as PriceAnalyzeProvider,
9723
- bt as PriceCatalogableItem,
9756
+ dt as PriceCatalogableItem,
9724
9757
  he as PriceCoefficient,
9725
- wt as PriceCoefficientEnum,
9758
+ Ct as PriceCoefficientEnum,
9726
9759
  Xi as PriceHistoryDataProvider,
9727
9760
  Ys as PriceHistoryItem,
9728
9761
  ve as PriceTemplate,
9729
9762
  wr as PriceTemplateCategory,
9730
9763
  xe as PriceTemplateClient,
9731
- dt as PriceTemplateICatalogableItem,
9764
+ At as PriceTemplateICatalogableItem,
9732
9765
  Cr as PriceTemplateProduct,
9733
9766
  di as PriceTemplateProvider,
9734
9767
  Ie as PricingRole,
@@ -9738,14 +9771,14 @@ export {
9738
9771
  Ri as ProductCategoryDataProvider,
9739
9772
  Pi as ProductDataProvider,
9740
9773
  ti as ProductFileType,
9741
- Rt as ProductFilterTypeEnum,
9742
- Ur as ProductPriceCoefficient,
9743
- Qs as ProductPriceHistory,
9774
+ Pt as ProductFilterTypeEnum,
9775
+ Fr as ProductPriceCoefficient,
9776
+ Vs as ProductPriceHistory,
9744
9777
  Zr as ProductUnit,
9745
9778
  Gs as ProfstroyOfferItem,
9746
9779
  Si as PropertiesProvider,
9747
9780
  De as Property,
9748
- St as PropertyType,
9781
+ $t as PropertyType,
9749
9782
  ds as PropertyTypeEnum,
9750
9783
  Ce as PropertyValue,
9751
9784
  Zi as RecommendationsDataProvider,
@@ -9754,36 +9787,36 @@ export {
9754
9787
  en as ReferenceDataFactory,
9755
9788
  d as ReferenceDataProvider,
9756
9789
  ne as Region,
9757
- Ht as ResourceType,
9758
- Fi as STANDARD_PERIOD_GROUPS,
9759
- Ui as STANDARD_PERIOD_SECTIONS,
9760
- U as SalesDirection,
9790
+ Bt as ResourceType,
9791
+ Ui as STANDARD_PERIOD_GROUPS,
9792
+ Fi as STANDARD_PERIOD_SECTIONS,
9793
+ F as SalesDirection,
9761
9794
  Cs as SentryConfig,
9762
9795
  pt as Seo,
9763
9796
  tn as SeoDataProvider,
9764
- It as SourcePrimaryInterest,
9797
+ _t as SourcePrimaryInterest,
9765
9798
  Rs as StockCount,
9766
9799
  Ii as TableDataPagination,
9767
9800
  Es as TableDataPaginationRequestParams,
9768
9801
  _i as TableDataSortRequestParams,
9769
9802
  $i as TemplateProductCategoryDataProvider,
9770
9803
  wi as TemplatesListFilters,
9771
- F as TypedInstanceFactory,
9772
- qt as UnitsHelper,
9804
+ U as TypedInstanceFactory,
9805
+ Nt as UnitsHelper,
9773
9806
  Oi as UnknownClientDataProvider,
9774
- sr as UpdatableNamedIdentity,
9807
+ ir as UpdatableNamedIdentity,
9775
9808
  ii as User,
9776
9809
  nn as UserAuthDataProvider,
9777
- At as UserCommonInfo,
9810
+ St as UserCommonInfo,
9778
9811
  ni as UserDataProvider,
9779
- Tt as UserPricingRole,
9812
+ bt as UserPricingRole,
9780
9813
  br as UserRegion,
9781
9814
  _r as UserRegionEmployee,
9782
9815
  ln as UserRegionProvider,
9783
- nr as UserRegionShortInfo,
9816
+ or as UserRegionShortInfo,
9784
9817
  cn as UserRegionsListFilters,
9785
9818
  q as UserShortInfo,
9786
- Bt as UserTypeEnum,
9819
+ Gt as UserTypeEnum,
9787
9820
  Li as VersionConfig,
9788
9821
  He as Warehouse,
9789
9822
  vs as WebSocketConfig,
@@ -9793,8 +9826,8 @@ export {
9793
9826
  it as flattenCatalogItems,
9794
9827
  Bi as formatPercentChange,
9795
9828
  Ni as formatRelativeDate,
9796
- Fs as pluralize,
9797
- yr as useAuthStateStore,
9829
+ Us as pluralize,
9830
+ ze as useAuthStateStore,
9798
9831
  S as useBaseConfigStateStore,
9799
9832
  rn as useReferencesStore,
9800
9833
  on as useUserStateStore