@snabcentr/common-lib 1.79.0 → 1.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/sc-common-lib.js +385 -315
  3. package/dist/sc-common-lib.js.map +1 -1
  4. package/dist/sc-common-lib.umd.cjs +1 -1
  5. package/dist/sc-common-lib.umd.cjs.map +1 -1
  6. package/dist/src/catalog/interfaces/i-predefined-properties.d.ts +1 -1
  7. package/dist/src/catalog/interfaces/i-predefined-properties.d.ts.map +1 -1
  8. package/dist/src/catalog/providers/index.d.ts +1 -0
  9. package/dist/src/catalog/providers/index.d.ts.map +1 -1
  10. package/dist/src/catalog/providers/template-product-category-data-provider.d.ts +40 -0
  11. package/dist/src/catalog/providers/template-product-category-data-provider.d.ts.map +1 -0
  12. package/dist/src/config/index.d.ts +0 -1
  13. package/dist/src/config/index.d.ts.map +1 -1
  14. package/dist/src/configurator/interfaces/i-configurator-calculate-params-base.d.ts +6 -0
  15. package/dist/src/configurator/interfaces/i-configurator-calculate-params-base.d.ts.map +1 -0
  16. package/dist/src/configurator/interfaces/i-configurator-calculate-params-sandwich.d.ts +16 -0
  17. package/dist/src/configurator/interfaces/i-configurator-calculate-params-sandwich.d.ts.map +1 -0
  18. package/dist/src/configurator/interfaces/i-configurator-calculate-result-sandwich.d.ts +19 -0
  19. package/dist/src/configurator/interfaces/i-configurator-calculate-result-sandwich.d.ts.map +1 -0
  20. package/dist/src/configurator/interfaces/i-configurator-calculate-sheet-sandwich.d.ts +10 -0
  21. package/dist/src/configurator/interfaces/i-configurator-calculate-sheet-sandwich.d.ts.map +1 -0
  22. package/dist/src/configurator/interfaces/i-sandwich-calculate-item.d.ts +18 -0
  23. package/dist/src/configurator/interfaces/i-sandwich-calculate-item.d.ts.map +1 -0
  24. package/dist/src/configurator/interfaces/index.d.ts +5 -0
  25. package/dist/src/configurator/interfaces/index.d.ts.map +1 -1
  26. package/dist/src/configurator/providers/configurator-provider.d.ts +12 -0
  27. package/dist/src/configurator/providers/configurator-provider.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/src/config/functions/index.d.ts +0 -2
  30. package/dist/src/config/functions/index.d.ts.map +0 -1
  31. package/dist/src/config/functions/load-remote-config.d.ts +0 -8
  32. package/dist/src/config/functions/load-remote-config.d.ts.map +0 -1
@@ -1,14 +1,14 @@
1
- var Tr = Object.defineProperty;
2
- var ar = (n, r, e) => r in n ? Tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => ar(n, typeof r != "symbol" ? r + "" : r, e);
1
+ var $r = Object.defineProperty;
2
+ var Tr = (n, r, e) => r in n ? $r(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => Tr(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as sr } from "jwt-decode";
5
- import { merge as ne, isNil as A, isEmpty as K, noop as w, mapValues as ir, isArray as V, every as br, split as Sr, toUpper as kr, constant as Ir, isString as v, cloneDeep as Lr, toLower as xr, isFunction as qe, map as ve, forEach as dr, isDate as Ie, omitBy as nr, isObject as or } from "lodash-es";
5
+ import { merge as ne, isNil as A, isEmpty as K, noop as w, mapValues as ir, isArray as V, every as br, split as Sr, toUpper as kr, constant as Ir, isString as C, cloneDeep as Lr, toLower as xr, isFunction as qe, map as pe, forEach as dr, isDate as Ie, omitBy as nr, isObject as or } from "lodash-es";
6
6
  import { objectToCamel as Oe, objectToSnake as ze } from "ts-case-convert";
7
- import { defineStore as j } from "pinia";
7
+ import { defineStore as G } from "pinia";
8
8
  import { ref as y, markRaw as _r, computed as D } from "vue";
9
- import { isAfter as We, parseISO as C, startOfToday as Le, format as q, addSeconds as qr, addBusinessDays as Or, endOfTomorrow as Nr, startOfTomorrow as Ur, endOfYesterday as Hr, startOfYesterday as jr, endOfToday as Gr, endOfDay as Fr, startOfDay as Mr } from "date-fns";
9
+ import { isAfter as We, parseISO as v, startOfToday as Le, format as O, addSeconds as qr, addBusinessDays as Or, endOfTomorrow as Nr, startOfTomorrow as Ur, endOfYesterday as Hr, startOfYesterday as jr, endOfToday as Gr, endOfDay as Fr, startOfDay as Mr } from "date-fns";
10
10
  import Br from "axios";
11
- class O {
11
+ class N {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class O {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = sr(r), s = new O(Oe(e));
110
+ const e = sr(r), s = new N(Oe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Ot extends O {
114
+ class Ot extends N {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,7 +151,7 @@ class Ot extends O {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new O(Oe(sr(e)));
154
+ return new N(Oe(sr(e)));
155
155
  }
156
156
  }
157
157
  class zr {
@@ -198,7 +198,7 @@ class Wr {
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 Er {
201
+ class Jr {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -243,7 +243,7 @@ class Er {
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class Jr {
246
+ class Er {
247
247
  /**
248
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
249
249
  *
@@ -326,17 +326,17 @@ class Vr {
326
326
  */
327
327
  t(this, "dateFormats");
328
328
  var e, s, i;
329
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Wr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new zr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Er({
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Wr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new zr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Jr({
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 Jr(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 Er(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: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
336
336
  };
337
337
  }
338
338
  }
339
- const k = j("common.config", () => {
339
+ const k = G("common.config", () => {
340
340
  const n = y(new Vr());
341
341
  return {
342
342
  /**
@@ -359,7 +359,7 @@ const k = j("common.config", () => {
359
359
  }
360
360
  };
361
361
  });
362
- class me {
362
+ class fe {
363
363
  /**
364
364
  * Возвращает актуальные и не просроченные данные из хранилища.
365
365
  *
@@ -378,7 +378,7 @@ class me {
378
378
  if (e)
379
379
  try {
380
380
  const s = JSON.parse(e);
381
- if (!s.availableFor || We(C(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
381
+ if (!s.availableFor || We(v(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
382
382
  if (A(s.data) || K(s.data))
383
383
  throw new Error("Data is empty");
384
384
  return s.data;
@@ -452,7 +452,7 @@ class me {
452
452
  const i = localStorage.getItem(s);
453
453
  if (i) {
454
454
  const o = JSON.parse(i);
455
- o.availableFor && !We(C(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !We(v(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -468,19 +468,19 @@ class me {
468
468
  }
469
469
  }
470
470
  }
471
- function Ee(n) {
471
+ function Je(n) {
472
472
  try {
473
- const r = O.getJwtPayload(n);
473
+ const r = N.getJwtPayload(n);
474
474
  return new Date(r.exp * 1e3);
475
475
  } catch {
476
476
  return;
477
477
  }
478
478
  }
479
- const B = j("common.auth_state_private", () => {
479
+ const z = G("common.auth_state_private", () => {
480
480
  const n = y(
481
481
  (() => {
482
482
  var u;
483
- const o = me.getActualDataFromStorage(
483
+ const o = fe.getActualDataFromStorage(
484
484
  "sc.token"
485
485
  /* JwtToken */
486
486
  );
@@ -492,7 +492,7 @@ const B = j("common.auth_state_private", () => {
492
492
  ), r = y(void 0), e = y(void 0), s = _r(/* @__PURE__ */ new Map());
493
493
  function i() {
494
494
  e.value = void 0, A(n.value) || n.value.then((o) => {
495
- const c = O.getJwtPayload(o);
495
+ const c = N.getJwtPayload(o);
496
496
  e.value = c.exp * 1e3 > Date.now() ? ir(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(w);
498
498
  }
@@ -518,45 +518,45 @@ const B = j("common.auth_state_private", () => {
518
518
  */
519
519
  recalculateUserPermissions: i
520
520
  };
521
- }), $e = j("common.auth_state", () => {
521
+ }), ae = G("common.auth_state", () => {
522
522
  const n = D(() => {
523
- const o = B();
523
+ const o = z();
524
524
  if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), me.saveActualDataToStorage("sc.token", u, Ee(u)), o.recalculateUserPermissions();
527
+ o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Je(u)), o.recalculateUserPermissions();
528
528
  }).catch(w);
529
529
  }
530
530
  return o.jwtToken;
531
531
  });
532
532
  function r(o) {
533
- B().jwtTokenUpdater = o;
533
+ z().jwtTokenUpdater = o;
534
534
  }
535
535
  function e(o) {
536
- const c = B();
537
- c.jwtToken = Promise.resolve(o), me.saveActualDataToStorage("sc.token", o, Ee(o)), c.recalculateUserPermissions();
536
+ const c = z();
537
+ c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Je(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
- const o = B();
541
- o.jwtToken = void 0, o.userPermissions = void 0, me.saveActualDataToStorage("sc.token", void 0);
540
+ const o = z();
541
+ o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
543
  function i(o) {
544
- const c = B();
544
+ const c = z();
545
545
  !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
546
- const g = O.getJwtPayload(f);
547
- c.userPermissions = g.exp * 1e3 > Date.now() ? ir(g.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
546
+ const g = N.getJwtPayload(f);
547
+ c.userPermissions = g.exp * 1e3 > Date.now() ? ir(g.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
548
548
  }).catch(w);
549
549
  const u = V(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
552
  const h = D(() => {
553
553
  const f = (g) => {
554
- var M;
555
- const b = Sr(g, ".");
556
- if (b.length < 2)
554
+ var B;
555
+ const S = Sr(g, ".");
556
+ if (S.length < 2)
557
557
  return !1;
558
- const [ee, re] = b, F = (M = B().userPermissions) == null ? void 0 : M[ee];
559
- return V(F) && F.includes(re);
558
+ const [ee, re] = S, M = (B = z().userPermissions) == null ? void 0 : B[ee];
559
+ return V(M) && M.includes(re);
560
560
  };
561
561
  return V(o) ? br(o, (g) => f(g)) : f(o);
562
562
  });
@@ -591,7 +591,7 @@ const B = j("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class G {
594
+ class F {
595
595
  /**
596
596
  * Инициализирует экземпляр класса {@link Identity}.
597
597
  *
@@ -616,7 +616,7 @@ class G {
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 a extends G {
619
+ class T extends F {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,7 +631,7 @@ class a extends G {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class oe extends a {
634
+ class oe extends T {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
637
637
  *
@@ -680,7 +680,7 @@ class xe extends cr {
680
680
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
681
681
  }
682
682
  }
683
- class pe extends xe {
683
+ class he extends xe {
684
684
  /**
685
685
  * Инициализирует экземпляр класса {@link BaseCategory}.
686
686
  *
@@ -708,7 +708,7 @@ class pe extends xe {
708
708
  }
709
709
  }
710
710
  var lr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(lr || {});
711
- class R extends a {
711
+ class R extends T {
712
712
  /**
713
713
  * Инициализирует экземпляр класса {@link Reference}.
714
714
  *
@@ -727,7 +727,7 @@ class R extends a {
727
727
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
728
728
  }
729
729
  }
730
- class Ce extends R {
730
+ class ve extends R {
731
731
  /**
732
732
  * Возвращает значение справочника коэффициента розничной цены.
733
733
  */
@@ -762,7 +762,7 @@ class Ne {
762
762
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
763
763
  */
764
764
  t(this, "readOnly");
765
- this.coefficient = new Ce(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;
765
+ this.coefficient = new ve(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;
766
766
  }
767
767
  }
768
768
  class ur {
@@ -835,7 +835,7 @@ class Kr {
835
835
  this.warehouse = new Pe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
836
836
  }
837
837
  }
838
- class pr extends a {
838
+ class pr extends T {
839
839
  /**
840
840
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
841
841
  *
@@ -847,7 +847,7 @@ class pr extends a {
847
847
  * Дата и время последнего изменения.
848
848
  */
849
849
  t(this, "updatedAt");
850
- this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
850
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
851
851
  }
852
852
  }
853
853
  class Qr extends pr {
@@ -862,7 +862,7 @@ class Qr extends pr {
862
862
  * Дата и время последнего удаления.
863
863
  */
864
864
  t(this, "deletedAt");
865
- this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
865
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
866
866
  }
867
867
  }
868
868
  class Yr {
@@ -903,7 +903,7 @@ class Xr extends cr {
903
903
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
904
904
  }
905
905
  }
906
- class N extends a {
906
+ class U extends T {
907
907
  /**
908
908
  * Инициализирует экземпляр класса {@link Currency}.
909
909
  *
@@ -930,7 +930,7 @@ class N extends a {
930
930
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
931
931
  }
932
932
  }
933
- class Je extends a {
933
+ class Ee extends T {
934
934
  /**
935
935
  * Инициализирует экземпляр класса {@link ProductUnit}.
936
936
  *
@@ -957,7 +957,7 @@ class Je extends a {
957
957
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
958
958
  }
959
959
  }
960
- class S extends Xr {
960
+ class b extends Xr {
961
961
  /**
962
962
  * Инициализирует экземпляр класса {@link Product}.
963
963
  *
@@ -1034,7 +1034,7 @@ class S extends Xr {
1034
1034
  * Список коэффициентов цен на продукт.
1035
1035
  */
1036
1036
  t(this, "priceCoefficients");
1037
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Je(e.unit) : new Je(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new N(e.currency) : new N(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(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 = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new Kr(h))) ?? [], this.type = "product";
1037
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ee(e.unit) : new Ee(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new U(e.currency) : new U(), 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) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new Kr(h))) ?? [], this.type = "product";
1038
1038
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1039
1039
  s && (this.category = new xe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new xe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Yr(h, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Ne(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1040
1040
  }
@@ -1057,7 +1057,7 @@ class S extends Xr {
1057
1057
  return this.retailCostRub ?? this.costRub;
1058
1058
  }
1059
1059
  }
1060
- class Zr extends G {
1060
+ class Zr extends F {
1061
1061
  /**
1062
1062
  * Инициализирует экземпляр класса {@link CartItemBase}.
1063
1063
  *
@@ -1109,7 +1109,7 @@ class Zr extends G {
1109
1109
  * Признак того, что позиция является дополнительной продажей.
1110
1110
  */
1111
1111
  t(this, "isAdditionalSale");
1112
- this.product = new S(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new pe(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Lr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
1112
+ this.product = new b(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Lr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
1113
1113
  }
1114
1114
  }
1115
1115
  class et extends Zr {
@@ -1158,7 +1158,7 @@ class et extends Zr {
1158
1158
  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;
1159
1159
  }
1160
1160
  }
1161
- class ge {
1161
+ class me {
1162
1162
  /**
1163
1163
  * Инициализирует экземпляр класса {@link Cart}.
1164
1164
  *
@@ -1238,7 +1238,7 @@ const P = class P {
1238
1238
  // eslint-disable-next-line class-methods-use-this
1239
1239
  t(this, "authRequestInterceptor", async (r) => {
1240
1240
  let e;
1241
- return A($e().jwtToken) || (e = await $e().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1241
+ return A(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1242
1242
  });
1243
1243
  /**
1244
1244
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -1262,7 +1262,7 @@ const P = class P {
1262
1262
  t(this, "authErrorsResponseInterceptors", (r) => {
1263
1263
  var s;
1264
1264
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1265
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : ($e().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1265
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1266
1266
  });
1267
1267
  /**
1268
1268
  * Перехватчик ответа для вызова пользовательских хуков.
@@ -1464,7 +1464,7 @@ class Nt extends p {
1464
1464
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1465
1465
  */
1466
1466
  getCart(r) {
1467
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ge(e.data));
1467
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new me(e.data));
1468
1468
  }
1469
1469
  /**
1470
1470
  * Удаляет всё содержимое корзины.
@@ -1502,7 +1502,7 @@ class Nt extends p {
1502
1502
  is_additional_sale: e.isAdditionalSale,
1503
1503
  ...e.configuratorParams
1504
1504
  },
1505
- (i) => new ge(i.data),
1505
+ (i) => new me(i.data),
1506
1506
  s
1507
1507
  );
1508
1508
  }
@@ -1532,7 +1532,7 @@ class Nt extends p {
1532
1532
  is_additional_sale: e.isAdditionalSale,
1533
1533
  ...e.configuratorParams
1534
1534
  },
1535
- (i) => new ge(i.data),
1535
+ (i) => new me(i.data),
1536
1536
  s
1537
1537
  );
1538
1538
  }
@@ -1556,7 +1556,7 @@ class Nt extends p {
1556
1556
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1557
1557
  */
1558
1558
  addCartItemFromCSV(r, e) {
1559
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ge(s.data));
1559
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new me(s.data));
1560
1560
  }
1561
1561
  /**
1562
1562
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1570,7 +1570,7 @@ class Nt extends p {
1570
1570
  }
1571
1571
  }
1572
1572
  var rt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(rt || {}), He = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(He || {}), tt = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(tt || {});
1573
- class W extends pe {
1573
+ class x extends he {
1574
1574
  /**
1575
1575
  * Инициализирует экземпляр класса {@link Category}.
1576
1576
  *
@@ -1587,10 +1587,10 @@ class W extends pe {
1587
1587
  * Список продуктов категории.
1588
1588
  */
1589
1589
  t(this, "products");
1590
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new W(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new S(o));
1590
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new x(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new b(o));
1591
1591
  }
1592
1592
  }
1593
- class d extends a {
1593
+ class _ extends T {
1594
1594
  /**
1595
1595
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1596
1596
  *
@@ -1605,7 +1605,7 @@ class d extends a {
1605
1605
  this.type = e == null ? void 0 : e.type;
1606
1606
  }
1607
1607
  }
1608
- class st extends a {
1608
+ class st extends T {
1609
1609
  /**
1610
1610
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1611
1611
  *
@@ -1641,10 +1641,10 @@ class st extends a {
1641
1641
  * Дата и время удаления.
1642
1642
  */
1643
1643
  t(this, "deletedAt");
1644
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = v(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 d(e == null ? void 0 : e.owner), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1644
+ 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) ? v(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) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1645
1645
  }
1646
1646
  }
1647
- class E extends pr {
1647
+ class J extends pr {
1648
1648
  /**
1649
1649
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1650
1650
  *
@@ -1660,10 +1660,10 @@ class E extends pr {
1660
1660
  * Дата и время создания шаблона.
1661
1661
  */
1662
1662
  t(this, "createdAt");
1663
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1663
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1664
1664
  }
1665
1665
  }
1666
- class Y extends S {
1666
+ class Y extends b {
1667
1667
  /**
1668
1668
  * Инициализирует экземпляр класса {@link ClientProduct}.
1669
1669
  *
@@ -1699,7 +1699,7 @@ class Y extends S {
1699
1699
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1700
1700
  */
1701
1701
  t(this, "isFavorite");
1702
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? He.Product, this.discount = e != null && e.discount ? new st(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new E(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1702
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? He.Product, this.discount = e != null && e.discount ? new st(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new J(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1703
1703
  }
1704
1704
  }
1705
1705
  class hr {
@@ -1720,9 +1720,9 @@ class hr {
1720
1720
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1721
1721
  }
1722
1722
  }
1723
- class _ extends R {
1723
+ class q extends R {
1724
1724
  }
1725
- class je extends a {
1725
+ class je extends T {
1726
1726
  /**
1727
1727
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1728
1728
  *
@@ -1750,12 +1750,12 @@ class je extends a {
1750
1750
  * @inheritDoc
1751
1751
  */
1752
1752
  t(this, "isRegionalDirector");
1753
- this.salesDirection = e != null && e.salesDirection ? new _(e.salesDirection) : new _(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new hr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1753
+ 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 hr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1754
1754
  }
1755
1755
  }
1756
1756
  class Ge extends R {
1757
1757
  }
1758
- class it extends a {
1758
+ class it extends T {
1759
1759
  /**
1760
1760
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1761
1761
  *
@@ -1818,7 +1818,7 @@ class Re extends je {
1818
1818
  this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new it(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Ge(i))) ?? [];
1819
1819
  }
1820
1820
  }
1821
- class nt extends pe {
1821
+ class nt extends he {
1822
1822
  /**
1823
1823
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1824
1824
  *
@@ -1849,7 +1849,7 @@ class nt extends pe {
1849
1849
  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 Re(e.manager) : void 0;
1850
1850
  }
1851
1851
  }
1852
- class fe extends nt {
1852
+ class ye extends nt {
1853
1853
  /**
1854
1854
  * Инициализирует экземпляр класса {@link ClientCategory}.
1855
1855
  *
@@ -1866,7 +1866,7 @@ class fe extends nt {
1866
1866
  * Список продуктов категории.
1867
1867
  */
1868
1868
  t(this, "products");
1869
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new fe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Y(o));
1869
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ye(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Y(o));
1870
1870
  }
1871
1871
  }
1872
1872
  class gr {
@@ -1884,10 +1884,10 @@ class gr {
1884
1884
  * Процент, который прибавляется к значению выбранного коэффициента.
1885
1885
  */
1886
1886
  t(this, "increasePercent");
1887
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ce(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1887
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new ve(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1888
1888
  }
1889
1889
  }
1890
- class Te extends gr {
1890
+ class $e extends gr {
1891
1891
  /**
1892
1892
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1893
1893
  *
@@ -1899,10 +1899,10 @@ class Te extends gr {
1899
1899
  * Базовые данные о продукте.
1900
1900
  */
1901
1901
  t(this, "productCategory");
1902
- this.productCategory = new pe(e == null ? void 0 : e.productCategory);
1902
+ this.productCategory = new he(e == null ? void 0 : e.productCategory);
1903
1903
  }
1904
1904
  }
1905
- class Fe extends a {
1905
+ class Fe extends T {
1906
1906
  /**
1907
1907
  * Инициализирует экземпляр класса {@link Curator}.
1908
1908
  *
@@ -1957,7 +1957,7 @@ class Me extends R {
1957
1957
  e && (this.region = new ce(e.region));
1958
1958
  }
1959
1959
  }
1960
- class mr extends a {
1960
+ class mr extends T {
1961
1961
  /**
1962
1962
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1963
1963
  *
@@ -1993,10 +1993,10 @@ class mr extends a {
1993
1993
  * Признак активности учетной записи пользователя.
1994
1994
  */
1995
1995
  t(this, "isActive");
1996
- 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 _(e.salesDirection) : void 0, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1996
+ 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) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1997
1997
  }
1998
1998
  }
1999
- class he extends mr {
1999
+ class ge extends mr {
2000
2000
  /**
2001
2001
  * Инициализирует экземпляр класса {@link Client}.
2002
2002
  *
@@ -2042,10 +2042,10 @@ class he extends mr {
2042
2042
  * @inheritDoc
2043
2043
  */
2044
2044
  t(this, "curators");
2045
- this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Me(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new je(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Fe(o))) ?? void 0;
2045
+ this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Me(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new je(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Fe(o))) ?? void 0;
2046
2046
  }
2047
2047
  }
2048
- class te extends G {
2048
+ class te extends F {
2049
2049
  /**
2050
2050
  * Инициализирует новый экземпляр класса.
2051
2051
  *
@@ -2069,10 +2069,10 @@ class te extends G {
2069
2069
  * Данные шаблона прайс-листа.
2070
2070
  */
2071
2071
  t(this, "priceTemplate");
2072
- this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new E(e == null ? void 0 : e.priceTemplate);
2072
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new J(e == null ? void 0 : e.priceTemplate);
2073
2073
  }
2074
2074
  }
2075
- class ae extends gr {
2075
+ class Te extends gr {
2076
2076
  /**
2077
2077
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2078
2078
  *
@@ -2084,12 +2084,12 @@ class ae extends gr {
2084
2084
  * Базовые данные о продукте.
2085
2085
  */
2086
2086
  t(this, "product");
2087
- this.product = new S(e == null ? void 0 : e.product);
2087
+ this.product = new b(e == null ? void 0 : e.product);
2088
2088
  }
2089
2089
  }
2090
2090
  class fr extends R {
2091
2091
  }
2092
- class se extends a {
2092
+ class se extends T {
2093
2093
  /**
2094
2094
  * Инициализирует экземпляр класса {@link Property}.
2095
2095
  *
@@ -2112,7 +2112,7 @@ class se extends a {
2112
2112
  this.type = new fr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2113
2113
  }
2114
2114
  }
2115
- class z {
2115
+ class W {
2116
2116
  /**
2117
2117
  * Инициализирует экземпляр класса {@link PropertyValue}.
2118
2118
  *
@@ -2146,7 +2146,7 @@ class L {
2146
2146
  * Окончание периода.
2147
2147
  */
2148
2148
  t(this, "to");
2149
- this.from = v(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = v(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
2149
+ this.from = C(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
2150
2150
  }
2151
2151
  }
2152
2152
  class Ut {
@@ -2209,11 +2209,11 @@ class Ut {
2209
2209
  return Object.keys(this).forEach((c) => {
2210
2210
  const u = this[c];
2211
2211
  // eslint-disable-next-line prettier/prettier
2212
- A(u) || v(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
2212
+ A(u) || C(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
2213
2213
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2214
2214
  }
2215
2215
  }
2216
- class ie extends a {
2216
+ class ie extends T {
2217
2217
  /**
2218
2218
  * Инициализирует экземпляр класса {@link PricingRole}.
2219
2219
  *
@@ -2267,7 +2267,7 @@ class Ve {
2267
2267
  * Минимальный коэффициент цены.
2268
2268
  */
2269
2269
  t(this, "minCoefficient");
2270
- this.role = new ie(r == null ? void 0 : r.role), this.category = new pe(r == null ? void 0 : r.category), this.minCoefficient = new Ce(r == null ? void 0 : r.minCoefficient);
2270
+ this.role = new ie(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new ve(r == null ? void 0 : r.minCoefficient);
2271
2271
  }
2272
2272
  }
2273
2273
  class Ht extends p {
@@ -2539,8 +2539,8 @@ class Gt extends p {
2539
2539
  return this.post(
2540
2540
  `/internal/clients/${r}/price/templates/${e}`,
2541
2541
  s && {
2542
- startAt: s.startAt && q(s.startAt, i),
2543
- endAt: s.endAt && q(s.endAt, i)
2542
+ startAt: s.startAt && O(s.startAt, i),
2543
+ endAt: s.endAt && O(s.endAt, i)
2544
2544
  },
2545
2545
  (o) => new te(o.data),
2546
2546
  {},
@@ -2573,8 +2573,8 @@ class Gt extends p {
2573
2573
  return this.patch(
2574
2574
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2575
2575
  i && {
2576
- startAt: i.startAt && q(i.startAt, o),
2577
- endAt: i.endAt && q(i.endAt, o)
2576
+ startAt: i.startAt && O(i.startAt, o),
2577
+ endAt: i.endAt && O(i.endAt, o)
2578
2578
  },
2579
2579
  (c) => new te(c.data)
2580
2580
  );
@@ -2606,7 +2606,7 @@ class Ft extends p {
2606
2606
  {
2607
2607
  showHidden: r
2608
2608
  },
2609
- (e) => e.data.map((s) => new W(s))
2609
+ (e) => e.data.map((s) => new x(s))
2610
2610
  );
2611
2611
  }
2612
2612
  /**
@@ -2625,7 +2625,7 @@ class Ft extends p {
2625
2625
  showHidden: e,
2626
2626
  withNestedCategories: s
2627
2627
  },
2628
- (i) => new W(i.data)
2628
+ (i) => new x(i.data)
2629
2629
  );
2630
2630
  }
2631
2631
  /**
@@ -2634,7 +2634,7 @@ class Ft extends p {
2634
2634
  * @param categoryID Идентификатор категории продуктов.
2635
2635
  */
2636
2636
  getPublicCategoryData(r) {
2637
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new W(e.data));
2637
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new x(e.data));
2638
2638
  }
2639
2639
  /**
2640
2640
  * Возвращает список продуктов категории.
@@ -2652,7 +2652,7 @@ class Ft extends p {
2652
2652
  showHidden: s,
2653
2653
  withPriceCoefficients: e
2654
2654
  },
2655
- (i) => ve(i.data, (o) => new S(o))
2655
+ (i) => pe(i.data, (o) => new b(o))
2656
2656
  );
2657
2657
  }
2658
2658
  /**
@@ -2677,7 +2677,7 @@ class Ft extends p {
2677
2677
  publicSimpleSearch(r, e = 10) {
2678
2678
  return new Promise((s, i) => {
2679
2679
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2680
- s(o.categories.map((c) => new W(c)));
2680
+ s(o.categories.map((c) => new x(c)));
2681
2681
  }).catch((o) => {
2682
2682
  i(o);
2683
2683
  });
@@ -2694,7 +2694,7 @@ class Mt extends p {
2694
2694
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2695
2695
  */
2696
2696
  getProductData(r, e = !1) {
2697
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new S(s.data));
2697
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new b(s.data));
2698
2698
  }
2699
2699
  /**
2700
2700
  * Возвращает публичные данные об указанном продукте.
@@ -2702,7 +2702,7 @@ class Mt extends p {
2702
2702
  * @param productId Идентификатор продукта.
2703
2703
  */
2704
2704
  getPublicProductData(r) {
2705
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new S(e.data));
2705
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new b(e.data));
2706
2706
  }
2707
2707
  /**
2708
2708
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2715,7 +2715,7 @@ class Mt extends p {
2715
2715
  return this.get(
2716
2716
  `/internal/catalog/products/${r}/coefficients`,
2717
2717
  {},
2718
- (e) => ve(e.data, (s) => new Ne(s))
2718
+ (e) => pe(e.data, (s) => new Ne(s))
2719
2719
  );
2720
2720
  }
2721
2721
  /**
@@ -2727,7 +2727,7 @@ class Mt extends p {
2727
2727
  publicSimpleSearch(r, e = 10) {
2728
2728
  return new Promise((s, i) => {
2729
2729
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2730
- s(o.products.map((c) => new S(c)));
2730
+ s(o.products.map((c) => new b(c)));
2731
2731
  }).catch((o) => {
2732
2732
  i(o);
2733
2733
  });
@@ -2750,7 +2750,7 @@ class Bt extends p {
2750
2750
  clientId: r,
2751
2751
  showHidden: e
2752
2752
  },
2753
- (s) => s.data.map((i) => new fe(i))
2753
+ (s) => s.data.map((i) => new ye(i))
2754
2754
  );
2755
2755
  }
2756
2756
  /**
@@ -2771,7 +2771,7 @@ class Bt extends p {
2771
2771
  showHidden: s,
2772
2772
  withNestedCategories: i
2773
2773
  },
2774
- (o) => new fe(o.data)
2774
+ (o) => new ye(o.data)
2775
2775
  );
2776
2776
  }
2777
2777
  /**
@@ -2792,7 +2792,7 @@ class Bt extends p {
2792
2792
  showHidden: i,
2793
2793
  withPriceCoefficients: s
2794
2794
  },
2795
- (o) => ve(o.data, (c) => new Y(c))
2795
+ (o) => pe(o.data, (c) => new Y(c))
2796
2796
  );
2797
2797
  }
2798
2798
  }
@@ -2849,7 +2849,7 @@ class Ke {
2849
2849
  field: this.field,
2850
2850
  op: this.op
2851
2851
  };
2852
- return r.value = Ie(this.value) ? q(this.value, k().config.dateFormats.api) : this.value, r;
2852
+ return r.value = Ie(this.value) ? O(this.value, k().config.dateFormats.api) : this.value, r;
2853
2853
  }
2854
2854
  }
2855
2855
  class le {
@@ -2920,7 +2920,7 @@ class Wt extends De {
2920
2920
  getTemplateList(r, e, s) {
2921
2921
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2922
2922
  const o = { ...i.data };
2923
- return o.data = o.data.map((c) => new E(c)), o;
2923
+ return o.data = o.data.map((c) => new J(c)), o;
2924
2924
  });
2925
2925
  }
2926
2926
  /**
@@ -2933,7 +2933,7 @@ class Wt extends De {
2933
2933
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2934
2934
  */
2935
2935
  createTemplate(r, e = {}) {
2936
- return this.post("/internal/price/templates", r, (s) => new E(s.data), e);
2936
+ return this.post("/internal/price/templates", r, (s) => new J(s.data), e);
2937
2937
  }
2938
2938
  /**
2939
2939
  * Возвращает данные о шаблоне прайс-листа.
@@ -2943,7 +2943,7 @@ class Wt extends De {
2943
2943
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
2944
2944
  */
2945
2945
  getTemplate(r) {
2946
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new E(e.data));
2946
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new J(e.data));
2947
2947
  }
2948
2948
  /**
2949
2949
  * Изменяет данные о шаблоне прайс-листа.
@@ -2956,7 +2956,7 @@ class Wt extends De {
2956
2956
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2957
2957
  */
2958
2958
  updateTemplate(r, e, s = {}) {
2959
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new E(i.data), s);
2959
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new J(i.data), s);
2960
2960
  }
2961
2961
  /**
2962
2962
  * Удаляет данные о шаблоне прайс-листа.
@@ -2979,7 +2979,7 @@ class Wt extends De {
2979
2979
  return this.get(
2980
2980
  `/internal/price/templates/${r}/products`,
2981
2981
  {},
2982
- (e) => e.data.map((s) => new ae(s))
2982
+ (e) => e.data.map((s) => new Te(s))
2983
2983
  );
2984
2984
  }
2985
2985
  /**
@@ -2991,7 +2991,7 @@ class Wt extends De {
2991
2991
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2992
2992
  */
2993
2993
  getProductTemplatePrice(r, e) {
2994
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ae(s.data));
2994
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Te(s.data));
2995
2995
  }
2996
2996
  /**
2997
2997
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3010,7 +3010,7 @@ class Wt extends De {
3010
3010
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
3011
3011
  increase_percent: s.value
3012
3012
  },
3013
- (o) => new ae(o.data)
3013
+ (o) => new Te(o.data)
3014
3014
  );
3015
3015
  }
3016
3016
  /**
@@ -3035,7 +3035,7 @@ class Wt extends De {
3035
3035
  return this.get(
3036
3036
  `/internal/price/templates/${r}/categories`,
3037
3037
  {},
3038
- (e) => e.data.map((s) => new Te(s))
3038
+ (e) => e.data.map((s) => new $e(s))
3039
3039
  );
3040
3040
  }
3041
3041
  /**
@@ -3050,7 +3050,7 @@ class Wt extends De {
3050
3050
  return this.get(
3051
3051
  `/internal/price/templates/${r}/categories/${e}`,
3052
3052
  {},
3053
- (s) => new Te(s.data)
3053
+ (s) => new $e(s.data)
3054
3054
  );
3055
3055
  }
3056
3056
  /**
@@ -3076,7 +3076,7 @@ class Wt extends De {
3076
3076
  },
3077
3077
  params: i ? { recursively: !0 } : {}
3078
3078
  },
3079
- (c) => new Te(c.data)
3079
+ (c) => new $e(c.data)
3080
3080
  );
3081
3081
  }
3082
3082
  /**
@@ -3111,7 +3111,7 @@ class Wt extends De {
3111
3111
  );
3112
3112
  }
3113
3113
  }
3114
- class Et extends p {
3114
+ class Jt extends p {
3115
3115
  /**
3116
3116
  * Возвращает список ролей ценообразования.
3117
3117
  *
@@ -3191,7 +3191,7 @@ class Et extends p {
3191
3191
  );
3192
3192
  }
3193
3193
  }
3194
- class Jt extends De {
3194
+ class Et extends De {
3195
3195
  /**
3196
3196
  * Возвращает пагинированный список свойств.
3197
3197
  *
@@ -3267,7 +3267,7 @@ class Jt extends De {
3267
3267
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3268
3268
  */
3269
3269
  getProductProperties(r) {
3270
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
3270
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new W(s)));
3271
3271
  }
3272
3272
  /**
3273
3273
  * Возвращает значение свойства продукта.
@@ -3277,7 +3277,7 @@ class Jt extends De {
3277
3277
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3278
3278
  */
3279
3279
  getProductProperty(r, e) {
3280
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new z(s.data));
3280
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new W(s.data));
3281
3281
  }
3282
3282
  /**
3283
3283
  * Обновляет значение свойства продукта.
@@ -3288,7 +3288,7 @@ class Jt extends De {
3288
3288
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3289
3289
  */
3290
3290
  updateProductProperty(r, e, s) {
3291
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
3291
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new W(i.data));
3292
3292
  }
3293
3293
  /**
3294
3294
  * Удаляет значение свойства продукта.
@@ -3413,7 +3413,7 @@ class Jt extends De {
3413
3413
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3414
3414
  */
3415
3415
  getCategoryProperties(r) {
3416
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
3416
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new W(s)));
3417
3417
  }
3418
3418
  /**
3419
3419
  * Возвращает значение свойства категории.
@@ -3423,7 +3423,7 @@ class Jt extends De {
3423
3423
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3424
3424
  */
3425
3425
  getCategoryProperty(r, e) {
3426
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new z(s.data));
3426
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new W(s.data));
3427
3427
  }
3428
3428
  /**
3429
3429
  * Обновляет значение свойства категории.
@@ -3434,7 +3434,7 @@ class Jt extends De {
3434
3434
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3435
3435
  */
3436
3436
  updateCategoryProperty(r, e, s) {
3437
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
3437
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new W(i.data));
3438
3438
  }
3439
3439
  /**
3440
3440
  * Удаляет значение свойства категории.
@@ -3563,6 +3563,68 @@ class Jt extends De {
3563
3563
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3564
3564
  }
3565
3565
  }
3566
+ class Vt extends p {
3567
+ /**
3568
+ * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3569
+ *
3570
+ * @param priceTemplateId Идентификатор шаблона прайс-листа для которого необходимо вернуть список корневых категорий.
3571
+ * @param showHidden Признак необходимости также возвращать данные о скрытых категориях.
3572
+ *
3573
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3574
+ */
3575
+ getRootCategoriesList(r, e = !1) {
3576
+ return this.get(
3577
+ "/internal/catalog/categories",
3578
+ {
3579
+ priceTemplateId: r,
3580
+ showHidden: e
3581
+ },
3582
+ (s) => s.data.map((i) => new x(i))
3583
+ );
3584
+ }
3585
+ /**
3586
+ * Возвращает данные об указанной категории шаблона прайс-листа.
3587
+ *
3588
+ * @param priceTemplateId Идентификатор шаблона прайс-листа для которого необходимо получить данные категории.
3589
+ * @param categoryID Идентификатор категории для которой нужно получить данные.
3590
+ * @param showHidden Признак необходимости также возвращать данные о скрытых категориях.
3591
+ * @param withNestedCategories Признак необходимости также вернуть список с данными о вложенных категориях.
3592
+ *
3593
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
3594
+ */
3595
+ getCategoryData(r, e, s = !1, i = !1) {
3596
+ return this.get(
3597
+ `/internal/catalog/categories/${e}`,
3598
+ {
3599
+ priceTemplateId: r,
3600
+ showHidden: s,
3601
+ withNestedCategories: i
3602
+ },
3603
+ (o) => new x(o.data)
3604
+ );
3605
+ }
3606
+ /**
3607
+ * Возвращает список продуктов категории указанного шаблона прайс-листа.
3608
+ *
3609
+ * @param priceTemplateId Идентификатор шаблона прайс-листа для которого необходимо получить список продуктов.
3610
+ * @param categoryID Идентификатор категории для которой нужно получить список продуктов.
3611
+ * @param withPriceCoefficients Признак того, что необходимо включить в ответ данные о коэффициентах цен на продукты.
3612
+ * @param showHidden Признак необходимости также возвращать данные о скрытых продуктах.
3613
+ *
3614
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
3615
+ */
3616
+ getCategoryProductsList(r, e, s = !0, i = !1) {
3617
+ return this.get(
3618
+ `/internal/catalog/categories/${e}/products`,
3619
+ {
3620
+ priceTemplateId: r,
3621
+ showHidden: i,
3622
+ withPriceCoefficients: s
3623
+ },
3624
+ (o) => pe(o.data, (c) => new b(c))
3625
+ );
3626
+ }
3627
+ }
3566
3628
  function Qe(n, r, e) {
3567
3629
  let s;
3568
3630
  return n.some((i) => {
@@ -3593,24 +3655,24 @@ function Ye(n) {
3593
3655
  }
3594
3656
  }), r;
3595
3657
  }
3596
- var ot = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ot || {}), x = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(x || {});
3658
+ var ot = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ot || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
3597
3659
  class ct extends R {
3598
3660
  }
3599
3661
  class yr extends R {
3600
3662
  }
3601
- class Vt extends R {
3663
+ class Kt extends R {
3602
3664
  }
3603
3665
  class lt extends R {
3604
3666
  }
3605
- class U extends R {
3667
+ class H extends R {
3606
3668
  /**
3607
3669
  * Возвращает сгенерированную запись-описание физического лица.
3608
3670
  */
3609
3671
  static generatePersonItem() {
3610
- return new U({
3672
+ return new H({
3611
3673
  id: 1,
3612
3674
  guid: "",
3613
- slug: x.Person,
3675
+ slug: d.Person,
3614
3676
  name: ""
3615
3677
  });
3616
3678
  }
@@ -3627,9 +3689,9 @@ class gt extends R {
3627
3689
  }
3628
3690
  class wr extends R {
3629
3691
  }
3630
- class vr extends R {
3692
+ class Cr extends R {
3631
3693
  }
3632
- class de extends G {
3694
+ class de extends F {
3633
3695
  /**
3634
3696
  * Инициализирует экземпляр класса {@link BankAccount}.
3635
3697
  *
@@ -3656,11 +3718,11 @@ class de extends G {
3656
3718
  /**
3657
3719
  * Данные о валюте.
3658
3720
  */
3659
- t(this, "currency", new N());
3660
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new N(e.currency));
3721
+ t(this, "currency", new U());
3722
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new U(e.currency));
3661
3723
  }
3662
3724
  }
3663
- class _e extends a {
3725
+ class _e extends T {
3664
3726
  /**
3665
3727
  * Инициализирует экземпляр класса {@link Contact}.
3666
3728
  *
@@ -3679,7 +3741,7 @@ class _e extends a {
3679
3741
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3680
3742
  }
3681
3743
  }
3682
- class H extends _e {
3744
+ class j extends _e {
3683
3745
  /**
3684
3746
  * Инициализирует экземпляр класса {@link ContactPerson}.
3685
3747
  *
@@ -3711,10 +3773,10 @@ class H extends _e {
3711
3773
  * Дата и время последнего удаления.
3712
3774
  */
3713
3775
  t(this, "deletedAt");
3714
- 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 = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3776
+ 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) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3715
3777
  }
3716
3778
  }
3717
- class Cr extends a {
3779
+ class vr extends T {
3718
3780
  /**
3719
3781
  * Инициализирует экземпляр класса {@link ContragentBase}.
3720
3782
  *
@@ -3726,7 +3788,7 @@ class Cr extends a {
3726
3788
  /**
3727
3789
  * Данные об организационно-правовой форме.
3728
3790
  */
3729
- t(this, "opf", U.generatePersonItem());
3791
+ t(this, "opf", H.generatePersonItem());
3730
3792
  /**
3731
3793
  * Группа партнеров (направление деятельности).
3732
3794
  */
@@ -3764,10 +3826,10 @@ class Cr extends a {
3764
3826
  */
3765
3827
  t(this, "updater");
3766
3828
  if (e) {
3767
- if (this.opf = new U(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
3829
+ if (this.opf = new H(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
3768
3830
  const s = [];
3769
3831
  e.contacts.forEach((i) => {
3770
- s.push(new H(i));
3832
+ s.push(new j(i));
3771
3833
  }), this.contacts = s;
3772
3834
  }
3773
3835
  if (e.bankAccounts) {
@@ -3779,7 +3841,7 @@ class Cr extends a {
3779
3841
  }
3780
3842
  }
3781
3843
  }
3782
- class mt extends Cr {
3844
+ class mt extends vr {
3783
3845
  /**
3784
3846
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3785
3847
  *
@@ -3789,7 +3851,7 @@ class mt extends Cr {
3789
3851
  super(r);
3790
3852
  }
3791
3853
  }
3792
- class Pr extends Cr {
3854
+ class Pr extends vr {
3793
3855
  /**
3794
3856
  * Инициализирует экземпляр класса {@link ContragentIc}.
3795
3857
  *
@@ -3870,7 +3932,7 @@ class ft extends Rr {
3870
3932
  e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3871
3933
  }
3872
3934
  }
3873
- class ye {
3935
+ class we {
3874
3936
  /**
3875
3937
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3876
3938
  *
@@ -3878,18 +3940,18 @@ class ye {
3878
3940
  */
3879
3941
  static createInstance(r) {
3880
3942
  switch (r.opf.slug) {
3881
- case x.Ic:
3943
+ case d.Ic:
3882
3944
  return new Pr(r);
3883
- case x.UlR:
3945
+ case d.UlR:
3884
3946
  return new Rr(r);
3885
- case x.UlNr:
3947
+ case d.UlNr:
3886
3948
  return new ft(r);
3887
3949
  default:
3888
3950
  return new mt(r);
3889
3951
  }
3890
3952
  }
3891
3953
  }
3892
- class be extends G {
3954
+ class be extends F {
3893
3955
  /**
3894
3956
  * Инициализирует экземпляр класса {@link ContactRelation}.
3895
3957
  *
@@ -3904,7 +3966,7 @@ class be extends G {
3904
3966
  this.isPrimary = e.isPrimary;
3905
3967
  }
3906
3968
  }
3907
- class yt extends H {
3969
+ class yt extends j {
3908
3970
  /**
3909
3971
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3910
3972
  *
@@ -3932,7 +3994,7 @@ class yt extends H {
3932
3994
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
3933
3995
  }
3934
3996
  }
3935
- class we extends Qr {
3997
+ class Ce extends Qr {
3936
3998
  /**
3937
3999
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3938
4000
  *
@@ -3969,10 +4031,10 @@ class we extends Qr {
3969
4031
  * Признак того, что указанный адрес является адресом транспортной компании.
3970
4032
  */
3971
4033
  t(this, "isTransportCompanyAddress");
3972
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ur(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new H(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4034
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ur(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new j(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3973
4035
  }
3974
4036
  }
3975
- class Xe extends he {
4037
+ class Xe extends ge {
3976
4038
  /**
3977
4039
  * Инициализирует экземпляр класса {@link Client}.
3978
4040
  *
@@ -4022,10 +4084,10 @@ class Xe extends he {
4022
4084
  * @inheritDoc
4023
4085
  */
4024
4086
  t(this, "extraData");
4025
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ye.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new H(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new we(u))) ?? [], this.channelPrimaryInterest = new yr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new vr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Pe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4087
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => we.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new j(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ce(u))) ?? [], this.channelPrimaryInterest = new yr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Cr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Pe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4026
4088
  }
4027
4089
  }
4028
- class Kt {
4090
+ class Qt {
4029
4091
  /**
4030
4092
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4031
4093
  *
@@ -4125,7 +4187,7 @@ class Kt {
4125
4187
  */
4126
4188
  t(this, "lastOrder");
4127
4189
  var e, s, i, o, c, u, h, f;
4128
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Me(g)), this.region = new ce(r == null ? void 0 : r.region), this.country = new X(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.lastLoginDate = new L(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Re(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new Fe(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new _(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Q(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new Z(g)), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
4190
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Me(g)), this.region = new ce(r == null ? void 0 : r.region), this.country = new X(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.lastLoginDate = new L(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Re(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new Fe(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new q(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new H(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Q(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new Z(g)), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
4129
4191
  createdAt: new L((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
4130
4192
  creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
4131
4193
  isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
@@ -4166,7 +4228,7 @@ class Kt {
4166
4228
  this.salesDirections = [];
4167
4229
  break;
4168
4230
  case "contragentType":
4169
- this.contragentType = new U();
4231
+ this.contragentType = new H();
4170
4232
  break;
4171
4233
  case "preferredDeliveryType":
4172
4234
  this.preferredDeliveryType = new Q();
@@ -4193,11 +4255,11 @@ class Kt {
4193
4255
  return Object.keys(this).forEach((c) => {
4194
4256
  const u = this[c];
4195
4257
  // eslint-disable-next-line prettier/prettier
4196
- A(u) || v(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
4258
+ A(u) || C(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
4197
4259
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
4198
4260
  }
4199
4261
  }
4200
- class Dr extends G {
4262
+ class Dr extends F {
4201
4263
  /**
4202
4264
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4203
4265
  *
@@ -4217,10 +4279,10 @@ class Dr extends G {
4217
4279
  * Признак того, что заказ подтвержден в 1С.
4218
4280
  */
4219
4281
  t(this, "isApproved1c");
4220
- this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4282
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4221
4283
  }
4222
4284
  }
4223
- class wt extends a {
4285
+ class wt extends T {
4224
4286
  /**
4225
4287
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4226
4288
  *
@@ -4257,10 +4319,10 @@ class wt extends a {
4257
4319
  * @inheritDoc
4258
4320
  */
4259
4321
  t(this, "curators");
4260
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new H(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Dr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new _(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new je(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Fe(u))) ?? void 0;
4322
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new j(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Dr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(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 je(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Fe(u))) ?? void 0;
4261
4323
  }
4262
4324
  }
4263
- class vt {
4325
+ class Ct {
4264
4326
  /**
4265
4327
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4266
4328
  *
@@ -4278,7 +4340,7 @@ class vt {
4278
4340
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4279
4341
  }
4280
4342
  }
4281
- class Qt extends vt {
4343
+ class Yt extends Ct {
4282
4344
  /**
4283
4345
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4284
4346
  *
@@ -4309,7 +4371,7 @@ class Qt extends vt {
4309
4371
  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;
4310
4372
  }
4311
4373
  }
4312
- class Yt {
4374
+ class Xt {
4313
4375
  /**
4314
4376
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4315
4377
  *
@@ -4359,7 +4421,7 @@ class I extends De {
4359
4421
  let e;
4360
4422
  const s = r, i = r, o = r;
4361
4423
  switch (r.opf.slug) {
4362
- case x.Ic:
4424
+ case d.Ic:
4363
4425
  e = {
4364
4426
  opf: s.opf.slug,
4365
4427
  name: s.name,
@@ -4376,7 +4438,7 @@ class I extends De {
4376
4438
  actual_address: s.actualAddress
4377
4439
  };
4378
4440
  break;
4379
- case x.UlR:
4441
+ case d.UlR:
4380
4442
  e = {
4381
4443
  opf: i.opf.slug,
4382
4444
  name: i.name,
@@ -4394,7 +4456,7 @@ class I extends De {
4394
4456
  actual_address: i.actualAddress
4395
4457
  };
4396
4458
  break;
4397
- case x.UlNr:
4459
+ case d.UlNr:
4398
4460
  e = {
4399
4461
  opf: o.opf.slug,
4400
4462
  name: o.name,
@@ -4481,7 +4543,7 @@ class I extends De {
4481
4543
  getClientsList(r, e, s, i) {
4482
4544
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4483
4545
  const c = { ...o.data };
4484
- return c.data = c.data.map((u) => new he(u)), c;
4546
+ return c.data = c.data.map((u) => new ge(u)), c;
4485
4547
  });
4486
4548
  }
4487
4549
  /**
@@ -4671,7 +4733,7 @@ class I extends De {
4671
4733
  return this.post(
4672
4734
  `/internal/clients/${r}/contragents`,
4673
4735
  I.transformContragentClientDataToRequest(e),
4674
- (i) => ye.createInstance(i.data),
4736
+ (i) => we.createInstance(i.data),
4675
4737
  s
4676
4738
  );
4677
4739
  }
@@ -4687,7 +4749,7 @@ class I extends De {
4687
4749
  return this.patch(
4688
4750
  `/internal/clients/${r}/contragents/${e.id}`,
4689
4751
  I.transformContragentClientDataToRequest(e),
4690
- (i) => ye.createInstance(i.data),
4752
+ (i) => we.createInstance(i.data),
4691
4753
  s
4692
4754
  );
4693
4755
  }
@@ -4713,7 +4775,7 @@ class I extends De {
4713
4775
  return this.post(
4714
4776
  `/internal/clients/${r}/delivery-addresses`,
4715
4777
  I.transformClientDeliveryAddressToRequest(e),
4716
- (i) => new we(i.data),
4778
+ (i) => new Ce(i.data),
4717
4779
  s
4718
4780
  );
4719
4781
  }
@@ -4729,7 +4791,7 @@ class I extends De {
4729
4791
  return this.patch(
4730
4792
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4731
4793
  I.transformClientDeliveryAddressToRequest(e),
4732
- (i) => new we(i.data),
4794
+ (i) => new Ce(i.data),
4733
4795
  s
4734
4796
  );
4735
4797
  }
@@ -4829,7 +4891,7 @@ class I extends De {
4829
4891
  comment: e.comment,
4830
4892
  not_disturb: e.notDisturb
4831
4893
  },
4832
- (i) => new H(i.data),
4894
+ (i) => new j(i.data),
4833
4895
  s
4834
4896
  );
4835
4897
  }
@@ -4966,7 +5028,7 @@ class I extends De {
4966
5028
  comment: e.comment,
4967
5029
  ...s
4968
5030
  };
4969
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new H(h.data), i);
5031
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new j(h.data), i);
4970
5032
  }
4971
5033
  /**
4972
5034
  * Устанавливает признак основного контактного лица.
@@ -4995,7 +5057,7 @@ class I extends De {
4995
5057
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4996
5058
  }
4997
5059
  }
4998
- const J = class J extends p {
5060
+ const E = class E extends p {
4999
5061
  /**
5000
5062
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5001
5063
  */
@@ -5015,7 +5077,7 @@ const J = class J extends p {
5015
5077
  */
5016
5078
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5017
5079
  static getCachedResponse(e) {
5018
- const s = J.responseDataCache.get(e);
5080
+ const s = E.responseDataCache.get(e);
5019
5081
  if (s && s.validTo > /* @__PURE__ */ new Date())
5020
5082
  return s.val;
5021
5083
  }
@@ -5026,7 +5088,7 @@ const J = class J extends p {
5026
5088
  * @param data Данные для кэширования.
5027
5089
  */
5028
5090
  cacheResponse(e, s) {
5029
- J.responseDataCache.set(e, {
5091
+ E.responseDataCache.set(e, {
5030
5092
  validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5031
5093
  val: s
5032
5094
  });
@@ -5042,7 +5104,7 @@ const J = class J extends p {
5042
5104
  */
5043
5105
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5044
5106
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5045
- const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? J.getCachedResponse(c) : void 0;
5107
+ const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? E.getCachedResponse(c) : void 0;
5046
5108
  return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5047
5109
  const f = h.map((g) => Ue.instanceInitializer(e, g));
5048
5110
  return i && f && this.cacheResponse(s, f), f;
@@ -5052,9 +5114,9 @@ const J = class J extends p {
5052
5114
  /**
5053
5115
  * Кэш результатов запросов.
5054
5116
  */
5055
- t(J, "responseDataCache", /* @__PURE__ */ new Map());
5056
- let ue = J;
5057
- class Xt extends p {
5117
+ t(E, "responseDataCache", /* @__PURE__ */ new Map());
5118
+ let ue = E;
5119
+ class Zt extends p {
5058
5120
  /**
5059
5121
  * Выполняет проверку занят ли указанный номер телефона.
5060
5122
  *
@@ -5068,14 +5130,6 @@ class Xt extends p {
5068
5130
  });
5069
5131
  }
5070
5132
  }
5071
- function Zt(n = "/config.json") {
5072
- const r = fetch(n).then((e) => e.ok ? e.json() : (console.error(new Error(`Ошибка загрузки ${n}: ${e.statusText}`)), new Promise((s) => {
5073
- s({});
5074
- })));
5075
- return r.catch((e) => {
5076
- console.error(e);
5077
- }), r;
5078
- }
5079
5133
  class es {
5080
5134
  /**
5081
5135
  * Инициализирует экземпляр класса {@link VersionConfig}.
@@ -5095,7 +5149,7 @@ class es {
5095
5149
  * Текущая версия приложения.
5096
5150
  */
5097
5151
  t(this, "version");
5098
- this.date = v(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";
5152
+ this.date = C(r == null ? void 0 : r.date) ? v(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";
5099
5153
  }
5100
5154
  }
5101
5155
  class rs extends p {
@@ -5128,7 +5182,7 @@ class rs extends p {
5128
5182
  const o = this.get(
5129
5183
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5130
5184
  { params: s, client_id: e },
5131
- (u) => new S(u.data)
5185
+ (u) => new b(u.data)
5132
5186
  );
5133
5187
  return o.catch((u) => {
5134
5188
  this.errorResponseHandler(u, i);
@@ -5172,6 +5226,22 @@ class rs extends p {
5172
5226
  var i;
5173
5227
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template/${s}?client_id=${e}`);
5174
5228
  }
5229
+ /**
5230
+ * Выполняет расчет, через указанный конфигуратор с переданными параметрами.
5231
+ *
5232
+ * @param category Данные о категории.
5233
+ * @param clientId Идентификатор клиента.
5234
+ * @param params Параметры запроса расчета конфигуратора.
5235
+ *
5236
+ * @see /doc/api/internal#/Каталог/api_public_catalog_categories_category_configurator_calculate
5237
+ */
5238
+ calculate(r, e, s) {
5239
+ var i;
5240
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/calculate`, {
5241
+ client_id: e,
5242
+ ...s
5243
+ });
5244
+ }
5175
5245
  }
5176
5246
  class ts {
5177
5247
  /**
@@ -5232,7 +5302,7 @@ class ss {
5232
5302
  return r.id === 0 && r.guid === "-undefined-";
5233
5303
  }
5234
5304
  }
5235
- class Ct extends ue {
5305
+ class vt extends ue {
5236
5306
  /**
5237
5307
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5238
5308
  */
@@ -5244,7 +5314,7 @@ class Ct extends ue {
5244
5314
  return this.cacheResponse(r, i), i;
5245
5315
  }
5246
5316
  }
5247
- class $r extends Dr {
5317
+ class ar extends Dr {
5248
5318
  /**
5249
5319
  * Инициализирует экземпляр класса {@link OrderInfo}.
5250
5320
  *
@@ -5297,19 +5367,19 @@ class $r extends Dr {
5297
5367
  * Сумма заказа.
5298
5368
  */
5299
5369
  t(this, "sum");
5300
- this.client = new he(e == null ? void 0 : e.client), this.payment = {
5370
+ this.client = new ge(e == null ? void 0 : e.client), this.payment = {
5301
5371
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5302
5372
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5303
5373
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5304
5374
  }, this.delivery = {
5305
5375
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5306
- date: v((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(),
5307
- address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new we(e.delivery.address) : void 0,
5376
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5377
+ address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Ce(e.delivery.address) : void 0,
5308
5378
  warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new Pe(e.delivery.warehouse) : void 0
5309
- }, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, 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;
5379
+ }, this.attachedUser = new _(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(e.processedAt) : e == null ? void 0 : e.processedAt, 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;
5310
5380
  }
5311
5381
  }
5312
- class Pt extends G {
5382
+ class Pt extends F {
5313
5383
  /**
5314
5384
  * Инициализирует экземпляр класса {@link OrderProduct}.
5315
5385
  *
@@ -5393,10 +5463,10 @@ class Pt extends G {
5393
5463
  * Данные о пользователе, добавившем продукт в заказ.
5394
5464
  */
5395
5465
  t(this, "creatorUser");
5396
- this.product = new Y(e.product), this.quantity = e.quantity, this.currency = new N(e.currency), this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing, this.creatorUser = e.creatorUser && new d(e.creatorUser);
5466
+ this.product = new Y(e.product), this.quantity = e.quantity, this.currency = new U(e.currency), this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing, this.creatorUser = e.creatorUser && new _(e.creatorUser);
5397
5467
  }
5398
5468
  }
5399
- class Ze extends $r {
5469
+ class Ze extends ar {
5400
5470
  /**
5401
5471
  * Инициализирует экземпляр класса {@link Order}.
5402
5472
  *
@@ -5436,7 +5506,7 @@ class Ze extends $r {
5436
5506
  * Признак, что разрешена передача заказа в работу без оплаты.
5437
5507
  */
5438
5508
  t(this, "isAllowProcessingWithoutPayment");
5439
- this.products = (e.products ?? []).map((s) => new Pt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ye.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5509
+ this.products = (e.products ?? []).map((s) => new Pt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5440
5510
  }
5441
5511
  }
5442
5512
  class is extends De {
@@ -5452,7 +5522,7 @@ class is extends De {
5452
5522
  getOrders(r, e, s) {
5453
5523
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5454
5524
  const o = { ...i.data };
5455
- return o.data = o.data.map((c) => new $r(c)), o;
5525
+ return o.data = o.data.map((c) => new ar(c)), o;
5456
5526
  });
5457
5527
  }
5458
5528
  /**
@@ -5530,7 +5600,7 @@ class Se {
5530
5600
  * Источник клиентской цены.
5531
5601
  */
5532
5602
  t(this, "source");
5533
- this.client = new he(r == null ? void 0 : r.client), this.product = new S(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? He.Product;
5603
+ this.client = new ge(r == null ? void 0 : r.client), this.product = new b(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? He.Product;
5534
5604
  }
5535
5605
  }
5536
5606
  const ke = (n) => {
@@ -5658,7 +5728,7 @@ class Rt {
5658
5728
  * @inheritDoc
5659
5729
  */
5660
5730
  t(this, "currency");
5661
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new N(r.currency) : void 0;
5731
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(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 U(r.currency) : void 0;
5662
5732
  }
5663
5733
  }
5664
5734
  class Dt extends oe {
@@ -5673,7 +5743,7 @@ class Dt extends oe {
5673
5743
  * @inheritDoc
5674
5744
  */
5675
5745
  t(this, "history");
5676
- this.history = ve(e.history, (s) => new Rt(s));
5746
+ this.history = pe(e.history, (s) => new Rt(s));
5677
5747
  }
5678
5748
  }
5679
5749
  class os extends p {
@@ -5689,8 +5759,8 @@ class os extends p {
5689
5759
  const e = k().config.dateFormats.api, s = nr(
5690
5760
  ne(r, {
5691
5761
  costDate: {
5692
- from: Ie((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5693
- to: Ie((u = r.costDate) == null ? void 0 : u.to) ? q(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5762
+ from: Ie((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5763
+ to: Ie((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5694
5764
  }
5695
5765
  }),
5696
5766
  (g) => A(g) || (V(g) || or(g)) && K(g)
@@ -5764,7 +5834,7 @@ class cs extends p {
5764
5834
  });
5765
5835
  }
5766
5836
  }
5767
- class T extends ue {
5837
+ class $ extends ue {
5768
5838
  /**
5769
5839
  * Возвращает {@link Promise} для получения данных указанного справочника.
5770
5840
  *
@@ -5798,7 +5868,7 @@ class T extends ue {
5798
5868
  * Возвращает {@link Promise} для получения справочника списка валют.
5799
5869
  */
5800
5870
  getCurrency() {
5801
- return this.getTypedDataArrayRequester(N, "/public/references/currency", !0);
5871
+ return this.getTypedDataArrayRequester(U, "/public/references/currency", !0);
5802
5872
  }
5803
5873
  /**
5804
5874
  * Возвращает {@link Promise} для получения справочника данных
@@ -5811,7 +5881,7 @@ class T extends ue {
5811
5881
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
5812
5882
  */
5813
5883
  getOpf() {
5814
- return this.getTypedDataArrayRequester(U, "/public/references/opf", !0);
5884
+ return this.getTypedDataArrayRequester(H, "/public/references/opf", !0);
5815
5885
  }
5816
5886
  /**
5817
5887
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -5841,13 +5911,13 @@ class T extends ue {
5841
5911
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5842
5912
  */
5843
5913
  getSalesDirections() {
5844
- return this.getTypedDataArrayRequester(_, "/public/references/sales-direction", !0);
5914
+ return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
5845
5915
  }
5846
5916
  /**
5847
5917
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5848
5918
  */
5849
5919
  getSourcePrimaryInterest() {
5850
- return this.getTypedDataArrayRequester(vr, "/internal/references/source-primary-interest", !0);
5920
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/source-primary-interest", !0);
5851
5921
  }
5852
5922
  /**
5853
5923
  * Выполняет поиск данных о городах по терму в названии.
@@ -5895,7 +5965,7 @@ class T extends ue {
5895
5965
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5896
5966
  */
5897
5967
  getPriceCoefficients() {
5898
- return this.getTypedDataArrayRequester(Ce, "/internal/references/price-coefficient", !0);
5968
+ return this.getTypedDataArrayRequester(ve, "/internal/references/price-coefficient", !0);
5899
5969
  }
5900
5970
  /**
5901
5971
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -5904,8 +5974,8 @@ class T extends ue {
5904
5974
  return this.getTypedDataArrayRequester(gt, "/public/references/product-file-type", !0);
5905
5975
  }
5906
5976
  }
5907
- const $ = j("common.references_private", () => {
5908
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), b = y(void 0), ee = y(void 0), re = y(void 0), F = y(void 0), M = y(void 0), Ae = y(void 0), l = y(void 0);
5977
+ const a = G("common.references_private", () => {
5978
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), S = y(void 0), ee = y(void 0), re = y(void 0), M = y(void 0), B = y(void 0), Ae = y(void 0), l = y(void 0);
5909
5979
  return {
5910
5980
  /**
5911
5981
  * Список загружаемых/загруженных на данный момент значений.
@@ -5954,7 +6024,7 @@ const $ = j("common.references_private", () => {
5954
6024
  /**
5955
6025
  * Справочник типов файлов продукктов/категорий.
5956
6026
  */
5957
- productFileTypeReference: b,
6027
+ productFileTypeReference: S,
5958
6028
  /**
5959
6029
  * Справочник типов ресурсов.
5960
6030
  */
@@ -5966,11 +6036,11 @@ const $ = j("common.references_private", () => {
5966
6036
  /**
5967
6037
  * Справочник источников первичного интереса.
5968
6038
  */
5969
- sourcePrimaryInterestReference: F,
6039
+ sourcePrimaryInterestReference: M,
5970
6040
  /**
5971
6041
  * Справочник складов.
5972
6042
  */
5973
- warehousesReference: M,
6043
+ warehousesReference: B,
5974
6044
  /**
5975
6045
  * Справочник типов свойств.
5976
6046
  */
@@ -5980,90 +6050,90 @@ const $ = j("common.references_private", () => {
5980
6050
  */
5981
6051
  priceCoefficientsReference: l
5982
6052
  };
5983
- }), ls = j("common.references", () => {
6053
+ }), ls = G("common.references", () => {
5984
6054
  const n = D(() => {
5985
- const l = $();
5986
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((m) => {
6055
+ const l = a();
6056
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance($).getChannelPrimaryInterest().then((m) => {
5987
6057
  l.channelPrimaryInterestReference = m;
5988
6058
  }).catch(w)), l.channelPrimaryInterestReference;
5989
6059
  }), r = D(() => {
5990
- const l = $();
5991
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(T).getContactPositions().then((m) => {
6060
+ const l = a();
6061
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance($).getContactPositions().then((m) => {
5992
6062
  l.contactPositionsReference = m;
5993
6063
  }).catch(w)), l.contactPositionsReference;
5994
6064
  }), e = D(() => {
5995
- const l = $();
5996
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(T).getCurrency().then((m) => {
6065
+ const l = a();
6066
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance($).getCurrency().then((m) => {
5997
6067
  l.currencyReference = m;
5998
6068
  }).catch(w)), l.currencyReference;
5999
6069
  }), s = D(() => {
6000
- const l = $();
6001
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(T).getOpf().then((m) => {
6070
+ const l = a();
6071
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance($).getOpf().then((m) => {
6002
6072
  l.opfReference = m;
6003
6073
  }).catch(w)), l.opfReference;
6004
6074
  }), i = D(() => {
6005
- const l = $();
6006
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(T).getOrderPaymentStatuses().then((m) => {
6075
+ const l = a();
6076
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance($).getOrderPaymentStatuses().then((m) => {
6007
6077
  l.orderPaymentStatusReference = m;
6008
6078
  }).catch(w)), l.orderPaymentStatusReference;
6009
6079
  }), o = D(() => {
6010
- const l = $();
6011
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(T).getOrderStatuses().then((m) => {
6080
+ const l = a();
6081
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance($).getOrderStatuses().then((m) => {
6012
6082
  l.orderStatusReference = m;
6013
6083
  }).catch(w)), l.orderStatusReference;
6014
6084
  }), c = D(() => {
6015
- const l = $();
6016
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(T).getPaymentTypes().then((m) => {
6085
+ const l = a();
6086
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance($).getPaymentTypes().then((m) => {
6017
6087
  l.paymentTypeReference = m;
6018
6088
  }).catch(w)), l.paymentTypeReference;
6019
6089
  }), u = D(() => {
6020
- const l = $();
6021
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(T).getPartnerGroup().then((m) => {
6090
+ const l = a();
6091
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance($).getPartnerGroup().then((m) => {
6022
6092
  l.partnerGroupReference = m;
6023
6093
  }).catch(w)), l.partnerGroupReference;
6024
6094
  }), h = D(() => {
6025
- const l = $();
6026
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(T).getProductFileType().then((m) => {
6095
+ const l = a();
6096
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance($).getProductFileType().then((m) => {
6027
6097
  l.productFileTypeReference = m;
6028
6098
  }).catch(w)), l.productFileTypeReference;
6029
6099
  }), f = D(() => {
6030
- const l = $();
6031
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(T).getResourceTypes().then((m) => {
6100
+ const l = a();
6101
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance($).getResourceTypes().then((m) => {
6032
6102
  l.resourceTypesReference = m;
6033
6103
  }).catch(w)), l.resourceTypesReference;
6034
6104
  }), g = D(() => {
6035
- const l = $();
6036
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((m) => {
6105
+ const l = a();
6106
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance($).getSalesDirections().then((m) => {
6037
6107
  l.salesDirectionsReference = m;
6038
6108
  }).catch(w)), l.salesDirectionsReference;
6039
- }), b = D(() => {
6040
- const l = $();
6041
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
6109
+ }), S = D(() => {
6110
+ const l = a();
6111
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance($).getSourcePrimaryInterest().then((m) => {
6042
6112
  l.sourcePrimaryInterestReference = m;
6043
6113
  }).catch(w)), l.sourcePrimaryInterestReference;
6044
6114
  }), ee = D(() => {
6045
- const l = $();
6046
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
6115
+ const l = a();
6116
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance($).getDeliveryTypes().then((m) => {
6047
6117
  l.deliveryTypeReference = m;
6048
6118
  }).catch(w)), l.deliveryTypeReference;
6049
6119
  }), re = D(() => {
6050
- const l = $();
6051
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Ct).getManagers().then((m) => {
6120
+ const l = a();
6121
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(vt).getManagers().then((m) => {
6052
6122
  l.managersList = m;
6053
6123
  }).catch(w)), l.managersList;
6054
- }), F = D(() => {
6055
- const l = $();
6056
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(T).getWarehouses().then((m) => {
6124
+ }), M = D(() => {
6125
+ const l = a();
6126
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance($).getWarehouses().then((m) => {
6057
6127
  l.warehousesReference = m;
6058
6128
  }).catch(w)), l.warehousesReference;
6059
- }), M = D(() => {
6060
- const l = $();
6061
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((m) => {
6129
+ }), B = D(() => {
6130
+ const l = a();
6131
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance($).getPropertyTypes().then((m) => {
6062
6132
  l.propertyTypesReference = m;
6063
6133
  }).catch(w)), l.propertyTypesReference;
6064
6134
  }), Ae = D(() => {
6065
- const l = $();
6066
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((m) => {
6135
+ const l = a();
6136
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance($).getPriceCoefficients().then((m) => {
6067
6137
  l.priceCoefficientsReference = m;
6068
6138
  }).catch(w)), l.priceCoefficientsReference;
6069
6139
  });
@@ -6115,7 +6185,7 @@ const $ = j("common.references_private", () => {
6115
6185
  /**
6116
6186
  * Справочник каналов первичного интереса.
6117
6187
  */
6118
- sourcePrimaryInterestsReference: b,
6188
+ sourcePrimaryInterestsReference: S,
6119
6189
  /**
6120
6190
  * Справочник типов доставки.
6121
6191
  */
@@ -6127,11 +6197,11 @@ const $ = j("common.references_private", () => {
6127
6197
  /**
6128
6198
  * Справочник складов.
6129
6199
  */
6130
- warehousesReference: F,
6200
+ warehousesReference: M,
6131
6201
  /**
6132
6202
  * Справочник типов свойств.
6133
6203
  */
6134
- propertyTypesReference: M,
6204
+ propertyTypesReference: B,
6135
6205
  /**
6136
6206
  * Справочник коэффициентов цен.
6137
6207
  */
@@ -6273,8 +6343,8 @@ class ps extends p {
6273
6343
  });
6274
6344
  }
6275
6345
  }
6276
- var $t = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))($t || {});
6277
- class Tt extends mr {
6346
+ var at = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(at || {});
6347
+ class $t extends mr {
6278
6348
  /**
6279
6349
  * Инициализирует экземпляр класса {@link User}.
6280
6350
  *
@@ -6313,16 +6383,16 @@ class hs extends p {
6313
6383
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6314
6384
  }
6315
6385
  }
6316
- class at extends p {
6386
+ class Tt extends p {
6317
6387
  /**
6318
6388
  * Возвращает данные о текущем пользователе.
6319
6389
  */
6320
6390
  // eslint-disable-next-line class-methods-use-this
6321
6391
  getCurrentUser() {
6322
- return this.get("/internal/users/info", {}, (r) => new Tt(r.data), !0);
6392
+ return this.get("/internal/users/info", {}, (r) => new $t(r.data), !0);
6323
6393
  }
6324
6394
  }
6325
- const bt = j("common.user_state_private", () => {
6395
+ const bt = G("common.user_state_private", () => {
6326
6396
  const n = y({}), r = y(void 0);
6327
6397
  return {
6328
6398
  /**
@@ -6334,13 +6404,13 @@ const bt = j("common.user_state_private", () => {
6334
6404
  */
6335
6405
  currentUser: r
6336
6406
  };
6337
- }), gs = j("common.user_state", () => ({
6407
+ }), gs = G("common.user_state", () => ({
6338
6408
  /**
6339
6409
  * Данные о текущем пользователе.
6340
6410
  */
6341
6411
  currentUser: D(() => {
6342
6412
  const r = bt();
6343
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(at).getCurrentUser().then((e) => {
6413
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Tt).getCurrentUser().then((e) => {
6344
6414
  r.currentUser = e;
6345
6415
  }).catch(w).finally(() => {
6346
6416
  r.dataLoaderList.currentUser = !1;
@@ -6376,39 +6446,39 @@ export {
6376
6446
  de as BankAccount,
6377
6447
  De as BasePaginationProvider,
6378
6448
  rt as CalculationTypeEnum,
6379
- ge as Cart,
6449
+ me as Cart,
6380
6450
  et as CartItem,
6381
6451
  Zr as CartItemBase,
6382
6452
  Nt as CartProvider,
6383
6453
  Ht as CatalogProvider,
6384
6454
  cr as CatalogableItem,
6385
- W as Category,
6455
+ x as Category,
6386
6456
  Ve as CategoryPricingRule,
6387
6457
  yr as ChannelPrimaryInterest,
6388
- Vt as City,
6458
+ Kt as City,
6389
6459
  Me as CityWithRegionAndCountry,
6390
6460
  Xe as Client,
6391
6461
  wt as ClientAdditionalData,
6392
- fe as ClientCategory,
6462
+ ye as ClientCategory,
6393
6463
  I as ClientDataProvider,
6394
6464
  jt as ClientPriceProvider,
6395
6465
  Gt as ClientPriceTemplateProvider,
6396
6466
  Y as ClientProduct,
6397
6467
  Bt as ClientProductCategoryDataProvider,
6398
6468
  zt as ClientProductDataProvider,
6399
- he as ClientShortInfo,
6469
+ ge as ClientShortInfo,
6400
6470
  ot as ClientsAdditionalDataRequestTypeEnum,
6401
- Kt as ClientsListFilters,
6471
+ Qt as ClientsListFilters,
6402
6472
  oe as CodedIdentity,
6403
6473
  rs as ConfiguratorProvider,
6404
6474
  _e as Contact,
6405
6475
  hr as ContactLinks,
6406
- H as ContactPerson,
6476
+ j as ContactPerson,
6407
6477
  yt as ContactPersonRelated,
6408
6478
  lt as ContactPosition,
6409
6479
  be as ContactRelation,
6410
- Cr as ContragentBase,
6411
- ye as ContragentFactory,
6480
+ vr as ContragentBase,
6481
+ we as ContragentFactory,
6412
6482
  Pr as ContragentIc,
6413
6483
  mt as ContragentPerson,
6414
6484
  ft as ContragentUlNr,
@@ -6417,14 +6487,14 @@ export {
6417
6487
  X as Country,
6418
6488
  Ge as CuratedDirection,
6419
6489
  Fe as Curator,
6420
- N as Currency,
6490
+ U as Currency,
6421
6491
  ps as DataSuggestionProvider,
6422
- Qt as DataTablePagination,
6423
- vt as DataTablePaginationRequestParams,
6424
- Yt as DataTableSortRequestParams,
6492
+ Yt as DataTablePagination,
6493
+ Ct as DataTablePaginationRequestParams,
6494
+ Xt as DataTableSortRequestParams,
6425
6495
  ts as DateTimeProvider,
6426
6496
  Qr as DeletableNamedIdentity,
6427
- we as DeliveryAddress,
6497
+ Ce as DeliveryAddress,
6428
6498
  Q as DeliveryType,
6429
6499
  Ot as DetailedJwtPayload,
6430
6500
  zr as DeviceTypeResolutionConfig,
@@ -6438,19 +6508,19 @@ export {
6438
6508
  ue as HttpCachedRequester,
6439
6509
  Wr as HttpParamsConfig,
6440
6510
  p as HttpRequester,
6441
- G as Identity,
6511
+ F as Identity,
6442
6512
  Yr as Image,
6443
- O as JwtPayload,
6513
+ N as JwtPayload,
6444
6514
  Re as Manager,
6445
6515
  je as ManagerCommon,
6446
6516
  ss as ManagerDataFactory,
6447
- Ct as ManagerDataProvider,
6517
+ vt as ManagerDataProvider,
6448
6518
  At as MetaTagItem,
6449
- a as NamedIdentity,
6450
- U as Opf,
6451
- x as OpfEnum,
6519
+ T as NamedIdentity,
6520
+ H as Opf,
6521
+ d as OpfEnum,
6452
6522
  Ze as Order,
6453
- $r as OrderInfo,
6523
+ ar as OrderInfo,
6454
6524
  ut as OrderPaymentStatus,
6455
6525
  Pt as OrderProduct,
6456
6526
  Dr as OrderShortInfo,
@@ -6458,65 +6528,65 @@ export {
6458
6528
  is as OrdersDataProvider,
6459
6529
  Z as PartnerGroup,
6460
6530
  ht as PaymentType,
6461
- me as PreferencesStorageProvider,
6531
+ fe as PreferencesStorageProvider,
6462
6532
  Se as PriceAnalyze,
6463
6533
  ns as PriceAnalyzeProvider,
6464
- Ce as PriceCoefficient,
6534
+ ve as PriceCoefficient,
6465
6535
  lr as PriceCoefficientEnum,
6466
6536
  os as PriceHistoryDataProvider,
6467
6537
  Rt as PriceHistoryItem,
6468
- E as PriceTemplate,
6469
- Te as PriceTemplateCategory,
6538
+ J as PriceTemplate,
6539
+ $e as PriceTemplateCategory,
6470
6540
  te as PriceTemplateClient,
6471
6541
  gr as PriceTemplateICatalogableItem,
6472
- ae as PriceTemplateProduct,
6542
+ Te as PriceTemplateProduct,
6473
6543
  Wt as PriceTemplateProvider,
6474
6544
  ie as PricingRole,
6475
- Et as PricingRoleProvider,
6545
+ Jt as PricingRoleProvider,
6476
6546
  xe as PrimaryCatalogableItem,
6477
- S as Product,
6547
+ b as Product,
6478
6548
  Ft as ProductCategoryDataProvider,
6479
6549
  Mt as ProductDataProvider,
6480
6550
  gt as ProductFileType,
6481
6551
  Ne as ProductPriceCoefficient,
6482
6552
  Dt as ProductPriceHistory,
6483
- Je as ProductUnit,
6484
- Jt as PropertiesProvider,
6553
+ Ee as ProductUnit,
6554
+ Et as PropertiesProvider,
6485
6555
  se as Property,
6486
6556
  fr as PropertyType,
6487
6557
  tt as PropertyTypeEnum,
6488
- z as PropertyValue,
6558
+ W as PropertyValue,
6489
6559
  cs as RecommendationsDataProvider,
6490
6560
  rr as RecommendationsList,
6491
6561
  R as Reference,
6492
- T as ReferenceDataProvider,
6562
+ $ as ReferenceDataProvider,
6493
6563
  ce as Region,
6494
6564
  wr as ResourceType,
6495
- _ as SalesDirection,
6496
- Er as SentryConfig,
6565
+ q as SalesDirection,
6566
+ Jr as SentryConfig,
6497
6567
  tr as Seo,
6498
6568
  us as SeoDataProvider,
6499
- vr as SourcePrimaryInterest,
6569
+ Cr as SourcePrimaryInterest,
6500
6570
  Kr as StockCount,
6571
+ Vt as TemplateProductCategoryDataProvider,
6501
6572
  Ut as TemplatesListFilters,
6502
6573
  Ue as TypedInstanceFactory,
6503
6574
  Ar as UnitsHelper,
6504
- Xt as UnknownClientDataProvider,
6575
+ Zt as UnknownClientDataProvider,
6505
6576
  pr as UpdatableNamedIdentity,
6506
- Tt as User,
6577
+ $t as User,
6507
6578
  hs as UserAuthDataProvider,
6508
6579
  mr as UserCommonInfo,
6509
- at as UserDataProvider,
6580
+ Tt as UserDataProvider,
6510
6581
  it as UserPricingRole,
6511
- d as UserShortInfo,
6512
- $t as UserTypeEnum,
6582
+ _ as UserShortInfo,
6583
+ at as UserTypeEnum,
6513
6584
  es as VersionConfig,
6514
6585
  Pe as Warehouse,
6515
- Jr as WebSocketConfig,
6586
+ Er as WebSocketConfig,
6516
6587
  Qe as findCatalogItemByIdRecursive,
6517
6588
  Ye as flattenCatalogItems,
6518
- Zt as loadRemoteConfig,
6519
- $e as useAuthStateStore,
6589
+ ae as useAuthStateStore,
6520
6590
  k as useBaseConfigStateStore,
6521
6591
  ls as useReferencesStore,
6522
6592
  gs as useUserStateStore