@snabcentr/common-lib 1.60.4 → 1.60.6

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,10 +1,10 @@
1
- var tr = Object.defineProperty;
2
- var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { isNil as ee, toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isFunction as Se, map as ce, forEach as pr, isDate as ur, isEmpty as hr, isArray as gr } from "lodash-es";
5
- import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as Fe, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
1
+ var sr = Object.defineProperty;
2
+ var ir = (n, r, e) => r in n ? sr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => ir(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { isNil as ee, toUpper as nr, constant as or, isUndefined as cr, isString as m, cloneDeep as lr, noop as y, toLower as pr, isEmpty as Fe, isFunction as Se, map as ce, forEach as ur, isDate as hr, isArray as gr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as He, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
6
6
  import $r from "axios";
7
- import { objectToSnake as ke, objectToCamel as Tr } from "ts-case-convert";
7
+ import { objectToSnake as ke, objectToCamel as br } from "ts-case-convert";
8
8
  import { defineStore as me } from "pinia";
9
9
  import { ref as C, computed as v } from "vue";
10
10
  class H {
@@ -31,7 +31,7 @@ class H {
31
31
  return typeof this.id == "number" ? this.id === -1 : (typeof this.id == "string" && (this.id = ""), ee(this.id));
32
32
  }
33
33
  }
34
- class D extends H {
34
+ class $ extends H {
35
35
  /**
36
36
  * Инициализирует экземпляр класса {@link NamedIdentity}.
37
37
  *
@@ -46,7 +46,7 @@ class D extends H {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class He extends D {
49
+ class ze extends $ {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class He extends D {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class Ae extends He {
72
+ class Ae extends ze {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -108,11 +108,11 @@ class ie extends Ae {
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]) => [ir(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]) => [nr(s), i])) : void 0;
112
112
  }
113
113
  }
114
- var ze = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ze || {});
115
- class w extends D {
114
+ var Be = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Be || {});
115
+ class w extends $ {
116
116
  /**
117
117
  * Инициализирует экземпляр класса {@link Reference}.
118
118
  *
@@ -136,10 +136,10 @@ class fe extends w {
136
136
  * Возвращает значение справочника коэффициента розничной цены.
137
137
  */
138
138
  static getRetailPriceCoefficient() {
139
- return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: nr(!0) };
139
+ return { id: -2, slug: Be.Retail, name: "Розн. цена", guid: "", isNewRec: or(!0) };
140
140
  }
141
141
  }
142
- class ae {
142
+ class Le {
143
143
  /**
144
144
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
145
145
  *
@@ -169,7 +169,7 @@ class ae {
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 Be {
172
+ class We {
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 K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(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 K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new We(e == null ? void 0 : e.coordinates);
222
222
  }
223
223
  }
224
- class br {
224
+ class Tr {
225
225
  /**
226
226
  * Инициализирует экземпляр класса {@link StockCount}.
227
227
  *
@@ -253,7 +253,7 @@ const j = class j {
253
253
  */
254
254
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
255
255
  static getConfig() {
256
- if (or(j.config))
256
+ if (cr(j.config))
257
257
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
258
258
  return j.config;
259
259
  }
@@ -275,8 +275,8 @@ const j = class j {
275
275
  * Конфигурация приложения.
276
276
  */
277
277
  t(j, "config");
278
- let T = j;
279
- class _r extends He {
278
+ let b = j;
279
+ class _r extends ze {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -387,24 +387,32 @@ class _ extends _r {
387
387
  * Список свойств продукта.
388
388
  */
389
389
  t(this, "properties");
390
+ /**
391
+ * Розничная цена.
392
+ */
393
+ t(this, "retailCost");
394
+ /**
395
+ * Розничная стоимость продукта в рублях.
396
+ */
397
+ t(this, "retailCostRub");
390
398
  /**
391
399
  * Список коэффициентов цен на продукт.
392
400
  */
393
401
  t(this, "priceCoefficients");
394
- 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 br(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 Tr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
395
403
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
396
- s && (this.category = new Ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Ae(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Sr(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new ae(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
404
+ s && (this.category = new Ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Ae(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Sr(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 Le(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
397
405
  }
398
406
  /**
399
407
  * Возвращает признак, что это измеряемый товар.
400
408
  */
401
409
  getIsMeasurable() {
402
410
  var s;
403
- const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
411
+ const e = (s = b.getConfig().catalog) == null ? void 0 : s.products.units;
404
412
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
405
413
  }
406
414
  }
407
- class ar extends H {
415
+ class Lr extends H {
408
416
  /**
409
417
  * Инициализирует экземпляр класса {@link CartItemBase}.
410
418
  *
@@ -456,10 +464,10 @@ class ar extends H {
456
464
  * Признак того, что позиция является дополнительной продажей.
457
465
  */
458
466
  t(this, "isAdditionalSale");
459
- 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 && cr(e.configuratorParams), this.isAdditionalSale = e.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 && lr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
460
468
  }
461
469
  }
462
- class Lr extends ar {
470
+ class Ir extends Lr {
463
471
  /**
464
472
  * Инициализирует экземпляр класса {@link CartItem}.
465
473
  *
@@ -528,10 +536,10 @@ class oe {
528
536
  * Список итоговых сумм по направлениям продаж.
529
537
  */
530
538
  t(this, "directionsSum");
531
- this.items = r.items.map((e) => new Lr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
539
+ this.items = r.items.map((e) => new Ir(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
532
540
  }
533
541
  }
534
- class Ir {
542
+ class xr {
535
543
  /**
536
544
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
537
545
  *
@@ -553,7 +561,7 @@ class Ir {
553
561
  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;
554
562
  }
555
563
  }
556
- class xr {
564
+ class ar {
557
565
  /**
558
566
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
559
567
  *
@@ -682,7 +690,7 @@ class ft {
682
690
  */
683
691
  t(this, "dateFormats");
684
692
  var e, s, i;
685
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Ir(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new kr({
693
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new ar(r == null ? void 0 : r.http), this.deviceTypeByResolution = new xr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new kr({
686
694
  environment: this.environment,
687
695
  ...r == null ? void 0 : r.sentry
688
696
  }), this.urls = r == null ? void 0 : r.urls, this.version = new Nr(r == null ? void 0 : r.version), this.dateFormats = {
@@ -692,7 +700,7 @@ class ft {
692
700
  };
693
701
  }
694
702
  }
695
- class Le {
703
+ class Ie {
696
704
  /**
697
705
  * Инициализирует экземпляр указанного класса.
698
706
  *
@@ -711,7 +719,7 @@ class Le {
711
719
  return new r(e);
712
720
  }
713
721
  }
714
- const a = class a {
722
+ const L = class L {
715
723
  /**
716
724
  * Инициализирует экземпляр класса {@link HttpRequester}.
717
725
  *
@@ -731,23 +739,23 @@ const a = class a {
731
739
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
732
740
  */
733
741
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
734
- const s = T.getConfig().version;
735
- this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
742
+ const s = b.getConfig().version;
743
+ this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
736
744
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
737
745
  baseURL: r,
738
746
  headers: {
739
- "APP-VERSION": `${s.name} (${s.version}, ${B(s.date, T.getConfig().dateFormats.uiDate)})`,
747
+ "APP-VERSION": `${s.name} (${s.version}, ${B(s.date, b.getConfig().dateFormats.uiDate)})`,
740
748
  Accept: "application/json",
741
749
  "Content-Type": "application/json",
742
750
  ...e
743
751
  }
744
752
  }), this.httpClient.interceptors.request.use(
745
- (i) => (i.method && (i.method === "get" && i.params && (i.params = ke(i.params)), ["put", "patch", "post"].includes(lr(i.method)) && i.data && (i.data = ke(i.data))), i),
753
+ (i) => (i.method && (i.method === "get" && i.params && (i.params = ke(i.params)), ["put", "patch", "post"].includes(pr(i.method)) && i.data && (i.data = ke(i.data))), i),
746
754
  (i) => Promise.reject(i)
747
755
  ), this.httpClient.interceptors.response.use(
748
- (i) => (i.data && (i.data = Tr(i.data)), i),
756
+ (i) => (i.data && (i.data = br(i.data)), i),
749
757
  // Возвращаем изменённую структуру сообщения об ошибке.
750
- (i) => a.convertHttpErrorResponse(i)
758
+ (i) => L.convertHttpErrorResponse(i)
751
759
  );
752
760
  }
753
761
  /**
@@ -756,7 +764,7 @@ const a = class a {
756
764
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
757
765
  */
758
766
  static setBaseDefaultNotificationErrorResponseHandler(r) {
759
- a.baseDefaultNotificationErrorResponseHandler = r;
767
+ L.baseDefaultNotificationErrorResponseHandler = r;
760
768
  }
761
769
  /**
762
770
  * Возвращает экземпляр объекта текущего класса.
@@ -764,7 +772,7 @@ const a = class a {
764
772
  * @param type Тип данных, которыми оперирует метод.
765
773
  */
766
774
  static getInstance(r) {
767
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Le.simpleInstanceInitializer(r)), a.instances[r.name];
775
+ return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = Ie.simpleInstanceInitializer(r)), L.instances[r.name];
768
776
  }
769
777
  /**
770
778
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -859,15 +867,15 @@ const a = class a {
859
867
  * Экземпляр объекта текущего класса.
860
868
  */
861
869
  // eslint-disable-next-line no-use-before-define
862
- t(a, "instances", {}), /**
870
+ t(L, "instances", {}), /**
863
871
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
864
872
  *
865
873
  * Параметры:
866
874
  * - error Данные об ошибке.
867
875
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
868
876
  */
869
- t(a, "baseDefaultNotificationErrorResponseHandler", y);
870
- let $e = a;
877
+ t(L, "baseDefaultNotificationErrorResponseHandler", y);
878
+ let $e = L;
871
879
  const V = class V extends $e {
872
880
  /**
873
881
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
@@ -881,14 +889,14 @@ const V = class V extends $e {
881
889
  * Время кэширования данных ответов на запросы (секунд).
882
890
  */
883
891
  t(this, "responseDataCacheTimeout");
884
- const i = T.getConfig();
892
+ const i = b.getConfig();
885
893
  this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
886
894
  }
887
895
  /**
888
896
  * Возвращает кэшированные данные.
889
897
  * Если кэшированные данные отсутствуют, то вернет undefined.
890
898
  *
891
- * @param url URL запроса.
899
+ * @param key Ключ запроса.
892
900
  */
893
901
  static getCachedResponse(e) {
894
902
  const s = V.responseDataCache.get(e);
@@ -914,13 +922,14 @@ const V = class V extends $e {
914
922
  * @param url URL запроса для получения данных.
915
923
  * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
916
924
  * и использовать в случае аналогичных запросов.
925
+ * @param params Дополнительные параметры запроса.
917
926
  */
918
927
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
919
- getTypedDataArrayRequester(e, s, i = !1) {
920
- const o = i ? V.getCachedResponse(s) : void 0;
921
- return o ? Promise.resolve(o) : this.get(s).then((l) => {
922
- const p = l.map((g) => Le.instanceInitializer(e, g));
923
- return i && p && this.cacheResponse(s, p), p;
928
+ getTypedDataArrayRequester(e, s, i = !1, o = {}) {
929
+ const l = s + (Fe(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(l) : void 0;
930
+ return p ? Promise.resolve(p) : this.get(s, o).then((g) => {
931
+ const R = g.map((A) => Ie.instanceInitializer(e, A));
932
+ return i && R && this.cacheResponse(s, R), R;
924
933
  });
925
934
  }
926
935
  };
@@ -928,14 +937,14 @@ const V = class V extends $e {
928
937
  * Кэш результатов запросов.
929
938
  */
930
939
  t(V, "responseDataCache", /* @__PURE__ */ new Map());
931
- let Te = V;
932
- class u extends Te {
940
+ let be = V;
941
+ class u extends be {
933
942
  /**
934
943
  * Инициализирует экземпляр класса {@link HttpRequester}.
935
944
  */
936
945
  constructor() {
937
946
  var s, i;
938
- const r = T.getConfig(), e = {};
947
+ const r = b.getConfig(), e = {};
939
948
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
940
949
  }
941
950
  }
@@ -1042,7 +1051,7 @@ class yt extends u {
1042
1051
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1043
1052
  }
1044
1053
  }
1045
- var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), dr = /* @__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))(dr || {});
1054
+ var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), xe = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(xe || {}), dr = /* @__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))(dr || {});
1046
1055
  class q extends ie {
1047
1056
  /**
1048
1057
  * Инициализирует экземпляр класса {@link Category}.
@@ -1063,7 +1072,7 @@ class q extends ie {
1063
1072
  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));
1064
1073
  }
1065
1074
  }
1066
- class We extends D {
1075
+ class je extends $ {
1067
1076
  /**
1068
1077
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1069
1078
  *
@@ -1078,7 +1087,7 @@ class We extends D {
1078
1087
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1079
1088
  }
1080
1089
  }
1081
- class qr extends We {
1090
+ class qr extends je {
1082
1091
  /**
1083
1092
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1084
1093
  *
@@ -1104,7 +1113,7 @@ class wt {
1104
1113
  if (e)
1105
1114
  try {
1106
1115
  const s = JSON.parse(e);
1107
- if (fr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1116
+ if (fr(f(s.availableFor) || He(), /* @__PURE__ */ new Date()))
1108
1117
  return s.data ?? {};
1109
1118
  } catch {
1110
1119
  localStorage.removeItem(r);
@@ -1127,7 +1136,7 @@ class wt {
1127
1136
  );
1128
1137
  }
1129
1138
  }
1130
- class U extends D {
1139
+ class U extends $ {
1131
1140
  /**
1132
1141
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1133
1142
  *
@@ -1142,7 +1151,7 @@ class U extends D {
1142
1151
  this.type = e == null ? void 0 : e.type;
1143
1152
  }
1144
1153
  }
1145
- class Ur extends D {
1154
+ class Ur extends $ {
1146
1155
  /**
1147
1156
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1148
1157
  *
@@ -1181,7 +1190,7 @@ class Ur extends D {
1181
1190
  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;
1182
1191
  }
1183
1192
  }
1184
- class W extends We {
1193
+ class W extends je {
1185
1194
  /**
1186
1195
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1187
1196
  *
@@ -1236,7 +1245,7 @@ class J extends _ {
1236
1245
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1237
1246
  */
1238
1247
  t(this, "isFavorite");
1239
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new Ur(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;
1248
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? xe.Product, this.discount = e != null && e.discount ? new Ur(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;
1240
1249
  }
1241
1250
  }
1242
1251
  class Gr {
@@ -1259,7 +1268,7 @@ class Gr {
1259
1268
  }
1260
1269
  class S extends w {
1261
1270
  }
1262
- class re extends D {
1271
+ class re extends $ {
1263
1272
  /**
1264
1273
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1265
1274
  *
@@ -1368,7 +1377,7 @@ class le extends Mr {
1368
1377
  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 J(o));
1369
1378
  }
1370
1379
  }
1371
- class je {
1380
+ class Ve {
1372
1381
  /**
1373
1382
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1374
1383
  *
@@ -1378,15 +1387,15 @@ class je {
1378
1387
  /**
1379
1388
  * Коэффициент цены.
1380
1389
  */
1381
- t(this, "coefficient");
1390
+ t(this, "priceCoefficient");
1382
1391
  /**
1383
1392
  * Процент, который прибавляется к значению выбранного коэффициента.
1384
1393
  */
1385
1394
  t(this, "increasePercent");
1386
- this.coefficient = (r == null ? void 0 : r.coefficient) && new fe(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1395
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1387
1396
  }
1388
1397
  }
1389
- class ve extends je {
1398
+ class ve extends Ve {
1390
1399
  /**
1391
1400
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1392
1401
  *
@@ -1433,7 +1442,7 @@ class pe extends w {
1433
1442
  e && (this.region = new te(e.region));
1434
1443
  }
1435
1444
  }
1436
- class Ve extends D {
1445
+ class Ee extends $ {
1437
1446
  /**
1438
1447
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1439
1448
  *
@@ -1472,7 +1481,7 @@ class Ve extends D {
1472
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;
1473
1482
  }
1474
1483
  }
1475
- class ne extends Ve {
1484
+ class ne extends Ee {
1476
1485
  /**
1477
1486
  * Инициализирует экземпляр класса {@link Client}.
1478
1487
  *
@@ -1544,7 +1553,7 @@ class Y extends H {
1544
1553
  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);
1545
1554
  }
1546
1555
  }
1547
- class Pe extends je {
1556
+ class Pe extends Ve {
1548
1557
  /**
1549
1558
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1550
1559
  *
@@ -1559,9 +1568,9 @@ class Pe extends je {
1559
1568
  this.product = new _(e == null ? void 0 : e.product);
1560
1569
  }
1561
1570
  }
1562
- class Ee extends w {
1571
+ class Ke extends w {
1563
1572
  }
1564
- class X extends D {
1573
+ class X extends $ {
1565
1574
  /**
1566
1575
  * Инициализирует экземпляр класса {@link Property}.
1567
1576
  *
@@ -1581,7 +1590,7 @@ class X extends D {
1581
1590
  * Дополнительные метаданные свойства.
1582
1591
  */
1583
1592
  t(this, "metadata");
1584
- this.type = new Ee(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1593
+ this.type = new Ke(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1585
1594
  }
1586
1595
  }
1587
1596
  class z {
@@ -1687,13 +1696,13 @@ class Ct {
1687
1696
  }
1688
1697
  class Fr extends w {
1689
1698
  }
1690
- class Ke extends w {
1699
+ class Je extends w {
1691
1700
  }
1692
1701
  class vt extends w {
1693
1702
  }
1694
1703
  class Hr extends w {
1695
1704
  }
1696
- class ue extends D {
1705
+ class ue extends $ {
1697
1706
  /**
1698
1707
  * Инициализирует экземпляр класса {@link Currency}.
1699
1708
  *
@@ -1712,7 +1721,7 @@ class ue extends D {
1712
1721
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
1713
1722
  }
1714
1723
  }
1715
- var b = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(b || {});
1724
+ var T = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(T || {});
1716
1725
  class G extends w {
1717
1726
  /**
1718
1727
  * Возвращает сгенерированную запись-описание физического лица.
@@ -1721,7 +1730,7 @@ class G extends w {
1721
1730
  return new G({
1722
1731
  id: 1,
1723
1732
  guid: "",
1724
- slug: b.Person,
1733
+ slug: T.Person,
1725
1734
  name: ""
1726
1735
  });
1727
1736
  }
@@ -1736,11 +1745,11 @@ class Wr extends w {
1736
1745
  }
1737
1746
  class jr extends w {
1738
1747
  }
1739
- class Je extends w {
1740
- }
1741
1748
  class Qe extends w {
1742
1749
  }
1743
- class R extends u {
1750
+ class Ye extends w {
1751
+ }
1752
+ class D extends u {
1744
1753
  /**
1745
1754
  * Возвращает {@link Promise} для получения данных указанного справочника.
1746
1755
  *
@@ -1756,7 +1765,7 @@ class R extends u {
1756
1765
  * первичного интереса.
1757
1766
  */
1758
1767
  getChannelPrimaryInterest() {
1759
- return this.getTypedDataArrayRequester(Ke, "/internal/references/channel-primary-interest", !0);
1768
+ return this.getTypedDataArrayRequester(Je, "/internal/references/channel-primary-interest", !0);
1760
1769
  }
1761
1770
  /**
1762
1771
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -1805,7 +1814,7 @@ class R extends u {
1805
1814
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1806
1815
  */
1807
1816
  getResourceTypes() {
1808
- return this.getTypedDataArrayRequester(Je, "/internal/references/resource-type", !0);
1817
+ return this.getTypedDataArrayRequester(Qe, "/internal/references/resource-type", !0);
1809
1818
  }
1810
1819
  /**
1811
1820
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1817,7 +1826,7 @@ class R extends u {
1817
1826
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1818
1827
  */
1819
1828
  getSourcePrimaryInterest() {
1820
- return this.getTypedDataArrayRequester(Qe, "/internal/references/source-primary-interest", !0);
1829
+ return this.getTypedDataArrayRequester(Ye, "/internal/references/source-primary-interest", !0);
1821
1830
  }
1822
1831
  /**
1823
1832
  * Выполняет поиск данных о городах по терму в названии.
@@ -1859,7 +1868,7 @@ class R extends u {
1859
1868
  * Возвращает {@link Promise} для получения справочника типов свойств.
1860
1869
  */
1861
1870
  getPropertyTypes() {
1862
- return this.getTypedDataArrayRequester(Ee, "/internal/references/property-type", !0);
1871
+ return this.getTypedDataArrayRequester(Ke, "/internal/references/property-type", !0);
1863
1872
  }
1864
1873
  /**
1865
1874
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -1875,7 +1884,7 @@ class R extends u {
1875
1884
  }
1876
1885
  }
1877
1886
  var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
1878
- class Er extends Ve {
1887
+ class Er extends Ee {
1879
1888
  /**
1880
1889
  * Инициализирует экземпляр класса {@link User}.
1881
1890
  *
@@ -1971,7 +1980,7 @@ class Ne {
1971
1980
  r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
1972
1981
  }
1973
1982
  }
1974
- class Z extends D {
1983
+ class Z extends $ {
1975
1984
  /**
1976
1985
  * Инициализирует экземпляр класса {@link PricingRole}.
1977
1986
  *
@@ -2055,7 +2064,7 @@ class Re {
2055
2064
  * Источник клиентской цены.
2056
2065
  */
2057
2066
  t(this, "source");
2058
- this.client = new ne(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ie.Product;
2067
+ this.client = new ne(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? xe.Product;
2059
2068
  }
2060
2069
  }
2061
2070
  class Pt extends u {
@@ -2085,7 +2094,7 @@ class Pt extends u {
2085
2094
  */
2086
2095
  // eslint-disable-next-line class-methods-use-this
2087
2096
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2088
- let l = `${T.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2097
+ let l = `${b.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2089
2098
  return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
2090
2099
  }
2091
2100
  }
@@ -2323,7 +2332,7 @@ class Dt extends u {
2323
2332
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2324
2333
  */
2325
2334
  attachTemplate(r, e, s) {
2326
- const i = T.getConfig().dateFormats.api;
2335
+ const i = b.getConfig().dateFormats.api;
2327
2336
  return this.post(
2328
2337
  `/internal/clients/${r}/price/templates/${e}`,
2329
2338
  s && {
@@ -2355,7 +2364,7 @@ class Dt extends u {
2355
2364
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2356
2365
  */
2357
2366
  changeTemplate(r, e, s, i) {
2358
- const o = T.getConfig().dateFormats.api;
2367
+ const o = b.getConfig().dateFormats.api;
2359
2368
  return this.patch(
2360
2369
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2361
2370
  i && {
@@ -2451,7 +2460,7 @@ class At extends u {
2451
2460
  getCategoryProductsCoefficients(r) {
2452
2461
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2453
2462
  const { data: s } = e;
2454
- return pr(s, (i) => i.map((o) => new ae(o))), s;
2463
+ return ur(s, (i) => i.map((o) => new Le(o))), s;
2455
2464
  });
2456
2465
  }
2457
2466
  /**
@@ -2501,7 +2510,7 @@ class $t extends u {
2501
2510
  return this.get(
2502
2511
  `/internal/catalog/products/${r}/coefficients`,
2503
2512
  {},
2504
- (e) => ce(e.data, (s) => new ae(s))
2513
+ (e) => ce(e.data, (s) => new Le(s))
2505
2514
  );
2506
2515
  }
2507
2516
  /**
@@ -2532,7 +2541,7 @@ class $t extends u {
2532
2541
  });
2533
2542
  }
2534
2543
  }
2535
- class Tt extends u {
2544
+ class bt extends u {
2536
2545
  /**
2537
2546
  * Возвращает список данных о корневых категориях указанного клиента.
2538
2547
  *
@@ -2594,7 +2603,7 @@ class Tt extends u {
2594
2603
  );
2595
2604
  }
2596
2605
  }
2597
- class bt extends u {
2606
+ class Tt extends u {
2598
2607
  /**
2599
2608
  * Возвращает данные об указанном продукте для указанного клиента.
2600
2609
  *
@@ -2615,7 +2624,7 @@ class bt extends u {
2615
2624
  );
2616
2625
  }
2617
2626
  }
2618
- var xe = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(xe || {});
2627
+ var ae = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(ae || {});
2619
2628
  class de {
2620
2629
  /**
2621
2630
  * Инициализирует экземпляр класса {@link FilterItem}.
@@ -2635,7 +2644,7 @@ class de {
2635
2644
  * Значение с которым сравнивается поле.
2636
2645
  */
2637
2646
  t(this, "value");
2638
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? xe.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2647
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? ae.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2639
2648
  }
2640
2649
  /**
2641
2650
  * Преобразует фильтр в примитивное представление для API.
@@ -2647,7 +2656,7 @@ class de {
2647
2656
  field: this.field,
2648
2657
  op: this.op
2649
2658
  };
2650
- return r.value = ur(this.value) ? B(this.value, T.getConfig().dateFormats.api) : this.value, r;
2659
+ return r.value = hr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2651
2660
  }
2652
2661
  }
2653
2662
  class se {
@@ -2702,7 +2711,7 @@ class Ce extends u {
2702
2711
  page: (i == null ? void 0 : i.page) ?? 1,
2703
2712
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2704
2713
  };
2705
- return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), hr(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2714
+ return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), Fe(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2706
2715
  }
2707
2716
  }
2708
2717
  class _t extends Ce {
@@ -2977,7 +2986,7 @@ class St extends u {
2977
2986
  );
2978
2987
  }
2979
2988
  }
2980
- class at extends Ce {
2989
+ class Lt extends Ce {
2981
2990
  /**
2982
2991
  * Возвращает пагинированный список свойств.
2983
2992
  *
@@ -3349,7 +3358,7 @@ class at extends Ce {
3349
3358
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3350
3359
  }
3351
3360
  }
3352
- class Lt extends u {
3361
+ class It extends u {
3353
3362
  /**
3354
3363
  * Возвращает данные о рекомендациях указанной категории продуктов.
3355
3364
  *
@@ -3395,7 +3404,7 @@ const qe = (n) => {
3395
3404
  const r = {};
3396
3405
  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;
3397
3406
  };
3398
- class It extends u {
3407
+ class xt extends u {
3399
3408
  /**
3400
3409
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3401
3410
  *
@@ -3445,7 +3454,7 @@ class It extends u {
3445
3454
  }
3446
3455
  }
3447
3456
  var Qr = /* @__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))(Qr || {});
3448
- class be extends H {
3457
+ class Te extends H {
3449
3458
  /**
3450
3459
  * Инициализирует экземпляр класса {@link BankAccount}.
3451
3460
  *
@@ -3476,7 +3485,7 @@ class be extends H {
3476
3485
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3477
3486
  }
3478
3487
  }
3479
- class _e extends D {
3488
+ class _e extends $ {
3480
3489
  /**
3481
3490
  * Инициализирует экземпляр класса {@link Contact}.
3482
3491
  *
@@ -3530,7 +3539,7 @@ class F extends _e {
3530
3539
  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;
3531
3540
  }
3532
3541
  }
3533
- class Ye extends D {
3542
+ class Xe extends $ {
3534
3543
  /**
3535
3544
  * Инициализирует экземпляр класса {@link ContragentBase}.
3536
3545
  *
@@ -3597,13 +3606,13 @@ class Ye extends D {
3597
3606
  if (e.bankAccounts) {
3598
3607
  const s = [];
3599
3608
  e.bankAccounts.forEach((i) => {
3600
- s.push(new be(i));
3609
+ s.push(new Te(i));
3601
3610
  }), this.bankAccounts = s;
3602
3611
  }
3603
3612
  }
3604
3613
  }
3605
3614
  }
3606
- class Yr extends Ye {
3615
+ class Yr extends Xe {
3607
3616
  /**
3608
3617
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3609
3618
  *
@@ -3613,7 +3622,7 @@ class Yr extends Ye {
3613
3622
  super(r);
3614
3623
  }
3615
3624
  }
3616
- class Xe extends Ye {
3625
+ class Ze extends Xe {
3617
3626
  /**
3618
3627
  * Инициализирует экземпляр класса {@link ContragentIc}.
3619
3628
  *
@@ -3656,7 +3665,7 @@ class Xe extends Ye {
3656
3665
  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 ?? "");
3657
3666
  }
3658
3667
  }
3659
- class Ze extends Xe {
3668
+ class er extends Ze {
3660
3669
  /**
3661
3670
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3662
3671
  *
@@ -3671,7 +3680,7 @@ class Ze extends Xe {
3671
3680
  e && (this.kpp = e.kpp ?? "");
3672
3681
  }
3673
3682
  }
3674
- class Xr extends Ze {
3683
+ class Xr extends er {
3675
3684
  /**
3676
3685
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3677
3686
  *
@@ -3702,11 +3711,11 @@ class he {
3702
3711
  */
3703
3712
  static createInstance(r) {
3704
3713
  switch (r.opf.slug) {
3705
- case b.Ic:
3706
- return new Xe(r);
3707
- case b.UlR:
3714
+ case T.Ic:
3708
3715
  return new Ze(r);
3709
- case b.UlNr:
3716
+ case T.UlR:
3717
+ return new er(r);
3718
+ case T.UlNr:
3710
3719
  return new Xr(r);
3711
3720
  default:
3712
3721
  return new Yr(r);
@@ -3793,7 +3802,7 @@ class ge extends qr {
3793
3802
  * Признак того, что указанный адрес является адресом транспортной компании.
3794
3803
  */
3795
3804
  t(this, "isTransportCompanyAddress");
3796
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(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;
3805
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new We(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;
3797
3806
  }
3798
3807
  }
3799
3808
  class Ue extends ne {
@@ -3850,10 +3859,10 @@ class Ue extends ne {
3850
3859
  * Дополнительные данные о клиенте.
3851
3860
  */
3852
3861
  t(this, "extraData");
3853
- 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 = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(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) ?? {};
3862
+ 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 = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Je(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ye(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(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) ?? {};
3854
3863
  }
3855
3864
  }
3856
- class xt {
3865
+ class at {
3857
3866
  /**
3858
3867
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3859
3868
  *
@@ -4023,7 +4032,7 @@ class xt {
4023
4032
  }), !((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;
4024
4033
  }
4025
4034
  }
4026
- class er extends H {
4035
+ class rr extends H {
4027
4036
  /**
4028
4037
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4029
4038
  *
@@ -4046,7 +4055,7 @@ class er extends H {
4046
4055
  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;
4047
4056
  }
4048
4057
  }
4049
- class et extends D {
4058
+ class et extends $ {
4050
4059
  /**
4051
4060
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4052
4061
  *
@@ -4079,7 +4088,7 @@ class et extends D {
4079
4088
  * Список менеджеров.
4080
4089
  */
4081
4090
  t(this, "managers");
4082
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4091
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new rr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4083
4092
  }
4084
4093
  }
4085
4094
  class rt {
@@ -4185,7 +4194,7 @@ class Ot extends Ce {
4185
4194
  return this.getClientsList({
4186
4195
  groupOp: "and",
4187
4196
  groups: [],
4188
- filters: [{ field: "phone", op: xe.Contains, value: r }]
4197
+ filters: [{ field: "phone", op: ae.Contains, value: r }]
4189
4198
  });
4190
4199
  }
4191
4200
  /**
@@ -4351,17 +4360,17 @@ class Ot extends Ce {
4351
4360
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4352
4361
  */
4353
4362
  createContragentClientData(r, e, s = {}) {
4354
- var g, A, $, L, I, x, k, N;
4363
+ var g, R, A, I, x, a, k, N;
4355
4364
  let i;
4356
4365
  const o = e, l = e, p = e;
4357
4366
  switch (e.opf.slug) {
4358
- case b.Ic:
4367
+ case T.Ic:
4359
4368
  i = {
4360
4369
  opf: o.opf.slug,
4361
4370
  name: o.name,
4362
4371
  alternative_name: o.alternativeName,
4363
4372
  partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4364
- manager_id: (A = o.manager) == null ? void 0 : A.id,
4373
+ manager_id: (R = o.manager) == null ? void 0 : R.id,
4365
4374
  comment: o.comment,
4366
4375
  inn: o.inn,
4367
4376
  okpo: o.okpo,
@@ -4373,13 +4382,13 @@ class Ot extends Ce {
4373
4382
  actual_address: o.actualAddress
4374
4383
  };
4375
4384
  break;
4376
- case b.UlR:
4385
+ case T.UlR:
4377
4386
  i = {
4378
4387
  opf: l.opf.slug,
4379
4388
  name: l.name,
4380
4389
  alternative_name: l.alternativeName,
4381
- partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4382
- manager_id: (L = l.manager) == null ? void 0 : L.id,
4390
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4391
+ manager_id: (I = l.manager) == null ? void 0 : I.id,
4383
4392
  comment: l.comment,
4384
4393
  inn: l.inn,
4385
4394
  kpp: l.kpp,
@@ -4392,13 +4401,13 @@ class Ot extends Ce {
4392
4401
  actual_address: l.actualAddress
4393
4402
  };
4394
4403
  break;
4395
- case b.UlNr:
4404
+ case T.UlNr:
4396
4405
  i = {
4397
4406
  opf: p.opf.slug,
4398
4407
  name: p.name,
4399
4408
  alternative_name: p.alternativeName,
4400
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4401
- manager_id: (x = p.manager) == null ? void 0 : x.id,
4409
+ partner_group_id: (x = p.partnerGroup) == null ? void 0 : x.id,
4410
+ manager_id: (a = p.manager) == null ? void 0 : a.id,
4402
4411
  comment: p.comment,
4403
4412
  director_name: p.directorName,
4404
4413
  director_position: p.directorPosition,
@@ -4440,17 +4449,17 @@ class Ot extends Ce {
4440
4449
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4441
4450
  */
4442
4451
  updateContragentClientData(r, e, s = {}) {
4443
- var g, A, $, L, I, x, k, N;
4452
+ var g, R, A, I, x, a, k, N;
4444
4453
  let i;
4445
4454
  const o = e, l = e, p = e;
4446
4455
  switch (e.opf.slug) {
4447
- case b.Ic:
4456
+ case T.Ic:
4448
4457
  i = {
4449
4458
  opf: o.opf.slug,
4450
4459
  name: o.name,
4451
4460
  alternative_name: o.alternativeName,
4452
4461
  partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4453
- manager_id: (A = o.manager) == null ? void 0 : A.id,
4462
+ manager_id: (R = o.manager) == null ? void 0 : R.id,
4454
4463
  comment: o.comment,
4455
4464
  inn: o.inn,
4456
4465
  okpo: o.okpo,
@@ -4462,13 +4471,13 @@ class Ot extends Ce {
4462
4471
  actual_address: o.actualAddress
4463
4472
  };
4464
4473
  break;
4465
- case b.UlR:
4474
+ case T.UlR:
4466
4475
  i = {
4467
4476
  opf: l.opf.slug,
4468
4477
  name: l.name,
4469
4478
  alternative_name: l.alternativeName,
4470
- partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4471
- manager_id: (L = l.manager) == null ? void 0 : L.id,
4479
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4480
+ manager_id: (I = l.manager) == null ? void 0 : I.id,
4472
4481
  comment: l.comment,
4473
4482
  inn: l.inn,
4474
4483
  kpp: l.kpp,
@@ -4481,13 +4490,13 @@ class Ot extends Ce {
4481
4490
  actual_address: l.actualAddress
4482
4491
  };
4483
4492
  break;
4484
- case b.UlNr:
4493
+ case T.UlNr:
4485
4494
  i = {
4486
4495
  opf: p.opf.slug,
4487
4496
  name: p.name,
4488
4497
  alternative_name: p.alternativeName,
4489
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4490
- manager_id: (x = p.manager) == null ? void 0 : x.id,
4498
+ partner_group_id: (x = p.partnerGroup) == null ? void 0 : x.id,
4499
+ manager_id: (a = p.manager) == null ? void 0 : a.id,
4491
4500
  comment: p.comment,
4492
4501
  director_name: p.directorName,
4493
4502
  director_position: p.directorPosition,
@@ -4617,7 +4626,7 @@ class Ot extends Ce {
4617
4626
  correspondent_account: s.correspondentAccount,
4618
4627
  currency_id: s.currency.id
4619
4628
  },
4620
- (o) => new be(o.data),
4629
+ (o) => new Te(o.data),
4621
4630
  i
4622
4631
  );
4623
4632
  }
@@ -4643,7 +4652,7 @@ class Ot extends Ce {
4643
4652
  correspondent_account: s.correspondentAccount,
4644
4653
  currency_id: s.currency.id
4645
4654
  },
4646
- (o) => new be(o.data),
4655
+ (o) => new Te(o.data),
4647
4656
  i
4648
4657
  );
4649
4658
  }
@@ -4970,7 +4979,7 @@ class Ut {
4970
4979
  return {
4971
4980
  // 'Следующий рабочий день' - это значение по-умолчанию
4972
4981
  nextWorkingDay: { label: "Следующий рабочий день", from: Ar(r), to: Dr(r) },
4973
- today: { label: "Сегодня", from: Fe(), to: Rr() },
4982
+ today: { label: "Сегодня", from: He(), to: Rr() },
4974
4983
  yesterday: { label: "Вчера", from: Pr(), to: vr() },
4975
4984
  tomorrow: { label: "Завтра", from: Cr(), to: wr() }
4976
4985
  };
@@ -5040,19 +5049,19 @@ class tt extends u {
5040
5049
  getManagers() {
5041
5050
  const r = "/internal/managers", e = u.getCachedResponse(r);
5042
5051
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5043
- const i = s.data.map((o) => Le.instanceInitializer(we, o));
5052
+ const i = s.data.map((o) => Ie.instanceInitializer(we, o));
5044
5053
  return i && this.cacheResponse(r, i), i;
5045
5054
  });
5046
5055
  }
5047
5056
  }
5048
- class rr extends er {
5057
+ class tr extends rr {
5049
5058
  /**
5050
5059
  * Инициализирует экземпляр класса {@link OrderInfo}.
5051
5060
  *
5052
5061
  * @param data Данные для первоначальной инициализации.
5053
5062
  */
5054
5063
  constructor(e) {
5055
- var s, i, o, l, p, g, A, $;
5064
+ var s, i, o, l, p, g, R, A;
5056
5065
  super(e);
5057
5066
  /**
5058
5067
  * Краткие данные о клиенте.
@@ -5101,8 +5110,8 @@ class rr extends er {
5101
5110
  }, this.delivery = {
5102
5111
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
5103
5112
  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(),
5104
- address: (A = e == null ? void 0 : e.delivery) != null && A.address ? new ge(e.delivery.address) : void 0,
5105
- warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new ye(e.delivery.warehouse) : void 0
5113
+ address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5114
+ warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new ye(e.delivery.warehouse) : void 0
5106
5115
  }, 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;
5107
5116
  }
5108
5117
  }
@@ -5189,7 +5198,7 @@ class st extends H {
5189
5198
  this.product = new J(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;
5190
5199
  }
5191
5200
  }
5192
- class it extends rr {
5201
+ class it extends tr {
5193
5202
  /**
5194
5203
  * Инициализирует экземпляр класса {@link Order}.
5195
5204
  *
@@ -5245,7 +5254,7 @@ class Mt extends Ce {
5245
5254
  getOrders(r, e, s) {
5246
5255
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5247
5256
  const o = { ...i.data };
5248
- return o.data = o.data.map((l) => new rr(l)), o;
5257
+ return o.data = o.data.map((l) => new tr(l)), o;
5249
5258
  });
5250
5259
  }
5251
5260
  /**
@@ -5320,7 +5329,7 @@ class Me {
5320
5329
  */
5321
5330
  t(this, "meta");
5322
5331
  var e;
5323
- this.resourceType = new Je(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 nt(s))) ?? [];
5332
+ this.resourceType = new Qe(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 nt(s))) ?? [];
5324
5333
  }
5325
5334
  }
5326
5335
  class Ft extends u {
@@ -5355,7 +5364,7 @@ class Ft extends u {
5355
5364
  }
5356
5365
  }
5357
5366
  const P = me("__references_private", () => {
5358
- const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), A = C(void 0), $ = 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), c = C(void 0);
5367
+ const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), R = C(void 0), A = C(void 0), I = C(void 0), x = C(void 0), a = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), c = C(void 0);
5359
5368
  return {
5360
5369
  /**
5361
5370
  * Список загружаемых/загруженных на данный момент значений.
@@ -5396,23 +5405,23 @@ const P = me("__references_private", () => {
5396
5405
  /**
5397
5406
  * Справочник типов оплаты заказов.
5398
5407
  */
5399
- paymentTypeReference: A,
5408
+ paymentTypeReference: R,
5400
5409
  /**
5401
5410
  * Справочник групп партнеров.
5402
5411
  */
5403
- partnerGroupReference: $,
5412
+ partnerGroupReference: A,
5404
5413
  /**
5405
5414
  * Справочник типов файлов продукктов/категорий.
5406
5415
  */
5407
- productFileTypeReference: L,
5416
+ productFileTypeReference: I,
5408
5417
  /**
5409
5418
  * Справочник типов ресурсов.
5410
5419
  */
5411
- resourceTypesReference: I,
5420
+ resourceTypesReference: x,
5412
5421
  /**
5413
5422
  * Справочник направлений продаж.
5414
5423
  */
5415
- salesDirectionsReference: x,
5424
+ salesDirectionsReference: a,
5416
5425
  /**
5417
5426
  * Справочник источников первичного интереса.
5418
5427
  */
@@ -5433,87 +5442,87 @@ const P = me("__references_private", () => {
5433
5442
  }), Ht = me("references", () => {
5434
5443
  const n = v(() => {
5435
5444
  const c = P();
5436
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
5445
+ return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5437
5446
  c.channelPrimaryInterestReference = h;
5438
5447
  }).catch(y)), c.channelPrimaryInterestReference;
5439
5448
  }), r = v(() => {
5440
5449
  const c = P();
5441
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((h) => {
5450
+ return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5442
5451
  c.contactPositionsReference = h;
5443
5452
  }).catch(y)), c.contactPositionsReference;
5444
5453
  }), e = v(() => {
5445
5454
  const c = P();
5446
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((h) => {
5455
+ return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5447
5456
  c.currencyReference = h;
5448
5457
  }).catch(y)), c.currencyReference;
5449
5458
  }), s = v(() => {
5450
5459
  const c = P();
5451
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((h) => {
5460
+ return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5452
5461
  c.opfReference = h;
5453
5462
  }).catch(y)), c.opfReference;
5454
5463
  }), i = v(() => {
5455
5464
  const c = P();
5456
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((h) => {
5465
+ return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5457
5466
  c.orderPaymentStatusReference = h;
5458
5467
  }).catch(y)), c.orderPaymentStatusReference;
5459
5468
  }), o = v(() => {
5460
5469
  const c = P();
5461
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((h) => {
5470
+ return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5462
5471
  c.orderStatusReference = h;
5463
5472
  }).catch(y)), c.orderStatusReference;
5464
5473
  }), l = v(() => {
5465
5474
  const c = P();
5466
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((h) => {
5475
+ return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5467
5476
  c.paymentTypeReference = h;
5468
5477
  }).catch(y)), c.paymentTypeReference;
5469
5478
  }), p = v(() => {
5470
5479
  const c = P();
5471
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((h) => {
5480
+ return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5472
5481
  c.partnerGroupReference = h;
5473
5482
  }).catch(y)), c.partnerGroupReference;
5474
5483
  }), g = v(() => {
5475
5484
  const c = P();
5476
- return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((h) => {
5485
+ return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5477
5486
  c.productFileTypeReference = h;
5478
5487
  }).catch(y)), c.productFileTypeReference;
5479
- }), A = v(() => {
5488
+ }), R = v(() => {
5480
5489
  const c = P();
5481
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((h) => {
5490
+ return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5482
5491
  c.resourceTypesReference = h;
5483
5492
  }).catch(y)), c.resourceTypesReference;
5484
- }), $ = v(() => {
5493
+ }), A = v(() => {
5485
5494
  const c = P();
5486
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
5495
+ return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5487
5496
  c.salesDirectionsReference = h;
5488
5497
  }).catch(y)), c.salesDirectionsReference;
5489
- }), L = v(() => {
5498
+ }), I = v(() => {
5490
5499
  const c = P();
5491
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
5500
+ return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5492
5501
  c.sourcePrimaryInterestReference = h;
5493
5502
  }).catch(y)), c.sourcePrimaryInterestReference;
5494
- }), I = v(() => {
5503
+ }), x = v(() => {
5495
5504
  const c = P();
5496
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((h) => {
5505
+ return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5497
5506
  c.deliveryTypeReference = h;
5498
5507
  }).catch(y)), c.deliveryTypeReference;
5499
- }), x = v(() => {
5508
+ }), a = v(() => {
5500
5509
  const c = P();
5501
5510
  return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5502
5511
  c.managersList = h;
5503
5512
  }).catch(y)), c.managersList;
5504
5513
  }), k = v(() => {
5505
5514
  const c = P();
5506
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((h) => {
5515
+ return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5507
5516
  c.warehousesReference = h;
5508
5517
  }).catch(y)), c.warehousesReference;
5509
5518
  }), N = v(() => {
5510
5519
  const c = P();
5511
- return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
5520
+ return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5512
5521
  c.propertyTypesReference = h;
5513
5522
  }).catch(y)), c.propertyTypesReference;
5514
5523
  }), d = v(() => {
5515
5524
  const c = P();
5516
- return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
5525
+ return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5517
5526
  c.priceCoefficientsReference = h;
5518
5527
  }).catch(y)), c.priceCoefficientsReference;
5519
5528
  });
@@ -5557,23 +5566,23 @@ const P = me("__references_private", () => {
5557
5566
  /**
5558
5567
  * Справочник типов ресурсов.
5559
5568
  */
5560
- resourceTypesReference: A,
5569
+ resourceTypesReference: R,
5561
5570
  /**
5562
5571
  * Справочник направлений продаж.
5563
5572
  */
5564
- salesDirectionsReference: $,
5573
+ salesDirectionsReference: A,
5565
5574
  /**
5566
5575
  * Справочник каналов первичного интереса.
5567
5576
  */
5568
- sourcePrimaryInterestsReference: L,
5577
+ sourcePrimaryInterestsReference: I,
5569
5578
  /**
5570
5579
  * Справочник типов доставки.
5571
5580
  */
5572
- deliveryTypeReference: I,
5581
+ deliveryTypeReference: x,
5573
5582
  /**
5574
5583
  * Список менеджеров.
5575
5584
  */
5576
- managersList: x,
5585
+ managersList: a,
5577
5586
  /**
5578
5587
  * Справочник складов.
5579
5588
  */
@@ -5683,19 +5692,19 @@ class Wt {
5683
5692
  export {
5684
5693
  Fr as AnyReference,
5685
5694
  ft as AppBaseConfig,
5686
- T as AppConfigProvider,
5687
- be as BankAccount,
5695
+ b as AppConfigProvider,
5696
+ Te as BankAccount,
5688
5697
  Ce as BasePaginationProvider,
5689
5698
  Or as CalculationTypeEnum,
5690
5699
  oe as Cart,
5691
- Lr as CartItem,
5692
- ar as CartItemBase,
5700
+ Ir as CartItem,
5701
+ Lr as CartItemBase,
5693
5702
  yt as CartProvider,
5694
5703
  Pt as CatalogProvider,
5695
- He as CatalogableItem,
5704
+ ze as CatalogableItem,
5696
5705
  q as Category,
5697
5706
  Oe as CategoryPricingRule,
5698
- Ke as ChannelPrimaryInterest,
5707
+ Je as ChannelPrimaryInterest,
5699
5708
  vt as City,
5700
5709
  pe as CityWithRegionAndCountry,
5701
5710
  Ue as Client,
@@ -5705,11 +5714,11 @@ export {
5705
5714
  Rt as ClientPriceProvider,
5706
5715
  Dt as ClientPriceTemplateProvider,
5707
5716
  J as ClientProduct,
5708
- Tt as ClientProductCategoryDataProvider,
5709
- bt as ClientProductDataProvider,
5717
+ bt as ClientProductCategoryDataProvider,
5718
+ Tt as ClientProductDataProvider,
5710
5719
  ne as ClientShortInfo,
5711
5720
  Qr as ClientsAdditionalDataRequestTypeEnum,
5712
- xt as ClientsListFilters,
5721
+ at as ClientsListFilters,
5713
5722
  qt as ConfiguratorProvider,
5714
5723
  _e as Contact,
5715
5724
  Gr as ContactLinks,
@@ -5717,13 +5726,13 @@ export {
5717
5726
  Zr as ContactPersonRelated,
5718
5727
  Hr as ContactPosition,
5719
5728
  De as ContactRelation,
5720
- Ye as ContragentBase,
5729
+ Xe as ContragentBase,
5721
5730
  he as ContragentFactory,
5722
- Xe as ContragentIc,
5731
+ Ze as ContragentIc,
5723
5732
  Yr as ContragentPerson,
5724
5733
  Xr as ContragentUlNr,
5725
- Ze as ContragentUlR,
5726
- Ie as CostSourceEnum,
5734
+ er as ContragentUlR,
5735
+ xe as CostSourceEnum,
5727
5736
  Q as Country,
5728
5737
  ue as Currency,
5729
5738
  Bt as DataSuggestionProvider,
@@ -5734,17 +5743,17 @@ export {
5734
5743
  qr as DeletableNamedIdentity,
5735
5744
  ge as DeliveryAddress,
5736
5745
  K as DeliveryType,
5737
- Ir as DeviceTypeResolutionConfig,
5746
+ xr as DeviceTypeResolutionConfig,
5738
5747
  Ur as DiscountShortInfo,
5739
5748
  Wt as FieldValidationResultData,
5740
5749
  se as FilterGroup,
5741
5750
  de as FilterItem,
5742
- xe as FilterOpEnum,
5743
- Be as GeoCoordinates,
5751
+ ae as FilterOpEnum,
5752
+ We as GeoCoordinates,
5744
5753
  _r as HiddenCatalogableItem,
5745
- Te as HttpBaseCachedRequester,
5754
+ be as HttpBaseCachedRequester,
5746
5755
  $e as HttpBaseRequester,
5747
- xr as HttpParamsConfig,
5756
+ ar as HttpParamsConfig,
5748
5757
  u as HttpRequester,
5749
5758
  H as Identity,
5750
5759
  Sr as Image,
@@ -5753,27 +5762,27 @@ export {
5753
5762
  Gt as ManagerDataFactory,
5754
5763
  tt as ManagerDataProvider,
5755
5764
  nt as MetaTagItem,
5756
- D as NamedIdentity,
5765
+ $ as NamedIdentity,
5757
5766
  G as Opf,
5758
- b as OpfEnum,
5767
+ T as OpfEnum,
5759
5768
  it as Order,
5760
- rr as OrderInfo,
5769
+ tr as OrderInfo,
5761
5770
  zr as OrderPaymentStatus,
5762
5771
  st as OrderProduct,
5763
- er as OrderShortInfo,
5772
+ rr as OrderShortInfo,
5764
5773
  Br as OrderStatus,
5765
5774
  Mt as OrdersDataProvider,
5766
5775
  M as PartnerGroup,
5767
5776
  Wr as PaymentType,
5768
5777
  wt as PreferencesStorageProvider,
5769
5778
  Re as PriceAnalyze,
5770
- It as PriceAnalyzeProvider,
5779
+ xt as PriceAnalyzeProvider,
5771
5780
  fe as PriceCoefficient,
5772
- ze as PriceCoefficientEnum,
5781
+ Be as PriceCoefficientEnum,
5773
5782
  W as PriceTemplate,
5774
5783
  ve as PriceTemplateCategory,
5775
5784
  Y as PriceTemplateClient,
5776
- je as PriceTemplateICatalogableItem,
5785
+ Ve as PriceTemplateICatalogableItem,
5777
5786
  Pe as PriceTemplateProduct,
5778
5787
  _t as PriceTemplateProvider,
5779
5788
  Z as PricingRole,
@@ -5783,32 +5792,32 @@ export {
5783
5792
  At as ProductCategoryDataProvider,
5784
5793
  $t as ProductDataProvider,
5785
5794
  jr as ProductFileType,
5786
- ae as ProductPriceCoefficient,
5795
+ Le as ProductPriceCoefficient,
5787
5796
  Jr as ProductPriceHistory,
5788
- at as PropertiesProvider,
5797
+ Lt as PropertiesProvider,
5789
5798
  X as Property,
5790
- Ee as PropertyType,
5799
+ Ke as PropertyType,
5791
5800
  dr as PropertyTypeEnum,
5792
5801
  z as PropertyValue,
5793
- Lt as RecommendationsDataProvider,
5802
+ It as RecommendationsDataProvider,
5794
5803
  Ne as RecommendationsList,
5795
5804
  w as Reference,
5796
- R as ReferenceDataProvider,
5805
+ D as ReferenceDataProvider,
5797
5806
  te as Region,
5798
- Je as ResourceType,
5807
+ Qe as ResourceType,
5799
5808
  S as SalesDirection,
5800
5809
  kr as SentryConfig,
5801
5810
  Me as Seo,
5802
5811
  Ft as SeoDataProvider,
5803
- Qe as SourcePrimaryInterest,
5804
- br as StockCount,
5812
+ Ye as SourcePrimaryInterest,
5813
+ Tr as StockCount,
5805
5814
  Ct as TemplatesListFilters,
5806
- Le as TypedInstanceFactory,
5815
+ Ie as TypedInstanceFactory,
5807
5816
  Ge as UnitsHelper,
5808
5817
  dt as UnknownClientDataProvider,
5809
- We as UpdatableNamedIdentity,
5818
+ je as UpdatableNamedIdentity,
5810
5819
  Er as User,
5811
- Ve as UserCommonInfo,
5820
+ Ee as UserCommonInfo,
5812
5821
  Kr as UserDataProvider,
5813
5822
  U as UserShortInfo,
5814
5823
  Vr as UserTypeEnum,