@snabcentr/common-lib 3.8.0 → 3.8.2

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,13 +1,13 @@
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);
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";
6
- import { objectToCamel as Nr, objectToSnake as ts } from "ts-case-convert";
1
+ var Wt = Object.defineProperty;
2
+ var jt = (n, r, e) => r in n ? Wt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => jt(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as ft } from "jwt-decode";
5
+ import { merge as Ne, isNil as m, isEmpty as Q, noop as R, mapValues as mt, isArray as V, every as Yt, split as Vt, isString as I, startsWith as yt, endsWith as Qt, includes as Jt, isFunction as qr, map as P, isObject as Ze, isDate as er, isError as Wr, assign as jr, toLower as Kt, isPlainObject as Xt, isUndefined as Be, constant as Zt, toUpper as es, cloneDeep as rs, forEach as ts, some as Yr, round as at, omitBy as wt } from "lodash-es";
6
+ import { objectToCamel as Nr, objectToSnake as ss } from "ts-case-convert";
7
7
  import { defineStore as ue } from "pinia";
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";
10
- import ms, { CanceledError as ys } from "axios";
8
+ import { ref as v, markRaw as is, computed as b } from "vue";
9
+ import { isAfter as Vr, parseISO as _, startOfToday as Ee, isValid as Qr, format as $, endOfMonth as x, addMonths as k, differenceInCalendarMonths as ns, startOfMonth as H, getDate as Jr, getDaysInMonth as os, endOfDay as B, startOfDay as re, setDate as cs, startOfWeek as te, addWeeks as dr, differenceInCalendarDays as je, addDays as se, subDays as Ye, addBusinessDays as ls, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as us, startOfTomorrow as ps, endOfYesterday as hs, startOfYesterday as gs, endOfToday as fs, startOfQuarter as Oe, endOfQuarter as Ge, addYears as hr, addQuarters as gr, subYears as fr, subQuarters as mr, subMonths as yr, subWeeks as Kr, addSeconds as ms } from "date-fns";
10
+ import ys, { CanceledError as as } from "axios";
11
11
  class be {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -107,11 +107,11 @@ class be {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = gt(r), t = new be(Nr(e));
110
+ const e = ft(r), t = new be(Nr(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class at extends be {
114
+ class vt extends be {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,11 +151,11 @@ 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 = ft(e), i = new vt(Nr(t));
155
+ return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class as {
158
+ class ws {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -177,7 +177,7 @@ class as {
177
177
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
178
178
  }
179
179
  }
180
- class ws {
180
+ class vs {
181
181
  /**
182
182
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
183
183
  *
@@ -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,12 +239,12 @@ 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
  }
246
246
  }
247
- class vs {
247
+ class Ds {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -283,7 +283,7 @@ class vs {
283
283
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
284
284
  }
285
285
  }
286
- class Ds {
286
+ class Rs {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -330,43 +330,43 @@ class Ds {
330
330
  * @inheritDoc
331
331
  */
332
332
  s(this, "numberPrecision");
333
- var e, t, n, o;
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({
333
+ var e, t, i, o;
334
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new vs(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ws(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Cs({
335
335
  environment: this.environment,
336
336
  ...r == null ? void 0 : r.sentry
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 = {
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 Ds(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 = v(new Rs());
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 || Vr(_(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 && !Vr(_(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 Xr(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 = v(
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
  );
@@ -497,18 +497,18 @@ const we = ue("common.auth_state_private", () => {
497
497
  const c = (u = S().config.devMode) == null ? void 0 : u.initAuthBearerToken;
498
498
  return c ? Promise.resolve(c) : void 0;
499
499
  })()
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) => {
500
+ ), r = v(void 0), e = v(void 0), t = is(/* @__PURE__ */ new Map());
501
+ function i() {
502
+ e.value = void 0, m(n.value) || n.value.then((o) => {
503
503
  const c = be.getJwtPayload(o);
504
- e.value = c.exp * 1e3 > Date.now() ? ft(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
504
+ e.value = c.exp * 1e3 > Date.now() ? mt(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
505
505
  }).catch(R);
506
506
  }
507
507
  return {
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, Xr(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, Xr(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
- c.userPermissions = a.exp * 1e3 > Date.now() ? ft(a.resourceAccess, (T) => (T == null ? void 0 : T.roles) ?? []) : void 0;
555
+ c.userPermissions = a.exp * 1e3 > Date.now() ? mt(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 = Vt(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) ? Yt(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,7 +679,7 @@ class O {
679
679
  static parse(r) {
680
680
  if (m(r))
681
681
  return;
682
- const e = _(r) ? I(r) : r;
682
+ const e = I(r) ? _(r) : r;
683
683
  return Qr(e) ? e : void 0;
684
684
  }
685
685
  /**
@@ -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»." : yt(e, "-") || Qt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Jt(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,10 +848,10 @@ 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
- class mi extends de {
854
+ class yi extends de {
855
855
  /**
856
856
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
857
857
  *
@@ -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
  /**
@@ -998,7 +998,7 @@ const w = class w {
998
998
  * @param request Данные запроса.
999
999
  */
1000
1000
  // eslint-disable-next-line class-methods-use-this
1001
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Jt(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
1001
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Kt(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
1002
1002
  /**
1003
1003
  * Перехватчик ошибок ответов на запрос.
1004
1004
  *
@@ -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
  }
@@ -1029,7 +1029,7 @@ const w = class w {
1029
1029
  s(this, "canceledResponseInterceptor", (r) => {
1030
1030
  const e = r.rawError ?? r;
1031
1031
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1032
- throw new ys("Request canceled");
1032
+ throw new as("Request canceled");
1033
1033
  return Promise.reject(r);
1034
1034
  });
1035
1035
  /**
@@ -1039,33 +1039,33 @@ const w = class w {
1039
1039
  */
1040
1040
  // eslint-disable-next-line class-methods-use-this
1041
1041
  s(this, "dataConverterResponseInterceptor", (r) => (r.data = w.toCamelCaseData(r.data), r));
1042
- this.httpClient = ms.create({
1042
+ this.httpClient = ys.create({
1043
1043
  headers: {
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, если значение является обычным объектом или массивом.
@@ -1110,7 +1110,39 @@ const w = class w {
1110
1110
  * @param data Исходные данные.
1111
1111
  */
1112
1112
  static toSnakeCaseData(r) {
1113
- return w.canConvertCaseKeys(r) ? ts(r) : r;
1113
+ return w.canConvertCaseKeys(r) ? ss(r) : r;
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) || !yt(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
+ }
1114
1146
  }
1115
1147
  /**
1116
1148
  * Сбрасывает токен и запускает одно обновление на все параллельные ответы 401.
@@ -1118,8 +1150,8 @@ const w = class w {
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,13 +1183,16 @@ const w = class w {
1151
1183
  * @param error Данные об ошибке.
1152
1184
  */
1153
1185
  static toHttpResponseError(r) {
1154
- return Xe(r) && "status" in r ? r : {
1186
+ if (Ze(r) && "status" in r)
1187
+ return r;
1188
+ const e = Wr(r) ? r.message : "Не удалось обработать данные ответа сервера.";
1189
+ return jr(new Error(e), {
1190
+ name: "HttpResponseError",
1155
1191
  status: 0,
1156
1192
  statusText: "Invalid response data",
1157
- message: zr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1158
1193
  headers: {},
1159
- rawError: zr(r) ? r : new Error(String(r))
1160
- };
1194
+ rawError: Wr(r) ? r : new Error(String(r))
1195
+ });
1161
1196
  }
1162
1197
  /**
1163
1198
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1165,17 +1200,20 @@ const w = class w {
1165
1200
  * @param error Данные об ошибке.
1166
1201
  */
1167
1202
  static convertHttpErrorResponse(r) {
1203
+ var e, t;
1168
1204
  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);
1170
- 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,
1177
- rawError: r
1178
- });
1205
+ const i = m(r) ? {} : r == null ? void 0 : r.response;
1206
+ return Promise.reject(
1207
+ jr(new Error(((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
1208
+ name: "HttpResponseError",
1209
+ status: (i == null ? void 0 : i.status) ?? 0,
1210
+ statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
1211
+ errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
1212
+ headers: (i == null ? void 0 : i.headers) ?? {},
1213
+ data: i == null ? void 0 : i.data,
1214
+ rawError: r
1215
+ })
1216
+ );
1179
1217
  }
1180
1218
  return Promise.reject(r);
1181
1219
  }
@@ -1187,10 +1225,10 @@ const w = class w {
1187
1225
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1188
1226
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1189
1227
  */
1190
- request(r, e = void 0, t = {}, n = !1) {
1228
+ request(r, e = void 0, t = {}, i = !1) {
1191
1229
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1192
1230
  return o.catch((c) => {
1193
- (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, n);
1231
+ (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, i);
1194
1232
  }), o;
1195
1233
  }
1196
1234
  /**
@@ -1202,8 +1240,8 @@ const w = class w {
1202
1240
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1203
1241
  * @param signal Сигнал отмены запроса.
1204
1242
  */
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);
1243
+ get(r, e = {}, t = void 0, i = !1, o = void 0) {
1244
+ return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, i);
1207
1245
  }
1208
1246
  /**
1209
1247
  * Выполняет get-запрос и возвращает список экземпляров указанного класса.
@@ -1215,12 +1253,12 @@ const w = class w {
1215
1253
  * @param signal Сигнал отмены запроса.
1216
1254
  */
1217
1255
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1218
- getTypedList(r, e, t = {}, n = !1, o = void 0) {
1256
+ getTypedList(r, e, t = {}, i = !1, o = void 0) {
1219
1257
  return this.get(
1220
1258
  e,
1221
1259
  t,
1222
- (c) => F.instanceListInitializer(r, c.data),
1223
- n,
1260
+ (c) => U.instanceListInitializer(r, c.data),
1261
+ i,
1224
1262
  o
1225
1263
  );
1226
1264
  }
@@ -1233,8 +1271,8 @@ const w = class w {
1233
1271
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1234
1272
  * @param signal Сигнал отмены запроса.
1235
1273
  */
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);
1274
+ getBlob(r, e = {}, t = void 0, i = !1, o = void 0) {
1275
+ return this.request({ method: "GET", url: r, params: e, responseType: "blob", signal: o }, t, {}, i);
1238
1276
  }
1239
1277
  /**
1240
1278
  * Выполняет patch-запрос с параметрами по умолчанию.
@@ -1246,8 +1284,8 @@ const w = class w {
1246
1284
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1247
1285
  * @param signal Сигнал отмены запроса.
1248
1286
  */
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);
1287
+ patch(r, e = {}, t = void 0, i = {}, o = !1, c = void 0) {
1288
+ return this.request({ method: "PATCH", url: r, data: e, signal: c }, t, i, o);
1251
1289
  }
1252
1290
  /**
1253
1291
  * Выполняет post-запрос с параметрами по умолчанию.
@@ -1259,8 +1297,8 @@ const w = class w {
1259
1297
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1260
1298
  * @param signal Сигнал отмены запроса.
1261
1299
  */
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);
1300
+ post(r, e = {}, t = void 0, i = {}, o = !1, c = void 0) {
1301
+ return this.request({ method: "POST", url: r, data: e, signal: c }, t, i, o);
1264
1302
  }
1265
1303
  /**
1266
1304
  * Выполняет delete-запрос с параметрами по умолчанию.
@@ -1270,8 +1308,8 @@ const w = class w {
1270
1308
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1271
1309
  * @param signal Сигнал отмены запроса.
1272
1310
  */
1273
- delete(r, e = void 0, t = !1, n = void 0) {
1274
- return this.request({ method: "DELETE", url: r, signal: n }, e, {}, t);
1311
+ delete(r, e = void 0, t = !1, i = void 0) {
1312
+ return this.request({ method: "DELETE", url: r, signal: i }, e, {}, t);
1275
1313
  }
1276
1314
  };
1277
1315
  /**
@@ -1293,8 +1331,8 @@ s(w, "defaultRequestHook"), /**
1293
1331
  */
1294
1332
  s(w, "tokenRefreshPromise");
1295
1333
  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 || {});
1297
- class Xr {
1334
+ 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 || {});
1335
+ class Zr {
1298
1336
  /**
1299
1337
  * Инициализирует экземпляр класса {@link FilterItem}.
1300
1338
  *
@@ -1325,9 +1363,9 @@ class Xr {
1325
1363
  field: this.field,
1326
1364
  op: this.op
1327
1365
  };
1328
- if (Ze(this.value))
1366
+ if (er(this.value))
1329
1367
  e.value = $(this.value, r);
1330
- else if (Kt(this.value)) {
1368
+ else if (Xt(this.value)) {
1331
1369
  const t = this.value;
1332
1370
  e.value = {
1333
1371
  from: t.from ? $(t.from, r) : null,
@@ -1358,7 +1396,7 @@ class ie {
1358
1396
  */
1359
1397
  s(this, "groups");
1360
1398
  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))) ?? [];
1399
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Zr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new ie(i))) ?? [];
1362
1400
  }
1363
1401
  /**
1364
1402
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1368,7 +1406,7 @@ class ie {
1368
1406
  toPrimitive() {
1369
1407
  return {
1370
1408
  groupOp: this.groupOp,
1371
- filters: this.filters.map((r) => r instanceof Xr && qr(r.toPrimitive) ? r.toPrimitive() : r),
1409
+ filters: this.filters.map((r) => r instanceof Zr && qr(r.toPrimitive) ? r.toPrimitive() : r),
1372
1410
  groups: this.groups.map((r) => r instanceof ie ? r.toPrimitive() : r)
1373
1411
  };
1374
1412
  }
@@ -1386,12 +1424,12 @@ class M extends h {
1386
1424
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
1387
1425
  * @param signal Сигнал отмены запроса.
1388
1426
  */
1389
- getPaginated(r, e, t, n, o, c, u, p = void 0) {
1427
+ getPaginated(r, e, t, i, o, c, u, p = void 0) {
1390
1428
  let g = {
1391
- page: (n == null ? void 0 : n.page) ?? 1,
1392
- perPage: (n == null ? void 0 : n.pageSize) ?? 10
1429
+ page: (i == null ? void 0 : i.page) ?? 1,
1430
+ perPage: (i == null ? void 0 : i.pageSize) ?? 10
1393
1431
  };
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);
1432
+ 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
1433
  }
1396
1434
  /**
1397
1435
  * Получает пагинированный список экземпляров указанного класса.
@@ -1405,16 +1443,16 @@ class M extends h {
1405
1443
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
1406
1444
  * @param signal Сигнал отмены запроса.
1407
1445
  */
1408
- getTypedPaginated(r, e, t, n, o, c, u, p = void 0) {
1446
+ getTypedPaginated(r, e, t, i, o, c, u, p = void 0) {
1409
1447
  return this.getPaginated(
1410
1448
  e,
1411
1449
  t,
1412
- n,
1450
+ i,
1413
1451
  o,
1414
1452
  c,
1415
1453
  (g) => ({
1416
1454
  ...g.data,
1417
- data: F.instanceListInitializer(r, g.data.data)
1455
+ data: U.instanceListInitializer(r, g.data.data)
1418
1456
  }),
1419
1457
  u,
1420
1458
  p
@@ -1451,10 +1489,10 @@ class Sr extends M {
1451
1489
  * @see /doc/api/internal#/operations/api_internal_blog_get_list
1452
1490
  */
1453
1491
  getPostList(r, e, t) {
1454
- return this.getPaginated("/internal/blog", r, e, t, {}, (n) => ({
1455
- ...n.data,
1492
+ return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1493
+ ...i.data,
1456
1494
  // eslint-disable-next-line lodash/prefer-lodash-method
1457
- data: n.data.data.map((o) => new Fe(o))
1495
+ data: i.data.data.map((o) => new Ue(o))
1458
1496
  }));
1459
1497
  }
1460
1498
  /**
@@ -1492,7 +1530,7 @@ class Sr extends M {
1492
1530
  * @see /doc/api/internal#/operations/api_internal_blog_update
1493
1531
  */
1494
1532
  updatePost(r, e, t = {}) {
1495
- return this.patch(`/internal/blog/${r}`, Sr.preparePostSaveData(e), (n) => new ar(n.data), t);
1533
+ return this.patch(`/internal/blog/${r}`, Sr.preparePostSaveData(e), (i) => new ar(i.data), t);
1496
1534
  }
1497
1535
  /**
1498
1536
  * Удаляет статью блога.
@@ -1517,14 +1555,14 @@ class Sr extends M {
1517
1555
  *
1518
1556
  * @see /doc/api/internal#/operations/api_internal_blog_upload_media
1519
1557
  */
1520
- uploadMedia(r, e, t, n, o = {}) {
1558
+ uploadMedia(r, e, t, i, o = {}) {
1521
1559
  return this.request(
1522
1560
  {
1523
1561
  method: "POST",
1524
1562
  url: `/internal/blog/${r}/media`,
1525
1563
  data: { file: e, isCover: t ?? !1 },
1526
1564
  onUploadProgress: (c) => {
1527
- n && n(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1565
+ i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1528
1566
  }
1529
1567
  },
1530
1568
  (c) => new Ar(c.data),
@@ -1543,12 +1581,12 @@ class Sr extends M {
1543
1581
  *
1544
1582
  * @see /doc/api/internal#/operations/api_internal_blog_update_media
1545
1583
  */
1546
- updateMedia(r, e, t, n = {}) {
1584
+ updateMedia(r, e, t, i = {}) {
1547
1585
  return this.patch(
1548
1586
  `/internal/blog/${r}/media/${e}`,
1549
1587
  { isCover: t },
1550
1588
  (o) => new Ar(o.data),
1551
- n
1589
+ i
1552
1590
  );
1553
1591
  }
1554
1592
  /**
@@ -1583,10 +1621,10 @@ class N extends pe {
1583
1621
  * @inheritdoc
1584
1622
  */
1585
1623
  nameOrGuid() {
1586
- return V(this.name) ? this.guid : this.name;
1624
+ return Q(this.name) ? this.guid : this.name;
1587
1625
  }
1588
1626
  }
1589
- class sr extends N {
1627
+ class ir extends N {
1590
1628
  /**
1591
1629
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1592
1630
  *
@@ -1605,7 +1643,7 @@ class sr extends N {
1605
1643
  this.createdAt = O.parse(e == null ? void 0 : e.createdAt), this.updatedAt = O.parse(e == null ? void 0 : e.updatedAt);
1606
1644
  }
1607
1645
  }
1608
- class ir extends sr {
1646
+ class nr extends ir {
1609
1647
  /**
1610
1648
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1611
1649
  *
@@ -1639,7 +1677,7 @@ class q extends N {
1639
1677
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1640
1678
  }
1641
1679
  }
1642
- class Fr extends ir {
1680
+ class Ur extends nr {
1643
1681
  /**
1644
1682
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1645
1683
  *
@@ -1674,7 +1712,7 @@ class Fr extends ir {
1674
1712
  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
1713
  }
1676
1714
  }
1677
- class ve extends sr {
1715
+ class Ce extends ir {
1678
1716
  /**
1679
1717
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1680
1718
  *
@@ -1693,8 +1731,8 @@ class ve extends sr {
1693
1731
  this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1694
1732
  }
1695
1733
  }
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 || {});
1697
- class v extends N {
1734
+ var Ct = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ct || {});
1735
+ class C extends N {
1698
1736
  /**
1699
1737
  * Инициализирует экземпляр класса {@link Reference}.
1700
1738
  *
@@ -1713,21 +1751,21 @@ class v extends N {
1713
1751
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
1714
1752
  }
1715
1753
  }
1716
- class he extends v {
1754
+ class he extends C {
1717
1755
  /**
1718
1756
  * Возвращает значение справочника коэффициента розничной цены.
1719
1757
  */
1720
1758
  static getRetailPriceCoefficient() {
1721
1759
  const r = new he({
1722
1760
  id: -2,
1723
- slug: wt.Retail,
1761
+ slug: Ct.Retail,
1724
1762
  name: "Розн. цена",
1725
1763
  guid: ""
1726
1764
  });
1727
- return r.isNewRec = Xt(!0), r;
1765
+ return r.isNewRec = Zt(!0), r;
1728
1766
  }
1729
1767
  }
1730
- class Ur {
1768
+ class Fr {
1731
1769
  /**
1732
1770
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1733
1771
  *
@@ -1757,7 +1795,7 @@ class Ur {
1757
1795
  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
1796
  }
1759
1797
  }
1760
- class Ct {
1798
+ class Dt {
1761
1799
  /**
1762
1800
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1763
1801
  *
@@ -1775,9 +1813,9 @@ class Ct {
1775
1813
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1776
1814
  }
1777
1815
  }
1778
- class X extends v {
1816
+ class X extends C {
1779
1817
  }
1780
- class He extends v {
1818
+ class He extends C {
1781
1819
  /**
1782
1820
  * Инициализирует экземпляр класса {@link Warehouse}.
1783
1821
  *
@@ -1806,10 +1844,10 @@ class He extends v {
1806
1844
  * Координаты склада.
1807
1845
  */
1808
1846
  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);
1847
+ 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 Dt(e == null ? void 0 : e.coordinates);
1810
1848
  }
1811
1849
  }
1812
- class Rs {
1850
+ class Ps {
1813
1851
  /**
1814
1852
  * Инициализирует экземпляр класса {@link StockCount}.
1815
1853
  *
@@ -1854,7 +1892,7 @@ class J extends N {
1854
1892
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1855
1893
  }
1856
1894
  }
1857
- class Zr extends N {
1895
+ class et extends N {
1858
1896
  /**
1859
1897
  * Инициализирует экземпляр класса {@link ProductUnit}.
1860
1898
  *
@@ -1881,7 +1919,7 @@ class Zr extends N {
1881
1919
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1882
1920
  }
1883
1921
  }
1884
- class Ue extends N {
1922
+ class Fe extends N {
1885
1923
  /**
1886
1924
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1887
1925
  *
@@ -1896,7 +1934,7 @@ class Ue extends N {
1896
1934
  this.code = (e == null ? void 0 : e.code) ?? "";
1897
1935
  }
1898
1936
  }
1899
- class vt extends Ue {
1937
+ class Rt extends Fe {
1900
1938
  /**
1901
1939
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1902
1940
  *
@@ -1915,7 +1953,7 @@ class vt extends Ue {
1915
1953
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1916
1954
  }
1917
1955
  }
1918
- class Ps extends vt {
1956
+ class Ts extends Rt {
1919
1957
  /**
1920
1958
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1921
1959
  *
@@ -1930,7 +1968,7 @@ class Ps extends vt {
1930
1968
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1931
1969
  }
1932
1970
  }
1933
- class Ts {
1971
+ class bs {
1934
1972
  /**
1935
1973
  * Инициализирует экземпляр класса {@link Image}.
1936
1974
  *
@@ -1953,7 +1991,7 @@ class Ts {
1953
1991
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1954
1992
  }
1955
1993
  }
1956
- class $r extends vt {
1994
+ class $r extends Rt {
1957
1995
  /**
1958
1996
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1959
1997
  *
@@ -1968,14 +2006,14 @@ class $r extends vt {
1968
2006
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1969
2007
  }
1970
2008
  }
1971
- class E extends Ps {
2009
+ class E extends Ts {
1972
2010
  /**
1973
2011
  * Инициализирует экземпляр класса {@link Product}.
1974
2012
  *
1975
2013
  * @param data Данные для первоначальной инициализации.
1976
2014
  */
1977
2015
  constructor(e) {
1978
- var n, o, c, u;
2016
+ var i, o, c, u;
1979
2017
  super(e);
1980
2018
  /**
1981
2019
  * Артикул производителя/поставщика.
@@ -2045,9 +2083,9 @@ class E extends Ps {
2045
2083
  * Список коэффициентов цен на продукт.
2046
2084
  */
2047
2085
  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";
2086
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new et(e.unit) : new et(), 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 Ps(p))) ?? [], this.type = "product";
2049
2087
  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);
2088
+ 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 bs(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
2089
  }
2052
2090
  /**
2053
2091
  * Возвращает признак, что это измеряемый товар.
@@ -2068,7 +2106,7 @@ class E extends Ps {
2068
2106
  return this.retailCostRub ?? this.costRub;
2069
2107
  }
2070
2108
  }
2071
- var Mr = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Mr || {});
2109
+ var Mr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Mr || {});
2072
2110
  class Pe extends E {
2073
2111
  /**
2074
2112
  * Инициализирует экземпляр класса {@link ClientProduct}.
@@ -2113,7 +2151,7 @@ class Pe extends E {
2113
2151
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2114
2152
  */
2115
2153
  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;
2154
+ 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 Ce(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
2155
  }
2118
2156
  }
2119
2157
  class ge extends $r {
@@ -2140,10 +2178,10 @@ class ge extends $r {
2140
2178
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2141
2179
  */
2142
2180
  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;
2181
+ 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]) => [es(t), i])) : void 0;
2144
2182
  }
2145
2183
  }
2146
- class Dt extends pe {
2184
+ class Pt extends pe {
2147
2185
  /**
2148
2186
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2149
2187
  *
@@ -2219,10 +2257,10 @@ class Dt extends pe {
2219
2257
  * @inheritDoc
2220
2258
  */
2221
2259
  s(this, "replacementId");
2222
- 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;
2260
+ 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 && rs(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
2261
  }
2224
2262
  }
2225
- let Hr = class extends Dt {
2263
+ let Hr = class extends Pt {
2226
2264
  /**
2227
2265
  * Инициализирует экземпляр класса {@link OrderItem}.
2228
2266
  *
@@ -2266,7 +2304,7 @@ let Hr = class extends Dt {
2266
2304
  * @inheritDoc
2267
2305
  */
2268
2306
  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);
2307
+ 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
2308
  }
2271
2309
  };
2272
2310
  class Le {
@@ -2291,7 +2329,7 @@ class Le {
2291
2329
  this.items = r.items.map((e) => new Hr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2292
2330
  }
2293
2331
  }
2294
- class ai extends h {
2332
+ class wi extends h {
2295
2333
  /**
2296
2334
  * Возвращает содержимое корзины указанного клиента.
2297
2335
  *
@@ -2338,7 +2376,7 @@ class ai extends h {
2338
2376
  is_additional_sale: e.isAdditionalSale,
2339
2377
  ...e.configuratorParams
2340
2378
  },
2341
- (n) => new Le(n.data),
2379
+ (i) => new Le(i.data),
2342
2380
  t
2343
2381
  );
2344
2382
  }
@@ -2368,7 +2406,7 @@ class ai extends h {
2368
2406
  is_additional_sale: e.isAdditionalSale,
2369
2407
  ...e.configuratorParams
2370
2408
  },
2371
- (n) => new Le(n.data),
2409
+ (i) => new Le(i.data),
2372
2410
  t
2373
2411
  );
2374
2412
  }
@@ -2405,7 +2443,7 @@ class ai extends h {
2405
2443
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2406
2444
  }
2407
2445
  }
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 || {});
2446
+ var ds = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ds || {}), As = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(As || {}), Tt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(Tt || {});
2409
2447
  class Y extends ge {
2410
2448
  /**
2411
2449
  * Инициализирует экземпляр класса {@link Category}.
@@ -2413,7 +2451,7 @@ class Y extends ge {
2413
2451
  * @param data Данные для первоначальной инициализации.
2414
2452
  */
2415
2453
  constructor(e) {
2416
- var t, n;
2454
+ var t, i;
2417
2455
  super(e);
2418
2456
  /**
2419
2457
  * Данные о вложенных категориях.
@@ -2423,10 +2461,10 @@ class Y extends ge {
2423
2461
  * Список продуктов категории.
2424
2462
  */
2425
2463
  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));
2464
+ 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
2465
  }
2428
2466
  }
2429
- class Pt {
2467
+ class bt {
2430
2468
  /**
2431
2469
  * Инициализирует экземпляр класса {@link ContactLinks}.
2432
2470
  *
@@ -2444,9 +2482,9 @@ class Pt {
2444
2482
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2445
2483
  }
2446
2484
  }
2447
- class U extends v {
2485
+ class F extends C {
2448
2486
  }
2449
- class Br extends sr {
2487
+ class Br extends ir {
2450
2488
  /**
2451
2489
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2452
2490
  *
@@ -2474,12 +2512,12 @@ class Br extends sr {
2474
2512
  * @inheritDoc
2475
2513
  */
2476
2514
  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;
2515
+ 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 bt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2478
2516
  }
2479
2517
  }
2480
- class Gr extends v {
2518
+ class Gr extends C {
2481
2519
  }
2482
- class Tt extends N {
2520
+ class dt extends N {
2483
2521
  /**
2484
2522
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2485
2523
  *
@@ -2502,7 +2540,7 @@ class Tt extends N {
2502
2540
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2503
2541
  }
2504
2542
  }
2505
- class nr extends N {
2543
+ class or extends N {
2506
2544
  /**
2507
2545
  * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
2508
2546
  *
@@ -2524,7 +2562,7 @@ class Z extends Br {
2524
2562
  * @param data Данные для первоначальной инициализации.
2525
2563
  */
2526
2564
  constructor(e) {
2527
- var t, n, o;
2565
+ var t, i, o;
2528
2566
  super(e);
2529
2567
  /**
2530
2568
  * Признак активности учетной записи менеджера.
@@ -2570,10 +2608,10 @@ class Z extends Br {
2570
2608
  * Дата и время последнего входа в систему.
2571
2609
  */
2572
2610
  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;
2611
+ 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 dt(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
2612
  }
2575
2613
  }
2576
- class As extends ge {
2614
+ class Ss extends ge {
2577
2615
  /**
2578
2616
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2579
2617
  *
@@ -2604,14 +2642,14 @@ class As extends ge {
2604
2642
  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
2643
  }
2606
2644
  }
2607
- class er extends As {
2645
+ class rr extends Ss {
2608
2646
  /**
2609
2647
  * Инициализирует экземпляр класса {@link ClientCategory}.
2610
2648
  *
2611
2649
  * @param data Данные для первоначальной инициализации.
2612
2650
  */
2613
2651
  constructor(e) {
2614
- var t, n;
2652
+ var t, i;
2615
2653
  super(e);
2616
2654
  /**
2617
2655
  * Данные о вложенных категориях.
@@ -2621,10 +2659,10 @@ class er extends As {
2621
2659
  * Список продуктов категории.
2622
2660
  */
2623
2661
  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));
2662
+ 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
2663
  }
2626
2664
  }
2627
- class bt {
2665
+ class At {
2628
2666
  /**
2629
2667
  * Инициализирует экземпляр класса {@link PriceCatalogableItem}.
2630
2668
  *
@@ -2642,7 +2680,7 @@ class bt {
2642
2680
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new he(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2643
2681
  }
2644
2682
  }
2645
- class dt extends bt {
2683
+ class St extends At {
2646
2684
  /**
2647
2685
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2648
2686
  *
@@ -2652,7 +2690,7 @@ class dt extends bt {
2652
2690
  super(r);
2653
2691
  }
2654
2692
  }
2655
- class wr extends dt {
2693
+ class wr extends St {
2656
2694
  /**
2657
2695
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2658
2696
  *
@@ -2667,7 +2705,7 @@ class wr extends dt {
2667
2705
  this.productCategory = new ge(e == null ? void 0 : e.productCategory);
2668
2706
  }
2669
2707
  }
2670
- class Wr extends N {
2708
+ class zr extends N {
2671
2709
  /**
2672
2710
  * Инициализирует экземпляр класса {@link Curator}.
2673
2711
  *
@@ -2687,12 +2725,12 @@ class Wr extends N {
2687
2725
  * @inheritDoc
2688
2726
  */
2689
2727
  s(this, "curatedDirection");
2690
- this.photo = e.photo, this.contacts = new Pt(e.contacts), this.curatedDirection = new Gr(e.curatedDirection);
2728
+ this.photo = e.photo, this.contacts = new bt(e.contacts), this.curatedDirection = new Gr(e.curatedDirection);
2691
2729
  }
2692
2730
  }
2693
- class Te extends v {
2731
+ class Te extends C {
2694
2732
  }
2695
- class ne extends v {
2733
+ class ne extends C {
2696
2734
  /**
2697
2735
  * Инициализирует экземпляр класса {@link Region}.
2698
2736
  *
@@ -2707,7 +2745,7 @@ class ne extends v {
2707
2745
  e && (this.country = new Te(e.country));
2708
2746
  }
2709
2747
  }
2710
- class ee extends v {
2748
+ class ee extends C {
2711
2749
  /**
2712
2750
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2713
2751
  *
@@ -2722,7 +2760,7 @@ class ee extends v {
2722
2760
  e && (this.region = new ne(e.region));
2723
2761
  }
2724
2762
  }
2725
- class At extends sr {
2763
+ class $t extends ir {
2726
2764
  /**
2727
2765
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2728
2766
  *
@@ -2754,10 +2792,10 @@ class At extends sr {
2754
2792
  * Признак активности учетной записи пользователя.
2755
2793
  */
2756
2794
  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;
2795
+ 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
2796
  }
2759
2797
  }
2760
- class fe extends At {
2798
+ class fe extends $t {
2761
2799
  /**
2762
2800
  * Инициализирует экземпляр класса {@link Client}.
2763
2801
  *
@@ -2765,7 +2803,7 @@ class fe extends At {
2765
2803
  */
2766
2804
  // eslint-disable-next-line sonarjs/cognitive-complexity
2767
2805
  constructor(e) {
2768
- var t, n;
2806
+ var t, i;
2769
2807
  super(e);
2770
2808
  /**
2771
2809
  * Направление продаж.
@@ -2803,10 +2841,10 @@ class fe extends At {
2803
2841
  * @inheritDoc
2804
2842
  */
2805
2843
  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;
2844
+ 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
2845
  }
2808
2846
  }
2809
- class Ss extends tr {
2847
+ class $s extends sr {
2810
2848
  /**
2811
2849
  * Инициализирует экземпляр класса {@link DeletableIdentity}.
2812
2850
  *
@@ -2822,7 +2860,7 @@ class Ss extends tr {
2822
2860
  this.deletedAt = O.parse(e == null ? void 0 : e.deletedAt);
2823
2861
  }
2824
2862
  }
2825
- class xe extends Ss {
2863
+ class xe extends $s {
2826
2864
  /**
2827
2865
  * Инициализирует новый экземпляр класса.
2828
2866
  *
@@ -2838,10 +2876,10 @@ class xe extends Ss {
2838
2876
  * Данные шаблона прайс-листа.
2839
2877
  */
2840
2878
  s(this, "priceTemplate");
2841
- this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new ve(e == null ? void 0 : e.priceTemplate);
2879
+ this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new Ce(e == null ? void 0 : e.priceTemplate);
2842
2880
  }
2843
2881
  }
2844
- class Cr extends dt {
2882
+ class vr extends St {
2845
2883
  /**
2846
2884
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2847
2885
  *
@@ -2856,7 +2894,7 @@ class Cr extends dt {
2856
2894
  this.product = new E(e == null ? void 0 : e.product);
2857
2895
  }
2858
2896
  }
2859
- class St extends v {
2897
+ class kt extends C {
2860
2898
  }
2861
2899
  class De extends N {
2862
2900
  /**
@@ -2882,10 +2920,10 @@ class De extends N {
2882
2920
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2883
2921
  */
2884
2922
  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;
2923
+ this.type = new kt(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
2924
  }
2887
2925
  }
2888
- class Ce {
2926
+ class ve {
2889
2927
  /**
2890
2928
  * Инициализирует экземпляр класса {@link PropertyValue}.
2891
2929
  *
@@ -2904,7 +2942,7 @@ class Ce {
2904
2942
  this.property = new De(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2905
2943
  }
2906
2944
  }
2907
- class wi {
2945
+ class vi {
2908
2946
  /**
2909
2947
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2910
2948
  *
@@ -2964,16 +3002,16 @@ class wi {
2964
3002
  * только актуальные данные.
2965
3003
  */
2966
3004
  asClearRaw() {
2967
- var e, t, n, o;
3005
+ var e, t, i, o;
2968
3006
  const r = {};
2969
3007
  return Object.keys(this).forEach((c) => {
2970
3008
  const u = this[c];
2971
3009
  // 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;
3010
+ m(u) || I(u) && u.trim().length === 0 || qr(u.isNewRec) && u.isNewRec() || (r[c] = u);
3011
+ }), !((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
3012
  }
2975
3013
  }
2976
- class $t extends bt {
3014
+ class Ot extends At {
2977
3015
  /**
2978
3016
  * Инициализирует экземпляр класса {@link ClientPriceCatalogableItem}.
2979
3017
  *
@@ -2992,7 +3030,7 @@ class $t extends bt {
2992
3030
  this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = O.parse(e == null ? void 0 : e.createdAt);
2993
3031
  }
2994
3032
  }
2995
- class vr extends $t {
3033
+ class Cr extends Ot {
2996
3034
  /**
2997
3035
  * Инициализирует экземпляр класса {@link ClientPriceProduct}.
2998
3036
  *
@@ -3007,7 +3045,7 @@ class vr extends $t {
3007
3045
  this.product = new E(e == null ? void 0 : e.product);
3008
3046
  }
3009
3047
  }
3010
- class et extends $t {
3048
+ class rt extends Ot {
3011
3049
  /**
3012
3050
  * Инициализирует экземпляр класса {@link ClientPriceCategory}.
3013
3051
  *
@@ -3057,7 +3095,7 @@ class Ie extends N {
3057
3095
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
3058
3096
  }
3059
3097
  }
3060
- class rt {
3098
+ class tt {
3061
3099
  /**
3062
3100
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
3063
3101
  *
@@ -3079,7 +3117,7 @@ class rt {
3079
3117
  this.role = new Ie(r == null ? void 0 : r.role), this.category = new ge(r == null ? void 0 : r.category), this.minCoefficient = new he(r == null ? void 0 : r.minCoefficient);
3080
3118
  }
3081
3119
  }
3082
- class $s {
3120
+ class ks {
3083
3121
  /**
3084
3122
  * Инициализирует экземпляр класса {@link FilterSettings}.
3085
3123
  *
@@ -3112,7 +3150,7 @@ class $s {
3112
3150
  this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
3113
3151
  }
3114
3152
  }
3115
- class tt {
3153
+ class st {
3116
3154
  /**
3117
3155
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
3118
3156
  *
@@ -3131,10 +3169,10 @@ class tt {
3131
3169
  * @inheritDoc
3132
3170
  */
3133
3171
  s(this, "settings");
3134
- this.category = new ge(r == null ? void 0 : r.category), this.property = new De(r == null ? void 0 : r.property), this.settings = new $s(r == null ? void 0 : r.settings);
3172
+ this.category = new ge(r == null ? void 0 : r.category), this.property = new De(r == null ? void 0 : r.property), this.settings = new ks(r == null ? void 0 : r.settings);
3135
3173
  }
3136
3174
  }
3137
- class ks {
3175
+ class Os {
3138
3176
  /**
3139
3177
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
3140
3178
  *
@@ -3152,7 +3190,7 @@ class ks {
3152
3190
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
3153
3191
  }
3154
3192
  }
3155
- class Os {
3193
+ class Ls {
3156
3194
  /**
3157
3195
  * Инициализирует экземпляр класса {@link CategoryFilter}.
3158
3196
  *
@@ -3195,7 +3233,7 @@ class Os {
3195
3233
  */
3196
3234
  s(this, "max");
3197
3235
  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;
3236
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? Tt.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new Os(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3199
3237
  }
3200
3238
  }
3201
3239
  class Ci extends h {
@@ -3224,12 +3262,12 @@ class Ci extends h {
3224
3262
  * @see /doc/api/internal#/operations/api_internal_price_export
3225
3263
  */
3226
3264
  // eslint-disable-next-line class-methods-use-this
3227
- getPriceExportLink(r = "csv", e = !1, t = void 0, n = void 0) {
3265
+ getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3228
3266
  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;
3267
+ return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3230
3268
  }
3231
3269
  }
3232
- class vi extends h {
3270
+ class Di extends h {
3233
3271
  /**
3234
3272
  * Импортирует цены клиента из CSV файла.
3235
3273
  *
@@ -3250,7 +3288,7 @@ class vi extends h {
3250
3288
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_get_list
3251
3289
  */
3252
3290
  getCategoryPrices(r) {
3253
- return this.getTypedList(et, `/internal/clients/${r}/price/categories`);
3291
+ return this.getTypedList(rt, `/internal/clients/${r}/price/categories`);
3254
3292
  }
3255
3293
  /**
3256
3294
  * Возвращает цену прайс-листа клиента, установленную на категорию.
@@ -3261,7 +3299,7 @@ class vi extends h {
3261
3299
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_get
3262
3300
  */
3263
3301
  getCategoryPrice(r, e) {
3264
- return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new et(t.data));
3302
+ return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new rt(t.data));
3265
3303
  }
3266
3304
  /**
3267
3305
  * Устанавливает цену прайс-листа клиента на категорию.
@@ -3273,7 +3311,7 @@ class vi extends h {
3273
3311
  *
3274
3312
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_update
3275
3313
  */
3276
- updateCategoryPrices(r, e, t, n = !1) {
3314
+ updateCategoryPrices(r, e, t, i = !1) {
3277
3315
  var o;
3278
3316
  return this.request({
3279
3317
  method: "PATCH",
@@ -3282,7 +3320,7 @@ class vi extends h {
3282
3320
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3283
3321
  increase_percent: t.value
3284
3322
  },
3285
- params: n ? { recursively: !0 } : {}
3323
+ params: i ? { recursively: !0 } : {}
3286
3324
  });
3287
3325
  }
3288
3326
  /**
@@ -3393,7 +3431,7 @@ class vi extends h {
3393
3431
  * @see /doc/api/internal#/operations/api_internal_client_price_products_get_list
3394
3432
  */
3395
3433
  getProductPrices(r) {
3396
- return this.getTypedList(vr, `/internal/clients/${r}/price/products`);
3434
+ return this.getTypedList(Cr, `/internal/clients/${r}/price/products`);
3397
3435
  }
3398
3436
  /**
3399
3437
  * Возвращает цену прайс-листа клиента, установленную на продукт.
@@ -3404,7 +3442,7 @@ class vi extends h {
3404
3442
  * @see /doc/api/internal#/operations/api_internal_client_price_products_get
3405
3443
  */
3406
3444
  getProductPrice(r, e) {
3407
- return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new vr(t.data));
3445
+ return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new Cr(t.data));
3408
3446
  }
3409
3447
  /**
3410
3448
  * Устанавливает цену прайс-листа клиента на продукт.
@@ -3416,14 +3454,14 @@ class vi extends h {
3416
3454
  * @see /doc/api/internal#/operations/api_internal_client_price_products_update
3417
3455
  */
3418
3456
  updateProductPrice(r, e, t) {
3419
- var n;
3457
+ var i;
3420
3458
  return this.patch(
3421
3459
  `/internal/clients/${r}/price/products/${e}`,
3422
3460
  {
3423
- price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3461
+ price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3424
3462
  increase_percent: t.value
3425
3463
  },
3426
- (o) => new vr(o.data)
3464
+ (o) => new Cr(o.data)
3427
3465
  );
3428
3466
  }
3429
3467
  /**
@@ -3498,7 +3536,7 @@ class vi extends h {
3498
3536
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3499
3537
  }
3500
3538
  }
3501
- class Di extends h {
3539
+ class Ri extends h {
3502
3540
  /**
3503
3541
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3504
3542
  *
@@ -3529,12 +3567,12 @@ class Di extends h {
3529
3567
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3530
3568
  */
3531
3569
  attachTemplate(r, e, t) {
3532
- const n = S().config.dateFormats.api;
3570
+ const i = S().config.dateFormats.api;
3533
3571
  return this.post(
3534
3572
  `/internal/clients/${r}/price/templates/${e}`,
3535
3573
  t && {
3536
- startAt: t.startAt && $(t.startAt, n),
3537
- endAt: t.endAt && $(t.endAt, n)
3574
+ startAt: t.startAt && $(t.startAt, i),
3575
+ endAt: t.endAt && $(t.endAt, i)
3538
3576
  },
3539
3577
  (o) => new xe(o.data),
3540
3578
  {},
@@ -3562,13 +3600,13 @@ class Di extends h {
3562
3600
  *
3563
3601
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3564
3602
  */
3565
- changeTemplate(r, e, t, n) {
3603
+ changeTemplate(r, e, t, i) {
3566
3604
  const o = S().config.dateFormats.api;
3567
3605
  return this.patch(
3568
3606
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3569
- n && {
3570
- startAt: n.startAt && $(n.startAt, o),
3571
- endAt: n.endAt && $(n.endAt, o)
3607
+ i && {
3608
+ startAt: i.startAt && $(i.startAt, o),
3609
+ endAt: i.endAt && $(i.endAt, o)
3572
3610
  },
3573
3611
  (c) => new xe(c.data)
3574
3612
  );
@@ -3586,7 +3624,7 @@ class Di extends h {
3586
3624
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3587
3625
  }
3588
3626
  }
3589
- class Ri extends h {
3627
+ class Pi extends h {
3590
3628
  /**
3591
3629
  * Возвращает список данных о корневых категориях.
3592
3630
  *
@@ -3615,7 +3653,7 @@ class Ri extends h {
3615
3653
  showHidden: e,
3616
3654
  withNestedCategories: t
3617
3655
  },
3618
- (n) => new Y(n.data)
3656
+ (i) => new Y(i.data)
3619
3657
  );
3620
3658
  }
3621
3659
  /**
@@ -3642,7 +3680,7 @@ class Ri extends h {
3642
3680
  showHidden: t,
3643
3681
  withPriceCoefficients: e
3644
3682
  },
3645
- (n) => P(n.data, (o) => new E(o))
3683
+ (i) => P(i.data, (o) => new E(o))
3646
3684
  );
3647
3685
  }
3648
3686
  /**
@@ -3655,7 +3693,7 @@ class Ri extends h {
3655
3693
  getCategoryProductsCoefficients(r) {
3656
3694
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3657
3695
  const { data: t } = e;
3658
- return rs(t, (n) => n.map((o) => new Ur(o))), t;
3696
+ return ts(t, (i) => i.map((o) => new Fr(o))), t;
3659
3697
  });
3660
3698
  }
3661
3699
  /**
@@ -3665,16 +3703,16 @@ class Ri extends h {
3665
3703
  * @param limit Количество возвращаемых записей.
3666
3704
  */
3667
3705
  publicSimpleSearch(r, e = 10) {
3668
- return new Promise((t, n) => {
3706
+ return new Promise((t, i) => {
3669
3707
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3670
3708
  t(o.categories.map((c) => new Y(c)));
3671
3709
  }).catch((o) => {
3672
- n(o);
3710
+ i(o);
3673
3711
  });
3674
3712
  });
3675
3713
  }
3676
3714
  }
3677
- class Pi extends M {
3715
+ class Ti extends M {
3678
3716
  /**
3679
3717
  * Возвращает данные об указанном продукте.
3680
3718
  *
@@ -3705,7 +3743,7 @@ class Pi extends M {
3705
3743
  return this.get(
3706
3744
  `/internal/catalog/products/${r}/coefficients`,
3707
3745
  {},
3708
- (e) => P(e.data, (t) => new Ur(t))
3746
+ (e) => P(e.data, (t) => new Fr(t))
3709
3747
  );
3710
3748
  }
3711
3749
  /**
@@ -3718,9 +3756,9 @@ class Pi extends M {
3718
3756
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3719
3757
  */
3720
3758
  getNewProducts(r, e, t = !0) {
3721
- const n = S().config.dateFormats.api;
3759
+ const i = S().config.dateFormats.api;
3722
3760
  return this.getTypedPaginated(E, "/internal/catalog/products/new", void 0, void 0, e, {
3723
- period: { from: $(r, n) },
3761
+ period: { from: $(r, i) },
3724
3762
  withPriceCoefficients: t
3725
3763
  });
3726
3764
  }
@@ -3731,16 +3769,16 @@ class Pi extends M {
3731
3769
  * @param limit Количество возвращаемых записей.
3732
3770
  */
3733
3771
  publicSimpleSearch(r, e = 10) {
3734
- return new Promise((t, n) => {
3772
+ return new Promise((t, i) => {
3735
3773
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3736
3774
  t(o.products.map((c) => new E(c)));
3737
3775
  }).catch((o) => {
3738
- n(o);
3776
+ i(o);
3739
3777
  });
3740
3778
  });
3741
3779
  }
3742
3780
  }
3743
- class Ti extends h {
3781
+ class bi extends h {
3744
3782
  /**
3745
3783
  * Возвращает список данных о корневых категориях указанного клиента.
3746
3784
  *
@@ -3750,7 +3788,7 @@ class Ti extends h {
3750
3788
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3751
3789
  */
3752
3790
  getRootCategoriesList(r, e = !1) {
3753
- return this.getTypedList(er, "/internal/catalog/categories", {
3791
+ return this.getTypedList(rr, "/internal/catalog/categories", {
3754
3792
  clientId: r,
3755
3793
  showHidden: e
3756
3794
  });
@@ -3765,15 +3803,15 @@ class Ti extends h {
3765
3803
  *
3766
3804
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
3767
3805
  */
3768
- getCategoryData(r, e, t = !1, n = !1) {
3806
+ getCategoryData(r, e, t = !1, i = !1) {
3769
3807
  return this.get(
3770
3808
  `/internal/catalog/categories/${e}`,
3771
3809
  {
3772
3810
  clientId: r,
3773
3811
  showHidden: t,
3774
- withNestedCategories: n
3812
+ withNestedCategories: i
3775
3813
  },
3776
- (o) => new er(o.data)
3814
+ (o) => new rr(o.data)
3777
3815
  );
3778
3816
  }
3779
3817
  /**
@@ -3786,19 +3824,19 @@ class Ti extends h {
3786
3824
  *
3787
3825
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
3788
3826
  */
3789
- getCategoryProductsList(r, e, t = !0, n = !1) {
3827
+ getCategoryProductsList(r, e, t = !0, i = !1) {
3790
3828
  return this.get(
3791
3829
  `/internal/catalog/categories/${e}/products`,
3792
3830
  {
3793
3831
  client_id: r,
3794
- showHidden: n,
3832
+ showHidden: i,
3795
3833
  withPriceCoefficients: t
3796
3834
  },
3797
3835
  (o) => P(o.data, (c) => new Pe(c))
3798
3836
  );
3799
3837
  }
3800
3838
  }
3801
- class bi extends M {
3839
+ class di extends M {
3802
3840
  /**
3803
3841
  * Возвращает данные об указанном продукте для указанного клиента.
3804
3842
  *
@@ -3815,7 +3853,7 @@ class bi extends M {
3815
3853
  clientId: e,
3816
3854
  withPriceCoefficients: t
3817
3855
  },
3818
- (n) => new Pe(n.data)
3856
+ (i) => new Pe(i.data)
3819
3857
  );
3820
3858
  }
3821
3859
  /**
@@ -3828,16 +3866,16 @@ class bi extends M {
3828
3866
  *
3829
3867
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3830
3868
  */
3831
- getNewProducts(r, e, t, n = !0) {
3869
+ getNewProducts(r, e, t, i = !0) {
3832
3870
  const o = S().config.dateFormats.api;
3833
3871
  return this.getTypedPaginated(Pe, "/internal/catalog/products/new", void 0, void 0, t, {
3834
3872
  clientId: r,
3835
3873
  period: { from: $(e, o) },
3836
- withPriceCoefficients: n
3874
+ withPriceCoefficients: i
3837
3875
  });
3838
3876
  }
3839
3877
  }
3840
- class di extends M {
3878
+ class Ai extends M {
3841
3879
  /**
3842
3880
  * Возвращает список шаблонов прайс-листа.
3843
3881
  *
@@ -3848,7 +3886,7 @@ class di extends M {
3848
3886
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
3849
3887
  */
3850
3888
  getTemplateList(r, e, t) {
3851
- return this.getTypedPaginated(ve, "/internal/price/templates", r, e, t);
3889
+ return this.getTypedPaginated(Ce, "/internal/price/templates", r, e, t);
3852
3890
  }
3853
3891
  /**
3854
3892
  * Создание нового шаблона прайс-листа.
@@ -3860,7 +3898,7 @@ class di extends M {
3860
3898
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3861
3899
  */
3862
3900
  createTemplate(r, e = {}) {
3863
- return this.post("/internal/price/templates", r, (t) => new ve(t.data), e);
3901
+ return this.post("/internal/price/templates", r, (t) => new Ce(t.data), e);
3864
3902
  }
3865
3903
  /**
3866
3904
  * Возвращает данные о шаблоне прайс-листа.
@@ -3870,7 +3908,7 @@ class di extends M {
3870
3908
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3871
3909
  */
3872
3910
  getTemplate(r) {
3873
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new ve(e.data));
3911
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new Ce(e.data));
3874
3912
  }
3875
3913
  /**
3876
3914
  * Изменяет данные о шаблоне прайс-листа.
@@ -3883,7 +3921,7 @@ class di extends M {
3883
3921
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3884
3922
  */
3885
3923
  updateTemplate(r, e, t = {}) {
3886
- return this.patch(`/internal/price/templates/${r}`, e, (n) => new ve(n.data), t);
3924
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new Ce(i.data), t);
3887
3925
  }
3888
3926
  /**
3889
3927
  * Удаляет данные о шаблоне прайс-листа.
@@ -3903,7 +3941,7 @@ class di extends M {
3903
3941
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3904
3942
  */
3905
3943
  getProductTemplatePrices(r) {
3906
- return this.getTypedList(Cr, `/internal/price/templates/${r}/products`);
3944
+ return this.getTypedList(vr, `/internal/price/templates/${r}/products`);
3907
3945
  }
3908
3946
  /**
3909
3947
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3914,7 +3952,7 @@ class di extends M {
3914
3952
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3915
3953
  */
3916
3954
  getProductTemplatePrice(r, e) {
3917
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new Cr(t.data));
3955
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new vr(t.data));
3918
3956
  }
3919
3957
  /**
3920
3958
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3926,14 +3964,14 @@ class di extends M {
3926
3964
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_save
3927
3965
  */
3928
3966
  saveProductTemplatePrice(r, e, t) {
3929
- var n;
3967
+ var i;
3930
3968
  return this.post(
3931
3969
  `/internal/price/templates/${r}/products/${e}`,
3932
3970
  {
3933
- price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3971
+ price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3934
3972
  increase_percent: t.value
3935
3973
  },
3936
- (o) => new Cr(o.data)
3974
+ (o) => new vr(o.data)
3937
3975
  );
3938
3976
  }
3939
3977
  /**
@@ -3983,7 +4021,7 @@ class di extends M {
3983
4021
  *
3984
4022
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
3985
4023
  */
3986
- saveCategoryTemplatePrice(r, e, t, n = !1) {
4024
+ saveCategoryTemplatePrice(r, e, t, i = !1) {
3987
4025
  var o;
3988
4026
  return this.request(
3989
4027
  {
@@ -3993,7 +4031,7 @@ class di extends M {
3993
4031
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3994
4032
  increase_percent: t.value
3995
4033
  },
3996
- params: n ? { recursively: !0 } : {}
4034
+ params: i ? { recursively: !0 } : {}
3997
4035
  },
3998
4036
  (c) => new wr(c.data)
3999
4037
  );
@@ -4026,7 +4064,7 @@ class di extends M {
4026
4064
  return this.getTypedList(xe, `/internal/price/templates/${r}/clients`);
4027
4065
  }
4028
4066
  }
4029
- class Ai extends h {
4067
+ class Si extends h {
4030
4068
  /**
4031
4069
  * Возвращает список ролей ценообразования.
4032
4070
  *
@@ -4084,7 +4122,7 @@ class Ai extends h {
4084
4122
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
4085
4123
  */
4086
4124
  getCategoryRules(r) {
4087
- return this.getTypedList(rt, `/internal/price/roles/rules/categories/${r}`);
4125
+ return this.getTypedList(tt, `/internal/price/roles/rules/categories/${r}`);
4088
4126
  }
4089
4127
  /**
4090
4128
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -4098,11 +4136,11 @@ class Ai extends h {
4098
4136
  return this.patch(
4099
4137
  `/internal/price/roles/rules/categories/${r}`,
4100
4138
  e,
4101
- (t) => F.instanceListInitializer(rt, t.data)
4139
+ (t) => U.instanceListInitializer(tt, t.data)
4102
4140
  );
4103
4141
  }
4104
4142
  }
4105
- class Si extends M {
4143
+ class $i extends M {
4106
4144
  /**
4107
4145
  * Возвращает пагинированный список свойств.
4108
4146
  *
@@ -4129,7 +4167,7 @@ class Si extends M {
4129
4167
  ...t,
4130
4168
  type: e
4131
4169
  },
4132
- (n) => new De(n.data)
4170
+ (i) => new De(i.data)
4133
4171
  );
4134
4172
  }
4135
4173
  /**
@@ -4149,11 +4187,11 @@ class Si extends M {
4149
4187
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_update
4150
4188
  */
4151
4189
  updateProperty(r, e) {
4152
- const { typeId: t, ...n } = e;
4190
+ const { typeId: t, ...i } = e;
4153
4191
  return this.patch(
4154
4192
  `/internal/catalog/properties/${r}`,
4155
4193
  {
4156
- ...n,
4194
+ ...i,
4157
4195
  type: t
4158
4196
  },
4159
4197
  (o) => new De(o.data)
@@ -4175,7 +4213,7 @@ class Si extends M {
4175
4213
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
4176
4214
  */
4177
4215
  getProductProperties(r) {
4178
- return this.getTypedList(Ce, `/internal/catalog/products/${r}/properties`);
4216
+ return this.getTypedList(ve, `/internal/catalog/products/${r}/properties`);
4179
4217
  }
4180
4218
  /**
4181
4219
  * Возвращает значение свойства продукта.
@@ -4185,7 +4223,7 @@ class Si extends M {
4185
4223
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
4186
4224
  */
4187
4225
  getProductProperty(r, e) {
4188
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new Ce(t.data));
4226
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new ve(t.data));
4189
4227
  }
4190
4228
  /**
4191
4229
  * Обновляет значение свойства продукта.
@@ -4196,7 +4234,7 @@ class Si extends M {
4196
4234
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
4197
4235
  */
4198
4236
  updateProductProperty(r, e, t) {
4199
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new Ce(n.data));
4237
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new ve(i.data));
4200
4238
  }
4201
4239
  /**
4202
4240
  * Удаляет значение свойства продукта.
@@ -4321,7 +4359,7 @@ class Si extends M {
4321
4359
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4322
4360
  */
4323
4361
  getCategoryProperties(r) {
4324
- return this.getTypedList(Ce, `/internal/catalog/categories/${r}/properties`);
4362
+ return this.getTypedList(ve, `/internal/catalog/categories/${r}/properties`);
4325
4363
  }
4326
4364
  /**
4327
4365
  * Возвращает значение свойства категории.
@@ -4331,7 +4369,7 @@ class Si extends M {
4331
4369
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4332
4370
  */
4333
4371
  getCategoryProperty(r, e) {
4334
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new Ce(t.data));
4372
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new ve(t.data));
4335
4373
  }
4336
4374
  /**
4337
4375
  * Обновляет значение свойства категории.
@@ -4342,7 +4380,7 @@ class Si extends M {
4342
4380
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4343
4381
  */
4344
4382
  updateCategoryProperty(r, e, t) {
4345
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new Ce(n.data));
4383
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new ve(i.data));
4346
4384
  }
4347
4385
  /**
4348
4386
  * Удаляет значение свойства категории.
@@ -4481,7 +4519,7 @@ class Si extends M {
4481
4519
  return this.get(
4482
4520
  `/internal/catalog/categories/${r}/filters`,
4483
4521
  { recursively: e },
4484
- (t) => t.data.map((n) => new Os(n))
4522
+ (t) => t.data.map((i) => new Ls(i))
4485
4523
  );
4486
4524
  }
4487
4525
  /**
@@ -4491,7 +4529,7 @@ class Si extends M {
4491
4529
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4492
4530
  */
4493
4531
  getCategoryFilterSettings(r) {
4494
- return this.getTypedList(tt, `/internal/catalog/categories/${r}/filter-settings`);
4532
+ return this.getTypedList(st, `/internal/catalog/categories/${r}/filter-settings`);
4495
4533
  }
4496
4534
  /**
4497
4535
  * Сохраняет настройки фильтра в категории.
@@ -4505,7 +4543,7 @@ class Si extends M {
4505
4543
  return this.patch(
4506
4544
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4507
4545
  t,
4508
- (n) => new tt(n.data)
4546
+ (i) => new st(i.data)
4509
4547
  );
4510
4548
  }
4511
4549
  /**
@@ -4519,7 +4557,7 @@ class Si extends M {
4519
4557
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4520
4558
  }
4521
4559
  }
4522
- class $i extends h {
4560
+ class ki extends h {
4523
4561
  /**
4524
4562
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4525
4563
  *
@@ -4544,13 +4582,13 @@ class $i extends h {
4544
4582
  *
4545
4583
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
4546
4584
  */
4547
- getCategoryData(r, e, t = !1, n = !1) {
4585
+ getCategoryData(r, e, t = !1, i = !1) {
4548
4586
  return this.get(
4549
4587
  `/internal/catalog/categories/${e}`,
4550
4588
  {
4551
4589
  priceTemplateId: r,
4552
4590
  showHidden: t,
4553
- withNestedCategories: n
4591
+ withNestedCategories: i
4554
4592
  },
4555
4593
  (o) => new Y(o.data)
4556
4594
  );
@@ -4565,49 +4603,49 @@ class $i extends h {
4565
4603
  *
4566
4604
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
4567
4605
  */
4568
- getCategoryProductsList(r, e, t = !0, n = !1) {
4606
+ getCategoryProductsList(r, e, t = !0, i = !1) {
4569
4607
  return this.get(
4570
4608
  `/internal/catalog/categories/${e}/products`,
4571
4609
  {
4572
4610
  priceTemplateId: r,
4573
- showHidden: n,
4611
+ showHidden: i,
4574
4612
  withPriceCoefficients: t
4575
4613
  },
4576
4614
  (o) => P(o.data, (c) => new E(c))
4577
4615
  );
4578
4616
  }
4579
4617
  }
4580
- function st(i, r, e) {
4618
+ function it(n, r, e) {
4581
4619
  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")
4620
+ return n.some((i) => {
4621
+ if (i.type === e && i.id === r)
4622
+ return t = i, !0;
4623
+ if (i.type === "product")
4586
4624
  return !1;
4587
- const o = n;
4625
+ const o = i;
4588
4626
  if (o.products && o.products.length > 0) {
4589
- const c = st(o.products, r, e);
4627
+ const c = it(o.products, r, e);
4590
4628
  if (c)
4591
4629
  return t = c, !0;
4592
4630
  }
4593
4631
  if (o.categories && o.categories.length > 0) {
4594
- const c = st(o.categories, r, e);
4632
+ const c = it(o.categories, r, e);
4595
4633
  if (c)
4596
4634
  return t = c, !0;
4597
4635
  }
4598
4636
  return !1;
4599
4637
  }), t;
4600
4638
  }
4601
- function it(i) {
4639
+ function nt(n) {
4602
4640
  const r = [];
4603
- return i.forEach((e) => {
4641
+ return n.forEach((e) => {
4604
4642
  if (r.push(e), e.type === "category") {
4605
4643
  const t = e;
4606
- t.products && t.products.length > 0 && r.push(...it(t.products)), t.categories && t.categories.length > 0 && r.push(...it(t.categories));
4644
+ t.products && t.products.length > 0 && r.push(...nt(t.products)), t.categories && t.categories.length > 0 && r.push(...nt(t.categories));
4607
4645
  }
4608
4646
  }), r;
4609
4647
  }
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 || {});
4648
+ var xs = /* @__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))(xs || {}), K = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(K || {});
4611
4649
  class kr extends pe {
4612
4650
  /**
4613
4651
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -4639,7 +4677,7 @@ class kr extends pe {
4639
4677
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new J(e.currency));
4640
4678
  }
4641
4679
  }
4642
- class Or extends ir {
4680
+ class Or extends nr {
4643
4681
  /**
4644
4682
  * Инициализирует экземпляр класса {@link Contact}.
4645
4683
  *
@@ -4685,7 +4723,7 @@ class oe extends Or {
4685
4723
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment;
4686
4724
  }
4687
4725
  }
4688
- class ce extends v {
4726
+ class ce extends C {
4689
4727
  /**
4690
4728
  * Возвращает сгенерированную запись-описание физического лица.
4691
4729
  */
@@ -4698,9 +4736,9 @@ class ce extends v {
4698
4736
  });
4699
4737
  }
4700
4738
  }
4701
- class le extends v {
4739
+ class le extends C {
4702
4740
  }
4703
- class kt extends ir {
4741
+ class Lt extends nr {
4704
4742
  /**
4705
4743
  * Инициализирует экземпляр класса {@link ContragentBase}.
4706
4744
  *
@@ -4744,20 +4782,20 @@ class kt extends ir {
4744
4782
  if (e) {
4745
4783
  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
4784
  const t = [];
4747
- e.contacts.forEach((n) => {
4748
- t.push(new oe(n));
4785
+ e.contacts.forEach((i) => {
4786
+ t.push(new oe(i));
4749
4787
  }), this.contacts = t;
4750
4788
  }
4751
4789
  if (e.bankAccounts) {
4752
4790
  const t = [];
4753
- e.bankAccounts.forEach((n) => {
4754
- t.push(new kr(n));
4791
+ e.bankAccounts.forEach((i) => {
4792
+ t.push(new kr(i));
4755
4793
  }), this.bankAccounts = t;
4756
4794
  }
4757
4795
  }
4758
4796
  }
4759
4797
  }
4760
- class xs extends kt {
4798
+ class Is extends Lt {
4761
4799
  /**
4762
4800
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4763
4801
  *
@@ -4767,7 +4805,7 @@ class xs extends kt {
4767
4805
  super(r);
4768
4806
  }
4769
4807
  }
4770
- class Ot extends kt {
4808
+ class xt extends Lt {
4771
4809
  /**
4772
4810
  * Инициализирует экземпляр класса {@link ContragentIc}.
4773
4811
  *
@@ -4783,6 +4821,10 @@ class Ot extends kt {
4783
4821
  * Код ОКПО.
4784
4822
  */
4785
4823
  s(this, "okpo", "");
4824
+ /**
4825
+ * ОГРН (ОГРНИП для индивидуального предпринимателя).
4826
+ */
4827
+ s(this, "ogrn", "");
4786
4828
  /**
4787
4829
  * ФИО руководителя.
4788
4830
  */
@@ -4807,10 +4849,10 @@ class Ot extends kt {
4807
4849
  * Фактический адрес.
4808
4850
  */
4809
4851
  s(this, "actualAddress", "");
4810
- 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 ?? "");
4852
+ e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.ogrn = e.ogrn ?? "", 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
4853
  }
4812
4854
  }
4813
- class Lt extends Ot {
4855
+ class It extends xt {
4814
4856
  /**
4815
4857
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4816
4858
  *
@@ -4825,7 +4867,7 @@ class Lt extends Ot {
4825
4867
  e && (this.kpp = e.kpp ?? "");
4826
4868
  }
4827
4869
  }
4828
- class Is extends Lt {
4870
+ class _s extends It {
4829
4871
  /**
4830
4872
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4831
4873
  *
@@ -4848,7 +4890,7 @@ class Is extends Lt {
4848
4890
  e && (this.registrationCountry = new Te(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4849
4891
  }
4850
4892
  }
4851
- class rr {
4893
+ class tr {
4852
4894
  /**
4853
4895
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4854
4896
  *
@@ -4857,17 +4899,17 @@ class rr {
4857
4899
  static createInstance(r) {
4858
4900
  switch (r.opf.slug) {
4859
4901
  case K.Ic:
4860
- return new Ot(r);
4902
+ return new xt(r);
4861
4903
  case K.UlR:
4862
- return new Lt(r);
4904
+ return new It(r);
4863
4905
  case K.UlNr:
4864
- return new Is(r);
4906
+ return new _s(r);
4865
4907
  default:
4866
- return new xs(r);
4908
+ return new Is(r);
4867
4909
  }
4868
4910
  }
4869
4911
  }
4870
- class qe extends ir {
4912
+ class qe extends nr {
4871
4913
  /**
4872
4914
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4873
4915
  *
@@ -4904,14 +4946,14 @@ class qe extends ir {
4904
4946
  * Признак того, что указанный адрес является адресом транспортной компании.
4905
4947
  */
4906
4948
  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;
4949
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Dt(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
4950
  }
4909
4951
  }
4910
- class xt extends v {
4952
+ class _t extends C {
4911
4953
  }
4912
- class It extends v {
4954
+ class qt extends C {
4913
4955
  }
4914
- class nt extends fe {
4956
+ class ot extends fe {
4915
4957
  /**
4916
4958
  * Инициализирует экземпляр класса {@link Client}.
4917
4959
  *
@@ -4919,7 +4961,7 @@ class nt extends fe {
4919
4961
  */
4920
4962
  // eslint-disable-next-line sonarjs/cognitive-complexity
4921
4963
  constructor(e) {
4922
- var t, n, o, c;
4964
+ var t, i, o, c;
4923
4965
  super(e);
4924
4966
  /**
4925
4967
  * @inheritDoc
@@ -4961,17 +5003,17 @@ class nt extends fe {
4961
5003
  * @inheritDoc
4962
5004
  */
4963
5005
  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) ?? {};
5006
+ 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 _t(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new qt(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
5007
  }
4966
5008
  }
4967
- class ki extends de {
5009
+ class Oi extends de {
4968
5010
  /**
4969
5011
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4970
5012
  *
4971
5013
  * @param data Данные для первоначальной инициализации.
4972
5014
  */
4973
5015
  constructor(e) {
4974
- var t, n, o, c, u, p, g, a;
5016
+ var t, i, o, c, u, p, g, a;
4975
5017
  super();
4976
5018
  /**
4977
5019
  * @inheritDoc
@@ -5077,7 +5119,7 @@ class ki extends de {
5077
5119
  * @inheritDoc
5078
5120
  */
5079
5121
  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 = {
5122
+ 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
5123
  createdAt: new D((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
5082
5124
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
5083
5125
  isApproved: (a = e == null ? void 0 : e.lastOrder) == null ? void 0 : a.isApproved
@@ -5140,12 +5182,12 @@ class ki extends de {
5140
5182
  * @inheritDoc
5141
5183
  */
5142
5184
  asClearRaw() {
5143
- var t, n, o, c, u, p;
5185
+ var t, i, o, c, u, p;
5144
5186
  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;
5187
+ 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
5188
  }
5147
5189
  }
5148
- class _t extends tr {
5190
+ class Nt extends sr {
5149
5191
  /**
5150
5192
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
5151
5193
  *
@@ -5160,14 +5202,14 @@ class _t extends tr {
5160
5202
  this.creator = new q(e == null ? void 0 : e.creator);
5161
5203
  }
5162
5204
  }
5163
- class _s extends N {
5205
+ class qs extends N {
5164
5206
  /**
5165
5207
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
5166
5208
  *
5167
5209
  * @param data Данные для первоначальной инициализации.
5168
5210
  */
5169
5211
  constructor(e) {
5170
- var t, n, o, c;
5212
+ var t, i, o, c;
5171
5213
  super(e);
5172
5214
  /**
5173
5215
  * @inheritDoc
@@ -5197,7 +5239,7 @@ class _s extends N {
5197
5239
  * @inheritDoc
5198
5240
  */
5199
5241
  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;
5242
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new oe(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Nt(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
5243
  }
5202
5244
  }
5203
5245
  class Dr extends pe {
@@ -5215,7 +5257,7 @@ class Dr extends pe {
5215
5257
  this.isPrimary = e.isPrimary;
5216
5258
  }
5217
5259
  }
5218
- class qs extends oe {
5260
+ class Ns extends oe {
5219
5261
  /**
5220
5262
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5221
5263
  *
@@ -5243,7 +5285,7 @@ class qs extends oe {
5243
5285
  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
5286
  }
5245
5287
  }
5246
- class z extends M {
5288
+ class W extends M {
5247
5289
  /**
5248
5290
  * Преобразует данные о клиенте в данные требуемые для запроса.
5249
5291
  *
@@ -5254,7 +5296,7 @@ class z extends M {
5254
5296
  return {
5255
5297
  name: r.name,
5256
5298
  alternative_name: r.alternativeName,
5257
- partner_groups: r.partnerGroups.map((n) => n.id),
5299
+ partner_groups: r.partnerGroups.map((i) => i.id),
5258
5300
  phone: r.phone,
5259
5301
  email: r.email,
5260
5302
  city_id: r.city.id,
@@ -5273,7 +5315,7 @@ class z extends M {
5273
5315
  static transformContragentClientDataToRequest(r) {
5274
5316
  var c, u, p, g;
5275
5317
  let e;
5276
- const t = r, n = r, o = r;
5318
+ const t = r, i = r, o = r;
5277
5319
  switch (r.opf.slug) {
5278
5320
  case K.Ic:
5279
5321
  e = {
@@ -5284,6 +5326,7 @@ class z extends M {
5284
5326
  comment: t.comment,
5285
5327
  inn: t.inn,
5286
5328
  okpo: t.okpo,
5329
+ ogrn: t.ogrn || void 0,
5287
5330
  director_name: t.directorName,
5288
5331
  director_position: t.directorPosition,
5289
5332
  director_acts_on: t.directorActsOn,
@@ -5294,20 +5337,21 @@ class z extends M {
5294
5337
  break;
5295
5338
  case K.UlR:
5296
5339
  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
5340
+ opf: i.opf.slug,
5341
+ name: i.name,
5342
+ alternative_name: i.alternativeName,
5343
+ partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
5344
+ comment: i.comment,
5345
+ inn: i.inn,
5346
+ kpp: i.kpp,
5347
+ okpo: i.okpo,
5348
+ ogrn: i.ogrn || void 0,
5349
+ director_name: i.directorName,
5350
+ director_position: i.directorPosition,
5351
+ director_acts_on: i.directorActsOn,
5352
+ legal_address: i.legalAddress,
5353
+ postal_address: i.postalAddress,
5354
+ actual_address: i.actualAddress
5311
5355
  };
5312
5356
  break;
5313
5357
  case K.UlNr:
@@ -5346,7 +5390,7 @@ class z extends M {
5346
5390
  * @param deliveryAddress Данные об адресе доставки клиенту.
5347
5391
  */
5348
5392
  static transformClientDeliveryAddressToRequest(r) {
5349
- var t, n;
5393
+ var t, i;
5350
5394
  const e = {
5351
5395
  address: r.address,
5352
5396
  is_one_time: r.isOneTime ?? !1,
@@ -5355,7 +5399,7 @@ class z extends M {
5355
5399
  };
5356
5400
  return r.coordinates && (e.coordinates = {
5357
5401
  lat: (t = r.coordinates) == null ? void 0 : t.lat,
5358
- long: (n = r.coordinates) == null ? void 0 : n.long
5402
+ long: (i = r.coordinates) == null ? void 0 : i.long
5359
5403
  }), r.operatingHours && (e.operating_hours = {
5360
5404
  from: r.operatingHours.from,
5361
5405
  to: r.operatingHours.to
@@ -5382,7 +5426,7 @@ class z extends M {
5382
5426
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5383
5427
  */
5384
5428
  getClient(r) {
5385
- return this.get(`/internal/clients/${r}`, {}, (e) => new nt(e.data));
5429
+ return this.get(`/internal/clients/${r}`, {}, (e) => new ot(e.data));
5386
5430
  }
5387
5431
  /**
5388
5432
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5395,8 +5439,8 @@ class z extends M {
5395
5439
  *
5396
5440
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5397
5441
  */
5398
- getClientsList(r, e, t, n, o = void 0) {
5399
- return this.getTypedPaginated(fe, "/internal/clients", r, e, t, n, void 0, o);
5442
+ getClientsList(r, e, t, i, o = void 0) {
5443
+ return this.getTypedPaginated(fe, "/internal/clients", r, e, t, i, void 0, o);
5400
5444
  }
5401
5445
  /**
5402
5446
  * Выполняет поиск клиентов по терму в строке.
@@ -5429,11 +5473,11 @@ class z extends M {
5429
5473
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_additional_data_for_clients_list
5430
5474
  */
5431
5475
  getAdditionalClientsData(r, e) {
5432
- const t = r.map((n) => n.id);
5476
+ const t = r.map((i) => i.id);
5433
5477
  return this.post(
5434
5478
  "/internal/clients/additional-data",
5435
5479
  { clients: t, requested_data_types: e },
5436
- (n) => F.instanceListInitializer(_s, n.data)
5480
+ (i) => U.instanceListInitializer(qs, i.data)
5437
5481
  );
5438
5482
  }
5439
5483
  /**
@@ -5443,7 +5487,7 @@ class z extends M {
5443
5487
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5444
5488
  */
5445
5489
  getAllClientContacts(r) {
5446
- return this.getTypedList(qs, `/internal/clients/${r}/contacts/all`);
5490
+ return this.getTypedList(Ns, `/internal/clients/${r}/contacts/all`);
5447
5491
  }
5448
5492
  /**
5449
5493
  * Создаёт нового клиента на основе указанных данных.
@@ -5453,7 +5497,7 @@ class z extends M {
5453
5497
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5454
5498
  */
5455
5499
  createClientCommonData(r, e = {}) {
5456
- return this.post("/internal/clients", z.transformClientDataToRequest(r), (t) => new nt(t.data), e);
5500
+ return this.post("/internal/clients", W.transformClientDataToRequest(r), (t) => new ot(t.data), e);
5457
5501
  }
5458
5502
  /**
5459
5503
  * Обновляет данные указанного клиента.
@@ -5463,7 +5507,7 @@ class z extends M {
5463
5507
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5464
5508
  */
5465
5509
  updateClientCommonData(r, e = {}) {
5466
- return this.patch(`/internal/clients/${r.id}`, z.transformClientDataToRequest(r), void 0, e);
5510
+ return this.patch(`/internal/clients/${r.id}`, W.transformClientDataToRequest(r), void 0, e);
5467
5511
  }
5468
5512
  /**
5469
5513
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -5487,7 +5531,7 @@ class z extends M {
5487
5531
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5488
5532
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5489
5533
  */
5490
- changeClientPassword(r, e, t, n = {}) {
5534
+ changeClientPassword(r, e, t, i = {}) {
5491
5535
  return this.patch(
5492
5536
  `/internal/clients/${r}`,
5493
5537
  {
@@ -5495,7 +5539,7 @@ class z extends M {
5495
5539
  password_confirmation: t
5496
5540
  },
5497
5541
  void 0,
5498
- n
5542
+ i
5499
5543
  );
5500
5544
  }
5501
5545
  /**
@@ -5525,7 +5569,7 @@ class z extends M {
5525
5569
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_attach
5526
5570
  */
5527
5571
  async attachClientToManagers(r, e) {
5528
- const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/attach`, { is_primary: n.isDefault }));
5572
+ const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/attach`, { is_primary: i.isDefault }));
5529
5573
  await Promise.all(t);
5530
5574
  }
5531
5575
  /**
@@ -5537,7 +5581,7 @@ class z extends M {
5537
5581
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_detach
5538
5582
  */
5539
5583
  async detachClientFromManagers(r, e) {
5540
- const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/detach`));
5584
+ const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/detach`));
5541
5585
  await Promise.all(t);
5542
5586
  }
5543
5587
  /**
@@ -5592,8 +5636,8 @@ class z extends M {
5592
5636
  createContragentClientData(r, e, t = {}) {
5593
5637
  return this.post(
5594
5638
  `/internal/clients/${r}/contragents`,
5595
- z.transformContragentClientDataToRequest(e),
5596
- (n) => rr.createInstance(n.data),
5639
+ W.transformContragentClientDataToRequest(e),
5640
+ (i) => tr.createInstance(i.data),
5597
5641
  t
5598
5642
  );
5599
5643
  }
@@ -5608,8 +5652,8 @@ class z extends M {
5608
5652
  updateContragentClientData(r, e, t = {}) {
5609
5653
  return this.patch(
5610
5654
  `/internal/clients/${r}/contragents/${e.id}`,
5611
- z.transformContragentClientDataToRequest(e),
5612
- (n) => rr.createInstance(n.data),
5655
+ W.transformContragentClientDataToRequest(e),
5656
+ (i) => tr.createInstance(i.data),
5613
5657
  t
5614
5658
  );
5615
5659
  }
@@ -5643,8 +5687,8 @@ class z extends M {
5643
5687
  createClientDeliveryAddress(r, e, t = {}) {
5644
5688
  return this.post(
5645
5689
  `/internal/clients/${r}/delivery-addresses`,
5646
- z.transformClientDeliveryAddressToRequest(e),
5647
- (n) => new qe(n.data),
5690
+ W.transformClientDeliveryAddressToRequest(e),
5691
+ (i) => new qe(i.data),
5648
5692
  t
5649
5693
  );
5650
5694
  }
@@ -5659,8 +5703,8 @@ class z extends M {
5659
5703
  updateClientDeliveryAddress(r, e, t = {}) {
5660
5704
  return this.patch(
5661
5705
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5662
- z.transformClientDeliveryAddressToRequest(e),
5663
- (n) => new qe(n.data),
5706
+ W.transformClientDeliveryAddressToRequest(e),
5707
+ (i) => new qe(i.data),
5664
5708
  t
5665
5709
  );
5666
5710
  }
@@ -5683,12 +5727,12 @@ class z extends M {
5683
5727
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5684
5728
  * @see /doc/api/internal#/Банковские реквизиты/api_internal_client_contragent_bank_accounts_create
5685
5729
  */
5686
- createContragentBankAccount(r, e, t, n = {}) {
5730
+ createContragentBankAccount(r, e, t, i = {}) {
5687
5731
  return this.post(
5688
5732
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5689
- z.transformClientContragentBankAccountToRequest(t),
5733
+ W.transformClientContragentBankAccountToRequest(t),
5690
5734
  (o) => new kr(o.data),
5691
- n
5735
+ i
5692
5736
  );
5693
5737
  }
5694
5738
  /**
@@ -5700,12 +5744,12 @@ class z extends M {
5700
5744
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5701
5745
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
5702
5746
  */
5703
- updateContragentBankAccount(r, e, t, n = {}) {
5747
+ updateContragentBankAccount(r, e, t, i = {}) {
5704
5748
  return this.patch(
5705
5749
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5706
- z.transformClientContragentBankAccountToRequest(t),
5750
+ W.transformClientContragentBankAccountToRequest(t),
5707
5751
  (o) => new kr(o.data),
5708
- n
5752
+ i
5709
5753
  );
5710
5754
  }
5711
5755
  /**
@@ -5760,7 +5804,7 @@ class z extends M {
5760
5804
  comment: e.comment,
5761
5805
  not_disturb: e.notDisturb
5762
5806
  },
5763
- (n) => new oe(n.data),
5807
+ (i) => new oe(i.data),
5764
5808
  t
5765
5809
  );
5766
5810
  }
@@ -5793,7 +5837,7 @@ class z extends M {
5793
5837
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5794
5838
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
5795
5839
  */
5796
- createContragentContact(r, e, t, n = {}) {
5840
+ createContragentContact(r, e, t, i = {}) {
5797
5841
  return this.createContact(
5798
5842
  r,
5799
5843
  t,
@@ -5806,7 +5850,7 @@ class z extends M {
5806
5850
  }
5807
5851
  ]
5808
5852
  },
5809
- n
5853
+ i
5810
5854
  );
5811
5855
  }
5812
5856
  /**
@@ -5840,7 +5884,7 @@ class z extends M {
5840
5884
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5841
5885
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
5842
5886
  */
5843
- createDeliveryAddressContact(r, e, t, n = {}) {
5887
+ createDeliveryAddressContact(r, e, t, i = {}) {
5844
5888
  return this.createContact(
5845
5889
  r,
5846
5890
  t,
@@ -5853,7 +5897,7 @@ class z extends M {
5853
5897
  }
5854
5898
  ]
5855
5899
  },
5856
- n
5900
+ i
5857
5901
  );
5858
5902
  }
5859
5903
  /**
@@ -5889,7 +5933,7 @@ class z extends M {
5889
5933
  * @param extraData Дополнительные данные
5890
5934
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5891
5935
  */
5892
- createContact(r, e, t, n = {}) {
5936
+ createContact(r, e, t, i = {}) {
5893
5937
  var c, u;
5894
5938
  const o = {
5895
5939
  name: e.name,
@@ -5897,7 +5941,7 @@ class z extends M {
5897
5941
  comment: e.comment,
5898
5942
  ...t
5899
5943
  };
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);
5944
+ 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
5945
  }
5902
5946
  /**
5903
5947
  * Устанавливает признак основного контактного лица.
@@ -5926,7 +5970,7 @@ class z extends M {
5926
5970
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5927
5971
  }
5928
5972
  }
5929
- class Oi extends h {
5973
+ class Li extends h {
5930
5974
  /**
5931
5975
  * Выполняет проверку занят ли указанный номер телефона.
5932
5976
  *
@@ -5934,13 +5978,13 @@ class Oi extends h {
5934
5978
  */
5935
5979
  checkPhoneIsBusy(r) {
5936
5980
  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);
5981
+ this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((i) => {
5982
+ e(!!i.isBusy);
5939
5983
  }).catch(t);
5940
5984
  });
5941
5985
  }
5942
5986
  }
5943
- class Li {
5987
+ class xi {
5944
5988
  /**
5945
5989
  * Инициализирует экземпляр класса {@link VersionConfig}.
5946
5990
  *
@@ -5959,11 +6003,11 @@ class Li {
5959
6003
  * Текущая версия приложения.
5960
6004
  */
5961
6005
  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";
6006
+ 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
6007
  }
5964
6008
  }
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 || {});
5966
- class xi extends h {
6009
+ var Es = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Es || {});
6010
+ class Ii extends h {
5967
6011
  /**
5968
6012
  * Возвращает настройки указанного конфигуратора для указанной категории.
5969
6013
  *
@@ -5988,16 +6032,16 @@ class xi extends h {
5988
6032
  *
5989
6033
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_products_get
5990
6034
  */
5991
- searchProduct(r, e, t, n = {}) {
6035
+ searchProduct(r, e, t, i = {}) {
5992
6036
  var o;
5993
6037
  return this.request(
5994
6038
  {
5995
6039
  method: "GET",
5996
6040
  url: `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
5997
- params: { client_id: e, ...t }
6041
+ params: { params: t, client_id: e }
5998
6042
  },
5999
6043
  (c) => new E(c.data),
6000
- n
6044
+ i
6001
6045
  );
6002
6046
  }
6003
6047
  /**
@@ -6013,7 +6057,7 @@ class xi extends h {
6013
6057
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_template_create
6014
6058
  */
6015
6059
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6016
- createTemplate(r, e, t, n = {}) {
6060
+ createTemplate(r, e, t, i = {}) {
6017
6061
  var o;
6018
6062
  return this.post(
6019
6063
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/template?client_id=${e}`,
@@ -6021,7 +6065,7 @@ class xi extends h {
6021
6065
  // eslint-disable-next-line lodash/prefer-noop, @typescript-eslint/no-empty-function
6022
6066
  () => {
6023
6067
  },
6024
- n
6068
+ i
6025
6069
  );
6026
6070
  }
6027
6071
  /**
@@ -6035,8 +6079,8 @@ class xi extends h {
6035
6079
  */
6036
6080
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6037
6081
  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}`);
6082
+ var i;
6083
+ return this.delete(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template/${t}?client_id=${e}`);
6040
6084
  }
6041
6085
  /**
6042
6086
  * Выполняет расчет, через указанный конфигуратор с переданными параметрами.
@@ -6048,14 +6092,14 @@ class xi extends h {
6048
6092
  * @see /doc/api/internal#/Каталог/api_public_catalog_categories_category_configurator_calculate
6049
6093
  */
6050
6094
  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`, {
6095
+ var i;
6096
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/calculate`, {
6053
6097
  client_id: e,
6054
6098
  ...t
6055
6099
  });
6056
6100
  }
6057
6101
  }
6058
- class Es {
6102
+ class Us {
6059
6103
  /**
6060
6104
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
6061
6105
  *
@@ -6073,7 +6117,7 @@ class Es {
6073
6117
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
6074
6118
  }
6075
6119
  }
6076
- class Ii extends Es {
6120
+ class _i extends Us {
6077
6121
  /**
6078
6122
  * Инициализирует экземпляр класса {@link TableDataPagination}.
6079
6123
  *
@@ -6104,7 +6148,7 @@ class Ii extends Es {
6104
6148
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
6105
6149
  }
6106
6150
  }
6107
- class _i {
6151
+ class qi {
6108
6152
  /**
6109
6153
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
6110
6154
  *
@@ -6139,8 +6183,8 @@ class y {
6139
6183
  * @param shift Смещение в декадах, может быть отрицательным.
6140
6184
  */
6141
6185
  static shiftDecadeInterval(r, e) {
6142
- const [t, n] = y.shiftedDecadeBounds(r, e);
6143
- return { from: t, to: n };
6186
+ const [t, i] = y.shiftedDecadeBounds(r, e);
6187
+ return { from: t, to: i };
6144
6188
  }
6145
6189
  /**
6146
6190
  * Возвращает начало полугодия, в которое попадает указанная дата.
@@ -6177,8 +6221,8 @@ class y {
6177
6221
  * @param date Опорная дата.
6178
6222
  */
6179
6223
  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));
6181
- return { from: re(e), to: B(os(o, c)) };
6224
+ const i = ns(H(t), H(r)), o = H(k(e, i)), c = Math.min(Jr(t), os(o));
6225
+ return { from: re(e), to: B(cs(o, c)) };
6182
6226
  }
6183
6227
  /**
6184
6228
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -6187,8 +6231,8 @@ class y {
6187
6231
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
6188
6232
  */
6189
6233
  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)) };
6234
+ const t = te(dr(r, e), { weekStartsOn: 1 }), i = je(r, te(r, { weekStartsOn: 1 }));
6235
+ return { from: t, to: B(se(t, i)) };
6192
6236
  }
6193
6237
  /**
6194
6238
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -6198,8 +6242,8 @@ class y {
6198
6242
  * @param shift Смещение в декадах, может быть отрицательным.
6199
6243
  */
6200
6244
  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)) };
6245
+ const [t] = y.shiftedDecadeBounds(r, 0), i = je(r, t) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = je(c, o) + 1;
6246
+ return { from: o, to: B(se(o, Math.min(i, u) - 1)) };
6203
6247
  }
6204
6248
  /**
6205
6249
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6208,59 +6252,59 @@ class y {
6208
6252
  * @param shift Смещение в декадах, может быть отрицательным.
6209
6253
  */
6210
6254
  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));
6255
+ const t = Jr(r);
6256
+ let i = 2;
6257
+ t <= 10 ? i = 0 : t <= 20 && (i = 1);
6258
+ 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
6259
  return [g, a];
6216
6260
  }
6217
6261
  }
6218
- function qi(i) {
6219
- return $(je(Ee(), i), "yyyy-MM-dd");
6262
+ function Ni(n) {
6263
+ return $(Ye(Ee(), n), "yyyy-MM-dd");
6220
6264
  }
6221
- function Fs(i, r) {
6222
- const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(i));
6265
+ function Fs(n, r) {
6266
+ const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6223
6267
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6224
6268
  }
6225
- function Ni(i) {
6226
- const r = I(i), e = ze(Ee(), r);
6269
+ function Ei(n) {
6270
+ const r = _(n), e = je(Ee(), r);
6227
6271
  switch (!0) {
6228
6272
  case e === 0:
6229
6273
  return "Сегодня";
6230
6274
  case e === 1:
6231
6275
  return "Вчера";
6232
6276
  case e < 0:
6233
- return i;
6277
+ return n;
6234
6278
  default:
6235
6279
  return `${e} ${Fs(e, ["день", "дня", "дней"])} назад`;
6236
6280
  }
6237
6281
  }
6238
- class Ei {
6282
+ class Ui {
6239
6283
  /**
6240
6284
  * Возвращает предустановленные диапазоны дат.
6241
6285
  *
6242
6286
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6243
6287
  */
6244
6288
  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);
6289
+ const e = ls(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ae(r === void 0 ? t : new Date(r, 0, 1)), o = $e(i);
6246
6290
  return {
6247
6291
  // 'Следующий рабочий день' - это значение по-умолчанию
6248
6292
  nextWorkingDay: { label: "Следующий рабочий день", from: re(e), to: B(e) },
6249
- today: { label: "Сегодня", from: Ee(), to: gs() },
6250
- yesterday: { label: "Вчера", from: hs(), to: ps() },
6251
- tomorrow: { label: "Завтра", from: us(), to: ls() },
6293
+ today: { label: "Сегодня", from: Ee(), to: fs() },
6294
+ yesterday: { label: "Вчера", from: gs(), to: hs() },
6295
+ tomorrow: { label: "Завтра", from: ps(), to: us() },
6252
6296
  currentWeek: { label: "Неделя", from: te(t, { weekStartsOn: 1 }), to: ke(t, { weekStartsOn: 1 }) },
6253
6297
  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 }
6298
+ oneMonth: { label: "1 месяц", from: i, to: x(i) },
6299
+ threeMonths: { label: "3 месяца", from: i, to: x(k(i, 2)) },
6300
+ nineMonths: { label: "9 месяцев", from: i, to: x(k(i, 8)) },
6301
+ firstQuarter: { label: "I квартал", from: i, to: x(k(i, 2)) },
6302
+ secondQuarter: { label: "II квартал", from: k(i, 3), to: x(k(i, 5)) },
6303
+ thirdQuarter: { label: "III квартал", from: k(i, 6), to: x(k(i, 8)) },
6304
+ fourthQuarter: { label: "IV квартал", from: k(i, 9), to: x(k(i, 11)) },
6305
+ firstHalfYear: { label: "I полугодие", from: i, to: x(k(i, 5)) },
6306
+ secondHalfYear: { label: "II полугодие", from: k(i, 6), to: o },
6307
+ currentYear: { label: "12 месяцев", from: i, to: o }
6264
6308
  };
6265
6309
  }
6266
6310
  /**
@@ -6271,23 +6315,23 @@ class Ei {
6271
6315
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6272
6316
  */
6273
6317
  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);
6318
+ 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
6319
  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 },
6320
+ yesterday: { label: "Вчера", group: "day", from: re(Ye(r, 1)), to: B(Ye(r, 1)) },
6321
+ today: { label: "Сегодня", group: "day", from: t, to: i },
6278
6322
  tomorrow: { label: "Завтра", group: "day", from: re(se(r, 1)), to: B(se(r, 1)) },
6279
- lastWeek: { label: "Прошлая неделя", group: "week", from: te(Jr(r, 1), e), to: ke(Jr(r, 1), e) },
6323
+ lastWeek: { label: "Прошлая неделя", group: "week", from: te(Kr(r, 1), e), to: ke(Kr(r, 1), e) },
6280
6324
  thisWeek: { label: "Эта неделя", group: "week", from: te(r, e), to: ke(r, e) },
6281
6325
  nextWeek: { label: "Следующая неделя", group: "week", from: te(dr(r, 1), e), to: ke(dr(r, 1), e) },
6282
6326
  lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
6283
6327
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6284
6328
  nextTenDays: { label: "Следующая декада", group: "decade", ...y.shiftDecadeInterval(r, 1) },
6285
- lastMonth: { label: "Прошлый месяц", group: "month", from: H(mr(r, 1)), to: x(mr(r, 1)) },
6329
+ lastMonth: { label: "Прошлый месяц", group: "month", from: H(yr(r, 1)), to: x(yr(r, 1)) },
6286
6330
  thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6287
6331
  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)) },
6332
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Oe(mr(r, 1)), to: Ge(mr(r, 1)) },
6289
6333
  thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Ge(r) },
6290
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: Oe(hr(r, 1)), to: Ge(hr(r, 1)) },
6334
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Oe(gr(r, 1)), to: Ge(gr(r, 1)) },
6291
6335
  lastHalfYear: {
6292
6336
  label: "Прошлое полугодие",
6293
6337
  group: "halfYear",
@@ -6296,15 +6340,15 @@ class Ei {
6296
6340
  },
6297
6341
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: y.endOfHalfYear(r) },
6298
6342
  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)) },
6343
+ lastYear: { label: "Прошлый год", group: "year", from: ae(fr(r, 1)), to: $e(fr(r, 1)) },
6300
6344
  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 },
6345
+ nextYear: { label: "Следующий год", group: "year", from: ae(hr(r, 1)), to: $e(hr(r, 1)) },
6346
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: te(r, e), to: i },
6347
+ fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6348
+ fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6349
+ fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6350
+ fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6351
+ fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6308
6352
  tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: ke(r, e) },
6309
6353
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6310
6354
  tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
@@ -6322,13 +6366,13 @@ class Ei {
6322
6366
  label: "Прошлый месяц, до такой же даты",
6323
6367
  group: "other",
6324
6368
  section: "lastTillSame",
6325
- ...y.intervalTillSameDate(c, H(mr(r, 1)), r)
6369
+ ...y.intervalTillSameDate(c, H(yr(r, 1)), r)
6326
6370
  },
6327
6371
  lastQuarterTillSameDate: {
6328
6372
  label: "Прошлый квартал, до такой же даты",
6329
6373
  group: "other",
6330
6374
  section: "lastTillSame",
6331
- ...y.intervalTillSameDate(u, Oe(fr(r, 1)), r)
6375
+ ...y.intervalTillSameDate(u, Oe(mr(r, 1)), r)
6332
6376
  },
6333
6377
  lastHalfYearTillSameDate: {
6334
6378
  label: "Прошлое полугодие, до такой же даты",
@@ -6340,7 +6384,7 @@ class Ei {
6340
6384
  label: "Прошлый год, до такой же даты",
6341
6385
  group: "other",
6342
6386
  section: "lastTillSame",
6343
- ...y.intervalTillSameDate(g, ae(gr(r, 1)), r)
6387
+ ...y.intervalTillSameDate(g, ae(fr(r, 1)), r)
6344
6388
  },
6345
6389
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...y.weekTillSameWeekday(r, 1) },
6346
6390
  nextTenDaysTillSameDayNumber: {
@@ -6359,7 +6403,7 @@ class Ei {
6359
6403
  label: "Следующий квартал, до такой же даты",
6360
6404
  group: "other",
6361
6405
  section: "nextTillSame",
6362
- ...y.intervalTillSameDate(u, Oe(hr(r, 1)), r)
6406
+ ...y.intervalTillSameDate(u, Oe(gr(r, 1)), r)
6363
6407
  },
6364
6408
  nextHalfYearTillSameDate: {
6365
6409
  label: "Следующее полугодие, до такой же даты",
@@ -6371,9 +6415,9 @@ class Ei {
6371
6415
  label: "Следующий год, до такой же даты",
6372
6416
  group: "other",
6373
6417
  section: "nextTillSame",
6374
- ...y.intervalTillSameDate(g, ae(pr(r, 1)), r)
6418
+ ...y.intervalTillSameDate(g, ae(hr(r, 1)), r)
6375
6419
  },
6376
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: re(je(r, 6)), to: n },
6420
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: re(Ye(r, 6)), to: i },
6377
6421
  next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(se(r, 6)) }
6378
6422
  };
6379
6423
  }
@@ -6387,7 +6431,7 @@ const Fi = [
6387
6431
  { key: "halfYear", label: "Полугодие" },
6388
6432
  { key: "year", label: "Год" },
6389
6433
  { key: "other", label: "Прочее" }
6390
- ], Ui = [
6434
+ ], Mi = [
6391
6435
  { key: "fromBeginning", label: "С начала периода" },
6392
6436
  { key: "tillEnd", label: "До конца периода" },
6393
6437
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
@@ -6413,7 +6457,7 @@ class Lr extends N {
6413
6457
  this.city = e != null && e.city ? new ee(e.city) : void 0, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
6414
6458
  }
6415
6459
  }
6416
- class Us {
6460
+ class Ms {
6417
6461
  /**
6418
6462
  * Инициализирует экземпляр класса {@link DiscountConditions}.
6419
6463
  *
@@ -6456,7 +6500,7 @@ class Us {
6456
6500
  * @inheritDoc
6457
6501
  */
6458
6502
  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);
6503
+ 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
6504
  }
6461
6505
  /**
6462
6506
  * Возвращает признак того, что задано хотя бы одно условие отбора клиентов.
@@ -6464,7 +6508,7 @@ class Us {
6464
6508
  * Скидка без условий отбора клиентов доступна всем клиентам.
6465
6509
  */
6466
6510
  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);
6511
+ return Yr([this.salesDirections, this.partnerGroups, this.managers, this.additionalClients, this.fixedClients, this.regions, this.cities], (r) => !Q(r)) || Yr([this.lastLoginDate, this.lastOrderDate], (r) => !!r.from || !!r.to);
6468
6512
  }
6469
6513
  /**
6470
6514
  * Устанавливает период последнего входа или последнего заказа клиента целыми днями:
@@ -6492,7 +6536,7 @@ class Us {
6492
6536
  };
6493
6537
  }
6494
6538
  }
6495
- class Ms {
6539
+ class Hs {
6496
6540
  /**
6497
6541
  * Возвращает коэффициент стоимости товара от розничной цены для указанного процента скидки
6498
6542
  * с точностью коэффициента из настроек приложения.
@@ -6500,11 +6544,11 @@ class Ms {
6500
6544
  * @param percent Процент скидки (10 для скидки 10 %).
6501
6545
  */
6502
6546
  static percentToCostCoefficient(r) {
6503
- return mt((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6547
+ return at((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6504
6548
  }
6505
6549
  }
6506
- var Je = /* @__PURE__ */ ((i) => (i.Active = "active", i.Scheduled = "scheduled", i.Completed = "completed", i))(Je || {});
6507
- class Hs {
6550
+ var Ke = /* @__PURE__ */ ((n) => (n.Active = "active", n.Scheduled = "scheduled", n.Completed = "completed", n))(Ke || {});
6551
+ class Bs {
6508
6552
  /**
6509
6553
  * Возвращает состояние скидки на указанный момент по датам начала и окончания действия.
6510
6554
  *
@@ -6512,10 +6556,10 @@ class Hs {
6512
6556
  * @param now Момент, на который определяется состояние.
6513
6557
  */
6514
6558
  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;
6559
+ return r.deletedAt && r.deletedAt.getTime() <= e.getTime() ? Ke.Completed : r.publishedAt && r.publishedAt.getTime() > e.getTime() ? Ke.Scheduled : Ke.Active;
6516
6560
  }
6517
6561
  }
6518
- class Rr extends Fr {
6562
+ class Rr extends Ur {
6519
6563
  /**
6520
6564
  * Инициализирует экземпляр класса {@link Discount}.
6521
6565
  *
@@ -6551,7 +6595,7 @@ class Rr extends Fr {
6551
6595
  * @inheritDoc
6552
6596
  */
6553
6597
  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;
6598
+ this.conditions = new Ms(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
6599
  }
6556
6600
  /**
6557
6601
  * Возвращает состояние скидки на указанный момент.
@@ -6559,7 +6603,7 @@ class Rr extends Fr {
6559
6603
  * @param now Момент, на который определяется состояние.
6560
6604
  */
6561
6605
  getState(e = /* @__PURE__ */ new Date()) {
6562
- return Hs.resolve(this, e);
6606
+ return Bs.resolve(this, e);
6563
6607
  }
6564
6608
  /**
6565
6609
  * Переносит счётчики цен, товаров и клиентов из указанной скидки, не затрагивая остальные данные.
@@ -6581,7 +6625,7 @@ class Rr extends Fr {
6581
6625
  toSaveData() {
6582
6626
  return {
6583
6627
  name: this.name,
6584
- costCoefficient: Ms.percentToCostCoefficient(this.percent),
6628
+ costCoefficient: Hs.percentToCostCoefficient(this.percent),
6585
6629
  isLowPriceAllowed: this.isLowPriceAllowed,
6586
6630
  publishedAt: this.publishedAt ?? null,
6587
6631
  deletedAt: this.deletedAt ?? null,
@@ -6592,7 +6636,7 @@ class Rr extends Fr {
6592
6636
  };
6593
6637
  }
6594
6638
  }
6595
- class ot {
6639
+ class ct {
6596
6640
  /**
6597
6641
  * Инициализирует экземпляр класса {@link DiscountClientEligibility}.
6598
6642
  *
@@ -6640,7 +6684,7 @@ class ot {
6640
6684
  return this.additionalClientsCondition || this.fixedClientsCondition || this.partnerGroupsCondition || this.managersCondition || this.citiesCondition || this.regionsCondition || this.salesDirectionsCondition;
6641
6685
  }
6642
6686
  }
6643
- class Mi extends de {
6687
+ class Hi extends de {
6644
6688
  /**
6645
6689
  * Инициализирует экземпляр класса {@link DiscountsListFilters}.
6646
6690
  *
@@ -6708,8 +6752,8 @@ class xr extends M {
6708
6752
  *
6709
6753
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_get_list
6710
6754
  */
6711
- getDiscountsList(r, e, t, n = void 0) {
6712
- return this.getTypedPaginated(Fr, "/internal/price/discounts", r, e, t, {}, void 0, n);
6755
+ getDiscountsList(r, e, t, i = void 0) {
6756
+ return this.getTypedPaginated(Ur, "/internal/price/discounts", r, e, t, {}, void 0, i);
6713
6757
  }
6714
6758
  /**
6715
6759
  * Возвращает полные данные о скидке.
@@ -6737,7 +6781,7 @@ class xr extends M {
6737
6781
  return this.post(
6738
6782
  "/internal/price/discounts",
6739
6783
  xr.prepareSaveData(r, e),
6740
- (n) => new Rr(n.data),
6784
+ (i) => new Rr(i.data),
6741
6785
  t
6742
6786
  );
6743
6787
  }
@@ -6754,12 +6798,12 @@ class xr extends M {
6754
6798
  *
6755
6799
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_change
6756
6800
  */
6757
- updateDiscount(r, e, t, n = {}) {
6801
+ updateDiscount(r, e, t, i = {}) {
6758
6802
  return this.patch(
6759
6803
  `/internal/price/discounts/${r}`,
6760
6804
  xr.prepareSaveData(e, t),
6761
6805
  (o) => new Rr(o.data),
6762
- n
6806
+ i
6763
6807
  );
6764
6808
  }
6765
6809
  /**
@@ -6780,7 +6824,7 @@ class xr extends M {
6780
6824
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_clients_get
6781
6825
  */
6782
6826
  getEligibleClients(r) {
6783
- return this.getTypedList(ot, `/internal/price/discounts/${r}/clients`);
6827
+ return this.getTypedList(ct, `/internal/price/discounts/${r}/clients`);
6784
6828
  }
6785
6829
  /**
6786
6830
  * Проверяет, подходит ли клиент под скидку.
@@ -6794,11 +6838,11 @@ class xr extends M {
6794
6838
  return this.get(
6795
6839
  `/internal/price/discounts/${r}/clients/${e}/check`,
6796
6840
  {},
6797
- (t) => new ot(t.data)
6841
+ (t) => new ct(t.data)
6798
6842
  );
6799
6843
  }
6800
6844
  }
6801
- class Ke extends N {
6845
+ class Xe extends N {
6802
6846
  /**
6803
6847
  * Инициализирует экземпляр класса {@link FaqGroup}.
6804
6848
  *
@@ -6830,7 +6874,7 @@ class We extends pe {
6830
6874
  * @inheritDoc
6831
6875
  */
6832
6876
  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));
6877
+ 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
6878
  }
6835
6879
  /**
6836
6880
  * Возвращает данные вопроса для отправки на портал.
@@ -6843,7 +6887,7 @@ class We extends pe {
6843
6887
  };
6844
6888
  }
6845
6889
  }
6846
- class Hi extends M {
6890
+ class Bi extends M {
6847
6891
  /**
6848
6892
  * Возвращает список часто задаваемых вопросов.
6849
6893
  *
@@ -6890,7 +6934,7 @@ class Hi extends M {
6890
6934
  * @see /doc/api/internal#/operations/api_internal_faq_update
6891
6935
  */
6892
6936
  updateFaq(r, e, t = {}) {
6893
- return this.patch(`/internal/faq/${r}`, e, (n) => new We(n.data), t);
6937
+ return this.patch(`/internal/faq/${r}`, e, (i) => new We(i.data), t);
6894
6938
  }
6895
6939
  /**
6896
6940
  * Удаляет часто задаваемый вопрос.
@@ -6908,7 +6952,7 @@ class Hi extends M {
6908
6952
  * @see /doc/api/internal#/operations/api_internal_faq_groups_get_list
6909
6953
  */
6910
6954
  getGroupsList() {
6911
- return this.getTypedList(Ke, "/internal/faq/groups");
6955
+ return this.getTypedList(Xe, "/internal/faq/groups");
6912
6956
  }
6913
6957
  /**
6914
6958
  * Создаёт новую группу часто задаваемых вопросов.
@@ -6921,7 +6965,7 @@ class Hi extends M {
6921
6965
  * @see /doc/api/internal#/operations/api_internal_faq_groups_create
6922
6966
  */
6923
6967
  createGroup(r, e = {}) {
6924
- return this.post("/internal/faq/groups", r, (t) => new Ke(t.data), e);
6968
+ return this.post("/internal/faq/groups", r, (t) => new Xe(t.data), e);
6925
6969
  }
6926
6970
  /**
6927
6971
  * Изменяет данные о группе часто задаваемых вопросов.
@@ -6935,7 +6979,7 @@ class Hi extends M {
6935
6979
  * @see /doc/api/internal#/operations/api_internal_faq_groups_update
6936
6980
  */
6937
6981
  updateGroup(r, e, t = {}) {
6938
- return this.patch(`/internal/faq/groups/${r}`, e, (n) => new Ke(n.data), t);
6982
+ return this.patch(`/internal/faq/groups/${r}`, e, (i) => new Xe(i.data), t);
6939
6983
  }
6940
6984
  /**
6941
6985
  * Удаляет группу часто задаваемых вопросов. Вопросы группы при этом не удаляются.
@@ -6948,11 +6992,11 @@ class Hi extends M {
6948
6992
  return this.delete(`/internal/faq/groups/${r}`);
6949
6993
  }
6950
6994
  }
6951
- function Bi(i) {
6952
- const r = mt(i * 100);
6995
+ function Gi(n) {
6996
+ const r = at(n * 100);
6953
6997
  return `${r >= 0 ? "+" : ""}${r}%`;
6954
6998
  }
6955
- class qt {
6999
+ class Et {
6956
7000
  /**
6957
7001
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6958
7002
  *
@@ -6968,7 +7012,7 @@ class qt {
6968
7012
  */
6969
7013
  static getProductMultiplicity(r) {
6970
7014
  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;
7015
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Et.productIsMeasurable(r) ? r.properties.minCount : 1;
6972
7016
  }
6973
7017
  /**
6974
7018
  * Возвращает кратность длины для указанного товара.
@@ -6976,8 +7020,8 @@ class qt {
6976
7020
  * @param product Данные о товаре для которого необходимо вернуть кратность длины.
6977
7021
  */
6978
7022
  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;
7023
+ var e, t, i;
7024
+ 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
7025
  }
6982
7026
  }
6983
7027
  const Re = class Re extends h {
@@ -7012,7 +7056,7 @@ const Re = class Re extends h {
7012
7056
  */
7013
7057
  cacheResponse(e, t) {
7014
7058
  Re.responseDataCache.set(e, {
7015
- validTo: fs(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
7059
+ validTo: ms(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
7016
7060
  val: t
7017
7061
  });
7018
7062
  }
@@ -7027,9 +7071,9 @@ const Re = class Re extends h {
7027
7071
  * @param signal Сигнал отмены запроса.
7028
7072
  */
7029
7073
  // 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));
7074
+ getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
7075
+ const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? Re.getCachedResponse(u) : void 0;
7076
+ return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
7033
7077
  }
7034
7078
  };
7035
7079
  /**
@@ -7037,7 +7081,7 @@ const Re = class Re extends h {
7037
7081
  */
7038
7082
  s(Re, "responseDataCache", /* @__PURE__ */ new Map());
7039
7083
  let Me = Re;
7040
- class Gi {
7084
+ class zi {
7041
7085
  /**
7042
7086
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
7043
7087
  */
@@ -7053,7 +7097,7 @@ class Gi {
7053
7097
  return r.id === 0 && r.guid === "-undefined-";
7054
7098
  }
7055
7099
  }
7056
- class Nt extends Me {
7100
+ class Ut extends Me {
7057
7101
  /**
7058
7102
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
7059
7103
  */
@@ -7061,8 +7105,8 @@ class Nt extends Me {
7061
7105
  const r = "/internal/managers", e = Me.getCachedResponse(r);
7062
7106
  if (e)
7063
7107
  return e;
7064
- const t = await this.get(r), n = F.instanceListInitializer(Z, t.data);
7065
- return this.cacheResponse(r, n), n;
7108
+ const t = await this.get(r), i = U.instanceListInitializer(Z, t.data);
7109
+ return this.cacheResponse(r, i), i;
7066
7110
  }
7067
7111
  /**
7068
7112
  * Возвращает {@link Promise} для получения полных данных о менеджере с указанным идентификатором.
@@ -7075,8 +7119,8 @@ class Nt extends Me {
7075
7119
  return this.get(`/internal/managers/${r}`, {}, (e) => new Z(e.data));
7076
7120
  }
7077
7121
  }
7078
- var _e = /* @__PURE__ */ ((i) => (i.Processing = "processing", i.Completed = "completed", i.Error = "error", i.NeedsActualization = "needs_actualization", i))(_e || {});
7079
- class Bs {
7122
+ var _e = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(_e || {});
7123
+ class Gs {
7080
7124
  /**
7081
7125
  * Инициализирует экземпляр класса {@link OfferActualization}.
7082
7126
  *
@@ -7132,7 +7176,7 @@ class Bs {
7132
7176
  return this.status === _e.Completed && !this.isOutdatedAt(r);
7133
7177
  }
7134
7178
  }
7135
- class Et extends tr {
7179
+ class Ft extends sr {
7136
7180
  /**
7137
7181
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
7138
7182
  *
@@ -7164,10 +7208,10 @@ class Et extends tr {
7164
7208
  * @inheritDoc
7165
7209
  */
7166
7210
  s(this, "file");
7167
- this.name = e == null ? void 0 : e.name, this.client = new fe(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new Bs(e.actualization), this.file = e == null ? void 0 : e.file;
7211
+ this.name = e == null ? void 0 : e.name, this.client = new fe(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new Gs(e.actualization), this.file = e == null ? void 0 : e.file;
7168
7212
  }
7169
7213
  }
7170
- class Gs extends Hr {
7214
+ class zs extends Hr {
7171
7215
  /**
7172
7216
  * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
7173
7217
  *
@@ -7203,10 +7247,10 @@ class Gs extends Hr {
7203
7247
  * @inheritDoc
7204
7248
  */
7205
7249
  get isOrderable() {
7206
- return !this.isProductStub && !this.isIgnored && V(this.lineError);
7250
+ return !this.isProductStub && !this.isIgnored && Q(this.lineError);
7207
7251
  }
7208
7252
  }
7209
- class G extends Et {
7253
+ class G extends Ft {
7210
7254
  /**
7211
7255
  * Инициализирует экземпляр класса {@link Offer}.
7212
7256
  *
@@ -7223,7 +7267,7 @@ class G extends Et {
7223
7267
  */
7224
7268
  s(this, "products");
7225
7269
  this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
7226
- (t) => e.isProfstroy ? new Gs(t) : new Hr(t)
7270
+ (t) => e.isProfstroy ? new zs(t) : new Hr(t)
7227
7271
  );
7228
7272
  }
7229
7273
  }
@@ -7263,21 +7307,21 @@ class Wi extends de {
7263
7307
  * @inheritDoc
7264
7308
  */
7265
7309
  asClearRaw() {
7266
- var t, n;
7310
+ var t, i;
7267
7311
  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;
7312
+ 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
7313
  }
7270
7314
  }
7271
- class or extends v {
7315
+ class cr extends C {
7272
7316
  }
7273
- class Ft extends _t {
7317
+ class Mt extends Nt {
7274
7318
  /**
7275
7319
  * Инициализирует экземпляр класса {@link OrderInfo}.
7276
7320
  *
7277
7321
  * @param data Данные для первоначальной инициализации.
7278
7322
  */
7279
7323
  constructor(e) {
7280
- var t, n, o, c, u, p, g, a;
7324
+ var t, i, o, c, u, p, g, a;
7281
7325
  super(e);
7282
7326
  /**
7283
7327
  * @inheritDoc
@@ -7333,17 +7377,17 @@ class Ft extends _t {
7333
7377
  s(this, "isLargeOrder");
7334
7378
  this.client = new fe(e == null ? void 0 : e.client), this.payment = {
7335
7379
  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,
7380
+ status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
7337
7381
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
7338
7382
  }, this.delivery = {
7339
7383
  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(),
7384
+ 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
7385
  address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new qe(e.delivery.address) : void 0,
7342
7386
  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;
7387
+ }, 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 C(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
7388
  }
7345
7389
  }
7346
- class Ws extends Dt {
7390
+ class Ws extends Pt {
7347
7391
  /**
7348
7392
  * Инициализирует экземпляр класса {@link OrderItem}.
7349
7393
  *
@@ -7400,10 +7444,10 @@ class Ws extends Dt {
7400
7444
  * Продукт, которым заменена текущая запись.
7401
7445
  */
7402
7446
  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"));
7447
+ 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
7448
  }
7405
7449
  }
7406
- class L extends Ft {
7450
+ class L extends Mt {
7407
7451
  /**
7408
7452
  * Инициализирует экземпляр класса {@link Order}.
7409
7453
  *
@@ -7468,14 +7512,14 @@ class L extends Ft {
7468
7512
  * @inheritDoc
7469
7513
  */
7470
7514
  s(this, "numberDoc");
7471
- this.products = (e.products ?? []).map((n) => {
7515
+ this.products = (e.products ?? []).map((i) => {
7472
7516
  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;
7517
+ const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
7518
+ return new Ws(i, o);
7519
+ }), 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 C(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
7520
  }
7477
7521
  }
7478
- class zi extends M {
7522
+ class ji extends M {
7479
7523
  /**
7480
7524
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
7481
7525
  *
@@ -7486,8 +7530,8 @@ class zi extends M {
7486
7530
  *
7487
7531
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
7488
7532
  */
7489
- getOffers(r, e, t, n = void 0) {
7490
- return this.getTypedPaginated(Et, "/internal/orders/offers", r, e, t, {}, void 0, n);
7533
+ getOffers(r, e, t, i = void 0) {
7534
+ return this.getTypedPaginated(Ft, "/internal/orders/offers", r, e, t, {}, void 0, i);
7491
7535
  }
7492
7536
  /**
7493
7537
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -7506,7 +7550,7 @@ class zi extends M {
7506
7550
  name: e,
7507
7551
  items: t != null && t.length ? t : void 0
7508
7552
  },
7509
- (n) => new G(n.data)
7553
+ (i) => new G(i.data)
7510
7554
  );
7511
7555
  }
7512
7556
  /**
@@ -7521,8 +7565,8 @@ class zi extends M {
7521
7565
  *
7522
7566
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_profstroy
7523
7567
  */
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);
7568
+ createProfstroyOffer(r, e, t, i = {}) {
7569
+ return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new G(o.data), i);
7526
7570
  }
7527
7571
  /**
7528
7572
  * Запускает актуализацию заказа-черновика, созданного из файла «Профстрой»: текущий состав записи
@@ -7590,7 +7634,7 @@ class zi extends M {
7590
7634
  *
7591
7635
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
7592
7636
  */
7593
- createOrderFromDraft(r, e, t, n = {}) {
7637
+ createOrderFromDraft(r, e, t, i = {}) {
7594
7638
  const o = S().config.dateFormats.api;
7595
7639
  return this.post(
7596
7640
  `/internal/orders/offers/${r}/create-order`,
@@ -7599,8 +7643,8 @@ class zi extends M {
7599
7643
  deliveryDate: e.deliveryDate ? $(e.deliveryDate, o) : void 0,
7600
7644
  items: t != null && t.length ? t : void 0
7601
7645
  },
7602
- (c) => F.instanceListInitializer(L, c.data),
7603
- n
7646
+ (c) => U.instanceListInitializer(L, c.data),
7647
+ i
7604
7648
  );
7605
7649
  }
7606
7650
  /**
@@ -7628,7 +7672,7 @@ class zi extends M {
7628
7672
  is_additional_sale: e.isAdditionalSale,
7629
7673
  ...e.configuratorParams
7630
7674
  },
7631
- (n) => new G(n.data),
7675
+ (i) => new G(i.data),
7632
7676
  t
7633
7677
  );
7634
7678
  }
@@ -7643,7 +7687,7 @@ class zi extends M {
7643
7687
  *
7644
7688
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_modify
7645
7689
  */
7646
- patchOfferProduct(r, e, t, n = {}) {
7690
+ patchOfferProduct(r, e, t, i = {}) {
7647
7691
  return this.patch(
7648
7692
  `/internal/orders/offers/${r}/products/${e}`,
7649
7693
  {
@@ -7659,7 +7703,7 @@ class zi extends M {
7659
7703
  ...t.configuratorParams
7660
7704
  },
7661
7705
  (o) => new G(o.data),
7662
- n
7706
+ i
7663
7707
  );
7664
7708
  }
7665
7709
  /**
@@ -7711,7 +7755,7 @@ class zi extends M {
7711
7755
  return this.post(`/internal/orders/offers/${r}/send`, e);
7712
7756
  }
7713
7757
  }
7714
- class ji {
7758
+ class Yi {
7715
7759
  /**
7716
7760
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
7717
7761
  *
@@ -7730,8 +7774,8 @@ class ji {
7730
7774
  return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
7731
7775
  }
7732
7776
  }
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 || {});
7734
- class Yi {
7777
+ var js = /* @__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))(js || {});
7778
+ class Vi {
7735
7779
  /**
7736
7780
  * Инициализирует экземпляр класса {@link OrderEditorData}.
7737
7781
  *
@@ -7794,13 +7838,13 @@ class Yi {
7794
7838
  * @inheritDoc
7795
7839
  */
7796
7840
  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;
7841
+ var e, t, i;
7842
+ 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
7843
  }
7800
7844
  }
7801
- class Ut extends v {
7845
+ class Ht extends C {
7802
7846
  }
7803
- class Mt extends v {
7847
+ class Bt extends C {
7804
7848
  }
7805
7849
  class Qi extends de {
7806
7850
  /**
@@ -7809,7 +7853,7 @@ class Qi extends de {
7809
7853
  * @param data Данные для первоначальной инициализации.
7810
7854
  */
7811
7855
  constructor(e) {
7812
- var t, n, o, c;
7856
+ var t, i, o, c;
7813
7857
  super();
7814
7858
  /**
7815
7859
  * @inheritDoc
@@ -7903,7 +7947,7 @@ class Qi extends de {
7903
7947
  * @inheritDoc
7904
7948
  */
7905
7949
  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;
7950
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Ht(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 Bt(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
7951
  }
7908
7952
  /**
7909
7953
  * @inheritDoc
@@ -7949,12 +7993,12 @@ class Qi extends de {
7949
7993
  * @inheritDoc
7950
7994
  */
7951
7995
  asClearRaw() {
7952
- var t, n, o, c, u, p;
7996
+ var t, i, o, c, u, p;
7953
7997
  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;
7998
+ 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
7999
  }
7956
8000
  }
7957
- class js {
8001
+ class Ys {
7958
8002
  /**
7959
8003
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7960
8004
  *
@@ -7977,10 +8021,10 @@ class js {
7977
8021
  * @inheritDoc
7978
8022
  */
7979
8023
  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();
8024
+ 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 C(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
8025
  }
7982
8026
  }
7983
- class Vi extends M {
8027
+ class Ji extends M {
7984
8028
  /**
7985
8029
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7986
8030
  *
@@ -7991,8 +8035,8 @@ class Vi extends M {
7991
8035
  *
7992
8036
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7993
8037
  */
7994
- getOrders(r, e, t, n = void 0) {
7995
- return this.getTypedPaginated(Ft, "/internal/orders", r, e, t, {}, void 0, n);
8038
+ getOrders(r, e, t, i = void 0) {
8039
+ return this.getTypedPaginated(Mt, "/internal/orders", r, e, t, {}, void 0, i);
7996
8040
  }
7997
8041
  /**
7998
8042
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -8046,7 +8090,7 @@ class Vi extends M {
8046
8090
  * в случае ошибок в запросах.
8047
8091
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
8048
8092
  */
8049
- createClientOrder(r, e, t, n = {}) {
8093
+ createClientOrder(r, e, t, i = {}) {
8050
8094
  const o = S().config.dateFormats.api;
8051
8095
  return this.post(
8052
8096
  `/internal/clients/${r}/orders`,
@@ -8055,8 +8099,8 @@ class Vi extends M {
8055
8099
  deliveryDate: $(e.deliveryDate, o),
8056
8100
  items: t != null && t.length ? t : void 0
8057
8101
  },
8058
- (c) => F.instanceListInitializer(L, c.data),
8059
- n
8102
+ (c) => U.instanceListInitializer(L, c.data),
8103
+ i
8060
8104
  );
8061
8105
  }
8062
8106
  /**
@@ -8122,12 +8166,12 @@ class Vi extends M {
8122
8166
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
8123
8167
  */
8124
8168
  updateOrder(r, e, t = {}) {
8125
- const n = S().config.dateFormats.api;
8169
+ const i = S().config.dateFormats.api;
8126
8170
  return this.patch(
8127
8171
  `/internal/orders/${r}`,
8128
8172
  {
8129
8173
  ...e,
8130
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, n) : void 0
8174
+ deliveryDate: e.deliveryDate ? $(e.deliveryDate, i) : void 0
8131
8175
  },
8132
8176
  (o) => new L(o.data),
8133
8177
  t
@@ -8159,7 +8203,7 @@ class Vi extends M {
8159
8203
  is_additional_sale: e.isAdditionalSale,
8160
8204
  ...e.configuratorParams
8161
8205
  },
8162
- (n) => new L(n.data),
8206
+ (i) => new L(i.data),
8163
8207
  t
8164
8208
  );
8165
8209
  }
@@ -8175,7 +8219,7 @@ class Vi extends M {
8175
8219
  *
8176
8220
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
8177
8221
  */
8178
- changeOrderStatus(r, e, t, n = {}) {
8222
+ changeOrderStatus(r, e, t, i = {}) {
8179
8223
  return this.patch(
8180
8224
  `/internal/orders/${r}/status`,
8181
8225
  {
@@ -8183,7 +8227,7 @@ class Vi extends M {
8183
8227
  statusDetail: t
8184
8228
  },
8185
8229
  (o) => new L(o.data),
8186
- n
8230
+ i
8187
8231
  );
8188
8232
  }
8189
8233
  /**
@@ -8206,7 +8250,7 @@ class Vi extends M {
8206
8250
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
8207
8251
  */
8208
8252
  getOrderStatusHistory(r) {
8209
- return this.getTypedList(js, `/internal/orders/${r}/history`);
8253
+ return this.getTypedList(Ys, `/internal/orders/${r}/history`);
8210
8254
  }
8211
8255
  /**
8212
8256
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -8285,7 +8329,7 @@ class Vi extends M {
8285
8329
  *
8286
8330
  * @see /doc/api/internal#/Заказы/api_internal_orders_product_update
8287
8331
  */
8288
- patchOrderProduct(r, e, t, n = {}) {
8332
+ patchOrderProduct(r, e, t, i = {}) {
8289
8333
  return this.patch(
8290
8334
  `/internal/orders/${r}/products/${e}`,
8291
8335
  {
@@ -8301,7 +8345,7 @@ class Vi extends M {
8301
8345
  ...t.configuratorParams
8302
8346
  },
8303
8347
  (o) => new L(o.data),
8304
- n
8348
+ i
8305
8349
  );
8306
8350
  }
8307
8351
  /**
@@ -8334,7 +8378,7 @@ class Vi extends M {
8334
8378
  *
8335
8379
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
8336
8380
  */
8337
- getDeliveryCost(r, e, t, n = void 0) {
8381
+ getDeliveryCost(r, e, t, i = void 0) {
8338
8382
  const o = S().config.dateFormats.api;
8339
8383
  return this.get(
8340
8384
  `/internal/orders/delivery/${r}/cost`,
@@ -8344,11 +8388,11 @@ class Vi extends M {
8344
8388
  },
8345
8389
  (c) => c.data,
8346
8390
  void 0,
8347
- n
8391
+ i
8348
8392
  );
8349
8393
  }
8350
8394
  }
8351
- const Ji = Symbol("currentOrder");
8395
+ const Ki = Symbol("currentOrder");
8352
8396
  class Pr {
8353
8397
  /**
8354
8398
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
@@ -8379,24 +8423,24 @@ class Pr {
8379
8423
  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
8424
  }
8381
8425
  }
8382
- const Tr = (i) => {
8383
- var r, e, t, n, o;
8384
- return i ? yt(
8426
+ const Tr = (n) => {
8427
+ var r, e, t, i, o;
8428
+ return n ? wt(
8385
8429
  {
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
8430
+ cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
8431
+ clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
8432
+ managers: (t = n.managers) == null ? void 0 : t.map((c) => c.id),
8433
+ partnerGroups: (i = n.partnerGroups) == null ? void 0 : i.map((c) => c.id),
8434
+ salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
8435
+ hideNotActive: n.hideNotActive
8392
8436
  },
8393
- (c) => m(c) || (Q(c) || Xe(c)) && V(c)
8437
+ (c) => m(c) || (V(c) || Ze(c)) && Q(c)
8394
8438
  ) : {};
8395
- }, ct = (i) => {
8439
+ }, lt = (n) => {
8396
8440
  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;
8441
+ 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
8442
  };
8399
- class Ki extends h {
8443
+ class Xi extends h {
8400
8444
  /**
8401
8445
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
8402
8446
  *
@@ -8410,10 +8454,10 @@ class Ki extends h {
8410
8454
  return this.get(
8411
8455
  `/internal/price/products/${r}/analyze`,
8412
8456
  {
8413
- ...ct(e),
8457
+ ...lt(e),
8414
8458
  filters: Tr(t)
8415
8459
  },
8416
- (n) => F.instanceListInitializer(Pr, n.data)
8460
+ (i) => U.instanceListInitializer(Pr, i.data)
8417
8461
  );
8418
8462
  }
8419
8463
  /**
@@ -8429,10 +8473,10 @@ class Ki extends h {
8429
8473
  return this.get(
8430
8474
  `/internal/price/categories/${r}/analyze`,
8431
8475
  {
8432
- ...ct(e),
8476
+ ...lt(e),
8433
8477
  filters: Tr(t)
8434
8478
  },
8435
- (n) => F.instanceListInitializer(Pr, n.data)
8479
+ (i) => U.instanceListInitializer(Pr, i.data)
8436
8480
  );
8437
8481
  }
8438
8482
  /**
@@ -8453,11 +8497,11 @@ class Ki extends h {
8453
8497
  ...e,
8454
8498
  filters: Tr(t)
8455
8499
  },
8456
- (n) => F.instanceListInitializer(Pr, n.data)
8500
+ (i) => U.instanceListInitializer(Pr, i.data)
8457
8501
  );
8458
8502
  }
8459
8503
  }
8460
- class Ys {
8504
+ class Vs {
8461
8505
  /**
8462
8506
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
8463
8507
  *
@@ -8504,10 +8548,10 @@ class Ys {
8504
8548
  * @inheritDoc
8505
8549
  */
8506
8550
  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;
8551
+ 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
8552
  }
8509
8553
  }
8510
- class Qs extends Ue {
8554
+ class Qs extends Fe {
8511
8555
  /**
8512
8556
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
8513
8557
  *
@@ -8519,10 +8563,10 @@ class Qs extends Ue {
8519
8563
  * @inheritDoc
8520
8564
  */
8521
8565
  s(this, "history");
8522
- this.history = P(e.history, (t) => new Ys(t));
8566
+ this.history = P(e.history, (t) => new Vs(t));
8523
8567
  }
8524
8568
  }
8525
- class Xi extends h {
8569
+ class Zi extends h {
8526
8570
  /**
8527
8571
  * Возвращает данные об истории изменения цен.
8528
8572
  *
@@ -8532,21 +8576,21 @@ class Xi extends h {
8532
8576
  */
8533
8577
  getProductPriceHistory(r) {
8534
8578
  var o, c, u, p, g;
8535
- const e = S().config.dateFormats.api, t = yt(
8579
+ const e = S().config.dateFormats.api, t = wt(
8536
8580
  Ne(r, {
8537
8581
  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
8582
+ from: er((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
8583
+ to: er((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
8540
8584
  }
8541
8585
  }),
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) => [
8586
+ (a) => m(a) || (V(a) || Ze(a)) && Q(a)
8587
+ ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
8588
+ return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
8545
8589
  new Qs(Ne(a[0], { history: a }))
8546
8590
  ]);
8547
8591
  }
8548
8592
  }
8549
- class lt {
8593
+ class ut {
8550
8594
  /**
8551
8595
  * Инициализирует экземпляр класса {@link RecommendationsList}.
8552
8596
  *
@@ -8561,10 +8605,10 @@ class lt {
8561
8605
  * Список рекомендованных категорий продуктов.
8562
8606
  */
8563
8607
  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)));
8608
+ 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
8609
  }
8566
8610
  }
8567
- class Zi extends h {
8611
+ class en extends h {
8568
8612
  /**
8569
8613
  * Возвращает данные о рекомендациях указанной категории продуктов.
8570
8614
  *
@@ -8572,7 +8616,7 @@ class Zi extends h {
8572
8616
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
8573
8617
  */
8574
8618
  getProductCategoryRecommendations(r) {
8575
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new lt(e.data));
8619
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new ut(e.data));
8576
8620
  }
8577
8621
  /**
8578
8622
  * Возвращает данные о рекомендациях указанного продукта.
@@ -8581,7 +8625,7 @@ class Zi extends h {
8581
8625
  * @see /docs/api#/operations/api_internal_recommendations_product_get
8582
8626
  */
8583
8627
  getProductRecommendations(r) {
8584
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new lt(e.data));
8628
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new ut(e.data));
8585
8629
  }
8586
8630
  /**
8587
8631
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -8610,12 +8654,12 @@ class Zi extends h {
8610
8654
  });
8611
8655
  }
8612
8656
  }
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 || {});
8614
- class Ks extends v {
8657
+ var Js = /* @__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))(Js || {}), Ks = /* @__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))(Ks || {});
8658
+ class Xs extends C {
8615
8659
  }
8616
- class Xs extends v {
8660
+ class Zs extends C {
8617
8661
  }
8618
- class ut extends v {
8662
+ class pt extends C {
8619
8663
  /**
8620
8664
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
8621
8665
  *
@@ -8628,18 +8672,18 @@ class ut extends v {
8628
8672
  * @inheritDoc
8629
8673
  */
8630
8674
  s(this, "userRegions");
8631
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((n) => new nr(n))) ?? [];
8675
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new or(i))) ?? [];
8632
8676
  }
8633
8677
  }
8634
- class Zs extends v {
8678
+ class ei extends C {
8635
8679
  }
8636
- class ei extends v {
8680
+ class ri extends C {
8637
8681
  }
8638
- class ri extends v {
8682
+ class ti extends C {
8639
8683
  }
8640
- class ti extends v {
8684
+ class si extends C {
8641
8685
  }
8642
- class en {
8686
+ class rn {
8643
8687
  /**
8644
8688
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
8645
8689
  *
@@ -8658,7 +8702,7 @@ class en {
8658
8702
  return r.id === 0 && r.slug === "-undefined-";
8659
8703
  }
8660
8704
  }
8661
- class Ht extends v {
8705
+ class Gt extends C {
8662
8706
  }
8663
8707
  const j = class j extends Me {
8664
8708
  /**
@@ -8678,20 +8722,20 @@ const j = class j extends Me {
8678
8722
  * и использовать в случае аналогичных запросов.
8679
8723
  */
8680
8724
  getReference(r, e = !1) {
8681
- return this.getTypedDataArrayRequester(Ks, `/internal/references/${r}`, e);
8725
+ return this.getTypedDataArrayRequester(Xs, `/internal/references/${r}`, e);
8682
8726
  }
8683
8727
  /**
8684
8728
  * Возвращает {@link Promise} для получения справочника данных о канале
8685
8729
  * первичного интереса.
8686
8730
  */
8687
8731
  getChannelPrimaryInterest() {
8688
- return this.getTypedDataArrayRequester(xt, "/internal/references/channel-primary-interest", !0);
8732
+ return this.getTypedDataArrayRequester(_t, "/internal/references/channel-primary-interest", !0);
8689
8733
  }
8690
8734
  /**
8691
8735
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
8692
8736
  */
8693
8737
  getContactPositions() {
8694
- return this.getTypedDataArrayRequester(Zs, "/internal/references/contact-position", !0);
8738
+ return this.getTypedDataArrayRequester(ei, "/internal/references/contact-position", !0);
8695
8739
  }
8696
8740
  /**
8697
8741
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -8722,49 +8766,49 @@ const j = class j extends Me {
8722
8766
  * Возвращает {@link Promise} для получения справочника операторов.
8723
8767
  */
8724
8768
  getOperators() {
8725
- return this.getTypedDataArrayRequester(Ut, "/internal/references/operator", !0);
8769
+ return this.getTypedDataArrayRequester(Ht, "/internal/references/operator", !0);
8726
8770
  }
8727
8771
  /**
8728
8772
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
8729
8773
  */
8730
8774
  getOrderPaymentStatuses() {
8731
- return this.getTypedDataArrayRequester(ei, "/public/references/order-payment-status", !0);
8775
+ return this.getTypedDataArrayRequester(ri, "/public/references/order-payment-status", !0);
8732
8776
  }
8733
8777
  /**
8734
8778
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
8735
8779
  */
8736
8780
  getOrderStatuses() {
8737
- return this.getTypedDataArrayRequester(or, "/internal/references/order-status", !0);
8781
+ return this.getTypedDataArrayRequester(cr, "/internal/references/order-status", !0);
8738
8782
  }
8739
8783
  /**
8740
8784
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
8741
8785
  */
8742
8786
  getOrderStatusDetails() {
8743
- return this.getTypedDataArrayRequester(ri, "/internal/references/order-status-detail", !0);
8787
+ return this.getTypedDataArrayRequester(ti, "/internal/references/order-status-detail", !0);
8744
8788
  }
8745
8789
  /**
8746
8790
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
8747
8791
  */
8748
8792
  getPaymentTypes() {
8749
- return this.getTypedDataArrayRequester(Mt, "/public/references/payment-type", !0);
8793
+ return this.getTypedDataArrayRequester(Bt, "/public/references/payment-type", !0);
8750
8794
  }
8751
8795
  /**
8752
8796
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
8753
8797
  */
8754
8798
  getResourceTypes() {
8755
- return this.getTypedDataArrayRequester(Ht, "/internal/references/resource-type", !0);
8799
+ return this.getTypedDataArrayRequester(Gt, "/internal/references/resource-type", !0);
8756
8800
  }
8757
8801
  /**
8758
8802
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
8759
8803
  */
8760
8804
  getSalesDirections() {
8761
- return this.getTypedDataArrayRequester(U, "/public/references/sales-direction", !0);
8805
+ return this.getTypedDataArrayRequester(F, "/public/references/sales-direction", !0);
8762
8806
  }
8763
8807
  /**
8764
8808
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
8765
8809
  */
8766
8810
  getSourcePrimaryInterest() {
8767
- return this.getTypedDataArrayRequester(It, "/internal/references/source-primary-interest", !0);
8811
+ return this.getTypedDataArrayRequester(qt, "/internal/references/source-primary-interest", !0);
8768
8812
  }
8769
8813
  /**
8770
8814
  * Выполняет поиск данных о городах по терму в названии.
@@ -8802,7 +8846,7 @@ const j = class j extends Me {
8802
8846
  * @param regionId Идентификатор региона.
8803
8847
  */
8804
8848
  getCitiesByRegion(r) {
8805
- return this.getTypedDataArrayRequester(Xs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8849
+ return this.getTypedDataArrayRequester(Zs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8806
8850
  (e) => j.withoutUnknownLocation(e)
8807
8851
  );
8808
8852
  }
@@ -8813,7 +8857,7 @@ const j = class j extends Me {
8813
8857
  * @param regionId Идентификатор региона.
8814
8858
  */
8815
8859
  getCitiesWithUserRegionByRegion(r) {
8816
- return this.getTypedDataArrayRequester(ut, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8860
+ return this.getTypedDataArrayRequester(pt, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8817
8861
  (e) => j.withoutUnknownLocation(e)
8818
8862
  );
8819
8863
  }
@@ -8832,7 +8876,7 @@ const j = class j extends Me {
8832
8876
  !1,
8833
8877
  { term: r, ...e ? { params: { countryId: e } } : {} },
8834
8878
  t
8835
- ).then((n) => j.withoutUnknownLocation(n));
8879
+ ).then((i) => j.withoutUnknownLocation(i));
8836
8880
  }
8837
8881
  /**
8838
8882
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -8842,7 +8886,7 @@ const j = class j extends Me {
8842
8886
  * @param signal Сигнал отмены запроса.
8843
8887
  */
8844
8888
  searchCityWithUserRegion(r, e = void 0) {
8845
- return this.getTypedDataArrayRequester(ut, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8889
+ return this.getTypedDataArrayRequester(pt, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8846
8890
  (t) => j.withoutUnknownLocation(t)
8847
8891
  );
8848
8892
  }
@@ -8870,7 +8914,7 @@ const j = class j extends Me {
8870
8914
  * Возвращает {@link Promise} для получения справочника типов свойств.
8871
8915
  */
8872
8916
  getPropertyTypes() {
8873
- return this.getTypedDataArrayRequester(St, "/internal/references/property-type", !0);
8917
+ return this.getTypedDataArrayRequester(kt, "/internal/references/property-type", !0);
8874
8918
  }
8875
8919
  /**
8876
8920
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -8882,7 +8926,7 @@ const j = class j extends Me {
8882
8926
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
8883
8927
  */
8884
8928
  getProductFileType() {
8885
- return this.getTypedDataArrayRequester(ti, "/public/references/product-file-type", !0);
8929
+ return this.getTypedDataArrayRequester(si, "/public/references/product-file-type", !0);
8886
8930
  }
8887
8931
  };
8888
8932
  /**
@@ -8892,12 +8936,12 @@ const j = class j extends Me {
8892
8936
  s(j, "unknownLocationId", 1);
8893
8937
  let d = j;
8894
8938
  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);
8939
+ const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), a = v(void 0), T = v(void 0), Ae = v(void 0), Se = v(void 0), me = v(void 0), ye = v(void 0), lr = v(void 0), ur = v(void 0), pr = v(void 0), l = v(void 0);
8896
8940
  return {
8897
8941
  /**
8898
8942
  * Список загружаемых/загруженных на данный момент значений.
8899
8943
  */
8900
- dataLoaderList: i,
8944
+ dataLoaderList: n,
8901
8945
  /**
8902
8946
  * Справочник каналов первичного интереса.
8903
8947
  */
@@ -8913,7 +8957,7 @@ const A = ue("common.references_private", () => {
8913
8957
  /**
8914
8958
  * Справочник типов доставки.
8915
8959
  */
8916
- deliveryTypeReference: n,
8960
+ deliveryTypeReference: i,
8917
8961
  /**
8918
8962
  * Список менеджеров.
8919
8963
  */
@@ -8961,22 +9005,22 @@ const A = ue("common.references_private", () => {
8961
9005
  /**
8962
9006
  * Справочник источников первичного интереса.
8963
9007
  */
8964
- sourcePrimaryInterestReference: cr,
9008
+ sourcePrimaryInterestReference: lr,
8965
9009
  /**
8966
9010
  * Справочник складов.
8967
9011
  */
8968
- warehousesReference: lr,
9012
+ warehousesReference: ur,
8969
9013
  /**
8970
9014
  * Справочник типов свойств.
8971
9015
  */
8972
- propertyTypesReference: ur,
9016
+ propertyTypesReference: pr,
8973
9017
  /**
8974
9018
  * Справочник коэффициентов цен.
8975
9019
  */
8976
9020
  priceCoefficientsReference: l
8977
9021
  };
8978
- }), rn = ue("common.references", () => {
8979
- const i = b(() => {
9022
+ }), tn = ue("common.references", () => {
9023
+ const n = b(() => {
8980
9024
  const l = A();
8981
9025
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8982
9026
  l.channelPrimaryInterestReference = f;
@@ -8996,7 +9040,7 @@ const A = ue("common.references_private", () => {
8996
9040
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8997
9041
  l.opfReference = f;
8998
9042
  }).catch(R)), l.opfReference;
8999
- }), n = b(() => {
9043
+ }), i = b(() => {
9000
9044
  const l = A();
9001
9045
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
9002
9046
  l.operatorReference = f;
@@ -9053,20 +9097,20 @@ const A = ue("common.references_private", () => {
9053
9097
  }).catch(R)), l.deliveryTypeReference;
9054
9098
  }), ye = b(() => {
9055
9099
  const l = A();
9056
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Nt).getManagers().then((f) => {
9100
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ut).getManagers().then((f) => {
9057
9101
  l.managersList = f;
9058
9102
  }).catch(R)), l.managersList;
9059
- }), cr = b(() => {
9103
+ }), lr = b(() => {
9060
9104
  const l = A();
9061
9105
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
9062
9106
  l.warehousesReference = f;
9063
9107
  }).catch(R)), l.warehousesReference;
9064
- }), lr = b(() => {
9108
+ }), ur = b(() => {
9065
9109
  const l = A();
9066
9110
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
9067
9111
  l.propertyTypesReference = f;
9068
9112
  }).catch(R)), l.propertyTypesReference;
9069
- }), ur = b(() => {
9113
+ }), pr = b(() => {
9070
9114
  const l = A();
9071
9115
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
9072
9116
  l.priceCoefficientsReference = f;
@@ -9076,7 +9120,7 @@ const A = ue("common.references_private", () => {
9076
9120
  /**
9077
9121
  * Справочник каналов первичного интереса.
9078
9122
  */
9079
- channelPrimaryInterestsReference: i,
9123
+ channelPrimaryInterestsReference: n,
9080
9124
  /**
9081
9125
  * Справочник должностей контактных лиц.
9082
9126
  */
@@ -9092,7 +9136,7 @@ const A = ue("common.references_private", () => {
9092
9136
  /**
9093
9137
  * Справочник операторов.
9094
9138
  */
9095
- operatorReference: n,
9139
+ operatorReference: i,
9096
9140
  /**
9097
9141
  * Справочник статусов оплаты заказа.
9098
9142
  */
@@ -9140,18 +9184,18 @@ const A = ue("common.references_private", () => {
9140
9184
  /**
9141
9185
  * Справочник складов.
9142
9186
  */
9143
- warehousesReference: cr,
9187
+ warehousesReference: lr,
9144
9188
  /**
9145
9189
  * Справочник типов свойств.
9146
9190
  */
9147
- propertyTypesReference: lr,
9191
+ propertyTypesReference: ur,
9148
9192
  /**
9149
9193
  * Справочник коэффициентов цен.
9150
9194
  */
9151
- priceCoefficientsReference: ur
9195
+ priceCoefficientsReference: pr
9152
9196
  };
9153
9197
  });
9154
- class si {
9198
+ class ii {
9155
9199
  /**
9156
9200
  * Инициализирует экземпляр класса {@link MetaTagItem}.
9157
9201
  *
@@ -9169,7 +9213,7 @@ class si {
9169
9213
  this.name = r.name, this.content = r.content;
9170
9214
  }
9171
9215
  }
9172
- class pt {
9216
+ class ht {
9173
9217
  /**
9174
9218
  * Инициализирует экземпляр класса {@link Seo}.
9175
9219
  *
@@ -9209,10 +9253,10 @@ class pt {
9209
9253
  */
9210
9254
  s(this, "tags");
9211
9255
  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;
9256
+ this.resourceType = new Gt(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 ii(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
9213
9257
  }
9214
9258
  }
9215
- class tn extends h {
9259
+ class sn extends h {
9216
9260
  /**
9217
9261
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
9218
9262
  *
@@ -9220,7 +9264,7 @@ class tn extends h {
9220
9264
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
9221
9265
  */
9222
9266
  getResourceSeoData(r, e) {
9223
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new pt(t.data));
9267
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new ht(t.data));
9224
9268
  }
9225
9269
  /**
9226
9270
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -9231,7 +9275,7 @@ class tn extends h {
9231
9275
  * в случае ошибок в запросах.
9232
9276
  */
9233
9277
  saveResourceSeoData(r, e = {}) {
9234
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new pt(t.data), e);
9278
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new ht(t.data), e);
9235
9279
  }
9236
9280
  /**
9237
9281
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -9243,7 +9287,7 @@ class tn extends h {
9243
9287
  return this.delete(`/internal/seo/${r.slug}/${e}`);
9244
9288
  }
9245
9289
  }
9246
- class sn extends h {
9290
+ class nn extends h {
9247
9291
  /**
9248
9292
  * Возвращает подсказки по адресам.
9249
9293
  *
@@ -9282,16 +9326,16 @@ class sn extends h {
9282
9326
  */
9283
9327
  execSuggestionQuery(r, e) {
9284
9328
  return this.get(r, { query: e }).then((t) => {
9285
- const n = [...t];
9329
+ const i = [...t];
9286
9330
  let o = 1;
9287
- return n.forEach((c) => {
9331
+ return i.forEach((c) => {
9288
9332
  c.id = o++;
9289
- }), n;
9333
+ }), i;
9290
9334
  });
9291
9335
  }
9292
9336
  }
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 {
9337
+ var zt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(zt || {});
9338
+ class ni extends $t {
9295
9339
  /**
9296
9340
  * Инициализирует экземпляр класса {@link User}.
9297
9341
  *
@@ -9315,10 +9359,10 @@ class ii extends At {
9315
9359
  * Роль ценообразования текущего пользователя.
9316
9360
  */
9317
9361
  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;
9362
+ 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 dt(e.pricingRole) : void 0;
9319
9363
  }
9320
9364
  }
9321
- class nn extends h {
9365
+ class on extends h {
9322
9366
  /**
9323
9367
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
9324
9368
  */
@@ -9334,22 +9378,22 @@ class nn extends h {
9334
9378
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
9335
9379
  }
9336
9380
  }
9337
- class ni extends h {
9381
+ class oi extends h {
9338
9382
  /**
9339
9383
  * Возвращает данные о текущем пользователе.
9340
9384
  */
9341
9385
  // eslint-disable-next-line class-methods-use-this
9342
9386
  getCurrentUser() {
9343
- return this.get("/internal/users/info", {}, (r) => new ii(r.data), !0);
9387
+ return this.get("/internal/users/info", {}, (r) => new ni(r.data), !0);
9344
9388
  }
9345
9389
  }
9346
9390
  const Ir = ue("common.user_state_private", () => {
9347
- const i = C({}), r = C(void 0), e = C(void 0);
9391
+ const n = v({}), r = v(void 0), e = v(void 0);
9348
9392
  return {
9349
9393
  /**
9350
9394
  * Список загружаемых/загруженных на данный момент значений.
9351
9395
  */
9352
- dataLoaderList: i,
9396
+ dataLoaderList: n,
9353
9397
  /**
9354
9398
  * Данные о текущем пользователе.
9355
9399
  */
@@ -9360,28 +9404,28 @@ const Ir = ue("common.user_state_private", () => {
9360
9404
  currentManager: e
9361
9405
  };
9362
9406
  });
9363
- function ht(i) {
9407
+ function gt(n) {
9364
9408
  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) => {
9409
+ (n == null ? void 0 : n.type) !== zt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Ut).getManager(n.id).then((e) => {
9366
9410
  r.currentManager = e;
9367
9411
  }).catch(R).finally(() => {
9368
9412
  r.dataLoaderList.currentManager = !1;
9369
9413
  }));
9370
9414
  }
9371
- const on = ue("common.user_state", () => {
9372
- const i = b(() => {
9415
+ const cn = ue("common.user_state", () => {
9416
+ const n = b(() => {
9373
9417
  const e = Ir();
9374
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(ni).getCurrentUser().then((t) => {
9375
- e.currentUser = t, ht(t);
9418
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(oi).getCurrentUser().then((t) => {
9419
+ e.currentUser = t, gt(t);
9376
9420
  }).catch(R).finally(() => {
9377
9421
  e.dataLoaderList.currentUser = !1;
9378
9422
  })), e.currentUser;
9379
- }), r = b(() => (ht(i.value), Ir().currentManager));
9423
+ }), r = b(() => (gt(n.value), Ir().currentManager));
9380
9424
  return {
9381
9425
  /**
9382
9426
  * Данные о текущем пользователе.
9383
9427
  */
9384
- currentUser: i,
9428
+ currentUser: n,
9385
9429
  /**
9386
9430
  * Данные о текущем менеджере (если текущий пользователь является менеджером).
9387
9431
  */
@@ -9403,17 +9447,17 @@ class _r {
9403
9447
  * @inheritDoc
9404
9448
  */
9405
9449
  s(this, "salesDirection");
9406
- this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new U(r == null ? void 0 : r.salesDirection);
9450
+ this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
9407
9451
  }
9408
9452
  }
9409
- class br extends nr {
9453
+ class br extends or {
9410
9454
  /**
9411
9455
  * Инициализирует экземпляр класса {@link UserRegion}.
9412
9456
  *
9413
9457
  * @param data Данные для первоначальной инициализации.
9414
9458
  */
9415
9459
  constructor(e) {
9416
- var t, n;
9460
+ var t, i;
9417
9461
  super(e);
9418
9462
  /**
9419
9463
  * @inheritDoc
@@ -9423,10 +9467,10 @@ class br extends nr {
9423
9467
  * @inheritDoc
9424
9468
  */
9425
9469
  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))) ?? [];
9470
+ 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
9471
  }
9428
9472
  }
9429
- class cn extends de {
9473
+ class ln extends de {
9430
9474
  /**
9431
9475
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
9432
9476
  *
@@ -9462,7 +9506,7 @@ class cn extends de {
9462
9506
  return this;
9463
9507
  }
9464
9508
  }
9465
- class ln extends M {
9509
+ class un extends M {
9466
9510
  /**
9467
9511
  * Возвращает список регионов пользователей.
9468
9512
  *
@@ -9473,7 +9517,7 @@ class ln extends M {
9473
9517
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
9474
9518
  */
9475
9519
  getRegionsList(r, e, t) {
9476
- return this.getTypedPaginated(nr, "/internal/users/regions", r, e, t);
9520
+ return this.getTypedPaginated(or, "/internal/users/regions", r, e, t);
9477
9521
  }
9478
9522
  /**
9479
9523
  * Возвращает полные данные о регионе пользователей.
@@ -9510,7 +9554,7 @@ class ln extends M {
9510
9554
  * @see /doc/api/internal#/operations/api_internal_user_region_change
9511
9555
  */
9512
9556
  updateRegion(r, e, t = {}) {
9513
- return this.patch(`/internal/users/regions/${r}`, e, (n) => new br(n.data), t);
9557
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new br(i.data), t);
9514
9558
  }
9515
9559
  /**
9516
9560
  * Удаляет регион пользователей.
@@ -9542,7 +9586,7 @@ class ln extends M {
9542
9586
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
9543
9587
  */
9544
9588
  attachRegionEmployee(r, e, t) {
9545
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (n) => new _r(n.data));
9589
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new _r(i.data));
9546
9590
  }
9547
9591
  /**
9548
9592
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -9561,7 +9605,7 @@ class ln extends M {
9561
9605
  });
9562
9606
  }
9563
9607
  }
9564
- class un {
9608
+ class pn {
9565
9609
  /**
9566
9610
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
9567
9611
  *
@@ -9585,217 +9629,217 @@ class un {
9585
9629
  }
9586
9630
  }
9587
9631
  export {
9588
- Ks as AnyReference,
9589
- Ds as AppBaseConfig,
9632
+ Xs as AnyReference,
9633
+ Rs as AppBaseConfig,
9590
9634
  kr as BankAccount,
9591
9635
  M as BasePaginationProvider,
9592
9636
  ar as BlogPost,
9593
9637
  Ar as BlogPostMediaFile,
9594
9638
  Qe as BlogPostMediaTypeEnum,
9595
- Ve as BlogPostPublicationStatusEnum,
9596
- Fe as BlogPostShortInfo,
9597
- mi as BlogPostsListFilters,
9639
+ Je as BlogPostPublicationStatusEnum,
9640
+ Ue as BlogPostShortInfo,
9641
+ yi as BlogPostsListFilters,
9598
9642
  Sr as BlogProvider,
9599
- bs as CalculationTypeEnum,
9643
+ ds as CalculationTypeEnum,
9600
9644
  y as CalendarHelper,
9601
9645
  Le as Cart,
9602
- ai as CartProvider,
9646
+ wi as CartProvider,
9603
9647
  Ci as CatalogProvider,
9604
- vt as CatalogableItem,
9648
+ Rt as CatalogableItem,
9605
9649
  Y as Category,
9606
- Os as CategoryFilter,
9607
- tt as CategoryFilterSetting,
9608
- ks as CategoryFilterValue,
9609
- rt as CategoryPricingRule,
9610
- xt as ChannelPrimaryInterest,
9611
- Xs as City,
9650
+ Ls as CategoryFilter,
9651
+ st as CategoryFilterSetting,
9652
+ Os as CategoryFilterValue,
9653
+ tt as CategoryPricingRule,
9654
+ _t as ChannelPrimaryInterest,
9655
+ Zs as City,
9612
9656
  ee as CityWithRegionAndCountry,
9613
- ut as CityWithUserRegion,
9614
- nt as Client,
9615
- _s as ClientAdditionalData,
9616
- er as ClientCategory,
9617
- z as ClientDataProvider,
9618
- $t as ClientPriceCatalogableItem,
9619
- et as ClientPriceCategory,
9620
- vr as ClientPriceProduct,
9621
- vi as ClientPriceProvider,
9622
- Di as ClientPriceTemplateProvider,
9657
+ pt as CityWithUserRegion,
9658
+ ot as Client,
9659
+ qs as ClientAdditionalData,
9660
+ rr as ClientCategory,
9661
+ W as ClientDataProvider,
9662
+ Ot as ClientPriceCatalogableItem,
9663
+ rt as ClientPriceCategory,
9664
+ Cr as ClientPriceProduct,
9665
+ Di as ClientPriceProvider,
9666
+ Ri as ClientPriceTemplateProvider,
9623
9667
  Pe as ClientProduct,
9624
- Ti as ClientProductCategoryDataProvider,
9625
- bi as ClientProductDataProvider,
9668
+ bi as ClientProductCategoryDataProvider,
9669
+ di as ClientProductDataProvider,
9626
9670
  fe as ClientShortInfo,
9627
- Ls as ClientsAdditionalDataRequestTypeEnum,
9628
- ki as ClientsListFilters,
9629
- Ue as CodedIdentity,
9630
- xi as ConfiguratorProvider,
9631
- Ns as ConfiguratorsEnum,
9671
+ xs as ClientsAdditionalDataRequestTypeEnum,
9672
+ Oi as ClientsListFilters,
9673
+ Fe as CodedIdentity,
9674
+ Ii as ConfiguratorProvider,
9675
+ Es as ConfiguratorsEnum,
9632
9676
  Or as Contact,
9633
- Pt as ContactLinks,
9677
+ bt as ContactLinks,
9634
9678
  oe as ContactPerson,
9635
- qs as ContactPersonRelated,
9636
- Zs as ContactPosition,
9679
+ Ns as ContactPersonRelated,
9680
+ ei as ContactPosition,
9637
9681
  Dr as ContactRelation,
9638
- kt as ContragentBase,
9639
- rr as ContragentFactory,
9640
- Ot as ContragentIc,
9641
- xs as ContragentPerson,
9642
- Is as ContragentUlNr,
9643
- Lt as ContragentUlR,
9682
+ Lt as ContragentBase,
9683
+ tr as ContragentFactory,
9684
+ xt as ContragentIc,
9685
+ Is as ContragentPerson,
9686
+ _s as ContragentUlNr,
9687
+ It as ContragentUlR,
9644
9688
  Mr as CostSourceEnum,
9645
9689
  Te as Country,
9646
- tr as CreatableIdentity,
9690
+ sr as CreatableIdentity,
9647
9691
  Gr as CuratedDirection,
9648
- Wr as Curator,
9692
+ zr as Curator,
9649
9693
  J as Currency,
9650
- sn as DataSuggestionProvider,
9694
+ nn as DataSuggestionProvider,
9651
9695
  O as DateHelper,
9652
- Ei as DateTimeProvider,
9653
- Ss as DeletableIdentity,
9654
- ir as DeletableNamedIdentity,
9696
+ Ui as DateTimeProvider,
9697
+ $s as DeletableIdentity,
9698
+ nr as DeletableNamedIdentity,
9655
9699
  qe as DeliveryAddress,
9656
9700
  X as DeliveryType,
9657
- at as DetailedJwtPayload,
9658
- as as DeviceTypeResolutionConfig,
9701
+ vt as DetailedJwtPayload,
9702
+ ws as DeviceTypeResolutionConfig,
9659
9703
  Rr as Discount,
9660
9704
  Lr as DiscountClient,
9661
- ot as DiscountClientEligibility,
9662
- Us as DiscountConditions,
9663
- Ms as DiscountHelper,
9705
+ ct as DiscountClientEligibility,
9706
+ Ms as DiscountConditions,
9707
+ Hs as DiscountHelper,
9664
9708
  xr as DiscountProvider,
9665
- Fr as DiscountShortInfo,
9666
- Je as DiscountStateEnum,
9667
- Hs as DiscountStateHelper,
9668
- Mi as DiscountsListFilters,
9709
+ Ur as DiscountShortInfo,
9710
+ Ke as DiscountStateEnum,
9711
+ Bs as DiscountStateHelper,
9712
+ Hi as DiscountsListFilters,
9669
9713
  We as Faq,
9670
- Ke as FaqGroup,
9671
- Hi as FaqProvider,
9672
- un as FieldValidationResultData,
9714
+ Xe as FaqGroup,
9715
+ Bi as FaqProvider,
9716
+ pn as FieldValidationResultData,
9673
9717
  ie as FilterGroup,
9674
- Xr as FilterItem,
9718
+ Zr as FilterItem,
9675
9719
  Er as FilterOpEnum,
9676
- $s as FilterSettings,
9677
- Ct as GeoCoordinates,
9678
- Ps as HiddenCatalogableItem,
9720
+ ks as FilterSettings,
9721
+ Dt as GeoCoordinates,
9722
+ Ts as HiddenCatalogableItem,
9679
9723
  Me as HttpCachedRequester,
9680
- ws as HttpParamsConfig,
9724
+ vs as HttpParamsConfig,
9681
9725
  h as HttpRequester,
9682
9726
  pe as Identity,
9683
- Ts as Image,
9684
- W as InterceptorsEnum,
9727
+ bs as Image,
9728
+ z as InterceptorsEnum,
9685
9729
  be as JwtPayload,
9686
9730
  Z as Manager,
9687
9731
  Br as ManagerCommon,
9688
- Gi as ManagerDataFactory,
9689
- Nt as ManagerDataProvider,
9690
- si as MetaTagItem,
9732
+ zi as ManagerDataFactory,
9733
+ Ut as ManagerDataProvider,
9734
+ ii as MetaTagItem,
9691
9735
  N as NamedIdentity,
9692
9736
  G as Offer,
9693
- Bs as OfferActualization,
9737
+ Gs as OfferActualization,
9694
9738
  _e as OfferActualizationStatus,
9695
- ji as OfferHelper,
9696
- Et as OfferShortInfo,
9697
- zi as OffersDataProvider,
9739
+ Yi as OfferHelper,
9740
+ Ft as OfferShortInfo,
9741
+ ji as OffersDataProvider,
9698
9742
  Wi as OffersListFilters,
9699
- Ut as Operator,
9743
+ Ht as Operator,
9700
9744
  ce as Opf,
9701
9745
  K as OpfEnum,
9702
9746
  L as Order,
9703
- zs as OrderAction,
9704
- Yi as OrderEditorData,
9705
- Ft as OrderInfo,
9747
+ js as OrderAction,
9748
+ Vi as OrderEditorData,
9749
+ Mt as OrderInfo,
9706
9750
  Ws as OrderItem,
9707
- Dt as OrderItemBase,
9708
- ei as OrderPaymentStatus,
9709
- _t as OrderShortInfo,
9710
- or as OrderStatus,
9711
- ri as OrderStatusDetail,
9712
- Js as OrderStatusDetailEnum,
9713
- Vs as OrderStatusEnum,
9714
- js as OrderStatusHistoryInfo,
9715
- Vi as OrdersDataProvider,
9751
+ Pt as OrderItemBase,
9752
+ ri as OrderPaymentStatus,
9753
+ Nt as OrderShortInfo,
9754
+ cr as OrderStatus,
9755
+ ti as OrderStatusDetail,
9756
+ Ks as OrderStatusDetailEnum,
9757
+ Js as OrderStatusEnum,
9758
+ Ys as OrderStatusHistoryInfo,
9759
+ Ji as OrdersDataProvider,
9716
9760
  Qi as OrdersListFilters,
9717
9761
  de as PaginationFiltersBase,
9718
9762
  le as PartnerGroup,
9719
- Mt as PaymentType,
9720
- Ye as PreferencesStorageProvider,
9763
+ Bt as PaymentType,
9764
+ Ve as PreferencesStorageProvider,
9721
9765
  Pr as PriceAnalyze,
9722
- Ki as PriceAnalyzeProvider,
9723
- bt as PriceCatalogableItem,
9766
+ Xi as PriceAnalyzeProvider,
9767
+ At as PriceCatalogableItem,
9724
9768
  he as PriceCoefficient,
9725
- wt as PriceCoefficientEnum,
9726
- Xi as PriceHistoryDataProvider,
9727
- Ys as PriceHistoryItem,
9728
- ve as PriceTemplate,
9769
+ Ct as PriceCoefficientEnum,
9770
+ Zi as PriceHistoryDataProvider,
9771
+ Vs as PriceHistoryItem,
9772
+ Ce as PriceTemplate,
9729
9773
  wr as PriceTemplateCategory,
9730
9774
  xe as PriceTemplateClient,
9731
- dt as PriceTemplateICatalogableItem,
9732
- Cr as PriceTemplateProduct,
9733
- di as PriceTemplateProvider,
9775
+ St as PriceTemplateICatalogableItem,
9776
+ vr as PriceTemplateProduct,
9777
+ Ai as PriceTemplateProvider,
9734
9778
  Ie as PricingRole,
9735
- Ai as PricingRoleProvider,
9779
+ Si as PricingRoleProvider,
9736
9780
  $r as PrimaryCatalogableItem,
9737
9781
  E as Product,
9738
- Ri as ProductCategoryDataProvider,
9739
- Pi as ProductDataProvider,
9740
- ti as ProductFileType,
9741
- Rt as ProductFilterTypeEnum,
9742
- Ur as ProductPriceCoefficient,
9782
+ Pi as ProductCategoryDataProvider,
9783
+ Ti as ProductDataProvider,
9784
+ si as ProductFileType,
9785
+ Tt as ProductFilterTypeEnum,
9786
+ Fr as ProductPriceCoefficient,
9743
9787
  Qs as ProductPriceHistory,
9744
- Zr as ProductUnit,
9745
- Gs as ProfstroyOfferItem,
9746
- Si as PropertiesProvider,
9788
+ et as ProductUnit,
9789
+ zs as ProfstroyOfferItem,
9790
+ $i as PropertiesProvider,
9747
9791
  De as Property,
9748
- St as PropertyType,
9749
- ds as PropertyTypeEnum,
9750
- Ce as PropertyValue,
9751
- Zi as RecommendationsDataProvider,
9752
- lt as RecommendationsList,
9753
- v as Reference,
9754
- en as ReferenceDataFactory,
9792
+ kt as PropertyType,
9793
+ As as PropertyTypeEnum,
9794
+ ve as PropertyValue,
9795
+ en as RecommendationsDataProvider,
9796
+ ut as RecommendationsList,
9797
+ C as Reference,
9798
+ rn as ReferenceDataFactory,
9755
9799
  d as ReferenceDataProvider,
9756
9800
  ne as Region,
9757
- Ht as ResourceType,
9801
+ Gt as ResourceType,
9758
9802
  Fi as STANDARD_PERIOD_GROUPS,
9759
- Ui as STANDARD_PERIOD_SECTIONS,
9760
- U as SalesDirection,
9803
+ Mi as STANDARD_PERIOD_SECTIONS,
9804
+ F as SalesDirection,
9761
9805
  Cs as SentryConfig,
9762
- pt as Seo,
9763
- tn as SeoDataProvider,
9764
- It as SourcePrimaryInterest,
9765
- Rs as StockCount,
9766
- Ii as TableDataPagination,
9767
- Es as TableDataPaginationRequestParams,
9768
- _i as TableDataSortRequestParams,
9769
- $i as TemplateProductCategoryDataProvider,
9770
- wi as TemplatesListFilters,
9771
- F as TypedInstanceFactory,
9772
- qt as UnitsHelper,
9773
- Oi as UnknownClientDataProvider,
9774
- sr as UpdatableNamedIdentity,
9775
- ii as User,
9776
- nn as UserAuthDataProvider,
9777
- At as UserCommonInfo,
9778
- ni as UserDataProvider,
9779
- Tt as UserPricingRole,
9806
+ ht as Seo,
9807
+ sn as SeoDataProvider,
9808
+ qt as SourcePrimaryInterest,
9809
+ Ps as StockCount,
9810
+ _i as TableDataPagination,
9811
+ Us as TableDataPaginationRequestParams,
9812
+ qi as TableDataSortRequestParams,
9813
+ ki as TemplateProductCategoryDataProvider,
9814
+ vi as TemplatesListFilters,
9815
+ U as TypedInstanceFactory,
9816
+ Et as UnitsHelper,
9817
+ Li as UnknownClientDataProvider,
9818
+ ir as UpdatableNamedIdentity,
9819
+ ni as User,
9820
+ on as UserAuthDataProvider,
9821
+ $t as UserCommonInfo,
9822
+ oi as UserDataProvider,
9823
+ dt as UserPricingRole,
9780
9824
  br as UserRegion,
9781
9825
  _r as UserRegionEmployee,
9782
- ln as UserRegionProvider,
9783
- nr as UserRegionShortInfo,
9784
- cn as UserRegionsListFilters,
9826
+ un as UserRegionProvider,
9827
+ or as UserRegionShortInfo,
9828
+ ln as UserRegionsListFilters,
9785
9829
  q as UserShortInfo,
9786
- Bt as UserTypeEnum,
9787
- Li as VersionConfig,
9830
+ zt as UserTypeEnum,
9831
+ xi as VersionConfig,
9788
9832
  He as Warehouse,
9789
- vs as WebSocketConfig,
9790
- Ji as currentOrderInjectionKey,
9791
- qi as daysAgoIso,
9792
- st as findCatalogItemByIdRecursive,
9793
- it as flattenCatalogItems,
9794
- Bi as formatPercentChange,
9795
- Ni as formatRelativeDate,
9833
+ Ds as WebSocketConfig,
9834
+ Ki as currentOrderInjectionKey,
9835
+ Ni as daysAgoIso,
9836
+ it as findCatalogItemByIdRecursive,
9837
+ nt as flattenCatalogItems,
9838
+ Gi as formatPercentChange,
9839
+ Ei as formatRelativeDate,
9796
9840
  Fs as pluralize,
9797
- yr as useAuthStateStore,
9841
+ ze as useAuthStateStore,
9798
9842
  S as useBaseConfigStateStore,
9799
- rn as useReferencesStore,
9800
- on as useUserStateStore
9843
+ tn as useReferencesStore,
9844
+ cn as useUserStateStore
9801
9845
  };