@snabcentr/common-lib 1.77.0 → 1.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  var Tr = Object.defineProperty;
2
- var br = (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) => br(n, typeof r != "symbol" ? r + "" : r, e);
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);
4
4
  import { jwtDecode as ir } from "jwt-decode";
5
- import { merge as ne, isString as v, isNil as A, isEmpty as K, noop as w, mapValues as nr, isArray as V, every as ar, split as Sr, toUpper as Ir, constant as kr, cloneDeep as Lr, toLower as xr, isFunction as qe, map as Ce, forEach as _r, isDate as Le, omitBy as or, isObject as cr } from "lodash-es";
5
+ import { merge as ne, isNil as $, isEmpty as K, noop as w, mapValues as nr, 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 _e, map as Ce, forEach as dr, isDate as Le, omitBy as or, isObject as cr } from "lodash-es";
6
6
  import { objectToCamel as Ne, objectToSnake as We } from "ts-case-convert";
7
- import { parseISO as C, isAfter as Ee, startOfToday as xe, format as x, addSeconds as dr, addBusinessDays as Or, endOfTomorrow as qr, startOfTomorrow as Nr, endOfYesterday as Ur, startOfYesterday as jr, endOfToday as Gr, endOfDay as Fr, startOfDay as Mr } from "date-fns";
8
- import { defineStore as j } from "pinia";
9
- import { ref as y, markRaw as Br, computed as R } from "vue";
10
- import Hr from "axios";
11
- class q {
7
+ import { defineStore as H } from "pinia";
8
+ import { ref as y, markRaw as qr, computed as D } from "vue";
9
+ import { isAfter as Ee, parseISO as C, startOfToday as xe, format as O, addSeconds as Or, addBusinessDays as _r, 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
+ import Br from "axios";
11
+ class _ {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class q {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = ir(r), s = new q(Ne(e));
110
+ const e = ir(r), s = new _(Ne(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Nt extends q {
114
+ class _t extends _ {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,7 +151,7 @@ class Nt extends q {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new q(Ne(ir(e)));
154
+ return new _(Ne(ir(e)));
155
155
  }
156
156
  }
157
157
  class zr {
@@ -244,28 +244,6 @@ class Er {
244
244
  }
245
245
  }
246
246
  class Jr {
247
- /**
248
- * Инициализирует экземпляр класса {@link VersionConfig}.
249
- *
250
- * @param data Данные для первоначальной инициализации.
251
- */
252
- constructor(r) {
253
- /**
254
- * Дата релиза текущей версии приложения.
255
- */
256
- t(this, "date");
257
- /**
258
- * Название релиза.
259
- */
260
- t(this, "name");
261
- /**
262
- * Текущая версия приложения.
263
- */
264
- t(this, "version");
265
- 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";
266
- }
267
- }
268
- class Vr {
269
247
  /**
270
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
271
249
  *
@@ -304,7 +282,7 @@ class Vr {
304
282
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
305
283
  }
306
284
  }
307
- class Kr {
285
+ class Vr {
308
286
  /**
309
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
310
288
  *
@@ -339,10 +317,6 @@ class Kr {
339
317
  * @inheritDoc
340
318
  */
341
319
  t(this, "urls");
342
- /**
343
- * @inheritDoc
344
- */
345
- t(this, "version");
346
320
  /**
347
321
  * Конфигурация web-сокета.
348
322
  */
@@ -355,15 +329,15 @@ class Kr {
355
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({
356
330
  environment: this.environment,
357
331
  ...r == null ? void 0 : r.sentry
358
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new Jr(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new Vr(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 Jr(r.websocket) : void 0, this.dateFormats = {
359
333
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
360
334
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
361
335
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
362
336
  };
363
337
  }
364
338
  }
365
- const b = j("common.config", () => {
366
- const n = y(new Kr());
339
+ const b = H("common.config", () => {
340
+ const n = y(new Vr());
367
341
  return {
368
342
  /**
369
343
  * Конфигурационные данные приложения.
@@ -405,7 +379,7 @@ class me {
405
379
  try {
406
380
  const s = JSON.parse(e);
407
381
  if (!s.availableFor || Ee(C(s.availableFor) || xe(), /* @__PURE__ */ new Date())) {
408
- if (A(s.data) || K(s.data))
382
+ if ($(s.data) || K(s.data))
409
383
  throw new Error("Data is empty");
410
384
  return s.data;
411
385
  }
@@ -427,7 +401,7 @@ class me {
427
401
  static saveActualDataToStorage(r, e, s) {
428
402
  if (this.isLocalStorageAvailable())
429
403
  try {
430
- if (A(e) || K(e))
404
+ if ($(e) || K(e))
431
405
  throw new Error("Data is empty");
432
406
  const i = JSON.stringify({
433
407
  availableFor: s,
@@ -496,30 +470,30 @@ class me {
496
470
  }
497
471
  function Je(n) {
498
472
  try {
499
- const r = q.getJwtPayload(n);
473
+ const r = _.getJwtPayload(n);
500
474
  return new Date(r.exp * 1e3);
501
475
  } catch {
502
476
  return;
503
477
  }
504
478
  }
505
- const B = j("common.auth_state_private", () => {
479
+ const M = H("common.auth_state_private", () => {
506
480
  const n = y(
507
481
  (() => {
508
- var u;
482
+ var l;
509
483
  const o = me.getActualDataFromStorage(
510
484
  "sc.token"
511
485
  /* JwtToken */
512
486
  );
513
487
  if (o)
514
488
  return Promise.resolve(o);
515
- const c = (u = b().config.devMode) == null ? void 0 : u.initAuthBearerToken;
489
+ const c = (l = b().config.devMode) == null ? void 0 : l.initAuthBearerToken;
516
490
  return c ? Promise.resolve(c) : void 0;
517
491
  })()
518
- ), r = y(void 0), e = y(void 0), s = Br(/* @__PURE__ */ new Map());
492
+ ), r = y(void 0), e = y(void 0), s = qr(/* @__PURE__ */ new Map());
519
493
  function i() {
520
- e.value = void 0, A(n.value) || n.value.then((o) => {
521
- const c = q.getJwtPayload(o);
522
- e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
494
+ e.value = void 0, $(n.value) || n.value.then((o) => {
495
+ const c = _.getJwtPayload(o);
496
+ e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (l) => (l == null ? void 0 : l.roles) ?? []) : void 0;
523
497
  }).catch(w);
524
498
  }
525
499
  return {
@@ -544,49 +518,49 @@ const B = j("common.auth_state_private", () => {
544
518
  */
545
519
  recalculateUserPermissions: i
546
520
  };
547
- }), Te = j("common.auth_state", () => {
548
- const n = R(() => {
549
- const o = B();
550
- if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
521
+ }), Te = H("common.auth_state", () => {
522
+ const n = D(() => {
523
+ const o = M();
524
+ if ($(o.jwtToken) && !$(o.jwtTokenUpdater)) {
551
525
  const c = o.jwtTokenUpdater();
552
- o.jwtToken = c, c.then((u) => {
553
- o.jwtToken = Promise.resolve(u), me.saveActualDataToStorage("sc.token", u, Je(u)), o.recalculateUserPermissions();
526
+ o.jwtToken = c, c.then((l) => {
527
+ o.jwtToken = Promise.resolve(l), me.saveActualDataToStorage("sc.token", l, Je(l)), o.recalculateUserPermissions();
554
528
  }).catch(w);
555
529
  }
556
530
  return o.jwtToken;
557
531
  });
558
532
  function r(o) {
559
- B().jwtTokenUpdater = o;
533
+ M().jwtTokenUpdater = o;
560
534
  }
561
535
  function e(o) {
562
- const c = B();
536
+ const c = M();
563
537
  c.jwtToken = Promise.resolve(o), me.saveActualDataToStorage("sc.token", o, Je(o)), c.recalculateUserPermissions();
564
538
  }
565
539
  function s() {
566
- const o = B();
540
+ const o = M();
567
541
  o.jwtToken = void 0, o.userPermissions = void 0, me.saveActualDataToStorage("sc.token", void 0);
568
542
  }
569
543
  function i(o) {
570
- const c = B();
571
- !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
572
- const g = q.getJwtPayload(f);
573
- c.userPermissions = g.exp * 1e3 > Date.now() ? nr(g.resourceAccess, (a) => (a == null ? void 0 : a.roles) ?? []) : void 0;
544
+ const c = M();
545
+ !$(c.jwtToken) && $(c.userPermissions) && c.jwtToken.then((f) => {
546
+ const g = _.getJwtPayload(f);
547
+ c.userPermissions = g.exp * 1e3 > Date.now() ? nr(g.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
574
548
  }).catch(w);
575
- const u = V(o) ? o.join(" && ") : o;
576
- if (c.userPermissionsComputedRefs.has(u))
577
- return c.userPermissionsComputedRefs.get(u);
578
- const h = R(() => {
549
+ const l = V(o) ? o.join(" && ") : o;
550
+ if (c.userPermissionsComputedRefs.has(l))
551
+ return c.userPermissionsComputedRefs.get(l);
552
+ const h = D(() => {
579
553
  const f = (g) => {
580
- var M;
581
- const a = Sr(g, ".");
582
- if (a.length < 2)
554
+ var F;
555
+ const S = Sr(g, ".");
556
+ if (S.length < 2)
583
557
  return !1;
584
- const [ee, re] = a, F = (M = B().userPermissions) == null ? void 0 : M[ee];
585
- return V(F) && F.includes(re);
558
+ const [ee, re] = S, G = (F = M().userPermissions) == null ? void 0 : F[ee];
559
+ return V(G) && G.includes(re);
586
560
  };
587
- return V(o) ? ar(o, (g) => f(g)) : f(o);
561
+ return V(o) ? br(o, (g) => f(g)) : f(o);
588
562
  });
589
- return c.userPermissionsComputedRefs.set(u, h), h;
563
+ return c.userPermissionsComputedRefs.set(l, h), h;
590
564
  }
591
565
  return {
592
566
  /**
@@ -617,7 +591,7 @@ const B = j("common.auth_state_private", () => {
617
591
  hasUserPermission: i
618
592
  };
619
593
  });
620
- class G {
594
+ class j {
621
595
  /**
622
596
  * Инициализирует экземпляр класса {@link Identity}.
623
597
  *
@@ -633,16 +607,16 @@ class G {
633
607
  * @inheritDoc
634
608
  */
635
609
  t(this, "guid");
636
- this.id = r == null ? void 0 : r.id, A(this.id) && (A(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
610
+ this.id = r == null ? void 0 : r.id, $(this.id) && ($(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
637
611
  }
638
612
  /**
639
613
  * Возвращает признак, что это новая запись.
640
614
  */
641
615
  isNewRec() {
642
- return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
616
+ return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : $(this.id);
643
617
  }
644
618
  }
645
- class T extends G {
619
+ class a extends j {
646
620
  /**
647
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
648
622
  *
@@ -657,7 +631,7 @@ class T extends G {
657
631
  this.name = (e == null ? void 0 : e.name) ?? "";
658
632
  }
659
633
  }
660
- class oe extends T {
634
+ class oe extends a {
661
635
  /**
662
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
663
637
  *
@@ -672,7 +646,7 @@ class oe extends T {
672
646
  this.code = (e == null ? void 0 : e.code) ?? "";
673
647
  }
674
648
  }
675
- class lr extends oe {
649
+ class ur extends oe {
676
650
  /**
677
651
  * Инициализирует экземпляр класса {@link CatalogableItem}.
678
652
  *
@@ -691,7 +665,7 @@ class lr extends oe {
691
665
  this.slug = (e == null ? void 0 : e.slug) ?? "";
692
666
  }
693
667
  }
694
- class _e extends lr {
668
+ class de extends ur {
695
669
  /**
696
670
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
697
671
  *
@@ -706,7 +680,7 @@ class _e extends lr {
706
680
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
707
681
  }
708
682
  }
709
- class pe extends _e {
683
+ class pe extends de {
710
684
  /**
711
685
  * Инициализирует экземпляр класса {@link BaseCategory}.
712
686
  *
@@ -730,11 +704,11 @@ class pe extends _e {
730
704
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
731
705
  */
732
706
  t(this, "currencyRates");
733
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Ir(s), i])) : void 0;
707
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [kr(s), i])) : void 0;
734
708
  }
735
709
  }
736
- var ur = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ur || {});
737
- class P extends T {
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 {
738
712
  /**
739
713
  * Инициализирует экземпляр класса {@link Reference}.
740
714
  *
@@ -753,12 +727,12 @@ class P extends T {
753
727
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
754
728
  }
755
729
  }
756
- class Pe extends P {
730
+ class Pe extends R {
757
731
  /**
758
732
  * Возвращает значение справочника коэффициента розничной цены.
759
733
  */
760
734
  static getRetailPriceCoefficient() {
761
- return { id: -2, slug: ur.Retail, name: "Розн. цена", guid: "", isNewRec: kr(!0) };
735
+ return { id: -2, slug: lr.Retail, name: "Розн. цена", guid: "", isNewRec: Ir(!0) };
762
736
  }
763
737
  }
764
738
  class Ue {
@@ -809,9 +783,9 @@ class pr {
809
783
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
810
784
  }
811
785
  }
812
- class Q extends P {
786
+ class Q extends R {
813
787
  }
814
- class Re extends P {
788
+ class Re extends R {
815
789
  /**
816
790
  * Инициализирует экземпляр класса {@link Warehouse}.
817
791
  *
@@ -843,7 +817,7 @@ class Re extends P {
843
817
  this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new pr(e == null ? void 0 : e.coordinates);
844
818
  }
845
819
  }
846
- class Qr {
820
+ class Kr {
847
821
  /**
848
822
  * Инициализирует экземпляр класса {@link StockCount}.
849
823
  *
@@ -861,7 +835,7 @@ class Qr {
861
835
  this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
862
836
  }
863
837
  }
864
- class Yr extends lr {
838
+ class Qr extends ur {
865
839
  /**
866
840
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
867
841
  *
@@ -876,7 +850,7 @@ class Yr extends lr {
876
850
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
877
851
  }
878
852
  }
879
- class Xr {
853
+ class Yr {
880
854
  /**
881
855
  * Инициализирует экземпляр класса {@link Image}.
882
856
  *
@@ -899,14 +873,14 @@ class Xr {
899
873
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
900
874
  }
901
875
  }
902
- class I extends Yr {
876
+ class k extends Qr {
903
877
  /**
904
878
  * Инициализирует экземпляр класса {@link Product}.
905
879
  *
906
880
  * @param data Данные для первоначальной инициализации.
907
881
  */
908
882
  constructor(e) {
909
- var i, o, c, u;
883
+ var i, o, c, l;
910
884
  super(e);
911
885
  /**
912
886
  * Артикул производителя/поставщика.
@@ -984,9 +958,9 @@ class I extends Yr {
984
958
  * Список коэффициентов цен на продукт.
985
959
  */
986
960
  t(this, "priceCoefficients");
987
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", 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 Qr(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
961
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", 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.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
988
962
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
989
- s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Xr(h, b().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 Ue(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
963
+ s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new de(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Yr(h, b().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 = ((l = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : l.map((h) => new Ue(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
990
964
  }
991
965
  /**
992
966
  * Возвращает признак, что это измеряемый товар.
@@ -1009,7 +983,7 @@ class I extends Yr {
1009
983
  return this.retailCostRub ?? this.costRub;
1010
984
  }
1011
985
  }
1012
- class Zr extends G {
986
+ class Xr extends j {
1013
987
  /**
1014
988
  * Инициализирует экземпляр класса {@link CartItemBase}.
1015
989
  *
@@ -1061,10 +1035,10 @@ class Zr extends G {
1061
1035
  * Признак того, что позиция является дополнительной продажей.
1062
1036
  */
1063
1037
  t(this, "dopProdaga");
1064
- this.product = new I(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.dopProdaga = e.dopProdaga;
1038
+ this.product = new k(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.dopProdaga = e.dopProdaga;
1065
1039
  }
1066
1040
  }
1067
- class et extends Zr {
1041
+ class Zr extends Xr {
1068
1042
  /**
1069
1043
  * Инициализирует экземпляр класса {@link CartItem}.
1070
1044
  *
@@ -1133,10 +1107,10 @@ class ge {
1133
1107
  * Список итоговых сумм по направлениям продаж.
1134
1108
  */
1135
1109
  t(this, "directionsSum");
1136
- this.items = r.items.map((e) => new et(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1110
+ this.items = r.items.map((e) => new Zr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1137
1111
  }
1138
1112
  }
1139
- class je {
1113
+ class He {
1140
1114
  /**
1141
1115
  * Инициализирует экземпляр указанного класса.
1142
1116
  *
@@ -1155,7 +1129,7 @@ class je {
1155
1129
  return new r(e);
1156
1130
  }
1157
1131
  }
1158
- const S = class S {
1132
+ const P = class P {
1159
1133
  /**
1160
1134
  * Инициализирует экземпляр класса {@link HttpRequester}.
1161
1135
  */
@@ -1194,8 +1168,15 @@ const S = class S {
1194
1168
  // eslint-disable-next-line class-methods-use-this
1195
1169
  t(this, "authRequestInterceptor", async (r) => {
1196
1170
  let e;
1197
- return A(Te().jwtToken) || (e = await Te().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1171
+ return $(Te().jwtToken) || (e = await Te().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1198
1172
  });
1173
+ /**
1174
+ * Перехватчик запроса для вызова пользовательских хуков.
1175
+ *
1176
+ * @param request Данные запроса.
1177
+ */
1178
+ // eslint-disable-next-line class-methods-use-this
1179
+ t(this, "userRequestHooksInterceptor", async (r) => P.requestHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
1199
1180
  /**
1200
1181
  * Перехватчик запроса для преобразования данных запроса.
1201
1182
  *
@@ -1213,6 +1194,13 @@ const S = class S {
1213
1194
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1214
1195
  return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Te().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1215
1196
  });
1197
+ /**
1198
+ * Перехватчик ответа для вызова пользовательских хуков.
1199
+ *
1200
+ * @param response Данные ответа на запрос.
1201
+ */
1202
+ // eslint-disable-next-line class-methods-use-this
1203
+ t(this, "userResponseHooksInterceptor", async (r) => P.responseHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
1216
1204
  /**
1217
1205
  * Перехватчик ответа для преобразования данных ответа на запрос.
1218
1206
  *
@@ -1220,23 +1208,21 @@ const S = class S {
1220
1208
  */
1221
1209
  // eslint-disable-next-line class-methods-use-this
1222
1210
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ne(r.data)), r));
1223
- const r = b().config.version;
1224
- this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Hr.create({
1211
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Br.create({
1225
1212
  headers: {
1226
- "APP-VERSION": `${r.name} (${r.version}, ${x(r.date, b().config.dateFormats.uiDate)})`,
1227
1213
  Accept: "application/json",
1228
1214
  "Content-Type": "application/json"
1229
1215
  }
1230
- }), this.interceptorIds.request.setBaseUrlRequestInterceptor = this.httpClient.interceptors.request.use(this.setBaseUrlRequestInterceptor, (e) => Promise.reject(e)), this.interceptorIds.request.authRequestInterceptor = this.httpClient.interceptors.request.use(this.authRequestInterceptor, (e) => Promise.reject(e)), this.interceptorIds.request.dataConverterRequestInterceptor = this.httpClient.interceptors.request.use(
1216
+ }), this.interceptorIds.request.setBaseUrlRequestInterceptor = this.httpClient.interceptors.request.use(this.setBaseUrlRequestInterceptor, (r) => Promise.reject(r)), this.interceptorIds.request.userRequestHooksInterceptor = this.httpClient.interceptors.request.use(this.userRequestHooksInterceptor, (r) => Promise.reject(r)), this.interceptorIds.request.authRequestInterceptor = this.httpClient.interceptors.request.use(this.authRequestInterceptor, (r) => Promise.reject(r)), this.interceptorIds.request.dataConverterRequestInterceptor = this.httpClient.interceptors.request.use(
1231
1217
  this.dataConverterRequestInterceptor,
1232
- (e) => Promise.reject(e)
1218
+ (r) => Promise.reject(r)
1233
1219
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1234
- (e) => e,
1235
- (e) => S.convertHttpErrorResponse(e)
1236
- ), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1220
+ (r) => r,
1221
+ (r) => P.convertHttpErrorResponse(r)
1222
+ ), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1237
1223
  this.dataConverterResponseInterceptor,
1238
- (e) => Promise.reject(e)
1239
- );
1224
+ (r) => Promise.reject(r)
1225
+ ), this.interceptorIds.response.userResponseHooksInterceptor = this.httpClient.interceptors.response.use(this.userResponseHooksInterceptor, (r) => Promise.reject(r));
1240
1226
  }
1241
1227
  /**
1242
1228
  * Устанавливает базовый обработчик ошибок выполнения запросов.
@@ -1244,7 +1230,41 @@ const S = class S {
1244
1230
  * @param handler Ссылка на функцию-обработчик ошибок.
1245
1231
  */
1246
1232
  static setDefaultErrorsResponseHandler(r) {
1247
- S.defaultErrorsResponseHandler = r;
1233
+ P.defaultErrorsResponseHandler = r;
1234
+ }
1235
+ /**
1236
+ * Регистрирует хук, который будет вызываться перед выполнением каждого HTTP запроса.
1237
+ *
1238
+ * @param hook Функция-хук для обработки запроса.
1239
+ */
1240
+ static addRequestHook(r) {
1241
+ P.requestHooks.includes(r) || P.requestHooks.push(r);
1242
+ }
1243
+ /**
1244
+ * Удаляет зарегистрированный хук запроса.
1245
+ *
1246
+ * @param hook Функция-хук для удаления.
1247
+ */
1248
+ static removeRequestHook(r) {
1249
+ const e = P.requestHooks.indexOf(r);
1250
+ e !== -1 && P.requestHooks.splice(e, 1);
1251
+ }
1252
+ /**
1253
+ * Регистрирует хук, который будет вызываться после получения ответа на каждый HTTP запрос.
1254
+ *
1255
+ * @param hook Функция-хук для обработки ответа.
1256
+ */
1257
+ static addResponseHook(r) {
1258
+ P.responseHooks.includes(r) || P.responseHooks.push(r);
1259
+ }
1260
+ /**
1261
+ * Удаляет зарегистрированный хук ответа.
1262
+ *
1263
+ * @param hook Функция-хук для удаления.
1264
+ */
1265
+ static removeResponseHook(r) {
1266
+ const e = P.responseHooks.indexOf(r);
1267
+ e !== -1 && P.responseHooks.splice(e, 1);
1248
1268
  }
1249
1269
  /**
1250
1270
  * Возвращает экземпляр объекта текущего класса.
@@ -1252,7 +1272,7 @@ const S = class S {
1252
1272
  * @param type Тип данных, которыми оперирует метод.
1253
1273
  */
1254
1274
  static getInstance(r) {
1255
- return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = je.simpleInstanceInitializer(r)), S.instances[r.name];
1275
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = He.simpleInstanceInitializer(r)), P.instances[r.name];
1256
1276
  }
1257
1277
  /**
1258
1278
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1261,7 +1281,7 @@ const S = class S {
1261
1281
  */
1262
1282
  static convertHttpErrorResponse(r) {
1263
1283
  var e, s;
1264
- if (!A(r.request) || !A(r.response)) {
1284
+ if (!$(r.request) || !$(r.response)) {
1265
1285
  const i = r == null ? void 0 : r.response;
1266
1286
  return Promise.reject({
1267
1287
  status: (i == null ? void 0 : i.status) ?? 0,
@@ -1350,16 +1370,22 @@ const S = class S {
1350
1370
  * Экземпляр объекта текущего класса.
1351
1371
  */
1352
1372
  // eslint-disable-next-line no-use-before-define
1353
- t(S, "instances", {}), /**
1373
+ t(P, "instances", {}), /**
1354
1374
  * Базовый обработчик ошибок выполнения запросов.
1355
1375
  *
1356
1376
  * @param error Данные об ошибке.
1357
1377
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1358
1378
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1359
1379
  */
1360
- t(S, "defaultErrorsResponseHandler", w);
1361
- let p = S;
1362
- class Ut extends p {
1380
+ t(P, "defaultErrorsResponseHandler", w), /**
1381
+ * Список зарегистрированных хуков для запросов.
1382
+ */
1383
+ t(P, "requestHooks", []), /**
1384
+ * Список зарегистрированных хуков для ответов.
1385
+ */
1386
+ t(P, "responseHooks", []);
1387
+ let p = P;
1388
+ class Nt extends p {
1363
1389
  /**
1364
1390
  * Возвращает содержимое корзины указанного клиента.
1365
1391
  *
@@ -1473,7 +1499,7 @@ class Ut extends p {
1473
1499
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1474
1500
  }
1475
1501
  }
1476
- var rt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(rt || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), 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 || {});
1502
+ var et = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(et || {}), je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {}), rt = /* @__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))(rt || {});
1477
1503
  class z extends pe {
1478
1504
  /**
1479
1505
  * Инициализирует экземпляр класса {@link Category}.
@@ -1491,10 +1517,10 @@ class z extends pe {
1491
1517
  * Список продуктов категории.
1492
1518
  */
1493
1519
  t(this, "products");
1494
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1520
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new k(o));
1495
1521
  }
1496
1522
  }
1497
- class hr extends T {
1523
+ class hr extends a {
1498
1524
  /**
1499
1525
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1500
1526
  *
@@ -1509,7 +1535,7 @@ class hr extends T {
1509
1535
  this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1510
1536
  }
1511
1537
  }
1512
- class st extends hr {
1538
+ class tt extends hr {
1513
1539
  /**
1514
1540
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1515
1541
  *
@@ -1524,7 +1550,7 @@ class st extends hr {
1524
1550
  this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1525
1551
  }
1526
1552
  }
1527
- class d extends T {
1553
+ class d extends a {
1528
1554
  /**
1529
1555
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1530
1556
  *
@@ -1539,7 +1565,7 @@ class d extends T {
1539
1565
  this.type = e == null ? void 0 : e.type;
1540
1566
  }
1541
1567
  }
1542
- class it extends T {
1568
+ class st extends a {
1543
1569
  /**
1544
1570
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1545
1571
  *
@@ -1597,7 +1623,7 @@ class W extends hr {
1597
1623
  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();
1598
1624
  }
1599
1625
  }
1600
- class Y extends I {
1626
+ class Y extends k {
1601
1627
  /**
1602
1628
  * Инициализирует экземпляр класса {@link ClientProduct}.
1603
1629
  *
@@ -1633,7 +1659,7 @@ class Y extends I {
1633
1659
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1634
1660
  */
1635
1661
  t(this, "isFavorite");
1636
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new it(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(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;
1662
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new st(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(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;
1637
1663
  }
1638
1664
  }
1639
1665
  class gr {
@@ -1654,9 +1680,9 @@ class gr {
1654
1680
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1655
1681
  }
1656
1682
  }
1657
- class O extends P {
1683
+ class q extends R {
1658
1684
  }
1659
- class Fe extends T {
1685
+ class Ge extends a {
1660
1686
  /**
1661
1687
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1662
1688
  *
@@ -1684,12 +1710,12 @@ class Fe extends T {
1684
1710
  * @inheritDoc
1685
1711
  */
1686
1712
  t(this, "isRegionalDirector");
1687
- this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new gr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1713
+ 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 gr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1688
1714
  }
1689
1715
  }
1690
- class Me extends P {
1716
+ class Fe extends R {
1691
1717
  }
1692
- class nt extends T {
1718
+ class it extends a {
1693
1719
  /**
1694
1720
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1695
1721
  *
@@ -1712,7 +1738,7 @@ class nt extends T {
1712
1738
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1713
1739
  }
1714
1740
  }
1715
- class De extends Fe {
1741
+ class De extends Ge {
1716
1742
  /**
1717
1743
  * Инициализирует экземпляр класса {@link Manager}.
1718
1744
  *
@@ -1749,10 +1775,10 @@ class De extends Fe {
1749
1775
  * Список направлений кураторства.
1750
1776
  */
1751
1777
  t(this, "curatedDirections");
1752
- 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 nt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Me(i))) ?? [];
1778
+ 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 Fe(i))) ?? [];
1753
1779
  }
1754
1780
  }
1755
- class ot extends pe {
1781
+ class nt extends pe {
1756
1782
  /**
1757
1783
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1758
1784
  *
@@ -1783,7 +1809,7 @@ class ot extends pe {
1783
1809
  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 De(e.manager) : void 0;
1784
1810
  }
1785
1811
  }
1786
- class fe extends ot {
1812
+ class fe extends nt {
1787
1813
  /**
1788
1814
  * Инициализирует экземпляр класса {@link ClientCategory}.
1789
1815
  *
@@ -1821,7 +1847,7 @@ class mr {
1821
1847
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1822
1848
  }
1823
1849
  }
1824
- class be extends mr {
1850
+ class ae extends mr {
1825
1851
  /**
1826
1852
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1827
1853
  *
@@ -1836,7 +1862,7 @@ class be extends mr {
1836
1862
  this.productCategory = new pe(e == null ? void 0 : e.productCategory);
1837
1863
  }
1838
1864
  }
1839
- class Be extends T {
1865
+ class Me extends a {
1840
1866
  /**
1841
1867
  * Инициализирует экземпляр класса {@link Curator}.
1842
1868
  *
@@ -1856,12 +1882,12 @@ class Be extends T {
1856
1882
  * @inheritDoc
1857
1883
  */
1858
1884
  t(this, "curatedDirection");
1859
- this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Me(e.curatedDirection);
1885
+ this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Fe(e.curatedDirection);
1860
1886
  }
1861
1887
  }
1862
- class X extends P {
1888
+ class X extends R {
1863
1889
  }
1864
- class ce extends P {
1890
+ class ce extends R {
1865
1891
  /**
1866
1892
  * Инициализирует экземпляр класса {@link Region}.
1867
1893
  *
@@ -1876,7 +1902,7 @@ class ce extends P {
1876
1902
  e && (this.country = new X(e.country));
1877
1903
  }
1878
1904
  }
1879
- class He extends P {
1905
+ class Be extends R {
1880
1906
  /**
1881
1907
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1882
1908
  *
@@ -1891,7 +1917,7 @@ class He extends P {
1891
1917
  e && (this.region = new ce(e.region));
1892
1918
  }
1893
1919
  }
1894
- class fr extends T {
1920
+ class fr extends a {
1895
1921
  /**
1896
1922
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1897
1923
  *
@@ -1927,7 +1953,7 @@ class fr extends T {
1927
1953
  * Признак активности учетной записи пользователя.
1928
1954
  */
1929
1955
  t(this, "isActive");
1930
- 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 O(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;
1956
+ 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 = 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;
1931
1957
  }
1932
1958
  }
1933
1959
  class he extends fr {
@@ -1976,10 +2002,10 @@ class he extends fr {
1976
2002
  * @inheritDoc
1977
2003
  */
1978
2004
  t(this, "curators");
1979
- this.salesDirection = new O(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 He(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 Fe(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Be(o))) ?? void 0;
2005
+ 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 Be(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 Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Me(o))) ?? void 0;
1980
2006
  }
1981
2007
  }
1982
- class te extends G {
2008
+ class te extends j {
1983
2009
  /**
1984
2010
  * Инициализирует новый экземпляр класса.
1985
2011
  *
@@ -2006,7 +2032,7 @@ class te extends G {
2006
2032
  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 W(e == null ? void 0 : e.priceTemplate);
2007
2033
  }
2008
2034
  }
2009
- class ae extends mr {
2035
+ class be extends mr {
2010
2036
  /**
2011
2037
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2012
2038
  *
@@ -2018,12 +2044,12 @@ class ae extends mr {
2018
2044
  * Базовые данные о продукте.
2019
2045
  */
2020
2046
  t(this, "product");
2021
- this.product = new I(e == null ? void 0 : e.product);
2047
+ this.product = new k(e == null ? void 0 : e.product);
2022
2048
  }
2023
2049
  }
2024
- class yr extends P {
2050
+ class yr extends R {
2025
2051
  }
2026
- class se extends T {
2052
+ class se extends a {
2027
2053
  /**
2028
2054
  * Инициализирует экземпляр класса {@link Property}.
2029
2055
  *
@@ -2046,7 +2072,7 @@ class se extends T {
2046
2072
  this.type = new yr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2047
2073
  }
2048
2074
  }
2049
- class H {
2075
+ class B {
2050
2076
  /**
2051
2077
  * Инициализирует экземпляр класса {@link PropertyValue}.
2052
2078
  *
@@ -2083,7 +2109,7 @@ class L {
2083
2109
  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;
2084
2110
  }
2085
2111
  }
2086
- class jt {
2112
+ class Ut {
2087
2113
  /**
2088
2114
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2089
2115
  *
@@ -2141,13 +2167,13 @@ class jt {
2141
2167
  var e, s, i, o;
2142
2168
  const r = {};
2143
2169
  return Object.keys(this).forEach((c) => {
2144
- const u = this[c];
2170
+ const l = this[c];
2145
2171
  // eslint-disable-next-line prettier/prettier
2146
- A(u) || v(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
2172
+ $(l) || v(l) && l.trim().length === 0 || _e(l.isNewRec) && l.isNewRec() || (r[c] = l);
2147
2173
  }), !((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;
2148
2174
  }
2149
2175
  }
2150
- class ie extends T {
2176
+ class ie extends a {
2151
2177
  /**
2152
2178
  * Инициализирует экземпляр класса {@link PricingRole}.
2153
2179
  *
@@ -2204,7 +2230,7 @@ class Ve {
2204
2230
  this.role = new ie(r == null ? void 0 : r.role), this.category = new pe(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2205
2231
  }
2206
2232
  }
2207
- class Gt extends p {
2233
+ class Ht extends p {
2208
2234
  /**
2209
2235
  * Возвращает данные о результатах поиска категорий и товаров.
2210
2236
  *
@@ -2235,7 +2261,7 @@ class Gt extends p {
2235
2261
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2236
2262
  }
2237
2263
  }
2238
- class Ft extends p {
2264
+ class jt extends p {
2239
2265
  /**
2240
2266
  * Импортирует цены клиента из CSV файла.
2241
2267
  *
@@ -2434,7 +2460,7 @@ class Ft extends p {
2434
2460
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2435
2461
  }
2436
2462
  }
2437
- class Mt extends p {
2463
+ class Gt extends p {
2438
2464
  /**
2439
2465
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2440
2466
  *
@@ -2473,8 +2499,8 @@ class Mt extends p {
2473
2499
  return this.post(
2474
2500
  `/internal/clients/${r}/price/templates/${e}`,
2475
2501
  s && {
2476
- startAt: s.startAt && x(s.startAt, i),
2477
- endAt: s.endAt && x(s.endAt, i)
2502
+ startAt: s.startAt && O(s.startAt, i),
2503
+ endAt: s.endAt && O(s.endAt, i)
2478
2504
  },
2479
2505
  (o) => new te(o.data),
2480
2506
  {},
@@ -2507,8 +2533,8 @@ class Mt extends p {
2507
2533
  return this.patch(
2508
2534
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2509
2535
  i && {
2510
- startAt: i.startAt && x(i.startAt, o),
2511
- endAt: i.endAt && x(i.endAt, o)
2536
+ startAt: i.startAt && O(i.startAt, o),
2537
+ endAt: i.endAt && O(i.endAt, o)
2512
2538
  },
2513
2539
  (c) => new te(c.data)
2514
2540
  );
@@ -2526,7 +2552,7 @@ class Mt extends p {
2526
2552
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2527
2553
  }
2528
2554
  }
2529
- class Bt extends p {
2555
+ class Ft extends p {
2530
2556
  /**
2531
2557
  * Возвращает список данных о корневых категориях.
2532
2558
  *
@@ -2586,7 +2612,7 @@ class Bt extends p {
2586
2612
  showHidden: s,
2587
2613
  withPriceCoefficients: e
2588
2614
  },
2589
- (i) => Ce(i.data, (o) => new I(o))
2615
+ (i) => Ce(i.data, (o) => new k(o))
2590
2616
  );
2591
2617
  }
2592
2618
  /**
@@ -2599,7 +2625,7 @@ class Bt extends p {
2599
2625
  getCategoryProductsCoefficients(r) {
2600
2626
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2601
2627
  const { data: s } = e;
2602
- return _r(s, (i) => i.map((o) => new Ue(o))), s;
2628
+ return dr(s, (i) => i.map((o) => new Ue(o))), s;
2603
2629
  });
2604
2630
  }
2605
2631
  /**
@@ -2618,7 +2644,7 @@ class Bt extends p {
2618
2644
  });
2619
2645
  }
2620
2646
  }
2621
- class Ht extends p {
2647
+ class Mt extends p {
2622
2648
  /**
2623
2649
  * Возвращает данные об указанном продукте.
2624
2650
  *
@@ -2628,7 +2654,7 @@ class Ht extends p {
2628
2654
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2629
2655
  */
2630
2656
  getProductData(r, e = !1) {
2631
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2657
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
2632
2658
  }
2633
2659
  /**
2634
2660
  * Возвращает публичные данные об указанном продукте.
@@ -2636,7 +2662,7 @@ class Ht extends p {
2636
2662
  * @param productId Идентификатор продукта.
2637
2663
  */
2638
2664
  getPublicProductData(r) {
2639
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2665
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
2640
2666
  }
2641
2667
  /**
2642
2668
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2661,14 +2687,14 @@ class Ht extends p {
2661
2687
  publicSimpleSearch(r, e = 10) {
2662
2688
  return new Promise((s, i) => {
2663
2689
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2664
- s(o.products.map((c) => new I(c)));
2690
+ s(o.products.map((c) => new k(c)));
2665
2691
  }).catch((o) => {
2666
2692
  i(o);
2667
2693
  });
2668
2694
  });
2669
2695
  }
2670
2696
  }
2671
- class zt extends p {
2697
+ class Bt extends p {
2672
2698
  /**
2673
2699
  * Возвращает список данных о корневых категориях указанного клиента.
2674
2700
  *
@@ -2730,7 +2756,7 @@ class zt extends p {
2730
2756
  );
2731
2757
  }
2732
2758
  }
2733
- class Wt extends p {
2759
+ class zt extends p {
2734
2760
  /**
2735
2761
  * Возвращает данные об указанном продукте для указанного клиента.
2736
2762
  *
@@ -2783,10 +2809,10 @@ class Ke {
2783
2809
  field: this.field,
2784
2810
  op: this.op
2785
2811
  };
2786
- return r.value = Le(this.value) ? x(this.value, b().config.dateFormats.api) : this.value, r;
2812
+ return r.value = Le(this.value) ? O(this.value, b().config.dateFormats.api) : this.value, r;
2787
2813
  }
2788
2814
  }
2789
- class le {
2815
+ class ue {
2790
2816
  /**
2791
2817
  * Инициализирует экземпляр класса {@link FilterGroup}.
2792
2818
  *
@@ -2806,7 +2832,7 @@ class le {
2806
2832
  */
2807
2833
  t(this, "groups");
2808
2834
  var e, s;
2809
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ke(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new le(i))) ?? [];
2835
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ke(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
2810
2836
  }
2811
2837
  /**
2812
2838
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2816,8 +2842,8 @@ class le {
2816
2842
  toPrimitive() {
2817
2843
  return {
2818
2844
  groupOp: this.groupOp,
2819
- filters: this.filters.map((r) => r instanceof Ke && qe(r.toPrimitive) ? r.toPrimitive() : r),
2820
- groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
2845
+ filters: this.filters.map((r) => r instanceof Ke && _e(r.toPrimitive) ? r.toPrimitive() : r),
2846
+ groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
2821
2847
  };
2822
2848
  }
2823
2849
  }
@@ -2833,15 +2859,15 @@ class Ae extends p {
2833
2859
  * @param successHandler Обработчик успешного выполнения запроса.
2834
2860
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2835
2861
  */
2836
- getPaginated(r, e, s, i, o, c, u) {
2862
+ getPaginated(r, e, s, i, o, c, l) {
2837
2863
  let h = {
2838
2864
  page: (i == null ? void 0 : i.page) ?? 1,
2839
2865
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2840
2866
  };
2841
- return e && (h.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (h.sort = V(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, u);
2867
+ return e && (h.filters = JSON.stringify((e instanceof ue ? e : new ue(e)).toPrimitive())), K(s) || (h.sort = V(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, l);
2842
2868
  }
2843
2869
  }
2844
- class Et extends Ae {
2870
+ class Wt extends Ae {
2845
2871
  /**
2846
2872
  * Возвращает список шаблонов прайс-листа.
2847
2873
  *
@@ -2913,7 +2939,7 @@ class Et extends Ae {
2913
2939
  return this.get(
2914
2940
  `/internal/price/templates/${r}/products`,
2915
2941
  {},
2916
- (e) => e.data.map((s) => new ae(s))
2942
+ (e) => e.data.map((s) => new be(s))
2917
2943
  );
2918
2944
  }
2919
2945
  /**
@@ -2925,7 +2951,7 @@ class Et extends Ae {
2925
2951
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2926
2952
  */
2927
2953
  getProductTemplatePrice(r, e) {
2928
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ae(s.data));
2954
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new be(s.data));
2929
2955
  }
2930
2956
  /**
2931
2957
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2944,7 +2970,7 @@ class Et extends Ae {
2944
2970
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2945
2971
  increase_percent: s.value
2946
2972
  },
2947
- (o) => new ae(o.data)
2973
+ (o) => new be(o.data)
2948
2974
  );
2949
2975
  }
2950
2976
  /**
@@ -2969,7 +2995,7 @@ class Et extends Ae {
2969
2995
  return this.get(
2970
2996
  `/internal/price/templates/${r}/categories`,
2971
2997
  {},
2972
- (e) => e.data.map((s) => new be(s))
2998
+ (e) => e.data.map((s) => new ae(s))
2973
2999
  );
2974
3000
  }
2975
3001
  /**
@@ -2984,7 +3010,7 @@ class Et extends Ae {
2984
3010
  return this.get(
2985
3011
  `/internal/price/templates/${r}/categories/${e}`,
2986
3012
  {},
2987
- (s) => new be(s.data)
3013
+ (s) => new ae(s.data)
2988
3014
  );
2989
3015
  }
2990
3016
  /**
@@ -3010,7 +3036,7 @@ class Et extends Ae {
3010
3036
  },
3011
3037
  params: i ? { recursively: !0 } : {}
3012
3038
  },
3013
- (c) => new be(c.data)
3039
+ (c) => new ae(c.data)
3014
3040
  );
3015
3041
  }
3016
3042
  /**
@@ -3045,7 +3071,7 @@ class Et extends Ae {
3045
3071
  );
3046
3072
  }
3047
3073
  }
3048
- class Jt extends p {
3074
+ class Et extends p {
3049
3075
  /**
3050
3076
  * Возвращает список ролей ценообразования.
3051
3077
  *
@@ -3125,7 +3151,7 @@ class Jt extends p {
3125
3151
  );
3126
3152
  }
3127
3153
  }
3128
- class Vt extends Ae {
3154
+ class Jt extends Ae {
3129
3155
  /**
3130
3156
  * Возвращает пагинированный список свойств.
3131
3157
  *
@@ -3201,7 +3227,7 @@ class Vt extends Ae {
3201
3227
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3202
3228
  */
3203
3229
  getProductProperties(r) {
3204
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3230
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
3205
3231
  }
3206
3232
  /**
3207
3233
  * Возвращает значение свойства продукта.
@@ -3211,7 +3237,7 @@ class Vt extends Ae {
3211
3237
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3212
3238
  */
3213
3239
  getProductProperty(r, e) {
3214
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3240
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new B(s.data));
3215
3241
  }
3216
3242
  /**
3217
3243
  * Обновляет значение свойства продукта.
@@ -3222,7 +3248,7 @@ class Vt extends Ae {
3222
3248
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3223
3249
  */
3224
3250
  updateProductProperty(r, e, s) {
3225
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3251
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
3226
3252
  }
3227
3253
  /**
3228
3254
  * Удаляет значение свойства продукта.
@@ -3347,7 +3373,7 @@ class Vt extends Ae {
3347
3373
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3348
3374
  */
3349
3375
  getCategoryProperties(r) {
3350
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3376
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
3351
3377
  }
3352
3378
  /**
3353
3379
  * Возвращает значение свойства категории.
@@ -3357,7 +3383,7 @@ class Vt extends Ae {
3357
3383
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3358
3384
  */
3359
3385
  getCategoryProperty(r, e) {
3360
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3386
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new B(s.data));
3361
3387
  }
3362
3388
  /**
3363
3389
  * Обновляет значение свойства категории.
@@ -3368,7 +3394,7 @@ class Vt extends Ae {
3368
3394
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3369
3395
  */
3370
3396
  updateCategoryProperty(r, e, s) {
3371
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3397
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
3372
3398
  }
3373
3399
  /**
3374
3400
  * Удаляет значение свойства категории.
@@ -3527,16 +3553,16 @@ function Ye(n) {
3527
3553
  }
3528
3554
  }), r;
3529
3555
  }
3530
- var ct = /* @__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))(ct || {}), _ = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(_ || {});
3531
- class lt extends P {
3556
+ 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 || {});
3557
+ class ct extends R {
3532
3558
  }
3533
- class wr extends P {
3559
+ class wr extends R {
3534
3560
  }
3535
- class Kt extends P {
3561
+ class Vt extends R {
3536
3562
  }
3537
- class ut extends P {
3563
+ class ut extends R {
3538
3564
  }
3539
- class ye extends T {
3565
+ class ye extends a {
3540
3566
  /**
3541
3567
  * Инициализирует экземпляр класса {@link Currency}.
3542
3568
  *
@@ -3555,7 +3581,7 @@ class ye extends T {
3555
3581
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
3556
3582
  }
3557
3583
  }
3558
- class N extends P {
3584
+ class N extends R {
3559
3585
  /**
3560
3586
  * Возвращает сгенерированную запись-описание физического лица.
3561
3587
  */
@@ -3563,26 +3589,26 @@ class N extends P {
3563
3589
  return new N({
3564
3590
  id: 1,
3565
3591
  guid: "",
3566
- slug: _.Person,
3592
+ slug: x.Person,
3567
3593
  name: ""
3568
3594
  });
3569
3595
  }
3570
3596
  }
3571
- class pt extends P {
3597
+ class lt extends R {
3572
3598
  }
3573
- class ht extends P {
3599
+ class pt extends R {
3574
3600
  }
3575
- class Z extends P {
3601
+ class Z extends R {
3576
3602
  }
3577
- class gt extends P {
3603
+ class ht extends R {
3578
3604
  }
3579
- class mt extends P {
3605
+ class gt extends R {
3580
3606
  }
3581
- class vr extends P {
3607
+ class vr extends R {
3582
3608
  }
3583
- class Cr extends P {
3609
+ class Cr extends R {
3584
3610
  }
3585
- class de extends G {
3611
+ class qe extends j {
3586
3612
  /**
3587
3613
  * Инициализирует экземпляр класса {@link BankAccount}.
3588
3614
  *
@@ -3613,7 +3639,7 @@ class de extends G {
3613
3639
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
3614
3640
  }
3615
3641
  }
3616
- class Oe extends T {
3642
+ class Oe extends a {
3617
3643
  /**
3618
3644
  * Инициализирует экземпляр класса {@link Contact}.
3619
3645
  *
@@ -3667,7 +3693,7 @@ class U extends Oe {
3667
3693
  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;
3668
3694
  }
3669
3695
  }
3670
- class Pr extends T {
3696
+ class Pr extends a {
3671
3697
  /**
3672
3698
  * Инициализирует экземпляр класса {@link ContragentBase}.
3673
3699
  *
@@ -3726,13 +3752,13 @@ class Pr extends T {
3726
3752
  if (e.bankAccounts) {
3727
3753
  const s = [];
3728
3754
  e.bankAccounts.forEach((i) => {
3729
- s.push(new de(i));
3755
+ s.push(new qe(i));
3730
3756
  }), this.bankAccounts = s;
3731
3757
  }
3732
3758
  }
3733
3759
  }
3734
3760
  }
3735
- class ft extends Pr {
3761
+ class mt extends Pr {
3736
3762
  /**
3737
3763
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3738
3764
  *
@@ -3800,7 +3826,7 @@ class Dr extends Rr {
3800
3826
  e && (this.kpp = e.kpp ?? "");
3801
3827
  }
3802
3828
  }
3803
- class yt extends Dr {
3829
+ class ft extends Dr {
3804
3830
  /**
3805
3831
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3806
3832
  *
@@ -3831,18 +3857,18 @@ class we {
3831
3857
  */
3832
3858
  static createInstance(r) {
3833
3859
  switch (r.opf.slug) {
3834
- case _.Ic:
3860
+ case x.Ic:
3835
3861
  return new Rr(r);
3836
- case _.UlR:
3862
+ case x.UlR:
3837
3863
  return new Dr(r);
3838
- case _.UlNr:
3839
- return new yt(r);
3840
- default:
3864
+ case x.UlNr:
3841
3865
  return new ft(r);
3866
+ default:
3867
+ return new mt(r);
3842
3868
  }
3843
3869
  }
3844
3870
  }
3845
- class Se extends G {
3871
+ class Se extends j {
3846
3872
  /**
3847
3873
  * Инициализирует экземпляр класса {@link ContactRelation}.
3848
3874
  *
@@ -3857,7 +3883,7 @@ class Se extends G {
3857
3883
  this.isPrimary = e.isPrimary;
3858
3884
  }
3859
3885
  }
3860
- class wt extends U {
3886
+ class yt extends U {
3861
3887
  /**
3862
3888
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3863
3889
  *
@@ -3885,7 +3911,7 @@ class wt extends U {
3885
3911
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Se(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Se(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Se(s))));
3886
3912
  }
3887
3913
  }
3888
- class ve extends st {
3914
+ class ve extends tt {
3889
3915
  /**
3890
3916
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3891
3917
  *
@@ -3975,10 +4001,10 @@ class Xe extends he {
3975
4001
  * @inheritDoc
3976
4002
  */
3977
4003
  t(this, "extraData");
3978
- 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 U(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new wr(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 Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4004
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((l) => we.createInstance(l))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((l) => new Z(l))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((l) => new U(l))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((l) => new ve(l))) ?? [], this.channelPrimaryInterest = new wr(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 Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3979
4005
  }
3980
4006
  }
3981
- class Qt {
4007
+ class Kt {
3982
4008
  /**
3983
4009
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3984
4010
  *
@@ -4077,9 +4103,9 @@ class Qt {
4077
4103
  * @inheritDoc
4078
4104
  */
4079
4105
  t(this, "lastOrder");
4080
- var e, s, i, o, c, u, h, f;
4081
- 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 He(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 De(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new Be(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new O(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new N(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 Oe(r == null ? void 0 : r.contact), this.lastOrder = {
4082
- createdAt: new L((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
4106
+ var e, s, i, o, c, l, h, f;
4107
+ 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 Be(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 De(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new Me(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 N(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 Oe(r == null ? void 0 : r.contact), this.lastOrder = {
4108
+ createdAt: new L((l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt),
4083
4109
  creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
4084
4110
  isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
4085
4111
  };
@@ -4144,13 +4170,13 @@ class Qt {
4144
4170
  var e, s, i, o;
4145
4171
  const r = {};
4146
4172
  return Object.keys(this).forEach((c) => {
4147
- const u = this[c];
4173
+ const l = this[c];
4148
4174
  // eslint-disable-next-line prettier/prettier
4149
- A(u) || v(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
4175
+ $(l) || v(l) && l.trim().length === 0 || _e(l.isNewRec) && l.isNewRec() || (r[c] = l);
4150
4176
  }), !((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;
4151
4177
  }
4152
4178
  }
4153
- class Ar extends G {
4179
+ class Ar extends j {
4154
4180
  /**
4155
4181
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4156
4182
  *
@@ -4173,7 +4199,7 @@ class Ar extends G {
4173
4199
  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;
4174
4200
  }
4175
4201
  }
4176
- class vt extends T {
4202
+ class wt extends a {
4177
4203
  /**
4178
4204
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4179
4205
  *
@@ -4210,10 +4236,10 @@ class vt extends T {
4210
4236
  * @inheritDoc
4211
4237
  */
4212
4238
  t(this, "curators");
4213
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new U(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ar(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 O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Fe(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Be(u))) ?? void 0;
4239
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((l) => new U(l))) ?? void 0, this.lastOrder = e.lastOrder ? new Ar(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((l) => new Z(l))) ?? 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((l) => new Ge(l))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((l) => new Me(l))) ?? void 0;
4214
4240
  }
4215
4241
  }
4216
- class Ct {
4242
+ class vt {
4217
4243
  /**
4218
4244
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4219
4245
  *
@@ -4231,7 +4257,7 @@ class Ct {
4231
4257
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4232
4258
  }
4233
4259
  }
4234
- class Yt extends Ct {
4260
+ class Qt extends vt {
4235
4261
  /**
4236
4262
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4237
4263
  *
@@ -4262,7 +4288,7 @@ class Yt extends Ct {
4262
4288
  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;
4263
4289
  }
4264
4290
  }
4265
- class Xt {
4291
+ class Yt {
4266
4292
  /**
4267
4293
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4268
4294
  *
@@ -4280,7 +4306,7 @@ class Xt {
4280
4306
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4281
4307
  }
4282
4308
  }
4283
- class k extends Ae {
4309
+ class I extends Ae {
4284
4310
  /**
4285
4311
  * Преобразует данные о клиенте в данные требуемые для запроса.
4286
4312
  *
@@ -4308,11 +4334,11 @@ class k extends Ae {
4308
4334
  * @param contragent Данные о контрагенте клиента.
4309
4335
  */
4310
4336
  static transformContragentClientDataToRequest(r) {
4311
- var c, u, h, f;
4337
+ var c, l, h, f;
4312
4338
  let e;
4313
4339
  const s = r, i = r, o = r;
4314
4340
  switch (r.opf.slug) {
4315
- case _.Ic:
4341
+ case x.Ic:
4316
4342
  e = {
4317
4343
  opf: s.opf.slug,
4318
4344
  name: s.name,
@@ -4329,12 +4355,12 @@ class k extends Ae {
4329
4355
  actual_address: s.actualAddress
4330
4356
  };
4331
4357
  break;
4332
- case _.UlR:
4358
+ case x.UlR:
4333
4359
  e = {
4334
4360
  opf: i.opf.slug,
4335
4361
  name: i.name,
4336
4362
  alternative_name: i.alternativeName,
4337
- partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
4363
+ partner_group_id: (l = i.partnerGroup) == null ? void 0 : l.id,
4338
4364
  comment: i.comment,
4339
4365
  inn: i.inn,
4340
4366
  kpp: i.kpp,
@@ -4347,7 +4373,7 @@ class k extends Ae {
4347
4373
  actual_address: i.actualAddress
4348
4374
  };
4349
4375
  break;
4350
- case _.UlNr:
4376
+ case x.UlNr:
4351
4377
  e = {
4352
4378
  opf: o.opf.slug,
4353
4379
  name: o.name,
@@ -4434,7 +4460,7 @@ class k extends Ae {
4434
4460
  getClientsList(r, e, s, i) {
4435
4461
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4436
4462
  const c = { ...o.data };
4437
- return c.data = c.data.map((u) => new he(u)), c;
4463
+ return c.data = c.data.map((l) => new he(l)), c;
4438
4464
  });
4439
4465
  }
4440
4466
  /**
@@ -4461,7 +4487,7 @@ class k extends Ae {
4461
4487
  const s = r.map((i) => i.id);
4462
4488
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4463
4489
  let o = [];
4464
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
4490
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new wt(c))), o;
4465
4491
  });
4466
4492
  }
4467
4493
  /**
@@ -4473,7 +4499,7 @@ class k extends Ae {
4473
4499
  getAllClientContacts(r) {
4474
4500
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4475
4501
  let s = [];
4476
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new wt(i))), s;
4502
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new yt(i))), s;
4477
4503
  });
4478
4504
  }
4479
4505
  /**
@@ -4484,7 +4510,7 @@ class k extends Ae {
4484
4510
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4485
4511
  */
4486
4512
  createClientCommonData(r, e = {}) {
4487
- return this.post("/internal/clients", k.transformClientDataToRequest(r), (s) => new Xe(s.data), e);
4513
+ return this.post("/internal/clients", I.transformClientDataToRequest(r), (s) => new Xe(s.data), e);
4488
4514
  }
4489
4515
  /**
4490
4516
  * Обновляет данные указанного клиента.
@@ -4494,7 +4520,7 @@ class k extends Ae {
4494
4520
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4495
4521
  */
4496
4522
  updateClientCommonData(r, e = {}) {
4497
- return this.patch(`/internal/clients/${r.id}`, k.transformClientDataToRequest(r), void 0, e);
4523
+ return this.patch(`/internal/clients/${r.id}`, I.transformClientDataToRequest(r), void 0, e);
4498
4524
  }
4499
4525
  /**
4500
4526
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4623,7 +4649,7 @@ class k extends Ae {
4623
4649
  createContragentClientData(r, e, s = {}) {
4624
4650
  return this.post(
4625
4651
  `/internal/clients/${r}/contragents`,
4626
- k.transformContragentClientDataToRequest(e),
4652
+ I.transformContragentClientDataToRequest(e),
4627
4653
  (i) => we.createInstance(i.data),
4628
4654
  s
4629
4655
  );
@@ -4639,7 +4665,7 @@ class k extends Ae {
4639
4665
  updateContragentClientData(r, e, s = {}) {
4640
4666
  return this.patch(
4641
4667
  `/internal/clients/${r}/contragents/${e.id}`,
4642
- k.transformContragentClientDataToRequest(e),
4668
+ I.transformContragentClientDataToRequest(e),
4643
4669
  (i) => we.createInstance(i.data),
4644
4670
  s
4645
4671
  );
@@ -4665,7 +4691,7 @@ class k extends Ae {
4665
4691
  createClientDeliveryAddress(r, e, s = {}) {
4666
4692
  return this.post(
4667
4693
  `/internal/clients/${r}/delivery-addresses`,
4668
- k.transformClientDeliveryAddressToRequest(e),
4694
+ I.transformClientDeliveryAddressToRequest(e),
4669
4695
  (i) => new ve(i.data),
4670
4696
  s
4671
4697
  );
@@ -4681,7 +4707,7 @@ class k extends Ae {
4681
4707
  updateClientDeliveryAddress(r, e, s = {}) {
4682
4708
  return this.patch(
4683
4709
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4684
- k.transformClientDeliveryAddressToRequest(e),
4710
+ I.transformClientDeliveryAddressToRequest(e),
4685
4711
  (i) => new ve(i.data),
4686
4712
  s
4687
4713
  );
@@ -4708,8 +4734,8 @@ class k extends Ae {
4708
4734
  createContragentBankAccount(r, e, s, i = {}) {
4709
4735
  return this.post(
4710
4736
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4711
- k.transformClientContragentBankAccountToRequest(s),
4712
- (o) => new de(o.data),
4737
+ I.transformClientContragentBankAccountToRequest(s),
4738
+ (o) => new qe(o.data),
4713
4739
  i
4714
4740
  );
4715
4741
  }
@@ -4725,8 +4751,8 @@ class k extends Ae {
4725
4751
  updateContragentBankAccount(r, e, s, i = {}) {
4726
4752
  return this.patch(
4727
4753
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4728
- k.transformClientContragentBankAccountToRequest(s),
4729
- (o) => new de(o.data),
4754
+ I.transformClientContragentBankAccountToRequest(s),
4755
+ (o) => new qe(o.data),
4730
4756
  i
4731
4757
  );
4732
4758
  }
@@ -4912,14 +4938,14 @@ class k extends Ae {
4912
4938
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4913
4939
  */
4914
4940
  createContact(r, e, s, i = {}) {
4915
- var c, u;
4941
+ var c, l;
4916
4942
  const o = {
4917
4943
  name: e.name,
4918
4944
  position: e.position,
4919
4945
  comment: e.comment,
4920
4946
  ...s
4921
4947
  };
4922
- 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 U(h.data), i);
4948
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (l = e.email) != null && l.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new U(h.data), i);
4923
4949
  }
4924
4950
  /**
4925
4951
  * Устанавливает признак основного контактного лица.
@@ -4980,7 +5006,7 @@ const E = class E extends p {
4980
5006
  */
4981
5007
  cacheResponse(e, s) {
4982
5008
  E.responseDataCache.set(e, {
4983
- validTo: dr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5009
+ validTo: Or(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4984
5010
  val: s
4985
5011
  });
4986
5012
  }
@@ -4995,9 +5021,9 @@ const E = class E extends p {
4995
5021
  */
4996
5022
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
4997
5023
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
4998
- const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? E.getCachedResponse(c) : void 0;
4999
- return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5000
- const f = h.map((g) => je.instanceInitializer(e, g));
5024
+ const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), l = i ? E.getCachedResponse(c) : void 0;
5025
+ return l ? Promise.resolve(l) : this.get(s, o).then((h) => {
5026
+ const f = h.map((g) => He.instanceInitializer(e, g));
5001
5027
  return i && f && this.cacheResponse(s, f), f;
5002
5028
  });
5003
5029
  }
@@ -5006,8 +5032,8 @@ const E = class E extends p {
5006
5032
  * Кэш результатов запросов.
5007
5033
  */
5008
5034
  t(E, "responseDataCache", /* @__PURE__ */ new Map());
5009
- let ue = E;
5010
- class Zt extends p {
5035
+ let le = E;
5036
+ class Xt extends p {
5011
5037
  /**
5012
5038
  * Выполняет проверку занят ли указанный номер телефона.
5013
5039
  *
@@ -5021,7 +5047,7 @@ class Zt extends p {
5021
5047
  });
5022
5048
  }
5023
5049
  }
5024
- function es(n = "/config.json") {
5050
+ function Zt(n = "/config.json") {
5025
5051
  const r = fetch(n).then((e) => e.ok ? e.json() : (console.error(new Error(`Ошибка загрузки ${n}: ${e.statusText}`)), new Promise((s) => {
5026
5052
  s({});
5027
5053
  })));
@@ -5029,6 +5055,28 @@ function es(n = "/config.json") {
5029
5055
  console.error(e);
5030
5056
  }), r;
5031
5057
  }
5058
+ class es {
5059
+ /**
5060
+ * Инициализирует экземпляр класса {@link VersionConfig}.
5061
+ *
5062
+ * @param data Данные для первоначальной инициализации.
5063
+ */
5064
+ constructor(r) {
5065
+ /**
5066
+ * Дата релиза текущей версии приложения.
5067
+ */
5068
+ t(this, "date");
5069
+ /**
5070
+ * Название релиза.
5071
+ */
5072
+ t(this, "name");
5073
+ /**
5074
+ * Текущая версия приложения.
5075
+ */
5076
+ t(this, "version");
5077
+ 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";
5078
+ }
5079
+ }
5032
5080
  class rs extends p {
5033
5081
  /**
5034
5082
  * Возвращает настройки указанного конфигуратора для указанной категории.
@@ -5059,10 +5107,10 @@ class rs extends p {
5059
5107
  const o = this.get(
5060
5108
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5061
5109
  { params: s, client_id: e },
5062
- (u) => new I(u.data)
5110
+ (l) => new k(l.data)
5063
5111
  );
5064
- return o.catch((u) => {
5065
- this.errorResponseHandler(u, i);
5112
+ return o.catch((l) => {
5113
+ this.errorResponseHandler(l, i);
5066
5114
  }), o;
5067
5115
  }
5068
5116
  /**
@@ -5109,13 +5157,13 @@ class ts {
5109
5157
  * Возвращает диапазон дат по умолчанию.
5110
5158
  */
5111
5159
  static defaultDateRanges() {
5112
- const r = Or(/* @__PURE__ */ new Date(), 1);
5160
+ const r = _r(/* @__PURE__ */ new Date(), 1);
5113
5161
  return {
5114
5162
  // 'Следующий рабочий день' - это значение по-умолчанию
5115
5163
  nextWorkingDay: { label: "Следующий рабочий день", from: Mr(r), to: Fr(r) },
5116
5164
  today: { label: "Сегодня", from: xe(), to: Gr() },
5117
- yesterday: { label: "Вчера", from: jr(), to: Ur() },
5118
- tomorrow: { label: "Завтра", from: Nr(), to: qr() }
5165
+ yesterday: { label: "Вчера", from: jr(), to: Hr() },
5166
+ tomorrow: { label: "Завтра", from: Ur(), to: Nr() }
5119
5167
  };
5120
5168
  }
5121
5169
  }
@@ -5176,15 +5224,15 @@ class ss {
5176
5224
  return r.id === 0 && r.guid === "-undefined-";
5177
5225
  }
5178
5226
  }
5179
- class Pt extends ue {
5227
+ class Ct extends le {
5180
5228
  /**
5181
5229
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5182
5230
  */
5183
5231
  async getManagers() {
5184
- const r = "/internal/managers", e = ue.getCachedResponse(r);
5232
+ const r = "/internal/managers", e = le.getCachedResponse(r);
5185
5233
  if (e)
5186
5234
  return e;
5187
- const i = (await this.get(r)).data.map((o) => je.instanceInitializer(De, o));
5235
+ const i = (await this.get(r)).data.map((o) => He.instanceInitializer(De, o));
5188
5236
  return this.cacheResponse(r, i), i;
5189
5237
  }
5190
5238
  }
@@ -5195,7 +5243,7 @@ class $r extends Ar {
5195
5243
  * @param data Данные для первоначальной инициализации.
5196
5244
  */
5197
5245
  constructor(e) {
5198
- var s, i, o, c, u, h, f, g;
5246
+ var s, i, o, c, l, h, f, g;
5199
5247
  super(e);
5200
5248
  /**
5201
5249
  * Краткие данные о клиенте.
@@ -5247,13 +5295,13 @@ class $r extends Ar {
5247
5295
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5248
5296
  }, this.delivery = {
5249
5297
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5250
- 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(),
5298
+ date: v((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5251
5299
  address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ve(e.delivery.address) : void 0,
5252
5300
  warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new Re(e.delivery.warehouse) : void 0
5253
- }, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(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;
5301
+ }, this.attachedUser = new d(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 = 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;
5254
5302
  }
5255
5303
  }
5256
- class Rt extends G {
5304
+ class Pt extends j {
5257
5305
  /**
5258
5306
  * Инициализирует экземпляр класса {@link OrderProduct}.
5259
5307
  *
@@ -5380,7 +5428,7 @@ class er extends $r {
5380
5428
  * Признак, что разрешена передача заказа в работу без оплаты.
5381
5429
  */
5382
5430
  t(this, "isAllowProcessingWithoutPayment");
5383
- this.products = (e.products ?? []).map((s) => new Rt(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 P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5431
+ 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;
5384
5432
  }
5385
5433
  }
5386
5434
  class is extends Ae {
@@ -5447,7 +5495,7 @@ class is extends Ae {
5447
5495
  );
5448
5496
  }
5449
5497
  }
5450
- class Ie {
5498
+ class ke {
5451
5499
  /**
5452
5500
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5453
5501
  *
@@ -5474,10 +5522,10 @@ class Ie {
5474
5522
  * Источник клиентской цены.
5475
5523
  */
5476
5524
  t(this, "source");
5477
- this.client = new he(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ge.Product;
5525
+ this.client = new he(r == null ? void 0 : r.client), this.product = new k(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) ?? je.Product;
5478
5526
  }
5479
5527
  }
5480
- const ke = (n) => {
5528
+ const Ie = (n) => {
5481
5529
  var r, e, s, i, o;
5482
5530
  return n ? or(
5483
5531
  {
@@ -5488,7 +5536,7 @@ const ke = (n) => {
5488
5536
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5489
5537
  hideNotActive: n.hideNotActive
5490
5538
  },
5491
- (c) => A(c) || (V(c) || cr(c)) && K(c)
5539
+ (c) => $(c) || (V(c) || cr(c)) && K(c)
5492
5540
  ) : {};
5493
5541
  }, rr = (n) => {
5494
5542
  const r = {};
@@ -5509,9 +5557,9 @@ class ns extends p {
5509
5557
  `/internal/price/products/${r}/analyze`,
5510
5558
  {
5511
5559
  ...rr(e),
5512
- filters: ke(s)
5560
+ filters: Ie(s)
5513
5561
  },
5514
- (i) => i.data.map((o) => new Ie(o))
5562
+ (i) => i.data.map((o) => new ke(o))
5515
5563
  );
5516
5564
  }
5517
5565
  /**
@@ -5528,9 +5576,9 @@ class ns extends p {
5528
5576
  `/internal/price/categories/${r}/analyze`,
5529
5577
  {
5530
5578
  ...rr(e),
5531
- filters: ke(s)
5579
+ filters: Ie(s)
5532
5580
  },
5533
- (i) => i.data.map((o) => new Ie(o))
5581
+ (i) => i.data.map((o) => new ke(o))
5534
5582
  );
5535
5583
  }
5536
5584
  /**
@@ -5549,13 +5597,13 @@ class ns extends p {
5549
5597
  `/internal/price/categories/${r}/analyze/square`,
5550
5598
  {
5551
5599
  ...e,
5552
- filters: ke(s)
5600
+ filters: Ie(s)
5553
5601
  },
5554
- (i) => i.data.map((o) => new Ie(o))
5602
+ (i) => i.data.map((o) => new ke(o))
5555
5603
  );
5556
5604
  }
5557
5605
  }
5558
- class Dt {
5606
+ class Rt {
5559
5607
  /**
5560
5608
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5561
5609
  *
@@ -5605,7 +5653,7 @@ class Dt {
5605
5653
  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 ye(r.currency) : void 0;
5606
5654
  }
5607
5655
  }
5608
- class At extends oe {
5656
+ class Dt extends oe {
5609
5657
  /**
5610
5658
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
5611
5659
  *
@@ -5617,7 +5665,7 @@ class At extends oe {
5617
5665
  * @inheritDoc
5618
5666
  */
5619
5667
  t(this, "history");
5620
- this.history = Ce(e.history, (s) => new Dt(s));
5668
+ this.history = Ce(e.history, (s) => new Rt(s));
5621
5669
  }
5622
5670
  }
5623
5671
  class os extends p {
@@ -5629,18 +5677,18 @@ class os extends p {
5629
5677
  * @see /docs/api#/operations/api_internal_price_history_get
5630
5678
  */
5631
5679
  getProductPriceHistory(r) {
5632
- var o, c, u, h, f;
5680
+ var o, c, l, h, f;
5633
5681
  const e = b().config.dateFormats.api, s = or(
5634
5682
  ne(r, {
5635
5683
  costDate: {
5636
- from: Le((o = r.costDate) == null ? void 0 : o.from) ? x(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5637
- to: Le((u = r.costDate) == null ? void 0 : u.to) ? x(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5684
+ from: Le((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5685
+ to: Le((l = r.costDate) == null ? void 0 : l.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5638
5686
  }
5639
5687
  }),
5640
- (g) => A(g) || (V(g) || cr(g)) && K(g)
5688
+ (g) => $(g) || (V(g) || cr(g)) && K(g)
5641
5689
  ), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
5642
5690
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
5643
- new At(ne(g[0], { history: g }))
5691
+ new Dt(ne(g[0], { history: g }))
5644
5692
  ]);
5645
5693
  }
5646
5694
  }
@@ -5708,7 +5756,7 @@ class cs extends p {
5708
5756
  });
5709
5757
  }
5710
5758
  }
5711
- class $ extends ue {
5759
+ class T extends le {
5712
5760
  /**
5713
5761
  * Возвращает {@link Promise} для получения данных указанного справочника.
5714
5762
  *
@@ -5717,7 +5765,7 @@ class $ extends ue {
5717
5765
  * и использовать в случае аналогичных запросов.
5718
5766
  */
5719
5767
  getReference(r, e = !1) {
5720
- return this.getTypedDataArrayRequester(lt, `/internal/references/${r}`, e);
5768
+ return this.getTypedDataArrayRequester(ct, `/internal/references/${r}`, e);
5721
5769
  }
5722
5770
  /**
5723
5771
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -5736,7 +5784,7 @@ class $ extends ue {
5736
5784
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
5737
5785
  */
5738
5786
  getCuratedDirection() {
5739
- return this.getTypedDataArrayRequester(Me, "/internal/references/curated-direction", !0);
5787
+ return this.getTypedDataArrayRequester(Fe, "/internal/references/curated-direction", !0);
5740
5788
  }
5741
5789
  /**
5742
5790
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -5761,19 +5809,19 @@ class $ extends ue {
5761
5809
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5762
5810
  */
5763
5811
  getOrderPaymentStatuses() {
5764
- return this.getTypedDataArrayRequester(pt, "/public/references/order-payment-status", !0);
5812
+ return this.getTypedDataArrayRequester(lt, "/public/references/order-payment-status", !0);
5765
5813
  }
5766
5814
  /**
5767
5815
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5768
5816
  */
5769
5817
  getOrderStatuses() {
5770
- return this.getTypedDataArrayRequester(ht, "/public/references/order-status", !0);
5818
+ return this.getTypedDataArrayRequester(pt, "/public/references/order-status", !0);
5771
5819
  }
5772
5820
  /**
5773
5821
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5774
5822
  */
5775
5823
  getPaymentTypes() {
5776
- return this.getTypedDataArrayRequester(gt, "/public/references/payment-type", !0);
5824
+ return this.getTypedDataArrayRequester(ht, "/public/references/payment-type", !0);
5777
5825
  }
5778
5826
  /**
5779
5827
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
@@ -5785,7 +5833,7 @@ class $ extends ue {
5785
5833
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5786
5834
  */
5787
5835
  getSalesDirections() {
5788
- return this.getTypedDataArrayRequester(O, "/public/references/sales-direction", !0);
5836
+ return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
5789
5837
  }
5790
5838
  /**
5791
5839
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
@@ -5799,7 +5847,7 @@ class $ extends ue {
5799
5847
  * @param term Терм поиска.
5800
5848
  */
5801
5849
  searchCity(r) {
5802
- return this.getTypedDataArrayRequester(He, `/internal/references/city-with-region-and-country/search?term=${r}`);
5850
+ return this.getTypedDataArrayRequester(Be, `/internal/references/city-with-region-and-country/search?term=${r}`);
5803
5851
  }
5804
5852
  /**
5805
5853
  * Выполняет поиск данных о регионах по терму в названии.
@@ -5845,11 +5893,11 @@ class $ extends ue {
5845
5893
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5846
5894
  */
5847
5895
  getProductFileType() {
5848
- return this.getTypedDataArrayRequester(mt, "/public/references/product-file-type", !0);
5896
+ return this.getTypedDataArrayRequester(gt, "/public/references/product-file-type", !0);
5849
5897
  }
5850
5898
  }
5851
- const D = j("common.references_private", () => {
5852
- 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), a = y(void 0), ee = y(void 0), re = y(void 0), F = y(void 0), M = y(void 0), $e = y(void 0), l = y(void 0);
5899
+ const A = H("common.references_private", () => {
5900
+ 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), l = 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), G = y(void 0), F = y(void 0), $e = y(void 0), u = y(void 0);
5853
5901
  return {
5854
5902
  /**
5855
5903
  * Список загружаемых/загруженных на данный момент значений.
@@ -5882,7 +5930,7 @@ const D = j("common.references_private", () => {
5882
5930
  /**
5883
5931
  * Справочник статусов оплаты заказа.
5884
5932
  */
5885
- orderPaymentStatusReference: u,
5933
+ orderPaymentStatusReference: l,
5886
5934
  /**
5887
5935
  * Справочник статусов заказов.
5888
5936
  */
@@ -5898,7 +5946,7 @@ const D = j("common.references_private", () => {
5898
5946
  /**
5899
5947
  * Справочник типов файлов продукктов/категорий.
5900
5948
  */
5901
- productFileTypeReference: a,
5949
+ productFileTypeReference: S,
5902
5950
  /**
5903
5951
  * Справочник типов ресурсов.
5904
5952
  */
@@ -5910,11 +5958,11 @@ const D = j("common.references_private", () => {
5910
5958
  /**
5911
5959
  * Справочник источников первичного интереса.
5912
5960
  */
5913
- sourcePrimaryInterestReference: F,
5961
+ sourcePrimaryInterestReference: G,
5914
5962
  /**
5915
5963
  * Справочник складов.
5916
5964
  */
5917
- warehousesReference: M,
5965
+ warehousesReference: F,
5918
5966
  /**
5919
5967
  * Справочник типов свойств.
5920
5968
  */
@@ -5922,94 +5970,94 @@ const D = j("common.references_private", () => {
5922
5970
  /**
5923
5971
  * Справочник коэффициентов цен.
5924
5972
  */
5925
- priceCoefficientsReference: l
5973
+ priceCoefficientsReference: u
5926
5974
  };
5927
- }), ls = j("common.references", () => {
5928
- const n = R(() => {
5929
- const l = D();
5930
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance($).getChannelPrimaryInterest().then((m) => {
5931
- l.channelPrimaryInterestReference = m;
5932
- }).catch(w)), l.channelPrimaryInterestReference;
5933
- }), r = R(() => {
5934
- const l = D();
5935
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance($).getContactPositions().then((m) => {
5936
- l.contactPositionsReference = m;
5937
- }).catch(w)), l.contactPositionsReference;
5938
- }), e = R(() => {
5939
- const l = D();
5940
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance($).getCurrency().then((m) => {
5941
- l.currencyReference = m;
5942
- }).catch(w)), l.currencyReference;
5943
- }), s = R(() => {
5944
- const l = D();
5945
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance($).getOpf().then((m) => {
5946
- l.opfReference = m;
5947
- }).catch(w)), l.opfReference;
5948
- }), i = R(() => {
5949
- const l = D();
5950
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance($).getOrderPaymentStatuses().then((m) => {
5951
- l.orderPaymentStatusReference = m;
5952
- }).catch(w)), l.orderPaymentStatusReference;
5953
- }), o = R(() => {
5954
- const l = D();
5955
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance($).getOrderStatuses().then((m) => {
5956
- l.orderStatusReference = m;
5957
- }).catch(w)), l.orderStatusReference;
5958
- }), c = R(() => {
5959
- const l = D();
5960
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance($).getPaymentTypes().then((m) => {
5961
- l.paymentTypeReference = m;
5962
- }).catch(w)), l.paymentTypeReference;
5963
- }), u = R(() => {
5964
- const l = D();
5965
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance($).getPartnerGroup().then((m) => {
5966
- l.partnerGroupReference = m;
5967
- }).catch(w)), l.partnerGroupReference;
5968
- }), h = R(() => {
5969
- const l = D();
5970
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance($).getProductFileType().then((m) => {
5971
- l.productFileTypeReference = m;
5972
- }).catch(w)), l.productFileTypeReference;
5973
- }), f = R(() => {
5974
- const l = D();
5975
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance($).getResourceTypes().then((m) => {
5976
- l.resourceTypesReference = m;
5977
- }).catch(w)), l.resourceTypesReference;
5978
- }), g = R(() => {
5979
- const l = D();
5980
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance($).getSalesDirections().then((m) => {
5981
- l.salesDirectionsReference = m;
5982
- }).catch(w)), l.salesDirectionsReference;
5983
- }), a = R(() => {
5984
- const l = D();
5985
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance($).getSourcePrimaryInterest().then((m) => {
5986
- l.sourcePrimaryInterestReference = m;
5987
- }).catch(w)), l.sourcePrimaryInterestReference;
5988
- }), ee = R(() => {
5989
- const l = D();
5990
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance($).getDeliveryTypes().then((m) => {
5991
- l.deliveryTypeReference = m;
5992
- }).catch(w)), l.deliveryTypeReference;
5993
- }), re = R(() => {
5994
- const l = D();
5995
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Pt).getManagers().then((m) => {
5996
- l.managersList = m;
5997
- }).catch(w)), l.managersList;
5998
- }), F = R(() => {
5999
- const l = D();
6000
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance($).getWarehouses().then((m) => {
6001
- l.warehousesReference = m;
6002
- }).catch(w)), l.warehousesReference;
6003
- }), M = R(() => {
6004
- const l = D();
6005
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance($).getPropertyTypes().then((m) => {
6006
- l.propertyTypesReference = m;
6007
- }).catch(w)), l.propertyTypesReference;
6008
- }), $e = R(() => {
6009
- const l = D();
6010
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance($).getPriceCoefficients().then((m) => {
6011
- l.priceCoefficientsReference = m;
6012
- }).catch(w)), l.priceCoefficientsReference;
5975
+ }), us = H("common.references", () => {
5976
+ const n = D(() => {
5977
+ const u = A();
5978
+ return !u.channelPrimaryInterestReference && !u.dataLoaderList.channelPrimaryInterestReference && (u.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((m) => {
5979
+ u.channelPrimaryInterestReference = m;
5980
+ }).catch(w)), u.channelPrimaryInterestReference;
5981
+ }), r = D(() => {
5982
+ const u = A();
5983
+ return !u.contactPositionsReference && !u.dataLoaderList.contactPositionsReference && (u.dataLoaderList.contactPositionsReference = !0, p.getInstance(T).getContactPositions().then((m) => {
5984
+ u.contactPositionsReference = m;
5985
+ }).catch(w)), u.contactPositionsReference;
5986
+ }), e = D(() => {
5987
+ const u = A();
5988
+ return !u.currencyReference && !u.dataLoaderList.currencyReference && (u.dataLoaderList.currencyReference = !0, p.getInstance(T).getCurrency().then((m) => {
5989
+ u.currencyReference = m;
5990
+ }).catch(w)), u.currencyReference;
5991
+ }), s = D(() => {
5992
+ const u = A();
5993
+ return !u.opfReference && !u.dataLoaderList.opfReference && (u.dataLoaderList.opfReference = !0, p.getInstance(T).getOpf().then((m) => {
5994
+ u.opfReference = m;
5995
+ }).catch(w)), u.opfReference;
5996
+ }), i = D(() => {
5997
+ const u = A();
5998
+ return !u.orderPaymentStatusReference && !u.dataLoaderList.orderPaymentStatusReference && (u.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(T).getOrderPaymentStatuses().then((m) => {
5999
+ u.orderPaymentStatusReference = m;
6000
+ }).catch(w)), u.orderPaymentStatusReference;
6001
+ }), o = D(() => {
6002
+ const u = A();
6003
+ return !u.orderStatusReference && !u.dataLoaderList.orderStatusReference && (u.dataLoaderList.orderStatusReference = !0, p.getInstance(T).getOrderStatuses().then((m) => {
6004
+ u.orderStatusReference = m;
6005
+ }).catch(w)), u.orderStatusReference;
6006
+ }), c = D(() => {
6007
+ const u = A();
6008
+ return !u.paymentTypeReference && !u.dataLoaderList.paymentTypeReference && (u.dataLoaderList.paymentTypeReference = !0, p.getInstance(T).getPaymentTypes().then((m) => {
6009
+ u.paymentTypeReference = m;
6010
+ }).catch(w)), u.paymentTypeReference;
6011
+ }), l = D(() => {
6012
+ const u = A();
6013
+ return !u.partnerGroupReference && !u.dataLoaderList.partnerGroupReference && (u.dataLoaderList.partnerGroupReference = !0, p.getInstance(T).getPartnerGroup().then((m) => {
6014
+ u.partnerGroupReference = m;
6015
+ }).catch(w)), u.partnerGroupReference;
6016
+ }), h = D(() => {
6017
+ const u = A();
6018
+ return !u.productFileTypeReference && !u.dataLoaderList.productFileTypeReference && (u.dataLoaderList.productFileTypeReference = !0, p.getInstance(T).getProductFileType().then((m) => {
6019
+ u.productFileTypeReference = m;
6020
+ }).catch(w)), u.productFileTypeReference;
6021
+ }), f = D(() => {
6022
+ const u = A();
6023
+ return !u.resourceTypesReference && !u.dataLoaderList.resourceTypesReference && (u.dataLoaderList.resourceTypesReference = !0, p.getInstance(T).getResourceTypes().then((m) => {
6024
+ u.resourceTypesReference = m;
6025
+ }).catch(w)), u.resourceTypesReference;
6026
+ }), g = D(() => {
6027
+ const u = A();
6028
+ return !u.salesDirectionsReference && !u.dataLoaderList.salesDirectionsReference && (u.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((m) => {
6029
+ u.salesDirectionsReference = m;
6030
+ }).catch(w)), u.salesDirectionsReference;
6031
+ }), S = D(() => {
6032
+ const u = A();
6033
+ return !u.sourcePrimaryInterestReference && !u.dataLoaderList.sourcePrimaryInterestReference && (u.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
6034
+ u.sourcePrimaryInterestReference = m;
6035
+ }).catch(w)), u.sourcePrimaryInterestReference;
6036
+ }), ee = D(() => {
6037
+ const u = A();
6038
+ return !u.deliveryTypeReference && !u.dataLoaderList.deliveryTypeReference && (u.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
6039
+ u.deliveryTypeReference = m;
6040
+ }).catch(w)), u.deliveryTypeReference;
6041
+ }), re = D(() => {
6042
+ const u = A();
6043
+ return !u.managersList && !u.dataLoaderList.managersList && (u.dataLoaderList.managersList = !0, p.getInstance(Ct).getManagers().then((m) => {
6044
+ u.managersList = m;
6045
+ }).catch(w)), u.managersList;
6046
+ }), G = D(() => {
6047
+ const u = A();
6048
+ return !u.warehousesReference && !u.dataLoaderList.warehousesReference && (u.dataLoaderList.warehousesReference = !0, p.getInstance(T).getWarehouses().then((m) => {
6049
+ u.warehousesReference = m;
6050
+ }).catch(w)), u.warehousesReference;
6051
+ }), F = D(() => {
6052
+ const u = A();
6053
+ return !u.propertyTypesReference && !u.dataLoaderList.propertyTypesReference && (u.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((m) => {
6054
+ u.propertyTypesReference = m;
6055
+ }).catch(w)), u.propertyTypesReference;
6056
+ }), $e = D(() => {
6057
+ const u = A();
6058
+ return !u.priceCoefficientsReference && !u.dataLoaderList.priceCoefficientsReference && (u.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((m) => {
6059
+ u.priceCoefficientsReference = m;
6060
+ }).catch(w)), u.priceCoefficientsReference;
6013
6061
  });
6014
6062
  return {
6015
6063
  /**
@@ -6043,7 +6091,7 @@ const D = j("common.references_private", () => {
6043
6091
  /**
6044
6092
  * Справочник групп партнеров.
6045
6093
  */
6046
- partnerGroupsReference: u,
6094
+ partnerGroupsReference: l,
6047
6095
  /**
6048
6096
  * Справочник типов файлов продуктов/категорий.
6049
6097
  */
@@ -6059,7 +6107,7 @@ const D = j("common.references_private", () => {
6059
6107
  /**
6060
6108
  * Справочник каналов первичного интереса.
6061
6109
  */
6062
- sourcePrimaryInterestsReference: a,
6110
+ sourcePrimaryInterestsReference: S,
6063
6111
  /**
6064
6112
  * Справочник типов доставки.
6065
6113
  */
@@ -6071,18 +6119,18 @@ const D = j("common.references_private", () => {
6071
6119
  /**
6072
6120
  * Справочник складов.
6073
6121
  */
6074
- warehousesReference: F,
6122
+ warehousesReference: G,
6075
6123
  /**
6076
6124
  * Справочник типов свойств.
6077
6125
  */
6078
- propertyTypesReference: M,
6126
+ propertyTypesReference: F,
6079
6127
  /**
6080
6128
  * Справочник коэффициентов цен.
6081
6129
  */
6082
6130
  priceCoefficientsReference: $e
6083
6131
  };
6084
6132
  });
6085
- class $t {
6133
+ class At {
6086
6134
  /**
6087
6135
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6088
6136
  *
@@ -6136,10 +6184,10 @@ class sr {
6136
6184
  */
6137
6185
  t(this, "meta");
6138
6186
  var e;
6139
- this.resourceType = new vr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new $t(s))) ?? [];
6187
+ this.resourceType = new vr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new At(s))) ?? [];
6140
6188
  }
6141
6189
  }
6142
- class us extends p {
6190
+ class ls extends p {
6143
6191
  /**
6144
6192
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6145
6193
  *
@@ -6217,8 +6265,8 @@ class ps extends p {
6217
6265
  });
6218
6266
  }
6219
6267
  }
6220
- var Tt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Tt || {});
6221
- class bt extends fr {
6268
+ var $t = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))($t || {});
6269
+ class Tt extends fr {
6222
6270
  /**
6223
6271
  * Инициализирует экземпляр класса {@link User}.
6224
6272
  *
@@ -6263,10 +6311,10 @@ class at extends p {
6263
6311
  */
6264
6312
  // eslint-disable-next-line class-methods-use-this
6265
6313
  getCurrentUser() {
6266
- return this.get("/internal/users/info", {}, (r) => new bt(r.data), !0);
6314
+ return this.get("/internal/users/info", {}, (r) => new Tt(r.data), !0);
6267
6315
  }
6268
6316
  }
6269
- const St = j("common.user_state_private", () => {
6317
+ const bt = H("common.user_state_private", () => {
6270
6318
  const n = y({}), r = y(void 0);
6271
6319
  return {
6272
6320
  /**
@@ -6278,12 +6326,12 @@ const St = j("common.user_state_private", () => {
6278
6326
  */
6279
6327
  currentUser: r
6280
6328
  };
6281
- }), gs = j("common.user_state", () => ({
6329
+ }), gs = H("common.user_state", () => ({
6282
6330
  /**
6283
6331
  * Данные о текущем пользователе.
6284
6332
  */
6285
- currentUser: R(() => {
6286
- const r = St();
6333
+ currentUser: D(() => {
6334
+ const r = bt();
6287
6335
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(at).getCurrentUser().then((e) => {
6288
6336
  r.currentUser = e;
6289
6337
  }).catch(w).finally(() => {
@@ -6315,152 +6363,153 @@ class ms {
6315
6363
  }
6316
6364
  }
6317
6365
  export {
6318
- lt as AnyReference,
6319
- Kr as AppBaseConfig,
6320
- de as BankAccount,
6366
+ ct as AnyReference,
6367
+ Vr as AppBaseConfig,
6368
+ qe as BankAccount,
6321
6369
  Ae as BasePaginationProvider,
6322
- rt as CalculationTypeEnum,
6370
+ et as CalculationTypeEnum,
6323
6371
  ge as Cart,
6324
- et as CartItem,
6325
- Zr as CartItemBase,
6326
- Ut as CartProvider,
6327
- Gt as CatalogProvider,
6328
- lr as CatalogableItem,
6372
+ Zr as CartItem,
6373
+ Xr as CartItemBase,
6374
+ Nt as CartProvider,
6375
+ Ht as CatalogProvider,
6376
+ ur as CatalogableItem,
6329
6377
  z as Category,
6330
6378
  Ve as CategoryPricingRule,
6331
6379
  wr as ChannelPrimaryInterest,
6332
- Kt as City,
6333
- He as CityWithRegionAndCountry,
6380
+ Vt as City,
6381
+ Be as CityWithRegionAndCountry,
6334
6382
  Xe as Client,
6335
- vt as ClientAdditionalData,
6383
+ wt as ClientAdditionalData,
6336
6384
  fe as ClientCategory,
6337
- k as ClientDataProvider,
6338
- Ft as ClientPriceProvider,
6339
- Mt as ClientPriceTemplateProvider,
6385
+ I as ClientDataProvider,
6386
+ jt as ClientPriceProvider,
6387
+ Gt as ClientPriceTemplateProvider,
6340
6388
  Y as ClientProduct,
6341
- zt as ClientProductCategoryDataProvider,
6342
- Wt as ClientProductDataProvider,
6389
+ Bt as ClientProductCategoryDataProvider,
6390
+ zt as ClientProductDataProvider,
6343
6391
  he as ClientShortInfo,
6344
- ct as ClientsAdditionalDataRequestTypeEnum,
6345
- Qt as ClientsListFilters,
6392
+ ot as ClientsAdditionalDataRequestTypeEnum,
6393
+ Kt as ClientsListFilters,
6346
6394
  oe as CodedIdentity,
6347
6395
  rs as ConfiguratorProvider,
6348
6396
  Oe as Contact,
6349
6397
  gr as ContactLinks,
6350
6398
  U as ContactPerson,
6351
- wt as ContactPersonRelated,
6399
+ yt as ContactPersonRelated,
6352
6400
  ut as ContactPosition,
6353
6401
  Se as ContactRelation,
6354
6402
  Pr as ContragentBase,
6355
6403
  we as ContragentFactory,
6356
6404
  Rr as ContragentIc,
6357
- ft as ContragentPerson,
6358
- yt as ContragentUlNr,
6405
+ mt as ContragentPerson,
6406
+ ft as ContragentUlNr,
6359
6407
  Dr as ContragentUlR,
6360
- Ge as CostSourceEnum,
6408
+ je as CostSourceEnum,
6361
6409
  X as Country,
6362
- Me as CuratedDirection,
6363
- Be as Curator,
6410
+ Fe as CuratedDirection,
6411
+ Me as Curator,
6364
6412
  ye as Currency,
6365
6413
  ps as DataSuggestionProvider,
6366
- Yt as DataTablePagination,
6367
- Ct as DataTablePaginationRequestParams,
6368
- Xt as DataTableSortRequestParams,
6414
+ Qt as DataTablePagination,
6415
+ vt as DataTablePaginationRequestParams,
6416
+ Yt as DataTableSortRequestParams,
6369
6417
  ts as DateTimeProvider,
6370
- st as DeletableNamedIdentity,
6418
+ tt as DeletableNamedIdentity,
6371
6419
  ve as DeliveryAddress,
6372
6420
  Q as DeliveryType,
6373
- Nt as DetailedJwtPayload,
6421
+ _t as DetailedJwtPayload,
6374
6422
  zr as DeviceTypeResolutionConfig,
6375
- it as DiscountShortInfo,
6423
+ st as DiscountShortInfo,
6376
6424
  ms as FieldValidationResultData,
6377
- le as FilterGroup,
6425
+ ue as FilterGroup,
6378
6426
  Ke as FilterItem,
6379
6427
  ze as FilterOpEnum,
6380
6428
  pr as GeoCoordinates,
6381
- Yr as HiddenCatalogableItem,
6382
- ue as HttpCachedRequester,
6429
+ Qr as HiddenCatalogableItem,
6430
+ le as HttpCachedRequester,
6383
6431
  Wr as HttpParamsConfig,
6384
6432
  p as HttpRequester,
6385
- G as Identity,
6386
- Xr as Image,
6387
- q as JwtPayload,
6433
+ j as Identity,
6434
+ Yr as Image,
6435
+ _ as JwtPayload,
6388
6436
  De as Manager,
6389
- Fe as ManagerCommon,
6437
+ Ge as ManagerCommon,
6390
6438
  ss as ManagerDataFactory,
6391
- Pt as ManagerDataProvider,
6392
- $t as MetaTagItem,
6393
- T as NamedIdentity,
6439
+ Ct as ManagerDataProvider,
6440
+ At as MetaTagItem,
6441
+ a as NamedIdentity,
6394
6442
  N as Opf,
6395
- _ as OpfEnum,
6443
+ x as OpfEnum,
6396
6444
  er as Order,
6397
6445
  $r as OrderInfo,
6398
- pt as OrderPaymentStatus,
6399
- Rt as OrderProduct,
6446
+ lt as OrderPaymentStatus,
6447
+ Pt as OrderProduct,
6400
6448
  Ar as OrderShortInfo,
6401
- ht as OrderStatus,
6449
+ pt as OrderStatus,
6402
6450
  is as OrdersDataProvider,
6403
6451
  Z as PartnerGroup,
6404
- gt as PaymentType,
6452
+ ht as PaymentType,
6405
6453
  me as PreferencesStorageProvider,
6406
- Ie as PriceAnalyze,
6454
+ ke as PriceAnalyze,
6407
6455
  ns as PriceAnalyzeProvider,
6408
6456
  Pe as PriceCoefficient,
6409
- ur as PriceCoefficientEnum,
6457
+ lr as PriceCoefficientEnum,
6410
6458
  os as PriceHistoryDataProvider,
6411
- Dt as PriceHistoryItem,
6459
+ Rt as PriceHistoryItem,
6412
6460
  W as PriceTemplate,
6413
- be as PriceTemplateCategory,
6461
+ ae as PriceTemplateCategory,
6414
6462
  te as PriceTemplateClient,
6415
6463
  mr as PriceTemplateICatalogableItem,
6416
- ae as PriceTemplateProduct,
6417
- Et as PriceTemplateProvider,
6464
+ be as PriceTemplateProduct,
6465
+ Wt as PriceTemplateProvider,
6418
6466
  ie as PricingRole,
6419
- Jt as PricingRoleProvider,
6420
- _e as PrimaryCatalogableItem,
6421
- I as Product,
6422
- Bt as ProductCategoryDataProvider,
6423
- Ht as ProductDataProvider,
6424
- mt as ProductFileType,
6467
+ Et as PricingRoleProvider,
6468
+ de as PrimaryCatalogableItem,
6469
+ k as Product,
6470
+ Ft as ProductCategoryDataProvider,
6471
+ Mt as ProductDataProvider,
6472
+ gt as ProductFileType,
6425
6473
  Ue as ProductPriceCoefficient,
6426
- At as ProductPriceHistory,
6427
- Vt as PropertiesProvider,
6474
+ Dt as ProductPriceHistory,
6475
+ Jt as PropertiesProvider,
6428
6476
  se as Property,
6429
6477
  yr as PropertyType,
6430
- tt as PropertyTypeEnum,
6431
- H as PropertyValue,
6478
+ rt as PropertyTypeEnum,
6479
+ B as PropertyValue,
6432
6480
  cs as RecommendationsDataProvider,
6433
6481
  tr as RecommendationsList,
6434
- P as Reference,
6435
- $ as ReferenceDataProvider,
6482
+ R as Reference,
6483
+ T as ReferenceDataProvider,
6436
6484
  ce as Region,
6437
6485
  vr as ResourceType,
6438
- O as SalesDirection,
6486
+ q as SalesDirection,
6439
6487
  Er as SentryConfig,
6440
6488
  sr as Seo,
6441
- us as SeoDataProvider,
6489
+ ls as SeoDataProvider,
6442
6490
  Cr as SourcePrimaryInterest,
6443
- Qr as StockCount,
6444
- jt as TemplatesListFilters,
6445
- je as TypedInstanceFactory,
6491
+ Kr as StockCount,
6492
+ Ut as TemplatesListFilters,
6493
+ He as TypedInstanceFactory,
6446
6494
  Ze as UnitsHelper,
6447
- Zt as UnknownClientDataProvider,
6495
+ Xt as UnknownClientDataProvider,
6448
6496
  hr as UpdatableNamedIdentity,
6449
- bt as User,
6497
+ Tt as User,
6450
6498
  hs as UserAuthDataProvider,
6451
6499
  fr as UserCommonInfo,
6452
6500
  at as UserDataProvider,
6453
- nt as UserPricingRole,
6501
+ it as UserPricingRole,
6454
6502
  d as UserShortInfo,
6455
- Tt as UserTypeEnum,
6456
- Jr as VersionConfig,
6503
+ $t as UserTypeEnum,
6504
+ es as VersionConfig,
6457
6505
  Re as Warehouse,
6458
- Vr as WebSocketConfig,
6506
+ Jr as WebSocketConfig,
6459
6507
  Qe as findCatalogItemByIdRecursive,
6460
6508
  Ye as flattenCatalogItems,
6461
- es as loadRemoteConfig,
6509
+ Zt as loadRemoteConfig,
6462
6510
  Te as useAuthStateStore,
6463
- ls as useReferencesStore,
6511
+ b as useBaseConfigStateStore,
6512
+ us as useReferencesStore,
6464
6513
  gs as useUserStateStore
6465
6514
  };
6466
6515
  //# sourceMappingURL=sc-common-lib.js.map