@snabcentr/common-lib 2.7.3 → 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 a, constant as Or, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as Fe, map as fe, forEach as Fr, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
5
+ import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as or, isArray as H, every as xr, split as Or, isString as C, constant as qr, toUpper as Nr, cloneDeep as Ur, toLower as Fr, isFunction as Fe, map as fe, forEach as Hr, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
6
6
  import { objectToCamel as He, objectToSnake as Ee } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
- import { ref as y, markRaw as Hr, computed as P } from "vue";
9
- import { isAfter as Ve, parseISO as C, startOfToday as Oe, format as k, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Mr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr } from "date-fns";
10
- import Kr, { CanceledError as Qr } from "axios";
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}.
@@ -154,7 +154,7 @@ class zt 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(C(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
381
+ if (!s.availableFor || Ve(R(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
382
382
  if (A(s.data) || X(s.data))
383
383
  throw new Error("Data is empty");
384
384
  return s.data;
@@ -452,7 +452,7 @@ class ve {
452
452
  const n = localStorage.getItem(s);
453
453
  if (n) {
454
454
  const o = JSON.parse(n);
455
- o.availableFor && !Ve(C(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !Ve(R(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -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 = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
680
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
681
681
  }
682
682
  }
683
- class tt extends ur {
683
+ class pr extends ur {
684
684
  /**
685
685
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
686
686
  *
@@ -692,7 +692,7 @@ class tt extends ur {
692
692
  * Дата и время последнего удаления.
693
693
  */
694
694
  t(this, "deletedAt");
695
- this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
695
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
696
696
  }
697
697
  }
698
698
  class st {
@@ -718,7 +718,7 @@ class st {
718
718
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
719
  }
720
720
  }
721
- class pr extends he {
721
+ class hr extends he {
722
722
  /**
723
723
  * Инициализирует экземпляр класса {@link CatalogableItem}.
724
724
  *
@@ -737,7 +737,7 @@ class pr extends he {
737
737
  this.slug = (e == null ? void 0 : e.slug) ?? "";
738
738
  }
739
739
  }
740
- class it extends pr {
740
+ class it extends hr {
741
741
  /**
742
742
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
743
743
  *
@@ -752,7 +752,7 @@ class it extends pr {
752
752
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
753
753
  }
754
754
  }
755
- class qe extends pr {
755
+ class qe extends hr {
756
756
  /**
757
757
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
758
758
  *
@@ -786,7 +786,7 @@ class je {
786
786
  return new r(e);
787
787
  }
788
788
  }
789
- class _ extends b {
789
+ class _ extends S {
790
790
  /**
791
791
  * Инициализирует экземпляр класса {@link UserShortInfo}.
792
792
  *
@@ -801,7 +801,7 @@ class _ extends b {
801
801
  this.type = e == null ? void 0 : e.type;
802
802
  }
803
803
  }
804
- class nt extends b {
804
+ class nt extends S {
805
805
  /**
806
806
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
807
807
  *
@@ -837,7 +837,7 @@ class nt extends b {
837
837
  * Дата и время удаления.
838
838
  */
839
839
  t(this, "deletedAt");
840
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new _(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
840
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? R(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new _(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
841
841
  }
842
842
  }
843
843
  class Q extends ur {
@@ -856,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 = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
859
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
860
860
  }
861
861
  }
862
- var hr = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(hr || {});
862
+ var gr = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(gr || {});
863
863
  class Re extends w {
864
864
  /**
865
865
  * Возвращает значение справочника коэффициента розничной цены.
866
866
  */
867
867
  static getRetailPriceCoefficient() {
868
- return { id: -2, slug: hr.Retail, name: "Розн. цена", guid: "", isNewRec: Or(!0) };
868
+ return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec: qr(!0) };
869
869
  }
870
870
  }
871
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 = a(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ot(h))) ?? [], this.type = "product";
1102
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new O(e.currency) : new O(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ot(h))) ?? [], this.type = "product";
1103
1103
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1104
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,21 +1591,21 @@ const R = class R {
1591
1591
  * Экземпляр объекта текущего класса.
1592
1592
  */
1593
1593
  // eslint-disable-next-line no-use-before-define
1594
- t(R, "instances", {}), /**
1594
+ t(a, "instances", {}), /**
1595
1595
  * Базовый обработчик ошибок выполнения запросов.
1596
1596
  *
1597
1597
  * @param error Данные об ошибке.
1598
1598
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1599
1599
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1600
1600
  */
1601
- t(R, "defaultErrorsResponseHandler", v), /**
1601
+ t(a, "defaultErrorsResponseHandler", v), /**
1602
1602
  * Список зарегистрированных хуков для запросов.
1603
1603
  */
1604
- t(R, "requestHooks", []), /**
1604
+ t(a, "requestHooks", []), /**
1605
1605
  * Список зарегистрированных хуков для ответов.
1606
1606
  */
1607
- t(R, "responseHooks", []);
1608
- let p = R;
1607
+ t(a, "responseHooks", []);
1608
+ let p = a;
1609
1609
  class Jt extends p {
1610
1610
  /**
1611
1611
  * Возвращает содержимое корзины указанного клиента.
@@ -1741,7 +1741,7 @@ class N extends we {
1741
1741
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new N(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new L(o));
1742
1742
  }
1743
1743
  }
1744
- class fr {
1744
+ class yr {
1745
1745
  /**
1746
1746
  * Инициализирует экземпляр класса {@link ContactLinks}.
1747
1747
  *
@@ -1761,7 +1761,7 @@ class fr {
1761
1761
  }
1762
1762
  class q extends w {
1763
1763
  }
1764
- class Be extends b {
1764
+ class Be extends S {
1765
1765
  /**
1766
1766
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1767
1767
  *
@@ -1789,12 +1789,12 @@ class Be extends b {
1789
1789
  * @inheritDoc
1790
1790
  */
1791
1791
  t(this, "isRegionalDirector");
1792
- this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new fr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1792
+ this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new yr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1793
1793
  }
1794
1794
  }
1795
1795
  class ze extends w {
1796
1796
  }
1797
- class pt extends b {
1797
+ class pt extends S {
1798
1798
  /**
1799
1799
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1800
1800
  *
@@ -1908,7 +1908,7 @@ class ae extends ht {
1908
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 = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2035
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2036
2036
  }
2037
2037
  }
2038
- class te extends wr {
2038
+ class te extends vr {
2039
2039
  /**
2040
2040
  * Инициализирует экземпляр класса {@link Client}.
2041
2041
  *
@@ -2108,10 +2108,10 @@ class oe extends re {
2108
2108
  * Данные шаблона прайс-листа.
2109
2109
  */
2110
2110
  t(this, "priceTemplate");
2111
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
2111
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
2112
2112
  }
2113
2113
  }
2114
- class Ie extends yr {
2114
+ class Ie extends wr {
2115
2115
  /**
2116
2116
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2117
2117
  *
@@ -2126,9 +2126,9 @@ class Ie extends yr {
2126
2126
  this.product = new L(e == null ? void 0 : e.product);
2127
2127
  }
2128
2128
  }
2129
- class vr extends w {
2129
+ class ar extends w {
2130
2130
  }
2131
- class ce extends b {
2131
+ class ce extends S {
2132
2132
  /**
2133
2133
  * Инициализирует экземпляр класса {@link Property}.
2134
2134
  *
@@ -2148,7 +2148,7 @@ class ce extends b {
2148
2148
  * Дополнительные метаданные свойства.
2149
2149
  */
2150
2150
  t(this, "metadata");
2151
- this.type = new vr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2151
+ this.type = new ar(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2152
2152
  }
2153
2153
  }
2154
2154
  class K {
@@ -2170,7 +2170,7 @@ class K {
2170
2170
  this.property = new ce(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2171
2171
  }
2172
2172
  }
2173
- class S {
2173
+ class b {
2174
2174
  /**
2175
2175
  * Инициализирует экземпляр класса {@link DatePeriod}.
2176
2176
  *
@@ -2185,7 +2185,7 @@ class S {
2185
2185
  * Окончание периода.
2186
2186
  */
2187
2187
  t(this, "to");
2188
- this.from = a(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = a(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
2188
+ this.from = C(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
2189
2189
  }
2190
2190
  }
2191
2191
  class Et {
@@ -2210,12 +2210,12 @@ class Et {
2210
2210
  /**
2211
2211
  * Период создания.
2212
2212
  */
2213
- t(this, "createdAt", new S());
2213
+ t(this, "createdAt", new b());
2214
2214
  /**
2215
2215
  * Период изменения.
2216
2216
  */
2217
- t(this, "updatedAt", new S());
2218
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new S(r == null ? void 0 : r.createdAt), this.updatedAt = new S(r == null ? void 0 : r.updatedAt);
2217
+ t(this, "updatedAt", new b());
2218
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new b(r == null ? void 0 : r.createdAt), this.updatedAt = new b(r == null ? void 0 : r.updatedAt);
2219
2219
  }
2220
2220
  /**
2221
2221
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2248,11 +2248,11 @@ class Et {
2248
2248
  return Object.keys(this).forEach((c) => {
2249
2249
  const u = this[c];
2250
2250
  // eslint-disable-next-line prettier/prettier
2251
- A(u) || a(u) && u.trim().length === 0 || Fe(u.isNewRec) && u.isNewRec() || (r[c] = u);
2251
+ A(u) || C(u) && u.trim().length === 0 || Fe(u.isNewRec) && u.isNewRec() || (r[c] = u);
2252
2252
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2253
2253
  }
2254
2254
  }
2255
- class le extends b {
2255
+ class le extends S {
2256
2256
  /**
2257
2257
  * Инициализирует экземпляр класса {@link PricingRole}.
2258
2258
  *
@@ -2704,7 +2704,7 @@ class Yt extends p {
2704
2704
  getCategoryProductsCoefficients(r) {
2705
2705
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2706
2706
  const { data: s } = e;
2707
- return Fr(s, (n) => n.map((o) => new Ge(o))), s;
2707
+ return Hr(s, (n) => n.map((o) => new Ge(o))), s;
2708
2708
  });
2709
2709
  }
2710
2710
  /**
@@ -3698,7 +3698,7 @@ function er(i) {
3698
3698
  var gt = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i.SalesDirection = "sales_direction", i.Managers = "managers", i.Curators = "curators", i))(gt || {}), U = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(U || {});
3699
3699
  class mt extends w {
3700
3700
  }
3701
- class ar extends w {
3701
+ class Cr extends w {
3702
3702
  }
3703
3703
  class ns extends w {
3704
3704
  }
@@ -3717,7 +3717,7 @@ class B extends w {
3717
3717
  });
3718
3718
  }
3719
3719
  }
3720
- class Cr extends w {
3720
+ class Rr extends w {
3721
3721
  }
3722
3722
  class yt extends w {
3723
3723
  }
@@ -3725,7 +3725,7 @@ class $e extends w {
3725
3725
  }
3726
3726
  class ee extends w {
3727
3727
  }
3728
- class Rr extends w {
3728
+ class Pr extends w {
3729
3729
  }
3730
3730
  class wt extends w {
3731
3731
  }
@@ -3748,10 +3748,10 @@ class os {
3748
3748
  return r.id === 0 && r.slug === "-undefined-";
3749
3749
  }
3750
3750
  }
3751
- class Pr extends w {
3752
- }
3753
3751
  class Dr extends w {
3754
3752
  }
3753
+ class Ar extends w {
3754
+ }
3755
3755
  class Ne extends re {
3756
3756
  /**
3757
3757
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3783,7 +3783,7 @@ class Ne extends re {
3783
3783
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new O(e.currency));
3784
3784
  }
3785
3785
  }
3786
- class Ue extends b {
3786
+ class Ue extends S {
3787
3787
  /**
3788
3788
  * Инициализирует экземпляр класса {@link Contact}.
3789
3789
  *
@@ -3834,10 +3834,10 @@ class z extends Ue {
3834
3834
  * Дата и время последнего удаления.
3835
3835
  */
3836
3836
  t(this, "deletedAt");
3837
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3837
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3838
3838
  }
3839
3839
  }
3840
- class Ar extends b {
3840
+ class $r extends pr {
3841
3841
  /**
3842
3842
  * Инициализирует экземпляр класса {@link ContragentBase}.
3843
3843
  *
@@ -3878,16 +3878,12 @@ class Ar extends b {
3878
3878
  * Данные пользователя, создавшего запись.
3879
3879
  */
3880
3880
  t(this, "creator");
3881
- /**
3882
- * Дата и время последнего изменения данных.
3883
- */
3884
- t(this, "updatedAt");
3885
3881
  /**
3886
3882
  * Данные пользователя, который внес последние изменения в запись.
3887
3883
  */
3888
3884
  t(this, "updater");
3889
3885
  if (e) {
3890
- if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3886
+ if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3891
3887
  const s = [];
3892
3888
  e.contacts.forEach((n) => {
3893
3889
  s.push(new z(n));
@@ -3902,7 +3898,7 @@ class Ar extends b {
3902
3898
  }
3903
3899
  }
3904
3900
  }
3905
- class vt extends Ar {
3901
+ class vt extends $r {
3906
3902
  /**
3907
3903
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3908
3904
  *
@@ -3912,7 +3908,7 @@ class vt extends Ar {
3912
3908
  super(r);
3913
3909
  }
3914
3910
  }
3915
- class $r extends Ar {
3911
+ class Tr extends $r {
3916
3912
  /**
3917
3913
  * Инициализирует экземпляр класса {@link ContragentIc}.
3918
3914
  *
@@ -3955,7 +3951,7 @@ class $r extends Ar {
3955
3951
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3956
3952
  }
3957
3953
  }
3958
- class Tr extends $r {
3954
+ class br extends Tr {
3959
3955
  /**
3960
3956
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3961
3957
  *
@@ -3970,7 +3966,7 @@ class Tr extends $r {
3970
3966
  e && (this.kpp = e.kpp ?? "");
3971
3967
  }
3972
3968
  }
3973
- class at extends Tr {
3969
+ class at extends br {
3974
3970
  /**
3975
3971
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3976
3972
  *
@@ -4002,9 +3998,9 @@ class Ce {
4002
3998
  static createInstance(r) {
4003
3999
  switch (r.opf.slug) {
4004
4000
  case U.Ic:
4005
- return new $r(r);
4006
- case U.UlR:
4007
4001
  return new Tr(r);
4002
+ case U.UlR:
4003
+ return new br(r);
4008
4004
  case U.UlNr:
4009
4005
  return new at(r);
4010
4006
  default:
@@ -4055,7 +4051,7 @@ class Ct extends z {
4055
4051
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ke(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ke(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ke(s))));
4056
4052
  }
4057
4053
  }
4058
- class ue extends tt {
4054
+ class ue extends pr {
4059
4055
  /**
4060
4056
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4061
4057
  *
@@ -4092,7 +4088,7 @@ class ue extends tt {
4092
4088
  * Признак того, что указанный адрес является адресом транспортной компании.
4093
4089
  */
4094
4090
  t(this, "isTransportCompanyAddress");
4095
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new gr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((n) => new z(n))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4091
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new mr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((n) => new z(n))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4096
4092
  }
4097
4093
  }
4098
4094
  class rr extends te {
@@ -4145,10 +4141,10 @@ class rr extends te {
4145
4141
  * @inheritDoc
4146
4142
  */
4147
4143
  t(this, "extraData");
4148
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ue(u))) ?? [], this.channelPrimaryInterest = new ar(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Dr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4144
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ue(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ar(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4149
4145
  }
4150
4146
  }
4151
- class br {
4147
+ class Sr {
4152
4148
  /**
4153
4149
  * Возвращает очищенное значение фильтров, содержащие
4154
4150
  * только актуальные данные.
@@ -4158,11 +4154,11 @@ class br {
4158
4154
  return Object.keys(this).forEach((e) => {
4159
4155
  const s = this[e];
4160
4156
  A(s) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4161
- a(s) && s.trim().length === 0 || Fe(s.isNewRec) && s.isNewRec() || (r[e] = s);
4157
+ C(s) && s.trim().length === 0 || Fe(s.isNewRec) && s.isNewRec() || (r[e] = s);
4162
4158
  }), r;
4163
4159
  }
4164
4160
  }
4165
- class cs extends br {
4161
+ class cs extends Sr {
4166
4162
  /**
4167
4163
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4168
4164
  *
@@ -4214,11 +4210,11 @@ class cs extends br {
4214
4210
  /**
4215
4211
  * @inheritDoc
4216
4212
  */
4217
- t(this, "createdAt", new S());
4213
+ t(this, "createdAt", new b());
4218
4214
  /**
4219
4215
  * @inheritDoc
4220
4216
  */
4221
- t(this, "lastLoginDate", new S());
4217
+ t(this, "lastLoginDate", new b());
4222
4218
  /**
4223
4219
  * @inheritDoc
4224
4220
  */
@@ -4263,8 +4259,8 @@ class cs 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 cs 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 = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
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 {
@@ -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
  }
@@ -5247,7 +5243,7 @@ class hs {
5247
5243
  * Текущая версия приложения.
5248
5244
  */
5249
5245
  t(this, "version");
5250
- this.date = a(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
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 || {});
@@ -5347,17 +5343,17 @@ class ms {
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
  * Возвращает кратность длины для указанного товара.
@@ -5485,7 +5481,7 @@ class ws {
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,10 +5544,10 @@ 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: a((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
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 = a(e == null ? void 0 : e.attachedAt) ? C(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
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
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 || {});
@@ -5571,7 +5567,7 @@ class T extends me {
5571
5567
  * первичного интереса.
5572
5568
  */
5573
5569
  getChannelPrimaryInterest() {
5574
- return this.getTypedDataArrayRequester(ar, "/internal/references/channel-primary-interest", !0);
5570
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
5575
5571
  }
5576
5572
  /**
5577
5573
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -5608,7 +5604,7 @@ class T extends me {
5608
5604
  * Возвращает {@link Promise} для получения справочника операторов.
5609
5605
  */
5610
5606
  getOperators() {
5611
- return this.getTypedDataArrayRequester(Cr, "/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} для получения справочника коэффициентов цен.
@@ -5948,7 +5944,7 @@ const $ = W("common.references_private", () => {
5948
5944
  priceCoefficientsReference: be
5949
5945
  };
5950
5946
  });
5951
- class as extends br {
5947
+ class as extends Sr {
5952
5948
  /**
5953
5949
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5954
5950
  *
@@ -5976,7 +5972,7 @@ class as 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 as 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 as 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 as 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 Cr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new De(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new S(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Rr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ye(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
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 as 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 St extends mr {
6097
+ class St extends fr {
6102
6098
  /**
6103
6099
  * Инициализирует экземпляр класса {@link OrderItem}.
6104
6100
  *
@@ -6158,7 +6154,7 @@ class St 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
  *
@@ -6249,7 +6245,7 @@ class dt {
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 = a(r == null ? void 0 : r.createdAt) ? C(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
@@ -6720,7 +6716,7 @@ class It {
6720
6716
  * @inheritDoc
6721
6717
  */
6722
6718
  t(this, "currency");
6723
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new he(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new O(r.currency) : void 0;
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;
6724
6720
  }
6725
6721
  }
6726
6722
  class kt extends he {
@@ -6884,7 +6880,7 @@ class ir {
6884
6880
  */
6885
6881
  t(this, "tags");
6886
6882
  var e;
6887
- this.resourceType = new Pr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new Lt(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
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;
6888
6884
  }
6889
6885
  }
6890
6886
  class As extends p {
@@ -6966,7 +6962,7 @@ class $s extends p {
6966
6962
  }
6967
6963
  }
6968
6964
  var _t = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(_t || {});
6969
- class xt extends wr {
6965
+ class xt extends vr {
6970
6966
  /**
6971
6967
  * Инициализирует экземпляр класса {@link User}.
6972
6968
  *
@@ -7064,17 +7060,17 @@ class Ss {
7064
7060
  }
7065
7061
  export {
7066
7062
  mt as AnyReference,
7067
- rt as AppBaseConfig,
7063
+ tt as AppBaseConfig,
7068
7064
  Ne as BankAccount,
7069
7065
  Ae as BasePaginationProvider,
7070
7066
  lt as CalculationTypeEnum,
7071
7067
  ne as Cart,
7072
7068
  Jt as CartProvider,
7073
7069
  Vt as CatalogProvider,
7074
- pr as CatalogableItem,
7070
+ hr as CatalogableItem,
7075
7071
  N as Category,
7076
7072
  Ye as CategoryPricingRule,
7077
- ar as ChannelPrimaryInterest,
7073
+ Cr as ChannelPrimaryInterest,
7078
7074
  ns as City,
7079
7075
  De as CityWithRegionAndCountry,
7080
7076
  rr as Client,
@@ -7093,17 +7089,17 @@ export {
7093
7089
  gs as ConfiguratorProvider,
7094
7090
  Dt as ConfiguratorsEnum,
7095
7091
  Ue as Contact,
7096
- fr as ContactLinks,
7092
+ yr as ContactLinks,
7097
7093
  z as ContactPerson,
7098
7094
  Ct as ContactPersonRelated,
7099
7095
  ft as ContactPosition,
7100
7096
  ke as ContactRelation,
7101
- Ar as ContragentBase,
7097
+ $r as ContragentBase,
7102
7098
  Ce as ContragentFactory,
7103
- $r as ContragentIc,
7099
+ Tr as ContragentIc,
7104
7100
  vt as ContragentPerson,
7105
7101
  at as ContragentUlNr,
7106
- Tr as ContragentUlR,
7102
+ br as ContragentUlR,
7107
7103
  Me as CostSourceEnum,
7108
7104
  Z as Country,
7109
7105
  ze as CuratedDirection,
@@ -7114,20 +7110,20 @@ export {
7114
7110
  Pt as DataTablePaginationRequestParams,
7115
7111
  us as DataTableSortRequestParams,
7116
7112
  ms as DateTimeProvider,
7117
- tt as DeletableNamedIdentity,
7113
+ pr as DeletableNamedIdentity,
7118
7114
  ue as DeliveryAddress,
7119
7115
  F as DeliveryType,
7120
7116
  zt as DetailedJwtPayload,
7121
- Yr as DeviceTypeResolutionConfig,
7117
+ Xr as DeviceTypeResolutionConfig,
7122
7118
  nt as DiscountShortInfo,
7123
7119
  Ss as FieldValidationResultData,
7124
7120
  M as FilterGroup,
7125
7121
  Xe as FilterItem,
7126
7122
  Je as FilterOpEnum,
7127
- gr as GeoCoordinates,
7123
+ mr as GeoCoordinates,
7128
7124
  it as HiddenCatalogableItem,
7129
7125
  me as HttpCachedRequester,
7130
- Xr as HttpParamsConfig,
7126
+ Zr as HttpParamsConfig,
7131
7127
  p as HttpRequester,
7132
7128
  re as Identity,
7133
7129
  st as Image,
@@ -7137,38 +7133,38 @@ export {
7137
7133
  ys as ManagerDataFactory,
7138
7134
  At as ManagerDataProvider,
7139
7135
  Lt as MetaTagItem,
7140
- b as NamedIdentity,
7141
- Cr as Operator,
7136
+ S as NamedIdentity,
7137
+ Rr as Operator,
7142
7138
  B as Opf,
7143
7139
  U as OpfEnum,
7144
7140
  I as Order,
7145
7141
  $t as OrderAction,
7146
7142
  ws as OrderEditorData,
7147
- Ir as OrderInfo,
7143
+ kr as OrderInfo,
7148
7144
  St as OrderItem,
7149
- mr as OrderItemBase,
7145
+ fr as OrderItemBase,
7150
7146
  yt as OrderPaymentStatus,
7151
- Sr as OrderShortInfo,
7147
+ dr as OrderShortInfo,
7152
7148
  $e as OrderStatus,
7153
7149
  bt as OrderStatusDetailEnum,
7154
7150
  Tt as OrderStatusEnum,
7155
7151
  dt as OrderStatusHistoryInfo,
7156
7152
  Cs as OrdersDataProvider,
7157
7153
  as as OrdersListFilters,
7158
- br as PaginationFiltersBase,
7154
+ Sr as PaginationFiltersBase,
7159
7155
  ee as PartnerGroup,
7160
- Rr as PaymentType,
7156
+ Pr as PaymentType,
7161
7157
  ve as PreferencesStorageProvider,
7162
7158
  Le as PriceAnalyze,
7163
7159
  Rs as PriceAnalyzeProvider,
7164
7160
  Re as PriceCoefficient,
7165
- hr as PriceCoefficientEnum,
7161
+ gr as PriceCoefficientEnum,
7166
7162
  Ps as PriceHistoryDataProvider,
7167
7163
  It as PriceHistoryItem,
7168
7164
  Q as PriceTemplate,
7169
7165
  de as PriceTemplateCategory,
7170
7166
  oe as PriceTemplateClient,
7171
- yr as PriceTemplateICatalogableItem,
7167
+ wr as PriceTemplateICatalogableItem,
7172
7168
  Ie as PriceTemplateProduct,
7173
7169
  rs as PriceTemplateProvider,
7174
7170
  le as PricingRole,
@@ -7183,7 +7179,7 @@ export {
7183
7179
  Qe as ProductUnit,
7184
7180
  ss as PropertiesProvider,
7185
7181
  ce as Property,
7186
- vr as PropertyType,
7182
+ ar as PropertyType,
7187
7183
  ut as PropertyTypeEnum,
7188
7184
  K as PropertyValue,
7189
7185
  Ds as RecommendationsDataProvider,
@@ -7192,29 +7188,29 @@ export {
7192
7188
  os as ReferenceDataFactory,
7193
7189
  T as ReferenceDataProvider,
7194
7190
  ge as Region,
7195
- Pr as ResourceType,
7191
+ Dr as ResourceType,
7196
7192
  q as SalesDirection,
7197
- Zr as SentryConfig,
7193
+ et as SentryConfig,
7198
7194
  ir as Seo,
7199
7195
  As as SeoDataProvider,
7200
- Dr as SourcePrimaryInterest,
7196
+ Ar as SourcePrimaryInterest,
7201
7197
  ot as StockCount,
7202
7198
  is as TemplateProductCategoryDataProvider,
7203
7199
  Et as TemplatesListFilters,
7204
7200
  je as TypedInstanceFactory,
7205
- dr as UnitsHelper,
7201
+ Ir as UnitsHelper,
7206
7202
  ps as UnknownClientDataProvider,
7207
7203
  ur as UpdatableNamedIdentity,
7208
7204
  xt as User,
7209
7205
  Ts as UserAuthDataProvider,
7210
- wr as UserCommonInfo,
7206
+ vr as UserCommonInfo,
7211
7207
  Ot as UserDataProvider,
7212
7208
  pt as UserPricingRole,
7213
7209
  _ as UserShortInfo,
7214
7210
  _t as UserTypeEnum,
7215
7211
  hs as VersionConfig,
7216
7212
  ye as Warehouse,
7217
- et as WebSocketConfig,
7213
+ rt as WebSocketConfig,
7218
7214
  Ze as findCatalogItemByIdRecursive,
7219
7215
  er as flattenCatalogItems,
7220
7216
  fs as pluralize,