@snabcentr/common-lib 2.20.3 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@ var Rt = Object.defineProperty;
2
2
  var bt = (n, r, e) => r in n ? Rt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var s = (n, r, e) => bt(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as zr } from "jwt-decode";
5
- import { merge as Oe, isNil as T, isEmpty as me, noop as w, mapValues as Er, isArray as W, every as Pt, split as Tt, startsWith as At, endsWith as dt, includes as St, isString as D, isFunction as Cr, map as Ce, isObject as Dr, isError as kr, toLower as $t, isDate as pr, isPlainObject as kt, isUndefined as Ue, constant as Lt, toUpper as Ot, cloneDeep as It, forEach as xt, omitBy as Qr } from "lodash-es";
5
+ import { merge as Oe, isNil as T, isEmpty as me, noop as w, mapValues as Er, isArray as W, every as Pt, split as Tt, startsWith as dt, endsWith as At, includes as St, isString as D, isFunction as Cr, map as Ce, isObject as Dr, isError as kr, toLower as $t, isDate as pr, isPlainObject as kt, isUndefined as Ue, constant as Lt, toUpper as Ot, cloneDeep as It, forEach as xt, omitBy as Qr } from "lodash-es";
6
6
  import { objectToCamel as Rr, objectToSnake as Lr } from "ts-case-convert";
7
- import { defineStore as ee } from "pinia";
7
+ import { defineStore as re } from "pinia";
8
8
  import { ref as v, markRaw as _t, computed as P } from "vue";
9
- import { isAfter as Or, parseISO as R, startOfToday as hr, format as x, endOfMonth as O, addMonths as $, differenceInCalendarMonths as qt, startOfMonth as N, getDate as Ir, getDaysInMonth as Nt, endOfDay as B, startOfDay as ue, setDate as Ut, startOfWeek as Q, addWeeks as gr, differenceInCalendarDays as Je, addDays as J, addBusinessDays as Ft, startOfYear as ne, endOfYear as Te, endOfWeek as Ae, endOfTomorrow as Ht, startOfTomorrow as Mt, endOfYesterday as Bt, startOfYesterday as Wt, endOfToday as jt, startOfQuarter as de, endOfQuarter as Fe, subDays as Ve, addYears as Ke, addQuarters as Xe, subYears as Ze, subQuarters as er, subMonths as rr, subWeeks as xr, addSeconds as Gt } from "date-fns";
9
+ import { isAfter as Or, parseISO as R, startOfToday as hr, format as L, endOfMonth as x, addMonths as $, differenceInCalendarMonths as qt, startOfMonth as U, getDate as Ir, getDaysInMonth as Nt, endOfDay as B, startOfDay as ue, setDate as Ut, startOfWeek as V, addWeeks as gr, differenceInCalendarDays as Je, addDays as K, addBusinessDays as Ft, startOfYear as ne, endOfYear as Te, endOfWeek as de, endOfTomorrow as Ht, startOfTomorrow as Mt, endOfYesterday as Bt, startOfYesterday as Wt, endOfToday as jt, startOfQuarter as Ae, endOfQuarter as Fe, subDays as Ve, addYears as Ke, addQuarters as Xe, subYears as Ze, subQuarters as er, subMonths as rr, subWeeks as xr, addSeconds as Gt } from "date-fns";
10
10
  import Yt, { CanceledError as zt } from "axios";
11
11
  class De {
12
12
  /**
@@ -337,7 +337,7 @@ class Kt {
337
337
  };
338
338
  }
339
339
  }
340
- const I = ee("common.config", () => {
340
+ const k = re("common.config", () => {
341
341
  const n = v(new Kt());
342
342
  return {
343
343
  /**
@@ -478,7 +478,7 @@ function _r(n) {
478
478
  return;
479
479
  }
480
480
  }
481
- const oe = ee("common.auth_state_private", () => {
481
+ const oe = re("common.auth_state_private", () => {
482
482
  const n = v(
483
483
  (() => {
484
484
  var u;
@@ -488,7 +488,7 @@ const oe = ee("common.auth_state_private", () => {
488
488
  );
489
489
  if (o)
490
490
  return Promise.resolve(o);
491
- const c = (u = I().config.devMode) == null ? void 0 : u.initAuthBearerToken;
491
+ const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
492
492
  return c ? Promise.resolve(c) : void 0;
493
493
  })()
494
494
  ), r = v(void 0), e = v(void 0), t = _t(/* @__PURE__ */ new Map());
@@ -520,7 +520,7 @@ const oe = ee("common.auth_state_private", () => {
520
520
  */
521
521
  recalculateUserPermissions: i
522
522
  };
523
- }), tr = ee("common.auth_state", () => {
523
+ }), tr = re("common.auth_state", () => {
524
524
  const n = P(() => {
525
525
  const o = oe();
526
526
  if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
@@ -544,15 +544,15 @@ const oe = ee("common.auth_state_private", () => {
544
544
  }
545
545
  function i(o) {
546
546
  const c = oe();
547
- !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((g) => {
548
- const y = De.getJwtPayload(g);
547
+ !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((h) => {
548
+ const y = De.getJwtPayload(h);
549
549
  c.userPermissions = y.exp * 1e3 > Date.now() ? Er(y.resourceAccess, (C) => (C == null ? void 0 : C.roles) ?? []) : void 0;
550
550
  }).catch(w);
551
551
  const u = W(o) ? o.join(" && ") : o;
552
552
  if (c.userPermissionsComputedRefs.has(u))
553
553
  return c.userPermissionsComputedRefs.get(u);
554
554
  const p = P(() => {
555
- const g = (y) => {
555
+ const h = (y) => {
556
556
  var ie;
557
557
  const C = Tt(y, ".");
558
558
  if (C.length < 2)
@@ -560,7 +560,7 @@ const oe = ee("common.auth_state_private", () => {
560
560
  const [be, Pe] = C, se = (ie = oe().userPermissions) == null ? void 0 : ie[be];
561
561
  return W(se) && se.includes(Pe);
562
562
  };
563
- return W(o) ? Pt(o, (y) => g(y)) : g(o);
563
+ return W(o) ? Pt(o, (y) => h(y)) : h(o);
564
564
  });
565
565
  return c.userPermissionsComputedRefs.set(u, p), p;
566
566
  }
@@ -707,7 +707,7 @@ class fe extends G {
707
707
  * @param slug Символьное обозначение статьи.
708
708
  */
709
709
  static getSlugError(e) {
710
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : At(e, "-") || dt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : St(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
710
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : dt(e, "-") || At(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : St(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
711
711
  }
712
712
  /**
713
713
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -785,7 +785,7 @@ class _e {
785
785
  }), r;
786
786
  }
787
787
  }
788
- class A {
788
+ class d {
789
789
  /**
790
790
  * Инициализирует экземпляр класса {@link DatePeriod}.
791
791
  *
@@ -839,7 +839,7 @@ class Ws extends _e {
839
839
  * @inheritDoc
840
840
  */
841
841
  s(this, "createdAt");
842
- this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new A(e == null ? void 0 : e.publishedAt), this.createdAt = new A(e == null ? void 0 : e.createdAt);
842
+ this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new d(e == null ? void 0 : e.publishedAt), this.createdAt = new d(e == null ? void 0 : e.createdAt);
843
843
  }
844
844
  /**
845
845
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -922,7 +922,7 @@ const b = class b {
922
922
  /**
923
923
  * Базовый URL путь для выполнения запросов.
924
924
  */
925
- s(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
925
+ s(this, "baseUrl", `${k().config.http.portalApiUrl}/api`);
926
926
  /**
927
927
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
928
928
  *
@@ -1214,7 +1214,7 @@ s(b, "requestHooks", []), /**
1214
1214
  * Список зарегистрированных хуков для ответов.
1215
1215
  */
1216
1216
  s(b, "responseHooks", []);
1217
- let h = b;
1217
+ let g = b;
1218
1218
  var br = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(br || {});
1219
1219
  class qr {
1220
1220
  /**
@@ -1243,24 +1243,24 @@ class qr {
1243
1243
  * @returns Примитивное представление фильтра.
1244
1244
  */
1245
1245
  toPrimitive() {
1246
- const r = I().config.dateFormats.api, e = {
1246
+ const r = k().config.dateFormats.api, e = {
1247
1247
  field: this.field,
1248
1248
  op: this.op
1249
1249
  };
1250
1250
  if (pr(this.value))
1251
- e.value = x(this.value, r);
1251
+ e.value = L(this.value, r);
1252
1252
  else if (kt(this.value)) {
1253
1253
  const t = this.value;
1254
1254
  e.value = {
1255
- from: t.from ? x(t.from, r) : null,
1256
- to: t.to ? x(t.to, r) : null
1255
+ from: t.from ? L(t.from, r) : null,
1256
+ to: t.to ? L(t.to, r) : null
1257
1257
  };
1258
1258
  } else
1259
1259
  e.value = this.value;
1260
1260
  return e;
1261
1261
  }
1262
1262
  }
1263
- class V {
1263
+ class X {
1264
1264
  /**
1265
1265
  * Инициализирует экземпляр класса {@link FilterGroup}.
1266
1266
  *
@@ -1280,7 +1280,7 @@ class V {
1280
1280
  */
1281
1281
  s(this, "groups");
1282
1282
  var e, t;
1283
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new qr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new V(i))) ?? [];
1283
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new qr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new X(i))) ?? [];
1284
1284
  }
1285
1285
  /**
1286
1286
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1291,11 +1291,11 @@ class V {
1291
1291
  return {
1292
1292
  groupOp: this.groupOp,
1293
1293
  filters: this.filters.map((r) => r instanceof qr && Cr(r.toPrimitive) ? r.toPrimitive() : r),
1294
- groups: this.groups.map((r) => r instanceof V ? r.toPrimitive() : r)
1294
+ groups: this.groups.map((r) => r instanceof X ? r.toPrimitive() : r)
1295
1295
  };
1296
1296
  }
1297
1297
  }
1298
- class re extends h {
1298
+ class Y extends g {
1299
1299
  /**
1300
1300
  * Получает пагинированный список данных.
1301
1301
  *
@@ -1309,11 +1309,11 @@ class re extends h {
1309
1309
  * @param signal Сигнал отмены запроса.
1310
1310
  */
1311
1311
  getPaginated(r, e, t, i, o, c, u, p = void 0) {
1312
- let g = {
1312
+ let h = {
1313
1313
  page: (i == null ? void 0 : i.page) ?? 1,
1314
1314
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
1315
1315
  };
1316
- return e && (g.filters = JSON.stringify((e instanceof V ? e : new V(e)).toPrimitive())), me(t) || (g.sort = W(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1316
+ return e && (h.filters = JSON.stringify((e instanceof X ? e : new X(e)).toPrimitive())), me(t) || (h.sort = W(t) ? t : [t]), o && (h = { ...h, ...o }), this.get(r, h, c, u, p);
1317
1317
  }
1318
1318
  /**
1319
1319
  * Получает пагинированный список экземпляров указанного класса.
@@ -1334,16 +1334,16 @@ class re extends h {
1334
1334
  i,
1335
1335
  o,
1336
1336
  c,
1337
- (g) => ({
1338
- ...g.data,
1339
- data: _.instanceListInitializer(r, g.data.data)
1337
+ (h) => ({
1338
+ ...h.data,
1339
+ data: _.instanceListInitializer(r, h.data.data)
1340
1340
  }),
1341
1341
  u,
1342
1342
  p
1343
1343
  );
1344
1344
  }
1345
1345
  }
1346
- class mr extends re {
1346
+ class mr extends Y {
1347
1347
  /**
1348
1348
  * Возвращает данные статьи блога, подготовленные для отправки на портал.
1349
1349
  *
@@ -1355,8 +1355,8 @@ class mr extends re {
1355
1355
  static preparePostSaveData(r) {
1356
1356
  const e = {};
1357
1357
  if (Ue(r.title) || (e.title = r.title), Ue(r.slug) || (e.slug = r.slug), Ue(r.content) || (e.content = r.content), !Ue(r.publishedAt)) {
1358
- const t = I().config.dateFormats.api;
1359
- e.publishedAt = T(r.publishedAt) ? null : x(r.publishedAt, t);
1358
+ const t = k().config.dateFormats.api;
1359
+ e.publishedAt = T(r.publishedAt) ? null : L(r.publishedAt, t);
1360
1360
  }
1361
1361
  return e;
1362
1362
  }
@@ -1487,7 +1487,7 @@ class mr extends re {
1487
1487
  return this.delete(`/internal/blog/${r}/media/${e}`);
1488
1488
  }
1489
1489
  }
1490
- class k extends G {
1490
+ class O extends G {
1491
1491
  /**
1492
1492
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1493
1493
  *
@@ -1502,7 +1502,7 @@ class k extends G {
1502
1502
  this.name = (e == null ? void 0 : e.name) ?? "";
1503
1503
  }
1504
1504
  }
1505
- class q extends k {
1505
+ class q extends O {
1506
1506
  /**
1507
1507
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1508
1508
  *
@@ -1521,7 +1521,7 @@ class q extends k {
1521
1521
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1522
1522
  }
1523
1523
  }
1524
- class Xt extends k {
1524
+ class Xt extends O {
1525
1525
  /**
1526
1526
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1527
1527
  *
@@ -1560,7 +1560,7 @@ class Xt extends k {
1560
1560
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = D(e == null ? void 0 : e.publishedAt) ? R(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1561
1561
  }
1562
1562
  }
1563
- class Vr extends k {
1563
+ class Vr extends O {
1564
1564
  /**
1565
1565
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1566
1566
  *
@@ -1599,7 +1599,7 @@ class pe extends Vr {
1599
1599
  }
1600
1600
  }
1601
1601
  var Kr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Kr || {});
1602
- class a extends k {
1602
+ class a extends O {
1603
1603
  /**
1604
1604
  * Инициализирует экземпляр класса {@link Reference}.
1605
1605
  *
@@ -1674,7 +1674,7 @@ class Xr {
1674
1674
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1675
1675
  }
1676
1676
  }
1677
- class E extends a {
1677
+ class Q extends a {
1678
1678
  }
1679
1679
  class qe extends a {
1680
1680
  /**
@@ -1705,7 +1705,7 @@ class qe extends a {
1705
1705
  * Координаты склада.
1706
1706
  */
1707
1707
  s(this, "coordinates");
1708
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Xr(e == null ? void 0 : e.coordinates);
1708
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Xr(e == null ? void 0 : e.coordinates);
1709
1709
  }
1710
1710
  }
1711
1711
  class Zt {
@@ -1726,7 +1726,7 @@ class Zt {
1726
1726
  this.warehouse = new qe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1727
1727
  }
1728
1728
  }
1729
- class j extends k {
1729
+ class j extends O {
1730
1730
  /**
1731
1731
  * Инициализирует экземпляр класса {@link Currency}.
1732
1732
  *
@@ -1753,7 +1753,7 @@ class j extends k {
1753
1753
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1754
1754
  }
1755
1755
  }
1756
- class Nr extends k {
1756
+ class Nr extends O {
1757
1757
  /**
1758
1758
  * Инициализирует экземпляр класса {@link ProductUnit}.
1759
1759
  *
@@ -1780,7 +1780,7 @@ class Nr extends k {
1780
1780
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1781
1781
  }
1782
1782
  }
1783
- class Ie extends k {
1783
+ class Ie extends O {
1784
1784
  /**
1785
1785
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1786
1786
  *
@@ -1867,7 +1867,7 @@ class yr extends Zr {
1867
1867
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1868
1868
  }
1869
1869
  }
1870
- class U extends es {
1870
+ class N extends es {
1871
1871
  /**
1872
1872
  * Инициализирует экземпляр класса {@link Product}.
1873
1873
  *
@@ -1946,7 +1946,7 @@ class U extends es {
1946
1946
  s(this, "priceCoefficients");
1947
1947
  this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Nr(e.unit) : new Nr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = D(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new Zt(p))) ?? [], this.type = "product";
1948
1948
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1949
- t && (this.category = new yr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new yr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new rs(p, I().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Pr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1949
+ t && (this.category = new yr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new yr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new rs(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Pr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1950
1950
  }
1951
1951
  /**
1952
1952
  * Возвращает признак, что это измеряемый товар.
@@ -1968,7 +1968,7 @@ class U extends es {
1968
1968
  }
1969
1969
  }
1970
1970
  var Tr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Tr || {});
1971
- class K extends U {
1971
+ class J extends N {
1972
1972
  /**
1973
1973
  * Инициализирует экземпляр класса {@link ClientProduct}.
1974
1974
  *
@@ -2110,7 +2110,7 @@ class et extends G {
2110
2110
  * @inheritDoc
2111
2111
  */
2112
2112
  s(this, "replacementId");
2113
- this.product = new K(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Re(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && It(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2113
+ this.product = new J(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Re(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && It(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2114
2114
  }
2115
2115
  }
2116
2116
  let rt = class extends et {
@@ -2182,7 +2182,7 @@ class Se {
2182
2182
  this.items = r.items.map((e) => new rt(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2183
2183
  }
2184
2184
  }
2185
- class Gs extends h {
2185
+ class Gs extends g {
2186
2186
  /**
2187
2187
  * Возвращает содержимое корзины указанного клиента.
2188
2188
  *
@@ -2297,7 +2297,7 @@ class Gs extends h {
2297
2297
  }
2298
2298
  }
2299
2299
  var ts = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ts || {}), ss = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(ss || {}), tt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(tt || {});
2300
- class Y extends Re {
2300
+ class z extends Re {
2301
2301
  /**
2302
2302
  * Инициализирует экземпляр класса {@link Category}.
2303
2303
  *
@@ -2314,7 +2314,7 @@ class Y extends Re {
2314
2314
  * Список продуктов категории.
2315
2315
  */
2316
2316
  s(this, "products");
2317
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new U(o));
2317
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new N(o));
2318
2318
  }
2319
2319
  }
2320
2320
  class st {
@@ -2337,7 +2337,7 @@ class st {
2337
2337
  }
2338
2338
  class F extends a {
2339
2339
  }
2340
- class Ar extends k {
2340
+ class dr extends O {
2341
2341
  /**
2342
2342
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2343
2343
  *
@@ -2368,9 +2368,9 @@ class Ar extends k {
2368
2368
  this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new st(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2369
2369
  }
2370
2370
  }
2371
- class dr extends a {
2371
+ class Ar extends a {
2372
2372
  }
2373
- class it extends k {
2373
+ class it extends O {
2374
2374
  /**
2375
2375
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2376
2376
  *
@@ -2393,7 +2393,7 @@ class it extends k {
2393
2393
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2394
2394
  }
2395
2395
  }
2396
- class Ne extends Ar {
2396
+ class Ne extends dr {
2397
2397
  /**
2398
2398
  * Инициализирует экземпляр класса {@link Manager}.
2399
2399
  *
@@ -2430,7 +2430,7 @@ class Ne extends Ar {
2430
2430
  * Список направлений кураторства.
2431
2431
  */
2432
2432
  s(this, "curatedDirections");
2433
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new it(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new dr(i))) ?? [];
2433
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new it(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new Ar(i))) ?? [];
2434
2434
  }
2435
2435
  }
2436
2436
  class is extends Re {
@@ -2481,7 +2481,7 @@ class We extends is {
2481
2481
  * Список продуктов категории.
2482
2482
  */
2483
2483
  s(this, "products");
2484
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new We(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
2484
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new We(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
2485
2485
  }
2486
2486
  }
2487
2487
  class nt {
@@ -2517,7 +2517,7 @@ class ir extends nt {
2517
2517
  this.productCategory = new Re(e == null ? void 0 : e.productCategory);
2518
2518
  }
2519
2519
  }
2520
- class Sr extends k {
2520
+ class Sr extends O {
2521
2521
  /**
2522
2522
  * Инициализирует экземпляр класса {@link Curator}.
2523
2523
  *
@@ -2537,7 +2537,7 @@ class Sr extends k {
2537
2537
  * @inheritDoc
2538
2538
  */
2539
2539
  s(this, "curatedDirection");
2540
- this.photo = e.photo, this.contacts = new st(e.contacts), this.curatedDirection = new dr(e.curatedDirection);
2540
+ this.photo = e.photo, this.contacts = new st(e.contacts), this.curatedDirection = new Ar(e.curatedDirection);
2541
2541
  }
2542
2542
  }
2543
2543
  class ye extends a {
@@ -2572,7 +2572,7 @@ class ve extends a {
2572
2572
  e && (this.region = new ae(e.region));
2573
2573
  }
2574
2574
  }
2575
- class ot extends k {
2575
+ class ot extends O {
2576
2576
  /**
2577
2577
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2578
2578
  *
@@ -2657,7 +2657,7 @@ class te extends ot {
2657
2657
  * @inheritDoc
2658
2658
  */
2659
2659
  s(this, "curators");
2660
- this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ve(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Ar(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Sr(o))) ?? void 0;
2660
+ this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ve(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new dr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Sr(o))) ?? void 0;
2661
2661
  }
2662
2662
  }
2663
2663
  class $e extends G {
@@ -2699,12 +2699,12 @@ class nr extends nt {
2699
2699
  * Базовые данные о продукте.
2700
2700
  */
2701
2701
  s(this, "product");
2702
- this.product = new U(e == null ? void 0 : e.product);
2702
+ this.product = new N(e == null ? void 0 : e.product);
2703
2703
  }
2704
2704
  }
2705
2705
  class ct extends a {
2706
2706
  }
2707
- class he extends k {
2707
+ class he extends O {
2708
2708
  /**
2709
2709
  * Инициализирует экземпляр класса {@link Property}.
2710
2710
  *
@@ -2776,12 +2776,12 @@ class Ys {
2776
2776
  /**
2777
2777
  * Период создания.
2778
2778
  */
2779
- s(this, "createdAt", new A());
2779
+ s(this, "createdAt", new d());
2780
2780
  /**
2781
2781
  * Период изменения.
2782
2782
  */
2783
- s(this, "updatedAt", new A());
2784
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new A(r == null ? void 0 : r.createdAt), this.updatedAt = new A(r == null ? void 0 : r.updatedAt);
2783
+ s(this, "updatedAt", new d());
2784
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new d(r == null ? void 0 : r.createdAt), this.updatedAt = new d(r == null ? void 0 : r.updatedAt);
2785
2785
  }
2786
2786
  /**
2787
2787
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2819,7 +2819,7 @@ class Ys {
2819
2819
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2820
2820
  }
2821
2821
  }
2822
- class ke extends k {
2822
+ class ke extends O {
2823
2823
  /**
2824
2824
  * Инициализирует экземпляр класса {@link PricingRole}.
2825
2825
  *
@@ -2995,7 +2995,7 @@ class cs {
2995
2995
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? tt.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new os(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
2996
2996
  }
2997
2997
  }
2998
- class zs extends h {
2998
+ class zs extends g {
2999
2999
  /**
3000
3000
  * Возвращает данные о результатах поиска категорий и товаров.
3001
3001
  *
@@ -3022,11 +3022,11 @@ class zs extends h {
3022
3022
  */
3023
3023
  // eslint-disable-next-line class-methods-use-this
3024
3024
  getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3025
- let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3025
+ let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3026
3026
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3027
3027
  }
3028
3028
  }
3029
- class Es extends h {
3029
+ class Es extends g {
3030
3030
  /**
3031
3031
  * Импортирует цены клиента из CSV файла.
3032
3032
  *
@@ -3150,7 +3150,7 @@ class Es extends h {
3150
3150
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3151
3151
  increase_percent: t.value
3152
3152
  },
3153
- (o) => new K(o.data)
3153
+ (o) => new J(o.data)
3154
3154
  );
3155
3155
  }
3156
3156
  /**
@@ -3162,7 +3162,7 @@ class Es extends h {
3162
3162
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
3163
3163
  */
3164
3164
  removeProductPrice(r, e) {
3165
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new K(t.data));
3165
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new J(t.data));
3166
3166
  }
3167
3167
  /**
3168
3168
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -3225,7 +3225,7 @@ class Es extends h {
3225
3225
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3226
3226
  }
3227
3227
  }
3228
- class Qs extends h {
3228
+ class Qs extends g {
3229
3229
  /**
3230
3230
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3231
3231
  *
@@ -3256,12 +3256,12 @@ class Qs extends h {
3256
3256
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3257
3257
  */
3258
3258
  attachTemplate(r, e, t) {
3259
- const i = I().config.dateFormats.api;
3259
+ const i = k().config.dateFormats.api;
3260
3260
  return this.post(
3261
3261
  `/internal/clients/${r}/price/templates/${e}`,
3262
3262
  t && {
3263
- startAt: t.startAt && x(t.startAt, i),
3264
- endAt: t.endAt && x(t.endAt, i)
3263
+ startAt: t.startAt && L(t.startAt, i),
3264
+ endAt: t.endAt && L(t.endAt, i)
3265
3265
  },
3266
3266
  (o) => new $e(o.data),
3267
3267
  {},
@@ -3290,12 +3290,12 @@ class Qs extends h {
3290
3290
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3291
3291
  */
3292
3292
  changeTemplate(r, e, t, i) {
3293
- const o = I().config.dateFormats.api;
3293
+ const o = k().config.dateFormats.api;
3294
3294
  return this.patch(
3295
3295
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3296
3296
  i && {
3297
- startAt: i.startAt && x(i.startAt, o),
3298
- endAt: i.endAt && x(i.endAt, o)
3297
+ startAt: i.startAt && L(i.startAt, o),
3298
+ endAt: i.endAt && L(i.endAt, o)
3299
3299
  },
3300
3300
  (c) => new $e(c.data)
3301
3301
  );
@@ -3313,7 +3313,7 @@ class Qs extends h {
3313
3313
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3314
3314
  }
3315
3315
  }
3316
- class Js extends h {
3316
+ class Js extends g {
3317
3317
  /**
3318
3318
  * Возвращает список данных о корневых категориях.
3319
3319
  *
@@ -3322,7 +3322,7 @@ class Js extends h {
3322
3322
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3323
3323
  */
3324
3324
  getRootCategoriesList(r = !1) {
3325
- return this.getTypedList(Y, "/internal/catalog/categories", {
3325
+ return this.getTypedList(z, "/internal/catalog/categories", {
3326
3326
  showHidden: r
3327
3327
  });
3328
3328
  }
@@ -3342,7 +3342,7 @@ class Js extends h {
3342
3342
  showHidden: e,
3343
3343
  withNestedCategories: t
3344
3344
  },
3345
- (i) => new Y(i.data)
3345
+ (i) => new z(i.data)
3346
3346
  );
3347
3347
  }
3348
3348
  /**
@@ -3351,7 +3351,7 @@ class Js extends h {
3351
3351
  * @param categoryID Идентификатор категории продуктов.
3352
3352
  */
3353
3353
  getPublicCategoryData(r) {
3354
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new Y(e.data));
3354
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
3355
3355
  }
3356
3356
  /**
3357
3357
  * Возвращает список продуктов категории.
@@ -3369,7 +3369,7 @@ class Js extends h {
3369
3369
  showHidden: t,
3370
3370
  withPriceCoefficients: e
3371
3371
  },
3372
- (i) => Ce(i.data, (o) => new U(o))
3372
+ (i) => Ce(i.data, (o) => new N(o))
3373
3373
  );
3374
3374
  }
3375
3375
  /**
@@ -3394,14 +3394,14 @@ class Js extends h {
3394
3394
  publicSimpleSearch(r, e = 10) {
3395
3395
  return new Promise((t, i) => {
3396
3396
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3397
- t(o.categories.map((c) => new Y(c)));
3397
+ t(o.categories.map((c) => new z(c)));
3398
3398
  }).catch((o) => {
3399
3399
  i(o);
3400
3400
  });
3401
3401
  });
3402
3402
  }
3403
3403
  }
3404
- class Vs extends h {
3404
+ class Vs extends Y {
3405
3405
  /**
3406
3406
  * Возвращает данные об указанном продукте.
3407
3407
  *
@@ -3411,7 +3411,7 @@ class Vs extends h {
3411
3411
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
3412
3412
  */
3413
3413
  getProductData(r, e = !1) {
3414
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new U(t.data));
3414
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new N(t.data));
3415
3415
  }
3416
3416
  /**
3417
3417
  * Возвращает публичные данные об указанном продукте.
@@ -3419,7 +3419,7 @@ class Vs extends h {
3419
3419
  * @param productId Идентификатор продукта.
3420
3420
  */
3421
3421
  getPublicProductData(r) {
3422
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new U(e.data));
3422
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new N(e.data));
3423
3423
  }
3424
3424
  /**
3425
3425
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -3435,6 +3435,22 @@ class Vs extends h {
3435
3435
  (e) => Ce(e.data, (t) => new Pr(t))
3436
3436
  );
3437
3437
  }
3438
+ /**
3439
+ * Возвращает данные о новых продуктах каталога, появившихся начиная с указанной даты.
3440
+ *
3441
+ * @param periodFrom Дата начала периода, с которого продукты считаются новыми.
3442
+ * @param paginationParams Параметры пагинации.
3443
+ * @param withPriceCoefficients Признак того, что необходимо включить в ответ данные о коэффициентах цен на продукты.
3444
+ *
3445
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3446
+ */
3447
+ getNewProducts(r, e, t = !0) {
3448
+ const i = k().config.dateFormats.api;
3449
+ return this.getTypedPaginated(N, "/internal/catalog/products/new", void 0, void 0, e, {
3450
+ period: { from: L(r, i) },
3451
+ withPriceCoefficients: t
3452
+ });
3453
+ }
3438
3454
  /**
3439
3455
  * Выполняет публичный поиск данных о продуктах по терму.
3440
3456
  *
@@ -3444,14 +3460,14 @@ class Vs extends h {
3444
3460
  publicSimpleSearch(r, e = 10) {
3445
3461
  return new Promise((t, i) => {
3446
3462
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3447
- t(o.products.map((c) => new U(c)));
3463
+ t(o.products.map((c) => new N(c)));
3448
3464
  }).catch((o) => {
3449
3465
  i(o);
3450
3466
  });
3451
3467
  });
3452
3468
  }
3453
3469
  }
3454
- class Ks extends h {
3470
+ class Ks extends g {
3455
3471
  /**
3456
3472
  * Возвращает список данных о корневых категориях указанного клиента.
3457
3473
  *
@@ -3505,11 +3521,11 @@ class Ks extends h {
3505
3521
  showHidden: i,
3506
3522
  withPriceCoefficients: t
3507
3523
  },
3508
- (o) => Ce(o.data, (c) => new K(c))
3524
+ (o) => Ce(o.data, (c) => new J(c))
3509
3525
  );
3510
3526
  }
3511
3527
  }
3512
- class Xs extends h {
3528
+ class Xs extends Y {
3513
3529
  /**
3514
3530
  * Возвращает данные об указанном продукте для указанного клиента.
3515
3531
  *
@@ -3526,11 +3542,29 @@ class Xs extends h {
3526
3542
  clientId: e,
3527
3543
  withPriceCoefficients: t
3528
3544
  },
3529
- (i) => new K(i.data)
3545
+ (i) => new J(i.data)
3530
3546
  );
3531
3547
  }
3548
+ /**
3549
+ * Возвращает данные о новых продуктах каталога для указанного клиента, появившихся начиная с указанной даты.
3550
+ *
3551
+ * @param clientId Идентификатор клиента.
3552
+ * @param periodFrom Дата начала периода, с которого продукты считаются новыми.
3553
+ * @param paginationParams Параметры пагинации.
3554
+ * @param withPriceCoefficients Признак того, что необходимо включить в ответ данные о коэффициентах цен на продукты.
3555
+ *
3556
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3557
+ */
3558
+ getNewProducts(r, e, t, i = !0) {
3559
+ const o = k().config.dateFormats.api;
3560
+ return this.getTypedPaginated(J, "/internal/catalog/products/new", void 0, void 0, t, {
3561
+ clientId: r,
3562
+ period: { from: L(e, o) },
3563
+ withPriceCoefficients: i
3564
+ });
3565
+ }
3532
3566
  }
3533
- class Zs extends re {
3567
+ class Zs extends Y {
3534
3568
  /**
3535
3569
  * Возвращает список шаблонов прайс-листа.
3536
3570
  *
@@ -3719,7 +3753,7 @@ class Zs extends re {
3719
3753
  return this.getTypedList($e, `/internal/price/templates/${r}/clients`);
3720
3754
  }
3721
3755
  }
3722
- class ei extends h {
3756
+ class ei extends g {
3723
3757
  /**
3724
3758
  * Возвращает список ролей ценообразования.
3725
3759
  *
@@ -3795,7 +3829,7 @@ class ei extends h {
3795
3829
  );
3796
3830
  }
3797
3831
  }
3798
- class ri extends re {
3832
+ class ri extends Y {
3799
3833
  /**
3800
3834
  * Возвращает пагинированный список свойств.
3801
3835
  *
@@ -4212,7 +4246,7 @@ class ri extends re {
4212
4246
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4213
4247
  }
4214
4248
  }
4215
- class ti extends h {
4249
+ class ti extends g {
4216
4250
  /**
4217
4251
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4218
4252
  *
@@ -4222,7 +4256,7 @@ class ti extends h {
4222
4256
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
4223
4257
  */
4224
4258
  getRootCategoriesList(r, e = !1) {
4225
- return this.getTypedList(Y, "/internal/catalog/categories", {
4259
+ return this.getTypedList(z, "/internal/catalog/categories", {
4226
4260
  priceTemplateId: r,
4227
4261
  showHidden: e
4228
4262
  });
@@ -4245,7 +4279,7 @@ class ti extends h {
4245
4279
  showHidden: t,
4246
4280
  withNestedCategories: i
4247
4281
  },
4248
- (o) => new Y(o.data)
4282
+ (o) => new z(o.data)
4249
4283
  );
4250
4284
  }
4251
4285
  /**
@@ -4266,7 +4300,7 @@ class ti extends h {
4266
4300
  showHidden: i,
4267
4301
  withPriceCoefficients: t
4268
4302
  },
4269
- (o) => Ce(o.data, (c) => new U(c))
4303
+ (o) => Ce(o.data, (c) => new N(c))
4270
4304
  );
4271
4305
  }
4272
4306
  }
@@ -4300,7 +4334,7 @@ function Mr(n) {
4300
4334
  }
4301
4335
  }), r;
4302
4336
  }
4303
- var ls = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ls || {}), z = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(z || {});
4337
+ var ls = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ls || {}), E = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(E || {});
4304
4338
  class ar extends G {
4305
4339
  /**
4306
4340
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -4332,7 +4366,7 @@ class ar extends G {
4332
4366
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
4333
4367
  }
4334
4368
  }
4335
- class vr extends k {
4369
+ class vr extends O {
4336
4370
  /**
4337
4371
  * Инициализирует экземпляр класса {@link Contact}.
4338
4372
  *
@@ -4351,7 +4385,7 @@ class vr extends k {
4351
4385
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
4352
4386
  }
4353
4387
  }
4354
- class X extends vr {
4388
+ class Z extends vr {
4355
4389
  /**
4356
4390
  * Инициализирует экземпляр класса {@link ContactPerson}.
4357
4391
  *
@@ -4386,15 +4420,15 @@ class X extends vr {
4386
4420
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4387
4421
  }
4388
4422
  }
4389
- class Z extends a {
4423
+ class ee extends a {
4390
4424
  /**
4391
4425
  * Возвращает сгенерированную запись-описание физического лица.
4392
4426
  */
4393
4427
  static generatePersonItem() {
4394
- return new Z({
4428
+ return new ee({
4395
4429
  id: 1,
4396
4430
  guid: "",
4397
- slug: z.Person,
4431
+ slug: E.Person,
4398
4432
  name: ""
4399
4433
  });
4400
4434
  }
@@ -4428,7 +4462,7 @@ class ut extends lt {
4428
4462
  /**
4429
4463
  * Данные об организационно-правовой форме.
4430
4464
  */
4431
- s(this, "opf", Z.generatePersonItem());
4465
+ s(this, "opf", ee.generatePersonItem());
4432
4466
  /**
4433
4467
  * Группа партнеров (направление деятельности).
4434
4468
  */
@@ -4462,10 +4496,10 @@ class ut extends lt {
4462
4496
  */
4463
4497
  s(this, "updater");
4464
4498
  if (e) {
4465
- if (this.opf = new Z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new we(e.partnerGroup)), e.contacts) {
4499
+ if (this.opf = new ee(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new we(e.partnerGroup)), e.contacts) {
4466
4500
  const t = [];
4467
4501
  e.contacts.forEach((i) => {
4468
- t.push(new X(i));
4502
+ t.push(new Z(i));
4469
4503
  }), this.contacts = t;
4470
4504
  }
4471
4505
  if (e.bankAccounts) {
@@ -4576,11 +4610,11 @@ class je {
4576
4610
  */
4577
4611
  static createInstance(r) {
4578
4612
  switch (r.opf.slug) {
4579
- case z.Ic:
4613
+ case E.Ic:
4580
4614
  return new pt(r);
4581
- case z.UlR:
4615
+ case E.UlR:
4582
4616
  return new ht(r);
4583
- case z.UlNr:
4617
+ case E.UlNr:
4584
4618
  return new ps(r);
4585
4619
  default:
4586
4620
  return new us(r);
@@ -4624,7 +4658,7 @@ class Le extends lt {
4624
4658
  * Признак того, что указанный адрес является адресом транспортной компании.
4625
4659
  */
4626
4660
  s(this, "isTransportCompanyAddress");
4627
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Xr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new X(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4661
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Xr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new Z(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4628
4662
  }
4629
4663
  }
4630
4664
  class gt extends a {
@@ -4681,7 +4715,7 @@ class Br extends te {
4681
4715
  * @inheritDoc
4682
4716
  */
4683
4717
  s(this, "extraData");
4684
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => je.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new we(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new X(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Le(u))) ?? [], this.channelPrimaryInterest = new gt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ft(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new qe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4718
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => je.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new we(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new Z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Le(u))) ?? [], this.channelPrimaryInterest = new gt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ft(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new qe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4685
4719
  }
4686
4720
  }
4687
4721
  class si extends _e {
@@ -4691,12 +4725,16 @@ class si extends _e {
4691
4725
  * @param data Данные для первоначальной инициализации.
4692
4726
  */
4693
4727
  constructor(e) {
4694
- var t, i, o, c, u, p, g, y;
4728
+ var t, i, o, c, u, p, h, y;
4695
4729
  super();
4696
4730
  /**
4697
4731
  * @inheritDoc
4698
4732
  */
4699
4733
  s(this, "id");
4734
+ /**
4735
+ * @inheritDoc
4736
+ */
4737
+ s(this, "guid");
4700
4738
  /**
4701
4739
  * @inheritDoc
4702
4740
  */
@@ -4736,11 +4774,11 @@ class si extends _e {
4736
4774
  /**
4737
4775
  * @inheritDoc
4738
4776
  */
4739
- s(this, "createdAt", new A());
4777
+ s(this, "createdAt", new d());
4740
4778
  /**
4741
4779
  * @inheritDoc
4742
4780
  */
4743
- s(this, "lastLoginDate", new A());
4781
+ s(this, "lastLoginDate", new d());
4744
4782
  /**
4745
4783
  * @inheritDoc
4746
4784
  */
@@ -4792,12 +4830,12 @@ class si extends _e {
4792
4830
  /**
4793
4831
  * @inheritDoc
4794
4832
  */
4795
- s(this, "noOrdersPeriod", new A());
4796
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((C) => new ve(C)), this.region = new ae(e == null ? void 0 : e.region), this.country = new ye(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((C) => new Ne(C))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((C) => new Sr(C))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((C) => new F(C)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new Z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new E(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((C) => new we(C)), this.contact = new vr(e == null ? void 0 : e.contact), this.lastOrder = {
4797
- createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4798
- creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4833
+ s(this, "noOrdersPeriod", new d());
4834
+ this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((C) => new ve(C)), this.region = new ae(e == null ? void 0 : e.region), this.country = new ye(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new 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((C) => new Ne(C))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((C) => new Sr(C))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((C) => new F(C)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ee(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new Q(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((C) => new we(C)), this.contact = new vr(e == null ? void 0 : e.contact), this.lastOrder = {
4835
+ createdAt: new d((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4836
+ creator: (h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.creator,
4799
4837
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
4800
- }, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
4838
+ }, this.noOrdersPeriod = new d(e == null ? void 0 : e.noOrdersPeriod);
4801
4839
  }
4802
4840
  /**
4803
4841
  * @inheritDoc
@@ -4835,10 +4873,10 @@ class si extends _e {
4835
4873
  this.salesDirections = [];
4836
4874
  break;
4837
4875
  case "contragentType":
4838
- this.contragentType = new Z();
4876
+ this.contragentType = new ee();
4839
4877
  break;
4840
4878
  case "preferredDeliveryType":
4841
- this.preferredDeliveryType = new E();
4879
+ this.preferredDeliveryType = new Q();
4842
4880
  break;
4843
4881
  case "partnerGroups":
4844
4882
  this.partnerGroups = [];
@@ -4880,7 +4918,7 @@ class mt extends G {
4880
4918
  this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
4881
4919
  }
4882
4920
  }
4883
- class hs extends k {
4921
+ class hs extends O {
4884
4922
  /**
4885
4923
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4886
4924
  *
@@ -4917,7 +4955,7 @@ class hs extends k {
4917
4955
  * @inheritDoc
4918
4956
  */
4919
4957
  s(this, "curators");
4920
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new X(u))) ?? void 0, this.lastOrder = e.lastOrder ? new mt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new we(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new E(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ar(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Sr(u))) ?? void 0;
4958
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new Z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new mt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new we(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new dr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Sr(u))) ?? void 0;
4921
4959
  }
4922
4960
  }
4923
4961
  class or extends G {
@@ -4935,7 +4973,7 @@ class or extends G {
4935
4973
  this.isPrimary = e.isPrimary;
4936
4974
  }
4937
4975
  }
4938
- class gs extends X {
4976
+ class gs extends Z {
4939
4977
  /**
4940
4978
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4941
4979
  *
@@ -4963,7 +5001,7 @@ class gs extends X {
4963
5001
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new or(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new or(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new or(t))));
4964
5002
  }
4965
5003
  }
4966
- class H extends re {
5004
+ class H extends Y {
4967
5005
  /**
4968
5006
  * Преобразует данные о клиенте в данные требуемые для запроса.
4969
5007
  *
@@ -4991,11 +5029,11 @@ class H extends re {
4991
5029
  * @param contragent Данные о контрагенте клиента.
4992
5030
  */
4993
5031
  static transformContragentClientDataToRequest(r) {
4994
- var c, u, p, g;
5032
+ var c, u, p, h;
4995
5033
  let e;
4996
5034
  const t = r, i = r, o = r;
4997
5035
  switch (r.opf.slug) {
4998
- case z.Ic:
5036
+ case E.Ic:
4999
5037
  e = {
5000
5038
  opf: t.opf.slug,
5001
5039
  name: t.name,
@@ -5012,7 +5050,7 @@ class H extends re {
5012
5050
  actual_address: t.actualAddress
5013
5051
  };
5014
5052
  break;
5015
- case z.UlR:
5053
+ case E.UlR:
5016
5054
  e = {
5017
5055
  opf: i.opf.slug,
5018
5056
  name: i.name,
@@ -5030,7 +5068,7 @@ class H extends re {
5030
5068
  actual_address: i.actualAddress
5031
5069
  };
5032
5070
  break;
5033
- case z.UlNr:
5071
+ case E.UlNr:
5034
5072
  e = {
5035
5073
  opf: o.opf.slug,
5036
5074
  name: o.name,
@@ -5053,7 +5091,7 @@ class H extends re {
5053
5091
  opf: r.opf.slug,
5054
5092
  name: r.name,
5055
5093
  alternative_name: r.alternativeName,
5056
- partner_group_id: (g = r.partnerGroup) == null ? void 0 : g.id,
5094
+ partner_group_id: (h = r.partnerGroup) == null ? void 0 : h.id,
5057
5095
  comment: r.comment
5058
5096
  };
5059
5097
  break;
@@ -5098,7 +5136,7 @@ class H extends re {
5098
5136
  /**
5099
5137
  * Возвращает данные об указанном клиенте.
5100
5138
  *
5101
- * @param id Идентификатор клиента для которого необходимо получить данные.
5139
+ * @param id Идентификатор или GUID клиента для которого необходимо получить данные.
5102
5140
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5103
5141
  */
5104
5142
  getClient(r) {
@@ -5480,7 +5518,7 @@ class H extends re {
5480
5518
  comment: e.comment,
5481
5519
  not_disturb: e.notDisturb
5482
5520
  },
5483
- (i) => new X(i.data),
5521
+ (i) => new Z(i.data),
5484
5522
  t
5485
5523
  );
5486
5524
  }
@@ -5617,7 +5655,7 @@ class H extends re {
5617
5655
  comment: e.comment,
5618
5656
  ...t
5619
5657
  };
5620
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new X(p.data), i);
5658
+ 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 Z(p.data), i);
5621
5659
  }
5622
5660
  /**
5623
5661
  * Устанавливает признак основного контактного лица.
@@ -5646,7 +5684,7 @@ class H extends re {
5646
5684
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5647
5685
  }
5648
5686
  }
5649
- class ii extends h {
5687
+ class ii extends g {
5650
5688
  /**
5651
5689
  * Выполняет проверку занят ли указанный номер телефона.
5652
5690
  *
@@ -5683,7 +5721,7 @@ class ni {
5683
5721
  }
5684
5722
  }
5685
5723
  var fs = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(fs || {});
5686
- class oi extends h {
5724
+ class oi extends g {
5687
5725
  /**
5688
5726
  * Возвращает настройки указанного конфигуратора для указанной категории.
5689
5727
  *
@@ -5713,7 +5751,7 @@ class oi extends h {
5713
5751
  const o = this.get(
5714
5752
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5715
5753
  { params: t, client_id: e },
5716
- (u) => new U(u.data)
5754
+ (u) => new N(u.data)
5717
5755
  );
5718
5756
  return o.catch((u) => {
5719
5757
  this.errorResponseHandler(u, i);
@@ -5875,7 +5913,7 @@ class m {
5875
5913
  * @param date Дата.
5876
5914
  */
5877
5915
  static endOfHalfYear(r) {
5878
- return O(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
5916
+ return x(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
5879
5917
  }
5880
5918
  /**
5881
5919
  * Возвращает дату, сдвинутую на указанное число полугодий.
@@ -5896,7 +5934,7 @@ class m {
5896
5934
  * @param date Опорная дата.
5897
5935
  */
5898
5936
  static intervalTillSameDate(r, e, t) {
5899
- const i = qt(N(t), N(r)), o = N($(e, i)), c = Math.min(Ir(t), Nt(o));
5937
+ const i = qt(U(t), U(r)), o = U($(e, i)), c = Math.min(Ir(t), Nt(o));
5900
5938
  return { from: ue(e), to: B(Ut(o, c)) };
5901
5939
  }
5902
5940
  /**
@@ -5906,8 +5944,8 @@ class m {
5906
5944
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
5907
5945
  */
5908
5946
  static weekTillSameWeekday(r, e) {
5909
- const t = Q(gr(r, e), { weekStartsOn: 1 }), i = Je(r, Q(r, { weekStartsOn: 1 }));
5910
- return { from: t, to: B(J(t, i)) };
5947
+ const t = V(gr(r, e), { weekStartsOn: 1 }), i = Je(r, V(r, { weekStartsOn: 1 }));
5948
+ return { from: t, to: B(K(t, i)) };
5911
5949
  }
5912
5950
  /**
5913
5951
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -5918,7 +5956,7 @@ class m {
5918
5956
  */
5919
5957
  static decadeTillSameDayNumber(r, e) {
5920
5958
  const [t] = m.shiftedDecadeBounds(r, 0), i = Je(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Je(c, o) + 1;
5921
- return { from: o, to: B(J(o, Math.min(i, u) - 1)) };
5959
+ return { from: o, to: B(K(o, Math.min(i, u) - 1)) };
5922
5960
  }
5923
5961
  /**
5924
5962
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -5930,8 +5968,8 @@ class m {
5930
5968
  const t = Ir(r);
5931
5969
  let i = 2;
5932
5970
  t <= 10 ? i = 0 : t <= 20 && (i = 1);
5933
- const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = N($(r, c)), g = J(p, u * 10), y = u === 2 ? O(p) : B(J(g, 9));
5934
- return [g, y];
5971
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), h = K(p, u * 10), y = u === 2 ? x(p) : B(K(h, 9));
5972
+ return [h, y];
5935
5973
  }
5936
5974
  }
5937
5975
  class ui {
@@ -5948,16 +5986,16 @@ class ui {
5948
5986
  today: { label: "Сегодня", from: hr(), to: jt() },
5949
5987
  yesterday: { label: "Вчера", from: Wt(), to: Bt() },
5950
5988
  tomorrow: { label: "Завтра", from: Mt(), to: Ht() },
5951
- currentWeek: { label: "Неделя", from: Q(t, { weekStartsOn: 1 }), to: Ae(t, { weekStartsOn: 1 }) },
5952
- currentMonth: { label: "Месяц", from: N(t), to: O(t) },
5953
- oneMonth: { label: "1 месяц", from: i, to: O(i) },
5954
- threeMonths: { label: "3 месяца", from: i, to: O($(i, 2)) },
5955
- nineMonths: { label: "9 месяцев", from: i, to: O($(i, 8)) },
5956
- firstQuarter: { label: "I квартал", from: i, to: O($(i, 2)) },
5957
- secondQuarter: { label: "II квартал", from: $(i, 3), to: O($(i, 5)) },
5958
- thirdQuarter: { label: "III квартал", from: $(i, 6), to: O($(i, 8)) },
5959
- fourthQuarter: { label: "IV квартал", from: $(i, 9), to: O($(i, 11)) },
5960
- firstHalfYear: { label: "I полугодие", from: i, to: O($(i, 5)) },
5989
+ currentWeek: { label: "Неделя", from: V(t, { weekStartsOn: 1 }), to: de(t, { weekStartsOn: 1 }) },
5990
+ currentMonth: { label: "Месяц", from: U(t), to: x(t) },
5991
+ oneMonth: { label: "1 месяц", from: i, to: x(i) },
5992
+ threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
5993
+ nineMonths: { label: "9 месяцев", from: i, to: x($(i, 8)) },
5994
+ firstQuarter: { label: "I квартал", from: i, to: x($(i, 2)) },
5995
+ secondQuarter: { label: "II квартал", from: $(i, 3), to: x($(i, 5)) },
5996
+ thirdQuarter: { label: "III квартал", from: $(i, 6), to: x($(i, 8)) },
5997
+ fourthQuarter: { label: "IV квартал", from: $(i, 9), to: x($(i, 11)) },
5998
+ firstHalfYear: { label: "I полугодие", from: i, to: x($(i, 5)) },
5961
5999
  secondHalfYear: { label: "II полугодие", from: $(i, 6), to: o },
5962
6000
  currentYear: { label: "12 месяцев", from: i, to: o }
5963
6001
  };
@@ -5970,23 +6008,23 @@ class ui {
5970
6008
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
5971
6009
  */
5972
6010
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
5973
- const e = { weekStartsOn: 1 }, t = ue(r), i = B(r), o = m.decadeInterval(r), c = N(r), u = de(r), p = m.startOfHalfYear(r), g = ne(r), y = m.addHalfYears(r, -1), C = m.addHalfYears(r, 1);
6011
+ const e = { weekStartsOn: 1 }, t = ue(r), i = B(r), o = m.decadeInterval(r), c = U(r), u = Ae(r), p = m.startOfHalfYear(r), h = ne(r), y = m.addHalfYears(r, -1), C = m.addHalfYears(r, 1);
5974
6012
  return {
5975
6013
  yesterday: { label: "Вчера", group: "day", from: ue(Ve(r, 1)), to: B(Ve(r, 1)) },
5976
6014
  today: { label: "Сегодня", group: "day", from: t, to: i },
5977
- tomorrow: { label: "Завтра", group: "day", from: ue(J(r, 1)), to: B(J(r, 1)) },
5978
- lastWeek: { label: "Прошлая неделя", group: "week", from: Q(xr(r, 1), e), to: Ae(xr(r, 1), e) },
5979
- thisWeek: { label: "Эта неделя", group: "week", from: Q(r, e), to: Ae(r, e) },
5980
- nextWeek: { label: "Следующая неделя", group: "week", from: Q(gr(r, 1), e), to: Ae(gr(r, 1), e) },
6015
+ tomorrow: { label: "Завтра", group: "day", from: ue(K(r, 1)), to: B(K(r, 1)) },
6016
+ lastWeek: { label: "Прошлая неделя", group: "week", from: V(xr(r, 1), e), to: de(xr(r, 1), e) },
6017
+ thisWeek: { label: "Эта неделя", group: "week", from: V(r, e), to: de(r, e) },
6018
+ nextWeek: { label: "Следующая неделя", group: "week", from: V(gr(r, 1), e), to: de(gr(r, 1), e) },
5981
6019
  lastTenDays: { label: "Прошлая декада", group: "decade", ...m.shiftDecadeInterval(r, -1) },
5982
6020
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
5983
6021
  nextTenDays: { label: "Следующая декада", group: "decade", ...m.shiftDecadeInterval(r, 1) },
5984
- lastMonth: { label: "Прошлый месяц", group: "month", from: N(rr(r, 1)), to: O(rr(r, 1)) },
5985
- thisMonth: { label: "Этот месяц", group: "month", from: c, to: O(r) },
5986
- nextMonth: { label: "Следующий месяц", group: "month", from: N($(r, 1)), to: O($(r, 1)) },
5987
- lastQuarter: { label: "Прошлый квартал", group: "quarter", from: de(er(r, 1)), to: Fe(er(r, 1)) },
6022
+ lastMonth: { label: "Прошлый месяц", group: "month", from: U(rr(r, 1)), to: x(rr(r, 1)) },
6023
+ thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6024
+ nextMonth: { label: "Следующий месяц", group: "month", from: U($(r, 1)), to: x($(r, 1)) },
6025
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Ae(er(r, 1)), to: Fe(er(r, 1)) },
5988
6026
  thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Fe(r) },
5989
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: de(Xe(r, 1)), to: Fe(Xe(r, 1)) },
6027
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Ae(Xe(r, 1)), to: Fe(Xe(r, 1)) },
5990
6028
  lastHalfYear: {
5991
6029
  label: "Прошлое полугодие",
5992
6030
  group: "halfYear",
@@ -5996,17 +6034,17 @@ class ui {
5996
6034
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: m.endOfHalfYear(r) },
5997
6035
  nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(C), to: m.endOfHalfYear(C) },
5998
6036
  lastYear: { label: "Прошлый год", group: "year", from: ne(Ze(r, 1)), to: Te(Ze(r, 1)) },
5999
- thisYear: { label: "Этот год", group: "year", from: g, to: Te(r) },
6037
+ thisYear: { label: "Этот год", group: "year", from: h, to: Te(r) },
6000
6038
  nextYear: { label: "Следующий год", group: "year", from: ne(Ke(r, 1)), to: Te(Ke(r, 1)) },
6001
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: Q(r, e), to: i },
6039
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: V(r, e), to: i },
6002
6040
  fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6003
6041
  fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6004
6042
  fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6005
6043
  fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6006
- fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6007
- tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: Ae(r, e) },
6044
+ fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: h, to: i },
6045
+ tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: de(r, e) },
6008
6046
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6009
- tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: O(r) },
6047
+ tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
6010
6048
  tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Fe(r) },
6011
6049
  tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: t, to: m.endOfHalfYear(r) },
6012
6050
  tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Te(r) },
@@ -6021,13 +6059,13 @@ class ui {
6021
6059
  label: "Прошлый месяц, до такой же даты",
6022
6060
  group: "other",
6023
6061
  section: "lastTillSame",
6024
- ...m.intervalTillSameDate(c, N(rr(r, 1)), r)
6062
+ ...m.intervalTillSameDate(c, U(rr(r, 1)), r)
6025
6063
  },
6026
6064
  lastQuarterTillSameDate: {
6027
6065
  label: "Прошлый квартал, до такой же даты",
6028
6066
  group: "other",
6029
6067
  section: "lastTillSame",
6030
- ...m.intervalTillSameDate(u, de(er(r, 1)), r)
6068
+ ...m.intervalTillSameDate(u, Ae(er(r, 1)), r)
6031
6069
  },
6032
6070
  lastHalfYearTillSameDate: {
6033
6071
  label: "Прошлое полугодие, до такой же даты",
@@ -6039,7 +6077,7 @@ class ui {
6039
6077
  label: "Прошлый год, до такой же даты",
6040
6078
  group: "other",
6041
6079
  section: "lastTillSame",
6042
- ...m.intervalTillSameDate(g, ne(Ze(r, 1)), r)
6080
+ ...m.intervalTillSameDate(h, ne(Ze(r, 1)), r)
6043
6081
  },
6044
6082
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6045
6083
  nextTenDaysTillSameDayNumber: {
@@ -6052,13 +6090,13 @@ class ui {
6052
6090
  label: "Следующий месяц, до такой же даты",
6053
6091
  group: "other",
6054
6092
  section: "nextTillSame",
6055
- ...m.intervalTillSameDate(c, N($(r, 1)), r)
6093
+ ...m.intervalTillSameDate(c, U($(r, 1)), r)
6056
6094
  },
6057
6095
  nextQuarterTillSameDate: {
6058
6096
  label: "Следующий квартал, до такой же даты",
6059
6097
  group: "other",
6060
6098
  section: "nextTillSame",
6061
- ...m.intervalTillSameDate(u, de(Xe(r, 1)), r)
6099
+ ...m.intervalTillSameDate(u, Ae(Xe(r, 1)), r)
6062
6100
  },
6063
6101
  nextHalfYearTillSameDate: {
6064
6102
  label: "Следующее полугодие, до такой же даты",
@@ -6070,10 +6108,10 @@ class ui {
6070
6108
  label: "Следующий год, до такой же даты",
6071
6109
  group: "other",
6072
6110
  section: "nextTillSame",
6073
- ...m.intervalTillSameDate(g, ne(Ke(r, 1)), r)
6111
+ ...m.intervalTillSameDate(h, ne(Ke(r, 1)), r)
6074
6112
  },
6075
6113
  last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: ue(Ve(r, 6)), to: i },
6076
- next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(J(r, 6)) }
6114
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(K(r, 6)) }
6077
6115
  };
6078
6116
  }
6079
6117
  }
@@ -6121,7 +6159,7 @@ class yt {
6121
6159
  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;
6122
6160
  }
6123
6161
  }
6124
- const ge = class ge extends h {
6162
+ const ge = class ge extends g {
6125
6163
  /**
6126
6164
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
6127
6165
  */
@@ -6131,7 +6169,7 @@ const ge = class ge extends h {
6131
6169
  * Время кэширования данных ответов на запросы (секунд).
6132
6170
  */
6133
6171
  s(this, "responseDataCacheTimeout");
6134
- this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
6172
+ this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
6135
6173
  }
6136
6174
  /**
6137
6175
  * Возвращает кэшированные данные.
@@ -6170,7 +6208,7 @@ const ge = class ge extends h {
6170
6208
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6171
6209
  getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
6172
6210
  const u = t + (me(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? ge.getCachedResponse(u) : void 0;
6173
- return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6211
+ return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((h) => (i && h && this.cacheResponse(u, h), h));
6174
6212
  }
6175
6213
  };
6176
6214
  /**
@@ -6279,8 +6317,8 @@ class mi extends _e {
6279
6317
  /**
6280
6318
  * @inheritDoc
6281
6319
  */
6282
- s(this, "createdAt", new A());
6283
- this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new A(e == null ? void 0 : e.createdAt);
6320
+ s(this, "createdAt", new d());
6321
+ this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new d(e == null ? void 0 : e.createdAt);
6284
6322
  }
6285
6323
  /**
6286
6324
  * @inheritDoc
@@ -6306,7 +6344,7 @@ class vt extends mt {
6306
6344
  * @param data Данные для первоначальной инициализации.
6307
6345
  */
6308
6346
  constructor(e) {
6309
- var t, i, o, c, u, p, g, y;
6347
+ var t, i, o, c, u, p, h, y;
6310
6348
  super(e);
6311
6349
  /**
6312
6350
  * @inheritDoc
@@ -6363,7 +6401,7 @@ class vt extends mt {
6363
6401
  }, this.delivery = {
6364
6402
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
6365
6403
  date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6366
- address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Le(e.delivery.address) : void 0,
6404
+ address: (h = e == null ? void 0 : e.delivery) != null && h.address ? new Le(e.delivery.address) : void 0,
6367
6405
  warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new qe(e.delivery.warehouse) : void 0
6368
6406
  }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Ye(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new a(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = D(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
6369
6407
  }
@@ -6425,10 +6463,10 @@ class as extends et {
6425
6463
  * Продукт, которым заменена текущая запись.
6426
6464
  */
6427
6465
  s(this, "replacement");
6428
- this.product = new K(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6466
+ this.product = new J(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6429
6467
  }
6430
6468
  }
6431
- class L extends vt {
6469
+ class I extends vt {
6432
6470
  /**
6433
6471
  * Инициализирует экземпляр класса {@link Order}.
6434
6472
  *
@@ -6496,7 +6534,7 @@ class L extends vt {
6496
6534
  }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? je.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new a(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new Ye(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6497
6535
  }
6498
6536
  }
6499
- class yi extends re {
6537
+ class yi extends Y {
6500
6538
  /**
6501
6539
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6502
6540
  *
@@ -6575,15 +6613,15 @@ class yi extends re {
6575
6613
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
6576
6614
  */
6577
6615
  createOrderFromDraft(r, e, t, i = {}) {
6578
- const o = I().config.dateFormats.api;
6616
+ const o = k().config.dateFormats.api;
6579
6617
  return this.post(
6580
6618
  `/internal/orders/offers/${r}/create-order`,
6581
6619
  {
6582
6620
  ...e,
6583
- deliveryDate: e.deliveryDate ? x(e.deliveryDate, o) : void 0,
6621
+ deliveryDate: e.deliveryDate ? L(e.deliveryDate, o) : void 0,
6584
6622
  items: t != null && t.length ? t : void 0
6585
6623
  },
6586
- (c) => _.instanceListInitializer(L, c.data),
6624
+ (c) => _.instanceListInitializer(I, c.data),
6587
6625
  i
6588
6626
  );
6589
6627
  }
@@ -6795,7 +6833,7 @@ class vi extends _e {
6795
6833
  /**
6796
6834
  * @inheritDoc
6797
6835
  */
6798
- s(this, "createdAt", new A());
6836
+ s(this, "createdAt", new d());
6799
6837
  /**
6800
6838
  * @inheritDoc
6801
6839
  */
@@ -6803,7 +6841,7 @@ class vi extends _e {
6803
6841
  /**
6804
6842
  * @inheritDoc
6805
6843
  */
6806
- s(this, "deliveryDate", new A());
6844
+ s(this, "deliveryDate", new d());
6807
6845
  /**
6808
6846
  * @inheritDoc
6809
6847
  */
@@ -6831,7 +6869,7 @@ class vi extends _e {
6831
6869
  /**
6832
6870
  * @inheritDoc
6833
6871
  */
6834
- s(this, "attachedAt", new A());
6872
+ s(this, "attachedAt", new d());
6835
6873
  /**
6836
6874
  * @inheritDoc
6837
6875
  */
@@ -6868,7 +6906,7 @@ class vi extends _e {
6868
6906
  * @inheritDoc
6869
6907
  */
6870
6908
  s(this, "onlyMyRegions");
6871
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Ne(u) : new wt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new ve(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new E(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Ct(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new qe(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6909
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Ne(u) : new wt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new 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 ve(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new 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 Q(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Ct(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new qe(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6872
6910
  }
6873
6911
  /**
6874
6912
  * @inheritDoc
@@ -6885,7 +6923,7 @@ class vi extends _e {
6885
6923
  this.deliveryDate.from = null, this.deliveryDate.to = null;
6886
6924
  break;
6887
6925
  case "deliveryType":
6888
- this.deliveryType = new E();
6926
+ this.deliveryType = new Q();
6889
6927
  break;
6890
6928
  case "clientCities":
6891
6929
  this.clientCities = [];
@@ -6945,7 +6983,7 @@ class ws {
6945
6983
  this.user = new q(r == null ? void 0 : r.user), this.status = new Ye(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new a(r.statusDetail) : void 0, this.createdAt = D(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6946
6984
  }
6947
6985
  }
6948
- class wi extends re {
6986
+ class wi extends Y {
6949
6987
  /**
6950
6988
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
6951
6989
  *
@@ -6970,7 +7008,7 @@ class wi extends re {
6970
7008
  getOrdersCount(r, e = void 0) {
6971
7009
  return this.get(
6972
7010
  "/internal/orders/count",
6973
- r ? { filters: JSON.stringify((r instanceof V ? r : new V(r)).toPrimitive()) } : {},
7011
+ r ? { filters: JSON.stringify((r instanceof X ? r : new X(r)).toPrimitive()) } : {},
6974
7012
  void 0,
6975
7013
  void 0,
6976
7014
  e
@@ -6993,7 +7031,7 @@ class wi extends re {
6993
7031
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
6994
7032
  */
6995
7033
  getOrder(r) {
6996
- return this.get(`/internal/orders/${r}`, {}, (e) => new L(e.data));
7034
+ return this.get(`/internal/orders/${r}`, {}, (e) => new I(e.data));
6997
7035
  }
6998
7036
  /**
6999
7037
  * Создаёт новый заказ клиента из содержимого корзины текущего пользователя.
@@ -7011,15 +7049,15 @@ class wi extends re {
7011
7049
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
7012
7050
  */
7013
7051
  createClientOrder(r, e, t, i, o = {}) {
7014
- const c = I().config.dateFormats.api;
7052
+ const c = k().config.dateFormats.api;
7015
7053
  return this.post(
7016
7054
  `/internal/clients/${r}/orders/${e}`,
7017
7055
  {
7018
7056
  ...t,
7019
- deliveryDate: x(t.deliveryDate, c),
7057
+ deliveryDate: L(t.deliveryDate, c),
7020
7058
  items: i != null && i.length ? i : void 0
7021
7059
  },
7022
- (u) => _.instanceListInitializer(L, u.data),
7060
+ (u) => _.instanceListInitializer(I, u.data),
7023
7061
  o
7024
7062
  );
7025
7063
  }
@@ -7031,7 +7069,7 @@ class wi extends re {
7031
7069
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
7032
7070
  */
7033
7071
  attachOrder(r) {
7034
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new L(e.data));
7072
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new I(e.data));
7035
7073
  }
7036
7074
  /**
7037
7075
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -7041,7 +7079,7 @@ class wi extends re {
7041
7079
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
7042
7080
  */
7043
7081
  detachOrder(r) {
7044
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new L(e.data));
7082
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new I(e.data));
7045
7083
  }
7046
7084
  /**
7047
7085
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -7052,7 +7090,7 @@ class wi extends re {
7052
7090
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
7053
7091
  */
7054
7092
  mergeOrders(r, e) {
7055
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new L(t.data));
7093
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new I(t.data));
7056
7094
  }
7057
7095
  /**
7058
7096
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -7062,7 +7100,7 @@ class wi extends re {
7062
7100
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
7063
7101
  */
7064
7102
  recalculateOrder(r) {
7065
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new L(e.data));
7103
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new I(e.data));
7066
7104
  }
7067
7105
  /**
7068
7106
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -7086,14 +7124,14 @@ class wi extends re {
7086
7124
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
7087
7125
  */
7088
7126
  updateOrder(r, e, t = {}) {
7089
- const i = I().config.dateFormats.api;
7127
+ const i = k().config.dateFormats.api;
7090
7128
  return this.patch(
7091
7129
  `/internal/orders/${r}`,
7092
7130
  {
7093
7131
  ...e,
7094
- deliveryDate: e.deliveryDate ? x(e.deliveryDate, i) : void 0
7132
+ deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
7095
7133
  },
7096
- (o) => new L(o.data),
7134
+ (o) => new I(o.data),
7097
7135
  t
7098
7136
  );
7099
7137
  }
@@ -7123,7 +7161,7 @@ class wi extends re {
7123
7161
  is_additional_sale: e.isAdditionalSale,
7124
7162
  ...e.configuratorParams
7125
7163
  },
7126
- (i) => new L(i.data),
7164
+ (i) => new I(i.data),
7127
7165
  t
7128
7166
  );
7129
7167
  }
@@ -7146,7 +7184,7 @@ class wi extends re {
7146
7184
  status: e,
7147
7185
  statusDetail: t
7148
7186
  },
7149
- (o) => new L(o.data),
7187
+ (o) => new I(o.data),
7150
7188
  i
7151
7189
  );
7152
7190
  }
@@ -7160,7 +7198,7 @@ class wi extends re {
7160
7198
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
7161
7199
  */
7162
7200
  changeOrderStatusDetail(r, e) {
7163
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new L(t.data));
7201
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new I(t.data));
7164
7202
  }
7165
7203
  /**
7166
7204
  * Возвращает историю изменения статусов заказа.
@@ -7214,7 +7252,7 @@ class wi extends re {
7214
7252
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
7215
7253
  */
7216
7254
  changeAttachedOperator(r, e) {
7217
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new L(t.data));
7255
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new I(t.data));
7218
7256
  }
7219
7257
  /**
7220
7258
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -7224,7 +7262,7 @@ class wi extends re {
7224
7262
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
7225
7263
  */
7226
7264
  deleteOrderAttachedFile(r) {
7227
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new L(e.data));
7265
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new I(e.data));
7228
7266
  }
7229
7267
  /**
7230
7268
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -7235,7 +7273,7 @@ class wi extends re {
7235
7273
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
7236
7274
  */
7237
7275
  deleteOrderProduct(r, e) {
7238
- return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new L(t.data));
7276
+ return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new I(t.data));
7239
7277
  }
7240
7278
  /**
7241
7279
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -7264,7 +7302,7 @@ class wi extends re {
7264
7302
  is_additional_sale: t.isAdditionalSale,
7265
7303
  ...t.configuratorParams
7266
7304
  },
7267
- (o) => new L(o.data),
7305
+ (o) => new I(o.data),
7268
7306
  i
7269
7307
  );
7270
7308
  }
@@ -7299,11 +7337,11 @@ class wi extends re {
7299
7337
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
7300
7338
  */
7301
7339
  getDeliveryCost(r, e, t, i = void 0) {
7302
- const o = I().config.dateFormats.api;
7340
+ const o = k().config.dateFormats.api;
7303
7341
  return this.get(
7304
7342
  `/internal/orders/delivery/${r}/cost`,
7305
7343
  {
7306
- date: x(e, o),
7344
+ date: L(e, o),
7307
7345
  warehouse_id: t
7308
7346
  },
7309
7347
  (c) => c.data,
@@ -7340,7 +7378,7 @@ class cr {
7340
7378
  * Источник клиентской цены.
7341
7379
  */
7342
7380
  s(this, "source");
7343
- this.client = new te(r == null ? void 0 : r.client), this.product = new U(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Tr.Product;
7381
+ this.client = new te(r == null ? void 0 : r.client), this.product = new N(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Tr.Product;
7344
7382
  }
7345
7383
  }
7346
7384
  const lr = (n) => {
@@ -7360,7 +7398,7 @@ const lr = (n) => {
7360
7398
  const r = {};
7361
7399
  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;
7362
7400
  };
7363
- class Di extends h {
7401
+ class Di extends g {
7364
7402
  /**
7365
7403
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7366
7404
  *
@@ -7486,7 +7524,7 @@ class Ds extends Ie {
7486
7524
  this.history = Ce(e.history, (t) => new Cs(t));
7487
7525
  }
7488
7526
  }
7489
- class Ri extends h {
7527
+ class Ri extends g {
7490
7528
  /**
7491
7529
  * Возвращает данные об истории изменения цен.
7492
7530
  *
@@ -7495,16 +7533,16 @@ class Ri extends h {
7495
7533
  * @see /docs/api#/operations/api_internal_price_history_get
7496
7534
  */
7497
7535
  getProductPriceHistory(r) {
7498
- var o, c, u, p, g;
7499
- const e = I().config.dateFormats.api, t = Qr(
7536
+ var o, c, u, p, h;
7537
+ const e = k().config.dateFormats.api, t = Qr(
7500
7538
  Oe(r, {
7501
7539
  costDate: {
7502
- from: pr((o = r.costDate) == null ? void 0 : o.from) ? x(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7503
- to: pr((u = r.costDate) == null ? void 0 : u.to) ? x(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7540
+ from: pr((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7541
+ to: pr((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7504
7542
  }
7505
7543
  }),
7506
7544
  (y) => T(y) || (W(y) || Dr(y)) && me(y)
7507
- ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7545
+ ), i = ((h = r.product) == null ? void 0 : h[0]) ?? 0;
7508
7546
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7509
7547
  new Ds(Oe(y[0], { history: y }))
7510
7548
  ]);
@@ -7528,7 +7566,7 @@ class jr {
7528
7566
  r != null && r.products && (this.products = r.products.map((e) => new Ie(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ie(e)));
7529
7567
  }
7530
7568
  }
7531
- class bi extends h {
7569
+ class bi extends g {
7532
7570
  /**
7533
7571
  * Возвращает данные о рекомендациях указанной категории продуктов.
7534
7572
  *
@@ -7579,7 +7617,7 @@ class Ps extends a {
7579
7617
  }
7580
7618
  class Ts extends a {
7581
7619
  }
7582
- class $r extends k {
7620
+ class $r extends O {
7583
7621
  /**
7584
7622
  * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
7585
7623
  *
@@ -7610,10 +7648,10 @@ class Gr extends a {
7610
7648
  this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new $r(i))) ?? [];
7611
7649
  }
7612
7650
  }
7613
- class As extends a {
7614
- }
7615
7651
  class ds extends a {
7616
7652
  }
7653
+ class As extends a {
7654
+ }
7617
7655
  class Ss extends a {
7618
7656
  }
7619
7657
  class $s extends a {
@@ -7670,13 +7708,13 @@ const M = class M extends xe {
7670
7708
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
7671
7709
  */
7672
7710
  getContactPositions() {
7673
- return this.getTypedDataArrayRequester(As, "/internal/references/contact-position", !0);
7711
+ return this.getTypedDataArrayRequester(ds, "/internal/references/contact-position", !0);
7674
7712
  }
7675
7713
  /**
7676
7714
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
7677
7715
  */
7678
7716
  getCuratedDirection() {
7679
- return this.getTypedDataArrayRequester(dr, "/internal/references/curated-direction", !0);
7717
+ return this.getTypedDataArrayRequester(Ar, "/internal/references/curated-direction", !0);
7680
7718
  }
7681
7719
  /**
7682
7720
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -7695,7 +7733,7 @@ const M = class M extends xe {
7695
7733
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
7696
7734
  */
7697
7735
  getOpf() {
7698
- return this.getTypedDataArrayRequester(Z, "/public/references/opf", !0);
7736
+ return this.getTypedDataArrayRequester(ee, "/public/references/opf", !0);
7699
7737
  }
7700
7738
  /**
7701
7739
  * Возвращает {@link Promise} для получения справочника операторов.
@@ -7707,7 +7745,7 @@ const M = class M extends xe {
7707
7745
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
7708
7746
  */
7709
7747
  getOrderPaymentStatuses() {
7710
- return this.getTypedDataArrayRequester(ds, "/public/references/order-payment-status", !0);
7748
+ return this.getTypedDataArrayRequester(As, "/public/references/order-payment-status", !0);
7711
7749
  }
7712
7750
  /**
7713
7751
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
@@ -7837,7 +7875,7 @@ const M = class M extends xe {
7837
7875
  * Возвращает {@link Promise} для получения справочника типов доставки.
7838
7876
  */
7839
7877
  getDeliveryTypes() {
7840
- return this.getTypedDataArrayRequester(E, "/internal/references/delivery-type", !0);
7878
+ return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
7841
7879
  }
7842
7880
  /**
7843
7881
  * Возвращает {@link Promise} для получения справочника складов.
@@ -7869,9 +7907,9 @@ const M = class M extends xe {
7869
7907
  * обозначающих неизвестное местоположение.
7870
7908
  */
7871
7909
  s(M, "unknownLocationId", 1);
7872
- let d = M;
7873
- const S = ee("common.references_private", () => {
7874
- const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), y = v(void 0), C = v(void 0), be = v(void 0), Pe = v(void 0), se = v(void 0), ie = v(void 0), ze = v(void 0), Ee = v(void 0), Qe = v(void 0), l = v(void 0);
7910
+ let A = M;
7911
+ const S = re("common.references_private", () => {
7912
+ 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), h = v(void 0), y = v(void 0), C = v(void 0), be = v(void 0), Pe = v(void 0), se = v(void 0), ie = v(void 0), ze = v(void 0), Ee = v(void 0), Qe = v(void 0), l = v(void 0);
7875
7913
  return {
7876
7914
  /**
7877
7915
  * Список загружаемых/загруженных на данный момент значений.
@@ -7912,7 +7950,7 @@ const S = ee("common.references_private", () => {
7912
7950
  /**
7913
7951
  * Справочник статусов заказов.
7914
7952
  */
7915
- orderStatusReference: g,
7953
+ orderStatusReference: h,
7916
7954
  /**
7917
7955
  * Справочник детализирующих статусов (подстатусов) заказов.
7918
7956
  */
@@ -7954,100 +7992,100 @@ const S = ee("common.references_private", () => {
7954
7992
  */
7955
7993
  priceCoefficientsReference: l
7956
7994
  };
7957
- }), Ti = ee("common.references", () => {
7995
+ }), Ti = re("common.references", () => {
7958
7996
  const n = P(() => {
7959
7997
  const l = S();
7960
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
7998
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, g.getInstance(A).getChannelPrimaryInterest().then((f) => {
7961
7999
  l.channelPrimaryInterestReference = f;
7962
8000
  }).catch(w)), l.channelPrimaryInterestReference;
7963
8001
  }), r = P(() => {
7964
8002
  const l = S();
7965
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
8003
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, g.getInstance(A).getContactPositions().then((f) => {
7966
8004
  l.contactPositionsReference = f;
7967
8005
  }).catch(w)), l.contactPositionsReference;
7968
8006
  }), e = P(() => {
7969
8007
  const l = S();
7970
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
8008
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, g.getInstance(A).getCurrency().then((f) => {
7971
8009
  l.currencyReference = f;
7972
8010
  }).catch(w)), l.currencyReference;
7973
8011
  }), t = P(() => {
7974
8012
  const l = S();
7975
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8013
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, g.getInstance(A).getOpf().then((f) => {
7976
8014
  l.opfReference = f;
7977
8015
  }).catch(w)), l.opfReference;
7978
8016
  }), i = P(() => {
7979
8017
  const l = S();
7980
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
8018
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, g.getInstance(A).getOperators().then((f) => {
7981
8019
  l.operatorReference = f;
7982
8020
  }).catch(w)), l.operatorReference;
7983
8021
  }), o = P(() => {
7984
8022
  const l = S();
7985
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
8023
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, g.getInstance(A).getOrderPaymentStatuses().then((f) => {
7986
8024
  l.orderPaymentStatusReference = f;
7987
8025
  }).catch(w)), l.orderPaymentStatusReference;
7988
8026
  }), c = P(() => {
7989
8027
  const l = S();
7990
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
8028
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, g.getInstance(A).getOrderStatuses().then((f) => {
7991
8029
  l.orderStatusReference = f;
7992
8030
  }).catch(w)), l.orderStatusReference;
7993
8031
  }), u = P(() => {
7994
8032
  const l = S();
7995
- return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
8033
+ return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, g.getInstance(A).getOrderStatusDetails().then((f) => {
7996
8034
  l.orderStatusDetailReference = f;
7997
8035
  }).catch(w)), l.orderStatusDetailReference;
7998
8036
  }), p = P(() => {
7999
8037
  const l = S();
8000
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
8038
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, g.getInstance(A).getPaymentTypes().then((f) => {
8001
8039
  l.paymentTypeReference = f;
8002
8040
  }).catch(w)), l.paymentTypeReference;
8003
- }), g = P(() => {
8041
+ }), h = P(() => {
8004
8042
  const l = S();
8005
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
8043
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, g.getInstance(A).getPartnerGroup().then((f) => {
8006
8044
  l.partnerGroupReference = f;
8007
8045
  }).catch(w)), l.partnerGroupReference;
8008
8046
  }), y = P(() => {
8009
8047
  const l = S();
8010
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8048
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, g.getInstance(A).getProductFileType().then((f) => {
8011
8049
  l.productFileTypeReference = f;
8012
8050
  }).catch(w)), l.productFileTypeReference;
8013
8051
  }), C = P(() => {
8014
8052
  const l = S();
8015
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8053
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, g.getInstance(A).getResourceTypes().then((f) => {
8016
8054
  l.resourceTypesReference = f;
8017
8055
  }).catch(w)), l.resourceTypesReference;
8018
8056
  }), be = P(() => {
8019
8057
  const l = S();
8020
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8058
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, g.getInstance(A).getSalesDirections().then((f) => {
8021
8059
  l.salesDirectionsReference = f;
8022
8060
  }).catch(w)), l.salesDirectionsReference;
8023
8061
  }), Pe = P(() => {
8024
8062
  const l = S();
8025
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8063
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, g.getInstance(A).getSourcePrimaryInterest().then((f) => {
8026
8064
  l.sourcePrimaryInterestReference = f;
8027
8065
  }).catch(w)), l.sourcePrimaryInterestReference;
8028
8066
  }), se = P(() => {
8029
8067
  const l = S();
8030
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8068
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, g.getInstance(A).getDeliveryTypes().then((f) => {
8031
8069
  l.deliveryTypeReference = f;
8032
8070
  }).catch(w)), l.deliveryTypeReference;
8033
8071
  }), ie = P(() => {
8034
8072
  const l = S();
8035
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ys).getManagers().then((f) => {
8073
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, g.getInstance(ys).getManagers().then((f) => {
8036
8074
  l.managersList = f;
8037
8075
  }).catch(w)), l.managersList;
8038
8076
  }), ze = P(() => {
8039
8077
  const l = S();
8040
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8078
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, g.getInstance(A).getWarehouses().then((f) => {
8041
8079
  l.warehousesReference = f;
8042
8080
  }).catch(w)), l.warehousesReference;
8043
8081
  }), Ee = P(() => {
8044
8082
  const l = S();
8045
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8083
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, g.getInstance(A).getPropertyTypes().then((f) => {
8046
8084
  l.propertyTypesReference = f;
8047
8085
  }).catch(w)), l.propertyTypesReference;
8048
8086
  }), Qe = P(() => {
8049
8087
  const l = S();
8050
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8088
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, g.getInstance(A).getPriceCoefficients().then((f) => {
8051
8089
  l.priceCoefficientsReference = f;
8052
8090
  }).catch(w)), l.priceCoefficientsReference;
8053
8091
  });
@@ -8091,7 +8129,7 @@ const S = ee("common.references_private", () => {
8091
8129
  /**
8092
8130
  * Справочник групп партнеров.
8093
8131
  */
8094
- partnerGroupsReference: g,
8132
+ partnerGroupsReference: h,
8095
8133
  /**
8096
8134
  * Справочник типов файлов продуктов/категорий.
8097
8135
  */
@@ -8191,7 +8229,7 @@ class Yr {
8191
8229
  this.resourceType = new Dt(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new ks(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8192
8230
  }
8193
8231
  }
8194
- class Ai extends h {
8232
+ class di extends g {
8195
8233
  /**
8196
8234
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8197
8235
  *
@@ -8222,7 +8260,7 @@ class Ai extends h {
8222
8260
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8223
8261
  }
8224
8262
  }
8225
- class di extends h {
8263
+ class Ai extends g {
8226
8264
  /**
8227
8265
  * Возвращает подсказки по адресам.
8228
8266
  *
@@ -8297,12 +8335,12 @@ class Os extends ot {
8297
8335
  this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new it(e.pricingRole) : void 0;
8298
8336
  }
8299
8337
  }
8300
- class Si extends h {
8338
+ class Si extends g {
8301
8339
  /**
8302
8340
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8303
8341
  */
8304
8342
  constructor() {
8305
- super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8343
+ super(), this.baseUrl = `${k().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8306
8344
  }
8307
8345
  /**
8308
8346
  * Функция для получения обновленных токенов доступа.
@@ -8313,7 +8351,7 @@ class Si extends h {
8313
8351
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8314
8352
  }
8315
8353
  }
8316
- class Is extends h {
8354
+ class Is extends g {
8317
8355
  /**
8318
8356
  * Возвращает данные о текущем пользователе.
8319
8357
  */
@@ -8322,7 +8360,7 @@ class Is extends h {
8322
8360
  return this.get("/internal/users/info", {}, (r) => new Os(r.data), !0);
8323
8361
  }
8324
8362
  }
8325
- const xs = ee("common.user_state_private", () => {
8363
+ const xs = re("common.user_state_private", () => {
8326
8364
  const n = v({}), r = v(void 0);
8327
8365
  return {
8328
8366
  /**
@@ -8334,13 +8372,13 @@ const xs = ee("common.user_state_private", () => {
8334
8372
  */
8335
8373
  currentUser: r
8336
8374
  };
8337
- }), $i = ee("common.user_state", () => ({
8375
+ }), $i = re("common.user_state", () => ({
8338
8376
  /**
8339
8377
  * Данные о текущем пользователе.
8340
8378
  */
8341
8379
  currentUser: P(() => {
8342
8380
  const r = xs();
8343
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Is).getCurrentUser().then((e) => {
8381
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, g.getInstance(Is).getCurrentUser().then((e) => {
8344
8382
  r.currentUser = e;
8345
8383
  }).catch(w).finally(() => {
8346
8384
  r.dataLoaderList.currentUser = !1;
@@ -8421,7 +8459,7 @@ class ki extends _e {
8421
8459
  return this;
8422
8460
  }
8423
8461
  }
8424
- class Li extends re {
8462
+ class Li extends Y {
8425
8463
  /**
8426
8464
  * Возвращает список регионов пользователей.
8427
8465
  *
@@ -8547,7 +8585,7 @@ export {
8547
8585
  Ps as AnyReference,
8548
8586
  Kt as AppBaseConfig,
8549
8587
  ar as BankAccount,
8550
- re as BasePaginationProvider,
8588
+ Y as BasePaginationProvider,
8551
8589
  sr as BlogPost,
8552
8590
  fr as BlogPostMediaFile,
8553
8591
  Me as BlogPostMediaTypeEnum,
@@ -8561,7 +8599,7 @@ export {
8561
8599
  Gs as CartProvider,
8562
8600
  zs as CatalogProvider,
8563
8601
  Zr as CatalogableItem,
8564
- Y as Category,
8602
+ z as Category,
8565
8603
  cs as CategoryFilter,
8566
8604
  Fr as CategoryFilterSetting,
8567
8605
  os as CategoryFilterValue,
@@ -8576,7 +8614,7 @@ export {
8576
8614
  H as ClientDataProvider,
8577
8615
  Es as ClientPriceProvider,
8578
8616
  Qs as ClientPriceTemplateProvider,
8579
- K as ClientProduct,
8617
+ J as ClientProduct,
8580
8618
  Ks as ClientProductCategoryDataProvider,
8581
8619
  Xs as ClientProductDataProvider,
8582
8620
  te as ClientShortInfo,
@@ -8587,9 +8625,9 @@ export {
8587
8625
  fs as ConfiguratorsEnum,
8588
8626
  vr as Contact,
8589
8627
  st as ContactLinks,
8590
- X as ContactPerson,
8628
+ Z as ContactPerson,
8591
8629
  gs as ContactPersonRelated,
8592
- As as ContactPosition,
8630
+ ds as ContactPosition,
8593
8631
  or as ContactRelation,
8594
8632
  ut as ContragentBase,
8595
8633
  je as ContragentFactory,
@@ -8599,19 +8637,19 @@ export {
8599
8637
  ht as ContragentUlR,
8600
8638
  Tr as CostSourceEnum,
8601
8639
  ye as Country,
8602
- dr as CuratedDirection,
8640
+ Ar as CuratedDirection,
8603
8641
  Sr as Curator,
8604
8642
  j as Currency,
8605
- di as DataSuggestionProvider,
8643
+ Ai as DataSuggestionProvider,
8606
8644
  ui as DateTimeProvider,
8607
8645
  lt as DeletableNamedIdentity,
8608
8646
  Le as DeliveryAddress,
8609
- E as DeliveryType,
8647
+ Q as DeliveryType,
8610
8648
  Jr as DetailedJwtPayload,
8611
8649
  Et as DeviceTypeResolutionConfig,
8612
8650
  Xt as DiscountShortInfo,
8613
8651
  Oi as FieldValidationResultData,
8614
- V as FilterGroup,
8652
+ X as FilterGroup,
8615
8653
  qr as FilterItem,
8616
8654
  br as FilterOpEnum,
8617
8655
  ns as FilterSettings,
@@ -8619,30 +8657,30 @@ export {
8619
8657
  es as HiddenCatalogableItem,
8620
8658
  xe as HttpCachedRequester,
8621
8659
  Qt as HttpParamsConfig,
8622
- h as HttpRequester,
8660
+ g as HttpRequester,
8623
8661
  G as Identity,
8624
8662
  rs as Image,
8625
8663
  De as JwtPayload,
8626
8664
  Ne as Manager,
8627
- Ar as ManagerCommon,
8665
+ dr as ManagerCommon,
8628
8666
  fi as ManagerDataFactory,
8629
8667
  ys as ManagerDataProvider,
8630
8668
  ks as MetaTagItem,
8631
- k as NamedIdentity,
8669
+ O as NamedIdentity,
8632
8670
  le as Offer,
8633
8671
  at as OfferShortInfo,
8634
8672
  yi as OffersDataProvider,
8635
8673
  mi as OffersListFilters,
8636
8674
  wt as Operator,
8637
- Z as Opf,
8638
- z as OpfEnum,
8639
- L as Order,
8675
+ ee as Opf,
8676
+ E as OpfEnum,
8677
+ I as Order,
8640
8678
  vs as OrderAction,
8641
8679
  ai as OrderEditorData,
8642
8680
  vt as OrderInfo,
8643
8681
  as as OrderItem,
8644
8682
  et as OrderItemBase,
8645
- ds as OrderPaymentStatus,
8683
+ As as OrderPaymentStatus,
8646
8684
  mt as OrderShortInfo,
8647
8685
  Ye as OrderStatus,
8648
8686
  Ss as OrderStatusDetail,
@@ -8670,7 +8708,7 @@ export {
8670
8708
  ke as PricingRole,
8671
8709
  ei as PricingRoleProvider,
8672
8710
  yr as PrimaryCatalogableItem,
8673
- U as Product,
8711
+ N as Product,
8674
8712
  Js as ProductCategoryDataProvider,
8675
8713
  Vs as ProductDataProvider,
8676
8714
  $s as ProductFileType,
@@ -8687,7 +8725,7 @@ export {
8687
8725
  jr as RecommendationsList,
8688
8726
  a as Reference,
8689
8727
  Pi as ReferenceDataFactory,
8690
- d as ReferenceDataProvider,
8728
+ A as ReferenceDataProvider,
8691
8729
  ae as Region,
8692
8730
  Dt as ResourceType,
8693
8731
  pi as STANDARD_PERIOD_GROUPS,
@@ -8695,7 +8733,7 @@ export {
8695
8733
  F as SalesDirection,
8696
8734
  Jt as SentryConfig,
8697
8735
  Yr as Seo,
8698
- Ai as SeoDataProvider,
8736
+ di as SeoDataProvider,
8699
8737
  ft as SourcePrimaryInterest,
8700
8738
  Zt as StockCount,
8701
8739
  ci as TableDataPagination,
@@ -8727,7 +8765,7 @@ export {
8727
8765
  Mr as flattenCatalogItems,
8728
8766
  gi as pluralize,
8729
8767
  tr as useAuthStateStore,
8730
- I as useBaseConfigStateStore,
8768
+ k as useBaseConfigStateStore,
8731
8769
  Ti as useReferencesStore,
8732
8770
  $i as useUserStateStore
8733
8771
  };