@snabcentr/common-lib 2.7.2 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- var 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 C, 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 a, 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";
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 k, addSeconds as Gr, addBusinessDays as Mr, 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
11
  class j {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -111,7 +111,7 @@ class j {
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Bt extends j {
114
+ class zt extends j {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -154,7 +154,7 @@ class Bt extends j {
154
154
  return new j(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(a(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(a(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);
@@ -489,7 +489,7 @@ 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 = jr(/* @__PURE__ */ new Map());
493
493
  function n() {
494
494
  e.value = void 0, A(i.value) || i.value.then((o) => {
495
495
  const c = j.getJwtPayload(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 = C(e == null ? void 0 : e.updatedAt) ? a(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 = C(e == null ? void 0 : e.deletedAt) ? a(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
  *
@@ -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 = C(e == null ? void 0 : e.publishedAt) ? a(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) ? a(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,16 +856,16 @@ class Q extends ur {
856
856
  * Дата и время создания шаблона.
857
857
  */
858
858
  t(this, "createdAt");
859
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(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
871
  class Ge {
@@ -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,7 +1099,7 @@ 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 = C(e == null ? void 0 : e.costDate) ? a(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
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);
1105
1105
  }
@@ -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 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 && 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] = je.simpleInstanceInitializer(r)), a.instances[r.name];
1496
1496
  }
1497
1497
  /**
1498
1498
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1591,22 +1591,22 @@ 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;
1609
- class Wt extends p {
1607
+ t(a, "responseHooks", []);
1608
+ let p = a;
1609
+ class Jt extends p {
1610
1610
  /**
1611
1611
  * Возвращает содержимое корзины указанного клиента.
1612
1612
  *
@@ -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
  *
@@ -1888,7 +1888,7 @@ class ht extends we {
1888
1888
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Pe(e.manager) : void 0;
1889
1889
  }
1890
1890
  }
1891
- class Ce extends ht {
1891
+ class ae extends ht {
1892
1892
  /**
1893
1893
  * Инициализирует экземпляр класса {@link ClientCategory}.
1894
1894
  *
@@ -1905,10 +1905,10 @@ class Ce 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 Ce(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 G(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 = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? a(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 = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(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,10 +2185,10 @@ class S {
2185
2185
  * Окончание периода.
2186
2186
  */
2187
2187
  t(this, "to");
2188
- this.from = C(r == null ? void 0 : r.from) ? a(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? a(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
- class Jt {
2191
+ class Et {
2192
2192
  /**
2193
2193
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2194
2194
  *
@@ -2210,12 +2210,12 @@ class Jt {
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
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2252,7 +2252,7 @@ class Jt {
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
  *
@@ -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 Re(r == null ? void 0 : r.minCoefficient);
2310
2310
  }
2311
2311
  }
2312
- class Et extends p {
2312
+ class Vt extends p {
2313
2313
  /**
2314
2314
  * Возвращает данные о результатах поиска категорий и товаров.
2315
2315
  *
@@ -2340,7 +2340,7 @@ class Et extends p {
2340
2340
  return s && (c += `&category_id=${s}`), n && (c += `&client_id=${n}`), c;
2341
2341
  }
2342
2342
  }
2343
- class Vt extends p {
2343
+ class Kt extends p {
2344
2344
  /**
2345
2345
  * Импортирует цены клиента из CSV файла.
2346
2346
  *
@@ -2539,7 +2539,7 @@ class Vt extends p {
2539
2539
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2540
2540
  }
2541
2541
  }
2542
- class Kt extends p {
2542
+ class Qt extends p {
2543
2543
  /**
2544
2544
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2545
2545
  *
@@ -2631,7 +2631,7 @@ class Kt extends p {
2631
2631
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2632
2632
  }
2633
2633
  }
2634
- class Qt extends p {
2634
+ class Yt extends p {
2635
2635
  /**
2636
2636
  * Возвращает список данных о корневых категориях.
2637
2637
  *
@@ -2704,7 +2704,7 @@ class Qt 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 Ge(o))), s;
2708
2708
  });
2709
2709
  }
2710
2710
  /**
@@ -2723,7 +2723,7 @@ class Qt extends p {
2723
2723
  });
2724
2724
  }
2725
2725
  }
2726
- class Yt extends p {
2726
+ class Xt extends p {
2727
2727
  /**
2728
2728
  * Возвращает данные об указанном продукте.
2729
2729
  *
@@ -2773,7 +2773,7 @@ class Yt extends p {
2773
2773
  });
2774
2774
  }
2775
2775
  }
2776
- class Xt extends p {
2776
+ class Zt extends p {
2777
2777
  /**
2778
2778
  * Возвращает список данных о корневых категориях указанного клиента.
2779
2779
  *
@@ -2789,7 +2789,7 @@ class Xt extends p {
2789
2789
  clientId: r,
2790
2790
  showHidden: e
2791
2791
  },
2792
- (s) => s.data.map((n) => new Ce(n))
2792
+ (s) => s.data.map((n) => new ae(n))
2793
2793
  );
2794
2794
  }
2795
2795
  /**
@@ -2810,7 +2810,7 @@ class Xt extends p {
2810
2810
  showHidden: s,
2811
2811
  withNestedCategories: n
2812
2812
  },
2813
- (o) => new Ce(o.data)
2813
+ (o) => new ae(o.data)
2814
2814
  );
2815
2815
  }
2816
2816
  /**
@@ -2835,7 +2835,7 @@ class Xt extends p {
2835
2835
  );
2836
2836
  }
2837
2837
  }
2838
- class Zt extends p {
2838
+ class es extends p {
2839
2839
  /**
2840
2840
  * Возвращает данные об указанном продукте для указанного клиента.
2841
2841
  *
@@ -2947,7 +2947,7 @@ class Ae extends p {
2947
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);
2948
2948
  }
2949
2949
  }
2950
- class es extends Ae {
2950
+ class rs extends Ae {
2951
2951
  /**
2952
2952
  * Возвращает список шаблонов прайс-листа.
2953
2953
  *
@@ -3151,7 +3151,7 @@ class es extends Ae {
3151
3151
  );
3152
3152
  }
3153
3153
  }
3154
- class rs extends p {
3154
+ class ts extends p {
3155
3155
  /**
3156
3156
  * Возвращает список ролей ценообразования.
3157
3157
  *
@@ -3231,7 +3231,7 @@ class rs extends p {
3231
3231
  );
3232
3232
  }
3233
3233
  }
3234
- class ts extends Ae {
3234
+ class ss extends Ae {
3235
3235
  /**
3236
3236
  * Возвращает пагинированный список свойств.
3237
3237
  *
@@ -3603,7 +3603,7 @@ class ts extends Ae {
3603
3603
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3604
3604
  }
3605
3605
  }
3606
- class ss extends p {
3606
+ class is extends p {
3607
3607
  /**
3608
3608
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3609
3609
  *
@@ -3700,7 +3700,7 @@ class mt extends w {
3700
3700
  }
3701
3701
  class Cr extends w {
3702
3702
  }
3703
- class is extends w {
3703
+ class ns extends w {
3704
3704
  }
3705
3705
  class ft extends w {
3706
3706
  }
@@ -3717,7 +3717,7 @@ class B extends w {
3717
3717
  });
3718
3718
  }
3719
3719
  }
3720
- class ar extends w {
3720
+ class Rr extends w {
3721
3721
  }
3722
3722
  class yt extends w {
3723
3723
  }
@@ -3725,11 +3725,11 @@ 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
  }
3732
- class ns {
3732
+ class os {
3733
3733
  /**
3734
3734
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
3735
3735
  *
@@ -3748,10 +3748,10 @@ class ns {
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 = C(e == null ? void 0 : e.deletedAt) ? a(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 = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? a(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 Ct extends Tr {
3969
+ class at extends br {
3974
3970
  /**
3975
3971
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3976
3972
  *
@@ -3993,7 +3989,7 @@ class Ct extends Tr {
3993
3989
  e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3994
3990
  }
3995
3991
  }
3996
- class ae {
3992
+ class Ce {
3997
3993
  /**
3998
3994
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3999
3995
  *
@@ -4002,11 +3998,11 @@ class ae {
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
- return new Ct(r);
4005
+ return new at(r);
4010
4006
  default:
4011
4007
  return new vt(r);
4012
4008
  }
@@ -4027,7 +4023,7 @@ class ke extends re {
4027
4023
  this.isPrimary = e.isPrimary;
4028
4024
  }
4029
4025
  }
4030
- class at extends z {
4026
+ class Ct extends z {
4031
4027
  /**
4032
4028
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4033
4029
  *
@@ -4055,7 +4051,7 @@ class at 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) => ae.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 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
  * только актуальные данные.
@@ -4162,7 +4158,7 @@ class br {
4162
4158
  }), r;
4163
4159
  }
4164
4160
  }
4165
- class os extends br {
4161
+ class cs extends Sr {
4166
4162
  /**
4167
4163
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4168
4164
  *
@@ -4214,11 +4210,11 @@ class os 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
  */
@@ -4263,8 +4259,8 @@ class os extends br {
4263
4259
  * @inheritDoc
4264
4260
  */
4265
4261
  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),
4262
+ 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.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 = {
4263
+ createdAt: new b((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4268
4264
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4269
4265
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4270
4266
  };
@@ -4328,7 +4324,7 @@ class os extends br {
4328
4324
  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
4325
  }
4330
4326
  }
4331
- class Sr extends re {
4327
+ class dr extends re {
4332
4328
  /**
4333
4329
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4334
4330
  *
@@ -4344,10 +4340,10 @@ class Sr extends re {
4344
4340
  * @inheritDoc
4345
4341
  */
4346
4342
  t(this, "creator");
4347
- this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
4343
+ 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
4344
  }
4349
4345
  }
4350
- class Rt extends b {
4346
+ class Rt extends S {
4351
4347
  /**
4352
4348
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4353
4349
  *
@@ -4384,7 +4380,7 @@ class Rt extends b {
4384
4380
  * @inheritDoc
4385
4381
  */
4386
4382
  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;
4383
+ 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
4384
  }
4389
4385
  }
4390
4386
  class Pt {
@@ -4405,7 +4401,7 @@ class Pt {
4405
4401
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4406
4402
  }
4407
4403
  }
4408
- class cs extends Pt {
4404
+ class ls extends Pt {
4409
4405
  /**
4410
4406
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4411
4407
  *
@@ -4436,7 +4432,7 @@ class cs extends Pt {
4436
4432
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4437
4433
  }
4438
4434
  }
4439
- class ls {
4435
+ class us {
4440
4436
  /**
4441
4437
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4442
4438
  *
@@ -4667,7 +4663,7 @@ class x extends Ae {
4667
4663
  getAllClientContacts(r) {
4668
4664
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4669
4665
  let s = [];
4670
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((n) => new at(n))), s;
4666
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((n) => new Ct(n))), s;
4671
4667
  });
4672
4668
  }
4673
4669
  /**
@@ -4818,7 +4814,7 @@ class x extends Ae {
4818
4814
  return this.post(
4819
4815
  `/internal/clients/${r}/contragents`,
4820
4816
  x.transformContragentClientDataToRequest(e),
4821
- (n) => ae.createInstance(n.data),
4817
+ (n) => Ce.createInstance(n.data),
4822
4818
  s
4823
4819
  );
4824
4820
  }
@@ -4834,7 +4830,7 @@ class x extends Ae {
4834
4830
  return this.patch(
4835
4831
  `/internal/clients/${r}/contragents/${e.id}`,
4836
4832
  x.transformContragentClientDataToRequest(e),
4837
- (n) => ae.createInstance(n.data),
4833
+ (n) => Ce.createInstance(n.data),
4838
4834
  s
4839
4835
  );
4840
4836
  }
@@ -5187,7 +5183,7 @@ const Y = class Y extends p {
5187
5183
  */
5188
5184
  cacheResponse(e, s) {
5189
5185
  Y.responseDataCache.set(e, {
5190
- validTo: jr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5186
+ validTo: Gr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5191
5187
  val: s
5192
5188
  });
5193
5189
  }
@@ -5214,7 +5210,7 @@ const Y = class Y extends p {
5214
5210
  */
5215
5211
  t(Y, "responseDataCache", /* @__PURE__ */ new Map());
5216
5212
  let me = Y;
5217
- class us extends p {
5213
+ class ps extends p {
5218
5214
  /**
5219
5215
  * Выполняет проверку занят ли указанный номер телефона.
5220
5216
  *
@@ -5228,7 +5224,7 @@ class us extends p {
5228
5224
  });
5229
5225
  }
5230
5226
  }
5231
- class ps {
5227
+ class hs {
5232
5228
  /**
5233
5229
  * Инициализирует экземпляр класса {@link VersionConfig}.
5234
5230
  *
@@ -5247,11 +5243,11 @@ class ps {
5247
5243
  * Текущая версия приложения.
5248
5244
  */
5249
5245
  t(this, "version");
5250
- this.date = C(r == null ? void 0 : r.date) ? a(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";
5246
+ 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
5247
  }
5252
5248
  }
5253
5249
  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 hs extends p {
5250
+ class gs extends p {
5255
5251
  /**
5256
5252
  * Возвращает настройки указанного конфигуратора для указанной категории.
5257
5253
  *
@@ -5342,22 +5338,22 @@ class hs extends p {
5342
5338
  });
5343
5339
  }
5344
5340
  }
5345
- class gs {
5341
+ class ms {
5346
5342
  /**
5347
5343
  * Возвращает диапазон дат по умолчанию.
5348
5344
  */
5349
5345
  static defaultDateRanges() {
5350
- const r = Gr(/* @__PURE__ */ new Date(), 1);
5346
+ const r = Mr(/* @__PURE__ */ new Date(), 1);
5351
5347
  return {
5352
5348
  // 'Следующий рабочий день' - это значение по-умолчанию
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() }
5349
+ nextWorkingDay: { label: "Следующий рабочий день", from: Kr(r), to: Vr(r) },
5350
+ today: { label: "Сегодня", from: Oe(), to: Er() },
5351
+ yesterday: { label: "Вчера", from: Jr(), to: Wr() },
5352
+ tomorrow: { label: "Завтра", from: zr(), to: Br() }
5357
5353
  };
5358
5354
  }
5359
5355
  }
5360
- class dr {
5356
+ class Ir {
5361
5357
  /**
5362
5358
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5363
5359
  *
@@ -5373,7 +5369,7 @@ class dr {
5373
5369
  */
5374
5370
  static getProductMultiplicity(r) {
5375
5371
  var e, s;
5376
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !dr.productIsMeasurable(r) ? r.properties.minCount : 1;
5372
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Ir.productIsMeasurable(r) ? r.properties.minCount : 1;
5377
5373
  }
5378
5374
  /**
5379
5375
  * Возвращает кратность длины для указанного товара.
@@ -5385,11 +5381,11 @@ class dr {
5385
5381
  return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((s = r.properties) != null && s.ignoreMinCountCheck) && ((n = r.properties) != null && n.minCount) ? r.properties.minCount : 0.01;
5386
5382
  }
5387
5383
  }
5388
- function ms(i, r) {
5384
+ function fs(i, r) {
5389
5385
  const e = [2, 0, 1, 1, 1, 2];
5390
5386
  return r[i % 100 > 4 && i % 100 < 20 ? 2 : e[Math.min(i % 10, 5)]];
5391
5387
  }
5392
- class fs {
5388
+ class ys {
5393
5389
  /**
5394
5390
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5395
5391
  */
@@ -5418,7 +5414,7 @@ class At extends me {
5418
5414
  }
5419
5415
  }
5420
5416
  var $t = /* @__PURE__ */ ((i) => (i.View = "view", i.Share = "share", i.EditTags = "edit_tags", i.SaveOrderIgnoredProducts = "save_order_ignored_products", i.ChangeStatus = "change_status", i.ChangeProducts = "change_products", i.ChangeOrderParameters = "change_order_parameters", i.Recalculate = "recalculate", i.AttachOrder = "attach_order", i.DetachOrder = "detach_order", i.ChangeAttachedOperator = "change_attached_operator", i.SendOnlinePaymentLink = "send_online_payment_link", i.ConfirmOnlineFullPayment = "confirm_online_full_payment", i.MergeOrders = "merge_orders", i.GetHistory = "get_history", i.CloneOrder = "clone_order", i.DeleteAttachedFile = "delete_attached_file", i))($t || {});
5421
- class ys {
5417
+ class ws {
5422
5418
  /**
5423
5419
  * Инициализирует экземпляр класса {@link OrderEditorData}.
5424
5420
  *
@@ -5485,7 +5481,7 @@ class ys {
5485
5481
  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
5482
  }
5487
5483
  }
5488
- class Ir extends Sr {
5484
+ class kr extends dr {
5489
5485
  /**
5490
5486
  * Инициализирует экземпляр класса {@link OrderInfo}.
5491
5487
  *
@@ -5548,13 +5544,13 @@ class Ir extends Sr {
5548
5544
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5549
5545
  }, this.delivery = {
5550
5546
  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) ? a(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5547
+ 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
5548
  address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new ue(e.delivery.address) : void 0,
5553
5549
  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 = C(e == null ? void 0 : e.attachedAt) ? a(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;
5550
+ }, 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
5551
  }
5556
5552
  }
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 || {});
5553
+ 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 || {});
5558
5554
  class T extends me {
5559
5555
  /**
5560
5556
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -5608,7 +5604,7 @@ class T extends me {
5608
5604
  * Возвращает {@link Promise} для получения справочника операторов.
5609
5605
  */
5610
5606
  getOperators() {
5611
- return this.getTypedDataArrayRequester(ar, "/internal/references/operator", !0);
5607
+ return this.getTypedDataArrayRequester(Rr, "/internal/references/operator", !0);
5612
5608
  }
5613
5609
  /**
5614
5610
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -5626,13 +5622,13 @@ class T extends me {
5626
5622
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5627
5623
  */
5628
5624
  getPaymentTypes() {
5629
- return this.getTypedDataArrayRequester(Rr, "/public/references/payment-type", !0);
5625
+ return this.getTypedDataArrayRequester(Pr, "/public/references/payment-type", !0);
5630
5626
  }
5631
5627
  /**
5632
5628
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5633
5629
  */
5634
5630
  getResourceTypes() {
5635
- return this.getTypedDataArrayRequester(Pr, "/internal/references/resource-type", !0);
5631
+ return this.getTypedDataArrayRequester(Dr, "/internal/references/resource-type", !0);
5636
5632
  }
5637
5633
  /**
5638
5634
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -5644,7 +5640,7 @@ class T extends me {
5644
5640
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5645
5641
  */
5646
5642
  getSourcePrimaryInterest() {
5647
- return this.getTypedDataArrayRequester(Dr, "/internal/references/source-primary-interest", !0);
5643
+ return this.getTypedDataArrayRequester(Ar, "/internal/references/source-primary-interest", !0);
5648
5644
  }
5649
5645
  /**
5650
5646
  * Выполняет поиск данных о городах по терму в названии.
@@ -5686,7 +5682,7 @@ class T extends me {
5686
5682
  * Возвращает {@link Promise} для получения справочника типов свойств.
5687
5683
  */
5688
5684
  getPropertyTypes() {
5689
- return this.getTypedDataArrayRequester(vr, "/internal/references/property-type", !0);
5685
+ return this.getTypedDataArrayRequester(ar, "/internal/references/property-type", !0);
5690
5686
  }
5691
5687
  /**
5692
5688
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -5781,7 +5777,7 @@ const $ = W("common.references_private", () => {
5781
5777
  */
5782
5778
  priceCoefficientsReference: l
5783
5779
  };
5784
- }), ws = W("common.references", () => {
5780
+ }), vs = W("common.references", () => {
5785
5781
  const i = P(() => {
5786
5782
  const l = $();
5787
5783
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((g) => {
@@ -5948,7 +5944,7 @@ const $ = W("common.references_private", () => {
5948
5944
  priceCoefficientsReference: be
5949
5945
  };
5950
5946
  });
5951
- class vs extends br {
5947
+ class as extends Sr {
5952
5948
  /**
5953
5949
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5954
5950
  *
@@ -5976,7 +5972,7 @@ class vs extends br {
5976
5972
  /**
5977
5973
  * @inheritDoc
5978
5974
  */
5979
- t(this, "createdAt", new S());
5975
+ t(this, "createdAt", new b());
5980
5976
  /**
5981
5977
  * @inheritDoc
5982
5978
  */
@@ -5984,7 +5980,7 @@ class vs extends br {
5984
5980
  /**
5985
5981
  * @inheritDoc
5986
5982
  */
5987
- t(this, "deliveryDate", new S());
5983
+ t(this, "deliveryDate", new b());
5988
5984
  /**
5989
5985
  * @inheritDoc
5990
5986
  */
@@ -6012,7 +6008,7 @@ class vs extends br {
6012
6008
  /**
6013
6009
  * @inheritDoc
6014
6010
  */
6015
- t(this, "attachedAt", new S());
6011
+ t(this, "attachedAt", new b());
6016
6012
  /**
6017
6013
  * @inheritDoc
6018
6014
  */
@@ -6049,7 +6045,7 @@ class vs extends br {
6049
6045
  * @inheritDoc
6050
6046
  */
6051
6047
  t(this, "onlyMyRegions");
6052
- this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((u) => new ar(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;
6048
+ 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
6049
  }
6054
6050
  /**
6055
6051
  * @inheritDoc
@@ -6098,7 +6094,7 @@ class vs extends br {
6098
6094
  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
6095
  }
6100
6096
  }
6101
- class bt extends mr {
6097
+ class St extends fr {
6102
6098
  /**
6103
6099
  * Инициализирует экземпляр класса {@link OrderItem}.
6104
6100
  *
@@ -6158,7 +6154,7 @@ class bt extends mr {
6158
6154
  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"));
6159
6155
  }
6160
6156
  }
6161
- class I extends Ir {
6157
+ class I extends kr {
6162
6158
  /**
6163
6159
  * Инициализирует экземпляр класса {@link Order}.
6164
6160
  *
@@ -6222,11 +6218,11 @@ class I extends Ir {
6222
6218
  this.products = (e.products ?? []).map((n) => {
6223
6219
  var c;
6224
6220
  const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
6225
- return new bt(n, o);
6226
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ae.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;
6221
+ return new St(n, o);
6222
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.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
6223
  }
6228
6224
  }
6229
- class St {
6225
+ class dt {
6230
6226
  /**
6231
6227
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6232
6228
  *
@@ -6249,7 +6245,7 @@ class St {
6249
6245
  * @inheritDoc
6250
6246
  */
6251
6247
  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 = C(r == null ? void 0 : r.createdAt) ? a(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6248
+ 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
6249
  }
6254
6250
  }
6255
6251
  class Cs extends Ae {
@@ -6272,7 +6268,7 @@ class Cs extends Ae {
6272
6268
  {},
6273
6269
  (o) => {
6274
6270
  const c = { ...o.data };
6275
- return c.data = c.data.map((u) => new Ir(u)), c;
6271
+ return c.data = c.data.map((u) => new kr(u)), c;
6276
6272
  },
6277
6273
  void 0,
6278
6274
  n
@@ -6433,6 +6429,18 @@ class Cs extends Ae {
6433
6429
  n
6434
6430
  );
6435
6431
  }
6432
+ /**
6433
+ * Изменяет только детализирующий статус (подстатус) заказа без смены основного
6434
+ * статуса и возвращает обновлённые данные заказа.
6435
+ *
6436
+ * @param orderId Идентификатор заказа.
6437
+ * @param statusDetail Slug детализирующего статуса заказа.
6438
+ *
6439
+ * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
6440
+ */
6441
+ changeOrderStatusDetail(r, e) {
6442
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (s) => new I(s.data));
6443
+ }
6436
6444
  /**
6437
6445
  * Возвращает историю изменения статусов заказа.
6438
6446
  *
@@ -6444,7 +6452,7 @@ class Cs extends Ae {
6444
6452
  return this.get(
6445
6453
  `/internal/orders/${r}/history`,
6446
6454
  {},
6447
- (e) => e.data.map((s) => new St(s))
6455
+ (e) => e.data.map((s) => new dt(s))
6448
6456
  );
6449
6457
  }
6450
6458
  /**
@@ -6600,7 +6608,7 @@ const _e = (i) => {
6600
6608
  const r = {};
6601
6609
  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;
6602
6610
  };
6603
- class as extends p {
6611
+ class Rs extends p {
6604
6612
  /**
6605
6613
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6606
6614
  *
@@ -6661,7 +6669,7 @@ class as extends p {
6661
6669
  );
6662
6670
  }
6663
6671
  }
6664
- class dt {
6672
+ class It {
6665
6673
  /**
6666
6674
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
6667
6675
  *
@@ -6708,10 +6716,10 @@ class dt {
6708
6716
  * @inheritDoc
6709
6717
  */
6710
6718
  t(this, "currency");
6711
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? a(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;
6719
+ 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;
6712
6720
  }
6713
6721
  }
6714
- class It extends he {
6722
+ class kt extends he {
6715
6723
  /**
6716
6724
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6717
6725
  *
@@ -6723,10 +6731,10 @@ class It extends he {
6723
6731
  * @inheritDoc
6724
6732
  */
6725
6733
  t(this, "history");
6726
- this.history = fe(e.history, (s) => new dt(s));
6734
+ this.history = fe(e.history, (s) => new It(s));
6727
6735
  }
6728
6736
  }
6729
- class Rs extends p {
6737
+ class Ps extends p {
6730
6738
  /**
6731
6739
  * Возвращает данные об истории изменения цен.
6732
6740
  *
@@ -6746,7 +6754,7 @@ class Rs extends p {
6746
6754
  (f) => A(f) || (H(f) || lr(f)) && X(f)
6747
6755
  ), n = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6748
6756
  return delete s.product, this.get(`/internal/price/products/${n}/history`, s).then((f) => [
6749
- new It(pe(f[0], { history: f }))
6757
+ new kt(pe(f[0], { history: f }))
6750
6758
  ]);
6751
6759
  }
6752
6760
  }
@@ -6768,7 +6776,7 @@ class sr {
6768
6776
  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)));
6769
6777
  }
6770
6778
  }
6771
- class Ps extends p {
6779
+ class Ds extends p {
6772
6780
  /**
6773
6781
  * Возвращает данные о рекомендациях указанной категории продуктов.
6774
6782
  *
@@ -6814,7 +6822,7 @@ class Ps extends p {
6814
6822
  });
6815
6823
  }
6816
6824
  }
6817
- class kt {
6825
+ class Lt {
6818
6826
  /**
6819
6827
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6820
6828
  *
@@ -6872,10 +6880,10 @@ class ir {
6872
6880
  */
6873
6881
  t(this, "tags");
6874
6882
  var e;
6875
- 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 kt(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6883
+ 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;
6876
6884
  }
6877
6885
  }
6878
- class Ds extends p {
6886
+ class As extends p {
6879
6887
  /**
6880
6888
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6881
6889
  *
@@ -6906,7 +6914,7 @@ class Ds extends p {
6906
6914
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6907
6915
  }
6908
6916
  }
6909
- class As extends p {
6917
+ class $s extends p {
6910
6918
  /**
6911
6919
  * Возвращает подсказки по адресам.
6912
6920
  *
@@ -6953,8 +6961,8 @@ class As extends p {
6953
6961
  });
6954
6962
  }
6955
6963
  }
6956
- var Lt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(Lt || {});
6957
- class _t extends wr {
6964
+ var _t = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(_t || {});
6965
+ class xt extends vr {
6958
6966
  /**
6959
6967
  * Инициализирует экземпляр класса {@link User}.
6960
6968
  *
@@ -6977,7 +6985,7 @@ class _t extends wr {
6977
6985
  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;
6978
6986
  }
6979
6987
  }
6980
- class $s extends p {
6988
+ class Ts extends p {
6981
6989
  /**
6982
6990
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6983
6991
  */
@@ -6993,16 +7001,16 @@ class $s extends p {
6993
7001
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6994
7002
  }
6995
7003
  }
6996
- class xt extends p {
7004
+ class Ot extends p {
6997
7005
  /**
6998
7006
  * Возвращает данные о текущем пользователе.
6999
7007
  */
7000
7008
  // eslint-disable-next-line class-methods-use-this
7001
7009
  getCurrentUser() {
7002
- return this.get("/internal/users/info", {}, (r) => new _t(r.data), !0);
7010
+ return this.get("/internal/users/info", {}, (r) => new xt(r.data), !0);
7003
7011
  }
7004
7012
  }
7005
- const Ot = W("common.user_state_private", () => {
7013
+ const qt = W("common.user_state_private", () => {
7006
7014
  const i = y({}), r = y(void 0);
7007
7015
  return {
7008
7016
  /**
@@ -7014,20 +7022,20 @@ const Ot = W("common.user_state_private", () => {
7014
7022
  */
7015
7023
  currentUser: r
7016
7024
  };
7017
- }), Ts = W("common.user_state", () => ({
7025
+ }), bs = W("common.user_state", () => ({
7018
7026
  /**
7019
7027
  * Данные о текущем пользователе.
7020
7028
  */
7021
7029
  currentUser: P(() => {
7022
- const r = Ot();
7023
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(xt).getCurrentUser().then((e) => {
7030
+ const r = qt();
7031
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Ot).getCurrentUser().then((e) => {
7024
7032
  r.currentUser = e;
7025
7033
  }).catch(v).finally(() => {
7026
7034
  r.dataLoaderList.currentUser = !1;
7027
7035
  })), r.currentUser;
7028
7036
  })
7029
7037
  }));
7030
- class bs {
7038
+ class Ss {
7031
7039
  /**
7032
7040
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
7033
7041
  *
@@ -7052,161 +7060,162 @@ class bs {
7052
7060
  }
7053
7061
  export {
7054
7062
  mt as AnyReference,
7055
- rt as AppBaseConfig,
7063
+ tt as AppBaseConfig,
7056
7064
  Ne as BankAccount,
7057
7065
  Ae as BasePaginationProvider,
7058
7066
  lt as CalculationTypeEnum,
7059
7067
  ne as Cart,
7060
- Wt as CartProvider,
7061
- Et as CatalogProvider,
7062
- pr as CatalogableItem,
7068
+ Jt as CartProvider,
7069
+ Vt as CatalogProvider,
7070
+ hr as CatalogableItem,
7063
7071
  N as Category,
7064
7072
  Ye as CategoryPricingRule,
7065
7073
  Cr as ChannelPrimaryInterest,
7066
- is as City,
7074
+ ns as City,
7067
7075
  De as CityWithRegionAndCountry,
7068
7076
  rr as Client,
7069
7077
  Rt as ClientAdditionalData,
7070
- Ce as ClientCategory,
7078
+ ae as ClientCategory,
7071
7079
  x as ClientDataProvider,
7072
- Vt as ClientPriceProvider,
7073
- Kt as ClientPriceTemplateProvider,
7080
+ Kt as ClientPriceProvider,
7081
+ Qt as ClientPriceTemplateProvider,
7074
7082
  G as ClientProduct,
7075
- Xt as ClientProductCategoryDataProvider,
7076
- Zt as ClientProductDataProvider,
7083
+ Zt as ClientProductCategoryDataProvider,
7084
+ es as ClientProductDataProvider,
7077
7085
  te as ClientShortInfo,
7078
7086
  gt as ClientsAdditionalDataRequestTypeEnum,
7079
- os as ClientsListFilters,
7087
+ cs as ClientsListFilters,
7080
7088
  he as CodedIdentity,
7081
- hs as ConfiguratorProvider,
7089
+ gs as ConfiguratorProvider,
7082
7090
  Dt as ConfiguratorsEnum,
7083
7091
  Ue as Contact,
7084
- fr as ContactLinks,
7092
+ yr as ContactLinks,
7085
7093
  z as ContactPerson,
7086
- at as ContactPersonRelated,
7094
+ Ct as ContactPersonRelated,
7087
7095
  ft as ContactPosition,
7088
7096
  ke as ContactRelation,
7089
- Ar as ContragentBase,
7090
- ae as ContragentFactory,
7091
- $r as ContragentIc,
7097
+ $r as ContragentBase,
7098
+ Ce as ContragentFactory,
7099
+ Tr as ContragentIc,
7092
7100
  vt as ContragentPerson,
7093
- Ct as ContragentUlNr,
7094
- Tr as ContragentUlR,
7101
+ at as ContragentUlNr,
7102
+ br as ContragentUlR,
7095
7103
  Me as CostSourceEnum,
7096
7104
  Z as Country,
7097
7105
  ze as CuratedDirection,
7098
7106
  We as Curator,
7099
7107
  O as Currency,
7100
- As as DataSuggestionProvider,
7101
- cs as DataTablePagination,
7108
+ $s as DataSuggestionProvider,
7109
+ ls as DataTablePagination,
7102
7110
  Pt as DataTablePaginationRequestParams,
7103
- ls as DataTableSortRequestParams,
7104
- gs as DateTimeProvider,
7105
- tt as DeletableNamedIdentity,
7111
+ us as DataTableSortRequestParams,
7112
+ ms as DateTimeProvider,
7113
+ pr as DeletableNamedIdentity,
7106
7114
  ue as DeliveryAddress,
7107
7115
  F as DeliveryType,
7108
- Bt as DetailedJwtPayload,
7109
- Yr as DeviceTypeResolutionConfig,
7116
+ zt as DetailedJwtPayload,
7117
+ Xr as DeviceTypeResolutionConfig,
7110
7118
  nt as DiscountShortInfo,
7111
- bs as FieldValidationResultData,
7119
+ Ss as FieldValidationResultData,
7112
7120
  M as FilterGroup,
7113
7121
  Xe as FilterItem,
7114
7122
  Je as FilterOpEnum,
7115
- gr as GeoCoordinates,
7123
+ mr as GeoCoordinates,
7116
7124
  it as HiddenCatalogableItem,
7117
7125
  me as HttpCachedRequester,
7118
- Xr as HttpParamsConfig,
7126
+ Zr as HttpParamsConfig,
7119
7127
  p as HttpRequester,
7120
7128
  re as Identity,
7121
7129
  st as Image,
7122
7130
  j as JwtPayload,
7123
7131
  Pe as Manager,
7124
7132
  Be as ManagerCommon,
7125
- fs as ManagerDataFactory,
7133
+ ys as ManagerDataFactory,
7126
7134
  At as ManagerDataProvider,
7127
- kt as MetaTagItem,
7128
- b as NamedIdentity,
7129
- ar as Operator,
7135
+ Lt as MetaTagItem,
7136
+ S as NamedIdentity,
7137
+ Rr as Operator,
7130
7138
  B as Opf,
7131
7139
  U as OpfEnum,
7132
7140
  I as Order,
7133
7141
  $t as OrderAction,
7134
- ys as OrderEditorData,
7135
- Ir as OrderInfo,
7136
- bt as OrderItem,
7137
- mr as OrderItemBase,
7142
+ ws as OrderEditorData,
7143
+ kr as OrderInfo,
7144
+ St as OrderItem,
7145
+ fr as OrderItemBase,
7138
7146
  yt as OrderPaymentStatus,
7139
- Sr as OrderShortInfo,
7147
+ dr as OrderShortInfo,
7140
7148
  $e as OrderStatus,
7149
+ bt as OrderStatusDetailEnum,
7141
7150
  Tt as OrderStatusEnum,
7142
- St as OrderStatusHistoryInfo,
7151
+ dt as OrderStatusHistoryInfo,
7143
7152
  Cs as OrdersDataProvider,
7144
- vs as OrdersListFilters,
7145
- br as PaginationFiltersBase,
7153
+ as as OrdersListFilters,
7154
+ Sr as PaginationFiltersBase,
7146
7155
  ee as PartnerGroup,
7147
- Rr as PaymentType,
7156
+ Pr as PaymentType,
7148
7157
  ve as PreferencesStorageProvider,
7149
7158
  Le as PriceAnalyze,
7150
- as as PriceAnalyzeProvider,
7159
+ Rs as PriceAnalyzeProvider,
7151
7160
  Re as PriceCoefficient,
7152
- hr as PriceCoefficientEnum,
7153
- Rs as PriceHistoryDataProvider,
7154
- dt as PriceHistoryItem,
7161
+ gr as PriceCoefficientEnum,
7162
+ Ps as PriceHistoryDataProvider,
7163
+ It as PriceHistoryItem,
7155
7164
  Q as PriceTemplate,
7156
7165
  de as PriceTemplateCategory,
7157
7166
  oe as PriceTemplateClient,
7158
- yr as PriceTemplateICatalogableItem,
7167
+ wr as PriceTemplateICatalogableItem,
7159
7168
  Ie as PriceTemplateProduct,
7160
- es as PriceTemplateProvider,
7169
+ rs as PriceTemplateProvider,
7161
7170
  le as PricingRole,
7162
- rs as PricingRoleProvider,
7171
+ ts as PricingRoleProvider,
7163
7172
  qe as PrimaryCatalogableItem,
7164
7173
  L as Product,
7165
- Qt as ProductCategoryDataProvider,
7166
- Yt as ProductDataProvider,
7174
+ Yt as ProductCategoryDataProvider,
7175
+ Xt as ProductDataProvider,
7167
7176
  wt as ProductFileType,
7168
7177
  Ge as ProductPriceCoefficient,
7169
- It as ProductPriceHistory,
7178
+ kt as ProductPriceHistory,
7170
7179
  Qe as ProductUnit,
7171
- ts as PropertiesProvider,
7180
+ ss as PropertiesProvider,
7172
7181
  ce as Property,
7173
- vr as PropertyType,
7182
+ ar as PropertyType,
7174
7183
  ut as PropertyTypeEnum,
7175
7184
  K as PropertyValue,
7176
- Ps as RecommendationsDataProvider,
7185
+ Ds as RecommendationsDataProvider,
7177
7186
  sr as RecommendationsList,
7178
7187
  w as Reference,
7179
- ns as ReferenceDataFactory,
7188
+ os as ReferenceDataFactory,
7180
7189
  T as ReferenceDataProvider,
7181
7190
  ge as Region,
7182
- Pr as ResourceType,
7191
+ Dr as ResourceType,
7183
7192
  q as SalesDirection,
7184
- Zr as SentryConfig,
7193
+ et as SentryConfig,
7185
7194
  ir as Seo,
7186
- Ds as SeoDataProvider,
7187
- Dr as SourcePrimaryInterest,
7195
+ As as SeoDataProvider,
7196
+ Ar as SourcePrimaryInterest,
7188
7197
  ot as StockCount,
7189
- ss as TemplateProductCategoryDataProvider,
7190
- Jt as TemplatesListFilters,
7198
+ is as TemplateProductCategoryDataProvider,
7199
+ Et as TemplatesListFilters,
7191
7200
  je as TypedInstanceFactory,
7192
- dr as UnitsHelper,
7193
- us as UnknownClientDataProvider,
7201
+ Ir as UnitsHelper,
7202
+ ps as UnknownClientDataProvider,
7194
7203
  ur as UpdatableNamedIdentity,
7195
- _t as User,
7196
- $s as UserAuthDataProvider,
7197
- wr as UserCommonInfo,
7198
- xt as UserDataProvider,
7204
+ xt as User,
7205
+ Ts as UserAuthDataProvider,
7206
+ vr as UserCommonInfo,
7207
+ Ot as UserDataProvider,
7199
7208
  pt as UserPricingRole,
7200
7209
  _ as UserShortInfo,
7201
- Lt as UserTypeEnum,
7202
- ps as VersionConfig,
7210
+ _t as UserTypeEnum,
7211
+ hs as VersionConfig,
7203
7212
  ye as Warehouse,
7204
- et as WebSocketConfig,
7213
+ rt as WebSocketConfig,
7205
7214
  Ze as findCatalogItemByIdRecursive,
7206
7215
  er as flattenCatalogItems,
7207
- ms as pluralize,
7216
+ fs as pluralize,
7208
7217
  Se as useAuthStateStore,
7209
7218
  d as useBaseConfigStateStore,
7210
- ws as useReferencesStore,
7211
- Ts as useUserStateStore
7219
+ vs as useReferencesStore,
7220
+ bs as useUserStateStore
7212
7221
  };