@snabcentr/common-lib 2.7.3 → 2.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- var kr = Object.defineProperty;
2
- var Lr = (i, r, e) => r in i ? kr(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var t = (i, r, e) => Lr(i, typeof r != "symbol" ? r + "" : r, e);
1
+ var Lr = Object.defineProperty;
2
+ var _r = (i, r, e) => r in i ? Lr(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var t = (i, r, e) => _r(i, typeof r != "symbol" ? r + "" : r, e);
4
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 _r, split as xr, isString as a, constant as Or, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as Fe, map as fe, forEach as Fr, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
5
+ import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as or, isArray as H, every as xr, split as Or, isString as C, constant as qr, toUpper as Nr, cloneDeep as Ur, toLower as Fr, isFunction as Fe, map as fe, forEach as Hr, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
6
6
  import { objectToCamel as He, objectToSnake as Ee } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
- import { ref as y, markRaw as Hr, computed as P } from "vue";
9
- import { isAfter as Ve, parseISO as C, startOfToday as Oe, format as k, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Mr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr } from "date-fns";
10
- import Kr, { CanceledError as Qr } from "axios";
11
- class j {
8
+ import { ref as y, markRaw as Mr, computed as P } from "vue";
9
+ import { isAfter as Ve, parseISO as R, startOfToday as Oe, format as k, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Br, startOfTomorrow as zr, endOfYesterday as Wr, startOfYesterday as Jr, endOfToday as Er, endOfDay as Vr, startOfDay as Kr } from "date-fns";
10
+ import Qr, { CanceledError as Yr } from "axios";
11
+ class M {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class j {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = nr(r), s = new j(He(e));
110
+ const e = nr(r), s = new M(He(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class zt extends j {
114
+ class zt extends M {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,10 +151,10 @@ class zt extends j {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new j(He(nr(e)));
154
+ return new M(He(nr(e)));
155
155
  }
156
156
  }
157
- class Yr {
157
+ class Xr {
158
158
  /**
159
159
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
160
160
  *
@@ -176,7 +176,7 @@ class Yr {
176
176
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
177
177
  }
178
178
  }
179
- class Xr {
179
+ class Zr {
180
180
  /**
181
181
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
182
182
  *
@@ -198,7 +198,7 @@ class Xr {
198
198
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
199
199
  }
200
200
  }
201
- class Zr {
201
+ class et {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -243,7 +243,7 @@ class Zr {
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class et {
246
+ class rt {
247
247
  /**
248
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
249
249
  *
@@ -282,7 +282,7 @@ class et {
282
282
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
283
283
  }
284
284
  }
285
- class rt {
285
+ class tt {
286
286
  /**
287
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
288
288
  *
@@ -326,10 +326,10 @@ class rt {
326
326
  */
327
327
  t(this, "dateFormats");
328
328
  var e, s, n;
329
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Yr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zr({
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Zr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Xr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new et({
330
330
  environment: this.environment,
331
331
  ...r == null ? void 0 : r.sentry
332
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new et(r.websocket) : void 0, this.dateFormats = {
332
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new rt(r.websocket) : void 0, this.dateFormats = {
333
333
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
334
334
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
335
335
  uiDateWithTime: ((n = r == null ? void 0 : r.dateFormats) == null ? void 0 : n.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -337,7 +337,7 @@ class rt {
337
337
  }
338
338
  }
339
339
  const d = W("common.config", () => {
340
- const i = y(new rt());
340
+ const i = y(new tt());
341
341
  return {
342
342
  /**
343
343
  * Конфигурационные данные приложения.
@@ -378,7 +378,7 @@ class ve {
378
378
  if (e)
379
379
  try {
380
380
  const s = JSON.parse(e);
381
- if (!s.availableFor || Ve(C(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
381
+ if (!s.availableFor || Ve(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 ve {
452
452
  const n = localStorage.getItem(s);
453
453
  if (n) {
454
454
  const o = JSON.parse(n);
455
- o.availableFor && !Ve(C(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !Ve(R(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -470,7 +470,7 @@ class ve {
470
470
  }
471
471
  function Ke(i) {
472
472
  try {
473
- const r = j.getJwtPayload(i);
473
+ const r = M.getJwtPayload(i);
474
474
  return new Date(r.exp * 1e3);
475
475
  } catch {
476
476
  return;
@@ -489,10 +489,10 @@ const V = W("common.auth_state_private", () => {
489
489
  const c = (u = d().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
- ), r = y(void 0), e = y(void 0), s = Hr(/* @__PURE__ */ new Map());
492
+ ), r = y(void 0), e = y(void 0), s = Mr(/* @__PURE__ */ new Map());
493
493
  function n() {
494
494
  e.value = void 0, A(i.value) || i.value.then((o) => {
495
- const c = j.getJwtPayload(o);
495
+ const c = M.getJwtPayload(o);
496
496
  e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(v);
498
498
  }
@@ -543,7 +543,7 @@ const V = W("common.auth_state_private", () => {
543
543
  function n(o) {
544
544
  const c = V();
545
545
  !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((m) => {
546
- const f = j.getJwtPayload(m);
546
+ const f = M.getJwtPayload(m);
547
547
  c.userPermissions = f.exp * 1e3 > Date.now() ? or(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
548
  }).catch(v);
549
549
  const u = H(o) ? o.join(" && ") : o;
@@ -552,13 +552,13 @@ const V = W("common.auth_state_private", () => {
552
552
  const h = P(() => {
553
553
  const m = (f) => {
554
554
  var E;
555
- const D = xr(f, ".");
555
+ const D = Or(f, ".");
556
556
  if (D.length < 2)
557
557
  return !1;
558
558
  const [se, ie] = D, J = (E = V().userPermissions) == null ? void 0 : E[se];
559
559
  return H(J) && J.includes(ie);
560
560
  };
561
- return H(o) ? _r(o, (f) => m(f)) : m(o);
561
+ return H(o) ? xr(o, (f) => m(f)) : m(o);
562
562
  });
563
563
  return c.userPermissionsComputedRefs.set(u, h), h;
564
564
  }
@@ -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 b extends re {
619
+ class S extends re {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,7 +631,7 @@ class b extends re {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class he extends b {
634
+ class he extends S {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
637
637
  *
@@ -646,7 +646,7 @@ class he extends b {
646
646
  this.code = (e == null ? void 0 : e.code) ?? "";
647
647
  }
648
648
  }
649
- class w extends b {
649
+ class w extends S {
650
650
  /**
651
651
  * Инициализирует экземпляр класса {@link Reference}.
652
652
  *
@@ -665,7 +665,7 @@ class w extends b {
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 b {
668
+ class ur extends S {
669
669
  /**
670
670
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
671
671
  *
@@ -677,10 +677,10 @@ class ur extends b {
677
677
  * Дата и время последнего изменения.
678
678
  */
679
679
  t(this, "updatedAt");
680
- this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
680
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
681
681
  }
682
682
  }
683
- class tt extends ur {
683
+ class pr extends ur {
684
684
  /**
685
685
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
686
686
  *
@@ -692,7 +692,7 @@ class tt extends ur {
692
692
  * Дата и время последнего удаления.
693
693
  */
694
694
  t(this, "deletedAt");
695
- this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
695
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
696
696
  }
697
697
  }
698
698
  class st {
@@ -718,7 +718,7 @@ class st {
718
718
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
719
  }
720
720
  }
721
- class pr extends he {
721
+ class hr extends he {
722
722
  /**
723
723
  * Инициализирует экземпляр класса {@link CatalogableItem}.
724
724
  *
@@ -737,7 +737,7 @@ class pr extends he {
737
737
  this.slug = (e == null ? void 0 : e.slug) ?? "";
738
738
  }
739
739
  }
740
- class it extends pr {
740
+ class it extends hr {
741
741
  /**
742
742
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
743
743
  *
@@ -752,7 +752,7 @@ class it extends pr {
752
752
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
753
753
  }
754
754
  }
755
- class qe extends pr {
755
+ class qe extends hr {
756
756
  /**
757
757
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
758
758
  *
@@ -767,7 +767,7 @@ class qe extends pr {
767
767
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
768
768
  }
769
769
  }
770
- class je {
770
+ class Me {
771
771
  /**
772
772
  * Инициализирует экземпляр указанного класса.
773
773
  *
@@ -786,7 +786,7 @@ class je {
786
786
  return new r(e);
787
787
  }
788
788
  }
789
- class _ extends b {
789
+ class _ extends S {
790
790
  /**
791
791
  * Инициализирует экземпляр класса {@link UserShortInfo}.
792
792
  *
@@ -801,7 +801,7 @@ class _ extends b {
801
801
  this.type = e == null ? void 0 : e.type;
802
802
  }
803
803
  }
804
- class nt extends b {
804
+ class nt extends S {
805
805
  /**
806
806
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
807
807
  *
@@ -837,7 +837,7 @@ class nt extends b {
837
837
  * Дата и время удаления.
838
838
  */
839
839
  t(this, "deletedAt");
840
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(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 _(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
840
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? 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 _(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
841
841
  }
842
842
  }
843
843
  class Q extends ur {
@@ -856,19 +856,19 @@ class Q extends ur {
856
856
  * Дата и время создания шаблона.
857
857
  */
858
858
  t(this, "createdAt");
859
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
859
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
860
860
  }
861
861
  }
862
- var hr = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(hr || {});
862
+ var gr = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(gr || {});
863
863
  class Re extends w {
864
864
  /**
865
865
  * Возвращает значение справочника коэффициента розничной цены.
866
866
  */
867
867
  static getRetailPriceCoefficient() {
868
- return { id: -2, slug: hr.Retail, name: "Розн. цена", guid: "", isNewRec: Or(!0) };
868
+ return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec: qr(!0) };
869
869
  }
870
870
  }
871
- class Ge {
871
+ class je {
872
872
  /**
873
873
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
874
874
  *
@@ -898,7 +898,7 @@ class Ge {
898
898
  this.coefficient = new Re(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
899
899
  }
900
900
  }
901
- class gr {
901
+ class mr {
902
902
  /**
903
903
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
904
904
  *
@@ -947,7 +947,7 @@ class ye extends w {
947
947
  * Координаты склада.
948
948
  */
949
949
  t(this, "coordinates");
950
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((n) => new F(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new gr(e == null ? void 0 : e.coordinates);
950
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((n) => new F(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new mr(e == null ? void 0 : e.coordinates);
951
951
  }
952
952
  }
953
953
  class ot {
@@ -968,7 +968,7 @@ class ot {
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 b {
971
+ class O extends S {
972
972
  /**
973
973
  * Инициализирует экземпляр класса {@link Currency}.
974
974
  *
@@ -995,7 +995,7 @@ class O extends b {
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 b {
998
+ class Qe extends S {
999
999
  /**
1000
1000
  * Инициализирует экземпляр класса {@link ProductUnit}.
1001
1001
  *
@@ -1099,9 +1099,9 @@ class L extends it {
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 = a(e == null ? void 0 : e.costDate) ? C(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 ot(h))) ?? [], this.type = "product";
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 ot(h))) ?? [], this.type = "product";
1103
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 st(h, d().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 Ge(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
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 st(h, d().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);
1105
1105
  }
1106
1106
  /**
1107
1107
  * Возвращает признак, что это измеряемый товар.
@@ -1122,8 +1122,8 @@ class L extends it {
1122
1122
  return this.retailCostRub ?? this.costRub;
1123
1123
  }
1124
1124
  }
1125
- var Me = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Me || {});
1126
- class G extends L {
1125
+ var Ge = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Ge || {});
1126
+ class j extends L {
1127
1127
  /**
1128
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
1129
1129
  *
@@ -1159,7 +1159,7 @@ class G 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) ?? Me.Product, this.discount = e != null && e.discount ? new nt(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) ?? Ge.Product, this.discount = e != null && e.discount ? new nt(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 {
@@ -1186,10 +1186,10 @@ class we extends qe {
1186
1186
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
1187
1187
  */
1188
1188
  t(this, "currencyRates");
1189
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, n]) => [qr(s), n])) : void 0;
1189
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, n]) => [Nr(s), n])) : void 0;
1190
1190
  }
1191
1191
  }
1192
- class mr extends re {
1192
+ class fr extends re {
1193
1193
  /**
1194
1194
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1195
1195
  *
@@ -1265,10 +1265,10 @@ class mr extends re {
1265
1265
  * @inheritDoc
1266
1266
  */
1267
1267
  t(this, "replacementId");
1268
- this.product = new G(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new we(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1268
+ this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new we(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1269
1269
  }
1270
1270
  }
1271
- let ct = class extends mr {
1271
+ let ct = class extends fr {
1272
1272
  /**
1273
1273
  * Инициализирует экземпляр класса {@link OrderItem}.
1274
1274
  *
@@ -1337,7 +1337,7 @@ class ne {
1337
1337
  this.items = r.items.map((e) => new ct(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1338
1338
  }
1339
1339
  }
1340
- const R = class R {
1340
+ const a = class a {
1341
1341
  /**
1342
1342
  * Инициализирует экземпляр класса {@link HttpRequester}.
1343
1343
  */
@@ -1384,14 +1384,14 @@ const R = class R {
1384
1384
  * @param request Данные запроса.
1385
1385
  */
1386
1386
  // eslint-disable-next-line class-methods-use-this
1387
- t(this, "userRequestHooksInterceptor", async (r) => R.requestHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
1387
+ t(this, "userRequestHooksInterceptor", async (r) => a.requestHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
1388
1388
  /**
1389
1389
  * Перехватчик запроса для преобразования данных запроса.
1390
1390
  *
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(Ur(r.method)) && r.data && (r.data = Ee(r.data))), r));
1394
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Fr(r.method)) && r.data && (r.data = Ee(r.data))), r));
1395
1395
  /**
1396
1396
  * Перехватчик ошибок ответов на запрос.
1397
1397
  *
@@ -1411,7 +1411,7 @@ const R = class R {
1411
1411
  t(this, "canceledResponseInterceptor", (r) => {
1412
1412
  const e = r.rawError ?? r;
1413
1413
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1414
- throw new Qr("Request canceled");
1414
+ throw new Yr("Request canceled");
1415
1415
  return Promise.reject(r);
1416
1416
  });
1417
1417
  /**
@@ -1420,7 +1420,7 @@ const R = class R {
1420
1420
  * @param response Данные ответа на запрос.
1421
1421
  */
1422
1422
  // eslint-disable-next-line class-methods-use-this
1423
- t(this, "userResponseHooksInterceptor", async (r) => R.responseHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
1423
+ t(this, "userResponseHooksInterceptor", async (r) => a.responseHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
1424
1424
  /**
1425
1425
  * Перехватчик ответа для преобразования данных ответа на запрос.
1426
1426
  *
@@ -1428,7 +1428,7 @@ const R = class R {
1428
1428
  */
1429
1429
  // eslint-disable-next-line class-methods-use-this
1430
1430
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = He(r.data)), r));
1431
- this.errorResponseHandler = R.defaultErrorsResponseHandler, this.httpClient = Kr.create({
1431
+ this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Qr.create({
1432
1432
  headers: {
1433
1433
  Accept: "application/json",
1434
1434
  "Content-Type": "application/json"
@@ -1438,7 +1438,7 @@ const R = class R {
1438
1438
  (r) => Promise.reject(r)
1439
1439
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1440
1440
  (r) => r,
1441
- (r) => R.convertHttpErrorResponse(r)
1441
+ (r) => a.convertHttpErrorResponse(r)
1442
1442
  ), this.interceptorIds.response.canceledResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.canceledResponseInterceptor), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1443
1443
  this.dataConverterResponseInterceptor,
1444
1444
  (r) => Promise.reject(r)
@@ -1450,7 +1450,7 @@ const R = class R {
1450
1450
  * @param handler Ссылка на функцию-обработчик ошибок.
1451
1451
  */
1452
1452
  static setDefaultErrorsResponseHandler(r) {
1453
- R.defaultErrorsResponseHandler = r;
1453
+ a.defaultErrorsResponseHandler = r;
1454
1454
  }
1455
1455
  /**
1456
1456
  * Регистрирует хук, который будет вызываться перед выполнением каждого HTTP запроса.
@@ -1458,7 +1458,7 @@ const R = class R {
1458
1458
  * @param hook Функция-хук для обработки запроса.
1459
1459
  */
1460
1460
  static addRequestHook(r) {
1461
- R.requestHooks.includes(r) || R.requestHooks.push(r);
1461
+ a.requestHooks.includes(r) || a.requestHooks.push(r);
1462
1462
  }
1463
1463
  /**
1464
1464
  * Удаляет зарегистрированный хук запроса.
@@ -1466,8 +1466,8 @@ const R = class R {
1466
1466
  * @param hook Функция-хук для удаления.
1467
1467
  */
1468
1468
  static removeRequestHook(r) {
1469
- const e = R.requestHooks.indexOf(r);
1470
- e !== -1 && R.requestHooks.splice(e, 1);
1469
+ const e = a.requestHooks.indexOf(r);
1470
+ e !== -1 && a.requestHooks.splice(e, 1);
1471
1471
  }
1472
1472
  /**
1473
1473
  * Регистрирует хук, который будет вызываться после получения ответа на каждый HTTP запрос.
@@ -1475,7 +1475,7 @@ const R = class R {
1475
1475
  * @param hook Функция-хук для обработки ответа.
1476
1476
  */
1477
1477
  static addResponseHook(r) {
1478
- R.responseHooks.includes(r) || R.responseHooks.push(r);
1478
+ a.responseHooks.includes(r) || a.responseHooks.push(r);
1479
1479
  }
1480
1480
  /**
1481
1481
  * Удаляет зарегистрированный хук ответа.
@@ -1483,8 +1483,8 @@ const R = class R {
1483
1483
  * @param hook Функция-хук для удаления.
1484
1484
  */
1485
1485
  static removeResponseHook(r) {
1486
- const e = R.responseHooks.indexOf(r);
1487
- e !== -1 && R.responseHooks.splice(e, 1);
1486
+ const e = a.responseHooks.indexOf(r);
1487
+ e !== -1 && a.responseHooks.splice(e, 1);
1488
1488
  }
1489
1489
  /**
1490
1490
  * Возвращает экземпляр объекта текущего класса.
@@ -1492,7 +1492,7 @@ const R = class R {
1492
1492
  * @param type Тип данных, которыми оперирует метод.
1493
1493
  */
1494
1494
  static getInstance(r) {
1495
- return Object.prototype.hasOwnProperty.call(R.instances, r.name) || (R.instances[r.name] = je.simpleInstanceInitializer(r)), R.instances[r.name];
1495
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Me.simpleInstanceInitializer(r)), a.instances[r.name];
1496
1496
  }
1497
1497
  /**
1498
1498
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1591,21 +1591,21 @@ const R = class R {
1591
1591
  * Экземпляр объекта текущего класса.
1592
1592
  */
1593
1593
  // eslint-disable-next-line no-use-before-define
1594
- t(R, "instances", {}), /**
1594
+ t(a, "instances", {}), /**
1595
1595
  * Базовый обработчик ошибок выполнения запросов.
1596
1596
  *
1597
1597
  * @param error Данные об ошибке.
1598
1598
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1599
1599
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1600
1600
  */
1601
- t(R, "defaultErrorsResponseHandler", v), /**
1601
+ t(a, "defaultErrorsResponseHandler", v), /**
1602
1602
  * Список зарегистрированных хуков для запросов.
1603
1603
  */
1604
- t(R, "requestHooks", []), /**
1604
+ t(a, "requestHooks", []), /**
1605
1605
  * Список зарегистрированных хуков для ответов.
1606
1606
  */
1607
- t(R, "responseHooks", []);
1608
- let p = R;
1607
+ t(a, "responseHooks", []);
1608
+ let p = a;
1609
1609
  class Jt extends p {
1610
1610
  /**
1611
1611
  * Возвращает содержимое корзины указанного клиента.
@@ -1741,7 +1741,7 @@ class N extends we {
1741
1741
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new N(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new L(o));
1742
1742
  }
1743
1743
  }
1744
- class fr {
1744
+ class yr {
1745
1745
  /**
1746
1746
  * Инициализирует экземпляр класса {@link ContactLinks}.
1747
1747
  *
@@ -1761,7 +1761,7 @@ class fr {
1761
1761
  }
1762
1762
  class q extends w {
1763
1763
  }
1764
- class Be extends b {
1764
+ class Be extends S {
1765
1765
  /**
1766
1766
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1767
1767
  *
@@ -1789,12 +1789,12 @@ class Be extends b {
1789
1789
  * @inheritDoc
1790
1790
  */
1791
1791
  t(this, "isRegionalDirector");
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 fr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
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
1795
  class ze extends w {
1796
1796
  }
1797
- class pt extends b {
1797
+ class pt extends S {
1798
1798
  /**
1799
1799
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1800
1800
  *
@@ -1905,10 +1905,10 @@ class ae extends ht {
1905
1905
  * Список продуктов категории.
1906
1906
  */
1907
1907
  t(this, "products");
1908
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ae(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new G(o));
1908
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ae(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new j(o));
1909
1909
  }
1910
1910
  }
1911
- class yr {
1911
+ class wr {
1912
1912
  /**
1913
1913
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1914
1914
  *
@@ -1926,7 +1926,7 @@ class yr {
1926
1926
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1927
1927
  }
1928
1928
  }
1929
- class de extends yr {
1929
+ class de extends wr {
1930
1930
  /**
1931
1931
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1932
1932
  *
@@ -1941,7 +1941,7 @@ class de extends yr {
1941
1941
  this.productCategory = new we(e == null ? void 0 : e.productCategory);
1942
1942
  }
1943
1943
  }
1944
- class We extends b {
1944
+ class We extends S {
1945
1945
  /**
1946
1946
  * Инициализирует экземпляр класса {@link Curator}.
1947
1947
  *
@@ -1961,7 +1961,7 @@ class We extends b {
1961
1961
  * @inheritDoc
1962
1962
  */
1963
1963
  t(this, "curatedDirection");
1964
- this.photo = e.photo, this.contacts = new fr(e.contacts), this.curatedDirection = new ze(e.curatedDirection);
1964
+ this.photo = e.photo, this.contacts = new yr(e.contacts), this.curatedDirection = new ze(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 wr extends b {
1999
+ class vr extends S {
2000
2000
  /**
2001
2001
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2002
2002
  *
@@ -2032,10 +2032,10 @@ class wr extends b {
2032
2032
  * Признак активности учетной записи пользователя.
2033
2033
  */
2034
2034
  t(this, "isActive");
2035
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : void 0, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2035
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2036
2036
  }
2037
2037
  }
2038
- class te extends wr {
2038
+ class te extends vr {
2039
2039
  /**
2040
2040
  * Инициализирует экземпляр класса {@link Client}.
2041
2041
  *
@@ -2108,10 +2108,10 @@ class oe extends re {
2108
2108
  * Данные шаблона прайс-листа.
2109
2109
  */
2110
2110
  t(this, "priceTemplate");
2111
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
2111
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
2112
2112
  }
2113
2113
  }
2114
- class Ie extends yr {
2114
+ class Ie extends wr {
2115
2115
  /**
2116
2116
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2117
2117
  *
@@ -2126,9 +2126,9 @@ class Ie extends yr {
2126
2126
  this.product = new L(e == null ? void 0 : e.product);
2127
2127
  }
2128
2128
  }
2129
- class vr extends w {
2129
+ class ar extends w {
2130
2130
  }
2131
- class ce extends b {
2131
+ class ce extends S {
2132
2132
  /**
2133
2133
  * Инициализирует экземпляр класса {@link Property}.
2134
2134
  *
@@ -2148,7 +2148,7 @@ class ce extends b {
2148
2148
  * Дополнительные метаданные свойства.
2149
2149
  */
2150
2150
  t(this, "metadata");
2151
- this.type = new vr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2151
+ this.type = new ar(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2152
2152
  }
2153
2153
  }
2154
2154
  class K {
@@ -2170,7 +2170,7 @@ class K {
2170
2170
  this.property = new ce(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2171
2171
  }
2172
2172
  }
2173
- class S {
2173
+ class b {
2174
2174
  /**
2175
2175
  * Инициализирует экземпляр класса {@link DatePeriod}.
2176
2176
  *
@@ -2185,7 +2185,7 @@ class S {
2185
2185
  * Окончание периода.
2186
2186
  */
2187
2187
  t(this, "to");
2188
- this.from = a(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = a(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
2188
+ this.from = C(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
2189
2189
  }
2190
2190
  }
2191
2191
  class Et {
@@ -2210,12 +2210,12 @@ class Et {
2210
2210
  /**
2211
2211
  * Период создания.
2212
2212
  */
2213
- t(this, "createdAt", new S());
2213
+ t(this, "createdAt", new b());
2214
2214
  /**
2215
2215
  * Период изменения.
2216
2216
  */
2217
- t(this, "updatedAt", new S());
2218
- 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.createdAt = new S(r == null ? void 0 : r.createdAt), this.updatedAt = new S(r == null ? void 0 : r.updatedAt);
2217
+ t(this, "updatedAt", new b());
2218
+ 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.createdAt = new b(r == null ? void 0 : r.createdAt), this.updatedAt = new b(r == null ? void 0 : r.updatedAt);
2219
2219
  }
2220
2220
  /**
2221
2221
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2248,11 +2248,11 @@ class Et {
2248
2248
  return Object.keys(this).forEach((c) => {
2249
2249
  const u = this[c];
2250
2250
  // eslint-disable-next-line prettier/prettier
2251
- A(u) || a(u) && u.trim().length === 0 || Fe(u.isNewRec) && u.isNewRec() || (r[c] = u);
2251
+ A(u) || C(u) && u.trim().length === 0 || Fe(u.isNewRec) && u.isNewRec() || (r[c] = u);
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 b {
2255
+ class le extends S {
2256
2256
  /**
2257
2257
  * Инициализирует экземпляр класса {@link PricingRole}.
2258
2258
  *
@@ -2464,7 +2464,7 @@ class Kt extends p {
2464
2464
  price_coefficient_id: (n = s.coefficient) == null ? void 0 : n.id,
2465
2465
  increase_percent: s.value
2466
2466
  },
2467
- (o) => new G(o.data)
2467
+ (o) => new j(o.data)
2468
2468
  );
2469
2469
  }
2470
2470
  /**
@@ -2476,7 +2476,7 @@ class Kt extends p {
2476
2476
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2477
2477
  */
2478
2478
  removeProductPrice(r, e) {
2479
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new G(s.data));
2479
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new j(s.data));
2480
2480
  }
2481
2481
  /**
2482
2482
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -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 Fr(s, (n) => n.map((o) => new Ge(o))), s;
2707
+ return Hr(s, (n) => n.map((o) => new je(o))), s;
2708
2708
  });
2709
2709
  }
2710
2710
  /**
@@ -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 Ge(s))
2757
+ (e) => fe(e.data, (s) => new je(s))
2758
2758
  );
2759
2759
  }
2760
2760
  /**
@@ -2831,7 +2831,7 @@ class Zt extends p {
2831
2831
  showHidden: n,
2832
2832
  withPriceCoefficients: s
2833
2833
  },
2834
- (o) => fe(o.data, (c) => new G(c))
2834
+ (o) => fe(o.data, (c) => new j(c))
2835
2835
  );
2836
2836
  }
2837
2837
  }
@@ -2852,7 +2852,7 @@ class es extends p {
2852
2852
  clientId: e,
2853
2853
  withPriceCoefficients: s
2854
2854
  },
2855
- (n) => new G(n.data)
2855
+ (n) => new j(n.data)
2856
2856
  );
2857
2857
  }
2858
2858
  }
@@ -2891,7 +2891,7 @@ class Xe {
2891
2891
  return r.value = xe(this.value) ? k(this.value, d().config.dateFormats.api) : this.value, r;
2892
2892
  }
2893
2893
  }
2894
- class M {
2894
+ class G {
2895
2895
  /**
2896
2896
  * Инициализирует экземпляр класса {@link FilterGroup}.
2897
2897
  *
@@ -2911,7 +2911,7 @@ class M {
2911
2911
  */
2912
2912
  t(this, "groups");
2913
2913
  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 M(n))) ?? [];
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))) ?? [];
2915
2915
  }
2916
2916
  /**
2917
2917
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2922,7 +2922,7 @@ class M {
2922
2922
  return {
2923
2923
  groupOp: this.groupOp,
2924
2924
  filters: this.filters.map((r) => r instanceof Xe && Fe(r.toPrimitive) ? r.toPrimitive() : r),
2925
- groups: this.groups.map((r) => r instanceof M ? r.toPrimitive() : r)
2925
+ groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
2926
2926
  };
2927
2927
  }
2928
2928
  }
@@ -2944,7 +2944,7 @@ class Ae extends p {
2944
2944
  page: (n == null ? void 0 : n.page) ?? 1,
2945
2945
  perPage: (n == null ? void 0 : n.pageSize) ?? 10
2946
2946
  };
2947
- return e && (m.filters = JSON.stringify((e instanceof M ? e : new M(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
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);
2948
2948
  }
2949
2949
  }
2950
2950
  class rs extends Ae {
@@ -3698,7 +3698,7 @@ function er(i) {
3698
3698
  var gt = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i.SalesDirection = "sales_direction", i.Managers = "managers", i.Curators = "curators", i))(gt || {}), U = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(U || {});
3699
3699
  class mt extends w {
3700
3700
  }
3701
- class ar extends w {
3701
+ class Cr extends w {
3702
3702
  }
3703
3703
  class ns extends w {
3704
3704
  }
@@ -3717,7 +3717,7 @@ class B extends w {
3717
3717
  });
3718
3718
  }
3719
3719
  }
3720
- class Cr extends w {
3720
+ class Rr extends w {
3721
3721
  }
3722
3722
  class yt extends w {
3723
3723
  }
@@ -3725,7 +3725,7 @@ class $e extends w {
3725
3725
  }
3726
3726
  class ee extends w {
3727
3727
  }
3728
- class Rr extends w {
3728
+ class Pr extends w {
3729
3729
  }
3730
3730
  class wt extends w {
3731
3731
  }
@@ -3748,10 +3748,10 @@ class os {
3748
3748
  return r.id === 0 && r.slug === "-undefined-";
3749
3749
  }
3750
3750
  }
3751
- class Pr extends w {
3752
- }
3753
3751
  class Dr extends w {
3754
3752
  }
3753
+ class Ar extends w {
3754
+ }
3755
3755
  class Ne extends re {
3756
3756
  /**
3757
3757
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3783,7 +3783,7 @@ class Ne extends re {
3783
3783
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new O(e.currency));
3784
3784
  }
3785
3785
  }
3786
- class Ue extends b {
3786
+ class Ue extends S {
3787
3787
  /**
3788
3788
  * Инициализирует экземпляр класса {@link Contact}.
3789
3789
  *
@@ -3834,10 +3834,10 @@ class z extends Ue {
3834
3834
  * Дата и время последнего удаления.
3835
3835
  */
3836
3836
  t(this, "deletedAt");
3837
- 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 = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3837
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3838
3838
  }
3839
3839
  }
3840
- class Ar extends b {
3840
+ class $r extends pr {
3841
3841
  /**
3842
3842
  * Инициализирует экземпляр класса {@link ContragentBase}.
3843
3843
  *
@@ -3878,16 +3878,12 @@ class Ar extends b {
3878
3878
  * Данные пользователя, создавшего запись.
3879
3879
  */
3880
3880
  t(this, "creator");
3881
- /**
3882
- * Дата и время последнего изменения данных.
3883
- */
3884
- t(this, "updatedAt");
3885
3881
  /**
3886
3882
  * Данные пользователя, который внес последние изменения в запись.
3887
3883
  */
3888
3884
  t(this, "updater");
3889
3885
  if (e) {
3890
- if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3886
+ if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3891
3887
  const s = [];
3892
3888
  e.contacts.forEach((n) => {
3893
3889
  s.push(new z(n));
@@ -3902,7 +3898,7 @@ class Ar extends b {
3902
3898
  }
3903
3899
  }
3904
3900
  }
3905
- class vt extends Ar {
3901
+ class vt extends $r {
3906
3902
  /**
3907
3903
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3908
3904
  *
@@ -3912,7 +3908,7 @@ class vt extends Ar {
3912
3908
  super(r);
3913
3909
  }
3914
3910
  }
3915
- class $r extends Ar {
3911
+ class Tr extends $r {
3916
3912
  /**
3917
3913
  * Инициализирует экземпляр класса {@link ContragentIc}.
3918
3914
  *
@@ -3955,7 +3951,7 @@ class $r extends Ar {
3955
3951
  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 ?? "");
3956
3952
  }
3957
3953
  }
3958
- class Tr extends $r {
3954
+ class br extends Tr {
3959
3955
  /**
3960
3956
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3961
3957
  *
@@ -3970,7 +3966,7 @@ class Tr extends $r {
3970
3966
  e && (this.kpp = e.kpp ?? "");
3971
3967
  }
3972
3968
  }
3973
- class at extends Tr {
3969
+ class at extends br {
3974
3970
  /**
3975
3971
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3976
3972
  *
@@ -4002,9 +3998,9 @@ class Ce {
4002
3998
  static createInstance(r) {
4003
3999
  switch (r.opf.slug) {
4004
4000
  case U.Ic:
4005
- return new $r(r);
4006
- case U.UlR:
4007
4001
  return new Tr(r);
4002
+ case U.UlR:
4003
+ return new br(r);
4008
4004
  case U.UlNr:
4009
4005
  return new at(r);
4010
4006
  default:
@@ -4055,7 +4051,7 @@ class Ct extends z {
4055
4051
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ke(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ke(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ke(s))));
4056
4052
  }
4057
4053
  }
4058
- class ue extends tt {
4054
+ class ue extends pr {
4059
4055
  /**
4060
4056
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4061
4057
  *
@@ -4092,7 +4088,7 @@ class ue extends tt {
4092
4088
  * Признак того, что указанный адрес является адресом транспортной компании.
4093
4089
  */
4094
4090
  t(this, "isTransportCompanyAddress");
4095
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new gr(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;
4091
+ 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;
4096
4092
  }
4097
4093
  }
4098
4094
  class rr extends te {
@@ -4145,10 +4141,10 @@ class rr extends te {
4145
4141
  * @inheritDoc
4146
4142
  */
4147
4143
  t(this, "extraData");
4148
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.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 ar(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Dr(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) ?? {};
4144
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.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 Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ar(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) ?? {};
4149
4145
  }
4150
4146
  }
4151
- class br {
4147
+ class Sr {
4152
4148
  /**
4153
4149
  * Возвращает очищенное значение фильтров, содержащие
4154
4150
  * только актуальные данные.
@@ -4158,11 +4154,11 @@ class br {
4158
4154
  return Object.keys(this).forEach((e) => {
4159
4155
  const s = this[e];
4160
4156
  A(s) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4161
- a(s) && s.trim().length === 0 || Fe(s.isNewRec) && s.isNewRec() || (r[e] = s);
4157
+ C(s) && s.trim().length === 0 || Fe(s.isNewRec) && s.isNewRec() || (r[e] = s);
4162
4158
  }), r;
4163
4159
  }
4164
4160
  }
4165
- class cs extends br {
4161
+ class cs extends Sr {
4166
4162
  /**
4167
4163
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4168
4164
  *
@@ -4214,11 +4210,11 @@ class cs extends br {
4214
4210
  /**
4215
4211
  * @inheritDoc
4216
4212
  */
4217
- t(this, "createdAt", new S());
4213
+ t(this, "createdAt", new b());
4218
4214
  /**
4219
4215
  * @inheritDoc
4220
4216
  */
4221
- t(this, "lastLoginDate", new S());
4217
+ t(this, "lastLoginDate", new b());
4222
4218
  /**
4223
4219
  * @inheritDoc
4224
4220
  */
@@ -4227,6 +4223,10 @@ class cs extends br {
4227
4223
  * @inheritDoc
4228
4224
  */
4229
4225
  t(this, "managers");
4226
+ /**
4227
+ * @inheritDoc
4228
+ */
4229
+ t(this, "includeSubordinateManagers");
4230
4230
  /**
4231
4231
  * @inheritDoc
4232
4232
  */
@@ -4263,8 +4263,8 @@ class cs extends br {
4263
4263
  * @inheritDoc
4264
4264
  */
4265
4265
  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 S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(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 Pe(D))) ?? [], 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 S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
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 Pe(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),
4268
4268
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4269
4269
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4270
4270
  };
@@ -4328,7 +4328,7 @@ class cs extends br {
4328
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;
4329
4329
  }
4330
4330
  }
4331
- class Sr extends re {
4331
+ class dr extends re {
4332
4332
  /**
4333
4333
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4334
4334
  *
@@ -4344,10 +4344,10 @@ class Sr extends re {
4344
4344
  * @inheritDoc
4345
4345
  */
4346
4346
  t(this, "creator");
4347
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
4347
+ 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
4348
  }
4349
4349
  }
4350
- class Rt extends b {
4350
+ class Rt extends S {
4351
4351
  /**
4352
4352
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4353
4353
  *
@@ -4384,7 +4384,7 @@ class Rt extends b {
4384
4384
  * @inheritDoc
4385
4385
  */
4386
4386
  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 Sr(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;
4387
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new dr(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;
4388
4388
  }
4389
4389
  }
4390
4390
  class Pt {
@@ -5204,7 +5204,7 @@ const Y = class Y extends p {
5204
5204
  getTypedDataArrayRequester(e, s, n = !1, o = {}) {
5205
5205
  const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = n ? Y.getCachedResponse(c) : void 0;
5206
5206
  return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5207
- const m = h.map((f) => je.instanceInitializer(e, f));
5207
+ const m = h.map((f) => Me.instanceInitializer(e, f));
5208
5208
  return n && m && this.cacheResponse(s, m), m;
5209
5209
  });
5210
5210
  }
@@ -5247,7 +5247,7 @@ class hs {
5247
5247
  * Текущая версия приложения.
5248
5248
  */
5249
5249
  t(this, "version");
5250
- this.date = a(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5250
+ this.date = C(r == null ? void 0 : r.date) ? R(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5251
5251
  }
5252
5252
  }
5253
5253
  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 || {});
@@ -5350,14 +5350,14 @@ class ms {
5350
5350
  const r = Gr(/* @__PURE__ */ new Date(), 1);
5351
5351
  return {
5352
5352
  // 'Следующий рабочий день' - это значение по-умолчанию
5353
- nextWorkingDay: { label: "Следующий рабочий день", from: Vr(r), to: Er(r) },
5354
- today: { label: "Сегодня", from: Oe(), to: Jr() },
5355
- yesterday: { label: "Вчера", from: Wr(), to: zr() },
5356
- tomorrow: { label: "Завтра", from: Br(), to: Mr() }
5353
+ nextWorkingDay: { label: "Следующий рабочий день", from: Kr(r), to: Vr(r) },
5354
+ today: { label: "Сегодня", from: Oe(), to: Er() },
5355
+ yesterday: { label: "Вчера", from: Jr(), to: Wr() },
5356
+ tomorrow: { label: "Завтра", from: zr(), to: Br() }
5357
5357
  };
5358
5358
  }
5359
5359
  }
5360
- class dr {
5360
+ class Ir {
5361
5361
  /**
5362
5362
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5363
5363
  *
@@ -5373,7 +5373,7 @@ class dr {
5373
5373
  */
5374
5374
  static getProductMultiplicity(r) {
5375
5375
  var e, s;
5376
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !dr.productIsMeasurable(r) ? r.properties.minCount : 1;
5376
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Ir.productIsMeasurable(r) ? r.properties.minCount : 1;
5377
5377
  }
5378
5378
  /**
5379
5379
  * Возвращает кратность длины для указанного товара.
@@ -5413,7 +5413,7 @@ class At extends me {
5413
5413
  const r = "/internal/managers", e = me.getCachedResponse(r);
5414
5414
  if (e)
5415
5415
  return e;
5416
- const n = (await this.get(r)).data.map((o) => je.instanceInitializer(Pe, o));
5416
+ const n = (await this.get(r)).data.map((o) => Me.instanceInitializer(Pe, o));
5417
5417
  return this.cacheResponse(r, n), n;
5418
5418
  }
5419
5419
  }
@@ -5485,7 +5485,7 @@ class ws {
5485
5485
  this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (s = r == null ? void 0 : r.delivery.address) == null ? void 0 : s.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
5486
5486
  }
5487
5487
  }
5488
- class Ir extends Sr {
5488
+ class kr extends dr {
5489
5489
  /**
5490
5490
  * Инициализирует экземпляр класса {@link OrderInfo}.
5491
5491
  *
@@ -5548,10 +5548,10 @@ class Ir extends Sr {
5548
5548
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5549
5549
  }, this.delivery = {
5550
5550
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5551
- date: a((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
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(),
5552
5552
  address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new ue(e.delivery.address) : void 0,
5553
5553
  warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ye(e.delivery.warehouse) : void 0
5554
- }, 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 = a(e == null ? void 0 : e.attachedAt) ? C(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;
5554
+ }, 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;
5555
5555
  }
5556
5556
  }
5557
5557
  var Tt = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(Tt || {}), bt = /* @__PURE__ */ ((i) => (i.WillWaiting = "will_waiting", i))(bt || {});
@@ -5571,7 +5571,7 @@ class T extends me {
5571
5571
  * первичного интереса.
5572
5572
  */
5573
5573
  getChannelPrimaryInterest() {
5574
- return this.getTypedDataArrayRequester(ar, "/internal/references/channel-primary-interest", !0);
5574
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
5575
5575
  }
5576
5576
  /**
5577
5577
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -5608,7 +5608,7 @@ class T extends me {
5608
5608
  * Возвращает {@link Promise} для получения справочника операторов.
5609
5609
  */
5610
5610
  getOperators() {
5611
- return this.getTypedDataArrayRequester(Cr, "/internal/references/operator", !0);
5611
+ return this.getTypedDataArrayRequester(Rr, "/internal/references/operator", !0);
5612
5612
  }
5613
5613
  /**
5614
5614
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -5626,13 +5626,13 @@ class T extends me {
5626
5626
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5627
5627
  */
5628
5628
  getPaymentTypes() {
5629
- return this.getTypedDataArrayRequester(Rr, "/public/references/payment-type", !0);
5629
+ return this.getTypedDataArrayRequester(Pr, "/public/references/payment-type", !0);
5630
5630
  }
5631
5631
  /**
5632
5632
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5633
5633
  */
5634
5634
  getResourceTypes() {
5635
- return this.getTypedDataArrayRequester(Pr, "/internal/references/resource-type", !0);
5635
+ return this.getTypedDataArrayRequester(Dr, "/internal/references/resource-type", !0);
5636
5636
  }
5637
5637
  /**
5638
5638
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -5644,7 +5644,7 @@ class T extends me {
5644
5644
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5645
5645
  */
5646
5646
  getSourcePrimaryInterest() {
5647
- return this.getTypedDataArrayRequester(Dr, "/internal/references/source-primary-interest", !0);
5647
+ return this.getTypedDataArrayRequester(Ar, "/internal/references/source-primary-interest", !0);
5648
5648
  }
5649
5649
  /**
5650
5650
  * Выполняет поиск данных о городах по терму в названии.
@@ -5686,7 +5686,7 @@ class T extends me {
5686
5686
  * Возвращает {@link Promise} для получения справочника типов свойств.
5687
5687
  */
5688
5688
  getPropertyTypes() {
5689
- return this.getTypedDataArrayRequester(vr, "/internal/references/property-type", !0);
5689
+ return this.getTypedDataArrayRequester(ar, "/internal/references/property-type", !0);
5690
5690
  }
5691
5691
  /**
5692
5692
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -5948,7 +5948,7 @@ const $ = W("common.references_private", () => {
5948
5948
  priceCoefficientsReference: be
5949
5949
  };
5950
5950
  });
5951
- class as extends br {
5951
+ class as extends Sr {
5952
5952
  /**
5953
5953
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5954
5954
  *
@@ -5976,7 +5976,7 @@ class as extends br {
5976
5976
  /**
5977
5977
  * @inheritDoc
5978
5978
  */
5979
- t(this, "createdAt", new S());
5979
+ t(this, "createdAt", new b());
5980
5980
  /**
5981
5981
  * @inheritDoc
5982
5982
  */
@@ -5984,7 +5984,7 @@ class as extends br {
5984
5984
  /**
5985
5985
  * @inheritDoc
5986
5986
  */
5987
- t(this, "deliveryDate", new S());
5987
+ t(this, "deliveryDate", new b());
5988
5988
  /**
5989
5989
  * @inheritDoc
5990
5990
  */
@@ -6012,7 +6012,7 @@ class as extends br {
6012
6012
  /**
6013
6013
  * @inheritDoc
6014
6014
  */
6015
- t(this, "attachedAt", new S());
6015
+ t(this, "attachedAt", new b());
6016
6016
  /**
6017
6017
  * @inheritDoc
6018
6018
  */
@@ -6049,7 +6049,7 @@ class as extends br {
6049
6049
  * @inheritDoc
6050
6050
  */
6051
6051
  t(this, "onlyMyRegions");
6052
- this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((u) => new Cr(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 S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new De(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 S(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Rr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ye(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6052
+ this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((u) => new Rr(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 b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new b(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new De(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 b(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Pr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ye(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6053
6053
  }
6054
6054
  /**
6055
6055
  * @inheritDoc
@@ -6098,7 +6098,7 @@ class as extends br {
6098
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;
6099
6099
  }
6100
6100
  }
6101
- class St extends mr {
6101
+ class St extends fr {
6102
6102
  /**
6103
6103
  * Инициализирует экземпляр класса {@link OrderItem}.
6104
6104
  *
@@ -6155,10 +6155,10 @@ class St extends mr {
6155
6155
  * Продукт, которым заменена текущая запись.
6156
6156
  */
6157
6157
  t(this, "replacement");
6158
- this.product = new G(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"));
6158
+ 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
6159
  }
6160
6160
  }
6161
- class I extends Ir {
6161
+ class I extends kr {
6162
6162
  /**
6163
6163
  * Инициализирует экземпляр класса {@link Order}.
6164
6164
  *
@@ -6249,7 +6249,7 @@ class dt {
6249
6249
  * @inheritDoc
6250
6250
  */
6251
6251
  t(this, "createdAt");
6252
- this.user = new _(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = a(r == null ? void 0 : r.createdAt) ? C(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6252
+ this.user = new _(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6253
6253
  }
6254
6254
  }
6255
6255
  class Cs extends Ae {
@@ -6272,7 +6272,7 @@ class Cs extends Ae {
6272
6272
  {},
6273
6273
  (o) => {
6274
6274
  const c = { ...o.data };
6275
- return c.data = c.data.map((u) => new Ir(u)), c;
6275
+ return c.data = c.data.map((u) => new kr(u)), c;
6276
6276
  },
6277
6277
  void 0,
6278
6278
  n
@@ -6289,7 +6289,7 @@ class Cs extends Ae {
6289
6289
  getOrdersCount(r, e = void 0) {
6290
6290
  return this.get(
6291
6291
  "/internal/orders/count",
6292
- r ? { filters: JSON.stringify((r instanceof M ? r : new M(r)).toPrimitive()) } : {},
6292
+ r ? { filters: JSON.stringify((r instanceof G ? r : new G(r)).toPrimitive()) } : {},
6293
6293
  void 0,
6294
6294
  void 0,
6295
6295
  e
@@ -6592,7 +6592,7 @@ class Le {
6592
6592
  * Источник клиентской цены.
6593
6593
  */
6594
6594
  t(this, "source");
6595
- 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) ?? Me.Product;
6595
+ 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;
6596
6596
  }
6597
6597
  }
6598
6598
  const _e = (i) => {
@@ -6720,7 +6720,7 @@ class It {
6720
6720
  * @inheritDoc
6721
6721
  */
6722
6722
  t(this, "currency");
6723
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new he(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new O(r.currency) : void 0;
6723
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new he(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new O(r.currency) : void 0;
6724
6724
  }
6725
6725
  }
6726
6726
  class kt extends he {
@@ -6884,7 +6884,7 @@ class ir {
6884
6884
  */
6885
6885
  t(this, "tags");
6886
6886
  var e;
6887
- this.resourceType = new Pr(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;
6887
+ this.resourceType = new Dr(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;
6888
6888
  }
6889
6889
  }
6890
6890
  class As extends p {
@@ -6966,7 +6966,7 @@ class $s extends p {
6966
6966
  }
6967
6967
  }
6968
6968
  var _t = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(_t || {});
6969
- class xt extends wr {
6969
+ class xt extends vr {
6970
6970
  /**
6971
6971
  * Инициализирует экземпляр класса {@link User}.
6972
6972
  *
@@ -7064,17 +7064,17 @@ class Ss {
7064
7064
  }
7065
7065
  export {
7066
7066
  mt as AnyReference,
7067
- rt as AppBaseConfig,
7067
+ tt as AppBaseConfig,
7068
7068
  Ne as BankAccount,
7069
7069
  Ae as BasePaginationProvider,
7070
7070
  lt as CalculationTypeEnum,
7071
7071
  ne as Cart,
7072
7072
  Jt as CartProvider,
7073
7073
  Vt as CatalogProvider,
7074
- pr as CatalogableItem,
7074
+ hr as CatalogableItem,
7075
7075
  N as Category,
7076
7076
  Ye as CategoryPricingRule,
7077
- ar as ChannelPrimaryInterest,
7077
+ Cr as ChannelPrimaryInterest,
7078
7078
  ns as City,
7079
7079
  De as CityWithRegionAndCountry,
7080
7080
  rr as Client,
@@ -7083,7 +7083,7 @@ export {
7083
7083
  x as ClientDataProvider,
7084
7084
  Kt as ClientPriceProvider,
7085
7085
  Qt as ClientPriceTemplateProvider,
7086
- G as ClientProduct,
7086
+ j as ClientProduct,
7087
7087
  Zt as ClientProductCategoryDataProvider,
7088
7088
  es as ClientProductDataProvider,
7089
7089
  te as ClientShortInfo,
@@ -7093,18 +7093,18 @@ export {
7093
7093
  gs as ConfiguratorProvider,
7094
7094
  Dt as ConfiguratorsEnum,
7095
7095
  Ue as Contact,
7096
- fr as ContactLinks,
7096
+ yr as ContactLinks,
7097
7097
  z as ContactPerson,
7098
7098
  Ct as ContactPersonRelated,
7099
7099
  ft as ContactPosition,
7100
7100
  ke as ContactRelation,
7101
- Ar as ContragentBase,
7101
+ $r as ContragentBase,
7102
7102
  Ce as ContragentFactory,
7103
- $r as ContragentIc,
7103
+ Tr as ContragentIc,
7104
7104
  vt as ContragentPerson,
7105
7105
  at as ContragentUlNr,
7106
- Tr as ContragentUlR,
7107
- Me as CostSourceEnum,
7106
+ br as ContragentUlR,
7107
+ Ge as CostSourceEnum,
7108
7108
  Z as Country,
7109
7109
  ze as CuratedDirection,
7110
7110
  We as Curator,
@@ -7114,61 +7114,61 @@ export {
7114
7114
  Pt as DataTablePaginationRequestParams,
7115
7115
  us as DataTableSortRequestParams,
7116
7116
  ms as DateTimeProvider,
7117
- tt as DeletableNamedIdentity,
7117
+ pr as DeletableNamedIdentity,
7118
7118
  ue as DeliveryAddress,
7119
7119
  F as DeliveryType,
7120
7120
  zt as DetailedJwtPayload,
7121
- Yr as DeviceTypeResolutionConfig,
7121
+ Xr as DeviceTypeResolutionConfig,
7122
7122
  nt as DiscountShortInfo,
7123
7123
  Ss as FieldValidationResultData,
7124
- M as FilterGroup,
7124
+ G as FilterGroup,
7125
7125
  Xe as FilterItem,
7126
7126
  Je as FilterOpEnum,
7127
- gr as GeoCoordinates,
7127
+ mr as GeoCoordinates,
7128
7128
  it as HiddenCatalogableItem,
7129
7129
  me as HttpCachedRequester,
7130
- Xr as HttpParamsConfig,
7130
+ Zr as HttpParamsConfig,
7131
7131
  p as HttpRequester,
7132
7132
  re as Identity,
7133
7133
  st as Image,
7134
- j as JwtPayload,
7134
+ M as JwtPayload,
7135
7135
  Pe as Manager,
7136
7136
  Be as ManagerCommon,
7137
7137
  ys as ManagerDataFactory,
7138
7138
  At as ManagerDataProvider,
7139
7139
  Lt as MetaTagItem,
7140
- b as NamedIdentity,
7141
- Cr as Operator,
7140
+ S as NamedIdentity,
7141
+ Rr as Operator,
7142
7142
  B as Opf,
7143
7143
  U as OpfEnum,
7144
7144
  I as Order,
7145
7145
  $t as OrderAction,
7146
7146
  ws as OrderEditorData,
7147
- Ir as OrderInfo,
7147
+ kr as OrderInfo,
7148
7148
  St as OrderItem,
7149
- mr as OrderItemBase,
7149
+ fr as OrderItemBase,
7150
7150
  yt as OrderPaymentStatus,
7151
- Sr as OrderShortInfo,
7151
+ dr as OrderShortInfo,
7152
7152
  $e as OrderStatus,
7153
7153
  bt as OrderStatusDetailEnum,
7154
7154
  Tt as OrderStatusEnum,
7155
7155
  dt as OrderStatusHistoryInfo,
7156
7156
  Cs as OrdersDataProvider,
7157
7157
  as as OrdersListFilters,
7158
- br as PaginationFiltersBase,
7158
+ Sr as PaginationFiltersBase,
7159
7159
  ee as PartnerGroup,
7160
- Rr as PaymentType,
7160
+ Pr as PaymentType,
7161
7161
  ve as PreferencesStorageProvider,
7162
7162
  Le as PriceAnalyze,
7163
7163
  Rs as PriceAnalyzeProvider,
7164
7164
  Re as PriceCoefficient,
7165
- hr as PriceCoefficientEnum,
7165
+ gr as PriceCoefficientEnum,
7166
7166
  Ps as PriceHistoryDataProvider,
7167
7167
  It as PriceHistoryItem,
7168
7168
  Q as PriceTemplate,
7169
7169
  de as PriceTemplateCategory,
7170
7170
  oe as PriceTemplateClient,
7171
- yr as PriceTemplateICatalogableItem,
7171
+ wr as PriceTemplateICatalogableItem,
7172
7172
  Ie as PriceTemplateProduct,
7173
7173
  rs as PriceTemplateProvider,
7174
7174
  le as PricingRole,
@@ -7178,12 +7178,12 @@ export {
7178
7178
  Yt as ProductCategoryDataProvider,
7179
7179
  Xt as ProductDataProvider,
7180
7180
  wt as ProductFileType,
7181
- Ge as ProductPriceCoefficient,
7181
+ je as ProductPriceCoefficient,
7182
7182
  kt as ProductPriceHistory,
7183
7183
  Qe as ProductUnit,
7184
7184
  ss as PropertiesProvider,
7185
7185
  ce as Property,
7186
- vr as PropertyType,
7186
+ ar as PropertyType,
7187
7187
  ut as PropertyTypeEnum,
7188
7188
  K as PropertyValue,
7189
7189
  Ds as RecommendationsDataProvider,
@@ -7192,29 +7192,29 @@ export {
7192
7192
  os as ReferenceDataFactory,
7193
7193
  T as ReferenceDataProvider,
7194
7194
  ge as Region,
7195
- Pr as ResourceType,
7195
+ Dr as ResourceType,
7196
7196
  q as SalesDirection,
7197
- Zr as SentryConfig,
7197
+ et as SentryConfig,
7198
7198
  ir as Seo,
7199
7199
  As as SeoDataProvider,
7200
- Dr as SourcePrimaryInterest,
7200
+ Ar as SourcePrimaryInterest,
7201
7201
  ot as StockCount,
7202
7202
  is as TemplateProductCategoryDataProvider,
7203
7203
  Et as TemplatesListFilters,
7204
- je as TypedInstanceFactory,
7205
- dr as UnitsHelper,
7204
+ Me as TypedInstanceFactory,
7205
+ Ir as UnitsHelper,
7206
7206
  ps as UnknownClientDataProvider,
7207
7207
  ur as UpdatableNamedIdentity,
7208
7208
  xt as User,
7209
7209
  Ts as UserAuthDataProvider,
7210
- wr as UserCommonInfo,
7210
+ vr as UserCommonInfo,
7211
7211
  Ot as UserDataProvider,
7212
7212
  pt as UserPricingRole,
7213
7213
  _ as UserShortInfo,
7214
7214
  _t as UserTypeEnum,
7215
7215
  hs as VersionConfig,
7216
7216
  ye as Warehouse,
7217
- et as WebSocketConfig,
7217
+ rt as WebSocketConfig,
7218
7218
  Ze as findCatalogItemByIdRecursive,
7219
7219
  er as flattenCatalogItems,
7220
7220
  fs as pluralize,