@snabcentr/common-lib 1.61.0 → 1.62.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,9 +1,9 @@
1
- var nr = Object.defineProperty;
2
- var or = (n, r, e) => r in n ? nr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => or(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { isNil as K, toUpper as cr, constant as lr, isUndefined as pr, isString as m, cloneDeep as ur, noop as y, toLower as hr, isEmpty as Le, isFunction as ae, map as ce, forEach as gr, isDate as mr, isArray as ze, omitBy as fr, isObject as yr } from "lodash-es";
5
- import { parseISO as f, format as B, addSeconds as wr, isAfter as Cr, startOfToday as Be, addBusinessDays as vr, endOfTomorrow as Pr, startOfTomorrow as Rr, endOfYesterday as Ar, startOfYesterday as Dr, endOfToday as $r, endOfDay as br, startOfDay as Tr } from "date-fns";
6
- import _r from "axios";
1
+ var or = Object.defineProperty;
2
+ var cr = (n, r, e) => r in n ? or(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => cr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { isNil as K, toUpper as lr, constant as ur, isUndefined as pr, isString as m, cloneDeep as hr, noop as y, toLower as gr, isEmpty as Se, isFunction as Le, map as ce, forEach as mr, isDate as fr, isArray as Be, omitBy as yr, isObject as wr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as Cr, isAfter as vr, startOfToday as We, addBusinessDays as Pr, endOfTomorrow as Rr, startOfTomorrow as Dr, endOfYesterday as Ar, startOfYesterday as $r, endOfToday as br, endOfDay as Tr, startOfDay as _r } from "date-fns";
6
+ import ar from "axios";
7
7
  import { objectToSnake as Oe, objectToCamel as Sr } from "ts-case-convert";
8
8
  import { defineStore as me } from "pinia";
9
9
  import { ref as C, computed as v } from "vue";
@@ -46,7 +46,7 @@ class $ extends H {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class We extends $ {
49
+ class je extends $ {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class We extends $ {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class $e extends We {
72
+ class $e extends je {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -108,10 +108,10 @@ class ie extends $e {
108
108
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
109
109
  */
110
110
  t(this, "currencyRates");
111
- 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]) => [cr(s), i])) : void 0;
111
+ 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]) => [lr(s), i])) : void 0;
112
112
  }
113
113
  }
114
- var je = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(je || {});
114
+ var Ve = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ve || {});
115
115
  class w extends $ {
116
116
  /**
117
117
  * Инициализирует экземпляр класса {@link Reference}.
@@ -136,7 +136,7 @@ class fe extends w {
136
136
  * Возвращает значение справочника коэффициента розничной цены.
137
137
  */
138
138
  static getRetailPriceCoefficient() {
139
- return { id: -2, slug: je.Retail, name: "Розн. цена", guid: "", isNewRec: lr(!0) };
139
+ return { id: -2, slug: Ve.Retail, name: "Розн. цена", guid: "", isNewRec: ur(!0) };
140
140
  }
141
141
  }
142
142
  class Ie {
@@ -169,7 +169,7 @@ class Ie {
169
169
  this.coefficient = new fe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
170
170
  }
171
171
  }
172
- class Ve {
172
+ class Ee {
173
173
  /**
174
174
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
175
175
  *
@@ -218,7 +218,7 @@ class ye extends w {
218
218
  * Координаты склада.
219
219
  */
220
220
  t(this, "coordinates");
221
- 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 J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ve(e == null ? void 0 : e.coordinates);
221
+ 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 J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ee(e == null ? void 0 : e.coordinates);
222
222
  }
223
223
  }
224
224
  class Lr {
@@ -276,7 +276,7 @@ const j = class j {
276
276
  */
277
277
  t(j, "config");
278
278
  let b = j;
279
- class ar extends We {
279
+ class Ir extends je {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -291,7 +291,7 @@ class ar extends We {
291
291
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
292
292
  }
293
293
  }
294
- class Ir {
294
+ class xr {
295
295
  /**
296
296
  * Инициализирует экземпляр класса {@link Image}.
297
297
  *
@@ -314,14 +314,14 @@ class Ir {
314
314
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
315
315
  }
316
316
  }
317
- class _ extends ar {
317
+ class _ extends Ir {
318
318
  /**
319
319
  * Инициализирует экземпляр класса {@link Product}.
320
320
  *
321
321
  * @param data Данные для первоначальной инициализации.
322
322
  */
323
323
  constructor(e) {
324
- var i, o, c, p;
324
+ var i, o, c, u;
325
325
  super(e);
326
326
  /**
327
327
  * Артикул производителя/поставщика.
@@ -401,7 +401,7 @@ class _ extends ar {
401
401
  t(this, "priceCoefficients");
402
402
  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 = m(e == null ? void 0 : e.costDate) ? f(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((g) => new Lr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
403
403
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
404
- s && (this.category = new $e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new $e(g))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((g) => new Ir(g, b.getConfig().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 = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new Ie(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
404
+ s && (this.category = new $e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new $e(g))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((g) => new xr(g, b.getConfig().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((g) => new Ie(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
405
405
  }
406
406
  /**
407
407
  * Возвращает признак, что это измеряемый товар.
@@ -411,8 +411,20 @@ class _ extends ar {
411
411
  const e = (s = b.getConfig().catalog) == null ? void 0 : s.products.units;
412
412
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
413
413
  }
414
+ /**
415
+ * Возвращает розничную цену.
416
+ */
417
+ getRetailCost() {
418
+ return this.retailCost ?? this.cost;
419
+ }
420
+ /**
421
+ * Возвращает розничную стоимость в рублях.
422
+ */
423
+ getRetailCostRub() {
424
+ return this.retailCostRub ?? this.costRub;
425
+ }
414
426
  }
415
- class xr extends H {
427
+ class kr extends H {
416
428
  /**
417
429
  * Инициализирует экземпляр класса {@link CartItemBase}.
418
430
  *
@@ -464,10 +476,10 @@ class xr extends H {
464
476
  * Признак того, что позиция является дополнительной продажей.
465
477
  */
466
478
  t(this, "isAdditionalSale");
467
- this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
479
+ this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && hr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
468
480
  }
469
481
  }
470
- class kr extends xr {
482
+ class Nr extends kr {
471
483
  /**
472
484
  * Инициализирует экземпляр класса {@link CartItem}.
473
485
  *
@@ -536,10 +548,10 @@ class oe {
536
548
  * Список итоговых сумм по направлениям продаж.
537
549
  */
538
550
  t(this, "directionsSum");
539
- this.items = r.items.map((e) => new kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
551
+ this.items = r.items.map((e) => new Nr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
540
552
  }
541
553
  }
542
- class Nr {
554
+ class Or {
543
555
  /**
544
556
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
545
557
  *
@@ -561,7 +573,7 @@ class Nr {
561
573
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
562
574
  }
563
575
  }
564
- class Or {
576
+ class dr {
565
577
  /**
566
578
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
567
579
  *
@@ -583,7 +595,7 @@ class Or {
583
595
  this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
584
596
  }
585
597
  }
586
- class dr {
598
+ class qr {
587
599
  /**
588
600
  * Инициализирует экземпляр класса {@link SentryConfig}.
589
601
  *
@@ -628,7 +640,7 @@ class dr {
628
640
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
629
641
  }
630
642
  }
631
- class qr {
643
+ class Ur {
632
644
  /**
633
645
  * Инициализирует экземпляр класса {@link VersionConfig}.
634
646
  *
@@ -650,7 +662,7 @@ class qr {
650
662
  this.date = m(r == null ? void 0 : r.date) ? f(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";
651
663
  }
652
664
  }
653
- class Ct {
665
+ class vt {
654
666
  /**
655
667
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
656
668
  *
@@ -690,10 +702,10 @@ class Ct {
690
702
  */
691
703
  t(this, "dateFormats");
692
704
  var e, s, i;
693
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Or(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Nr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new dr({
705
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new dr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Or(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new qr({
694
706
  environment: this.environment,
695
707
  ...r == null ? void 0 : r.sentry
696
- }), this.urls = r == null ? void 0 : r.urls, this.version = new qr(r == null ? void 0 : r.version), this.dateFormats = {
708
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new Ur(r == null ? void 0 : r.version), this.dateFormats = {
697
709
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
698
710
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
699
711
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -719,7 +731,7 @@ class xe {
719
731
  return new r(e);
720
732
  }
721
733
  }
722
- const L = class L {
734
+ const S = class S {
723
735
  /**
724
736
  * Инициализирует экземпляр класса {@link HttpRequester}.
725
737
  *
@@ -740,7 +752,7 @@ const L = class L {
740
752
  */
741
753
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
742
754
  const s = b.getConfig().version;
743
- this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = _r.create({
755
+ this.defaultInstanceNotificationErrorResponseHandler = S.baseDefaultNotificationErrorResponseHandler, this.httpClient = ar.create({
744
756
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
745
757
  baseURL: r,
746
758
  headers: {
@@ -750,12 +762,12 @@ const L = class L {
750
762
  ...e
751
763
  }
752
764
  }), this.httpClient.interceptors.request.use(
753
- (i) => (i.method && (i.method === "get" && i.params && (i.params = Oe(i.params)), ["put", "patch", "post"].includes(hr(i.method)) && i.data && (i.data = Oe(i.data))), i),
765
+ (i) => (i.method && (i.method === "get" && i.params && (i.params = Oe(i.params)), ["put", "patch", "post"].includes(gr(i.method)) && i.data && (i.data = Oe(i.data))), i),
754
766
  (i) => Promise.reject(i)
755
767
  ), this.httpClient.interceptors.response.use(
756
768
  (i) => (i.data && (i.data = Sr(i.data)), i),
757
769
  // Возвращаем изменённую структуру сообщения об ошибке.
758
- (i) => L.convertHttpErrorResponse(i)
770
+ (i) => S.convertHttpErrorResponse(i)
759
771
  );
760
772
  }
761
773
  /**
@@ -764,7 +776,7 @@ const L = class L {
764
776
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
765
777
  */
766
778
  static setBaseDefaultNotificationErrorResponseHandler(r) {
767
- L.baseDefaultNotificationErrorResponseHandler = r;
779
+ S.baseDefaultNotificationErrorResponseHandler = r;
768
780
  }
769
781
  /**
770
782
  * Возвращает экземпляр объекта текущего класса.
@@ -772,7 +784,7 @@ const L = class L {
772
784
  * @param type Тип данных, которыми оперирует метод.
773
785
  */
774
786
  static getInstance(r) {
775
- return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = xe.simpleInstanceInitializer(r)), L.instances[r.name];
787
+ return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = xe.simpleInstanceInitializer(r)), S.instances[r.name];
776
788
  }
777
789
  /**
778
790
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -867,15 +879,15 @@ const L = class L {
867
879
  * Экземпляр объекта текущего класса.
868
880
  */
869
881
  // eslint-disable-next-line no-use-before-define
870
- t(L, "instances", {}), /**
882
+ t(S, "instances", {}), /**
871
883
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
872
884
  *
873
885
  * Параметры:
874
886
  * - error Данные об ошибке.
875
887
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
876
888
  */
877
- t(L, "baseDefaultNotificationErrorResponseHandler", y);
878
- let be = L;
889
+ t(S, "baseDefaultNotificationErrorResponseHandler", y);
890
+ let be = S;
879
891
  const V = class V extends be {
880
892
  /**
881
893
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
@@ -911,7 +923,7 @@ const V = class V extends be {
911
923
  */
912
924
  cacheResponse(e, s) {
913
925
  V.responseDataCache.set(e, {
914
- validTo: wr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
926
+ validTo: Cr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
915
927
  val: s
916
928
  });
917
929
  }
@@ -926,9 +938,9 @@ const V = class V extends be {
926
938
  */
927
939
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
928
940
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
929
- const c = s + (Le(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(c) : void 0;
930
- return p ? Promise.resolve(p) : this.get(s, o).then((g) => {
931
- const R = g.map((D) => xe.instanceInitializer(e, D));
941
+ const c = s + (Se(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
942
+ return u ? Promise.resolve(u) : this.get(s, o).then((g) => {
943
+ const R = g.map((A) => xe.instanceInitializer(e, A));
932
944
  return i && R && this.cacheResponse(s, R), R;
933
945
  });
934
946
  }
@@ -938,7 +950,7 @@ const V = class V extends be {
938
950
  */
939
951
  t(V, "responseDataCache", /* @__PURE__ */ new Map());
940
952
  let Te = V;
941
- class u extends Te {
953
+ class p extends Te {
942
954
  /**
943
955
  * Инициализирует экземпляр класса {@link HttpRequester}.
944
956
  */
@@ -948,7 +960,7 @@ class u extends Te {
948
960
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
949
961
  }
950
962
  }
951
- class vt extends u {
963
+ class Pt extends p {
952
964
  /**
953
965
  * Возвращает содержимое корзины указанного клиента.
954
966
  *
@@ -1051,7 +1063,7 @@ class vt extends u {
1051
1063
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1052
1064
  }
1053
1065
  }
1054
- var Ur = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ur || {}), ke = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ke || {}), Gr = /* @__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))(Gr || {});
1066
+ var Gr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Gr || {}), ke = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ke || {}), Mr = /* @__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))(Mr || {});
1055
1067
  class q extends ie {
1056
1068
  /**
1057
1069
  * Инициализирует экземпляр класса {@link Category}.
@@ -1072,7 +1084,7 @@ class q extends ie {
1072
1084
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
1073
1085
  }
1074
1086
  }
1075
- class Ee extends $ {
1087
+ class Ke extends $ {
1076
1088
  /**
1077
1089
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1078
1090
  *
@@ -1087,7 +1099,7 @@ class Ee extends $ {
1087
1099
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1088
1100
  }
1089
1101
  }
1090
- class Mr extends Ee {
1102
+ class Fr extends Ke {
1091
1103
  /**
1092
1104
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1093
1105
  *
@@ -1102,7 +1114,7 @@ class Mr extends Ee {
1102
1114
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1103
1115
  }
1104
1116
  }
1105
- class Pt {
1117
+ class Rt {
1106
1118
  /**
1107
1119
  * Возвращает актуальные и не просроченные данные из хранилища.
1108
1120
  *
@@ -1113,7 +1125,7 @@ class Pt {
1113
1125
  if (e)
1114
1126
  try {
1115
1127
  const s = JSON.parse(e);
1116
- if (Cr(f(s.availableFor) || Be(), /* @__PURE__ */ new Date()))
1128
+ if (vr(f(s.availableFor) || We(), /* @__PURE__ */ new Date()))
1117
1129
  return s.data ?? {};
1118
1130
  } catch {
1119
1131
  localStorage.removeItem(r);
@@ -1151,7 +1163,7 @@ class U extends $ {
1151
1163
  this.type = e == null ? void 0 : e.type;
1152
1164
  }
1153
1165
  }
1154
- class Fr extends $ {
1166
+ class Hr extends $ {
1155
1167
  /**
1156
1168
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1157
1169
  *
@@ -1190,7 +1202,7 @@ class Fr extends $ {
1190
1202
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1191
1203
  }
1192
1204
  }
1193
- class W extends Ee {
1205
+ class W extends Ke {
1194
1206
  /**
1195
1207
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1196
1208
  *
@@ -1245,10 +1257,10 @@ class Q extends _ {
1245
1257
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1246
1258
  */
1247
1259
  t(this, "isFavorite");
1248
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ke.Product, this.discount = e != null && e.discount ? new Fr(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;
1260
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ke.Product, this.discount = e != null && e.discount ? new Hr(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;
1249
1261
  }
1250
1262
  }
1251
- class Hr {
1263
+ class zr {
1252
1264
  /**
1253
1265
  * Инициализирует экземпляр класса {@link ContactLinks}.
1254
1266
  *
@@ -1266,7 +1278,7 @@ class Hr {
1266
1278
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1267
1279
  }
1268
1280
  }
1269
- class S extends w {
1281
+ class a extends w {
1270
1282
  }
1271
1283
  class re extends $ {
1272
1284
  /**
@@ -1279,7 +1291,7 @@ class re extends $ {
1279
1291
  /**
1280
1292
  * Направление продаж.
1281
1293
  */
1282
- t(this, "salesDirection", new S());
1294
+ t(this, "salesDirection", new a());
1283
1295
  /**
1284
1296
  * URI путь к фотографии пользователя.
1285
1297
  */
@@ -1292,7 +1304,7 @@ class re extends $ {
1292
1304
  * Признак того, что менеджер является основным для клиента.
1293
1305
  */
1294
1306
  t(this, "isDefault");
1295
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Hr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1307
+ e && (this.salesDirection = new a(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new zr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1296
1308
  }
1297
1309
  }
1298
1310
  class we extends re {
@@ -1326,7 +1338,7 @@ class we extends re {
1326
1338
  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;
1327
1339
  }
1328
1340
  }
1329
- class zr extends ie {
1341
+ class Br extends ie {
1330
1342
  /**
1331
1343
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1332
1344
  *
@@ -1357,7 +1369,7 @@ class zr extends ie {
1357
1369
  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 we(e.manager) : void 0;
1358
1370
  }
1359
1371
  }
1360
- class le extends zr {
1372
+ class le extends Br {
1361
1373
  /**
1362
1374
  * Инициализирует экземпляр класса {@link ClientCategory}.
1363
1375
  *
@@ -1377,7 +1389,7 @@ class le extends zr {
1377
1389
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Q(o));
1378
1390
  }
1379
1391
  }
1380
- class Ke {
1392
+ class Je {
1381
1393
  /**
1382
1394
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1383
1395
  *
@@ -1395,7 +1407,7 @@ class Ke {
1395
1407
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1396
1408
  }
1397
1409
  }
1398
- class ve extends Ke {
1410
+ class ve extends Je {
1399
1411
  /**
1400
1412
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1401
1413
  *
@@ -1427,7 +1439,7 @@ class te extends w {
1427
1439
  e && (this.country = new Y(e.country));
1428
1440
  }
1429
1441
  }
1430
- class pe extends w {
1442
+ class ue extends w {
1431
1443
  /**
1432
1444
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1433
1445
  *
@@ -1442,7 +1454,7 @@ class pe extends w {
1442
1454
  e && (this.region = new te(e.region));
1443
1455
  }
1444
1456
  }
1445
- class Je extends $ {
1457
+ class Qe extends $ {
1446
1458
  /**
1447
1459
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1448
1460
  *
@@ -1478,10 +1490,10 @@ class Je extends $ {
1478
1490
  * Признак активности учетной записи пользователя.
1479
1491
  */
1480
1492
  t(this, "isActive");
1481
- 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 S(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1493
+ 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 a(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1482
1494
  }
1483
1495
  }
1484
- class ne extends Je {
1496
+ class ne extends Qe {
1485
1497
  /**
1486
1498
  * Инициализирует экземпляр класса {@link Client}.
1487
1499
  *
@@ -1523,7 +1535,7 @@ class ne extends Je {
1523
1535
  * Список менеджеров клиента.
1524
1536
  */
1525
1537
  t(this, "managers");
1526
- this.salesDirection = new S(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 pe(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((i) => new re(i))) ?? [];
1538
+ this.salesDirection = new a(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 ue(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((i) => new re(i))) ?? [];
1527
1539
  }
1528
1540
  }
1529
1541
  class X extends H {
@@ -1553,7 +1565,7 @@ class X extends H {
1553
1565
  this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1554
1566
  }
1555
1567
  }
1556
- class Pe extends Ke {
1568
+ class Pe extends Je {
1557
1569
  /**
1558
1570
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1559
1571
  *
@@ -1568,7 +1580,7 @@ class Pe extends Ke {
1568
1580
  this.product = new _(e == null ? void 0 : e.product);
1569
1581
  }
1570
1582
  }
1571
- class Qe extends w {
1583
+ class Ye extends w {
1572
1584
  }
1573
1585
  class Z extends $ {
1574
1586
  /**
@@ -1590,7 +1602,7 @@ class Z extends $ {
1590
1602
  * Дополнительные метаданные свойства.
1591
1603
  */
1592
1604
  t(this, "metadata");
1593
- this.type = new Qe(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1605
+ this.type = new Ye(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1594
1606
  }
1595
1607
  }
1596
1608
  class z {
@@ -1630,7 +1642,7 @@ class O {
1630
1642
  this.from = m(r == null ? void 0 : r.from) ? f(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = m(r == null ? void 0 : r.to) ? f(r.to) : (r == null ? void 0 : r.to) ?? null;
1631
1643
  }
1632
1644
  }
1633
- class Rt {
1645
+ class Dt {
1634
1646
  /**
1635
1647
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1636
1648
  *
@@ -1688,21 +1700,21 @@ class Rt {
1688
1700
  var e, s, i, o;
1689
1701
  const r = {};
1690
1702
  return Object.keys(this).forEach((c) => {
1691
- const p = this[c];
1703
+ const u = this[c];
1692
1704
  // eslint-disable-next-line prettier/prettier
1693
- K(p) || m(p) && p.trim().length === 0 || ae(p.isNewRec) && p.isNewRec() || (r[c] = p);
1705
+ K(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
1694
1706
  }), !((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;
1695
1707
  }
1696
1708
  }
1697
- class Br extends w {
1709
+ class Wr extends w {
1698
1710
  }
1699
- class Ye extends w {
1711
+ class Xe extends w {
1700
1712
  }
1701
1713
  class At extends w {
1702
1714
  }
1703
- class Wr extends w {
1715
+ class jr extends w {
1704
1716
  }
1705
- class ue extends $ {
1717
+ class pe extends $ {
1706
1718
  /**
1707
1719
  * Инициализирует экземпляр класса {@link Currency}.
1708
1720
  *
@@ -1735,21 +1747,21 @@ class G extends w {
1735
1747
  });
1736
1748
  }
1737
1749
  }
1738
- class jr extends w {
1739
- }
1740
1750
  class Vr extends w {
1741
1751
  }
1742
- class M extends w {
1743
- }
1744
1752
  class Er extends w {
1745
1753
  }
1754
+ class M extends w {
1755
+ }
1746
1756
  class Kr extends w {
1747
1757
  }
1748
- class Xe extends w {
1758
+ class Jr extends w {
1749
1759
  }
1750
1760
  class Ze extends w {
1751
1761
  }
1752
- class A extends u {
1762
+ class er extends w {
1763
+ }
1764
+ class D extends p {
1753
1765
  /**
1754
1766
  * Возвращает {@link Promise} для получения данных указанного справочника.
1755
1767
  *
@@ -1758,26 +1770,26 @@ class A extends u {
1758
1770
  * и использовать в случае аналогичных запросов.
1759
1771
  */
1760
1772
  getReference(r, e = !1) {
1761
- return this.getTypedDataArrayRequester(Br, `/internal/references/${r}`, e);
1773
+ return this.getTypedDataArrayRequester(Wr, `/internal/references/${r}`, e);
1762
1774
  }
1763
1775
  /**
1764
1776
  * Возвращает {@link Promise} для получения справочника данных о канале
1765
1777
  * первичного интереса.
1766
1778
  */
1767
1779
  getChannelPrimaryInterest() {
1768
- return this.getTypedDataArrayRequester(Ye, "/internal/references/channel-primary-interest", !0);
1780
+ return this.getTypedDataArrayRequester(Xe, "/internal/references/channel-primary-interest", !0);
1769
1781
  }
1770
1782
  /**
1771
1783
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1772
1784
  */
1773
1785
  getContactPositions() {
1774
- return this.getTypedDataArrayRequester(Wr, "/internal/references/contact-position", !0);
1786
+ return this.getTypedDataArrayRequester(jr, "/internal/references/contact-position", !0);
1775
1787
  }
1776
1788
  /**
1777
1789
  * Возвращает {@link Promise} для получения справочника списка валют.
1778
1790
  */
1779
1791
  getCurrency() {
1780
- return this.getTypedDataArrayRequester(ue, "/public/references/currency", !0);
1792
+ return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
1781
1793
  }
1782
1794
  /**
1783
1795
  * Возвращает {@link Promise} для получения справочника данных
@@ -1796,37 +1808,37 @@ class A extends u {
1796
1808
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1797
1809
  */
1798
1810
  getOrderPaymentStatuses() {
1799
- return this.getTypedDataArrayRequester(jr, "/public/references/order-payment-status", !0);
1811
+ return this.getTypedDataArrayRequester(Vr, "/public/references/order-payment-status", !0);
1800
1812
  }
1801
1813
  /**
1802
1814
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1803
1815
  */
1804
1816
  getOrderStatuses() {
1805
- return this.getTypedDataArrayRequester(Vr, "/public/references/order-status", !0);
1817
+ return this.getTypedDataArrayRequester(Er, "/public/references/order-status", !0);
1806
1818
  }
1807
1819
  /**
1808
1820
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1809
1821
  */
1810
1822
  getPaymentTypes() {
1811
- return this.getTypedDataArrayRequester(Er, "/public/references/payment-type", !0);
1823
+ return this.getTypedDataArrayRequester(Kr, "/public/references/payment-type", !0);
1812
1824
  }
1813
1825
  /**
1814
1826
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1815
1827
  */
1816
1828
  getResourceTypes() {
1817
- return this.getTypedDataArrayRequester(Xe, "/internal/references/resource-type", !0);
1829
+ return this.getTypedDataArrayRequester(Ze, "/internal/references/resource-type", !0);
1818
1830
  }
1819
1831
  /**
1820
1832
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
1821
1833
  */
1822
1834
  getSalesDirections() {
1823
- return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
1835
+ return this.getTypedDataArrayRequester(a, "/public/references/sales-direction", !0);
1824
1836
  }
1825
1837
  /**
1826
1838
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1827
1839
  */
1828
1840
  getSourcePrimaryInterest() {
1829
- return this.getTypedDataArrayRequester(Ze, "/internal/references/source-primary-interest", !0);
1841
+ return this.getTypedDataArrayRequester(er, "/internal/references/source-primary-interest", !0);
1830
1842
  }
1831
1843
  /**
1832
1844
  * Выполняет поиск данных о городах по терму в названии.
@@ -1834,7 +1846,7 @@ class A extends u {
1834
1846
  * @param term Терм поиска.
1835
1847
  */
1836
1848
  searchCity(r) {
1837
- return this.getTypedDataArrayRequester(pe, `/internal/references/city-with-region-and-country/search?term=${r}`);
1849
+ return this.getTypedDataArrayRequester(ue, `/internal/references/city-with-region-and-country/search?term=${r}`);
1838
1850
  }
1839
1851
  /**
1840
1852
  * Выполняет поиск данных о регионах по терму в названии.
@@ -1868,7 +1880,7 @@ class A extends u {
1868
1880
  * Возвращает {@link Promise} для получения справочника типов свойств.
1869
1881
  */
1870
1882
  getPropertyTypes() {
1871
- return this.getTypedDataArrayRequester(Qe, "/internal/references/property-type", !0);
1883
+ return this.getTypedDataArrayRequester(Ye, "/internal/references/property-type", !0);
1872
1884
  }
1873
1885
  /**
1874
1886
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -1880,11 +1892,11 @@ class A extends u {
1880
1892
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1881
1893
  */
1882
1894
  getProductFileType() {
1883
- return this.getTypedDataArrayRequester(Kr, "/public/references/product-file-type", !0);
1895
+ return this.getTypedDataArrayRequester(Jr, "/public/references/product-file-type", !0);
1884
1896
  }
1885
1897
  }
1886
- var Jr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Jr || {});
1887
- class Qr extends Je {
1898
+ var Qr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Qr || {});
1899
+ class Yr extends Qe {
1888
1900
  /**
1889
1901
  * Инициализирует экземпляр класса {@link User}.
1890
1902
  *
@@ -1907,16 +1919,16 @@ class Qr extends Je {
1907
1919
  this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
1908
1920
  }
1909
1921
  }
1910
- class Yr extends u {
1922
+ class Xr extends p {
1911
1923
  /**
1912
1924
  * Возвращает данные о текущем пользователе.
1913
1925
  */
1914
1926
  // eslint-disable-next-line class-methods-use-this
1915
1927
  getCurrentUser() {
1916
- return this.get("/internal/users/info", {}, (r) => new Qr(r.data));
1928
+ return this.get("/internal/users/info", {}, (r) => new Yr(r.data));
1917
1929
  }
1918
1930
  }
1919
- class Xr {
1931
+ class Zr {
1920
1932
  /**
1921
1933
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1922
1934
  *
@@ -1959,7 +1971,7 @@ class Xr {
1959
1971
  * Данные о валюте.
1960
1972
  */
1961
1973
  t(this, "currency");
1962
- this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new ue(r.currency) : void 0;
1974
+ this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1963
1975
  }
1964
1976
  }
1965
1977
  class de {
@@ -2037,7 +2049,7 @@ class qe {
2037
2049
  this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new fe(r == null ? void 0 : r.minCoefficient);
2038
2050
  }
2039
2051
  }
2040
- class Dt extends u {
2052
+ class $t extends p {
2041
2053
  /**
2042
2054
  * Возвращает данные о результатах поиска категорий и товаров.
2043
2055
  *
@@ -2068,7 +2080,7 @@ class Dt extends u {
2068
2080
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2069
2081
  }
2070
2082
  }
2071
- class $t extends u {
2083
+ class bt extends p {
2072
2084
  /**
2073
2085
  * Импортирует цены клиента из CSV файла.
2074
2086
  *
@@ -2267,7 +2279,7 @@ class $t extends u {
2267
2279
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2268
2280
  }
2269
2281
  }
2270
- class bt extends u {
2282
+ class Tt extends p {
2271
2283
  /**
2272
2284
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2273
2285
  *
@@ -2357,7 +2369,7 @@ class bt extends u {
2357
2369
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2358
2370
  }
2359
2371
  }
2360
- class Tt extends u {
2372
+ class _t extends p {
2361
2373
  /**
2362
2374
  * Возвращает список данных о корневых категориях.
2363
2375
  *
@@ -2430,7 +2442,7 @@ class Tt extends u {
2430
2442
  getCategoryProductsCoefficients(r) {
2431
2443
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2432
2444
  const { data: s } = e;
2433
- return gr(s, (i) => i.map((o) => new Ie(o))), s;
2445
+ return mr(s, (i) => i.map((o) => new Ie(o))), s;
2434
2446
  });
2435
2447
  }
2436
2448
  /**
@@ -2449,7 +2461,7 @@ class Tt extends u {
2449
2461
  });
2450
2462
  }
2451
2463
  }
2452
- class _t extends u {
2464
+ class at extends p {
2453
2465
  /**
2454
2466
  * Возвращает данные об указанном продукте.
2455
2467
  *
@@ -2493,7 +2505,7 @@ class _t extends u {
2493
2505
  */
2494
2506
  getProductPriceHistory(r, e) {
2495
2507
  const s = {};
2496
- return K(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new Xr(o)));
2508
+ return K(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new Zr(o)));
2497
2509
  }
2498
2510
  /**
2499
2511
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2511,7 +2523,7 @@ class _t extends u {
2511
2523
  });
2512
2524
  }
2513
2525
  }
2514
- class St extends u {
2526
+ class St extends p {
2515
2527
  /**
2516
2528
  * Возвращает список данных о корневых категориях указанного клиента.
2517
2529
  *
@@ -2573,7 +2585,7 @@ class St extends u {
2573
2585
  );
2574
2586
  }
2575
2587
  }
2576
- class Lt extends u {
2588
+ class Lt extends p {
2577
2589
  /**
2578
2590
  * Возвращает данные об указанном продукте для указанного клиента.
2579
2591
  *
@@ -2626,7 +2638,7 @@ class Ue {
2626
2638
  field: this.field,
2627
2639
  op: this.op
2628
2640
  };
2629
- return r.value = mr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2641
+ return r.value = fr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2630
2642
  }
2631
2643
  }
2632
2644
  class se {
@@ -2659,12 +2671,12 @@ class se {
2659
2671
  toPrimitive() {
2660
2672
  return {
2661
2673
  groupOp: this.groupOp,
2662
- filters: this.filters.map((r) => r instanceof Ue && ae(r.toPrimitive) ? r.toPrimitive() : r),
2674
+ filters: this.filters.map((r) => r instanceof Ue && Le(r.toPrimitive) ? r.toPrimitive() : r),
2663
2675
  groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
2664
2676
  };
2665
2677
  }
2666
2678
  }
2667
- class Ce extends u {
2679
+ class Ce extends p {
2668
2680
  /**
2669
2681
  * Получает пагинированный список данных.
2670
2682
  *
@@ -2676,15 +2688,15 @@ class Ce extends u {
2676
2688
  * @param successHandler Обработчик успешного выполнения запроса.
2677
2689
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2678
2690
  */
2679
- getPaginated(r, e, s, i, o, c, p) {
2691
+ getPaginated(r, e, s, i, o, c, u) {
2680
2692
  let g = {
2681
2693
  page: (i == null ? void 0 : i.page) ?? 1,
2682
2694
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2683
2695
  };
2684
- return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), Le(s) || (g.sort = ze(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, c, p);
2696
+ return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), Se(s) || (g.sort = Be(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, c, u);
2685
2697
  }
2686
2698
  }
2687
- class at extends Ce {
2699
+ class It extends Ce {
2688
2700
  /**
2689
2701
  * Возвращает список шаблонов прайс-листа.
2690
2702
  *
@@ -2836,18 +2848,24 @@ class at extends Ce {
2836
2848
  * @param priceTemplateId Идентификатор шаблона прайс-листа.
2837
2849
  * @param productCategoryId Идентификатор категории продуктов.
2838
2850
  * @param data Данные для сохранения цены.
2851
+ * @param recursively Признак того, что действие необходимо осуществить
2852
+ * рекурсивно для всех дочерних категорий.
2839
2853
  *
2840
2854
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
2841
2855
  */
2842
- saveCategoryTemplatePrice(r, e, s) {
2843
- var i;
2844
- return this.post(
2845
- `/internal/price/templates/${r}/categories/${e}`,
2856
+ saveCategoryTemplatePrice(r, e, s, i = !1) {
2857
+ var o;
2858
+ return this.request(
2846
2859
  {
2847
- price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2848
- increase_percent: s.value
2860
+ method: "POST",
2861
+ url: `/internal/price/templates/${r}/categories/${e}`,
2862
+ data: {
2863
+ price_coefficient_id: (o = s.coefficient) == null ? void 0 : o.id,
2864
+ increase_percent: s.value
2865
+ },
2866
+ params: i ? { recursively: !0 } : {}
2849
2867
  },
2850
- (o) => new ve(o.data)
2868
+ (c) => new ve(c.data)
2851
2869
  );
2852
2870
  }
2853
2871
  /**
@@ -2855,11 +2873,17 @@ class at extends Ce {
2855
2873
  *
2856
2874
  * @param priceTemplateId Идентификатор шаблона прайс-листа.
2857
2875
  * @param productCategoryId Идентификатор категории продуктов.
2876
+ * @param recursively Признак того, что действие необходимо осуществить
2877
+ * рекурсивно для всех дочерних категорий.
2858
2878
  *
2859
2879
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_delete
2860
2880
  */
2861
- deleteCategoryTemplatePrice(r, e) {
2862
- return this.delete(`/internal/price/templates/${r}/categories/${e}`);
2881
+ deleteCategoryTemplatePrice(r, e, s = !1) {
2882
+ return this.request({
2883
+ method: "DELETE",
2884
+ url: `/internal/price/templates/${r}/categories/${e}`,
2885
+ params: s ? { recursively: !0 } : {}
2886
+ });
2863
2887
  }
2864
2888
  /**
2865
2889
  * Возвращает список клиентов, привязанных к шаблону прайс-листа.
@@ -2876,7 +2900,7 @@ class at extends Ce {
2876
2900
  );
2877
2901
  }
2878
2902
  }
2879
- class It extends u {
2903
+ class xt extends p {
2880
2904
  /**
2881
2905
  * Возвращает список ролей ценообразования.
2882
2906
  *
@@ -2956,7 +2980,7 @@ class It extends u {
2956
2980
  );
2957
2981
  }
2958
2982
  }
2959
- class xt extends Ce {
2983
+ class kt extends Ce {
2960
2984
  /**
2961
2985
  * Возвращает пагинированный список свойств.
2962
2986
  *
@@ -3328,7 +3352,7 @@ class xt extends Ce {
3328
3352
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3329
3353
  }
3330
3354
  }
3331
- class kt extends u {
3355
+ class Nt extends p {
3332
3356
  /**
3333
3357
  * Возвращает данные о рекомендациях указанной категории продуктов.
3334
3358
  *
@@ -3370,7 +3394,28 @@ class kt extends u {
3370
3394
  });
3371
3395
  }
3372
3396
  }
3373
- var Zr = /* @__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))(Zr || {});
3397
+ function Ge(n, r, e) {
3398
+ let s;
3399
+ return n.some((i) => {
3400
+ if (i.type === e && i.id === r)
3401
+ return s = i, !0;
3402
+ if (i.type === "product")
3403
+ return !1;
3404
+ const o = i;
3405
+ if (o.products && o.products.length > 0) {
3406
+ const c = Ge(o.products, r, e);
3407
+ if (c)
3408
+ return s = c, !0;
3409
+ }
3410
+ if (o.categories && o.categories.length > 0) {
3411
+ const c = Ge(o.categories, r, e);
3412
+ if (c)
3413
+ return s = c, !0;
3414
+ }
3415
+ return !1;
3416
+ }), s;
3417
+ }
3418
+ var et = /* @__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))(et || {});
3374
3419
  class _e extends H {
3375
3420
  /**
3376
3421
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3398,11 +3443,11 @@ class _e extends H {
3398
3443
  /**
3399
3444
  * Данные о валюте.
3400
3445
  */
3401
- t(this, "currency", new ue());
3402
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3446
+ t(this, "currency", new pe());
3447
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
3403
3448
  }
3404
3449
  }
3405
- class Se extends $ {
3450
+ class ae extends $ {
3406
3451
  /**
3407
3452
  * Инициализирует экземпляр класса {@link Contact}.
3408
3453
  *
@@ -3421,7 +3466,7 @@ class Se extends $ {
3421
3466
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3422
3467
  }
3423
3468
  }
3424
- class F extends Se {
3469
+ class F extends ae {
3425
3470
  /**
3426
3471
  * Инициализирует экземпляр класса {@link ContactPerson}.
3427
3472
  *
@@ -3456,7 +3501,7 @@ class F extends Se {
3456
3501
  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 = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3457
3502
  }
3458
3503
  }
3459
- class er extends $ {
3504
+ class rr extends $ {
3460
3505
  /**
3461
3506
  * Инициализирует экземпляр класса {@link ContragentBase}.
3462
3507
  *
@@ -3476,7 +3521,7 @@ class er extends $ {
3476
3521
  /**
3477
3522
  * Направление продаж.
3478
3523
  */
3479
- t(this, "salesDirection", new S());
3524
+ t(this, "salesDirection", new a());
3480
3525
  /**
3481
3526
  * Группа партнеров (направление деятельности).
3482
3527
  */
@@ -3514,7 +3559,7 @@ class er extends $ {
3514
3559
  */
3515
3560
  t(this, "updater");
3516
3561
  if (e) {
3517
- if (this.opf = new G(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3562
+ if (this.opf = new G(e.opf), this.salesDirection = new a(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3518
3563
  const s = [];
3519
3564
  e.contacts.forEach((i) => {
3520
3565
  s.push(new F(i));
@@ -3529,7 +3574,7 @@ class er extends $ {
3529
3574
  }
3530
3575
  }
3531
3576
  }
3532
- class et extends er {
3577
+ class rt extends rr {
3533
3578
  /**
3534
3579
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3535
3580
  *
@@ -3539,7 +3584,7 @@ class et extends er {
3539
3584
  super(r);
3540
3585
  }
3541
3586
  }
3542
- class rr extends er {
3587
+ class tr extends rr {
3543
3588
  /**
3544
3589
  * Инициализирует экземпляр класса {@link ContragentIc}.
3545
3590
  *
@@ -3582,7 +3627,7 @@ class rr extends er {
3582
3627
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3583
3628
  }
3584
3629
  }
3585
- class tr extends rr {
3630
+ class sr extends tr {
3586
3631
  /**
3587
3632
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3588
3633
  *
@@ -3597,7 +3642,7 @@ class tr extends rr {
3597
3642
  e && (this.kpp = e.kpp ?? "");
3598
3643
  }
3599
3644
  }
3600
- class rt extends tr {
3645
+ class tt extends sr {
3601
3646
  /**
3602
3647
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3603
3648
  *
@@ -3629,13 +3674,13 @@ class he {
3629
3674
  static createInstance(r) {
3630
3675
  switch (r.opf.slug) {
3631
3676
  case T.Ic:
3632
- return new rr(r);
3633
- case T.UlR:
3634
3677
  return new tr(r);
3678
+ case T.UlR:
3679
+ return new sr(r);
3635
3680
  case T.UlNr:
3636
- return new rt(r);
3681
+ return new tt(r);
3637
3682
  default:
3638
- return new et(r);
3683
+ return new rt(r);
3639
3684
  }
3640
3685
  }
3641
3686
  }
@@ -3654,7 +3699,7 @@ class Re extends H {
3654
3699
  this.isPrimary = e.isPrimary;
3655
3700
  }
3656
3701
  }
3657
- class tt extends F {
3702
+ class st extends F {
3658
3703
  /**
3659
3704
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3660
3705
  *
@@ -3682,7 +3727,7 @@ class tt extends F {
3682
3727
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
3683
3728
  }
3684
3729
  }
3685
- class ge extends Mr {
3730
+ class ge extends Fr {
3686
3731
  /**
3687
3732
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3688
3733
  *
@@ -3719,10 +3764,10 @@ class ge extends Mr {
3719
3764
  * Признак того, что указанный адрес является адресом транспортной компании.
3720
3765
  */
3721
3766
  t(this, "isTransportCompanyAddress");
3722
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ve(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3767
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ee(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3723
3768
  }
3724
3769
  }
3725
- class Ge extends ne {
3770
+ class Me extends ne {
3726
3771
  /**
3727
3772
  * Инициализирует экземпляр класса {@link Client}.
3728
3773
  *
@@ -3776,10 +3821,10 @@ class Ge extends ne {
3776
3821
  * Дополнительные данные о клиенте.
3777
3822
  */
3778
3823
  t(this, "extraData");
3779
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => he.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Ye(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ze(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3824
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => he.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new M(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ge(u))) ?? [], this.channelPrimaryInterest = new Xe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new er(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3780
3825
  }
3781
3826
  }
3782
- class Nt {
3827
+ class Ot {
3783
3828
  /**
3784
3829
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3785
3830
  *
@@ -3871,7 +3916,7 @@ class Nt {
3871
3916
  */
3872
3917
  t(this, "lastOrder");
3873
3918
  var e, s, i;
3874
- 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.city = new pe(r == null ? void 0 : r.city), this.region = new te(r == null ? void 0 : r.region), this.country = new Y(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 O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new we(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new Se(r == null ? void 0 : r.contact), this.lastOrder = {
3919
+ 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.city = new ue(r == null ? void 0 : r.city), this.region = new te(r == null ? void 0 : r.region), this.country = new Y(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 O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new we(o)) : [], this.salesDirection = new a(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new ae(r == null ? void 0 : r.contact), this.lastOrder = {
3875
3920
  createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3876
3921
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3877
3922
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -3894,7 +3939,7 @@ class Nt {
3894
3939
  this[r] = void 0;
3895
3940
  break;
3896
3941
  case "city":
3897
- this.city = new pe();
3942
+ this.city = new ue();
3898
3943
  break;
3899
3944
  case "region":
3900
3945
  this.region = new te();
@@ -3918,7 +3963,7 @@ class Nt {
3918
3963
  this.managers = [];
3919
3964
  break;
3920
3965
  case "salesDirection":
3921
- this.salesDirection = new S();
3966
+ this.salesDirection = new a();
3922
3967
  break;
3923
3968
  case "contragentType":
3924
3969
  this.contragentType = new G();
@@ -3930,7 +3975,7 @@ class Nt {
3930
3975
  this.partnerGroup = new M();
3931
3976
  break;
3932
3977
  case "contact":
3933
- this.contact = new Se();
3978
+ this.contact = new ae();
3934
3979
  break;
3935
3980
  }
3936
3981
  return this;
@@ -3943,13 +3988,13 @@ class Nt {
3943
3988
  var e, s, i, o;
3944
3989
  const r = {};
3945
3990
  return Object.keys(this).forEach((c) => {
3946
- const p = this[c];
3991
+ const u = this[c];
3947
3992
  // eslint-disable-next-line prettier/prettier
3948
- K(p) || m(p) && p.trim().length === 0 || ae(p.isNewRec) && p.isNewRec() || (r[c] = p);
3993
+ K(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
3949
3994
  }), !((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;
3950
3995
  }
3951
3996
  }
3952
- class sr extends H {
3997
+ class ir extends H {
3953
3998
  /**
3954
3999
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
3955
4000
  *
@@ -3972,7 +4017,7 @@ class sr extends H {
3972
4017
  this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3973
4018
  }
3974
4019
  }
3975
- class st extends $ {
4020
+ class it extends $ {
3976
4021
  /**
3977
4022
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
3978
4023
  *
@@ -4005,10 +4050,10 @@ class st extends $ {
4005
4050
  * Список менеджеров.
4006
4051
  */
4007
4052
  t(this, "managers");
4008
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new sr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4053
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new ir(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new a(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4009
4054
  }
4010
4055
  }
4011
- class it {
4056
+ class nt {
4012
4057
  /**
4013
4058
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4014
4059
  *
@@ -4026,7 +4071,7 @@ class it {
4026
4071
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4027
4072
  }
4028
4073
  }
4029
- class Ot extends it {
4074
+ class dt extends nt {
4030
4075
  /**
4031
4076
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4032
4077
  *
@@ -4057,7 +4102,7 @@ class Ot extends it {
4057
4102
  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;
4058
4103
  }
4059
4104
  }
4060
- class dt {
4105
+ class qt {
4061
4106
  /**
4062
4107
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4063
4108
  *
@@ -4075,7 +4120,7 @@ class dt {
4075
4120
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4076
4121
  }
4077
4122
  }
4078
- class qt extends Ce {
4123
+ class Ut extends Ce {
4079
4124
  /**
4080
4125
  * Возвращает данные об указанном клиенте.
4081
4126
  *
@@ -4083,7 +4128,7 @@ class qt extends Ce {
4083
4128
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4084
4129
  */
4085
4130
  getClient(r) {
4086
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ge(e.data));
4131
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Me(e.data));
4087
4132
  }
4088
4133
  /**
4089
4134
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4098,7 +4143,7 @@ class qt extends Ce {
4098
4143
  getClientsList(r, e, s, i) {
4099
4144
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4100
4145
  const c = { ...o.data };
4101
- return c.data = c.data.map((p) => new ne(p)), c;
4146
+ return c.data = c.data.map((u) => new ne(u)), c;
4102
4147
  });
4103
4148
  }
4104
4149
  /**
@@ -4125,7 +4170,7 @@ class qt extends Ce {
4125
4170
  const s = r.map((i) => i.id);
4126
4171
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4127
4172
  let o = [];
4128
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new st(c))), o;
4173
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new it(c))), o;
4129
4174
  });
4130
4175
  }
4131
4176
  /**
@@ -4137,7 +4182,7 @@ class qt extends Ce {
4137
4182
  getAllClientContacts(r) {
4138
4183
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4139
4184
  let s = [];
4140
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new tt(i))), s;
4185
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new st(i))), s;
4141
4186
  });
4142
4187
  }
4143
4188
  /**
@@ -4167,7 +4212,7 @@ class qt extends Ce {
4167
4212
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4168
4213
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4169
4214
  },
4170
- (i) => new Ge(i.data),
4215
+ (i) => new Me(i.data),
4171
4216
  e
4172
4217
  );
4173
4218
  }
@@ -4277,9 +4322,9 @@ class qt extends Ce {
4277
4322
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4278
4323
  */
4279
4324
  createContragentClientData(r, e, s = {}) {
4280
- var g, R, D, a, I, x, k, N;
4325
+ var g, R, A, L, I, x, k, N;
4281
4326
  let i;
4282
- const o = e, c = e, p = e;
4327
+ const o = e, c = e, u = e;
4283
4328
  switch (e.opf.slug) {
4284
4329
  case T.Ic:
4285
4330
  i = {
@@ -4304,8 +4349,8 @@ class qt extends Ce {
4304
4349
  opf: c.opf.slug,
4305
4350
  name: c.name,
4306
4351
  alternative_name: c.alternativeName,
4307
- partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4308
- manager_id: (a = c.manager) == null ? void 0 : a.id,
4352
+ partner_group_id: (A = c.partnerGroup) == null ? void 0 : A.id,
4353
+ manager_id: (L = c.manager) == null ? void 0 : L.id,
4309
4354
  comment: c.comment,
4310
4355
  inn: c.inn,
4311
4356
  kpp: c.kpp,
@@ -4320,21 +4365,21 @@ class qt extends Ce {
4320
4365
  break;
4321
4366
  case T.UlNr:
4322
4367
  i = {
4323
- opf: p.opf.slug,
4324
- name: p.name,
4325
- alternative_name: p.alternativeName,
4326
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4327
- manager_id: (x = p.manager) == null ? void 0 : x.id,
4328
- comment: p.comment,
4329
- director_name: p.directorName,
4330
- director_position: p.directorPosition,
4331
- director_acts_on: p.directorActsOn,
4332
- legal_address: p.legalAddress,
4333
- postal_address: p.postalAddress,
4334
- actual_address: p.actualAddress,
4335
- registration_country_id: p.registrationCountry.id,
4336
- registration_number: p.registrationNumber,
4337
- tax_number: p.taxNumber || void 0
4368
+ opf: u.opf.slug,
4369
+ name: u.name,
4370
+ alternative_name: u.alternativeName,
4371
+ partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4372
+ manager_id: (x = u.manager) == null ? void 0 : x.id,
4373
+ comment: u.comment,
4374
+ director_name: u.directorName,
4375
+ director_position: u.directorPosition,
4376
+ director_acts_on: u.directorActsOn,
4377
+ legal_address: u.legalAddress,
4378
+ postal_address: u.postalAddress,
4379
+ actual_address: u.actualAddress,
4380
+ registration_country_id: u.registrationCountry.id,
4381
+ registration_number: u.registrationNumber,
4382
+ tax_number: u.taxNumber || void 0
4338
4383
  };
4339
4384
  break;
4340
4385
  default:
@@ -4366,9 +4411,9 @@ class qt extends Ce {
4366
4411
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4367
4412
  */
4368
4413
  updateContragentClientData(r, e, s = {}) {
4369
- var g, R, D, a, I, x, k, N;
4414
+ var g, R, A, L, I, x, k, N;
4370
4415
  let i;
4371
- const o = e, c = e, p = e;
4416
+ const o = e, c = e, u = e;
4372
4417
  switch (e.opf.slug) {
4373
4418
  case T.Ic:
4374
4419
  i = {
@@ -4393,8 +4438,8 @@ class qt extends Ce {
4393
4438
  opf: c.opf.slug,
4394
4439
  name: c.name,
4395
4440
  alternative_name: c.alternativeName,
4396
- partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4397
- manager_id: (a = c.manager) == null ? void 0 : a.id,
4441
+ partner_group_id: (A = c.partnerGroup) == null ? void 0 : A.id,
4442
+ manager_id: (L = c.manager) == null ? void 0 : L.id,
4398
4443
  comment: c.comment,
4399
4444
  inn: c.inn,
4400
4445
  kpp: c.kpp,
@@ -4409,21 +4454,21 @@ class qt extends Ce {
4409
4454
  break;
4410
4455
  case T.UlNr:
4411
4456
  i = {
4412
- opf: p.opf.slug,
4413
- name: p.name,
4414
- alternative_name: p.alternativeName,
4415
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4416
- manager_id: (x = p.manager) == null ? void 0 : x.id,
4417
- comment: p.comment,
4418
- director_name: p.directorName,
4419
- director_position: p.directorPosition,
4420
- director_acts_on: p.directorActsOn,
4421
- legal_address: p.legalAddress,
4422
- postal_address: p.postalAddress,
4423
- actual_address: p.actualAddress,
4424
- registration_country_id: p.registrationCountry.id,
4425
- registration_number: p.registrationNumber,
4426
- tax_number: p.taxNumber || void 0
4457
+ opf: u.opf.slug,
4458
+ name: u.name,
4459
+ alternative_name: u.alternativeName,
4460
+ partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4461
+ manager_id: (x = u.manager) == null ? void 0 : x.id,
4462
+ comment: u.comment,
4463
+ director_name: u.directorName,
4464
+ director_position: u.directorPosition,
4465
+ director_acts_on: u.directorActsOn,
4466
+ legal_address: u.legalAddress,
4467
+ postal_address: u.postalAddress,
4468
+ actual_address: u.actualAddress,
4469
+ registration_country_id: u.registrationCountry.id,
4470
+ registration_number: u.registrationNumber,
4471
+ tax_number: u.taxNumber || void 0
4427
4472
  };
4428
4473
  break;
4429
4474
  default:
@@ -4478,7 +4523,7 @@ class qt extends Ce {
4478
4523
  }), e.operatingHours && (i.operating_hours = {
4479
4524
  from: e.operatingHours.from,
4480
4525
  to: e.operatingHours.to
4481
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new ge(p.data), s);
4526
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ge(u.data), s);
4482
4527
  }
4483
4528
  /**
4484
4529
  * Обновляет данные об адресе доставки клиента.
@@ -4507,7 +4552,7 @@ class qt extends Ce {
4507
4552
  }), this.patch(
4508
4553
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4509
4554
  i,
4510
- (p) => new ge(p.data),
4555
+ (u) => new ge(u.data),
4511
4556
  s
4512
4557
  );
4513
4558
  }
@@ -4766,14 +4811,14 @@ class qt extends Ce {
4766
4811
  * в случае ошибок в запросах.
4767
4812
  */
4768
4813
  createContact(r, e, s, i = {}) {
4769
- var c, p;
4814
+ var c, u;
4770
4815
  const o = {
4771
4816
  name: e.name,
4772
4817
  position: e.position,
4773
4818
  comment: e.comment,
4774
4819
  ...s
4775
4820
  };
4776
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new F(g.data), i);
4821
+ 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, (g) => new F(g.data), i);
4777
4822
  }
4778
4823
  /**
4779
4824
  * Устанавливает признак основного контактного лица.
@@ -4802,7 +4847,7 @@ class qt extends Ce {
4802
4847
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4803
4848
  }
4804
4849
  }
4805
- class Ut extends u {
4850
+ class Gt extends p {
4806
4851
  /**
4807
4852
  * Выполняет проверку занят ли указанный номер телефона.
4808
4853
  *
@@ -4816,7 +4861,7 @@ class Ut extends u {
4816
4861
  });
4817
4862
  }
4818
4863
  }
4819
- class Gt extends u {
4864
+ class Mt extends p {
4820
4865
  /**
4821
4866
  * Возвращает настройки указанного конфигуратора для указанной категории.
4822
4867
  *
@@ -4887,18 +4932,18 @@ class Gt extends u {
4887
4932
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4888
4933
  }
4889
4934
  }
4890
- class Mt {
4935
+ class Ft {
4891
4936
  /**
4892
4937
  * Возвращает диапазон дат по умолчанию.
4893
4938
  */
4894
4939
  static defaultDateRanges() {
4895
- const r = vr(/* @__PURE__ */ new Date(), 1);
4940
+ const r = Pr(/* @__PURE__ */ new Date(), 1);
4896
4941
  return {
4897
4942
  // 'Следующий рабочий день' - это значение по-умолчанию
4898
- nextWorkingDay: { label: "Следующий рабочий день", from: Tr(r), to: br(r) },
4899
- today: { label: "Сегодня", from: Be(), to: $r() },
4900
- yesterday: { label: "Вчера", from: Dr(), to: Ar() },
4901
- tomorrow: { label: "Завтра", from: Rr(), to: Pr() }
4943
+ nextWorkingDay: { label: "Следующий рабочий день", from: _r(r), to: Tr(r) },
4944
+ today: { label: "Сегодня", from: We(), to: br() },
4945
+ yesterday: { label: "Вчера", from: $r(), to: Ar() },
4946
+ tomorrow: { label: "Завтра", from: Dr(), to: Rr() }
4902
4947
  };
4903
4948
  }
4904
4949
  }
@@ -4942,8 +4987,8 @@ const E = class E {
4942
4987
  * Список единиц измерения линейной величины.
4943
4988
  */
4944
4989
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
4945
- let Me = E;
4946
- class Ft {
4990
+ let Fe = E;
4991
+ class Ht {
4947
4992
  /**
4948
4993
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
4949
4994
  */
@@ -4959,26 +5004,26 @@ class Ft {
4959
5004
  return r.id === 0 && r.guid === "-undefined-";
4960
5005
  }
4961
5006
  }
4962
- class nt extends u {
5007
+ class ot extends p {
4963
5008
  /**
4964
5009
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
4965
5010
  */
4966
5011
  getManagers() {
4967
- const r = "/internal/managers", e = u.getCachedResponse(r);
5012
+ const r = "/internal/managers", e = p.getCachedResponse(r);
4968
5013
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
4969
5014
  const i = s.data.map((o) => xe.instanceInitializer(we, o));
4970
5015
  return i && this.cacheResponse(r, i), i;
4971
5016
  });
4972
5017
  }
4973
5018
  }
4974
- class ir extends sr {
5019
+ class nr extends ir {
4975
5020
  /**
4976
5021
  * Инициализирует экземпляр класса {@link OrderInfo}.
4977
5022
  *
4978
5023
  * @param data Данные для первоначальной инициализации.
4979
5024
  */
4980
5025
  constructor(e) {
4981
- var s, i, o, c, p, g, R, D;
5026
+ var s, i, o, c, u, g, R, A;
4982
5027
  super(e);
4983
5028
  /**
4984
5029
  * Краткие данные о клиенте.
@@ -5026,13 +5071,13 @@ class ir extends sr {
5026
5071
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5027
5072
  }, this.delivery = {
5028
5073
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5029
- date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
5074
+ date: m((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
5030
5075
  address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5031
- warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new ye(e.delivery.warehouse) : void 0
5032
- }, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(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;
5076
+ warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new ye(e.delivery.warehouse) : void 0
5077
+ }, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new a(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(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;
5033
5078
  }
5034
5079
  }
5035
- class ot extends H {
5080
+ class ct extends H {
5036
5081
  /**
5037
5082
  * Инициализирует экземпляр класса {@link OrderProduct}.
5038
5083
  *
@@ -5115,7 +5160,7 @@ class ot extends H {
5115
5160
  this.product = new Q(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
5116
5161
  }
5117
5162
  }
5118
- class ct extends ir {
5163
+ class lt extends nr {
5119
5164
  /**
5120
5165
  * Инициализирует экземпляр класса {@link Order}.
5121
5166
  *
@@ -5155,10 +5200,10 @@ class ct extends ir {
5155
5200
  * Признак, что разрешена передача заказа в работу без оплаты.
5156
5201
  */
5157
5202
  t(this, "isAllowProcessingWithoutPayment");
5158
- this.products = (e.products ?? []).map((s) => new ot(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5203
+ this.products = (e.products ?? []).map((s) => new ct(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5159
5204
  }
5160
5205
  }
5161
- class Ht extends Ce {
5206
+ class zt extends Ce {
5162
5207
  /**
5163
5208
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5164
5209
  *
@@ -5171,7 +5216,7 @@ class Ht extends Ce {
5171
5216
  getOrders(r, e, s) {
5172
5217
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5173
5218
  const o = { ...i.data };
5174
- return o.data = o.data.map((c) => new ir(c)), o;
5219
+ return o.data = o.data.map((c) => new nr(c)), o;
5175
5220
  });
5176
5221
  }
5177
5222
  /**
@@ -5189,10 +5234,10 @@ class Ht extends Ce {
5189
5234
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5190
5235
  */
5191
5236
  getOrder(r) {
5192
- return this.get(`/internal/orders/${r}`, {}, (e) => new ct(e.data));
5237
+ return this.get(`/internal/orders/${r}`, {}, (e) => new lt(e.data));
5193
5238
  }
5194
5239
  }
5195
- class Ae {
5240
+ class De {
5196
5241
  /**
5197
5242
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5198
5243
  *
@@ -5222,9 +5267,9 @@ class Ae {
5222
5267
  this.client = new ne(r == null ? void 0 : r.client), this.product = new _(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) ?? ke.Product;
5223
5268
  }
5224
5269
  }
5225
- const De = (n) => {
5270
+ const Ae = (n) => {
5226
5271
  var r, e, s, i, o;
5227
- return n ? fr(
5272
+ return n ? yr(
5228
5273
  {
5229
5274
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5230
5275
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5233,13 +5278,13 @@ const De = (n) => {
5233
5278
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5234
5279
  hideNotActive: n.hideNotActive
5235
5280
  },
5236
- (c) => K(c) || (ze(c) || yr(c)) && Le(c)
5281
+ (c) => K(c) || (Be(c) || wr(c)) && Se(c)
5237
5282
  ) : {};
5238
- }, Fe = (n) => {
5283
+ }, He = (n) => {
5239
5284
  const r = {};
5240
5285
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
5241
5286
  };
5242
- class zt extends u {
5287
+ class Bt extends p {
5243
5288
  /**
5244
5289
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5245
5290
  *
@@ -5253,10 +5298,10 @@ class zt extends u {
5253
5298
  return this.get(
5254
5299
  `/internal/price/products/${r}/analyze`,
5255
5300
  {
5256
- ...Fe(e),
5257
- filters: De(s)
5301
+ ...He(e),
5302
+ filters: Ae(s)
5258
5303
  },
5259
- (i) => i.data.map((o) => new Ae(o))
5304
+ (i) => i.data.map((o) => new De(o))
5260
5305
  );
5261
5306
  }
5262
5307
  /**
@@ -5272,10 +5317,10 @@ class zt extends u {
5272
5317
  return this.get(
5273
5318
  `/internal/price/categories/${r}/analyze`,
5274
5319
  {
5275
- ...Fe(e),
5276
- filters: De(s)
5320
+ ...He(e),
5321
+ filters: Ae(s)
5277
5322
  },
5278
- (i) => i.data.map((o) => new Ae(o))
5323
+ (i) => i.data.map((o) => new De(o))
5279
5324
  );
5280
5325
  }
5281
5326
  /**
@@ -5294,13 +5339,13 @@ class zt extends u {
5294
5339
  `/internal/price/categories/${r}/analyze/square`,
5295
5340
  {
5296
5341
  ...e,
5297
- filters: De(s)
5342
+ filters: Ae(s)
5298
5343
  },
5299
- (i) => i.data.map((o) => new Ae(o))
5344
+ (i) => i.data.map((o) => new De(o))
5300
5345
  );
5301
5346
  }
5302
5347
  }
5303
- class lt {
5348
+ class ut {
5304
5349
  /**
5305
5350
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5306
5351
  *
@@ -5318,7 +5363,7 @@ class lt {
5318
5363
  this.name = r.name, this.content = r.content;
5319
5364
  }
5320
5365
  }
5321
- class He {
5366
+ class ze {
5322
5367
  /**
5323
5368
  * Инициализирует экземпляр класса {@link Seo}.
5324
5369
  *
@@ -5354,10 +5399,10 @@ class He {
5354
5399
  */
5355
5400
  t(this, "meta");
5356
5401
  var e;
5357
- this.resourceType = new Xe(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new lt(s))) ?? [];
5402
+ this.resourceType = new Ze(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 ut(s))) ?? [];
5358
5403
  }
5359
5404
  }
5360
- class Bt extends u {
5405
+ class Wt extends p {
5361
5406
  /**
5362
5407
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5363
5408
  *
@@ -5365,7 +5410,7 @@ class Bt extends u {
5365
5410
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5366
5411
  */
5367
5412
  getResourceSeoData(r, e) {
5368
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new He(s.data));
5413
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ze(s.data));
5369
5414
  }
5370
5415
  /**
5371
5416
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5376,7 +5421,7 @@ class Bt extends u {
5376
5421
  * в случае ошибок в запросах.
5377
5422
  */
5378
5423
  saveResourceSeoData(r, e = {}) {
5379
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new He(s.data), e);
5424
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ze(s.data), e);
5380
5425
  }
5381
5426
  /**
5382
5427
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5389,7 +5434,7 @@ class Bt extends u {
5389
5434
  }
5390
5435
  }
5391
5436
  const P = me("__references_private", () => {
5392
- const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), c = C(void 0), p = C(void 0), g = C(void 0), R = C(void 0), D = C(void 0), a = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), l = C(void 0);
5437
+ const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), c = C(void 0), u = C(void 0), g = C(void 0), R = C(void 0), A = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), l = C(void 0);
5393
5438
  return {
5394
5439
  /**
5395
5440
  * Список загружаемых/загруженных на данный момент значений.
@@ -5422,7 +5467,7 @@ const P = me("__references_private", () => {
5422
5467
  /**
5423
5468
  * Справочник статусов оплаты заказа.
5424
5469
  */
5425
- orderPaymentStatusReference: p,
5470
+ orderPaymentStatusReference: u,
5426
5471
  /**
5427
5472
  * Справочник статусов заказов.
5428
5473
  */
@@ -5434,11 +5479,11 @@ const P = me("__references_private", () => {
5434
5479
  /**
5435
5480
  * Справочник групп партнеров.
5436
5481
  */
5437
- partnerGroupReference: D,
5482
+ partnerGroupReference: A,
5438
5483
  /**
5439
5484
  * Справочник типов файлов продукктов/категорий.
5440
5485
  */
5441
- productFileTypeReference: a,
5486
+ productFileTypeReference: L,
5442
5487
  /**
5443
5488
  * Справочник типов ресурсов.
5444
5489
  */
@@ -5464,90 +5509,90 @@ const P = me("__references_private", () => {
5464
5509
  */
5465
5510
  priceCoefficientsReference: l
5466
5511
  };
5467
- }), Wt = me("references", () => {
5512
+ }), jt = me("references", () => {
5468
5513
  const n = v(() => {
5469
5514
  const l = P();
5470
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(A).getChannelPrimaryInterest().then((h) => {
5515
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(D).getChannelPrimaryInterest().then((h) => {
5471
5516
  l.channelPrimaryInterestReference = h;
5472
5517
  }).catch(y)), l.channelPrimaryInterestReference;
5473
5518
  }), r = v(() => {
5474
5519
  const l = P();
5475
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, u.getInstance(A).getContactPositions().then((h) => {
5520
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(D).getContactPositions().then((h) => {
5476
5521
  l.contactPositionsReference = h;
5477
5522
  }).catch(y)), l.contactPositionsReference;
5478
5523
  }), e = v(() => {
5479
5524
  const l = P();
5480
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, u.getInstance(A).getCurrency().then((h) => {
5525
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(D).getCurrency().then((h) => {
5481
5526
  l.currencyReference = h;
5482
5527
  }).catch(y)), l.currencyReference;
5483
5528
  }), s = v(() => {
5484
5529
  const l = P();
5485
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, u.getInstance(A).getOpf().then((h) => {
5530
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(D).getOpf().then((h) => {
5486
5531
  l.opfReference = h;
5487
5532
  }).catch(y)), l.opfReference;
5488
5533
  }), i = v(() => {
5489
5534
  const l = P();
5490
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(A).getOrderPaymentStatuses().then((h) => {
5535
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(D).getOrderPaymentStatuses().then((h) => {
5491
5536
  l.orderPaymentStatusReference = h;
5492
5537
  }).catch(y)), l.orderPaymentStatusReference;
5493
5538
  }), o = v(() => {
5494
5539
  const l = P();
5495
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, u.getInstance(A).getOrderStatuses().then((h) => {
5540
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(D).getOrderStatuses().then((h) => {
5496
5541
  l.orderStatusReference = h;
5497
5542
  }).catch(y)), l.orderStatusReference;
5498
5543
  }), c = v(() => {
5499
5544
  const l = P();
5500
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, u.getInstance(A).getPaymentTypes().then((h) => {
5545
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(D).getPaymentTypes().then((h) => {
5501
5546
  l.paymentTypeReference = h;
5502
5547
  }).catch(y)), l.paymentTypeReference;
5503
- }), p = v(() => {
5548
+ }), u = v(() => {
5504
5549
  const l = P();
5505
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, u.getInstance(A).getPartnerGroup().then((h) => {
5550
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(D).getPartnerGroup().then((h) => {
5506
5551
  l.partnerGroupReference = h;
5507
5552
  }).catch(y)), l.partnerGroupReference;
5508
5553
  }), g = v(() => {
5509
5554
  const l = P();
5510
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, u.getInstance(A).getProductFileType().then((h) => {
5555
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(D).getProductFileType().then((h) => {
5511
5556
  l.productFileTypeReference = h;
5512
5557
  }).catch(y)), l.productFileTypeReference;
5513
5558
  }), R = v(() => {
5514
5559
  const l = P();
5515
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, u.getInstance(A).getResourceTypes().then((h) => {
5560
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(D).getResourceTypes().then((h) => {
5516
5561
  l.resourceTypesReference = h;
5517
5562
  }).catch(y)), l.resourceTypesReference;
5518
- }), D = v(() => {
5563
+ }), A = v(() => {
5519
5564
  const l = P();
5520
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, u.getInstance(A).getSalesDirections().then((h) => {
5565
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(D).getSalesDirections().then((h) => {
5521
5566
  l.salesDirectionsReference = h;
5522
5567
  }).catch(y)), l.salesDirectionsReference;
5523
- }), a = v(() => {
5568
+ }), L = v(() => {
5524
5569
  const l = P();
5525
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(A).getSourcePrimaryInterest().then((h) => {
5570
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(D).getSourcePrimaryInterest().then((h) => {
5526
5571
  l.sourcePrimaryInterestReference = h;
5527
5572
  }).catch(y)), l.sourcePrimaryInterestReference;
5528
5573
  }), I = v(() => {
5529
5574
  const l = P();
5530
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, u.getInstance(A).getDeliveryTypes().then((h) => {
5575
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(D).getDeliveryTypes().then((h) => {
5531
5576
  l.deliveryTypeReference = h;
5532
5577
  }).catch(y)), l.deliveryTypeReference;
5533
5578
  }), x = v(() => {
5534
5579
  const l = P();
5535
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, u.getInstance(nt).getManagers().then((h) => {
5580
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(ot).getManagers().then((h) => {
5536
5581
  l.managersList = h;
5537
5582
  }).catch(y)), l.managersList;
5538
5583
  }), k = v(() => {
5539
5584
  const l = P();
5540
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, u.getInstance(A).getWarehouses().then((h) => {
5585
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(D).getWarehouses().then((h) => {
5541
5586
  l.warehousesReference = h;
5542
5587
  }).catch(y)), l.warehousesReference;
5543
5588
  }), N = v(() => {
5544
5589
  const l = P();
5545
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, u.getInstance(A).getPropertyTypes().then((h) => {
5590
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(D).getPropertyTypes().then((h) => {
5546
5591
  l.propertyTypesReference = h;
5547
5592
  }).catch(y)), l.propertyTypesReference;
5548
5593
  }), d = v(() => {
5549
5594
  const l = P();
5550
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(A).getPriceCoefficients().then((h) => {
5595
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(D).getPriceCoefficients().then((h) => {
5551
5596
  l.priceCoefficientsReference = h;
5552
5597
  }).catch(y)), l.priceCoefficientsReference;
5553
5598
  });
@@ -5583,7 +5628,7 @@ const P = me("__references_private", () => {
5583
5628
  /**
5584
5629
  * Справочник групп партнеров.
5585
5630
  */
5586
- partnerGroupsReference: p,
5631
+ partnerGroupsReference: u,
5587
5632
  /**
5588
5633
  * Справочник типов файлов продуктов/категорий.
5589
5634
  */
@@ -5595,11 +5640,11 @@ const P = me("__references_private", () => {
5595
5640
  /**
5596
5641
  * Справочник направлений продаж.
5597
5642
  */
5598
- salesDirectionsReference: D,
5643
+ salesDirectionsReference: A,
5599
5644
  /**
5600
5645
  * Справочник каналов первичного интереса.
5601
5646
  */
5602
- sourcePrimaryInterestsReference: a,
5647
+ sourcePrimaryInterestsReference: L,
5603
5648
  /**
5604
5649
  * Справочник типов доставки.
5605
5650
  */
@@ -5633,18 +5678,18 @@ const P = me("__references_private", () => {
5633
5678
  */
5634
5679
  currentUser: r
5635
5680
  };
5636
- }), jt = me("user_state", () => ({
5681
+ }), Vt = me("user_state", () => ({
5637
5682
  /**
5638
5683
  * Данные о текущем пользователе.
5639
5684
  */
5640
5685
  currentUser: v(() => {
5641
5686
  const r = pt();
5642
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Yr).getCurrentUser().then((e) => {
5687
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Xr).getCurrentUser().then((e) => {
5643
5688
  r.currentUser = e;
5644
5689
  }).catch(y).finally(y)), r.currentUser;
5645
5690
  })
5646
5691
  }));
5647
- class Vt extends u {
5692
+ class Et extends p {
5648
5693
  /**
5649
5694
  * Возвращает подсказки по адресам.
5650
5695
  *
@@ -5691,7 +5736,7 @@ class Vt extends u {
5691
5736
  });
5692
5737
  }
5693
5738
  }
5694
- class Et {
5739
+ class Kt {
5695
5740
  /**
5696
5741
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5697
5742
  *
@@ -5715,140 +5760,141 @@ class Et {
5715
5760
  }
5716
5761
  }
5717
5762
  export {
5718
- Br as AnyReference,
5719
- Ct as AppBaseConfig,
5763
+ Wr as AnyReference,
5764
+ vt as AppBaseConfig,
5720
5765
  b as AppConfigProvider,
5721
5766
  _e as BankAccount,
5722
5767
  Ce as BasePaginationProvider,
5723
- Ur as CalculationTypeEnum,
5768
+ Gr as CalculationTypeEnum,
5724
5769
  oe as Cart,
5725
- kr as CartItem,
5726
- xr as CartItemBase,
5727
- vt as CartProvider,
5728
- Dt as CatalogProvider,
5729
- We as CatalogableItem,
5770
+ Nr as CartItem,
5771
+ kr as CartItemBase,
5772
+ Pt as CartProvider,
5773
+ $t as CatalogProvider,
5774
+ je as CatalogableItem,
5730
5775
  q as Category,
5731
5776
  qe as CategoryPricingRule,
5732
- Ye as ChannelPrimaryInterest,
5777
+ Xe as ChannelPrimaryInterest,
5733
5778
  At as City,
5734
- pe as CityWithRegionAndCountry,
5735
- Ge as Client,
5736
- st as ClientAdditionalData,
5779
+ ue as CityWithRegionAndCountry,
5780
+ Me as Client,
5781
+ it as ClientAdditionalData,
5737
5782
  le as ClientCategory,
5738
- qt as ClientDataProvider,
5739
- $t as ClientPriceProvider,
5740
- bt as ClientPriceTemplateProvider,
5783
+ Ut as ClientDataProvider,
5784
+ bt as ClientPriceProvider,
5785
+ Tt as ClientPriceTemplateProvider,
5741
5786
  Q as ClientProduct,
5742
5787
  St as ClientProductCategoryDataProvider,
5743
5788
  Lt as ClientProductDataProvider,
5744
5789
  ne as ClientShortInfo,
5745
- Zr as ClientsAdditionalDataRequestTypeEnum,
5746
- Nt as ClientsListFilters,
5747
- Gt as ConfiguratorProvider,
5748
- Se as Contact,
5749
- Hr as ContactLinks,
5790
+ et as ClientsAdditionalDataRequestTypeEnum,
5791
+ Ot as ClientsListFilters,
5792
+ Mt as ConfiguratorProvider,
5793
+ ae as Contact,
5794
+ zr as ContactLinks,
5750
5795
  F as ContactPerson,
5751
- tt as ContactPersonRelated,
5752
- Wr as ContactPosition,
5796
+ st as ContactPersonRelated,
5797
+ jr as ContactPosition,
5753
5798
  Re as ContactRelation,
5754
- er as ContragentBase,
5799
+ rr as ContragentBase,
5755
5800
  he as ContragentFactory,
5756
- rr as ContragentIc,
5757
- et as ContragentPerson,
5758
- rt as ContragentUlNr,
5759
- tr as ContragentUlR,
5801
+ tr as ContragentIc,
5802
+ rt as ContragentPerson,
5803
+ tt as ContragentUlNr,
5804
+ sr as ContragentUlR,
5760
5805
  ke as CostSourceEnum,
5761
5806
  Y as Country,
5762
- ue as Currency,
5763
- Vt as DataSuggestionProvider,
5764
- Ot as DataTablePagination,
5765
- it as DataTablePaginationRequestParams,
5766
- dt as DataTableSortRequestParams,
5767
- Mt as DateTimeProvider,
5768
- Mr as DeletableNamedIdentity,
5807
+ pe as Currency,
5808
+ Et as DataSuggestionProvider,
5809
+ dt as DataTablePagination,
5810
+ nt as DataTablePaginationRequestParams,
5811
+ qt as DataTableSortRequestParams,
5812
+ Ft as DateTimeProvider,
5813
+ Fr as DeletableNamedIdentity,
5769
5814
  ge as DeliveryAddress,
5770
5815
  J as DeliveryType,
5771
- Nr as DeviceTypeResolutionConfig,
5772
- Fr as DiscountShortInfo,
5773
- Et as FieldValidationResultData,
5816
+ Or as DeviceTypeResolutionConfig,
5817
+ Hr as DiscountShortInfo,
5818
+ Kt as FieldValidationResultData,
5774
5819
  se as FilterGroup,
5775
5820
  Ue as FilterItem,
5776
5821
  Ne as FilterOpEnum,
5777
- Ve as GeoCoordinates,
5778
- ar as HiddenCatalogableItem,
5822
+ Ee as GeoCoordinates,
5823
+ Ir as HiddenCatalogableItem,
5779
5824
  Te as HttpBaseCachedRequester,
5780
5825
  be as HttpBaseRequester,
5781
- Or as HttpParamsConfig,
5782
- u as HttpRequester,
5826
+ dr as HttpParamsConfig,
5827
+ p as HttpRequester,
5783
5828
  H as Identity,
5784
- Ir as Image,
5829
+ xr as Image,
5785
5830
  we as Manager,
5786
5831
  re as ManagerCommon,
5787
- Ft as ManagerDataFactory,
5788
- nt as ManagerDataProvider,
5789
- lt as MetaTagItem,
5832
+ Ht as ManagerDataFactory,
5833
+ ot as ManagerDataProvider,
5834
+ ut as MetaTagItem,
5790
5835
  $ as NamedIdentity,
5791
5836
  G as Opf,
5792
5837
  T as OpfEnum,
5793
- ct as Order,
5794
- ir as OrderInfo,
5795
- jr as OrderPaymentStatus,
5796
- ot as OrderProduct,
5797
- sr as OrderShortInfo,
5798
- Vr as OrderStatus,
5799
- Ht as OrdersDataProvider,
5838
+ lt as Order,
5839
+ nr as OrderInfo,
5840
+ Vr as OrderPaymentStatus,
5841
+ ct as OrderProduct,
5842
+ ir as OrderShortInfo,
5843
+ Er as OrderStatus,
5844
+ zt as OrdersDataProvider,
5800
5845
  M as PartnerGroup,
5801
- Er as PaymentType,
5802
- Pt as PreferencesStorageProvider,
5803
- Ae as PriceAnalyze,
5804
- zt as PriceAnalyzeProvider,
5846
+ Kr as PaymentType,
5847
+ Rt as PreferencesStorageProvider,
5848
+ De as PriceAnalyze,
5849
+ Bt as PriceAnalyzeProvider,
5805
5850
  fe as PriceCoefficient,
5806
- je as PriceCoefficientEnum,
5851
+ Ve as PriceCoefficientEnum,
5807
5852
  W as PriceTemplate,
5808
5853
  ve as PriceTemplateCategory,
5809
5854
  X as PriceTemplateClient,
5810
- Ke as PriceTemplateICatalogableItem,
5855
+ Je as PriceTemplateICatalogableItem,
5811
5856
  Pe as PriceTemplateProduct,
5812
- at as PriceTemplateProvider,
5857
+ It as PriceTemplateProvider,
5813
5858
  ee as PricingRole,
5814
- It as PricingRoleProvider,
5859
+ xt as PricingRoleProvider,
5815
5860
  $e as PrimaryCatalogableItem,
5816
5861
  _ as Product,
5817
- Tt as ProductCategoryDataProvider,
5818
- _t as ProductDataProvider,
5819
- Kr as ProductFileType,
5862
+ _t as ProductCategoryDataProvider,
5863
+ at as ProductDataProvider,
5864
+ Jr as ProductFileType,
5820
5865
  Ie as ProductPriceCoefficient,
5821
- Xr as ProductPriceHistory,
5822
- xt as PropertiesProvider,
5866
+ Zr as ProductPriceHistory,
5867
+ kt as PropertiesProvider,
5823
5868
  Z as Property,
5824
- Qe as PropertyType,
5825
- Gr as PropertyTypeEnum,
5869
+ Ye as PropertyType,
5870
+ Mr as PropertyTypeEnum,
5826
5871
  z as PropertyValue,
5827
- kt as RecommendationsDataProvider,
5872
+ Nt as RecommendationsDataProvider,
5828
5873
  de as RecommendationsList,
5829
5874
  w as Reference,
5830
- A as ReferenceDataProvider,
5875
+ D as ReferenceDataProvider,
5831
5876
  te as Region,
5832
- Xe as ResourceType,
5833
- S as SalesDirection,
5834
- dr as SentryConfig,
5835
- He as Seo,
5836
- Bt as SeoDataProvider,
5837
- Ze as SourcePrimaryInterest,
5877
+ Ze as ResourceType,
5878
+ a as SalesDirection,
5879
+ qr as SentryConfig,
5880
+ ze as Seo,
5881
+ Wt as SeoDataProvider,
5882
+ er as SourcePrimaryInterest,
5838
5883
  Lr as StockCount,
5839
- Rt as TemplatesListFilters,
5884
+ Dt as TemplatesListFilters,
5840
5885
  xe as TypedInstanceFactory,
5841
- Me as UnitsHelper,
5842
- Ut as UnknownClientDataProvider,
5843
- Ee as UpdatableNamedIdentity,
5844
- Qr as User,
5845
- Je as UserCommonInfo,
5846
- Yr as UserDataProvider,
5886
+ Fe as UnitsHelper,
5887
+ Gt as UnknownClientDataProvider,
5888
+ Ke as UpdatableNamedIdentity,
5889
+ Yr as User,
5890
+ Qe as UserCommonInfo,
5891
+ Xr as UserDataProvider,
5847
5892
  U as UserShortInfo,
5848
- Jr as UserTypeEnum,
5849
- qr as VersionConfig,
5893
+ Qr as UserTypeEnum,
5894
+ Ur as VersionConfig,
5850
5895
  ye as Warehouse,
5851
- Wt as useReferencesStore,
5852
- jt as useUserStateStore
5896
+ Ge as findCatalogItemByIdRecursive,
5897
+ jt as useReferencesStore,
5898
+ Vt as useUserStateStore
5853
5899
  };
5854
5900
  //# sourceMappingURL=sc-common-lib.js.map