@snabcentr/common-lib 2.8.3 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var _r = Object.defineProperty;
2
2
  var xr = (i, r, e) => r in i ? _r(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
3
  var t = (i, r, e) => xr(i, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as nr } from "jwt-decode";
5
- import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as or, isArray as H, every as Or, split as qr, isString as C, constant as Nr, toUpper as Ur, cloneDeep as Fr, toLower as Hr, isFunction as Fe, map as fe, forEach as Mr, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
6
- import { objectToCamel as He, objectToSnake as Ee } from "ts-case-convert";
4
+ import { jwtDecode as or } from "jwt-decode";
5
+ import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as cr, isArray as H, every as Or, split as qr, isString as C, constant as Nr, toUpper as Ur, cloneDeep as Fr, toLower as Hr, isFunction as Fe, map as fe, forEach as Mr, isDate as xe, isObject as He, omitBy as lr } from "lodash-es";
6
+ import { objectToCamel as Me, objectToSnake as Ve } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
8
  import { ref as y, markRaw as jr, computed as P } from "vue";
9
- import { isAfter as Ve, parseISO as R, startOfToday as Oe, format as I, addSeconds as Gr, addBusinessDays as Br, endOfTomorrow as zr, startOfTomorrow as Wr, endOfYesterday as Jr, startOfYesterday as Er, endOfToday as Vr, endOfDay as Kr, startOfDay as Qr } from "date-fns";
9
+ import { isAfter as Ke, parseISO as R, startOfToday as Oe, format as I, addSeconds as Gr, addBusinessDays as Br, endOfTomorrow as zr, startOfTomorrow as Wr, endOfYesterday as Jr, startOfYesterday as Er, endOfToday as Vr, endOfDay as Kr, startOfDay as Qr } from "date-fns";
10
10
  import Yr, { CanceledError as Xr } from "axios";
11
11
  class M {
12
12
  /**
@@ -107,7 +107,7 @@ class M {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = nr(r), s = new M(He(e));
110
+ const e = or(r), s = new M(Me(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
@@ -151,7 +151,7 @@ class zt extends M {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new M(He(nr(e)));
154
+ return new M(Me(or(e)));
155
155
  }
156
156
  }
157
157
  class Zr {
@@ -378,7 +378,7 @@ class ae {
378
378
  if (e)
379
379
  try {
380
380
  const s = JSON.parse(e);
381
- if (!s.availableFor || Ve(R(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
381
+ if (!s.availableFor || Ke(R(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
382
382
  if (A(s.data) || X(s.data))
383
383
  throw new Error("Data is empty");
384
384
  return s.data;
@@ -452,7 +452,7 @@ class ae {
452
452
  const n = localStorage.getItem(s);
453
453
  if (n) {
454
454
  const o = JSON.parse(n);
455
- o.availableFor && !Ve(R(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !Ke(R(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -468,7 +468,7 @@ class ae {
468
468
  }
469
469
  }
470
470
  }
471
- function Ke(i) {
471
+ function Qe(i) {
472
472
  try {
473
473
  const r = M.getJwtPayload(i);
474
474
  return new Date(r.exp * 1e3);
@@ -493,7 +493,7 @@ const V = W("common.auth_state_private", () => {
493
493
  function n() {
494
494
  e.value = void 0, A(i.value) || i.value.then((o) => {
495
495
  const c = M.getJwtPayload(o);
496
- e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
496
+ e.value = c.exp * 1e3 > Date.now() ? cr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(v);
498
498
  }
499
499
  return {
@@ -518,13 +518,13 @@ const V = W("common.auth_state_private", () => {
518
518
  */
519
519
  recalculateUserPermissions: n
520
520
  };
521
- }), Se = W("common.auth_state", () => {
521
+ }), de = W("common.auth_state", () => {
522
522
  const i = P(() => {
523
523
  const o = V();
524
524
  if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), ae.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
527
+ o.jwtToken = Promise.resolve(u), ae.saveActualDataToStorage("sc.token", u, Qe(u)), o.recalculateUserPermissions();
528
528
  }).catch(v);
529
529
  }
530
530
  return o.jwtToken;
@@ -534,7 +534,7 @@ const V = W("common.auth_state_private", () => {
534
534
  }
535
535
  function e(o) {
536
536
  const c = V();
537
- c.jwtToken = Promise.resolve(o), ae.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
537
+ c.jwtToken = Promise.resolve(o), ae.saveActualDataToStorage("sc.token", o, Qe(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
540
  const o = V();
@@ -544,12 +544,12 @@ const V = W("common.auth_state_private", () => {
544
544
  const c = V();
545
545
  !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((m) => {
546
546
  const f = M.getJwtPayload(m);
547
- c.userPermissions = f.exp * 1e3 > Date.now() ? or(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
547
+ c.userPermissions = f.exp * 1e3 > Date.now() ? cr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
548
  }).catch(v);
549
549
  const u = H(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
- const h = P(() => {
552
+ const p = P(() => {
553
553
  const m = (f) => {
554
554
  var E;
555
555
  const D = qr(f, ".");
@@ -560,7 +560,7 @@ const V = W("common.auth_state_private", () => {
560
560
  };
561
561
  return H(o) ? Or(o, (f) => m(f)) : m(o);
562
562
  });
563
- return c.userPermissionsComputedRefs.set(u, h), h;
563
+ return c.userPermissionsComputedRefs.set(u, p), p;
564
564
  }
565
565
  return {
566
566
  /**
@@ -616,7 +616,7 @@ class re {
616
616
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
617
617
  }
618
618
  }
619
- class S extends re {
619
+ class d extends re {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,7 +631,7 @@ class S extends re {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class he extends S {
634
+ class he extends d {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
637
637
  *
@@ -646,7 +646,7 @@ class he extends S {
646
646
  this.code = (e == null ? void 0 : e.code) ?? "";
647
647
  }
648
648
  }
649
- class w extends S {
649
+ class w extends d {
650
650
  /**
651
651
  * Инициализирует экземпляр класса {@link Reference}.
652
652
  *
@@ -665,7 +665,7 @@ class w extends S {
665
665
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
666
666
  }
667
667
  }
668
- class ur extends S {
668
+ class ur extends d {
669
669
  /**
670
670
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
671
671
  *
@@ -767,7 +767,7 @@ class qe extends hr {
767
767
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
768
768
  }
769
769
  }
770
- class Me {
770
+ class je {
771
771
  /**
772
772
  * Инициализирует экземпляр указанного класса.
773
773
  *
@@ -786,7 +786,7 @@ class Me {
786
786
  return new r(e);
787
787
  }
788
788
  }
789
- class _ extends S {
789
+ class _ extends d {
790
790
  /**
791
791
  * Инициализирует экземпляр класса {@link UserShortInfo}.
792
792
  *
@@ -801,7 +801,7 @@ class _ extends S {
801
801
  this.type = e == null ? void 0 : e.type;
802
802
  }
803
803
  }
804
- class ot extends S {
804
+ class ot extends d {
805
805
  /**
806
806
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
807
807
  *
@@ -868,7 +868,7 @@ class Pe extends w {
868
868
  return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec: Nr(!0) };
869
869
  }
870
870
  }
871
- class je {
871
+ class Ge {
872
872
  /**
873
873
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
874
874
  *
@@ -968,7 +968,7 @@ class ct {
968
968
  this.warehouse = new ye(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
969
969
  }
970
970
  }
971
- class O extends S {
971
+ class O extends d {
972
972
  /**
973
973
  * Инициализирует экземпляр класса {@link Currency}.
974
974
  *
@@ -995,7 +995,7 @@ class O extends S {
995
995
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
996
996
  }
997
997
  }
998
- class Qe extends S {
998
+ class Ye extends d {
999
999
  /**
1000
1000
  * Инициализирует экземпляр класса {@link ProductUnit}.
1001
1001
  *
@@ -1099,9 +1099,9 @@ class L extends nt {
1099
1099
  * Список коэффициентов цен на продукт.
1100
1100
  */
1101
1101
  t(this, "priceCoefficients");
1102
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new O(e.currency) : new O(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ct(h))) ?? [], this.type = "product";
1103
- const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1104
- s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new it(h, 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((h) => new je(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1102
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ye(e.unit) : new Ye(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new O(e.currency) : new O(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((p) => new ct(p))) ?? [], this.type = "product";
1103
+ const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1104
+ s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new qe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new it(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 Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1105
1105
  }
1106
1106
  /**
1107
1107
  * Возвращает признак, что это измеряемый товар.
@@ -1122,7 +1122,7 @@ class L extends nt {
1122
1122
  return this.retailCostRub ?? this.costRub;
1123
1123
  }
1124
1124
  }
1125
- var Ge = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Ge || {});
1125
+ var Be = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Be || {});
1126
1126
  class j extends L {
1127
1127
  /**
1128
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
@@ -1159,7 +1159,7 @@ class j extends L {
1159
1159
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1160
1160
  */
1161
1161
  t(this, "isFavorite");
1162
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new ot(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1162
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Be.Product, this.discount = e != null && e.discount ? new ot(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1163
1163
  }
1164
1164
  }
1165
1165
  class we extends qe {
@@ -1376,7 +1376,7 @@ const a = class a {
1376
1376
  // eslint-disable-next-line class-methods-use-this
1377
1377
  t(this, "authRequestInterceptor", async (r) => {
1378
1378
  let e;
1379
- return A(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1379
+ return A(de().jwtToken) || (e = await de().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1380
1380
  });
1381
1381
  /**
1382
1382
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -1391,7 +1391,7 @@ const a = class a {
1391
1391
  * @param request Данные запроса.
1392
1392
  */
1393
1393
  // eslint-disable-next-line class-methods-use-this
1394
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Hr(r.method)) && r.data && (r.data = Ee(r.data))), r));
1394
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ve(r.params)), ["put", "patch", "post"].includes(Hr(r.method)) && r.data && (r.data = Ve(r.data))), r));
1395
1395
  /**
1396
1396
  * Перехватчик ошибок ответов на запрос.
1397
1397
  *
@@ -1400,7 +1400,7 @@ const a = class a {
1400
1400
  t(this, "authErrorsResponseInterceptors", (r) => {
1401
1401
  var s;
1402
1402
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1403
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Se().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1403
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (de().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1404
1404
  });
1405
1405
  /**
1406
1406
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -1427,7 +1427,7 @@ const a = class a {
1427
1427
  * @param response Данные ответа на запрос.
1428
1428
  */
1429
1429
  // eslint-disable-next-line class-methods-use-this
1430
- t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = He(r.data)), r));
1430
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Me(r.data)), r));
1431
1431
  this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Yr.create({
1432
1432
  headers: {
1433
1433
  Accept: "application/json",
@@ -1492,7 +1492,7 @@ const a = class a {
1492
1492
  * @param type Тип данных, которыми оперирует метод.
1493
1493
  */
1494
1494
  static getInstance(r) {
1495
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Me.simpleInstanceInitializer(r)), a.instances[r.name];
1495
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = je.simpleInstanceInitializer(r)), a.instances[r.name];
1496
1496
  }
1497
1497
  /**
1498
1498
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1605,8 +1605,8 @@ t(a, "requestHooks", []), /**
1605
1605
  * Список зарегистрированных хуков для ответов.
1606
1606
  */
1607
1607
  t(a, "responseHooks", []);
1608
- let p = a;
1609
- class Jt extends p {
1608
+ let h = a;
1609
+ class Jt extends h {
1610
1610
  /**
1611
1611
  * Возвращает содержимое корзины указанного клиента.
1612
1612
  *
@@ -1761,7 +1761,7 @@ class yr {
1761
1761
  }
1762
1762
  class q extends w {
1763
1763
  }
1764
- class Be extends S {
1764
+ class ze extends d {
1765
1765
  /**
1766
1766
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1767
1767
  *
@@ -1792,9 +1792,9 @@ class Be extends S {
1792
1792
  this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new yr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1793
1793
  }
1794
1794
  }
1795
- class ze extends w {
1795
+ class We extends w {
1796
1796
  }
1797
- class wr extends S {
1797
+ class wr extends d {
1798
1798
  /**
1799
1799
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1800
1800
  *
@@ -1817,7 +1817,7 @@ class wr extends S {
1817
1817
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1818
1818
  }
1819
1819
  }
1820
- class ve extends Be {
1820
+ class ve extends ze {
1821
1821
  /**
1822
1822
  * Инициализирует экземпляр класса {@link Manager}.
1823
1823
  *
@@ -1854,7 +1854,7 @@ class ve extends Be {
1854
1854
  * Список направлений кураторства.
1855
1855
  */
1856
1856
  t(this, "curatedDirections");
1857
- 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 wr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((n) => new ze(n))) ?? [];
1857
+ 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 wr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((n) => new We(n))) ?? [];
1858
1858
  }
1859
1859
  }
1860
1860
  class ht extends we {
@@ -1926,7 +1926,7 @@ class vr {
1926
1926
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1927
1927
  }
1928
1928
  }
1929
- class de extends vr {
1929
+ class Se extends vr {
1930
1930
  /**
1931
1931
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1932
1932
  *
@@ -1941,7 +1941,7 @@ class de extends vr {
1941
1941
  this.productCategory = new we(e == null ? void 0 : e.productCategory);
1942
1942
  }
1943
1943
  }
1944
- class We extends S {
1944
+ class Je extends d {
1945
1945
  /**
1946
1946
  * Инициализирует экземпляр класса {@link Curator}.
1947
1947
  *
@@ -1961,7 +1961,7 @@ class We extends S {
1961
1961
  * @inheritDoc
1962
1962
  */
1963
1963
  t(this, "curatedDirection");
1964
- this.photo = e.photo, this.contacts = new yr(e.contacts), this.curatedDirection = new ze(e.curatedDirection);
1964
+ this.photo = e.photo, this.contacts = new yr(e.contacts), this.curatedDirection = new We(e.curatedDirection);
1965
1965
  }
1966
1966
  }
1967
1967
  class Z extends w {
@@ -1996,7 +1996,7 @@ class De extends w {
1996
1996
  e && (this.region = new ge(e.region));
1997
1997
  }
1998
1998
  }
1999
- class ar extends S {
1999
+ class ar extends d {
2000
2000
  /**
2001
2001
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2002
2002
  *
@@ -2081,7 +2081,7 @@ class te extends ar {
2081
2081
  * @inheritDoc
2082
2082
  */
2083
2083
  t(this, "curators");
2084
- this.salesDirection = new q(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 De(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 = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Be(o))) ?? [], this.curators = ((n = e == null ? void 0 : e.curators) == null ? void 0 : n.map((o) => new We(o))) ?? void 0;
2084
+ this.salesDirection = new q(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 De(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 = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new ze(o))) ?? [], this.curators = ((n = e == null ? void 0 : e.curators) == null ? void 0 : n.map((o) => new Je(o))) ?? void 0;
2085
2085
  }
2086
2086
  }
2087
2087
  class oe extends re {
@@ -2128,7 +2128,7 @@ class ke extends vr {
2128
2128
  }
2129
2129
  class Cr extends w {
2130
2130
  }
2131
- class ce extends S {
2131
+ class ce extends d {
2132
2132
  /**
2133
2133
  * Инициализирует экземпляр класса {@link Property}.
2134
2134
  *
@@ -2252,7 +2252,7 @@ class Et {
2252
2252
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2253
2253
  }
2254
2254
  }
2255
- class le extends S {
2255
+ class le extends d {
2256
2256
  /**
2257
2257
  * Инициализирует экземпляр класса {@link PricingRole}.
2258
2258
  *
@@ -2287,7 +2287,7 @@ class le extends S {
2287
2287
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2288
2288
  }
2289
2289
  }
2290
- class Ye {
2290
+ class Xe {
2291
2291
  /**
2292
2292
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2293
2293
  *
@@ -2309,7 +2309,7 @@ class Ye {
2309
2309
  this.role = new le(r == null ? void 0 : r.role), this.category = new we(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2310
2310
  }
2311
2311
  }
2312
- class Vt extends p {
2312
+ class Vt extends h {
2313
2313
  /**
2314
2314
  * Возвращает данные о результатах поиска категорий и товаров.
2315
2315
  *
@@ -2340,7 +2340,7 @@ class Vt extends p {
2340
2340
  return s && (c += `&category_id=${s}`), n && (c += `&client_id=${n}`), c;
2341
2341
  }
2342
2342
  }
2343
- class Kt extends p {
2343
+ class Kt extends h {
2344
2344
  /**
2345
2345
  * Импортирует цены клиента из CSV файла.
2346
2346
  *
@@ -2539,7 +2539,7 @@ class Kt extends p {
2539
2539
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2540
2540
  }
2541
2541
  }
2542
- class Qt extends p {
2542
+ class Qt extends h {
2543
2543
  /**
2544
2544
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2545
2545
  *
@@ -2631,7 +2631,7 @@ class Qt extends p {
2631
2631
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2632
2632
  }
2633
2633
  }
2634
- class Yt extends p {
2634
+ class Yt extends h {
2635
2635
  /**
2636
2636
  * Возвращает список данных о корневых категориях.
2637
2637
  *
@@ -2704,7 +2704,7 @@ class Yt extends p {
2704
2704
  getCategoryProductsCoefficients(r) {
2705
2705
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2706
2706
  const { data: s } = e;
2707
- return Mr(s, (n) => n.map((o) => new je(o))), s;
2707
+ return Mr(s, (n) => n.map((o) => new Ge(o))), s;
2708
2708
  });
2709
2709
  }
2710
2710
  /**
@@ -2723,7 +2723,7 @@ class Yt extends p {
2723
2723
  });
2724
2724
  }
2725
2725
  }
2726
- class Xt extends p {
2726
+ class Xt extends h {
2727
2727
  /**
2728
2728
  * Возвращает данные об указанном продукте.
2729
2729
  *
@@ -2754,7 +2754,7 @@ class Xt extends p {
2754
2754
  return this.get(
2755
2755
  `/internal/catalog/products/${r}/coefficients`,
2756
2756
  {},
2757
- (e) => fe(e.data, (s) => new je(s))
2757
+ (e) => fe(e.data, (s) => new Ge(s))
2758
2758
  );
2759
2759
  }
2760
2760
  /**
@@ -2773,7 +2773,7 @@ class Xt extends p {
2773
2773
  });
2774
2774
  }
2775
2775
  }
2776
- class Zt extends p {
2776
+ class Zt extends h {
2777
2777
  /**
2778
2778
  * Возвращает список данных о корневых категориях указанного клиента.
2779
2779
  *
@@ -2835,7 +2835,7 @@ class Zt extends p {
2835
2835
  );
2836
2836
  }
2837
2837
  }
2838
- class es extends p {
2838
+ class es extends h {
2839
2839
  /**
2840
2840
  * Возвращает данные об указанном продукте для указанного клиента.
2841
2841
  *
@@ -2856,8 +2856,8 @@ class es extends p {
2856
2856
  );
2857
2857
  }
2858
2858
  }
2859
- var Je = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Je || {});
2860
- class Xe {
2859
+ var Ee = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Ee || {});
2860
+ class Ze {
2861
2861
  /**
2862
2862
  * Инициализирует экземпляр класса {@link FilterItem}.
2863
2863
  *
@@ -2876,7 +2876,7 @@ class Xe {
2876
2876
  * Значение с которым сравнивается поле.
2877
2877
  */
2878
2878
  t(this, "value");
2879
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Je.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2879
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ee.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2880
2880
  }
2881
2881
  /**
2882
2882
  * Преобразует фильтр в примитивное представление для API.
@@ -2884,11 +2884,14 @@ class Xe {
2884
2884
  * @returns Примитивное представление фильтра.
2885
2885
  */
2886
2886
  toPrimitive() {
2887
- const r = {
2887
+ const r = k().config.dateFormats.api, e = {
2888
2888
  field: this.field,
2889
2889
  op: this.op
2890
2890
  };
2891
- return r.value = xe(this.value) ? I(this.value, k().config.dateFormats.api) : this.value, r;
2891
+ return xe(this.value) ? e.value = I(this.value, r) : He(this.value) ? e.value = {
2892
+ from: this.value.from ? I(this.value.from, r) : null,
2893
+ to: this.value.to ? I(this.value.to, r) : null
2894
+ } : e.value = this.value, e;
2892
2895
  }
2893
2896
  }
2894
2897
  class G {
@@ -2911,7 +2914,7 @@ class G {
2911
2914
  */
2912
2915
  t(this, "groups");
2913
2916
  var e, s;
2914
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new Xe(n))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((n) => new G(n))) ?? [];
2917
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new Ze(n))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((n) => new G(n))) ?? [];
2915
2918
  }
2916
2919
  /**
2917
2920
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2921,12 +2924,12 @@ class G {
2921
2924
  toPrimitive() {
2922
2925
  return {
2923
2926
  groupOp: this.groupOp,
2924
- filters: this.filters.map((r) => r instanceof Xe && Fe(r.toPrimitive) ? r.toPrimitive() : r),
2927
+ filters: this.filters.map((r) => r instanceof Ze && Fe(r.toPrimitive) ? r.toPrimitive() : r),
2925
2928
  groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
2926
2929
  };
2927
2930
  }
2928
2931
  }
2929
- class Ae extends p {
2932
+ class Ae extends h {
2930
2933
  /**
2931
2934
  * Получает пагинированный список данных.
2932
2935
  *
@@ -2939,12 +2942,12 @@ class Ae extends p {
2939
2942
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2940
2943
  * @param signal Сигнал отмены запроса.
2941
2944
  */
2942
- getPaginated(r, e, s, n, o, c, u, h = void 0) {
2945
+ getPaginated(r, e, s, n, o, c, u, p = void 0) {
2943
2946
  let m = {
2944
2947
  page: (n == null ? void 0 : n.page) ?? 1,
2945
2948
  perPage: (n == null ? void 0 : n.pageSize) ?? 10
2946
2949
  };
2947
- return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2950
+ return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
2948
2951
  }
2949
2952
  }
2950
2953
  class rs extends Ae {
@@ -3075,7 +3078,7 @@ class rs extends Ae {
3075
3078
  return this.get(
3076
3079
  `/internal/price/templates/${r}/categories`,
3077
3080
  {},
3078
- (e) => e.data.map((s) => new de(s))
3081
+ (e) => e.data.map((s) => new Se(s))
3079
3082
  );
3080
3083
  }
3081
3084
  /**
@@ -3090,7 +3093,7 @@ class rs extends Ae {
3090
3093
  return this.get(
3091
3094
  `/internal/price/templates/${r}/categories/${e}`,
3092
3095
  {},
3093
- (s) => new de(s.data)
3096
+ (s) => new Se(s.data)
3094
3097
  );
3095
3098
  }
3096
3099
  /**
@@ -3116,7 +3119,7 @@ class rs extends Ae {
3116
3119
  },
3117
3120
  params: n ? { recursively: !0 } : {}
3118
3121
  },
3119
- (c) => new de(c.data)
3122
+ (c) => new Se(c.data)
3120
3123
  );
3121
3124
  }
3122
3125
  /**
@@ -3151,7 +3154,7 @@ class rs extends Ae {
3151
3154
  );
3152
3155
  }
3153
3156
  }
3154
- class ts extends p {
3157
+ class ts extends h {
3155
3158
  /**
3156
3159
  * Возвращает список ролей ценообразования.
3157
3160
  *
@@ -3212,7 +3215,7 @@ class ts extends p {
3212
3215
  return this.get(
3213
3216
  `/internal/price/roles/rules/categories/${r}`,
3214
3217
  {},
3215
- (e) => e.data.map((s) => new Ye(s))
3218
+ (e) => e.data.map((s) => new Xe(s))
3216
3219
  );
3217
3220
  }
3218
3221
  /**
@@ -3227,7 +3230,7 @@ class ts extends p {
3227
3230
  return this.patch(
3228
3231
  `/internal/price/roles/rules/categories/${r}`,
3229
3232
  e,
3230
- (s) => s.data.map((n) => new Ye(n))
3233
+ (s) => s.data.map((n) => new Xe(n))
3231
3234
  );
3232
3235
  }
3233
3236
  }
@@ -3603,7 +3606,7 @@ class ss extends Ae {
3603
3606
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3604
3607
  }
3605
3608
  }
3606
- class is extends p {
3609
+ class is extends h {
3607
3610
  /**
3608
3611
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3609
3612
  *
@@ -3665,7 +3668,7 @@ class is extends p {
3665
3668
  );
3666
3669
  }
3667
3670
  }
3668
- function Ze(i, r, e) {
3671
+ function er(i, r, e) {
3669
3672
  let s;
3670
3673
  return i.some((n) => {
3671
3674
  if (n.type === e && n.id === r)
@@ -3674,24 +3677,24 @@ function Ze(i, r, e) {
3674
3677
  return !1;
3675
3678
  const o = n;
3676
3679
  if (o.products && o.products.length > 0) {
3677
- const c = Ze(o.products, r, e);
3680
+ const c = er(o.products, r, e);
3678
3681
  if (c)
3679
3682
  return s = c, !0;
3680
3683
  }
3681
3684
  if (o.categories && o.categories.length > 0) {
3682
- const c = Ze(o.categories, r, e);
3685
+ const c = er(o.categories, r, e);
3683
3686
  if (c)
3684
3687
  return s = c, !0;
3685
3688
  }
3686
3689
  return !1;
3687
3690
  }), s;
3688
3691
  }
3689
- function er(i) {
3692
+ function rr(i) {
3690
3693
  const r = [];
3691
3694
  return i.forEach((e) => {
3692
3695
  if (r.push(e), e.type === "category") {
3693
3696
  const s = e;
3694
- s.products && s.products.length > 0 && r.push(...er(s.products)), s.categories && s.categories.length > 0 && r.push(...er(s.categories));
3697
+ s.products && s.products.length > 0 && r.push(...rr(s.products)), s.categories && s.categories.length > 0 && r.push(...rr(s.categories));
3695
3698
  }
3696
3699
  }), r;
3697
3700
  }
@@ -3783,7 +3786,7 @@ class Ne extends re {
3783
3786
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new O(e.currency));
3784
3787
  }
3785
3788
  }
3786
- class Ue extends S {
3789
+ class Ue extends d {
3787
3790
  /**
3788
3791
  * Инициализирует экземпляр класса {@link Contact}.
3789
3792
  *
@@ -3951,7 +3954,7 @@ class br extends Tr {
3951
3954
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3952
3955
  }
3953
3956
  }
3954
- class Sr extends br {
3957
+ class dr extends br {
3955
3958
  /**
3956
3959
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3957
3960
  *
@@ -3966,7 +3969,7 @@ class Sr extends br {
3966
3969
  e && (this.kpp = e.kpp ?? "");
3967
3970
  }
3968
3971
  }
3969
- class at extends Sr {
3972
+ class at extends dr {
3970
3973
  /**
3971
3974
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3972
3975
  *
@@ -4000,7 +4003,7 @@ class Re {
4000
4003
  case U.Ic:
4001
4004
  return new br(r);
4002
4005
  case U.UlR:
4003
- return new Sr(r);
4006
+ return new dr(r);
4004
4007
  case U.UlNr:
4005
4008
  return new at(r);
4006
4009
  default:
@@ -4091,7 +4094,7 @@ class ue extends pr {
4091
4094
  this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new mr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((n) => new z(n))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4092
4095
  }
4093
4096
  }
4094
- class rr extends te {
4097
+ class tr extends te {
4095
4098
  /**
4096
4099
  * Инициализирует экземпляр класса {@link Client}.
4097
4100
  *
@@ -4144,7 +4147,7 @@ class rr extends te {
4144
4147
  this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Re.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(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 ue(u))) ?? [], this.channelPrimaryInterest = new Rr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new $r(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4145
4148
  }
4146
4149
  }
4147
- class dr {
4150
+ class Sr {
4148
4151
  /**
4149
4152
  * Возвращает очищенное значение фильтров, содержащие
4150
4153
  * только актуальные данные.
@@ -4158,14 +4161,14 @@ class dr {
4158
4161
  }), r;
4159
4162
  }
4160
4163
  }
4161
- class cs extends dr {
4164
+ class cs extends Sr {
4162
4165
  /**
4163
4166
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4164
4167
  *
4165
4168
  * @param data Данные для первоначальной инициализации.
4166
4169
  */
4167
4170
  constructor(e) {
4168
- var s, n, o, c, u, h, m, f;
4171
+ var s, n, o, c, u, p, m, f;
4169
4172
  super();
4170
4173
  /**
4171
4174
  * @inheritDoc
@@ -4263,11 +4266,15 @@ class cs extends dr {
4263
4266
  * @inheritDoc
4264
4267
  */
4265
4268
  t(this, "lastOrder");
4266
- 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 = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new De(D)), this.region = new ge(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new ve(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4267
- createdAt: new b((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4269
+ /**
4270
+ * @inheritDoc
4271
+ */
4272
+ t(this, "noOrdersPeriod", new b());
4273
+ 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 = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new De(D)), this.region = new ge(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new ve(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Je(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4274
+ createdAt: new b((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4268
4275
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4269
4276
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4270
- };
4277
+ }, this.noOrdersPeriod = new b(e == null ? void 0 : e.noOrdersPeriod);
4271
4278
  }
4272
4279
  /**
4273
4280
  * @inheritDoc
@@ -4289,6 +4296,9 @@ class cs extends dr {
4289
4296
  case "lastLoginDate":
4290
4297
  this.lastLoginDate.from = null, this.lastLoginDate.to = null;
4291
4298
  break;
4299
+ case "noOrdersPeriod":
4300
+ this.noOrdersPeriod.from = null, this.noOrdersPeriod.to = null;
4301
+ break;
4292
4302
  case "lastOrder":
4293
4303
  this.lastOrder = {};
4294
4304
  break;
@@ -4323,9 +4333,9 @@ class cs extends dr {
4323
4333
  * @inheritDoc
4324
4334
  */
4325
4335
  asClearRaw() {
4326
- var s, n, o, c;
4336
+ var s, n, o, c, u, p;
4327
4337
  const e = super.asClearRaw();
4328
- return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, e;
4338
+ return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4329
4339
  }
4330
4340
  }
4331
4341
  class kr extends re {
@@ -4347,7 +4357,7 @@ class kr extends re {
4347
4357
  this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
4348
4358
  }
4349
4359
  }
4350
- class Rt extends S {
4360
+ class Rt extends d {
4351
4361
  /**
4352
4362
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4353
4363
  *
@@ -4384,7 +4394,7 @@ class Rt extends S {
4384
4394
  * @inheritDoc
4385
4395
  */
4386
4396
  t(this, "curators");
4387
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new F(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Be(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new We(u))) ?? void 0;
4397
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new F(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ze(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Je(u))) ?? void 0;
4388
4398
  }
4389
4399
  }
4390
4400
  class Pt {
@@ -4482,7 +4492,7 @@ class x extends Ae {
4482
4492
  * @param contragent Данные о контрагенте клиента.
4483
4493
  */
4484
4494
  static transformContragentClientDataToRequest(r) {
4485
- var c, u, h, m;
4495
+ var c, u, p, m;
4486
4496
  let e;
4487
4497
  const s = r, n = r, o = r;
4488
4498
  switch (r.opf.slug) {
@@ -4526,7 +4536,7 @@ class x extends Ae {
4526
4536
  opf: o.opf.slug,
4527
4537
  name: o.name,
4528
4538
  alternative_name: o.alternativeName,
4529
- partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
4539
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4530
4540
  comment: o.comment,
4531
4541
  director_name: o.directorName,
4532
4542
  director_position: o.directorPosition,
@@ -4593,7 +4603,7 @@ class x extends Ae {
4593
4603
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4594
4604
  */
4595
4605
  getClient(r) {
4596
- return this.get(`/internal/clients/${r}`, {}, (e) => new rr(e.data));
4606
+ return this.get(`/internal/clients/${r}`, {}, (e) => new tr(e.data));
4597
4607
  }
4598
4608
  /**
4599
4609
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4615,7 +4625,7 @@ class x extends Ae {
4615
4625
  n,
4616
4626
  (c) => {
4617
4627
  const u = { ...c.data };
4618
- return u.data = u.data.map((h) => new te(h)), u;
4628
+ return u.data = u.data.map((p) => new te(p)), u;
4619
4629
  },
4620
4630
  void 0,
4621
4631
  o
@@ -4641,7 +4651,7 @@ class x extends Ae {
4641
4651
  return this.getClientsList({
4642
4652
  groupOp: "and",
4643
4653
  groups: [],
4644
- filters: [{ field: "phone", op: Je.Contains, value: r }]
4654
+ filters: [{ field: "phone", op: Ee.Contains, value: r }]
4645
4655
  });
4646
4656
  }
4647
4657
  /**
@@ -4678,7 +4688,7 @@ class x extends Ae {
4678
4688
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4679
4689
  */
4680
4690
  createClientCommonData(r, e = {}) {
4681
- return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new rr(s.data), e);
4691
+ return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new tr(s.data), e);
4682
4692
  }
4683
4693
  /**
4684
4694
  * Обновляет данные указанного клиента.
@@ -5126,7 +5136,7 @@ class x extends Ae {
5126
5136
  comment: e.comment,
5127
5137
  ...s
5128
5138
  };
5129
- 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, (h) => new z(h.data), n);
5139
+ 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), n);
5130
5140
  }
5131
5141
  /**
5132
5142
  * Устанавливает признак основного контактного лица.
@@ -5155,7 +5165,7 @@ class x extends Ae {
5155
5165
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5156
5166
  }
5157
5167
  }
5158
- const Y = class Y extends p {
5168
+ const Y = class Y extends h {
5159
5169
  /**
5160
5170
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5161
5171
  */
@@ -5203,8 +5213,8 @@ const Y = class Y extends p {
5203
5213
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5204
5214
  getTypedDataArrayRequester(e, s, n = !1, o = {}) {
5205
5215
  const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = n ? Y.getCachedResponse(c) : void 0;
5206
- return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5207
- const m = h.map((f) => Me.instanceInitializer(e, f));
5216
+ return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
5217
+ const m = p.map((f) => je.instanceInitializer(e, f));
5208
5218
  return n && m && this.cacheResponse(s, m), m;
5209
5219
  });
5210
5220
  }
@@ -5214,7 +5224,7 @@ const Y = class Y extends p {
5214
5224
  */
5215
5225
  t(Y, "responseDataCache", /* @__PURE__ */ new Map());
5216
5226
  let me = Y;
5217
- class ps extends p {
5227
+ class ps extends h {
5218
5228
  /**
5219
5229
  * Выполняет проверку занят ли указанный номер телефона.
5220
5230
  *
@@ -5251,7 +5261,7 @@ class hs {
5251
5261
  }
5252
5262
  }
5253
5263
  var Dt = /* @__PURE__ */ ((i) => (i.Kozyrek = "kozyrek", i.Mosquitto = "mosquitto", i.Strip = "strip", i.MetalForDoors = "metal_for_doors", i.Sandwich = "sandwich", i.SandwichM2 = "sandwich_m2", i))(Dt || {});
5254
- class gs extends p {
5264
+ class gs extends h {
5255
5265
  /**
5256
5266
  * Возвращает настройки указанного конфигуратора для указанной категории.
5257
5267
  *
@@ -5413,7 +5423,7 @@ class At extends me {
5413
5423
  const r = "/internal/managers", e = me.getCachedResponse(r);
5414
5424
  if (e)
5415
5425
  return e;
5416
- const n = (await this.get(r)).data.map((o) => Me.instanceInitializer(ve, o));
5426
+ const n = (await this.get(r)).data.map((o) => je.instanceInitializer(ve, o));
5417
5427
  return this.cacheResponse(r, n), n;
5418
5428
  }
5419
5429
  }
@@ -5492,7 +5502,7 @@ class Lr extends kr {
5492
5502
  * @param data Данные для первоначальной инициализации.
5493
5503
  */
5494
5504
  constructor(e) {
5495
- var s, n, o, c, u, h, m, f;
5505
+ var s, n, o, c, u, p, m, f;
5496
5506
  super(e);
5497
5507
  /**
5498
5508
  * @inheritDoc
@@ -5548,7 +5558,7 @@ class Lr extends kr {
5548
5558
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5549
5559
  }, this.delivery = {
5550
5560
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5551
- date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5561
+ date: C((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(),
5552
5562
  address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new ue(e.delivery.address) : void 0,
5553
5563
  warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ye(e.delivery.warehouse) : void 0
5554
5564
  }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = C(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;
@@ -5583,7 +5593,7 @@ class T extends me {
5583
5593
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
5584
5594
  */
5585
5595
  getCuratedDirection() {
5586
- return this.getTypedDataArrayRequester(ze, "/internal/references/curated-direction", !0);
5596
+ return this.getTypedDataArrayRequester(We, "/internal/references/curated-direction", !0);
5587
5597
  }
5588
5598
  /**
5589
5599
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -5702,7 +5712,7 @@ class T extends me {
5702
5712
  }
5703
5713
  }
5704
5714
  const $ = W("common.references_private", () => {
5705
- const i = y({}), r = y(void 0), e = y(void 0), s = y(void 0), n = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), se = y(void 0), ie = y(void 0), J = y(void 0), E = y(void 0), Te = y(void 0), be = y(void 0), l = y(void 0);
5715
+ const i = y({}), r = y(void 0), e = y(void 0), s = y(void 0), n = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), se = y(void 0), ie = y(void 0), J = y(void 0), E = y(void 0), Te = y(void 0), be = y(void 0), l = y(void 0);
5706
5716
  return {
5707
5717
  /**
5708
5718
  * Список загружаемых/загруженных на данный момент значений.
@@ -5739,7 +5749,7 @@ const $ = W("common.references_private", () => {
5739
5749
  /**
5740
5750
  * Справочник статусов оплаты заказа.
5741
5751
  */
5742
- orderPaymentStatusReference: h,
5752
+ orderPaymentStatusReference: p,
5743
5753
  /**
5744
5754
  * Справочник статусов заказов.
5745
5755
  */
@@ -5784,92 +5794,92 @@ const $ = W("common.references_private", () => {
5784
5794
  }), vs = W("common.references", () => {
5785
5795
  const i = P(() => {
5786
5796
  const l = $();
5787
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((g) => {
5797
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
5788
5798
  l.channelPrimaryInterestReference = g;
5789
5799
  }).catch(v)), l.channelPrimaryInterestReference;
5790
5800
  }), r = P(() => {
5791
5801
  const l = $();
5792
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(T).getContactPositions().then((g) => {
5802
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
5793
5803
  l.contactPositionsReference = g;
5794
5804
  }).catch(v)), l.contactPositionsReference;
5795
5805
  }), e = P(() => {
5796
5806
  const l = $();
5797
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(T).getCurrency().then((g) => {
5807
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
5798
5808
  l.currencyReference = g;
5799
5809
  }).catch(v)), l.currencyReference;
5800
5810
  }), s = P(() => {
5801
5811
  const l = $();
5802
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(T).getOpf().then((g) => {
5812
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
5803
5813
  l.opfReference = g;
5804
5814
  }).catch(v)), l.opfReference;
5805
5815
  }), n = P(() => {
5806
5816
  const l = $();
5807
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, p.getInstance(T).getOperators().then((g) => {
5817
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
5808
5818
  l.operatorReference = g;
5809
5819
  }).catch(v)), l.operatorReference;
5810
5820
  }), o = P(() => {
5811
5821
  const l = $();
5812
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(T).getOrderPaymentStatuses().then((g) => {
5822
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
5813
5823
  l.orderPaymentStatusReference = g;
5814
5824
  }).catch(v)), l.orderPaymentStatusReference;
5815
5825
  }), c = P(() => {
5816
5826
  const l = $();
5817
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(T).getOrderStatuses().then((g) => {
5827
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
5818
5828
  l.orderStatusReference = g;
5819
5829
  }).catch(v)), l.orderStatusReference;
5820
5830
  }), u = P(() => {
5821
5831
  const l = $();
5822
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(T).getPaymentTypes().then((g) => {
5832
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
5823
5833
  l.paymentTypeReference = g;
5824
5834
  }).catch(v)), l.paymentTypeReference;
5825
- }), h = P(() => {
5835
+ }), p = P(() => {
5826
5836
  const l = $();
5827
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(T).getPartnerGroup().then((g) => {
5837
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
5828
5838
  l.partnerGroupReference = g;
5829
5839
  }).catch(v)), l.partnerGroupReference;
5830
5840
  }), m = P(() => {
5831
5841
  const l = $();
5832
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(T).getProductFileType().then((g) => {
5842
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
5833
5843
  l.productFileTypeReference = g;
5834
5844
  }).catch(v)), l.productFileTypeReference;
5835
5845
  }), f = P(() => {
5836
5846
  const l = $();
5837
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(T).getResourceTypes().then((g) => {
5847
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
5838
5848
  l.resourceTypesReference = g;
5839
5849
  }).catch(v)), l.resourceTypesReference;
5840
5850
  }), D = P(() => {
5841
5851
  const l = $();
5842
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((g) => {
5852
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
5843
5853
  l.salesDirectionsReference = g;
5844
5854
  }).catch(v)), l.salesDirectionsReference;
5845
5855
  }), se = P(() => {
5846
5856
  const l = $();
5847
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((g) => {
5857
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
5848
5858
  l.sourcePrimaryInterestReference = g;
5849
5859
  }).catch(v)), l.sourcePrimaryInterestReference;
5850
5860
  }), ie = P(() => {
5851
5861
  const l = $();
5852
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((g) => {
5862
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
5853
5863
  l.deliveryTypeReference = g;
5854
5864
  }).catch(v)), l.deliveryTypeReference;
5855
5865
  }), J = P(() => {
5856
5866
  const l = $();
5857
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(At).getManagers().then((g) => {
5867
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(At).getManagers().then((g) => {
5858
5868
  l.managersList = g;
5859
5869
  }).catch(v)), l.managersList;
5860
5870
  }), E = P(() => {
5861
5871
  const l = $();
5862
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(T).getWarehouses().then((g) => {
5872
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
5863
5873
  l.warehousesReference = g;
5864
5874
  }).catch(v)), l.warehousesReference;
5865
5875
  }), Te = P(() => {
5866
5876
  const l = $();
5867
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((g) => {
5877
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
5868
5878
  l.propertyTypesReference = g;
5869
5879
  }).catch(v)), l.propertyTypesReference;
5870
5880
  }), be = P(() => {
5871
5881
  const l = $();
5872
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((g) => {
5882
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
5873
5883
  l.priceCoefficientsReference = g;
5874
5884
  }).catch(v)), l.priceCoefficientsReference;
5875
5885
  });
@@ -5909,7 +5919,7 @@ const $ = W("common.references_private", () => {
5909
5919
  /**
5910
5920
  * Справочник групп партнеров.
5911
5921
  */
5912
- partnerGroupsReference: h,
5922
+ partnerGroupsReference: p,
5913
5923
  /**
5914
5924
  * Справочник типов файлов продуктов/категорий.
5915
5925
  */
@@ -5948,7 +5958,7 @@ const $ = W("common.references_private", () => {
5948
5958
  priceCoefficientsReference: be
5949
5959
  };
5950
5960
  });
5951
- class as extends dr {
5961
+ class as extends Sr {
5952
5962
  /**
5953
5963
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5954
5964
  *
@@ -6093,12 +6103,12 @@ class as extends dr {
6093
6103
  * @inheritDoc
6094
6104
  */
6095
6105
  asClearRaw() {
6096
- var s, n, o, c, u, h;
6106
+ var s, n, o, c, u, p;
6097
6107
  const e = super.asClearRaw();
6098
- return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((h = e == null ? void 0 : e.attachedAt) != null && h.to) && delete e.attachedAt, e;
6108
+ return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
6099
6109
  }
6100
6110
  }
6101
- class St extends fr {
6111
+ class dt extends fr {
6102
6112
  /**
6103
6113
  * Инициализирует экземпляр класса {@link OrderItem}.
6104
6114
  *
@@ -6158,7 +6168,7 @@ class St extends fr {
6158
6168
  this.product = new j(e.product), this.currency = new O(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 = e.sawing, s && (this.replacement = s, this.quantity !== s.quantity && this.changedFields.push("quantity"), this.length !== s.length && this.changedFields.push("length"));
6159
6169
  }
6160
6170
  }
6161
- class d extends Lr {
6171
+ class S extends Lr {
6162
6172
  /**
6163
6173
  * Инициализирует экземпляр класса {@link Order}.
6164
6174
  *
@@ -6222,11 +6232,11 @@ class d extends Lr {
6222
6232
  this.products = (e.products ?? []).map((n) => {
6223
6233
  var c;
6224
6234
  const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
6225
- return new St(n, o);
6235
+ return new dt(n, o);
6226
6236
  }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Re.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (s = e.nextStatuses) == null ? void 0 : s.map((n) => new $e(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6227
6237
  }
6228
6238
  }
6229
- class dt {
6239
+ class St {
6230
6240
  /**
6231
6241
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6232
6242
  *
@@ -6312,7 +6322,7 @@ class Cs extends Ae {
6312
6322
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
6313
6323
  */
6314
6324
  getOrder(r) {
6315
- return this.get(`/internal/orders/${r}`, {}, (e) => new d(e.data));
6325
+ return this.get(`/internal/orders/${r}`, {}, (e) => new S(e.data));
6316
6326
  }
6317
6327
  /**
6318
6328
  * Создаёт новый заказ клиента из содержимого корзины текущего пользователя.
@@ -6338,7 +6348,7 @@ class Cs extends Ae {
6338
6348
  deliveryDate: I(s.deliveryDate, c),
6339
6349
  items: n != null && n.length ? n : void 0
6340
6350
  },
6341
- (u) => u.data.map((h) => new d(h)),
6351
+ (u) => u.data.map((p) => new S(p)),
6342
6352
  o
6343
6353
  );
6344
6354
  }
@@ -6350,7 +6360,7 @@ class Cs extends Ae {
6350
6360
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
6351
6361
  */
6352
6362
  attachOrder(r) {
6353
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new d(e.data));
6363
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new S(e.data));
6354
6364
  }
6355
6365
  /**
6356
6366
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -6360,7 +6370,7 @@ class Cs extends Ae {
6360
6370
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
6361
6371
  */
6362
6372
  detachOrder(r) {
6363
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new d(e.data));
6373
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new S(e.data));
6364
6374
  }
6365
6375
  /**
6366
6376
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -6371,7 +6381,7 @@ class Cs extends Ae {
6371
6381
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
6372
6382
  */
6373
6383
  mergeOrders(r, e) {
6374
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (s) => new d(s.data));
6384
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (s) => new S(s.data));
6375
6385
  }
6376
6386
  /**
6377
6387
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -6381,7 +6391,7 @@ class Cs extends Ae {
6381
6391
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
6382
6392
  */
6383
6393
  recalculateOrder(r) {
6384
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new d(e.data));
6394
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new S(e.data));
6385
6395
  }
6386
6396
  /**
6387
6397
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -6412,7 +6422,7 @@ class Cs extends Ae {
6412
6422
  ...e,
6413
6423
  deliveryDate: e.deliveryDate ? I(e.deliveryDate, n) : void 0
6414
6424
  },
6415
- (o) => new d(o.data),
6425
+ (o) => new S(o.data),
6416
6426
  s
6417
6427
  );
6418
6428
  }
@@ -6442,7 +6452,7 @@ class Cs extends Ae {
6442
6452
  is_additional_sale: e.isAdditionalSale,
6443
6453
  ...e.configuratorParams
6444
6454
  },
6445
- (n) => new d(n.data),
6455
+ (n) => new S(n.data),
6446
6456
  s
6447
6457
  );
6448
6458
  }
@@ -6465,7 +6475,7 @@ class Cs extends Ae {
6465
6475
  status: e,
6466
6476
  statusDetail: s
6467
6477
  },
6468
- (o) => new d(o.data),
6478
+ (o) => new S(o.data),
6469
6479
  n
6470
6480
  );
6471
6481
  }
@@ -6479,7 +6489,7 @@ class Cs extends Ae {
6479
6489
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
6480
6490
  */
6481
6491
  changeOrderStatusDetail(r, e) {
6482
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (s) => new d(s.data));
6492
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (s) => new S(s.data));
6483
6493
  }
6484
6494
  /**
6485
6495
  * Возвращает историю изменения статусов заказа.
@@ -6492,7 +6502,7 @@ class Cs extends Ae {
6492
6502
  return this.get(
6493
6503
  `/internal/orders/${r}/history`,
6494
6504
  {},
6495
- (e) => e.data.map((s) => new dt(s))
6505
+ (e) => e.data.map((s) => new St(s))
6496
6506
  );
6497
6507
  }
6498
6508
  /**
@@ -6504,7 +6514,7 @@ class Cs extends Ae {
6504
6514
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
6505
6515
  */
6506
6516
  changeAttachedOperator(r, e) {
6507
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (s) => new d(s.data));
6517
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (s) => new S(s.data));
6508
6518
  }
6509
6519
  /**
6510
6520
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -6514,7 +6524,7 @@ class Cs extends Ae {
6514
6524
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
6515
6525
  */
6516
6526
  deleteOrderAttachedFile(r) {
6517
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new d(e.data));
6527
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new S(e.data));
6518
6528
  }
6519
6529
  /**
6520
6530
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -6525,7 +6535,7 @@ class Cs extends Ae {
6525
6535
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
6526
6536
  */
6527
6537
  deleteOrderProduct(r, e) {
6528
- return this.delete(`/internal/orders/${r}/products/${e}`, (s) => new d(s.data));
6538
+ return this.delete(`/internal/orders/${r}/products/${e}`, (s) => new S(s.data));
6529
6539
  }
6530
6540
  /**
6531
6541
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -6553,7 +6563,7 @@ class Cs extends Ae {
6553
6563
  marker: s.marker,
6554
6564
  ...s.configuratorParams
6555
6565
  },
6556
- (o) => new d(o.data),
6566
+ (o) => new S(o.data),
6557
6567
  n
6558
6568
  );
6559
6569
  }
@@ -6628,12 +6638,12 @@ class Le {
6628
6638
  * Источник клиентской цены.
6629
6639
  */
6630
6640
  t(this, "source");
6631
- this.client = new te(r == null ? void 0 : r.client), this.product = new L(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) ?? Ge.Product;
6641
+ this.client = new te(r == null ? void 0 : r.client), this.product = new L(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) ?? Be.Product;
6632
6642
  }
6633
6643
  }
6634
6644
  const _e = (i) => {
6635
6645
  var r, e, s, n, o;
6636
- return i ? cr(
6646
+ return i ? lr(
6637
6647
  {
6638
6648
  cities: (r = i.cities) == null ? void 0 : r.map((c) => c.id),
6639
6649
  clients: (e = i.clients) == null ? void 0 : e.map((c) => c.id),
@@ -6642,13 +6652,13 @@ const _e = (i) => {
6642
6652
  salesDirections: (o = i.salesDirections) == null ? void 0 : o.map((c) => c.id),
6643
6653
  hideNotActive: i.hideNotActive
6644
6654
  },
6645
- (c) => A(c) || (H(c) || lr(c)) && X(c)
6655
+ (c) => A(c) || (H(c) || He(c)) && X(c)
6646
6656
  ) : {};
6647
- }, tr = (i) => {
6657
+ }, sr = (i) => {
6648
6658
  const r = {};
6649
6659
  return i.from && (i.from.coefficient || i.from.value) && (r.from = {}, i.from.coefficient && (r.from.priceCoefficientId = i.from.coefficient.id), i.from.value && (r.from.increasePercent = i.from.value)), i.to && (i.to.coefficient || i.to.value) && (r.to = {}, i.to.coefficient && (r.to.priceCoefficientId = i.to.coefficient.id), i.to.value && (r.to.increasePercent = i.to.value)), r;
6650
6660
  };
6651
- class Rs extends p {
6661
+ class Rs extends h {
6652
6662
  /**
6653
6663
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6654
6664
  *
@@ -6662,7 +6672,7 @@ class Rs extends p {
6662
6672
  return this.get(
6663
6673
  `/internal/price/products/${r}/analyze`,
6664
6674
  {
6665
- ...tr(e),
6675
+ ...sr(e),
6666
6676
  filters: _e(s)
6667
6677
  },
6668
6678
  (n) => n.data.map((o) => new Le(o))
@@ -6681,7 +6691,7 @@ class Rs extends p {
6681
6691
  return this.get(
6682
6692
  `/internal/price/categories/${r}/analyze`,
6683
6693
  {
6684
- ...tr(e),
6694
+ ...sr(e),
6685
6695
  filters: _e(s)
6686
6696
  },
6687
6697
  (n) => n.data.map((o) => new Le(o))
@@ -6774,7 +6784,7 @@ class It extends he {
6774
6784
  this.history = fe(e.history, (s) => new kt(s));
6775
6785
  }
6776
6786
  }
6777
- class Ps extends p {
6787
+ class Ps extends h {
6778
6788
  /**
6779
6789
  * Возвращает данные об истории изменения цен.
6780
6790
  *
@@ -6783,22 +6793,22 @@ class Ps extends p {
6783
6793
  * @see /docs/api#/operations/api_internal_price_history_get
6784
6794
  */
6785
6795
  getProductPriceHistory(r) {
6786
- var o, c, u, h, m;
6787
- const e = k().config.dateFormats.api, s = cr(
6796
+ var o, c, u, p, m;
6797
+ const e = k().config.dateFormats.api, s = lr(
6788
6798
  pe(r, {
6789
6799
  costDate: {
6790
6800
  from: xe((o = r.costDate) == null ? void 0 : o.from) ? I(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6791
- to: xe((u = r.costDate) == null ? void 0 : u.to) ? I(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
6801
+ to: xe((u = r.costDate) == null ? void 0 : u.to) ? I(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6792
6802
  }
6793
6803
  }),
6794
- (f) => A(f) || (H(f) || lr(f)) && X(f)
6804
+ (f) => A(f) || (H(f) || He(f)) && X(f)
6795
6805
  ), n = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6796
6806
  return delete s.product, this.get(`/internal/price/products/${n}/history`, s).then((f) => [
6797
6807
  new It(pe(f[0], { history: f }))
6798
6808
  ]);
6799
6809
  }
6800
6810
  }
6801
- class sr {
6811
+ class ir {
6802
6812
  /**
6803
6813
  * Инициализирует экземпляр класса {@link RecommendationsList}.
6804
6814
  *
@@ -6816,7 +6826,7 @@ class sr {
6816
6826
  r != null && r.products && (this.products = r.products.map((e) => new he(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new he(e)));
6817
6827
  }
6818
6828
  }
6819
- class Ds extends p {
6829
+ class Ds extends h {
6820
6830
  /**
6821
6831
  * Возвращает данные о рекомендациях указанной категории продуктов.
6822
6832
  *
@@ -6824,7 +6834,7 @@ class Ds extends p {
6824
6834
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
6825
6835
  */
6826
6836
  getProductCategoryRecommendations(r) {
6827
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
6837
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new ir(e.data));
6828
6838
  }
6829
6839
  /**
6830
6840
  * Возвращает данные о рекомендациях указанного продукта.
@@ -6833,7 +6843,7 @@ class Ds extends p {
6833
6843
  * @see /docs/api#/operations/api_internal_recommendations_product_get
6834
6844
  */
6835
6845
  getProductRecommendations(r) {
6836
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
6846
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new ir(e.data));
6837
6847
  }
6838
6848
  /**
6839
6849
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -6880,7 +6890,7 @@ class Lt {
6880
6890
  this.name = r.name, this.content = r.content;
6881
6891
  }
6882
6892
  }
6883
- class ir {
6893
+ class nr {
6884
6894
  /**
6885
6895
  * Инициализирует экземпляр класса {@link Seo}.
6886
6896
  *
@@ -6923,7 +6933,7 @@ class ir {
6923
6933
  this.resourceType = new Ar(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((s) => new Lt(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6924
6934
  }
6925
6935
  }
6926
- class As extends p {
6936
+ class As extends h {
6927
6937
  /**
6928
6938
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6929
6939
  *
@@ -6931,7 +6941,7 @@ class As extends p {
6931
6941
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6932
6942
  */
6933
6943
  getResourceSeoData(r, e) {
6934
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
6944
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new nr(s.data));
6935
6945
  }
6936
6946
  /**
6937
6947
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6942,7 +6952,7 @@ class As extends p {
6942
6952
  * в случае ошибок в запросах.
6943
6953
  */
6944
6954
  saveResourceSeoData(r, e = {}) {
6945
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
6955
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new nr(s.data), e);
6946
6956
  }
6947
6957
  /**
6948
6958
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6954,7 +6964,7 @@ class As extends p {
6954
6964
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6955
6965
  }
6956
6966
  }
6957
- class $s extends p {
6967
+ class $s extends h {
6958
6968
  /**
6959
6969
  * Возвращает подсказки по адресам.
6960
6970
  *
@@ -7029,7 +7039,7 @@ class xt extends ar {
7029
7039
  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 wr(e.pricingRole) : void 0;
7030
7040
  }
7031
7041
  }
7032
- class Ts extends p {
7042
+ class Ts extends h {
7033
7043
  /**
7034
7044
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
7035
7045
  */
@@ -7045,7 +7055,7 @@ class Ts extends p {
7045
7055
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
7046
7056
  }
7047
7057
  }
7048
- class Ot extends p {
7058
+ class Ot extends h {
7049
7059
  /**
7050
7060
  * Возвращает данные о текущем пользователе.
7051
7061
  */
@@ -7072,14 +7082,14 @@ const qt = W("common.user_state_private", () => {
7072
7082
  */
7073
7083
  currentUser: P(() => {
7074
7084
  const r = qt();
7075
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Ot).getCurrentUser().then((e) => {
7085
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Ot).getCurrentUser().then((e) => {
7076
7086
  r.currentUser = e;
7077
7087
  }).catch(v).finally(() => {
7078
7088
  r.dataLoaderList.currentUser = !1;
7079
7089
  })), r.currentUser;
7080
7090
  })
7081
7091
  }));
7082
- class Ss {
7092
+ class ds {
7083
7093
  /**
7084
7094
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
7085
7095
  *
@@ -7113,11 +7123,11 @@ export {
7113
7123
  Vt as CatalogProvider,
7114
7124
  hr as CatalogableItem,
7115
7125
  N as Category,
7116
- Ye as CategoryPricingRule,
7126
+ Xe as CategoryPricingRule,
7117
7127
  Rr as ChannelPrimaryInterest,
7118
7128
  ns as City,
7119
7129
  De as CityWithRegionAndCountry,
7120
- rr as Client,
7130
+ tr as Client,
7121
7131
  Rt as ClientAdditionalData,
7122
7132
  Ce as ClientCategory,
7123
7133
  x as ClientDataProvider,
@@ -7143,11 +7153,11 @@ export {
7143
7153
  br as ContragentIc,
7144
7154
  vt as ContragentPerson,
7145
7155
  at as ContragentUlNr,
7146
- Sr as ContragentUlR,
7147
- Ge as CostSourceEnum,
7156
+ dr as ContragentUlR,
7157
+ Be as CostSourceEnum,
7148
7158
  Z as Country,
7149
- ze as CuratedDirection,
7150
- We as Curator,
7159
+ We as CuratedDirection,
7160
+ Je as Curator,
7151
7161
  O as Currency,
7152
7162
  $s as DataSuggestionProvider,
7153
7163
  ls as DataTablePagination,
@@ -7160,42 +7170,42 @@ export {
7160
7170
  zt as DetailedJwtPayload,
7161
7171
  Zr as DeviceTypeResolutionConfig,
7162
7172
  ot as DiscountShortInfo,
7163
- Ss as FieldValidationResultData,
7173
+ ds as FieldValidationResultData,
7164
7174
  G as FilterGroup,
7165
- Xe as FilterItem,
7166
- Je as FilterOpEnum,
7175
+ Ze as FilterItem,
7176
+ Ee as FilterOpEnum,
7167
7177
  mr as GeoCoordinates,
7168
7178
  nt as HiddenCatalogableItem,
7169
7179
  me as HttpCachedRequester,
7170
7180
  et as HttpParamsConfig,
7171
- p as HttpRequester,
7181
+ h as HttpRequester,
7172
7182
  re as Identity,
7173
7183
  it as Image,
7174
7184
  M as JwtPayload,
7175
7185
  ve as Manager,
7176
- Be as ManagerCommon,
7186
+ ze as ManagerCommon,
7177
7187
  ys as ManagerDataFactory,
7178
7188
  At as ManagerDataProvider,
7179
7189
  Lt as MetaTagItem,
7180
- S as NamedIdentity,
7190
+ d as NamedIdentity,
7181
7191
  Pr as Operator,
7182
7192
  B as Opf,
7183
7193
  U as OpfEnum,
7184
- d as Order,
7194
+ S as Order,
7185
7195
  $t as OrderAction,
7186
7196
  ws as OrderEditorData,
7187
7197
  Lr as OrderInfo,
7188
- St as OrderItem,
7198
+ dt as OrderItem,
7189
7199
  fr as OrderItemBase,
7190
7200
  yt as OrderPaymentStatus,
7191
7201
  kr as OrderShortInfo,
7192
7202
  $e as OrderStatus,
7193
7203
  bt as OrderStatusDetailEnum,
7194
7204
  Tt as OrderStatusEnum,
7195
- dt as OrderStatusHistoryInfo,
7205
+ St as OrderStatusHistoryInfo,
7196
7206
  Cs as OrdersDataProvider,
7197
7207
  as as OrdersListFilters,
7198
- dr as PaginationFiltersBase,
7208
+ Sr as PaginationFiltersBase,
7199
7209
  ee as PartnerGroup,
7200
7210
  Dr as PaymentType,
7201
7211
  ae as PreferencesStorageProvider,
@@ -7206,7 +7216,7 @@ export {
7206
7216
  Ps as PriceHistoryDataProvider,
7207
7217
  kt as PriceHistoryItem,
7208
7218
  Q as PriceTemplate,
7209
- de as PriceTemplateCategory,
7219
+ Se as PriceTemplateCategory,
7210
7220
  oe as PriceTemplateClient,
7211
7221
  vr as PriceTemplateICatalogableItem,
7212
7222
  ke as PriceTemplateProduct,
@@ -7218,16 +7228,16 @@ export {
7218
7228
  Yt as ProductCategoryDataProvider,
7219
7229
  Xt as ProductDataProvider,
7220
7230
  wt as ProductFileType,
7221
- je as ProductPriceCoefficient,
7231
+ Ge as ProductPriceCoefficient,
7222
7232
  It as ProductPriceHistory,
7223
- Qe as ProductUnit,
7233
+ Ye as ProductUnit,
7224
7234
  ss as PropertiesProvider,
7225
7235
  ce as Property,
7226
7236
  Cr as PropertyType,
7227
7237
  pt as PropertyTypeEnum,
7228
7238
  K as PropertyValue,
7229
7239
  Ds as RecommendationsDataProvider,
7230
- sr as RecommendationsList,
7240
+ ir as RecommendationsList,
7231
7241
  w as Reference,
7232
7242
  os as ReferenceDataFactory,
7233
7243
  T as ReferenceDataProvider,
@@ -7235,13 +7245,13 @@ export {
7235
7245
  Ar as ResourceType,
7236
7246
  q as SalesDirection,
7237
7247
  rt as SentryConfig,
7238
- ir as Seo,
7248
+ nr as Seo,
7239
7249
  As as SeoDataProvider,
7240
7250
  $r as SourcePrimaryInterest,
7241
7251
  ct as StockCount,
7242
7252
  is as TemplateProductCategoryDataProvider,
7243
7253
  Et as TemplatesListFilters,
7244
- Me as TypedInstanceFactory,
7254
+ je as TypedInstanceFactory,
7245
7255
  Ir as UnitsHelper,
7246
7256
  ps as UnknownClientDataProvider,
7247
7257
  ur as UpdatableNamedIdentity,
@@ -7255,10 +7265,10 @@ export {
7255
7265
  hs as VersionConfig,
7256
7266
  ye as Warehouse,
7257
7267
  tt as WebSocketConfig,
7258
- Ze as findCatalogItemByIdRecursive,
7259
- er as flattenCatalogItems,
7268
+ er as findCatalogItemByIdRecursive,
7269
+ rr as flattenCatalogItems,
7260
7270
  fs as pluralize,
7261
- Se as useAuthStateStore,
7271
+ de as useAuthStateStore,
7262
7272
  k as useBaseConfigStateStore,
7263
7273
  vs as useReferencesStore,
7264
7274
  bs as useUserStateStore