@snabcentr/common-lib 1.35.0 → 1.36.1

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,12 +1,12 @@
1
1
  var Me = Object.defineProperty;
2
2
  var qe = (i, r, e) => r in i ? Me(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
3
  var s = (i, r, e) => qe(i, typeof r != "symbol" ? r + "" : r, e);
4
- import { isUndefined as Ae, cloneDeep as He, noop as f, toLower as de, isString as P, map as V, forEach as Ee, isNil as We, isEmpty as ze, isArray as Be, isFunction as Fe } from "lodash-es";
5
- import { format as je, addSeconds as Ve, parseISO as k, isAfter as Qe, startOfToday as ce, parse as E, getDay as Je, startOfTomorrow as ie, nextMonday as Ye, getUnixTime as I, endOfTomorrow as Ke, endOfYesterday as Xe, startOfYesterday as Ze, endOfToday as er, endOfDay as rr, startOfDay as sr } from "date-fns";
6
- import tr from "axios";
7
- import { objectToSnake as ve, objectToCamel as nr } from "ts-case-convert";
4
+ import { isUndefined as be, cloneDeep as He, noop as f, toLower as Ee, isString as P, map as V, forEach as We, isNil as ze, isEmpty as Be, isArray as Fe, isFunction as je } from "lodash-es";
5
+ import { format as Ve, addSeconds as Qe, parseISO as a, isAfter as Je, startOfToday as ce, parse as E, getDay as Ye, startOfTomorrow as ie, nextMonday as Ke, getUnixTime as x, endOfTomorrow as Xe, endOfYesterday as Ze, startOfYesterday as er, endOfToday as rr, endOfDay as sr, startOfDay as tr } from "date-fns";
6
+ import nr from "axios";
7
+ import { objectToSnake as ve, objectToCamel as ir } from "ts-case-convert";
8
8
  import { defineStore as ee } from "pinia";
9
- import { ref as w, computed as C } from "vue";
9
+ import { ref as C, computed as w } from "vue";
10
10
  class B {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
@@ -46,7 +46,7 @@ class b extends B {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class be extends b {
49
+ class $e extends b {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class be extends b {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class le extends be {
72
+ class le extends $e {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -156,7 +156,7 @@ class fe {
156
156
  this.coefficient = new y(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;
157
157
  }
158
158
  }
159
- class $e {
159
+ class _e {
160
160
  /**
161
161
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
162
162
  *
@@ -205,10 +205,10 @@ class re extends y {
205
205
  * Координаты склада.
206
206
  */
207
207
  s(this, "coordinates");
208
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new W(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new $e(e == null ? void 0 : e.coordinates);
208
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new W(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new _e(e == null ? void 0 : e.coordinates);
209
209
  }
210
210
  }
211
- class ir {
211
+ class or {
212
212
  /**
213
213
  * Инициализирует экземпляр класса {@link StockCount}.
214
214
  *
@@ -226,23 +226,23 @@ class ir {
226
226
  this.warehouse = new re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
227
227
  }
228
228
  }
229
- const q = class q {
229
+ const M = class M {
230
230
  /**
231
231
  * Инициализирует и возвращает конфигурацию приложения.
232
232
  *
233
233
  * @param config Данные для первоначальной инициализации.
234
234
  */
235
235
  static init(r) {
236
- q.config = r;
236
+ M.config = r;
237
237
  }
238
238
  /**
239
239
  * Возвращает текущую конфигурацию приложения.
240
240
  */
241
241
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
242
242
  static getConfig() {
243
- if (Ae(q.config))
243
+ if (be(M.config))
244
244
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
245
- return q.config;
245
+ return M.config;
246
246
  }
247
247
  /**
248
248
  * Выполняет загрузку конфигурации по указанному пути.
@@ -261,9 +261,9 @@ const q = class q {
261
261
  /**
262
262
  * Конфигурация приложения.
263
263
  */
264
- s(q, "config");
265
- let N = q;
266
- class or extends be {
264
+ s(M, "config");
265
+ let N = M;
266
+ class cr extends $e {
267
267
  /**
268
268
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
269
269
  *
@@ -278,7 +278,7 @@ class or extends be {
278
278
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
279
279
  }
280
280
  }
281
- class cr {
281
+ class lr {
282
282
  /**
283
283
  * Инициализирует экземпляр класса {@link Image}.
284
284
  *
@@ -301,7 +301,7 @@ class cr {
301
301
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
302
302
  }
303
303
  }
304
- class x extends or {
304
+ class I extends cr {
305
305
  /**
306
306
  * Инициализирует экземпляр класса {@link Product}.
307
307
  *
@@ -374,11 +374,11 @@ class x extends or {
374
374
  * Список коэффициентов цен на продукт.
375
375
  */
376
376
  s(this, "priceCoefficients");
377
- 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 = e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ir(h))) ?? [], this.type = "product";
377
+ 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 = e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new or(h))) ?? [], this.type = "product";
378
378
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
379
379
  t && (this.category = new le({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new le(h))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((h) => {
380
380
  var m;
381
- return new cr(h, (m = N.getConfig().urls) == null ? void 0 : m.mediaServer);
381
+ return new lr(h, (m = N.getConfig().urls) == null ? void 0 : m.mediaServer);
382
382
  })) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new fe(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
383
383
  }
384
384
  /**
@@ -389,7 +389,7 @@ class x extends or {
389
389
  return [...e.linear, ...e.square].includes(this.unit);
390
390
  }
391
391
  }
392
- class lr extends B {
392
+ class ur extends B {
393
393
  /**
394
394
  * Инициализирует экземпляр класса {@link CartItemBase}.
395
395
  *
@@ -441,10 +441,10 @@ class lr extends B {
441
441
  * Признак того, что позиция является дополнительной продажей.
442
442
  */
443
443
  s(this, "isAdditionalSale");
444
- this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && He(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
444
+ this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && He(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
445
445
  }
446
446
  }
447
- class ur extends lr {
447
+ class pr extends ur {
448
448
  /**
449
449
  * Инициализирует экземпляр класса {@link CartItem}.
450
450
  *
@@ -513,10 +513,10 @@ class j {
513
513
  * Список итоговых сумм по направлениям продаж.
514
514
  */
515
515
  s(this, "directionsSum");
516
- this.items = r.items.map((e) => new ur(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
516
+ this.items = r.items.map((e) => new pr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
517
517
  }
518
518
  }
519
- class pr {
519
+ class hr {
520
520
  /**
521
521
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
522
522
  *
@@ -538,7 +538,7 @@ class pr {
538
538
  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;
539
539
  }
540
540
  }
541
- class hr {
541
+ class gr {
542
542
  /**
543
543
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
544
544
  *
@@ -556,7 +556,7 @@ class hr {
556
556
  this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
557
557
  }
558
558
  }
559
- class gr {
559
+ class mr {
560
560
  /**
561
561
  * Инициализирует экземпляр класса {@link SentryConfig}.
562
562
  *
@@ -601,7 +601,7 @@ class gr {
601
601
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
602
602
  }
603
603
  }
604
- class mr {
604
+ class fr {
605
605
  /**
606
606
  * Инициализирует экземпляр класса {@link VersionConfig}.
607
607
  *
@@ -620,10 +620,10 @@ class mr {
620
620
  * Текущая версия приложения.
621
621
  */
622
622
  s(this, "version");
623
- this.date = (r == null ? void 0 : r.date) ?? je(/* @__PURE__ */ new Date(), "dd.MM.yyyy"), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
623
+ this.date = (r == null ? void 0 : r.date) ?? Ve(/* @__PURE__ */ new Date(), "dd.MM.yyyy"), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
624
624
  }
625
625
  }
626
- class jr {
626
+ class Vr {
627
627
  /**
628
628
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
629
629
  *
@@ -666,16 +666,16 @@ class jr {
666
666
  * Данные о текущем выпуске приложения.
667
667
  */
668
668
  s(this, "version");
669
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new hr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new pr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
669
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new gr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new hr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
670
670
  units: {
671
671
  linear: ["пог.м.", "м."],
672
672
  square: ["м2"]
673
673
  },
674
674
  ...r == null ? void 0 : r.products
675
- }, this.sentry = new gr({
675
+ }, this.sentry = new mr({
676
676
  environment: this.environment,
677
677
  ...r == null ? void 0 : r.sentry
678
- }), this.urls = r == null ? void 0 : r.urls, this.version = new mr(r == null ? void 0 : r.version);
678
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new fr(r == null ? void 0 : r.version);
679
679
  }
680
680
  }
681
681
  class ye {
@@ -718,7 +718,7 @@ const $ = class $ {
718
718
  */
719
719
  s(this, "defaultInstanceNotificationErrorResponseHandler", f);
720
720
  const t = N.getConfig().version;
721
- this.defaultInstanceNotificationErrorResponseHandler = $.baseDefaultNotificationErrorResponseHandler, this.httpClient = tr.create({
721
+ this.defaultInstanceNotificationErrorResponseHandler = $.baseDefaultNotificationErrorResponseHandler, this.httpClient = nr.create({
722
722
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
723
723
  baseURL: r,
724
724
  headers: {
@@ -728,10 +728,10 @@ const $ = class $ {
728
728
  ...e
729
729
  }
730
730
  }), this.httpClient.interceptors.request.use(
731
- (n) => (n.method && (n.method === "get" && n.params && (n.params = ve(n.params)), ["put", "patch", "post"].includes(de(n.method)) && n.data && (n.data = ve(n.data))), n),
731
+ (n) => (n.method && (n.method === "get" && n.params && (n.params = ve(n.params)), ["put", "patch", "post"].includes(Ee(n.method)) && n.data && (n.data = ve(n.data))), n),
732
732
  (n) => Promise.reject(n)
733
733
  ), this.httpClient.interceptors.response.use(
734
- (n) => (n.data && (n.data = nr(n.data)), n),
734
+ (n) => (n.data && (n.data = ir(n.data)), n),
735
735
  // Возвращаем изменённую структуру сообщения об ошибке.
736
736
  (n) => $.convertHttpErrorResponse(n)
737
737
  );
@@ -841,7 +841,7 @@ s($, "instances", {}), /**
841
841
  */
842
842
  s($, "baseDefaultNotificationErrorResponseHandler", f);
843
843
  let ue = $;
844
- const H = class H extends ue {
844
+ const q = class q extends ue {
845
845
  /**
846
846
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
847
847
  *
@@ -864,7 +864,7 @@ const H = class H extends ue {
864
864
  * @param url URL запроса.
865
865
  */
866
866
  static getCachedResponse(e) {
867
- const t = H.responseDataCache.get(e);
867
+ const t = q.responseDataCache.get(e);
868
868
  if (t && t.validTo > /* @__PURE__ */ new Date())
869
869
  return t.val;
870
870
  }
@@ -875,8 +875,8 @@ const H = class H extends ue {
875
875
  * @param data Данные для кэширования.
876
876
  */
877
877
  cacheResponse(e, t) {
878
- H.responseDataCache.set(e, {
879
- validTo: Ve(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
878
+ q.responseDataCache.set(e, {
879
+ validTo: Qe(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
880
880
  val: t
881
881
  });
882
882
  }
@@ -890,7 +890,7 @@ const H = class H extends ue {
890
890
  */
891
891
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
892
892
  getTypedDataArrayRequester(e, t, n = !1) {
893
- const o = n ? H.getCachedResponse(t) : void 0;
893
+ const o = n ? q.getCachedResponse(t) : void 0;
894
894
  return o ? Promise.resolve(o) : this.get(t).then((l) => {
895
895
  const u = l.map((h) => ye.instanceInitializer(e, h));
896
896
  return n && u && this.cacheResponse(t, u), u;
@@ -900,8 +900,8 @@ const H = class H extends ue {
900
900
  /**
901
901
  * Кэш результатов запросов.
902
902
  */
903
- s(H, "responseDataCache", /* @__PURE__ */ new Map());
904
- let pe = H;
903
+ s(q, "responseDataCache", /* @__PURE__ */ new Map());
904
+ let pe = q;
905
905
  class g extends pe {
906
906
  /**
907
907
  * Инициализирует экземпляр класса {@link HttpRequester}.
@@ -912,7 +912,7 @@ class g extends pe {
912
912
  (t = r.devMode) != null && t.authBearerToken && (e.Authorization = `Bearer ${(n = r.devMode) == null ? void 0 : n.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
913
913
  }
914
914
  }
915
- class Vr extends g {
915
+ class Qr extends g {
916
916
  /**
917
917
  * Возвращает содержимое корзины указанного клиента.
918
918
  *
@@ -1016,7 +1016,7 @@ class Vr extends g {
1016
1016
  }
1017
1017
  }
1018
1018
  var Se = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Se || {});
1019
- class M extends me {
1019
+ class k extends me {
1020
1020
  /**
1021
1021
  * Инициализирует экземпляр класса {@link Category}.
1022
1022
  *
@@ -1033,10 +1033,10 @@ class M extends me {
1033
1033
  * Список продуктов категории.
1034
1034
  */
1035
1035
  s(this, "products");
1036
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new M(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new x(o));
1036
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new k(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new I(o));
1037
1037
  }
1038
1038
  }
1039
- class _e extends b {
1039
+ class Te extends b {
1040
1040
  /**
1041
1041
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1042
1042
  *
@@ -1051,7 +1051,7 @@ class _e extends b {
1051
1051
  this.updatedAt = e == null ? void 0 : e.updatedAt;
1052
1052
  }
1053
1053
  }
1054
- class fr extends _e {
1054
+ class yr extends Te {
1055
1055
  /**
1056
1056
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1057
1057
  *
@@ -1063,10 +1063,10 @@ class fr extends _e {
1063
1063
  * Дата и время последнего удаления в формате Y-m-d H:i:s.
1064
1064
  */
1065
1065
  s(this, "deletedAt");
1066
- this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ? k(e.deletedAt) : e.deletedAt : void 0;
1066
+ this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ? a(e.deletedAt) : e.deletedAt : void 0;
1067
1067
  }
1068
1068
  }
1069
- class Qr {
1069
+ class Jr {
1070
1070
  /**
1071
1071
  * Возвращает актуальные и не просроченные данные из хранилища.
1072
1072
  *
@@ -1077,7 +1077,7 @@ class Qr {
1077
1077
  if (e)
1078
1078
  try {
1079
1079
  const t = JSON.parse(e);
1080
- if (Qe(k(t.availableFor) || ce(), /* @__PURE__ */ new Date()))
1080
+ if (Je(a(t.availableFor) || ce(), /* @__PURE__ */ new Date()))
1081
1081
  return t.data || {};
1082
1082
  } catch {
1083
1083
  localStorage.removeItem(r);
@@ -1100,7 +1100,7 @@ class Qr {
1100
1100
  );
1101
1101
  }
1102
1102
  }
1103
- class a extends b {
1103
+ class O extends b {
1104
1104
  /**
1105
1105
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1106
1106
  *
@@ -1115,7 +1115,7 @@ class a extends b {
1115
1115
  this.type = e == null ? void 0 : e.type;
1116
1116
  }
1117
1117
  }
1118
- class yr extends b {
1118
+ class Cr extends b {
1119
1119
  /**
1120
1120
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1121
1121
  *
@@ -1151,10 +1151,10 @@ class yr extends b {
1151
1151
  * Дата и время удаления в формате Y-m-d H:i:s.
1152
1152
  */
1153
1153
  s(this, "deletedAt");
1154
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? P(e.publishedAt) ? k(e.publishedAt) : e.publishedAt : void 0, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new a(e == null ? void 0 : e.owner), this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ? k(e.deletedAt) : e.deletedAt : void 0;
1154
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? P(e.publishedAt) ? a(e.publishedAt) : e.publishedAt : void 0, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new O(e == null ? void 0 : e.owner), this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ? a(e.deletedAt) : e.deletedAt : void 0;
1155
1155
  }
1156
1156
  }
1157
- class wr extends _e {
1157
+ class wr extends Te {
1158
1158
  /**
1159
1159
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1160
1160
  *
@@ -1170,10 +1170,10 @@ class wr extends _e {
1170
1170
  * Дата и время создания шаблона.
1171
1171
  */
1172
1172
  s(this, "createdAt");
1173
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? P(e.createdAt) ? k(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
1173
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? P(e.createdAt) ? a(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
1174
1174
  }
1175
1175
  }
1176
- class se extends x {
1176
+ class se extends I {
1177
1177
  /**
1178
1178
  * Инициализирует экземпляр класса {@link ClientProduct}.
1179
1179
  *
@@ -1209,10 +1209,10 @@ class se extends x {
1209
1209
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1210
1210
  */
1211
1211
  s(this, "isFavorite");
1212
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new yr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new wr(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;
1212
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new Cr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new wr(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;
1213
1213
  }
1214
1214
  }
1215
- class Cr {
1215
+ class vr {
1216
1216
  /**
1217
1217
  * Инициализирует экземпляр класса {@link ContactLinks}.
1218
1218
  *
@@ -1230,7 +1230,7 @@ class Cr {
1230
1230
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1231
1231
  }
1232
1232
  }
1233
- class S extends y {
1233
+ class _ extends y {
1234
1234
  }
1235
1235
  class Q extends b {
1236
1236
  /**
@@ -1243,7 +1243,7 @@ class Q extends b {
1243
1243
  /**
1244
1244
  * Направление продаж.
1245
1245
  */
1246
- s(this, "salesDirection", new S());
1246
+ s(this, "salesDirection", new _());
1247
1247
  /**
1248
1248
  * URI путь к фотографии пользователя.
1249
1249
  */
@@ -1256,7 +1256,7 @@ class Q extends b {
1256
1256
  * Признак того, что менеджер является основным для клиента.
1257
1257
  */
1258
1258
  s(this, "isDefault");
1259
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Cr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1259
+ e && (this.salesDirection = new _(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new vr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1260
1260
  }
1261
1261
  }
1262
1262
  class te extends Q {
@@ -1290,7 +1290,7 @@ class te extends Q {
1290
1290
  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;
1291
1291
  }
1292
1292
  }
1293
- class vr extends me {
1293
+ class Dr extends me {
1294
1294
  /**
1295
1295
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1296
1296
  *
@@ -1321,7 +1321,7 @@ class vr extends me {
1321
1321
  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 te(e.manager) : void 0;
1322
1322
  }
1323
1323
  }
1324
- class J extends vr {
1324
+ class J extends Dr {
1325
1325
  /**
1326
1326
  * Инициализирует экземпляр класса {@link ClientCategory}.
1327
1327
  *
@@ -1341,11 +1341,11 @@ class J extends vr {
1341
1341
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new J(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new se(o));
1342
1342
  }
1343
1343
  }
1344
- class Dr extends y {
1344
+ class Pr extends y {
1345
1345
  }
1346
- class Te extends y {
1346
+ class Le extends y {
1347
1347
  }
1348
- class Jr extends y {
1348
+ class Yr extends y {
1349
1349
  }
1350
1350
  class z extends y {
1351
1351
  }
@@ -1379,7 +1379,7 @@ class Y extends y {
1379
1379
  e && (this.region = new F(e.region));
1380
1380
  }
1381
1381
  }
1382
- class Pr extends y {
1382
+ class Rr extends y {
1383
1383
  }
1384
1384
  class K extends b {
1385
1385
  /**
@@ -1401,12 +1401,12 @@ class K extends b {
1401
1401
  }
1402
1402
  }
1403
1403
  var A = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(A || {});
1404
- class O extends y {
1404
+ class d extends y {
1405
1405
  /**
1406
1406
  * Возвращает сгенерированную запись-описание физического лица.
1407
1407
  */
1408
1408
  static generatePersonItem() {
1409
- return new O({
1409
+ return new d({
1410
1410
  id: 1,
1411
1411
  guid: "",
1412
1412
  slug: A.Person,
@@ -1414,18 +1414,18 @@ class O extends y {
1414
1414
  });
1415
1415
  }
1416
1416
  }
1417
- class Rr extends y {
1418
- }
1419
1417
  class Ar extends y {
1420
1418
  }
1421
- class G extends y {
1422
- }
1423
1419
  class br extends y {
1424
1420
  }
1425
- class Le extends y {
1421
+ class G extends y {
1422
+ }
1423
+ class $r extends y {
1426
1424
  }
1427
1425
  class Ie extends y {
1428
1426
  }
1427
+ class xe extends y {
1428
+ }
1429
1429
  class D extends g {
1430
1430
  /**
1431
1431
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -1435,20 +1435,20 @@ class D extends g {
1435
1435
  * и использовать в случае аналогичных запросов.
1436
1436
  */
1437
1437
  getReference(r, e = !1) {
1438
- return this.getTypedDataArrayRequester(Dr, `/internal/references/${r}`, e);
1438
+ return this.getTypedDataArrayRequester(Pr, `/internal/references/${r}`, e);
1439
1439
  }
1440
1440
  /**
1441
1441
  * Возвращает {@link Promise} для получения справочника данных о канале
1442
1442
  * первичного интереса.
1443
1443
  */
1444
1444
  getChannelPrimaryInterest() {
1445
- return this.getTypedDataArrayRequester(Te, "/internal/references/channel-primary-interest", !0);
1445
+ return this.getTypedDataArrayRequester(Le, "/internal/references/channel-primary-interest", !0);
1446
1446
  }
1447
1447
  /**
1448
1448
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1449
1449
  */
1450
1450
  getContactPositions() {
1451
- return this.getTypedDataArrayRequester(Pr, "/internal/references/contact-position", !0);
1451
+ return this.getTypedDataArrayRequester(Rr, "/internal/references/contact-position", !0);
1452
1452
  }
1453
1453
  /**
1454
1454
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1467,43 +1467,43 @@ class D extends g {
1467
1467
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
1468
1468
  */
1469
1469
  getOpf() {
1470
- return this.getTypedDataArrayRequester(O, "/public/references/opf", !0);
1470
+ return this.getTypedDataArrayRequester(d, "/public/references/opf", !0);
1471
1471
  }
1472
1472
  /**
1473
1473
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1474
1474
  */
1475
1475
  getOrderPaymentStatuses() {
1476
- return this.getTypedDataArrayRequester(Rr, "/public/references/order-payment-status", !0);
1476
+ return this.getTypedDataArrayRequester(Ar, "/public/references/order-payment-status", !0);
1477
1477
  }
1478
1478
  /**
1479
1479
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1480
1480
  */
1481
1481
  getOrderStatuses() {
1482
- return this.getTypedDataArrayRequester(Ar, "/public/references/order-status", !0);
1482
+ return this.getTypedDataArrayRequester(br, "/public/references/order-status", !0);
1483
1483
  }
1484
1484
  /**
1485
1485
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1486
1486
  */
1487
1487
  getPaymentTypes() {
1488
- return this.getTypedDataArrayRequester(br, "/public/references/payment-type", !0);
1488
+ return this.getTypedDataArrayRequester($r, "/public/references/payment-type", !0);
1489
1489
  }
1490
1490
  /**
1491
1491
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1492
1492
  */
1493
1493
  getResourceTypes() {
1494
- return this.getTypedDataArrayRequester(Le, "/internal/references/resource-type", !0);
1494
+ return this.getTypedDataArrayRequester(Ie, "/internal/references/resource-type", !0);
1495
1495
  }
1496
1496
  /**
1497
1497
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
1498
1498
  */
1499
1499
  getSalesDirections() {
1500
- return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
1500
+ return this.getTypedDataArrayRequester(_, "/public/references/sales-direction", !0);
1501
1501
  }
1502
1502
  /**
1503
1503
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1504
1504
  */
1505
1505
  getSourcePrimaryInterest() {
1506
- return this.getTypedDataArrayRequester(Ie, "/internal/references/source-primary-interest", !0);
1506
+ return this.getTypedDataArrayRequester(xe, "/internal/references/source-primary-interest", !0);
1507
1507
  }
1508
1508
  /**
1509
1509
  * Выполняет поиск данных о городах по терму в названии.
@@ -1542,8 +1542,8 @@ class D extends g {
1542
1542
  return this.getTypedDataArrayRequester(re, "/public/references/warehouse", !0);
1543
1543
  }
1544
1544
  }
1545
- var $r = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))($r || {});
1546
- class xe extends b {
1545
+ var _r = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(_r || {});
1546
+ class ke extends b {
1547
1547
  /**
1548
1548
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1549
1549
  *
@@ -1579,10 +1579,10 @@ class xe extends b {
1579
1579
  * Признак активности учетной записи пользователя.
1580
1580
  */
1581
1581
  s(this, "isActive");
1582
- 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 = P(e == null ? void 0 : e.createdAt) ? k(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = P(e == null ? void 0 : e.lastLoginAt) ? k(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1582
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new _(e.salesDirection) : void 0, this.createdAt = P(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = P(e == null ? void 0 : e.lastLoginAt) ? a(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1583
1583
  }
1584
1584
  }
1585
- class Sr extends xe {
1585
+ class Sr extends ke {
1586
1586
  /**
1587
1587
  * Инициализирует экземпляр класса {@link User}.
1588
1588
  *
@@ -1605,7 +1605,7 @@ class Sr extends xe {
1605
1605
  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;
1606
1606
  }
1607
1607
  }
1608
- class _r extends g {
1608
+ class Tr extends g {
1609
1609
  /**
1610
1610
  * Возвращает данные о текущем пользователе.
1611
1611
  */
@@ -1614,7 +1614,7 @@ class _r extends g {
1614
1614
  return this.get("/internal/users/info", {}, (r) => new Sr(r.data));
1615
1615
  }
1616
1616
  }
1617
- class Tr {
1617
+ class Lr {
1618
1618
  /**
1619
1619
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1620
1620
  *
@@ -1657,10 +1657,28 @@ class Tr {
1657
1657
  * Данные о валюте.
1658
1658
  */
1659
1659
  s(this, "currency");
1660
- this.cost = r.cost, this.costDate = r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new a(r.client) : void 0, this.executor = r.executor ? new a(r.executor) : void 0, this.currency = r.currency ? new K(r.currency) : void 0;
1660
+ this.cost = r.cost, this.costDate = r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new O(r.client) : void 0, this.executor = r.executor ? new O(r.executor) : void 0, this.currency = r.currency ? new K(r.currency) : void 0;
1661
1661
  }
1662
1662
  }
1663
- class Yr extends g {
1663
+ class De {
1664
+ /**
1665
+ * Инициализирует экземпляр класса {@link RecommendationsList}.
1666
+ *
1667
+ * @param data Данные для первоначальной инициализации.
1668
+ */
1669
+ constructor(r) {
1670
+ /**
1671
+ * Список рекомендованных продуктов.
1672
+ */
1673
+ s(this, "products", []);
1674
+ /**
1675
+ * Список рекомендованных категорий продуктов.
1676
+ */
1677
+ s(this, "productCategories", []);
1678
+ r != null && r.products && (this.products = r.products.map((e) => new I(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new k(e)));
1679
+ }
1680
+ }
1681
+ class Kr extends g {
1664
1682
  /**
1665
1683
  * Возвращает данные о результатах поиска категорий и товаров.
1666
1684
  *
@@ -1676,7 +1694,7 @@ class Yr extends g {
1676
1694
  });
1677
1695
  }
1678
1696
  }
1679
- class Kr extends g {
1697
+ class Xr extends g {
1680
1698
  /**
1681
1699
  * Возвращает список данных о корневых категориях.
1682
1700
  *
@@ -1690,7 +1708,7 @@ class Kr extends g {
1690
1708
  {
1691
1709
  showHidden: r
1692
1710
  },
1693
- (e) => e.data.map((t) => new M(t))
1711
+ (e) => e.data.map((t) => new k(t))
1694
1712
  );
1695
1713
  }
1696
1714
  /**
@@ -1709,7 +1727,7 @@ class Kr extends g {
1709
1727
  showHidden: e,
1710
1728
  withNestedCategories: t
1711
1729
  },
1712
- (n) => new M(n.data)
1730
+ (n) => new k(n.data)
1713
1731
  );
1714
1732
  }
1715
1733
  /**
@@ -1718,7 +1736,7 @@ class Kr extends g {
1718
1736
  * @param categoryID Идентификатор категории продуктов.
1719
1737
  */
1720
1738
  getPublicCategoryData(r) {
1721
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new M(e.data));
1739
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new k(e.data));
1722
1740
  }
1723
1741
  /**
1724
1742
  * Возвращает список продуктов категории.
@@ -1736,7 +1754,7 @@ class Kr extends g {
1736
1754
  showHidden: t,
1737
1755
  withPriceCoefficients: e
1738
1756
  },
1739
- (n) => V(n.data, (o) => new x(o))
1757
+ (n) => V(n.data, (o) => new I(o))
1740
1758
  );
1741
1759
  }
1742
1760
  /**
@@ -1749,7 +1767,7 @@ class Kr extends g {
1749
1767
  getCategoryProductsCoefficients(r) {
1750
1768
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
1751
1769
  const t = { ...e.data };
1752
- return Ee(t, (n) => n.map((o) => new fe(o))), t;
1770
+ return We(t, (n) => n.map((o) => new fe(o))), t;
1753
1771
  });
1754
1772
  }
1755
1773
  /**
@@ -1761,14 +1779,14 @@ class Kr extends g {
1761
1779
  publicSimpleSearch(r, e = 10) {
1762
1780
  return new Promise((t, n) => {
1763
1781
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
1764
- t(o.categories.map((l) => new M(l)));
1782
+ t(o.categories.map((l) => new k(l)));
1765
1783
  }).catch((o) => {
1766
1784
  n(o);
1767
1785
  });
1768
1786
  });
1769
1787
  }
1770
1788
  }
1771
- class Xr extends g {
1789
+ class Zr extends g {
1772
1790
  /**
1773
1791
  * Возвращает данные об указанном продукте.
1774
1792
  *
@@ -1778,7 +1796,7 @@ class Xr extends g {
1778
1796
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
1779
1797
  */
1780
1798
  getProductData(r, e = !1) {
1781
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new x(t.data));
1799
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new I(t.data));
1782
1800
  }
1783
1801
  /**
1784
1802
  * Возвращает публичные данные об указанном продукте.
@@ -1786,7 +1804,7 @@ class Xr extends g {
1786
1804
  * @param productId Идентификатор продукта.
1787
1805
  */
1788
1806
  getPublicProductData(r) {
1789
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new x(e.data));
1807
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
1790
1808
  }
1791
1809
  /**
1792
1810
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -1808,7 +1826,7 @@ class Xr extends g {
1808
1826
  */
1809
1827
  getProductPriceHistory(r, e) {
1810
1828
  const t = {};
1811
- return We(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => V(n.data, (o) => new Tr(o)));
1829
+ return ze(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => V(n.data, (o) => new Lr(o)));
1812
1830
  }
1813
1831
  /**
1814
1832
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -1819,14 +1837,14 @@ class Xr extends g {
1819
1837
  publicSimpleSearch(r, e = 10) {
1820
1838
  return new Promise((t, n) => {
1821
1839
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
1822
- t(o.products.map((l) => new x(l)));
1840
+ t(o.products.map((l) => new I(l)));
1823
1841
  }).catch((o) => {
1824
1842
  n(o);
1825
1843
  });
1826
1844
  });
1827
1845
  }
1828
1846
  }
1829
- class Zr extends g {
1847
+ class es extends g {
1830
1848
  /**
1831
1849
  * Возвращает список данных о корневых категориях указанного клиента.
1832
1850
  *
@@ -1888,7 +1906,7 @@ class Zr extends g {
1888
1906
  );
1889
1907
  }
1890
1908
  }
1891
- class es extends g {
1909
+ class rs extends g {
1892
1910
  /**
1893
1911
  * Возвращает данные об указанном продукте для указанного клиента.
1894
1912
  *
@@ -1909,7 +1927,7 @@ class es extends g {
1909
1927
  );
1910
1928
  }
1911
1929
  }
1912
- class we extends g {
1930
+ class Ce extends g {
1913
1931
  /**
1914
1932
  * Получает пагинированный список данных.
1915
1933
  *
@@ -1925,12 +1943,12 @@ class we extends g {
1925
1943
  page: (n == null ? void 0 : n.page) ?? 1,
1926
1944
  per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
1927
1945
  };
1928
- return e && (u.filters = JSON.stringify(e)), ze(t) || (Be(t) ? t : [t]).forEach((h, m) => {
1946
+ return e && (u.filters = JSON.stringify(e)), Be(t) || (Fe(t) ? t : [t]).forEach((h, m) => {
1929
1947
  u[`sort[${m}][field]`] = h.field, u[`sort[${m}][direction]`] = h.direction;
1930
1948
  }), this.get(r, u, o, l);
1931
1949
  }
1932
1950
  }
1933
- class rs extends we {
1951
+ class ss extends Ce {
1934
1952
  /**
1935
1953
  * Возвращает пагинированный список свойств.
1936
1954
  *
@@ -2280,7 +2298,49 @@ class rs extends we {
2280
2298
  return this.patch(`/internal/catalog/categories/${r}/properties/slug`, { slug: e });
2281
2299
  }
2282
2300
  }
2283
- var Lr = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(Lr || {});
2301
+ class ts extends g {
2302
+ /**
2303
+ * Возвращает данные о рекомендациях указанной категории продуктов.
2304
+ *
2305
+ * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
2306
+ */
2307
+ getProductCategoryRecommendations(r) {
2308
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new De(e.data));
2309
+ }
2310
+ /**
2311
+ * Возвращает данные о рекомендациях указанного продукта.
2312
+ *
2313
+ * @param product Данные о продукте, для которого необходимо получить рекомендации.
2314
+ */
2315
+ getProductRecommendations(r) {
2316
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new De(e.data));
2317
+ }
2318
+ /**
2319
+ * Выполняет сохранение данных о рекомендуемых категориях продуктов.
2320
+ *
2321
+ * @param productCategory Данные о категории для которой необходимо сохранить список рекомендуемых товаров.
2322
+ * @param recommendations Список рекомендованных продуктов и категорий.
2323
+ */
2324
+ saveProductCategoryRecommendations(r, e) {
2325
+ return this.post(`/internal/catalog/recommendations/categories/${r.id}`, {
2326
+ product_categories: e.productCategories.map((t) => t.id),
2327
+ products: e.products.map((t) => t.id)
2328
+ });
2329
+ }
2330
+ /**
2331
+ * Выполняет сохранение данных о рекомендуемых продуктах.
2332
+ *
2333
+ * @param product Данные о продукте для которого необходимо сохранить список рекомендуемых товаров.
2334
+ * @param recommendations Список рекомендованных продуктов и категорий.
2335
+ */
2336
+ saveProductRecommendations(r, e) {
2337
+ return this.post(`/internal/catalog/recommendations/products/${r.id}`, {
2338
+ product_categories: e.productCategories.map((t) => t.id),
2339
+ products: e.products.map((t) => t.id)
2340
+ });
2341
+ }
2342
+ }
2343
+ var Ir = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(Ir || {});
2284
2344
  class he extends B {
2285
2345
  /**
2286
2346
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -2366,7 +2426,7 @@ class U extends ge {
2366
2426
  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 = e == null ? void 0 : e.deletedAt;
2367
2427
  }
2368
2428
  }
2369
- class ke extends b {
2429
+ class ae extends b {
2370
2430
  /**
2371
2431
  * Инициализирует экземпляр класса {@link ContragentBase}.
2372
2432
  *
@@ -2382,11 +2442,11 @@ class ke extends b {
2382
2442
  /**
2383
2443
  * Данные об организационно-правовой форме.
2384
2444
  */
2385
- s(this, "opf", O.generatePersonItem());
2445
+ s(this, "opf", d.generatePersonItem());
2386
2446
  /**
2387
2447
  * Направление продаж.
2388
2448
  */
2389
- s(this, "salesDirection", new S());
2449
+ s(this, "salesDirection", new _());
2390
2450
  /**
2391
2451
  * Группа партнеров (направление деятельности).
2392
2452
  */
@@ -2424,7 +2484,7 @@ class ke extends b {
2424
2484
  */
2425
2485
  s(this, "updater");
2426
2486
  if (e) {
2427
- if (this.opf = new O(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = P(e == null ? void 0 : e.createdAt) ? E(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new a(e.creator) : void 0, this.updatedAt = P(e == null ? void 0 : e.updatedAt) ? E(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new a(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new Q(e.manager)), e.contacts) {
2487
+ if (this.opf = new d(e.opf), this.salesDirection = new _(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = P(e == null ? void 0 : e.createdAt) ? E(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new O(e.creator) : void 0, this.updatedAt = P(e == null ? void 0 : e.updatedAt) ? E(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new O(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new Q(e.manager)), e.contacts) {
2428
2488
  const t = [];
2429
2489
  e.contacts.forEach((n) => {
2430
2490
  t.push(new U(n));
@@ -2439,7 +2499,7 @@ class ke extends b {
2439
2499
  }
2440
2500
  }
2441
2501
  }
2442
- class Ir extends ke {
2502
+ class xr extends ae {
2443
2503
  /**
2444
2504
  * Инициализирует экземпляр класса {@link ContragentPerson}.
2445
2505
  *
@@ -2449,7 +2509,7 @@ class Ir extends ke {
2449
2509
  super(r);
2450
2510
  }
2451
2511
  }
2452
- class Ne extends ke {
2512
+ class Ne extends ae {
2453
2513
  /**
2454
2514
  * Инициализирует экземпляр класса {@link ContragentIc}.
2455
2515
  *
@@ -2492,7 +2552,7 @@ class Ne extends ke {
2492
2552
  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 ?? "");
2493
2553
  }
2494
2554
  }
2495
- class ae extends Ne {
2555
+ class Oe extends Ne {
2496
2556
  /**
2497
2557
  * Инициализирует экземпляр класса {@link ContragentUlR}.
2498
2558
  *
@@ -2507,7 +2567,7 @@ class ae extends Ne {
2507
2567
  e && (this.kpp = e.kpp ?? "");
2508
2568
  }
2509
2569
  }
2510
- class xr extends ae {
2570
+ class kr extends Oe {
2511
2571
  /**
2512
2572
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
2513
2573
  *
@@ -2541,15 +2601,15 @@ class X {
2541
2601
  case A.Ic:
2542
2602
  return new Ne(r);
2543
2603
  case A.UlR:
2544
- return new ae(r);
2604
+ return new Oe(r);
2545
2605
  case A.UlNr:
2546
- return new xr(r);
2606
+ return new kr(r);
2547
2607
  default:
2548
- return new Ir(r);
2608
+ return new xr(r);
2549
2609
  }
2550
2610
  }
2551
2611
  }
2552
- class Ce extends xe {
2612
+ class we extends ke {
2553
2613
  /**
2554
2614
  * Инициализирует экземпляр класса {@link Client}.
2555
2615
  *
@@ -2591,7 +2651,7 @@ class Ce extends xe {
2591
2651
  * Список менеджеров клиента.
2592
2652
  */
2593
2653
  s(this, "managers");
2594
- 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 Y(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 = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((n) => new Q(n))) ?? [];
2654
+ this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Y(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 = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((n) => new Q(n))) ?? [];
2595
2655
  }
2596
2656
  }
2597
2657
  class oe extends B {
@@ -2609,7 +2669,7 @@ class oe extends B {
2609
2669
  this.isPrimary = e.isPrimary;
2610
2670
  }
2611
2671
  }
2612
- class kr extends U {
2672
+ class ar extends U {
2613
2673
  /**
2614
2674
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
2615
2675
  *
@@ -2637,7 +2697,7 @@ class kr extends U {
2637
2697
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new oe(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new oe(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new oe(t))));
2638
2698
  }
2639
2699
  }
2640
- class Z extends fr {
2700
+ class Z extends yr {
2641
2701
  /**
2642
2702
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
2643
2703
  *
@@ -2674,10 +2734,10 @@ class Z extends fr {
2674
2734
  * Признак того, что указанный адрес является адресом транспортной компании.
2675
2735
  */
2676
2736
  s(this, "isTransportCompanyAddress");
2677
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new $e(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new U(n))) ?? [], 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;
2737
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new _e(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new U(n))) ?? [], 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;
2678
2738
  }
2679
2739
  }
2680
- class De extends Ce {
2740
+ class Pe extends we {
2681
2741
  /**
2682
2742
  * Инициализирует экземпляр класса {@link Client}.
2683
2743
  *
@@ -2731,10 +2791,10 @@ class De extends Ce {
2731
2791
  * Дополнительные данные о клиенте.
2732
2792
  */
2733
2793
  s(this, "extraData");
2734
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => X.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new G(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new U(u))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((u) => new Z(u))) ?? [], this.channelPrimaryInterest = new Te(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ie(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new W(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 re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
2794
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => X.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new G(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new U(u))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((u) => new Z(u))) ?? [], this.channelPrimaryInterest = new Le(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new xe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new W(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 re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
2735
2795
  }
2736
2796
  }
2737
- class ss {
2797
+ class ns {
2738
2798
  /**
2739
2799
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
2740
2800
  *
@@ -2838,7 +2898,7 @@ class ss {
2838
2898
  }, this.lastLoginDate = {
2839
2899
  from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
2840
2900
  to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
2841
- }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((m) => new te(m)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new O(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new W(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new ge(r == null ? void 0 : r.contact), this.lastOrder = {
2901
+ }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((m) => new te(m)) : [], this.salesDirection = new _(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new d(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new W(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new ge(r == null ? void 0 : r.contact), this.lastOrder = {
2842
2902
  createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
2843
2903
  creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
2844
2904
  isApproved: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.isApproved
@@ -2884,10 +2944,10 @@ class ss {
2884
2944
  this.managers = [];
2885
2945
  break;
2886
2946
  case "salesDirection":
2887
- this.salesDirection = new S();
2947
+ this.salesDirection = new _();
2888
2948
  break;
2889
2949
  case "contragentType":
2890
- this.contragentType = new O();
2950
+ this.contragentType = new d();
2891
2951
  break;
2892
2952
  case "preferredDeliveryType":
2893
2953
  this.preferredDeliveryType = new W();
@@ -2914,11 +2974,11 @@ class ss {
2914
2974
  return Object.keys(this).forEach((l) => {
2915
2975
  const u = this[l];
2916
2976
  // eslint-disable-next-line prettier/prettier
2917
- Ae(u) || P(u) && u.trim().length === 0 || Fe(u.isNewRec) && u.isNewRec() || (r[l] = u);
2977
+ be(u) || P(u) && u.trim().length === 0 || je(u.isNewRec) && u.isNewRec() || (r[l] = u);
2918
2978
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.lastLoginDate) != null && n.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
2919
2979
  }
2920
2980
  }
2921
- class Oe extends B {
2981
+ class de extends B {
2922
2982
  /**
2923
2983
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
2924
2984
  *
@@ -2938,10 +2998,10 @@ class Oe extends B {
2938
2998
  * Признак того, что заказ подтвержден в 1С.
2939
2999
  */
2940
3000
  s(this, "isApproved1c");
2941
- this.createdAt = P(e == null ? void 0 : e.createdAt) ? E(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new a(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3001
+ this.createdAt = P(e == null ? void 0 : e.createdAt) ? E(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new O(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
2942
3002
  }
2943
3003
  }
2944
- class Ge extends Oe {
3004
+ class Ge extends de {
2945
3005
  /**
2946
3006
  * Инициализирует экземпляр класса {@link OrderInfo}.
2947
3007
  *
@@ -2990,7 +3050,7 @@ class Ge extends Oe {
2990
3050
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
2991
3051
  */
2992
3052
  s(this, "isNotInStock");
2993
- this.client = new Ce(e == null ? void 0 : e.client), this.payment = {
3053
+ this.client = new we(e == null ? void 0 : e.client), this.payment = {
2994
3054
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
2995
3055
  status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
2996
3056
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
@@ -2999,7 +3059,7 @@ class Ge extends Oe {
2999
3059
  date: P((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? E(e == null ? void 0 : e.delivery.date, "dd.MM.yyyy", /* @__PURE__ */ new Date()) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
3000
3060
  address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Z(e.delivery.address) : void 0,
3001
3061
  warehouse: (R = e == null ? void 0 : e.delivery) != null && R.warehouse ? new re(e.delivery.warehouse) : void 0
3002
- }, this.attachedUser = new a(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 = P(e == null ? void 0 : e.pendingAt) ? E(e == null ? void 0 : e.pendingAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.pendingAt) ?? /* @__PURE__ */ new Date(), this.processedAt = P(e == null ? void 0 : e.processedAt) ? E(e == null ? void 0 : e.processedAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.processedAt) ?? /* @__PURE__ */ new Date(), this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
3062
+ }, this.attachedUser = new O(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.pendingAt = P(e == null ? void 0 : e.pendingAt) ? E(e == null ? void 0 : e.pendingAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.pendingAt) ?? /* @__PURE__ */ new Date(), this.processedAt = P(e == null ? void 0 : e.processedAt) ? E(e == null ? void 0 : e.processedAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.processedAt) ?? /* @__PURE__ */ new Date(), this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
3003
3063
  }
3004
3064
  }
3005
3065
  class Nr extends B {
@@ -3085,7 +3145,7 @@ class Nr extends B {
3085
3145
  this.product = new se(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;
3086
3146
  }
3087
3147
  }
3088
- class ar extends Ge {
3148
+ class Or extends Ge {
3089
3149
  /**
3090
3150
  * Инициализирует экземпляр класса {@link Order}.
3091
3151
  *
@@ -3128,7 +3188,7 @@ class ar extends Ge {
3128
3188
  this.products = (e.products ?? []).map((t) => new Nr(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? X.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new y(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
3129
3189
  }
3130
3190
  }
3131
- class ts extends we {
3191
+ class is extends Ce {
3132
3192
  /**
3133
3193
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
3134
3194
  *
@@ -3158,10 +3218,10 @@ class ts extends we {
3158
3218
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
3159
3219
  */
3160
3220
  getOrder(r) {
3161
- return this.get(`/internal/orders/${r}`, {}, (e) => new ar(e.data));
3221
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Or(e.data));
3162
3222
  }
3163
3223
  }
3164
- class Or extends b {
3224
+ class dr extends b {
3165
3225
  /**
3166
3226
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
3167
3227
  *
@@ -3186,7 +3246,7 @@ class Or extends b {
3186
3246
  * Данные о последнем заказе клиента.
3187
3247
  */
3188
3248
  s(this, "lastOrder");
3189
- (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new U(o))), e.lastOrder && (this.lastOrder = new Oe(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new W(e.preferredDeliveryType));
3249
+ (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new U(o))), e.lastOrder && (this.lastOrder = new de(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new W(e.preferredDeliveryType));
3190
3250
  }
3191
3251
  }
3192
3252
  var Ue = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Ue || {});
@@ -3214,7 +3274,7 @@ class Gr {
3214
3274
  this.page = (r == null ? void 0 : r.page) ?? 1, this.perPage = (r == null ? void 0 : r.perPage) ?? 50, this.pageSize = (r == null ? void 0 : r.pageSize) ?? this.perPage;
3215
3275
  }
3216
3276
  }
3217
- class ns extends Gr {
3277
+ class os extends Gr {
3218
3278
  /**
3219
3279
  * Инициализирует экземпляр класса {@link DataTablePagination}.
3220
3280
  *
@@ -3245,7 +3305,7 @@ class ns extends Gr {
3245
3305
  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;
3246
3306
  }
3247
3307
  }
3248
- class is {
3308
+ class cs {
3249
3309
  /**
3250
3310
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
3251
3311
  *
@@ -3263,7 +3323,7 @@ class is {
3263
3323
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
3264
3324
  }
3265
3325
  }
3266
- class os extends we {
3326
+ class ls extends Ce {
3267
3327
  /**
3268
3328
  * Возвращает данные об указанном клиенте.
3269
3329
  *
@@ -3271,7 +3331,7 @@ class os extends we {
3271
3331
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
3272
3332
  */
3273
3333
  getClient(r) {
3274
- return this.get(`/internal/clients/${r}`, {}, (e) => new De(e.data));
3334
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Pe(e.data));
3275
3335
  }
3276
3336
  /**
3277
3337
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -3284,7 +3344,7 @@ class os extends we {
3284
3344
  getClientsList(r, e, t) {
3285
3345
  return this.getPaginated("/internal/clients", r, e, t, (n) => {
3286
3346
  const o = { ...n.data };
3287
- return o.data = o.data.map((l) => new Ce(l)), o;
3347
+ return o.data = o.data.map((l) => new we(l)), o;
3288
3348
  });
3289
3349
  }
3290
3350
  /**
@@ -3310,7 +3370,7 @@ class os extends we {
3310
3370
  getAdditionalClientsData(r, e) {
3311
3371
  return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (t) => {
3312
3372
  let n = [];
3313
- return (t == null ? void 0 : t.data.length) > 0 && (n = t.data.map((o) => new Or(o))), n;
3373
+ return (t == null ? void 0 : t.data.length) > 0 && (n = t.data.map((o) => new dr(o))), n;
3314
3374
  });
3315
3375
  }
3316
3376
  /**
@@ -3322,7 +3382,7 @@ class os extends we {
3322
3382
  getAllClientContacts(r) {
3323
3383
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
3324
3384
  let t = [];
3325
- return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new kr(n))), t;
3385
+ return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new ar(n))), t;
3326
3386
  });
3327
3387
  }
3328
3388
  /**
@@ -3352,7 +3412,7 @@ class os extends we {
3352
3412
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
3353
3413
  preferred_warehouse_id: (t = r.preferredWarehouse) == null ? void 0 : t.id
3354
3414
  },
3355
- (n) => new De(n.data),
3415
+ (n) => new Pe(n.data),
3356
3416
  e
3357
3417
  );
3358
3418
  }
@@ -3462,7 +3522,7 @@ class os extends we {
3462
3522
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
3463
3523
  */
3464
3524
  createContragentClientData(r, e, t = {}) {
3465
- var h, m, R, _, T, L, c, p;
3525
+ var h, m, R, S, T, L, c, p;
3466
3526
  let n;
3467
3527
  const o = e, l = e, u = e;
3468
3528
  switch (e.opf.slug) {
@@ -3490,7 +3550,7 @@ class os extends we {
3490
3550
  name: l.name,
3491
3551
  alternative_name: l.alternativeName,
3492
3552
  partner_group_id: (R = l.partnerGroup) == null ? void 0 : R.id,
3493
- manager_id: (_ = l.manager) == null ? void 0 : _.id,
3553
+ manager_id: (S = l.manager) == null ? void 0 : S.id,
3494
3554
  comment: l.comment,
3495
3555
  inn: l.inn,
3496
3556
  kpp: l.kpp,
@@ -3554,7 +3614,7 @@ class os extends we {
3554
3614
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
3555
3615
  */
3556
3616
  updateContragentClientData(r, e, t = {}) {
3557
- var h, m, R, _, T, L, c, p;
3617
+ var h, m, R, S, T, L, c, p;
3558
3618
  let n;
3559
3619
  const o = e, l = e, u = e;
3560
3620
  switch (e.opf.slug) {
@@ -3582,7 +3642,7 @@ class os extends we {
3582
3642
  name: l.name,
3583
3643
  alternative_name: l.alternativeName,
3584
3644
  partner_group_id: (R = l.partnerGroup) == null ? void 0 : R.id,
3585
- manager_id: (_ = l.manager) == null ? void 0 : _.id,
3645
+ manager_id: (S = l.manager) == null ? void 0 : S.id,
3586
3646
  comment: l.comment,
3587
3647
  inn: l.inn,
3588
3648
  kpp: l.kpp,
@@ -3993,7 +4053,7 @@ class os extends we {
3993
4053
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
3994
4054
  }
3995
4055
  }
3996
- class cs extends g {
4056
+ class us extends g {
3997
4057
  /**
3998
4058
  * Выполняет проверку занят ли указанный номер телефона.
3999
4059
  *
@@ -4007,7 +4067,7 @@ class cs extends g {
4007
4067
  });
4008
4068
  }
4009
4069
  }
4010
- class ls extends g {
4070
+ class ps extends g {
4011
4071
  /**
4012
4072
  * Возвращает настройки указанного конфигуратора для указанной категории.
4013
4073
  *
@@ -4035,7 +4095,7 @@ class ls extends g {
4035
4095
  const n = this.get(
4036
4096
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
4037
4097
  { params: e },
4038
- (l) => new x(l.data)
4098
+ (l) => new I(l.data)
4039
4099
  );
4040
4100
  return n.catch((l) => {
4041
4101
  this.defaultInstanceNotificationErrorResponseHandler(l, t);
@@ -4078,7 +4138,7 @@ class ls extends g {
4078
4138
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(t = r.properties) == null ? void 0 : t.editor}/template/${e}`);
4079
4139
  }
4080
4140
  }
4081
- class us {
4141
+ class hs {
4082
4142
  /**
4083
4143
  * Возвращает Unix Timestamp диапазон дат (в секундах) по умолчанию.
4084
4144
  *
@@ -4088,24 +4148,24 @@ class us {
4088
4148
  * Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
4089
4149
  */
4090
4150
  static defaultDateRanges() {
4091
- const r = [0, 6].includes(Je(ie())) ? Ye(ce()) : ie();
4151
+ const r = [0, 6].includes(Ye(ie())) ? Ke(ce()) : ie();
4092
4152
  return {
4093
4153
  // 'Следующий рабочий день' - это значение по-умолчанию
4094
- nextWorkingDay: { label: "Следующий рабочий день", from: I(sr(r)), to: I(rr(r)) },
4095
- today: { label: "Сегодня", from: I(ce()), to: I(er()) },
4096
- yesterday: { label: "Вчера", from: I(Ze()), to: I(Xe()) },
4097
- tomorrow: { label: "Завтра", from: I(ie()), to: I(Ke()) }
4154
+ nextWorkingDay: { label: "Следующий рабочий день", from: x(tr(r)), to: x(sr(r)) },
4155
+ today: { label: "Сегодня", from: x(ce()), to: x(rr()) },
4156
+ yesterday: { label: "Вчера", from: x(er()), to: x(Ze()) },
4157
+ tomorrow: { label: "Завтра", from: x(ie()), to: x(Xe()) }
4098
4158
  };
4099
4159
  }
4100
4160
  }
4101
- const d = class d {
4161
+ const H = class H {
4102
4162
  /**
4103
4163
  * Устанавливает список единиц измерения линейной величины.
4104
4164
  *
4105
4165
  * @param linearValues Список единиц измерения линейной величины.
4106
4166
  */
4107
4167
  static setLinearValues(r) {
4108
- d.linearValues = r;
4168
+ H.linearValues = r;
4109
4169
  }
4110
4170
  /**
4111
4171
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -4113,7 +4173,7 @@ const d = class d {
4113
4173
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
4114
4174
  */
4115
4175
  static productIsMeasurable(r) {
4116
- return d.linearValues.includes(r.unit);
4176
+ return H.linearValues.includes(r.unit);
4117
4177
  }
4118
4178
  /**
4119
4179
  * Возвращает кратность количества для указанного товара.
@@ -4122,7 +4182,7 @@ const d = class d {
4122
4182
  */
4123
4183
  static getProductMultiplicity(r) {
4124
4184
  var e, t;
4125
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !d.productIsMeasurable(r) ? r.properties.minCount : 1;
4185
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !H.productIsMeasurable(r) ? r.properties.minCount : 1;
4126
4186
  }
4127
4187
  /**
4128
4188
  * Возвращает кратность длины для указанного товара.
@@ -4137,9 +4197,9 @@ const d = class d {
4137
4197
  /**
4138
4198
  * Список единиц измерения линейной величины.
4139
4199
  */
4140
- s(d, "linearValues", ["пог.м.", "м.", "м2"]);
4141
- let Pe = d;
4142
- class ps {
4200
+ s(H, "linearValues", ["пог.м.", "м.", "м2"]);
4201
+ let Re = H;
4202
+ class gs {
4143
4203
  /**
4144
4204
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
4145
4205
  */
@@ -4185,7 +4245,7 @@ class Mr {
4185
4245
  this.name = r.name, this.content = r.content;
4186
4246
  }
4187
4247
  }
4188
- class Re {
4248
+ class Ae {
4189
4249
  /**
4190
4250
  * Инициализирует экземпляр класса {@link Seo}.
4191
4251
  *
@@ -4221,10 +4281,10 @@ class Re {
4221
4281
  */
4222
4282
  s(this, "meta");
4223
4283
  var e;
4224
- this.resourceType = new Le(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((t) => new Mr(t))) ?? [];
4284
+ this.resourceType = new Ie(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((t) => new Mr(t))) ?? [];
4225
4285
  }
4226
4286
  }
4227
- class hs extends g {
4287
+ class ms extends g {
4228
4288
  /**
4229
4289
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
4230
4290
  *
@@ -4232,7 +4292,7 @@ class hs extends g {
4232
4292
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
4233
4293
  */
4234
4294
  getResourceSeoData(r, e) {
4235
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Re(t.data));
4295
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Ae(t.data));
4236
4296
  }
4237
4297
  /**
4238
4298
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -4243,7 +4303,7 @@ class hs extends g {
4243
4303
  * в случае ошибок в запросах.
4244
4304
  */
4245
4305
  saveResourceSeoData(r, e = {}) {
4246
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Re(t.data), e);
4306
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Ae(t.data), e);
4247
4307
  }
4248
4308
  /**
4249
4309
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -4256,7 +4316,7 @@ class hs extends g {
4256
4316
  }
4257
4317
  }
4258
4318
  const v = ee("__references_private", () => {
4259
- const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), h = w(void 0), m = w(void 0), R = w(void 0), _ = w(void 0), T = w(void 0), L = w(void 0), c = w(void 0);
4319
+ const i = C({}), r = C(void 0), e = C(void 0), t = C(void 0), n = C(void 0), o = C(void 0), l = C(void 0), u = C(void 0), h = C(void 0), m = C(void 0), R = C(void 0), S = C(void 0), T = C(void 0), L = C(void 0), c = C(void 0);
4260
4320
  return {
4261
4321
  /**
4262
4322
  * Список загружаемых/загруженных на данный момент значений.
@@ -4305,7 +4365,7 @@ const v = ee("__references_private", () => {
4305
4365
  /**
4306
4366
  * Справочник типов ресурсов.
4307
4367
  */
4308
- resourceTypesReference: _,
4368
+ resourceTypesReference: S,
4309
4369
  /**
4310
4370
  * Справочник направлений продаж.
4311
4371
  */
@@ -4319,73 +4379,73 @@ const v = ee("__references_private", () => {
4319
4379
  */
4320
4380
  warehousesReference: c
4321
4381
  };
4322
- }), gs = ee("references", () => {
4323
- const i = C(() => {
4382
+ }), fs = ee("references", () => {
4383
+ const i = w(() => {
4324
4384
  const c = v();
4325
4385
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, g.getInstance(D).getChannelPrimaryInterest().then((p) => {
4326
4386
  c.channelPrimaryInterestReference = p;
4327
4387
  }).catch(f)), c.channelPrimaryInterestReference;
4328
- }), r = C(() => {
4388
+ }), r = w(() => {
4329
4389
  const c = v();
4330
4390
  return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, g.getInstance(D).getContactPositions().then((p) => {
4331
4391
  c.contactPositionsReference = p;
4332
4392
  }).catch(f)), c.contactPositionsReference;
4333
- }), e = C(() => {
4393
+ }), e = w(() => {
4334
4394
  const c = v();
4335
4395
  return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, g.getInstance(D).getCurrency().then((p) => {
4336
4396
  c.currencyReference = p;
4337
4397
  }).catch(f)), c.currencyReference;
4338
- }), t = C(() => {
4398
+ }), t = w(() => {
4339
4399
  const c = v();
4340
4400
  return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, g.getInstance(D).getOpf().then((p) => {
4341
4401
  c.opfReference = p;
4342
4402
  }).catch(f)), c.opfReference;
4343
- }), n = C(() => {
4403
+ }), n = w(() => {
4344
4404
  const c = v();
4345
4405
  return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, g.getInstance(D).getOrderPaymentStatuses().then((p) => {
4346
4406
  c.orderPaymentStatusReference = p;
4347
4407
  }).catch(f)), c.orderPaymentStatusReference;
4348
- }), o = C(() => {
4408
+ }), o = w(() => {
4349
4409
  const c = v();
4350
4410
  return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, g.getInstance(D).getOrderStatuses().then((p) => {
4351
4411
  c.orderStatusReference = p;
4352
4412
  }).catch(f)), c.orderStatusReference;
4353
- }), l = C(() => {
4413
+ }), l = w(() => {
4354
4414
  const c = v();
4355
4415
  return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, g.getInstance(D).getPaymentTypes().then((p) => {
4356
4416
  c.paymentTypeReference = p;
4357
4417
  }).catch(f)), c.paymentTypeReference;
4358
- }), u = C(() => {
4418
+ }), u = w(() => {
4359
4419
  const c = v();
4360
4420
  return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, g.getInstance(D).getPartnerGroup().then((p) => {
4361
4421
  c.partnerGroupReference = p;
4362
4422
  }).catch(f)), c.partnerGroupReference;
4363
- }), h = C(() => {
4423
+ }), h = w(() => {
4364
4424
  const c = v();
4365
4425
  return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, g.getInstance(D).getResourceTypes().then((p) => {
4366
4426
  c.resourceTypesReference = p;
4367
4427
  }).catch(f)), c.resourceTypesReference;
4368
- }), m = C(() => {
4428
+ }), m = w(() => {
4369
4429
  const c = v();
4370
4430
  return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, g.getInstance(D).getSalesDirections().then((p) => {
4371
4431
  c.salesDirectionsReference = p;
4372
4432
  }).catch(f)), c.salesDirectionsReference;
4373
- }), R = C(() => {
4433
+ }), R = w(() => {
4374
4434
  const c = v();
4375
4435
  return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, g.getInstance(D).getSourcePrimaryInterest().then((p) => {
4376
4436
  c.sourcePrimaryInterestReference = p;
4377
4437
  }).catch(f)), c.sourcePrimaryInterestReference;
4378
- }), _ = C(() => {
4438
+ }), S = w(() => {
4379
4439
  const c = v();
4380
4440
  return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, g.getInstance(D).getDeliveryTypes().then((p) => {
4381
4441
  c.deliveryTypeReference = p;
4382
4442
  }).catch(f)), c.deliveryTypeReference;
4383
- }), T = C(() => {
4443
+ }), T = w(() => {
4384
4444
  const c = v();
4385
4445
  return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, g.getInstance(Ur).getManagers().then((p) => {
4386
4446
  c.managersList = p;
4387
4447
  }).catch(f)), c.managersList;
4388
- }), L = C(() => {
4448
+ }), L = w(() => {
4389
4449
  const c = v();
4390
4450
  return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, g.getInstance(D).getWarehouses().then((p) => {
4391
4451
  c.warehousesReference = p;
@@ -4439,7 +4499,7 @@ const v = ee("__references_private", () => {
4439
4499
  /**
4440
4500
  * Справочник типов доставки.
4441
4501
  */
4442
- deliveryTypeReference: _,
4502
+ deliveryTypeReference: S,
4443
4503
  /**
4444
4504
  * Список менеджеров.
4445
4505
  */
@@ -4450,7 +4510,7 @@ const v = ee("__references_private", () => {
4450
4510
  warehousesReference: L
4451
4511
  };
4452
4512
  }), qr = ee("__user_state_private", () => {
4453
- const i = w({}), r = w(void 0);
4513
+ const i = C({}), r = C(void 0);
4454
4514
  return {
4455
4515
  /**
4456
4516
  * Список загружаемых/загруженных на данный момент значений.
@@ -4461,18 +4521,18 @@ const v = ee("__references_private", () => {
4461
4521
  */
4462
4522
  currentUser: r
4463
4523
  };
4464
- }), ms = ee("user_state", () => ({
4524
+ }), ys = ee("user_state", () => ({
4465
4525
  /**
4466
4526
  * Данные о текущем пользователе.
4467
4527
  */
4468
- currentUser: C(() => {
4528
+ currentUser: w(() => {
4469
4529
  const r = qr();
4470
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, g.getInstance(_r).getCurrentUser().then((e) => {
4530
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, g.getInstance(Tr).getCurrentUser().then((e) => {
4471
4531
  r.currentUser = e;
4472
4532
  }).catch(f).finally(f)), r.currentUser;
4473
4533
  })
4474
4534
  }));
4475
- class fs extends g {
4535
+ class Cs extends g {
4476
4536
  /**
4477
4537
  * Возвращает подсказки по адресам.
4478
4538
  *
@@ -4519,7 +4579,7 @@ class fs extends g {
4519
4579
  });
4520
4580
  }
4521
4581
  }
4522
- class ys {
4582
+ class ws {
4523
4583
  /**
4524
4584
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
4525
4585
  *
@@ -4543,115 +4603,117 @@ class ys {
4543
4603
  }
4544
4604
  }
4545
4605
  export {
4546
- Dr as AnyReference,
4547
- jr as AppBaseConfig,
4606
+ Pr as AnyReference,
4607
+ Vr as AppBaseConfig,
4548
4608
  N as AppConfigProvider,
4549
4609
  he as BankAccount,
4550
- we as BasePaginationProvider,
4610
+ Ce as BasePaginationProvider,
4551
4611
  j as Cart,
4552
- ur as CartItem,
4553
- lr as CartItemBase,
4554
- Vr as CartProvider,
4555
- Yr as CatalogProvider,
4556
- be as CatalogableItem,
4557
- M as Category,
4558
- Te as ChannelPrimaryInterest,
4559
- Jr as City,
4612
+ pr as CartItem,
4613
+ ur as CartItemBase,
4614
+ Qr as CartProvider,
4615
+ Kr as CatalogProvider,
4616
+ $e as CatalogableItem,
4617
+ k as Category,
4618
+ Le as ChannelPrimaryInterest,
4619
+ Yr as City,
4560
4620
  Y as CityWithRegionAndCountry,
4561
- De as Client,
4562
- Or as ClientAdditionalData,
4621
+ Pe as Client,
4622
+ dr as ClientAdditionalData,
4563
4623
  J as ClientCategory,
4564
- os as ClientDataProvider,
4624
+ ls as ClientDataProvider,
4565
4625
  se as ClientProduct,
4566
- Zr as ClientProductCategoryDataProvider,
4567
- es as ClientProductDataProvider,
4568
- Ce as ClientShortInfo,
4569
- Lr as ClientsAdditionalDataRequestTypeEnum,
4570
- ss as ClientsListFilters,
4571
- ls as ConfiguratorProvider,
4626
+ es as ClientProductCategoryDataProvider,
4627
+ rs as ClientProductDataProvider,
4628
+ we as ClientShortInfo,
4629
+ Ir as ClientsAdditionalDataRequestTypeEnum,
4630
+ ns as ClientsListFilters,
4631
+ ps as ConfiguratorProvider,
4572
4632
  ge as Contact,
4573
- Cr as ContactLinks,
4633
+ vr as ContactLinks,
4574
4634
  U as ContactPerson,
4575
- kr as ContactPersonRelated,
4576
- Pr as ContactPosition,
4635
+ ar as ContactPersonRelated,
4636
+ Rr as ContactPosition,
4577
4637
  oe as ContactRelation,
4578
- ke as ContragentBase,
4638
+ ae as ContragentBase,
4579
4639
  X as ContragentFactory,
4580
4640
  Ne as ContragentIc,
4581
- Ir as ContragentPerson,
4582
- xr as ContragentUlNr,
4583
- ae as ContragentUlR,
4641
+ xr as ContragentPerson,
4642
+ kr as ContragentUlNr,
4643
+ Oe as ContragentUlR,
4584
4644
  Se as CostSourceEnum,
4585
4645
  z as Country,
4586
4646
  K as Currency,
4587
- fs as DataSuggestionProvider,
4588
- ns as DataTablePagination,
4647
+ Cs as DataSuggestionProvider,
4648
+ os as DataTablePagination,
4589
4649
  Gr as DataTablePaginationRequestParams,
4590
- is as DataTableSortRequestParams,
4591
- us as DateTimeProvider,
4592
- fr as DeletableNamedIdentity,
4650
+ cs as DataTableSortRequestParams,
4651
+ hs as DateTimeProvider,
4652
+ yr as DeletableNamedIdentity,
4593
4653
  Z as DeliveryAddress,
4594
4654
  W as DeliveryType,
4595
- pr as DeviceTypeResolutionConfig,
4596
- yr as DiscountShortInfo,
4597
- ys as FieldValidationResultData,
4655
+ hr as DeviceTypeResolutionConfig,
4656
+ Cr as DiscountShortInfo,
4657
+ ws as FieldValidationResultData,
4598
4658
  Ue as FilterOpEnum,
4599
- $e as GeoCoordinates,
4600
- or as HiddenCatalogableItem,
4659
+ _e as GeoCoordinates,
4660
+ cr as HiddenCatalogableItem,
4601
4661
  pe as HttpBaseCachedRequester,
4602
4662
  ue as HttpBaseRequester,
4603
- hr as HttpParamsConfig,
4663
+ gr as HttpParamsConfig,
4604
4664
  g as HttpRequester,
4605
4665
  B as Identity,
4606
- cr as Image,
4666
+ lr as Image,
4607
4667
  te as Manager,
4608
4668
  Q as ManagerCommon,
4609
- ps as ManagerDataFactory,
4669
+ gs as ManagerDataFactory,
4610
4670
  Ur as ManagerDataProvider,
4611
4671
  Mr as MetaTagItem,
4612
4672
  b as NamedIdentity,
4613
- O as Opf,
4673
+ d as Opf,
4614
4674
  A as OpfEnum,
4615
- ar as Order,
4675
+ Or as Order,
4616
4676
  Ge as OrderInfo,
4617
- Rr as OrderPaymentStatus,
4677
+ Ar as OrderPaymentStatus,
4618
4678
  Nr as OrderProduct,
4619
- Oe as OrderShortInfo,
4620
- Ar as OrderStatus,
4621
- ts as OrdersDataProvider,
4679
+ de as OrderShortInfo,
4680
+ br as OrderStatus,
4681
+ is as OrdersDataProvider,
4622
4682
  G as PartnerGroup,
4623
- br as PaymentType,
4624
- Qr as PreferencesStorageProvider,
4683
+ $r as PaymentType,
4684
+ Jr as PreferencesStorageProvider,
4625
4685
  fe as PriceCoefficient,
4626
4686
  wr as PriceTemplate,
4627
4687
  le as PrimaryCatalogableItem,
4628
- x as Product,
4629
- Kr as ProductCategoryDataProvider,
4630
- Xr as ProductDataProvider,
4631
- Tr as ProductPriceHistory,
4632
- rs as PropertiesProvider,
4688
+ I as Product,
4689
+ Xr as ProductCategoryDataProvider,
4690
+ Zr as ProductDataProvider,
4691
+ Lr as ProductPriceHistory,
4692
+ ss as PropertiesProvider,
4693
+ ts as RecommendationsDataProvider,
4694
+ De as RecommendationsList,
4633
4695
  y as Reference,
4634
4696
  D as ReferenceDataProvider,
4635
4697
  F as Region,
4636
- Le as ResourceType,
4637
- S as SalesDirection,
4638
- gr as SentryConfig,
4639
- Re as Seo,
4640
- hs as SeoDataProvider,
4641
- Ie as SourcePrimaryInterest,
4642
- ir as StockCount,
4698
+ Ie as ResourceType,
4699
+ _ as SalesDirection,
4700
+ mr as SentryConfig,
4701
+ Ae as Seo,
4702
+ ms as SeoDataProvider,
4703
+ xe as SourcePrimaryInterest,
4704
+ or as StockCount,
4643
4705
  ye as TypedInstanceFactory,
4644
- Pe as UnitsHelper,
4645
- cs as UnknownClientDataProvider,
4646
- _e as UpdatableNamedIdentity,
4706
+ Re as UnitsHelper,
4707
+ us as UnknownClientDataProvider,
4708
+ Te as UpdatableNamedIdentity,
4647
4709
  Sr as User,
4648
- xe as UserCommonInfo,
4649
- _r as UserDataProvider,
4650
- a as UserShortInfo,
4651
- $r as UserTypeEnum,
4652
- mr as VersionConfig,
4710
+ ke as UserCommonInfo,
4711
+ Tr as UserDataProvider,
4712
+ O as UserShortInfo,
4713
+ _r as UserTypeEnum,
4714
+ fr as VersionConfig,
4653
4715
  re as Warehouse,
4654
- gs as useReferencesStore,
4655
- ms as useUserStateStore
4716
+ fs as useReferencesStore,
4717
+ ys as useUserStateStore
4656
4718
  };
4657
4719
  //# sourceMappingURL=sc-common-lib.js.map