@snabcentr/common-lib 1.61.1 → 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 ae, isFunction as Le, 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 Dr, startOfYesterday as Ar, 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,10 +218,10 @@ 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
- class ar {
224
+ class Lr {
225
225
  /**
226
226
  * Инициализирует экземпляр класса {@link StockCount}.
227
227
  *
@@ -276,7 +276,7 @@ const j = class j {
276
276
  */
277
277
  t(j, "config");
278
278
  let b = j;
279
- class Lr extends We {
279
+ class Ir extends je {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -291,7 +291,7 @@ class Lr 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 Lr {
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
  * Артикул производителя/поставщика.
@@ -399,9 +399,9 @@ class _ extends Lr {
399
399
  * Список коэффициентов цен на продукт.
400
400
  */
401
401
  t(this, "priceCoefficients");
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 ar(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
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 Lr {
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 a = class a {
734
+ const S = class S {
723
735
  /**
724
736
  * Инициализирует экземпляр класса {@link HttpRequester}.
725
737
  *
@@ -740,7 +752,7 @@ const a = class a {
740
752
  */
741
753
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
742
754
  const s = b.getConfig().version;
743
- this.defaultInstanceNotificationErrorResponseHandler = a.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 a = class a {
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) => a.convertHttpErrorResponse(i)
770
+ (i) => S.convertHttpErrorResponse(i)
759
771
  );
760
772
  }
761
773
  /**
@@ -764,7 +776,7 @@ const a = class a {
764
776
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
765
777
  */
766
778
  static setBaseDefaultNotificationErrorResponseHandler(r) {
767
- a.baseDefaultNotificationErrorResponseHandler = r;
779
+ S.baseDefaultNotificationErrorResponseHandler = r;
768
780
  }
769
781
  /**
770
782
  * Возвращает экземпляр объекта текущего класса.
@@ -772,7 +784,7 @@ const a = class a {
772
784
  * @param type Тип данных, которыми оперирует метод.
773
785
  */
774
786
  static getInstance(r) {
775
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = xe.simpleInstanceInitializer(r)), a.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 a = class a {
867
879
  * Экземпляр объекта текущего класса.
868
880
  */
869
881
  // eslint-disable-next-line no-use-before-define
870
- t(a, "instances", {}), /**
882
+ t(S, "instances", {}), /**
871
883
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
872
884
  *
873
885
  * Параметры:
874
886
  * - error Данные об ошибке.
875
887
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
876
888
  */
877
- t(a, "baseDefaultNotificationErrorResponseHandler", y);
878
- let be = a;
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,8 +938,8 @@ 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 + (ae(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(c) : void 0;
930
- return p ? Promise.resolve(p) : this.get(s, o).then((g) => {
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) => {
931
943
  const R = g.map((A) => xe.instanceInitializer(e, A));
932
944
  return i && R && this.cacheResponse(s, R), R;
933
945
  });
@@ -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 || Le(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
- class Dt extends w {
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 D 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 D 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 D 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 D 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 D 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 D 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 At extends u {
2052
+ class $t extends p {
2041
2053
  /**
2042
2054
  * Возвращает данные о результатах поиска категорий и товаров.
2043
2055
  *
@@ -2068,7 +2080,7 @@ class At 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 at 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 {
@@ -2664,7 +2676,7 @@ class se {
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())), ae(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 Lt extends Ce {
2699
+ class It extends Ce {
2688
2700
  /**
2689
2701
  * Возвращает список шаблонов прайс-листа.
2690
2702
  *
@@ -2888,7 +2900,7 @@ class Lt extends Ce {
2888
2900
  );
2889
2901
  }
2890
2902
  }
2891
- class It extends u {
2903
+ class xt extends p {
2892
2904
  /**
2893
2905
  * Возвращает список ролей ценообразования.
2894
2906
  *
@@ -2968,7 +2980,7 @@ class It extends u {
2968
2980
  );
2969
2981
  }
2970
2982
  }
2971
- class xt extends Ce {
2983
+ class kt extends Ce {
2972
2984
  /**
2973
2985
  * Возвращает пагинированный список свойств.
2974
2986
  *
@@ -3340,7 +3352,7 @@ class xt extends Ce {
3340
3352
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3341
3353
  }
3342
3354
  }
3343
- class kt extends u {
3355
+ class Nt extends p {
3344
3356
  /**
3345
3357
  * Возвращает данные о рекомендациях указанной категории продуктов.
3346
3358
  *
@@ -3382,7 +3394,28 @@ class kt extends u {
3382
3394
  });
3383
3395
  }
3384
3396
  }
3385
- 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 || {});
3386
3419
  class _e extends H {
3387
3420
  /**
3388
3421
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3410,11 +3443,11 @@ class _e extends H {
3410
3443
  /**
3411
3444
  * Данные о валюте.
3412
3445
  */
3413
- t(this, "currency", new ue());
3414
- 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));
3415
3448
  }
3416
3449
  }
3417
- class Se extends $ {
3450
+ class ae extends $ {
3418
3451
  /**
3419
3452
  * Инициализирует экземпляр класса {@link Contact}.
3420
3453
  *
@@ -3433,7 +3466,7 @@ class Se extends $ {
3433
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;
3434
3467
  }
3435
3468
  }
3436
- class F extends Se {
3469
+ class F extends ae {
3437
3470
  /**
3438
3471
  * Инициализирует экземпляр класса {@link ContactPerson}.
3439
3472
  *
@@ -3468,7 +3501,7 @@ class F extends Se {
3468
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;
3469
3502
  }
3470
3503
  }
3471
- class er extends $ {
3504
+ class rr extends $ {
3472
3505
  /**
3473
3506
  * Инициализирует экземпляр класса {@link ContragentBase}.
3474
3507
  *
@@ -3488,7 +3521,7 @@ class er extends $ {
3488
3521
  /**
3489
3522
  * Направление продаж.
3490
3523
  */
3491
- t(this, "salesDirection", new S());
3524
+ t(this, "salesDirection", new a());
3492
3525
  /**
3493
3526
  * Группа партнеров (направление деятельности).
3494
3527
  */
@@ -3526,7 +3559,7 @@ class er extends $ {
3526
3559
  */
3527
3560
  t(this, "updater");
3528
3561
  if (e) {
3529
- 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) {
3530
3563
  const s = [];
3531
3564
  e.contacts.forEach((i) => {
3532
3565
  s.push(new F(i));
@@ -3541,7 +3574,7 @@ class er extends $ {
3541
3574
  }
3542
3575
  }
3543
3576
  }
3544
- class et extends er {
3577
+ class rt extends rr {
3545
3578
  /**
3546
3579
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3547
3580
  *
@@ -3551,7 +3584,7 @@ class et extends er {
3551
3584
  super(r);
3552
3585
  }
3553
3586
  }
3554
- class rr extends er {
3587
+ class tr extends rr {
3555
3588
  /**
3556
3589
  * Инициализирует экземпляр класса {@link ContragentIc}.
3557
3590
  *
@@ -3594,7 +3627,7 @@ class rr extends er {
3594
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 ?? "");
3595
3628
  }
3596
3629
  }
3597
- class tr extends rr {
3630
+ class sr extends tr {
3598
3631
  /**
3599
3632
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3600
3633
  *
@@ -3609,7 +3642,7 @@ class tr extends rr {
3609
3642
  e && (this.kpp = e.kpp ?? "");
3610
3643
  }
3611
3644
  }
3612
- class rt extends tr {
3645
+ class tt extends sr {
3613
3646
  /**
3614
3647
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3615
3648
  *
@@ -3641,13 +3674,13 @@ class he {
3641
3674
  static createInstance(r) {
3642
3675
  switch (r.opf.slug) {
3643
3676
  case T.Ic:
3644
- return new rr(r);
3645
- case T.UlR:
3646
3677
  return new tr(r);
3678
+ case T.UlR:
3679
+ return new sr(r);
3647
3680
  case T.UlNr:
3648
- return new rt(r);
3681
+ return new tt(r);
3649
3682
  default:
3650
- return new et(r);
3683
+ return new rt(r);
3651
3684
  }
3652
3685
  }
3653
3686
  }
@@ -3666,7 +3699,7 @@ class Re extends H {
3666
3699
  this.isPrimary = e.isPrimary;
3667
3700
  }
3668
3701
  }
3669
- class tt extends F {
3702
+ class st extends F {
3670
3703
  /**
3671
3704
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3672
3705
  *
@@ -3694,7 +3727,7 @@ class tt extends F {
3694
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))));
3695
3728
  }
3696
3729
  }
3697
- class ge extends Mr {
3730
+ class ge extends Fr {
3698
3731
  /**
3699
3732
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3700
3733
  *
@@ -3731,10 +3764,10 @@ class ge extends Mr {
3731
3764
  * Признак того, что указанный адрес является адресом транспортной компании.
3732
3765
  */
3733
3766
  t(this, "isTransportCompanyAddress");
3734
- 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;
3735
3768
  }
3736
3769
  }
3737
- class Ge extends ne {
3770
+ class Me extends ne {
3738
3771
  /**
3739
3772
  * Инициализирует экземпляр класса {@link Client}.
3740
3773
  *
@@ -3788,10 +3821,10 @@ class Ge extends ne {
3788
3821
  * Дополнительные данные о клиенте.
3789
3822
  */
3790
3823
  t(this, "extraData");
3791
- 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) ?? {};
3792
3825
  }
3793
3826
  }
3794
- class Nt {
3827
+ class Ot {
3795
3828
  /**
3796
3829
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3797
3830
  *
@@ -3883,7 +3916,7 @@ class Nt {
3883
3916
  */
3884
3917
  t(this, "lastOrder");
3885
3918
  var e, s, i;
3886
- 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 = {
3887
3920
  createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3888
3921
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3889
3922
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -3906,7 +3939,7 @@ class Nt {
3906
3939
  this[r] = void 0;
3907
3940
  break;
3908
3941
  case "city":
3909
- this.city = new pe();
3942
+ this.city = new ue();
3910
3943
  break;
3911
3944
  case "region":
3912
3945
  this.region = new te();
@@ -3930,7 +3963,7 @@ class Nt {
3930
3963
  this.managers = [];
3931
3964
  break;
3932
3965
  case "salesDirection":
3933
- this.salesDirection = new S();
3966
+ this.salesDirection = new a();
3934
3967
  break;
3935
3968
  case "contragentType":
3936
3969
  this.contragentType = new G();
@@ -3942,7 +3975,7 @@ class Nt {
3942
3975
  this.partnerGroup = new M();
3943
3976
  break;
3944
3977
  case "contact":
3945
- this.contact = new Se();
3978
+ this.contact = new ae();
3946
3979
  break;
3947
3980
  }
3948
3981
  return this;
@@ -3955,13 +3988,13 @@ class Nt {
3955
3988
  var e, s, i, o;
3956
3989
  const r = {};
3957
3990
  return Object.keys(this).forEach((c) => {
3958
- const p = this[c];
3991
+ const u = this[c];
3959
3992
  // eslint-disable-next-line prettier/prettier
3960
- K(p) || m(p) && p.trim().length === 0 || Le(p.isNewRec) && p.isNewRec() || (r[c] = p);
3993
+ K(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
3961
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;
3962
3995
  }
3963
3996
  }
3964
- class sr extends H {
3997
+ class ir extends H {
3965
3998
  /**
3966
3999
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
3967
4000
  *
@@ -3984,7 +4017,7 @@ class sr extends H {
3984
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;
3985
4018
  }
3986
4019
  }
3987
- class st extends $ {
4020
+ class it extends $ {
3988
4021
  /**
3989
4022
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
3990
4023
  *
@@ -4017,10 +4050,10 @@ class st extends $ {
4017
4050
  * Список менеджеров.
4018
4051
  */
4019
4052
  t(this, "managers");
4020
- (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)));
4021
4054
  }
4022
4055
  }
4023
- class it {
4056
+ class nt {
4024
4057
  /**
4025
4058
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4026
4059
  *
@@ -4038,7 +4071,7 @@ class it {
4038
4071
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4039
4072
  }
4040
4073
  }
4041
- class Ot extends it {
4074
+ class dt extends nt {
4042
4075
  /**
4043
4076
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4044
4077
  *
@@ -4069,7 +4102,7 @@ class Ot extends it {
4069
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;
4070
4103
  }
4071
4104
  }
4072
- class dt {
4105
+ class qt {
4073
4106
  /**
4074
4107
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4075
4108
  *
@@ -4087,7 +4120,7 @@ class dt {
4087
4120
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4088
4121
  }
4089
4122
  }
4090
- class qt extends Ce {
4123
+ class Ut extends Ce {
4091
4124
  /**
4092
4125
  * Возвращает данные об указанном клиенте.
4093
4126
  *
@@ -4095,7 +4128,7 @@ class qt extends Ce {
4095
4128
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4096
4129
  */
4097
4130
  getClient(r) {
4098
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ge(e.data));
4131
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Me(e.data));
4099
4132
  }
4100
4133
  /**
4101
4134
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4110,7 +4143,7 @@ class qt extends Ce {
4110
4143
  getClientsList(r, e, s, i) {
4111
4144
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4112
4145
  const c = { ...o.data };
4113
- return c.data = c.data.map((p) => new ne(p)), c;
4146
+ return c.data = c.data.map((u) => new ne(u)), c;
4114
4147
  });
4115
4148
  }
4116
4149
  /**
@@ -4137,7 +4170,7 @@ class qt extends Ce {
4137
4170
  const s = r.map((i) => i.id);
4138
4171
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4139
4172
  let o = [];
4140
- 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;
4141
4174
  });
4142
4175
  }
4143
4176
  /**
@@ -4149,7 +4182,7 @@ class qt extends Ce {
4149
4182
  getAllClientContacts(r) {
4150
4183
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4151
4184
  let s = [];
4152
- 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;
4153
4186
  });
4154
4187
  }
4155
4188
  /**
@@ -4179,7 +4212,7 @@ class qt extends Ce {
4179
4212
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4180
4213
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4181
4214
  },
4182
- (i) => new Ge(i.data),
4215
+ (i) => new Me(i.data),
4183
4216
  e
4184
4217
  );
4185
4218
  }
@@ -4291,7 +4324,7 @@ class qt extends Ce {
4291
4324
  createContragentClientData(r, e, s = {}) {
4292
4325
  var g, R, A, L, I, x, k, N;
4293
4326
  let i;
4294
- const o = e, c = e, p = e;
4327
+ const o = e, c = e, u = e;
4295
4328
  switch (e.opf.slug) {
4296
4329
  case T.Ic:
4297
4330
  i = {
@@ -4332,21 +4365,21 @@ class qt extends Ce {
4332
4365
  break;
4333
4366
  case T.UlNr:
4334
4367
  i = {
4335
- opf: p.opf.slug,
4336
- name: p.name,
4337
- alternative_name: p.alternativeName,
4338
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4339
- manager_id: (x = p.manager) == null ? void 0 : x.id,
4340
- comment: p.comment,
4341
- director_name: p.directorName,
4342
- director_position: p.directorPosition,
4343
- director_acts_on: p.directorActsOn,
4344
- legal_address: p.legalAddress,
4345
- postal_address: p.postalAddress,
4346
- actual_address: p.actualAddress,
4347
- registration_country_id: p.registrationCountry.id,
4348
- registration_number: p.registrationNumber,
4349
- 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
4350
4383
  };
4351
4384
  break;
4352
4385
  default:
@@ -4380,7 +4413,7 @@ class qt extends Ce {
4380
4413
  updateContragentClientData(r, e, s = {}) {
4381
4414
  var g, R, A, L, I, x, k, N;
4382
4415
  let i;
4383
- const o = e, c = e, p = e;
4416
+ const o = e, c = e, u = e;
4384
4417
  switch (e.opf.slug) {
4385
4418
  case T.Ic:
4386
4419
  i = {
@@ -4421,21 +4454,21 @@ class qt extends Ce {
4421
4454
  break;
4422
4455
  case T.UlNr:
4423
4456
  i = {
4424
- opf: p.opf.slug,
4425
- name: p.name,
4426
- alternative_name: p.alternativeName,
4427
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4428
- manager_id: (x = p.manager) == null ? void 0 : x.id,
4429
- comment: p.comment,
4430
- director_name: p.directorName,
4431
- director_position: p.directorPosition,
4432
- director_acts_on: p.directorActsOn,
4433
- legal_address: p.legalAddress,
4434
- postal_address: p.postalAddress,
4435
- actual_address: p.actualAddress,
4436
- registration_country_id: p.registrationCountry.id,
4437
- registration_number: p.registrationNumber,
4438
- 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
4439
4472
  };
4440
4473
  break;
4441
4474
  default:
@@ -4490,7 +4523,7 @@ class qt extends Ce {
4490
4523
  }), e.operatingHours && (i.operating_hours = {
4491
4524
  from: e.operatingHours.from,
4492
4525
  to: e.operatingHours.to
4493
- }), 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);
4494
4527
  }
4495
4528
  /**
4496
4529
  * Обновляет данные об адресе доставки клиента.
@@ -4519,7 +4552,7 @@ class qt extends Ce {
4519
4552
  }), this.patch(
4520
4553
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4521
4554
  i,
4522
- (p) => new ge(p.data),
4555
+ (u) => new ge(u.data),
4523
4556
  s
4524
4557
  );
4525
4558
  }
@@ -4778,14 +4811,14 @@ class qt extends Ce {
4778
4811
  * в случае ошибок в запросах.
4779
4812
  */
4780
4813
  createContact(r, e, s, i = {}) {
4781
- var c, p;
4814
+ var c, u;
4782
4815
  const o = {
4783
4816
  name: e.name,
4784
4817
  position: e.position,
4785
4818
  comment: e.comment,
4786
4819
  ...s
4787
4820
  };
4788
- 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);
4789
4822
  }
4790
4823
  /**
4791
4824
  * Устанавливает признак основного контактного лица.
@@ -4814,7 +4847,7 @@ class qt extends Ce {
4814
4847
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4815
4848
  }
4816
4849
  }
4817
- class Ut extends u {
4850
+ class Gt extends p {
4818
4851
  /**
4819
4852
  * Выполняет проверку занят ли указанный номер телефона.
4820
4853
  *
@@ -4828,7 +4861,7 @@ class Ut extends u {
4828
4861
  });
4829
4862
  }
4830
4863
  }
4831
- class Gt extends u {
4864
+ class Mt extends p {
4832
4865
  /**
4833
4866
  * Возвращает настройки указанного конфигуратора для указанной категории.
4834
4867
  *
@@ -4899,18 +4932,18 @@ class Gt extends u {
4899
4932
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4900
4933
  }
4901
4934
  }
4902
- class Mt {
4935
+ class Ft {
4903
4936
  /**
4904
4937
  * Возвращает диапазон дат по умолчанию.
4905
4938
  */
4906
4939
  static defaultDateRanges() {
4907
- const r = vr(/* @__PURE__ */ new Date(), 1);
4940
+ const r = Pr(/* @__PURE__ */ new Date(), 1);
4908
4941
  return {
4909
4942
  // 'Следующий рабочий день' - это значение по-умолчанию
4910
- nextWorkingDay: { label: "Следующий рабочий день", from: Tr(r), to: br(r) },
4911
- today: { label: "Сегодня", from: Be(), to: $r() },
4912
- yesterday: { label: "Вчера", from: Ar(), to: Dr() },
4913
- 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() }
4914
4947
  };
4915
4948
  }
4916
4949
  }
@@ -4954,8 +4987,8 @@ const E = class E {
4954
4987
  * Список единиц измерения линейной величины.
4955
4988
  */
4956
4989
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
4957
- let Me = E;
4958
- class Ft {
4990
+ let Fe = E;
4991
+ class Ht {
4959
4992
  /**
4960
4993
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
4961
4994
  */
@@ -4971,26 +5004,26 @@ class Ft {
4971
5004
  return r.id === 0 && r.guid === "-undefined-";
4972
5005
  }
4973
5006
  }
4974
- class nt extends u {
5007
+ class ot extends p {
4975
5008
  /**
4976
5009
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
4977
5010
  */
4978
5011
  getManagers() {
4979
- const r = "/internal/managers", e = u.getCachedResponse(r);
5012
+ const r = "/internal/managers", e = p.getCachedResponse(r);
4980
5013
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
4981
5014
  const i = s.data.map((o) => xe.instanceInitializer(we, o));
4982
5015
  return i && this.cacheResponse(r, i), i;
4983
5016
  });
4984
5017
  }
4985
5018
  }
4986
- class ir extends sr {
5019
+ class nr extends ir {
4987
5020
  /**
4988
5021
  * Инициализирует экземпляр класса {@link OrderInfo}.
4989
5022
  *
4990
5023
  * @param data Данные для первоначальной инициализации.
4991
5024
  */
4992
5025
  constructor(e) {
4993
- var s, i, o, c, p, g, R, A;
5026
+ var s, i, o, c, u, g, R, A;
4994
5027
  super(e);
4995
5028
  /**
4996
5029
  * Краткие данные о клиенте.
@@ -5038,13 +5071,13 @@ class ir extends sr {
5038
5071
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5039
5072
  }, this.delivery = {
5040
5073
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5041
- 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(),
5042
5075
  address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5043
5076
  warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new ye(e.delivery.warehouse) : void 0
5044
- }, 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;
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;
5045
5078
  }
5046
5079
  }
5047
- class ot extends H {
5080
+ class ct extends H {
5048
5081
  /**
5049
5082
  * Инициализирует экземпляр класса {@link OrderProduct}.
5050
5083
  *
@@ -5127,7 +5160,7 @@ class ot extends H {
5127
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;
5128
5161
  }
5129
5162
  }
5130
- class ct extends ir {
5163
+ class lt extends nr {
5131
5164
  /**
5132
5165
  * Инициализирует экземпляр класса {@link Order}.
5133
5166
  *
@@ -5167,10 +5200,10 @@ class ct extends ir {
5167
5200
  * Признак, что разрешена передача заказа в работу без оплаты.
5168
5201
  */
5169
5202
  t(this, "isAllowProcessingWithoutPayment");
5170
- 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;
5171
5204
  }
5172
5205
  }
5173
- class Ht extends Ce {
5206
+ class zt extends Ce {
5174
5207
  /**
5175
5208
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5176
5209
  *
@@ -5183,7 +5216,7 @@ class Ht extends Ce {
5183
5216
  getOrders(r, e, s) {
5184
5217
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5185
5218
  const o = { ...i.data };
5186
- return o.data = o.data.map((c) => new ir(c)), o;
5219
+ return o.data = o.data.map((c) => new nr(c)), o;
5187
5220
  });
5188
5221
  }
5189
5222
  /**
@@ -5201,7 +5234,7 @@ class Ht extends Ce {
5201
5234
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5202
5235
  */
5203
5236
  getOrder(r) {
5204
- return this.get(`/internal/orders/${r}`, {}, (e) => new ct(e.data));
5237
+ return this.get(`/internal/orders/${r}`, {}, (e) => new lt(e.data));
5205
5238
  }
5206
5239
  }
5207
5240
  class De {
@@ -5236,7 +5269,7 @@ class De {
5236
5269
  }
5237
5270
  const Ae = (n) => {
5238
5271
  var r, e, s, i, o;
5239
- return n ? fr(
5272
+ return n ? yr(
5240
5273
  {
5241
5274
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5242
5275
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5245,13 +5278,13 @@ const Ae = (n) => {
5245
5278
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5246
5279
  hideNotActive: n.hideNotActive
5247
5280
  },
5248
- (c) => K(c) || (ze(c) || yr(c)) && ae(c)
5281
+ (c) => K(c) || (Be(c) || wr(c)) && Se(c)
5249
5282
  ) : {};
5250
- }, Fe = (n) => {
5283
+ }, He = (n) => {
5251
5284
  const r = {};
5252
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;
5253
5286
  };
5254
- class zt extends u {
5287
+ class Bt extends p {
5255
5288
  /**
5256
5289
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5257
5290
  *
@@ -5265,7 +5298,7 @@ class zt extends u {
5265
5298
  return this.get(
5266
5299
  `/internal/price/products/${r}/analyze`,
5267
5300
  {
5268
- ...Fe(e),
5301
+ ...He(e),
5269
5302
  filters: Ae(s)
5270
5303
  },
5271
5304
  (i) => i.data.map((o) => new De(o))
@@ -5284,7 +5317,7 @@ class zt extends u {
5284
5317
  return this.get(
5285
5318
  `/internal/price/categories/${r}/analyze`,
5286
5319
  {
5287
- ...Fe(e),
5320
+ ...He(e),
5288
5321
  filters: Ae(s)
5289
5322
  },
5290
5323
  (i) => i.data.map((o) => new De(o))
@@ -5312,7 +5345,7 @@ class zt extends u {
5312
5345
  );
5313
5346
  }
5314
5347
  }
5315
- class lt {
5348
+ class ut {
5316
5349
  /**
5317
5350
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5318
5351
  *
@@ -5330,7 +5363,7 @@ class lt {
5330
5363
  this.name = r.name, this.content = r.content;
5331
5364
  }
5332
5365
  }
5333
- class He {
5366
+ class ze {
5334
5367
  /**
5335
5368
  * Инициализирует экземпляр класса {@link Seo}.
5336
5369
  *
@@ -5366,10 +5399,10 @@ class He {
5366
5399
  */
5367
5400
  t(this, "meta");
5368
5401
  var e;
5369
- 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))) ?? [];
5370
5403
  }
5371
5404
  }
5372
- class Bt extends u {
5405
+ class Wt extends p {
5373
5406
  /**
5374
5407
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5375
5408
  *
@@ -5377,7 +5410,7 @@ class Bt extends u {
5377
5410
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5378
5411
  */
5379
5412
  getResourceSeoData(r, e) {
5380
- 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));
5381
5414
  }
5382
5415
  /**
5383
5416
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5388,7 +5421,7 @@ class Bt extends u {
5388
5421
  * в случае ошибок в запросах.
5389
5422
  */
5390
5423
  saveResourceSeoData(r, e = {}) {
5391
- 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);
5392
5425
  }
5393
5426
  /**
5394
5427
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5401,7 +5434,7 @@ class Bt extends u {
5401
5434
  }
5402
5435
  }
5403
5436
  const P = me("__references_private", () => {
5404
- 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), 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);
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);
5405
5438
  return {
5406
5439
  /**
5407
5440
  * Список загружаемых/загруженных на данный момент значений.
@@ -5434,7 +5467,7 @@ const P = me("__references_private", () => {
5434
5467
  /**
5435
5468
  * Справочник статусов оплаты заказа.
5436
5469
  */
5437
- orderPaymentStatusReference: p,
5470
+ orderPaymentStatusReference: u,
5438
5471
  /**
5439
5472
  * Справочник статусов заказов.
5440
5473
  */
@@ -5476,90 +5509,90 @@ const P = me("__references_private", () => {
5476
5509
  */
5477
5510
  priceCoefficientsReference: l
5478
5511
  };
5479
- }), Wt = me("references", () => {
5512
+ }), jt = me("references", () => {
5480
5513
  const n = v(() => {
5481
5514
  const l = P();
5482
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5515
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(D).getChannelPrimaryInterest().then((h) => {
5483
5516
  l.channelPrimaryInterestReference = h;
5484
5517
  }).catch(y)), l.channelPrimaryInterestReference;
5485
5518
  }), r = v(() => {
5486
5519
  const l = P();
5487
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5520
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(D).getContactPositions().then((h) => {
5488
5521
  l.contactPositionsReference = h;
5489
5522
  }).catch(y)), l.contactPositionsReference;
5490
5523
  }), e = v(() => {
5491
5524
  const l = P();
5492
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5525
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(D).getCurrency().then((h) => {
5493
5526
  l.currencyReference = h;
5494
5527
  }).catch(y)), l.currencyReference;
5495
5528
  }), s = v(() => {
5496
5529
  const l = P();
5497
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5530
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(D).getOpf().then((h) => {
5498
5531
  l.opfReference = h;
5499
5532
  }).catch(y)), l.opfReference;
5500
5533
  }), i = v(() => {
5501
5534
  const l = P();
5502
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5535
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(D).getOrderPaymentStatuses().then((h) => {
5503
5536
  l.orderPaymentStatusReference = h;
5504
5537
  }).catch(y)), l.orderPaymentStatusReference;
5505
5538
  }), o = v(() => {
5506
5539
  const l = P();
5507
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5540
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(D).getOrderStatuses().then((h) => {
5508
5541
  l.orderStatusReference = h;
5509
5542
  }).catch(y)), l.orderStatusReference;
5510
5543
  }), c = v(() => {
5511
5544
  const l = P();
5512
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5545
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(D).getPaymentTypes().then((h) => {
5513
5546
  l.paymentTypeReference = h;
5514
5547
  }).catch(y)), l.paymentTypeReference;
5515
- }), p = v(() => {
5548
+ }), u = v(() => {
5516
5549
  const l = P();
5517
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5550
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(D).getPartnerGroup().then((h) => {
5518
5551
  l.partnerGroupReference = h;
5519
5552
  }).catch(y)), l.partnerGroupReference;
5520
5553
  }), g = v(() => {
5521
5554
  const l = P();
5522
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5555
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(D).getProductFileType().then((h) => {
5523
5556
  l.productFileTypeReference = h;
5524
5557
  }).catch(y)), l.productFileTypeReference;
5525
5558
  }), R = v(() => {
5526
5559
  const l = P();
5527
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5560
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(D).getResourceTypes().then((h) => {
5528
5561
  l.resourceTypesReference = h;
5529
5562
  }).catch(y)), l.resourceTypesReference;
5530
5563
  }), A = v(() => {
5531
5564
  const l = P();
5532
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5565
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(D).getSalesDirections().then((h) => {
5533
5566
  l.salesDirectionsReference = h;
5534
5567
  }).catch(y)), l.salesDirectionsReference;
5535
5568
  }), L = v(() => {
5536
5569
  const l = P();
5537
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5570
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(D).getSourcePrimaryInterest().then((h) => {
5538
5571
  l.sourcePrimaryInterestReference = h;
5539
5572
  }).catch(y)), l.sourcePrimaryInterestReference;
5540
5573
  }), I = v(() => {
5541
5574
  const l = P();
5542
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5575
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(D).getDeliveryTypes().then((h) => {
5543
5576
  l.deliveryTypeReference = h;
5544
5577
  }).catch(y)), l.deliveryTypeReference;
5545
5578
  }), x = v(() => {
5546
5579
  const l = P();
5547
- 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) => {
5548
5581
  l.managersList = h;
5549
5582
  }).catch(y)), l.managersList;
5550
5583
  }), k = v(() => {
5551
5584
  const l = P();
5552
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5585
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(D).getWarehouses().then((h) => {
5553
5586
  l.warehousesReference = h;
5554
5587
  }).catch(y)), l.warehousesReference;
5555
5588
  }), N = v(() => {
5556
5589
  const l = P();
5557
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5590
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(D).getPropertyTypes().then((h) => {
5558
5591
  l.propertyTypesReference = h;
5559
5592
  }).catch(y)), l.propertyTypesReference;
5560
5593
  }), d = v(() => {
5561
5594
  const l = P();
5562
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5595
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(D).getPriceCoefficients().then((h) => {
5563
5596
  l.priceCoefficientsReference = h;
5564
5597
  }).catch(y)), l.priceCoefficientsReference;
5565
5598
  });
@@ -5595,7 +5628,7 @@ const P = me("__references_private", () => {
5595
5628
  /**
5596
5629
  * Справочник групп партнеров.
5597
5630
  */
5598
- partnerGroupsReference: p,
5631
+ partnerGroupsReference: u,
5599
5632
  /**
5600
5633
  * Справочник типов файлов продуктов/категорий.
5601
5634
  */
@@ -5645,18 +5678,18 @@ const P = me("__references_private", () => {
5645
5678
  */
5646
5679
  currentUser: r
5647
5680
  };
5648
- }), jt = me("user_state", () => ({
5681
+ }), Vt = me("user_state", () => ({
5649
5682
  /**
5650
5683
  * Данные о текущем пользователе.
5651
5684
  */
5652
5685
  currentUser: v(() => {
5653
5686
  const r = pt();
5654
- 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) => {
5655
5688
  r.currentUser = e;
5656
5689
  }).catch(y).finally(y)), r.currentUser;
5657
5690
  })
5658
5691
  }));
5659
- class Vt extends u {
5692
+ class Et extends p {
5660
5693
  /**
5661
5694
  * Возвращает подсказки по адресам.
5662
5695
  *
@@ -5703,7 +5736,7 @@ class Vt extends u {
5703
5736
  });
5704
5737
  }
5705
5738
  }
5706
- class Et {
5739
+ class Kt {
5707
5740
  /**
5708
5741
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5709
5742
  *
@@ -5727,140 +5760,141 @@ class Et {
5727
5760
  }
5728
5761
  }
5729
5762
  export {
5730
- Br as AnyReference,
5731
- Ct as AppBaseConfig,
5763
+ Wr as AnyReference,
5764
+ vt as AppBaseConfig,
5732
5765
  b as AppConfigProvider,
5733
5766
  _e as BankAccount,
5734
5767
  Ce as BasePaginationProvider,
5735
- Ur as CalculationTypeEnum,
5768
+ Gr as CalculationTypeEnum,
5736
5769
  oe as Cart,
5737
- kr as CartItem,
5738
- xr as CartItemBase,
5739
- vt as CartProvider,
5740
- At as CatalogProvider,
5741
- We as CatalogableItem,
5770
+ Nr as CartItem,
5771
+ kr as CartItemBase,
5772
+ Pt as CartProvider,
5773
+ $t as CatalogProvider,
5774
+ je as CatalogableItem,
5742
5775
  q as Category,
5743
5776
  qe as CategoryPricingRule,
5744
- Ye as ChannelPrimaryInterest,
5745
- Dt as City,
5746
- pe as CityWithRegionAndCountry,
5747
- Ge as Client,
5748
- st as ClientAdditionalData,
5777
+ Xe as ChannelPrimaryInterest,
5778
+ At as City,
5779
+ ue as CityWithRegionAndCountry,
5780
+ Me as Client,
5781
+ it as ClientAdditionalData,
5749
5782
  le as ClientCategory,
5750
- qt as ClientDataProvider,
5751
- $t as ClientPriceProvider,
5752
- bt as ClientPriceTemplateProvider,
5783
+ Ut as ClientDataProvider,
5784
+ bt as ClientPriceProvider,
5785
+ Tt as ClientPriceTemplateProvider,
5753
5786
  Q as ClientProduct,
5754
5787
  St as ClientProductCategoryDataProvider,
5755
- at as ClientProductDataProvider,
5788
+ Lt as ClientProductDataProvider,
5756
5789
  ne as ClientShortInfo,
5757
- Zr as ClientsAdditionalDataRequestTypeEnum,
5758
- Nt as ClientsListFilters,
5759
- Gt as ConfiguratorProvider,
5760
- Se as Contact,
5761
- Hr as ContactLinks,
5790
+ et as ClientsAdditionalDataRequestTypeEnum,
5791
+ Ot as ClientsListFilters,
5792
+ Mt as ConfiguratorProvider,
5793
+ ae as Contact,
5794
+ zr as ContactLinks,
5762
5795
  F as ContactPerson,
5763
- tt as ContactPersonRelated,
5764
- Wr as ContactPosition,
5796
+ st as ContactPersonRelated,
5797
+ jr as ContactPosition,
5765
5798
  Re as ContactRelation,
5766
- er as ContragentBase,
5799
+ rr as ContragentBase,
5767
5800
  he as ContragentFactory,
5768
- rr as ContragentIc,
5769
- et as ContragentPerson,
5770
- rt as ContragentUlNr,
5771
- tr as ContragentUlR,
5801
+ tr as ContragentIc,
5802
+ rt as ContragentPerson,
5803
+ tt as ContragentUlNr,
5804
+ sr as ContragentUlR,
5772
5805
  ke as CostSourceEnum,
5773
5806
  Y as Country,
5774
- ue as Currency,
5775
- Vt as DataSuggestionProvider,
5776
- Ot as DataTablePagination,
5777
- it as DataTablePaginationRequestParams,
5778
- dt as DataTableSortRequestParams,
5779
- Mt as DateTimeProvider,
5780
- 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,
5781
5814
  ge as DeliveryAddress,
5782
5815
  J as DeliveryType,
5783
- Nr as DeviceTypeResolutionConfig,
5784
- Fr as DiscountShortInfo,
5785
- Et as FieldValidationResultData,
5816
+ Or as DeviceTypeResolutionConfig,
5817
+ Hr as DiscountShortInfo,
5818
+ Kt as FieldValidationResultData,
5786
5819
  se as FilterGroup,
5787
5820
  Ue as FilterItem,
5788
5821
  Ne as FilterOpEnum,
5789
- Ve as GeoCoordinates,
5790
- Lr as HiddenCatalogableItem,
5822
+ Ee as GeoCoordinates,
5823
+ Ir as HiddenCatalogableItem,
5791
5824
  Te as HttpBaseCachedRequester,
5792
5825
  be as HttpBaseRequester,
5793
- Or as HttpParamsConfig,
5794
- u as HttpRequester,
5826
+ dr as HttpParamsConfig,
5827
+ p as HttpRequester,
5795
5828
  H as Identity,
5796
- Ir as Image,
5829
+ xr as Image,
5797
5830
  we as Manager,
5798
5831
  re as ManagerCommon,
5799
- Ft as ManagerDataFactory,
5800
- nt as ManagerDataProvider,
5801
- lt as MetaTagItem,
5832
+ Ht as ManagerDataFactory,
5833
+ ot as ManagerDataProvider,
5834
+ ut as MetaTagItem,
5802
5835
  $ as NamedIdentity,
5803
5836
  G as Opf,
5804
5837
  T as OpfEnum,
5805
- ct as Order,
5806
- ir as OrderInfo,
5807
- jr as OrderPaymentStatus,
5808
- ot as OrderProduct,
5809
- sr as OrderShortInfo,
5810
- Vr as OrderStatus,
5811
- 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,
5812
5845
  M as PartnerGroup,
5813
- Er as PaymentType,
5814
- Pt as PreferencesStorageProvider,
5846
+ Kr as PaymentType,
5847
+ Rt as PreferencesStorageProvider,
5815
5848
  De as PriceAnalyze,
5816
- zt as PriceAnalyzeProvider,
5849
+ Bt as PriceAnalyzeProvider,
5817
5850
  fe as PriceCoefficient,
5818
- je as PriceCoefficientEnum,
5851
+ Ve as PriceCoefficientEnum,
5819
5852
  W as PriceTemplate,
5820
5853
  ve as PriceTemplateCategory,
5821
5854
  X as PriceTemplateClient,
5822
- Ke as PriceTemplateICatalogableItem,
5855
+ Je as PriceTemplateICatalogableItem,
5823
5856
  Pe as PriceTemplateProduct,
5824
- Lt as PriceTemplateProvider,
5857
+ It as PriceTemplateProvider,
5825
5858
  ee as PricingRole,
5826
- It as PricingRoleProvider,
5859
+ xt as PricingRoleProvider,
5827
5860
  $e as PrimaryCatalogableItem,
5828
5861
  _ as Product,
5829
- Tt as ProductCategoryDataProvider,
5830
- _t as ProductDataProvider,
5831
- Kr as ProductFileType,
5862
+ _t as ProductCategoryDataProvider,
5863
+ at as ProductDataProvider,
5864
+ Jr as ProductFileType,
5832
5865
  Ie as ProductPriceCoefficient,
5833
- Xr as ProductPriceHistory,
5834
- xt as PropertiesProvider,
5866
+ Zr as ProductPriceHistory,
5867
+ kt as PropertiesProvider,
5835
5868
  Z as Property,
5836
- Qe as PropertyType,
5837
- Gr as PropertyTypeEnum,
5869
+ Ye as PropertyType,
5870
+ Mr as PropertyTypeEnum,
5838
5871
  z as PropertyValue,
5839
- kt as RecommendationsDataProvider,
5872
+ Nt as RecommendationsDataProvider,
5840
5873
  de as RecommendationsList,
5841
5874
  w as Reference,
5842
5875
  D as ReferenceDataProvider,
5843
5876
  te as Region,
5844
- Xe as ResourceType,
5845
- S as SalesDirection,
5846
- dr as SentryConfig,
5847
- He as Seo,
5848
- Bt as SeoDataProvider,
5849
- Ze as SourcePrimaryInterest,
5850
- ar as StockCount,
5851
- Rt as TemplatesListFilters,
5877
+ Ze as ResourceType,
5878
+ a as SalesDirection,
5879
+ qr as SentryConfig,
5880
+ ze as Seo,
5881
+ Wt as SeoDataProvider,
5882
+ er as SourcePrimaryInterest,
5883
+ Lr as StockCount,
5884
+ Dt as TemplatesListFilters,
5852
5885
  xe as TypedInstanceFactory,
5853
- Me as UnitsHelper,
5854
- Ut as UnknownClientDataProvider,
5855
- Ee as UpdatableNamedIdentity,
5856
- Qr as User,
5857
- Je as UserCommonInfo,
5858
- 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,
5859
5892
  U as UserShortInfo,
5860
- Jr as UserTypeEnum,
5861
- qr as VersionConfig,
5893
+ Qr as UserTypeEnum,
5894
+ Ur as VersionConfig,
5862
5895
  ye as Warehouse,
5863
- Wt as useReferencesStore,
5864
- jt as useUserStateStore
5896
+ Ge as findCatalogItemByIdRecursive,
5897
+ jt as useReferencesStore,
5898
+ Vt as useUserStateStore
5865
5899
  };
5866
5900
  //# sourceMappingURL=sc-common-lib.js.map