@snabcentr/common-lib 1.36.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- var Me = Object.defineProperty;
2
- var qe = (i, r, e) => r in i ? Me(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var s = (i, r, e) => qe(i, typeof r != "symbol" ? r + "" : r, e);
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
- import { defineStore as ee } from "pinia";
9
- import { ref as C, computed as w } from "vue";
10
- class B {
1
+ var He = Object.defineProperty;
2
+ var Ee = (i, r, e) => r in i ? He(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var s = (i, r, e) => Ee(i, typeof r != "symbol" ? r + "" : r, e);
4
+ import { isUndefined as _e, cloneDeep as We, noop as f, toLower as ze, isString as R, map as J, forEach as Be, isNil as Fe, isEmpty as je, isArray as Ve, isFunction as Qe } from "lodash-es";
5
+ import { format as Je, addSeconds as Ye, parseISO as a, isAfter as Ke, startOfToday as ue, parse as W, getDay as Xe, startOfTomorrow as ce, nextMonday as Ze, getUnixTime as x, endOfTomorrow as er, endOfYesterday as rr, startOfYesterday as sr, endOfToday as tr, endOfDay as nr, startOfDay as ir } from "date-fns";
6
+ import or from "axios";
7
+ import { objectToSnake as Pe, objectToCamel as cr } from "ts-case-convert";
8
+ import { defineStore as se } from "pinia";
9
+ import { ref as w, computed as C } from "vue";
10
+ class F {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
13
13
  *
@@ -31,7 +31,7 @@ class B {
31
31
  return this.id === -1;
32
32
  }
33
33
  }
34
- class b extends B {
34
+ class D extends F {
35
35
  /**
36
36
  * Инициализирует экземпляр класса {@link NamedIdentity}.
37
37
  *
@@ -46,7 +46,7 @@ class b extends B {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class $e extends b {
49
+ class Se extends D {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class $e 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 $e {
72
+ class pe extends Se {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -84,7 +84,7 @@ class le extends $e {
84
84
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
85
85
  }
86
86
  }
87
- class me extends le {
87
+ class ye extends pe {
88
88
  /**
89
89
  * Инициализирует экземпляр класса {@link BaseCategory}.
90
90
  *
@@ -107,7 +107,7 @@ class me extends le {
107
107
  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";
108
108
  }
109
109
  }
110
- class y extends b {
110
+ class y extends D {
111
111
  /**
112
112
  * Инициализирует экземпляр класса {@link Reference}.
113
113
  *
@@ -126,7 +126,7 @@ class y extends b {
126
126
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
127
127
  }
128
128
  }
129
- class fe {
129
+ class we {
130
130
  /**
131
131
  * Инициализирует экземпляр класса {@link PriceCoefficient}.
132
132
  *
@@ -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 Te {
160
160
  /**
161
161
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
162
162
  *
@@ -174,9 +174,9 @@ class _e {
174
174
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
175
175
  }
176
176
  }
177
- class W extends y {
177
+ class z extends y {
178
178
  }
179
- class re extends y {
179
+ class te extends y {
180
180
  /**
181
181
  * Инициализирует экземпляр класса {@link Warehouse}.
182
182
  *
@@ -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 z(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Te(e == null ? void 0 : e.coordinates);
209
209
  }
210
210
  }
211
- class or {
211
+ class lr {
212
212
  /**
213
213
  * Инициализирует экземпляр класса {@link StockCount}.
214
214
  *
@@ -223,26 +223,26 @@ class or {
223
223
  * Количество остатков товара на складе.
224
224
  */
225
225
  s(this, "count");
226
- this.warehouse = new re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
226
+ this.warehouse = new te(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
227
227
  }
228
228
  }
229
- const M = class M {
229
+ const q = class q {
230
230
  /**
231
231
  * Инициализирует и возвращает конфигурацию приложения.
232
232
  *
233
233
  * @param config Данные для первоначальной инициализации.
234
234
  */
235
235
  static init(r) {
236
- M.config = r;
236
+ q.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 (be(M.config))
243
+ if (_e(q.config))
244
244
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
245
- return M.config;
245
+ return q.config;
246
246
  }
247
247
  /**
248
248
  * Выполняет загрузку конфигурации по указанному пути.
@@ -261,9 +261,9 @@ const M = class M {
261
261
  /**
262
262
  * Конфигурация приложения.
263
263
  */
264
- s(M, "config");
265
- let N = M;
266
- class cr extends $e {
264
+ s(q, "config");
265
+ let N = q;
266
+ class ur extends Se {
267
267
  /**
268
268
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
269
269
  *
@@ -278,7 +278,7 @@ class cr extends $e {
278
278
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
279
279
  }
280
280
  }
281
- class lr {
281
+ class pr {
282
282
  /**
283
283
  * Инициализирует экземпляр класса {@link Image}.
284
284
  *
@@ -301,7 +301,7 @@ class lr {
301
301
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
302
302
  }
303
303
  }
304
- class I extends cr {
304
+ class I extends ur {
305
305
  /**
306
306
  * Инициализирует экземпляр класса {@link Product}.
307
307
  *
@@ -374,12 +374,12 @@ class I extends cr {
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 or(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 lr(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
- 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) => {
379
+ t && (this.category = new pe({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new pe(h))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((h) => {
380
380
  var m;
381
- return new lr(h, (m = N.getConfig().urls) == null ? void 0 : m.mediaServer);
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);
381
+ return new pr(h, (m = N.getConfig().urls) == null ? void 0 : m.mediaServer);
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 we(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
383
383
  }
384
384
  /**
385
385
  * Возвращает признак, что это измеряемый товар.
@@ -389,7 +389,7 @@ class I extends cr {
389
389
  return [...e.linear, ...e.square].includes(this.unit);
390
390
  }
391
391
  }
392
- class ur extends B {
392
+ class hr extends F {
393
393
  /**
394
394
  * Инициализирует экземпляр класса {@link CartItemBase}.
395
395
  *
@@ -441,10 +441,10 @@ class ur extends B {
441
441
  * Признак того, что позиция является дополнительной продажей.
442
442
  */
443
443
  s(this, "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;
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 ye(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && We(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
445
445
  }
446
446
  }
447
- class pr extends ur {
447
+ class gr extends hr {
448
448
  /**
449
449
  * Инициализирует экземпляр класса {@link CartItem}.
450
450
  *
@@ -494,7 +494,7 @@ class pr extends ur {
494
494
  this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
495
495
  }
496
496
  }
497
- class j {
497
+ class Q {
498
498
  /**
499
499
  * Инициализирует экземпляр класса {@link Cart}.
500
500
  *
@@ -513,10 +513,10 @@ class j {
513
513
  * Список итоговых сумм по направлениям продаж.
514
514
  */
515
515
  s(this, "directionsSum");
516
- this.items = r.items.map((e) => new pr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
516
+ this.items = r.items.map((e) => new gr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
517
517
  }
518
518
  }
519
- class hr {
519
+ class mr {
520
520
  /**
521
521
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
522
522
  *
@@ -538,7 +538,7 @@ class hr {
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 gr {
541
+ class fr {
542
542
  /**
543
543
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
544
544
  *
@@ -556,7 +556,7 @@ class gr {
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 mr {
559
+ class yr {
560
560
  /**
561
561
  * Инициализирует экземпляр класса {@link SentryConfig}.
562
562
  *
@@ -601,7 +601,7 @@ class mr {
601
601
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
602
602
  }
603
603
  }
604
- class fr {
604
+ class wr {
605
605
  /**
606
606
  * Инициализирует экземпляр класса {@link VersionConfig}.
607
607
  *
@@ -620,10 +620,10 @@ class fr {
620
620
  * Текущая версия приложения.
621
621
  */
622
622
  s(this, "version");
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";
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";
624
624
  }
625
625
  }
626
- class Vr {
626
+ class Jr {
627
627
  /**
628
628
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
629
629
  *
@@ -666,19 +666,19 @@ class Vr {
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 gr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new hr(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 fr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new mr(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 mr({
675
+ }, this.sentry = new yr({
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 fr(r == null ? void 0 : r.version);
678
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new wr(r == null ? void 0 : r.version);
679
679
  }
680
680
  }
681
- class ye {
681
+ class Ce {
682
682
  /**
683
683
  * Инициализирует экземпляр указанного класса.
684
684
  *
@@ -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 = nr.create({
721
+ this.defaultInstanceNotificationErrorResponseHandler = $.baseDefaultNotificationErrorResponseHandler, this.httpClient = or.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(Ee(n.method)) && n.data && (n.data = ve(n.data))), n),
731
+ (n) => (n.method && (n.method === "get" && n.params && (n.params = Pe(n.params)), ["put", "patch", "post"].includes(ze(n.method)) && n.data && (n.data = Pe(n.data))), n),
732
732
  (n) => Promise.reject(n)
733
733
  ), this.httpClient.interceptors.response.use(
734
- (n) => (n.data && (n.data = ir(n.data)), n),
734
+ (n) => (n.data && (n.data = cr(n.data)), n),
735
735
  // Возвращаем изменённую структуру сообщения об ошибке.
736
736
  (n) => $.convertHttpErrorResponse(n)
737
737
  );
@@ -750,7 +750,7 @@ const $ = class $ {
750
750
  * @param type Тип данных, которыми оперирует метод.
751
751
  */
752
752
  static getInstance(r) {
753
- return Object.prototype.hasOwnProperty.call($.instances, r.name) || ($.instances[r.name] = ye.simpleInstanceInitializer(r)), $.instances[r.name];
753
+ return Object.prototype.hasOwnProperty.call($.instances, r.name) || ($.instances[r.name] = Ce.simpleInstanceInitializer(r)), $.instances[r.name];
754
754
  }
755
755
  /**
756
756
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -840,8 +840,8 @@ s($, "instances", {}), /**
840
840
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
841
841
  */
842
842
  s($, "baseDefaultNotificationErrorResponseHandler", f);
843
- let ue = $;
844
- const q = class q extends ue {
843
+ let he = $;
844
+ const H = class H extends he {
845
845
  /**
846
846
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
847
847
  *
@@ -864,7 +864,7 @@ const q = class q extends ue {
864
864
  * @param url URL запроса.
865
865
  */
866
866
  static getCachedResponse(e) {
867
- const t = q.responseDataCache.get(e);
867
+ const t = H.responseDataCache.get(e);
868
868
  if (t && t.validTo > /* @__PURE__ */ new Date())
869
869
  return t.val;
870
870
  }
@@ -875,8 +875,8 @@ const q = class q extends ue {
875
875
  * @param data Данные для кэширования.
876
876
  */
877
877
  cacheResponse(e, t) {
878
- q.responseDataCache.set(e, {
879
- validTo: Qe(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
878
+ H.responseDataCache.set(e, {
879
+ validTo: Ye(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
880
880
  val: t
881
881
  });
882
882
  }
@@ -890,9 +890,9 @@ const q = class q 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 ? q.getCachedResponse(t) : void 0;
893
+ const o = n ? H.getCachedResponse(t) : void 0;
894
894
  return o ? Promise.resolve(o) : this.get(t).then((l) => {
895
- const u = l.map((h) => ye.instanceInitializer(e, h));
895
+ const u = l.map((h) => Ce.instanceInitializer(e, h));
896
896
  return n && u && this.cacheResponse(t, u), u;
897
897
  });
898
898
  }
@@ -900,9 +900,9 @@ const q = class q extends ue {
900
900
  /**
901
901
  * Кэш результатов запросов.
902
902
  */
903
- s(q, "responseDataCache", /* @__PURE__ */ new Map());
904
- let pe = q;
905
- class g extends pe {
903
+ s(H, "responseDataCache", /* @__PURE__ */ new Map());
904
+ let ge = H;
905
+ class g extends ge {
906
906
  /**
907
907
  * Инициализирует экземпляр класса {@link HttpRequester}.
908
908
  */
@@ -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 Qr extends g {
915
+ class Yr extends g {
916
916
  /**
917
917
  * Возвращает содержимое корзины указанного клиента.
918
918
  *
@@ -921,7 +921,7 @@ class Qr extends g {
921
921
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
922
922
  */
923
923
  getCart(r) {
924
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new j(e.data));
924
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new Q(e.data));
925
925
  }
926
926
  /**
927
927
  * Удаляет всё содержимое корзины.
@@ -959,7 +959,7 @@ class Qr extends g {
959
959
  isAdditionalSale: e.isAdditionalSale,
960
960
  ...e.configuratorParams
961
961
  },
962
- (n) => new j(n.data),
962
+ (n) => new Q(n.data),
963
963
  t
964
964
  );
965
965
  }
@@ -989,7 +989,7 @@ class Qr extends g {
989
989
  isAdditionalSale: e.isAdditionalSale,
990
990
  ...e.configuratorParams
991
991
  },
992
- (n) => new j(n.data),
992
+ (n) => new Q(n.data),
993
993
  t
994
994
  );
995
995
  }
@@ -1012,11 +1012,11 @@ class Qr extends g {
1012
1012
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1013
1013
  */
1014
1014
  addCartItemFromCSV(r) {
1015
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new j(e.data));
1015
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new Q(e.data));
1016
1016
  }
1017
1017
  }
1018
- var Se = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Se || {});
1019
- class k extends me {
1018
+ var Le = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Le || {});
1019
+ class k extends ye {
1020
1020
  /**
1021
1021
  * Инициализирует экземпляр класса {@link Category}.
1022
1022
  *
@@ -1036,7 +1036,7 @@ class k extends me {
1036
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 Te extends b {
1039
+ class Ie extends D {
1040
1040
  /**
1041
1041
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1042
1042
  *
@@ -1051,7 +1051,7 @@ class Te extends b {
1051
1051
  this.updatedAt = e == null ? void 0 : e.updatedAt;
1052
1052
  }
1053
1053
  }
1054
- class yr extends Te {
1054
+ class Cr extends Ie {
1055
1055
  /**
1056
1056
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1057
1057
  *
@@ -1063,10 +1063,10 @@ class yr extends Te {
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) ? a(e.deletedAt) : e.deletedAt : void 0;
1066
+ this.deletedAt = e != null && e.deletedAt ? R(e.deletedAt) ? a(e.deletedAt) : e.deletedAt : void 0;
1067
1067
  }
1068
1068
  }
1069
- class Jr {
1069
+ class Kr {
1070
1070
  /**
1071
1071
  * Возвращает актуальные и не просроченные данные из хранилища.
1072
1072
  *
@@ -1077,7 +1077,7 @@ class Jr {
1077
1077
  if (e)
1078
1078
  try {
1079
1079
  const t = JSON.parse(e);
1080
- if (Je(a(t.availableFor) || ce(), /* @__PURE__ */ new Date()))
1080
+ if (Ke(a(t.availableFor) || ue(), /* @__PURE__ */ new Date()))
1081
1081
  return t.data || {};
1082
1082
  } catch {
1083
1083
  localStorage.removeItem(r);
@@ -1100,7 +1100,7 @@ class Jr {
1100
1100
  );
1101
1101
  }
1102
1102
  }
1103
- class O extends b {
1103
+ class O extends D {
1104
1104
  /**
1105
1105
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1106
1106
  *
@@ -1115,7 +1115,7 @@ class O extends b {
1115
1115
  this.type = e == null ? void 0 : e.type;
1116
1116
  }
1117
1117
  }
1118
- class Cr extends b {
1118
+ class vr extends D {
1119
1119
  /**
1120
1120
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1121
1121
  *
@@ -1151,10 +1151,10 @@ class Cr 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) ? 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;
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 ? R(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 ? R(e.deletedAt) ? a(e.deletedAt) : e.deletedAt : void 0;
1155
1155
  }
1156
1156
  }
1157
- class wr extends Te {
1157
+ class Dr extends Ie {
1158
1158
  /**
1159
1159
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1160
1160
  *
@@ -1170,10 +1170,10 @@ class wr extends Te {
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) ? a(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
1173
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? R(e.createdAt) ? a(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
1174
1174
  }
1175
1175
  }
1176
- class se extends I {
1176
+ class ne extends I {
1177
1177
  /**
1178
1178
  * Инициализирует экземпляр класса {@link ClientProduct}.
1179
1179
  *
@@ -1209,10 +1209,10 @@ class se extends I {
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 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;
1212
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Le.Product, this.discount = e != null && e.discount ? new vr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Dr(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 vr {
1215
+ class Pr {
1216
1216
  /**
1217
1217
  * Инициализирует экземпляр класса {@link ContactLinks}.
1218
1218
  *
@@ -1232,7 +1232,7 @@ class vr {
1232
1232
  }
1233
1233
  class _ extends y {
1234
1234
  }
1235
- class Q extends b {
1235
+ class Y extends D {
1236
1236
  /**
1237
1237
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1238
1238
  *
@@ -1256,10 +1256,10 @@ class Q extends b {
1256
1256
  * Признак того, что менеджер является основным для клиента.
1257
1257
  */
1258
1258
  s(this, "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));
1259
+ e && (this.salesDirection = new _(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Pr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1260
1260
  }
1261
1261
  }
1262
- class te extends Q {
1262
+ class ie extends Y {
1263
1263
  /**
1264
1264
  * Инициализирует экземпляр класса {@link Manager}.
1265
1265
  *
@@ -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 Dr extends me {
1293
+ class Rr extends ye {
1294
1294
  /**
1295
1295
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1296
1296
  *
@@ -1318,10 +1318,10 @@ class Dr extends me {
1318
1318
  * Данные о менеджере за которым закреплена категория.
1319
1319
  */
1320
1320
  s(this, "manager");
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;
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 ie(e.manager) : void 0;
1322
1322
  }
1323
1323
  }
1324
- class J extends Dr {
1324
+ class K extends Rr {
1325
1325
  /**
1326
1326
  * Инициализирует экземпляр класса {@link ClientCategory}.
1327
1327
  *
@@ -1338,18 +1338,62 @@ class J extends Dr {
1338
1338
  * Список продуктов категории.
1339
1339
  */
1340
1340
  s(this, "products");
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));
1341
+ 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 ne(o));
1342
1342
  }
1343
1343
  }
1344
- class Pr extends y {
1344
+ class j extends D {
1345
+ /**
1346
+ * Инициализирует экземпляр класса {@link Property}.
1347
+ *
1348
+ * @param data Данные для первоначальной инициализации.
1349
+ */
1350
+ constructor(e) {
1351
+ super(e);
1352
+ /**
1353
+ * Тип свойства.
1354
+ */
1355
+ s(this, "type");
1356
+ /**
1357
+ * Описание свойства.
1358
+ */
1359
+ s(this, "description");
1360
+ /**
1361
+ * Дополнительные метаданные свойства.
1362
+ */
1363
+ s(this, "metadata");
1364
+ this.type = (e == null ? void 0 : e.type) ?? new D(), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1365
+ }
1345
1366
  }
1346
- class Le extends y {
1367
+ class Xr extends D {
1347
1368
  }
1348
- class Yr extends y {
1369
+ class M {
1370
+ /**
1371
+ * Инициализирует экземпляр класса {@link PropertyValue}.
1372
+ *
1373
+ * @param data Данные для первоначальной инициализации.
1374
+ */
1375
+ constructor(r) {
1376
+ /**
1377
+ * Данные о свойстве.
1378
+ */
1379
+ s(this, "property");
1380
+ /**
1381
+ * Значение свойства.
1382
+ * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1383
+ */
1384
+ s(this, "value");
1385
+ this.property = (r == null ? void 0 : r.property) ?? new j(), this.value = (r == null ? void 0 : r.value) ?? "";
1386
+ }
1349
1387
  }
1350
- class z extends y {
1388
+ class Ar extends y {
1351
1389
  }
1352
- class F extends y {
1390
+ class xe extends y {
1391
+ }
1392
+ class Zr extends y {
1393
+ }
1394
+ class B extends y {
1395
+ }
1396
+ class V extends y {
1353
1397
  /**
1354
1398
  * Инициализирует экземпляр класса {@link Region}.
1355
1399
  *
@@ -1360,11 +1404,11 @@ class F extends y {
1360
1404
  /**
1361
1405
  * Данные о стране, в которой расположен регион.
1362
1406
  */
1363
- s(this, "country", new z());
1364
- e && (this.country = new z(e.country));
1407
+ s(this, "country", new B());
1408
+ e && (this.country = new B(e.country));
1365
1409
  }
1366
1410
  }
1367
- class Y extends y {
1411
+ class X extends y {
1368
1412
  /**
1369
1413
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1370
1414
  *
@@ -1375,13 +1419,13 @@ class Y extends y {
1375
1419
  /**
1376
1420
  * Данные о регионе, в котором расположен город.
1377
1421
  */
1378
- s(this, "region", new F());
1379
- e && (this.region = new F(e.region));
1422
+ s(this, "region", new V());
1423
+ e && (this.region = new V(e.region));
1380
1424
  }
1381
1425
  }
1382
- class Rr extends y {
1426
+ class br extends y {
1383
1427
  }
1384
- class K extends b {
1428
+ class Z extends D {
1385
1429
  /**
1386
1430
  * Инициализирует экземпляр класса {@link Currency}.
1387
1431
  *
@@ -1400,7 +1444,7 @@ class K extends b {
1400
1444
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
1401
1445
  }
1402
1446
  }
1403
- var A = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(A || {});
1447
+ var b = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(b || {});
1404
1448
  class d extends y {
1405
1449
  /**
1406
1450
  * Возвращает сгенерированную запись-описание физического лица.
@@ -1409,24 +1453,24 @@ class d extends y {
1409
1453
  return new d({
1410
1454
  id: 1,
1411
1455
  guid: "",
1412
- slug: A.Person,
1456
+ slug: b.Person,
1413
1457
  name: ""
1414
1458
  });
1415
1459
  }
1416
1460
  }
1417
- class Ar extends y {
1461
+ class $r extends y {
1418
1462
  }
1419
- class br extends y {
1463
+ class _r extends y {
1420
1464
  }
1421
1465
  class G extends y {
1422
1466
  }
1423
- class $r extends y {
1467
+ class Sr extends y {
1424
1468
  }
1425
- class Ie extends y {
1469
+ class ke extends y {
1426
1470
  }
1427
- class xe extends y {
1471
+ class ae extends y {
1428
1472
  }
1429
- class D extends g {
1473
+ class P extends g {
1430
1474
  /**
1431
1475
  * Возвращает {@link Promise} для получения данных указанного справочника.
1432
1476
  *
@@ -1435,26 +1479,26 @@ class D extends g {
1435
1479
  * и использовать в случае аналогичных запросов.
1436
1480
  */
1437
1481
  getReference(r, e = !1) {
1438
- return this.getTypedDataArrayRequester(Pr, `/internal/references/${r}`, e);
1482
+ return this.getTypedDataArrayRequester(Ar, `/internal/references/${r}`, e);
1439
1483
  }
1440
1484
  /**
1441
1485
  * Возвращает {@link Promise} для получения справочника данных о канале
1442
1486
  * первичного интереса.
1443
1487
  */
1444
1488
  getChannelPrimaryInterest() {
1445
- return this.getTypedDataArrayRequester(Le, "/internal/references/channel-primary-interest", !0);
1489
+ return this.getTypedDataArrayRequester(xe, "/internal/references/channel-primary-interest", !0);
1446
1490
  }
1447
1491
  /**
1448
1492
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1449
1493
  */
1450
1494
  getContactPositions() {
1451
- return this.getTypedDataArrayRequester(Rr, "/internal/references/contact-position", !0);
1495
+ return this.getTypedDataArrayRequester(br, "/internal/references/contact-position", !0);
1452
1496
  }
1453
1497
  /**
1454
1498
  * Возвращает {@link Promise} для получения справочника списка валют.
1455
1499
  */
1456
1500
  getCurrency() {
1457
- return this.getTypedDataArrayRequester(K, "/public/references/currency", !0);
1501
+ return this.getTypedDataArrayRequester(Z, "/public/references/currency", !0);
1458
1502
  }
1459
1503
  /**
1460
1504
  * Возвращает {@link Promise} для получения справочника данных
@@ -1473,25 +1517,25 @@ class D extends g {
1473
1517
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1474
1518
  */
1475
1519
  getOrderPaymentStatuses() {
1476
- return this.getTypedDataArrayRequester(Ar, "/public/references/order-payment-status", !0);
1520
+ return this.getTypedDataArrayRequester($r, "/public/references/order-payment-status", !0);
1477
1521
  }
1478
1522
  /**
1479
1523
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1480
1524
  */
1481
1525
  getOrderStatuses() {
1482
- return this.getTypedDataArrayRequester(br, "/public/references/order-status", !0);
1526
+ return this.getTypedDataArrayRequester(_r, "/public/references/order-status", !0);
1483
1527
  }
1484
1528
  /**
1485
1529
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1486
1530
  */
1487
1531
  getPaymentTypes() {
1488
- return this.getTypedDataArrayRequester($r, "/public/references/payment-type", !0);
1532
+ return this.getTypedDataArrayRequester(Sr, "/public/references/payment-type", !0);
1489
1533
  }
1490
1534
  /**
1491
1535
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1492
1536
  */
1493
1537
  getResourceTypes() {
1494
- return this.getTypedDataArrayRequester(Ie, "/internal/references/resource-type", !0);
1538
+ return this.getTypedDataArrayRequester(ke, "/internal/references/resource-type", !0);
1495
1539
  }
1496
1540
  /**
1497
1541
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1503,7 +1547,7 @@ class D extends g {
1503
1547
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1504
1548
  */
1505
1549
  getSourcePrimaryInterest() {
1506
- return this.getTypedDataArrayRequester(xe, "/internal/references/source-primary-interest", !0);
1550
+ return this.getTypedDataArrayRequester(ae, "/internal/references/source-primary-interest", !0);
1507
1551
  }
1508
1552
  /**
1509
1553
  * Выполняет поиск данных о городах по терму в названии.
@@ -1511,7 +1555,7 @@ class D extends g {
1511
1555
  * @param term Терм поиска.
1512
1556
  */
1513
1557
  searchCity(r) {
1514
- return this.getTypedDataArrayRequester(Y, `/internal/references/city-with-region-and-country/search?term=${r}`);
1558
+ return this.getTypedDataArrayRequester(X, `/internal/references/city-with-region-and-country/search?term=${r}`);
1515
1559
  }
1516
1560
  /**
1517
1561
  * Выполняет поиск данных о регионах по терму в названии.
@@ -1519,7 +1563,7 @@ class D extends g {
1519
1563
  * @param term Терм поиска.
1520
1564
  */
1521
1565
  searchRegion(r) {
1522
- return this.getTypedDataArrayRequester(F, `/internal/references/region-with-country/search?term=${r}`);
1566
+ return this.getTypedDataArrayRequester(V, `/internal/references/region-with-country/search?term=${r}`);
1523
1567
  }
1524
1568
  /**
1525
1569
  * Выполняет поиск данных о странах по терму в названии.
@@ -1527,23 +1571,23 @@ class D extends g {
1527
1571
  * @param term Терм поиска.
1528
1572
  */
1529
1573
  searchCountry(r) {
1530
- return this.getTypedDataArrayRequester(z, `/internal/references/country/search?term=${r}`);
1574
+ return this.getTypedDataArrayRequester(B, `/internal/references/country/search?term=${r}`);
1531
1575
  }
1532
1576
  /**
1533
1577
  * Возвращает {@link Promise} для получения справочника типов доставки.
1534
1578
  */
1535
1579
  getDeliveryTypes() {
1536
- return this.getTypedDataArrayRequester(W, "/internal/references/delivery-type", !0);
1580
+ return this.getTypedDataArrayRequester(z, "/internal/references/delivery-type", !0);
1537
1581
  }
1538
1582
  /**
1539
1583
  * Возвращает {@link Promise} для получения справочника складов.
1540
1584
  */
1541
1585
  getWarehouses() {
1542
- return this.getTypedDataArrayRequester(re, "/public/references/warehouse", !0);
1586
+ return this.getTypedDataArrayRequester(te, "/public/references/warehouse", !0);
1543
1587
  }
1544
1588
  }
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 {
1589
+ var Tr = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(Tr || {});
1590
+ class Ne extends D {
1547
1591
  /**
1548
1592
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1549
1593
  *
@@ -1579,10 +1623,10 @@ class ke extends b {
1579
1623
  * Признак активности учетной записи пользователя.
1580
1624
  */
1581
1625
  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 _(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;
1626
+ 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 = R(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = R(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
1627
  }
1584
1628
  }
1585
- class Sr extends ke {
1629
+ class Lr extends Ne {
1586
1630
  /**
1587
1631
  * Инициализирует экземпляр класса {@link User}.
1588
1632
  *
@@ -1605,16 +1649,16 @@ class Sr extends ke {
1605
1649
  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
1650
  }
1607
1651
  }
1608
- class Tr extends g {
1652
+ class Ir extends g {
1609
1653
  /**
1610
1654
  * Возвращает данные о текущем пользователе.
1611
1655
  */
1612
1656
  // eslint-disable-next-line class-methods-use-this
1613
1657
  getCurrentUser() {
1614
- return this.get("/internal/users/info", {}, (r) => new Sr(r.data));
1658
+ return this.get("/internal/users/info", {}, (r) => new Lr(r.data));
1615
1659
  }
1616
1660
  }
1617
- class Lr {
1661
+ class xr {
1618
1662
  /**
1619
1663
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1620
1664
  *
@@ -1657,10 +1701,10 @@ class Lr {
1657
1701
  * Данные о валюте.
1658
1702
  */
1659
1703
  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 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;
1704
+ 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 Z(r.currency) : void 0;
1661
1705
  }
1662
1706
  }
1663
- class De {
1707
+ class Re {
1664
1708
  /**
1665
1709
  * Инициализирует экземпляр класса {@link RecommendationsList}.
1666
1710
  *
@@ -1678,7 +1722,7 @@ class De {
1678
1722
  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
1723
  }
1680
1724
  }
1681
- class Kr extends g {
1725
+ class es extends g {
1682
1726
  /**
1683
1727
  * Возвращает данные о результатах поиска категорий и товаров.
1684
1728
  *
@@ -1694,7 +1738,7 @@ class Kr extends g {
1694
1738
  });
1695
1739
  }
1696
1740
  }
1697
- class Xr extends g {
1741
+ class rs extends g {
1698
1742
  /**
1699
1743
  * Возвращает список данных о корневых категориях.
1700
1744
  *
@@ -1754,7 +1798,7 @@ class Xr extends g {
1754
1798
  showHidden: t,
1755
1799
  withPriceCoefficients: e
1756
1800
  },
1757
- (n) => V(n.data, (o) => new I(o))
1801
+ (n) => J(n.data, (o) => new I(o))
1758
1802
  );
1759
1803
  }
1760
1804
  /**
@@ -1767,7 +1811,7 @@ class Xr extends g {
1767
1811
  getCategoryProductsCoefficients(r) {
1768
1812
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
1769
1813
  const t = { ...e.data };
1770
- return We(t, (n) => n.map((o) => new fe(o))), t;
1814
+ return Be(t, (n) => n.map((o) => new we(o))), t;
1771
1815
  });
1772
1816
  }
1773
1817
  /**
@@ -1786,7 +1830,7 @@ class Xr extends g {
1786
1830
  });
1787
1831
  }
1788
1832
  }
1789
- class Zr extends g {
1833
+ class ss extends g {
1790
1834
  /**
1791
1835
  * Возвращает данные об указанном продукте.
1792
1836
  *
@@ -1814,7 +1858,7 @@ class Zr extends g {
1814
1858
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_coefficients_get
1815
1859
  */
1816
1860
  getProductPriceCoefficients(r) {
1817
- return this.get(`/internal/catalog/products/${r}/coefficients`, {}, (e) => V(e.data, (t) => new fe(t)));
1861
+ return this.get(`/internal/catalog/products/${r}/coefficients`, {}, (e) => J(e.data, (t) => new we(t)));
1818
1862
  }
1819
1863
  /**
1820
1864
  * Возвращает данные об истории изменения цен для указанного продукта.
@@ -1826,7 +1870,7 @@ class Zr extends g {
1826
1870
  */
1827
1871
  getProductPriceHistory(r, e) {
1828
1872
  const t = {};
1829
- return ze(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => V(n.data, (o) => new Lr(o)));
1873
+ return Fe(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => J(n.data, (o) => new xr(o)));
1830
1874
  }
1831
1875
  /**
1832
1876
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -1844,7 +1888,7 @@ class Zr extends g {
1844
1888
  });
1845
1889
  }
1846
1890
  }
1847
- class es extends g {
1891
+ class ts extends g {
1848
1892
  /**
1849
1893
  * Возвращает список данных о корневых категориях указанного клиента.
1850
1894
  *
@@ -1860,7 +1904,7 @@ class es extends g {
1860
1904
  clientId: r,
1861
1905
  showHidden: e
1862
1906
  },
1863
- (t) => t.data.map((n) => new J(n))
1907
+ (t) => t.data.map((n) => new K(n))
1864
1908
  );
1865
1909
  }
1866
1910
  /**
@@ -1881,7 +1925,7 @@ class es extends g {
1881
1925
  showHidden: t,
1882
1926
  withNestedCategories: n
1883
1927
  },
1884
- (o) => new J(o.data)
1928
+ (o) => new K(o.data)
1885
1929
  );
1886
1930
  }
1887
1931
  /**
@@ -1902,11 +1946,11 @@ class es extends g {
1902
1946
  showHidden: n,
1903
1947
  withPriceCoefficients: t
1904
1948
  },
1905
- (o) => V(o.data, (l) => new se(l))
1949
+ (o) => J(o.data, (l) => new ne(l))
1906
1950
  );
1907
1951
  }
1908
1952
  }
1909
- class rs extends g {
1953
+ class ns extends g {
1910
1954
  /**
1911
1955
  * Возвращает данные об указанном продукте для указанного клиента.
1912
1956
  *
@@ -1923,11 +1967,11 @@ class rs extends g {
1923
1967
  clientId: e,
1924
1968
  withPriceCoefficients: t
1925
1969
  },
1926
- (n) => new se(n.data)
1970
+ (n) => new ne(n.data)
1927
1971
  );
1928
1972
  }
1929
1973
  }
1930
- class Ce extends g {
1974
+ class ve extends g {
1931
1975
  /**
1932
1976
  * Получает пагинированный список данных.
1933
1977
  *
@@ -1943,64 +1987,75 @@ class Ce extends g {
1943
1987
  page: (n == null ? void 0 : n.page) ?? 1,
1944
1988
  per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
1945
1989
  };
1946
- return e && (u.filters = JSON.stringify(e)), Be(t) || (Fe(t) ? t : [t]).forEach((h, m) => {
1990
+ return e && (u.filters = JSON.stringify(e)), je(t) || (Ve(t) ? t : [t]).forEach((h, m) => {
1947
1991
  u[`sort[${m}][field]`] = h.field, u[`sort[${m}][direction]`] = h.direction;
1948
1992
  }), this.get(r, u, o, l);
1949
1993
  }
1950
1994
  }
1951
- class ss extends Ce {
1995
+ class is extends ve {
1952
1996
  /**
1953
1997
  * Возвращает пагинированный список свойств.
1954
1998
  *
1955
1999
  * @param filters Параметры фильтрации данных.
1956
2000
  * @param sortParams Параметры сортировки.
1957
2001
  * @param paginationParams Параметры пагинации.
1958
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_properties_get_list
2002
+ * @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
1959
2003
  */
1960
2004
  getProperties(r, e, t) {
1961
- return this.getPaginated("/internal/catalog/properties", r, e, t);
2005
+ return this.getPaginated("/internal/catalog/properties", r, e, t, (n) => {
2006
+ const o = { ...n.data };
2007
+ return o.data = o.data.map((l) => new j(l)), o;
2008
+ });
1962
2009
  }
1963
2010
  /**
1964
2011
  * Создает новое свойство.
1965
2012
  *
1966
2013
  * @param propertyData Данные свойства.
1967
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_properties_create
2014
+ * @see /doc/api/internal#/operations/api_internal_catalog_properties_create
1968
2015
  */
1969
2016
  createProperty(r) {
1970
2017
  const { typeId: e, ...t } = r;
1971
- return this.post("/internal/catalog/properties", {
1972
- ...t,
1973
- type: e
1974
- });
2018
+ return this.post(
2019
+ "/internal/catalog/properties",
2020
+ {
2021
+ ...t,
2022
+ type: e
2023
+ },
2024
+ (n) => new j(n.data)
2025
+ );
1975
2026
  }
1976
2027
  /**
1977
2028
  * Возвращает свойство по идентификатору.
1978
2029
  *
1979
2030
  * @param propertyId Идентификатор свойства.
1980
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_properties_get
2031
+ * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
1981
2032
  */
1982
2033
  getProperty(r) {
1983
- return this.get(`/internal/catalog/properties/${r}`);
2034
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new j(e.data));
1984
2035
  }
1985
2036
  /**
1986
2037
  * Обновляет существующее свойство.
1987
2038
  *
1988
2039
  * @param propertyId Идентификатор свойства.
1989
2040
  * @param propertyData Данные свойства.
1990
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_properties_update
2041
+ * @see /doc/api/internal#/operations/api_internal_catalog_properties_update
1991
2042
  */
1992
2043
  updateProperty(r, e) {
1993
2044
  const { typeId: t, ...n } = e;
1994
- return this.patch(`/internal/catalog/properties/${r}`, {
1995
- ...n,
1996
- type: t
1997
- });
2045
+ return this.patch(
2046
+ `/internal/catalog/properties/${r}`,
2047
+ {
2048
+ ...n,
2049
+ type: t
2050
+ },
2051
+ (o) => new j(o.data)
2052
+ );
1998
2053
  }
1999
2054
  /**
2000
2055
  * Удаляет свойство.
2001
2056
  *
2002
2057
  * @param propertyId Идентификатор свойства.
2003
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_properties_delete
2058
+ * @see /doc/api/internal#/operations/api_internal_catalog_properties_delete
2004
2059
  */
2005
2060
  deleteProperty(r) {
2006
2061
  return this.delete(`/internal/catalog/properties/${r}`);
@@ -2009,20 +2064,20 @@ class ss extends Ce {
2009
2064
  * Возвращает список свойств продукта.
2010
2065
  *
2011
2066
  * @param productId Идентификатор продукта.
2012
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_properties_get_list
2067
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
2013
2068
  */
2014
2069
  getProductProperties(r) {
2015
- return this.get(`/internal/catalog/products/${r}/properties`);
2070
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new M(t)));
2016
2071
  }
2017
2072
  /**
2018
2073
  * Возвращает значение свойства продукта.
2019
2074
  *
2020
2075
  * @param productId Идентификатор продукта.
2021
2076
  * @param propertyId Идентификатор свойства.
2022
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_properties_get
2077
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
2023
2078
  */
2024
2079
  getProductProperty(r, e) {
2025
- return this.get(`/internal/catalog/products/${r}/properties/${e}`);
2080
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new M(t.data));
2026
2081
  }
2027
2082
  /**
2028
2083
  * Обновляет значение свойства продукта.
@@ -2030,17 +2085,17 @@ class ss extends Ce {
2030
2085
  * @param productId Идентификатор продукта.
2031
2086
  * @param propertyId Идентификатор свойства.
2032
2087
  * @param value Новое значение свойства.
2033
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_properties_update
2088
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
2034
2089
  */
2035
2090
  updateProductProperty(r, e, t) {
2036
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t });
2091
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new M(n.data));
2037
2092
  }
2038
2093
  /**
2039
2094
  * Удаляет значение свойства продукта.
2040
2095
  *
2041
2096
  * @param productId Идентификатор продукта.
2042
2097
  * @param propertyId Идентификатор свойства.
2043
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_properties_delete
2098
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_delete
2044
2099
  */
2045
2100
  deleteProductProperty(r, e) {
2046
2101
  return this.delete(`/internal/catalog/products/${r}/properties/${e}`);
@@ -2049,7 +2104,7 @@ class ss extends Ce {
2049
2104
  * Возвращает описание продукта.
2050
2105
  *
2051
2106
  * @param productId Идентификатор продукта.
2052
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_description_get
2107
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_description_get
2053
2108
  */
2054
2109
  getProductDescription(r) {
2055
2110
  return this.get(`/internal/catalog/products/${r}/properties/description`);
@@ -2059,7 +2114,7 @@ class ss extends Ce {
2059
2114
  *
2060
2115
  * @param productId Идентификатор продукта.
2061
2116
  * @param text Текст описания в формате HTML.
2062
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_description_update
2117
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_description_update
2063
2118
  */
2064
2119
  updateProductDescription(r, e) {
2065
2120
  return this.patch(`/internal/catalog/products/${r}/properties/description`, { text: e });
@@ -2068,7 +2123,7 @@ class ss extends Ce {
2068
2123
  * Удаляет описание продукта.
2069
2124
  *
2070
2125
  * @param productId Идентификатор продукта.
2071
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_description_delete
2126
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_description_delete
2072
2127
  */
2073
2128
  deleteProductDescription(r) {
2074
2129
  return this.delete(`/internal/catalog/products/${r}/properties/description`);
@@ -2077,7 +2132,7 @@ class ss extends Ce {
2077
2132
  * Возвращает спецификацию продукта.
2078
2133
  *
2079
2134
  * @param productId Идентификатор продукта.
2080
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_specification_get
2135
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_specification_get
2081
2136
  */
2082
2137
  getProductSpecification(r) {
2083
2138
  return this.get(`/internal/catalog/products/${r}/properties/specification`);
@@ -2087,7 +2142,7 @@ class ss extends Ce {
2087
2142
  *
2088
2143
  * @param productId Идентификатор продукта.
2089
2144
  * @param text Текст спецификации в формате HTML.
2090
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_specification_update
2145
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_specification_update
2091
2146
  */
2092
2147
  updateProductSpecification(r, e) {
2093
2148
  return this.patch(`/internal/catalog/products/${r}/properties/specification`, { text: e });
@@ -2096,7 +2151,7 @@ class ss extends Ce {
2096
2151
  * Удаляет спецификацию продукта.
2097
2152
  *
2098
2153
  * @param productId Идентификатор продукта.
2099
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_specification_delete
2154
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_specification_delete
2100
2155
  */
2101
2156
  deleteProductSpecification(r) {
2102
2157
  return this.delete(`/internal/catalog/products/${r}/properties/specification`);
@@ -2105,7 +2160,7 @@ class ss extends Ce {
2105
2160
  * Возвращает список файлов продукта.
2106
2161
  *
2107
2162
  * @param productId Идентификатор продукта.
2108
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_files_get_list
2163
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_files_get_list
2109
2164
  */
2110
2165
  getProductFiles(r) {
2111
2166
  return this.get(`/internal/catalog/products/${r}/properties/files`);
@@ -2115,7 +2170,7 @@ class ss extends Ce {
2115
2170
  *
2116
2171
  * @param productId Идентификатор продукта.
2117
2172
  * @param fileData Данные загружаемого файла.
2118
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_files_create
2173
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_files_create
2119
2174
  */
2120
2175
  addProductFile(r, e) {
2121
2176
  return this.post(`/internal/catalog/products/${r}/properties/files`, e);
@@ -2126,7 +2181,7 @@ class ss extends Ce {
2126
2181
  * @param productId Идентификатор продукта.
2127
2182
  * @param fileId Идентификатор файла.
2128
2183
  * @param fileData Данные файла.
2129
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_files_update
2184
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_files_update
2130
2185
  */
2131
2186
  updateProductFile(r, e, t) {
2132
2187
  return this.patch(`/internal/catalog/products/${r}/properties/files/${e}`, t);
@@ -2136,7 +2191,7 @@ class ss extends Ce {
2136
2191
  *
2137
2192
  * @param productId Идентификатор продукта.
2138
2193
  * @param fileId Идентификатор файла.
2139
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_files_delete
2194
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_files_delete
2140
2195
  */
2141
2196
  deleteProductFile(r, e) {
2142
2197
  return this.delete(`/internal/catalog/products/${r}/properties/files/${e}`);
@@ -2146,7 +2201,7 @@ class ss extends Ce {
2146
2201
  *
2147
2202
  * @param productId Идентификатор продукта.
2148
2203
  * @param slug Новый URL-slug.
2149
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_product_slug_update
2204
+ * @see /doc/api/internal#/operations/api_internal_catalog_product_slug_update
2150
2205
  */
2151
2206
  updateProductSlug(r, e) {
2152
2207
  return this.patch(`/internal/catalog/products/${r}/properties/slug`, { slug: e });
@@ -2155,20 +2210,20 @@ class ss extends Ce {
2155
2210
  * Возвращает список свойств категории.
2156
2211
  *
2157
2212
  * @param categoryId Идентификатор категории.
2158
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_properties_get_list
2213
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
2159
2214
  */
2160
2215
  getCategoryProperties(r) {
2161
- return this.get(`/internal/catalog/categories/${r}/properties`);
2216
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new M(t)));
2162
2217
  }
2163
2218
  /**
2164
2219
  * Возвращает значение свойства категории.
2165
2220
  *
2166
2221
  * @param categoryId Идентификатор категории.
2167
2222
  * @param propertyId Идентификатор свойства.
2168
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_properties_get
2223
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
2169
2224
  */
2170
2225
  getCategoryProperty(r, e) {
2171
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`);
2226
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new M(t.data));
2172
2227
  }
2173
2228
  /**
2174
2229
  * Обновляет значение свойства категории.
@@ -2176,17 +2231,17 @@ class ss extends Ce {
2176
2231
  * @param categoryId Идентификатор категории.
2177
2232
  * @param propertyId Идентификатор свойства.
2178
2233
  * @param value Новое значение свойства.
2179
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_properties_update
2234
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
2180
2235
  */
2181
2236
  updateCategoryProperty(r, e, t) {
2182
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t });
2237
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new M(n.data));
2183
2238
  }
2184
2239
  /**
2185
2240
  * Удаляет значение свойства категории.
2186
2241
  *
2187
2242
  * @param categoryId Идентификатор категории.
2188
2243
  * @param propertyId Идентификатор свойства.
2189
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_properties_delete
2244
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_delete
2190
2245
  */
2191
2246
  deleteCategoryProperty(r, e) {
2192
2247
  return this.delete(`/internal/catalog/categories/${r}/properties/${e}`);
@@ -2195,7 +2250,7 @@ class ss extends Ce {
2195
2250
  * Возвращает описание категории.
2196
2251
  *
2197
2252
  * @param categoryId Идентификатор категории.
2198
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_description_get
2253
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_description_get
2199
2254
  */
2200
2255
  getCategoryDescription(r) {
2201
2256
  return this.get(`/internal/catalog/categories/${r}/properties/description`);
@@ -2205,7 +2260,7 @@ class ss extends Ce {
2205
2260
  *
2206
2261
  * @param categoryId Идентификатор категории.
2207
2262
  * @param text Текст описания в формате HTML.
2208
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_description_update
2263
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_description_update
2209
2264
  */
2210
2265
  updateCategoryDescription(r, e) {
2211
2266
  return this.patch(`/internal/catalog/categories/${r}/properties/description`, { text: e });
@@ -2214,7 +2269,7 @@ class ss extends Ce {
2214
2269
  * Удаляет описание категории.
2215
2270
  *
2216
2271
  * @param categoryId Идентификатор категории.
2217
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_description_delete
2272
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_description_delete
2218
2273
  */
2219
2274
  deleteCategoryDescription(r) {
2220
2275
  return this.delete(`/internal/catalog/categories/${r}/properties/description`);
@@ -2223,7 +2278,7 @@ class ss extends Ce {
2223
2278
  * Возвращает спецификацию категории.
2224
2279
  *
2225
2280
  * @param categoryId Идентификатор категории.
2226
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_specification_get
2281
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_specification_get
2227
2282
  */
2228
2283
  getCategorySpecification(r) {
2229
2284
  return this.get(`/internal/catalog/categories/${r}/properties/specification`);
@@ -2233,7 +2288,7 @@ class ss extends Ce {
2233
2288
  *
2234
2289
  * @param categoryId Идентификатор категории.
2235
2290
  * @param text Текст спецификации в формате HTML.
2236
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_specification_update
2291
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_specification_update
2237
2292
  */
2238
2293
  updateCategorySpecification(r, e) {
2239
2294
  return this.patch(`/internal/catalog/categories/${r}/properties/specification`, { text: e });
@@ -2242,7 +2297,7 @@ class ss extends Ce {
2242
2297
  * Удаляет спецификацию категории.
2243
2298
  *
2244
2299
  * @param categoryId Идентификатор категории.
2245
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_specification_delete
2300
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_specification_delete
2246
2301
  */
2247
2302
  deleteCategorySpecification(r) {
2248
2303
  return this.delete(`/internal/catalog/categories/${r}/properties/specification`);
@@ -2251,7 +2306,7 @@ class ss extends Ce {
2251
2306
  * Возвращает список файлов категории.
2252
2307
  *
2253
2308
  * @param categoryId Идентификатор категории.
2254
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_files_get_list
2309
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_files_get_list
2255
2310
  */
2256
2311
  getCategoryFiles(r) {
2257
2312
  return this.get(`/internal/catalog/categories/${r}/properties/files`);
@@ -2261,7 +2316,7 @@ class ss extends Ce {
2261
2316
  *
2262
2317
  * @param categoryId Идентификатор категории.
2263
2318
  * @param fileData Данные загружаемого файла.
2264
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_files_create
2319
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_files_create
2265
2320
  */
2266
2321
  addCategoryFile(r, e) {
2267
2322
  return this.post(`/internal/catalog/categories/${r}/properties/files`, e);
@@ -2272,7 +2327,7 @@ class ss extends Ce {
2272
2327
  * @param categoryId Идентификатор категории.
2273
2328
  * @param fileId Идентификатор файла.
2274
2329
  * @param fileData Данные для обновления файла.
2275
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_files_update
2330
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_files_update
2276
2331
  */
2277
2332
  updateCategoryFile(r, e, t) {
2278
2333
  return this.patch(`/internal/catalog/categories/${r}/properties/files/${e}`, t);
@@ -2282,7 +2337,7 @@ class ss extends Ce {
2282
2337
  *
2283
2338
  * @param categoryId Идентификатор категории.
2284
2339
  * @param fileId Идентификатор файла.
2285
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_files_delete
2340
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_files_delete
2286
2341
  */
2287
2342
  deleteCategoryFile(r, e) {
2288
2343
  return this.delete(`/internal/catalog/categories/${r}/properties/files/${e}`);
@@ -2292,20 +2347,20 @@ class ss extends Ce {
2292
2347
  *
2293
2348
  * @param categoryId Идентификатор категории.
2294
2349
  * @param slug Новый URL-slug.
2295
- * @see /doc/api/internal#/Свойства%20продуктов%2Fкатегорий/api_internal_catalog_category_slug_update
2350
+ * @see /doc/api/internal#/operations/api_internal_catalog_category_slug_update
2296
2351
  */
2297
2352
  updateCategorySlug(r, e) {
2298
2353
  return this.patch(`/internal/catalog/categories/${r}/properties/slug`, { slug: e });
2299
2354
  }
2300
2355
  }
2301
- class ts extends g {
2356
+ class os extends g {
2302
2357
  /**
2303
2358
  * Возвращает данные о рекомендациях указанной категории продуктов.
2304
2359
  *
2305
2360
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
2306
2361
  */
2307
2362
  getProductCategoryRecommendations(r) {
2308
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new De(e.data));
2363
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Re(e.data));
2309
2364
  }
2310
2365
  /**
2311
2366
  * Возвращает данные о рекомендациях указанного продукта.
@@ -2313,12 +2368,12 @@ class ts extends g {
2313
2368
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
2314
2369
  */
2315
2370
  getProductRecommendations(r) {
2316
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new De(e.data));
2371
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Re(e.data));
2317
2372
  }
2318
2373
  /**
2319
2374
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
2320
2375
  *
2321
- * @param productCategory Данные о категории.
2376
+ * @param productCategory Данные о категории для которой необходимо сохранить список рекомендуемых товаров.
2322
2377
  * @param recommendations Список рекомендованных продуктов и категорий.
2323
2378
  */
2324
2379
  saveProductCategoryRecommendations(r, e) {
@@ -2330,7 +2385,7 @@ class ts extends g {
2330
2385
  /**
2331
2386
  * Выполняет сохранение данных о рекомендуемых продуктах.
2332
2387
  *
2333
- * @param product Данные о продукте.
2388
+ * @param product Данные о продукте для которого необходимо сохранить список рекомендуемых товаров.
2334
2389
  * @param recommendations Список рекомендованных продуктов и категорий.
2335
2390
  */
2336
2391
  saveProductRecommendations(r, e) {
@@ -2340,8 +2395,8 @@ class ts extends g {
2340
2395
  });
2341
2396
  }
2342
2397
  }
2343
- var Ir = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(Ir || {});
2344
- class he extends B {
2398
+ var kr = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(kr || {});
2399
+ class me extends F {
2345
2400
  /**
2346
2401
  * Инициализирует экземпляр класса {@link BankAccount}.
2347
2402
  *
@@ -2368,11 +2423,11 @@ class he extends B {
2368
2423
  /**
2369
2424
  * Данные о валюте.
2370
2425
  */
2371
- s(this, "currency", new K());
2372
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new K(e.currency));
2426
+ s(this, "currency", new Z());
2427
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new Z(e.currency));
2373
2428
  }
2374
2429
  }
2375
- class ge extends b {
2430
+ class fe extends D {
2376
2431
  /**
2377
2432
  * Инициализирует экземпляр класса {@link Contact}.
2378
2433
  *
@@ -2391,7 +2446,7 @@ class ge extends b {
2391
2446
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
2392
2447
  }
2393
2448
  }
2394
- class U extends ge {
2449
+ class U extends fe {
2395
2450
  /**
2396
2451
  * Инициализирует экземпляр класса {@link ContactPerson}.
2397
2452
  *
@@ -2426,7 +2481,7 @@ class U extends ge {
2426
2481
  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;
2427
2482
  }
2428
2483
  }
2429
- class ae extends b {
2484
+ class Oe extends D {
2430
2485
  /**
2431
2486
  * Инициализирует экземпляр класса {@link ContragentBase}.
2432
2487
  *
@@ -2438,7 +2493,7 @@ class ae extends b {
2438
2493
  /**
2439
2494
  * Данные о менеджере.
2440
2495
  */
2441
- s(this, "manager", new Q());
2496
+ s(this, "manager", new Y());
2442
2497
  /**
2443
2498
  * Данные об организационно-правовой форме.
2444
2499
  */
@@ -2484,7 +2539,7 @@ class ae extends b {
2484
2539
  */
2485
2540
  s(this, "updater");
2486
2541
  if (e) {
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) {
2542
+ if (this.opf = new d(e.opf), this.salesDirection = new _(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = R(e == null ? void 0 : e.createdAt) ? W(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 = R(e == null ? void 0 : e.updatedAt) ? W(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 Y(e.manager)), e.contacts) {
2488
2543
  const t = [];
2489
2544
  e.contacts.forEach((n) => {
2490
2545
  t.push(new U(n));
@@ -2493,13 +2548,13 @@ class ae extends b {
2493
2548
  if (e.bankAccounts) {
2494
2549
  const t = [];
2495
2550
  e.bankAccounts.forEach((n) => {
2496
- t.push(new he(n));
2551
+ t.push(new me(n));
2497
2552
  }), this.bankAccounts = t;
2498
2553
  }
2499
2554
  }
2500
2555
  }
2501
2556
  }
2502
- class xr extends ae {
2557
+ class ar extends Oe {
2503
2558
  /**
2504
2559
  * Инициализирует экземпляр класса {@link ContragentPerson}.
2505
2560
  *
@@ -2509,7 +2564,7 @@ class xr extends ae {
2509
2564
  super(r);
2510
2565
  }
2511
2566
  }
2512
- class Ne extends ae {
2567
+ class de extends Oe {
2513
2568
  /**
2514
2569
  * Инициализирует экземпляр класса {@link ContragentIc}.
2515
2570
  *
@@ -2552,7 +2607,7 @@ class Ne extends ae {
2552
2607
  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 ?? "");
2553
2608
  }
2554
2609
  }
2555
- class Oe extends Ne {
2610
+ class Ge extends de {
2556
2611
  /**
2557
2612
  * Инициализирует экземпляр класса {@link ContragentUlR}.
2558
2613
  *
@@ -2567,7 +2622,7 @@ class Oe extends Ne {
2567
2622
  e && (this.kpp = e.kpp ?? "");
2568
2623
  }
2569
2624
  }
2570
- class kr extends Oe {
2625
+ class Nr extends Ge {
2571
2626
  /**
2572
2627
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
2573
2628
  *
@@ -2578,7 +2633,7 @@ class kr extends Oe {
2578
2633
  /**
2579
2634
  * Страна регистрации юридического лица нерезидента.
2580
2635
  */
2581
- s(this, "registrationCountry", new z());
2636
+ s(this, "registrationCountry", new B());
2582
2637
  /**
2583
2638
  * Регистрационный номер юридического лица нерезидента.
2584
2639
  */
@@ -2587,10 +2642,10 @@ class kr extends Oe {
2587
2642
  * Налоговый номер юридического лица нерезидента.
2588
2643
  */
2589
2644
  s(this, "taxNumber", "");
2590
- e && (this.registrationCountry = new z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
2645
+ e && (this.registrationCountry = new B(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
2591
2646
  }
2592
2647
  }
2593
- class X {
2648
+ class ee {
2594
2649
  /**
2595
2650
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
2596
2651
  *
@@ -2598,18 +2653,18 @@ class X {
2598
2653
  */
2599
2654
  static createInstance(r) {
2600
2655
  switch (r.opf.slug) {
2601
- case A.Ic:
2602
- return new Ne(r);
2603
- case A.UlR:
2604
- return new Oe(r);
2605
- case A.UlNr:
2606
- return new kr(r);
2656
+ case b.Ic:
2657
+ return new de(r);
2658
+ case b.UlR:
2659
+ return new Ge(r);
2660
+ case b.UlNr:
2661
+ return new Nr(r);
2607
2662
  default:
2608
- return new xr(r);
2663
+ return new ar(r);
2609
2664
  }
2610
2665
  }
2611
2666
  }
2612
- class we extends ke {
2667
+ class De extends Ne {
2613
2668
  /**
2614
2669
  * Инициализирует экземпляр класса {@link Client}.
2615
2670
  *
@@ -2651,10 +2706,10 @@ class we extends ke {
2651
2706
  * Список менеджеров клиента.
2652
2707
  */
2653
2708
  s(this, "managers");
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))) ?? [];
2709
+ 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 X(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 Y(n))) ?? [];
2655
2710
  }
2656
2711
  }
2657
- class oe extends B {
2712
+ class le extends F {
2658
2713
  /**
2659
2714
  * Инициализирует экземпляр класса {@link ContactRelation}.
2660
2715
  *
@@ -2669,7 +2724,7 @@ class oe extends B {
2669
2724
  this.isPrimary = e.isPrimary;
2670
2725
  }
2671
2726
  }
2672
- class ar extends U {
2727
+ class Or extends U {
2673
2728
  /**
2674
2729
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
2675
2730
  *
@@ -2694,10 +2749,10 @@ class ar extends U {
2694
2749
  */
2695
2750
  addresses: []
2696
2751
  });
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))));
2752
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new le(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new le(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new le(t))));
2698
2753
  }
2699
2754
  }
2700
- class Z extends yr {
2755
+ class re extends Cr {
2701
2756
  /**
2702
2757
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
2703
2758
  *
@@ -2734,10 +2789,10 @@ class Z extends yr {
2734
2789
  * Признак того, что указанный адрес является адресом транспортной компании.
2735
2790
  */
2736
2791
  s(this, "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;
2792
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Te(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;
2738
2793
  }
2739
2794
  }
2740
- class Pe extends we {
2795
+ class Ae extends De {
2741
2796
  /**
2742
2797
  * Инициализирует экземпляр класса {@link Client}.
2743
2798
  *
@@ -2791,10 +2846,10 @@ class Pe extends we {
2791
2846
  * Дополнительные данные о клиенте.
2792
2847
  */
2793
2848
  s(this, "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) ?? {};
2849
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => ee.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 re(u))) ?? [], this.channelPrimaryInterest = new xe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ae(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new z(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 te(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
2795
2850
  }
2796
2851
  }
2797
- class ns {
2852
+ class cs {
2798
2853
  /**
2799
2854
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
2800
2855
  *
@@ -2892,13 +2947,13 @@ class ns {
2892
2947
  */
2893
2948
  s(this, "lastOrder");
2894
2949
  var e, t, n, o, l, u, h;
2895
- this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.city = new Y(r == null ? void 0 : r.city), this.region = new F(r == null ? void 0 : r.region), this.country = new z(r == null ? void 0 : r.country), this.phone = (r == null ? void 0 : r.phone) ?? "", this.email = (r == null ? void 0 : r.email) ?? "", this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = {
2950
+ this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.city = new X(r == null ? void 0 : r.city), this.region = new V(r == null ? void 0 : r.region), this.country = new B(r == null ? void 0 : r.country), this.phone = (r == null ? void 0 : r.phone) ?? "", this.email = (r == null ? void 0 : r.email) ?? "", this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = {
2896
2951
  from: ((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ?? null,
2897
2952
  to: ((t = r == null ? void 0 : r.createdAt) == null ? void 0 : t.to) ?? null
2898
2953
  }, this.lastLoginDate = {
2899
2954
  from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
2900
2955
  to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
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 = {
2956
+ }, 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 ie(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 z(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 fe(r == null ? void 0 : r.contact), this.lastOrder = {
2902
2957
  createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
2903
2958
  creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
2904
2959
  isApproved: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.isApproved
@@ -2920,10 +2975,10 @@ class ns {
2920
2975
  this[r] = "";
2921
2976
  break;
2922
2977
  case "city":
2923
- this.city = new Y();
2978
+ this.city = new X();
2924
2979
  break;
2925
2980
  case "region":
2926
- this.region = new F();
2981
+ this.region = new V();
2927
2982
  break;
2928
2983
  case "isActive":
2929
2984
  this.isActive = !0;
@@ -2950,7 +3005,7 @@ class ns {
2950
3005
  this.contragentType = new d();
2951
3006
  break;
2952
3007
  case "preferredDeliveryType":
2953
- this.preferredDeliveryType = new W();
3008
+ this.preferredDeliveryType = new z();
2954
3009
  break;
2955
3010
  case "partnerGroup":
2956
3011
  this.partnerGroup = new G();
@@ -2959,7 +3014,7 @@ class ns {
2959
3014
  this.hasCostLessThenStop = void 0;
2960
3015
  break;
2961
3016
  case "contact":
2962
- this.contact = new ge();
3017
+ this.contact = new fe();
2963
3018
  break;
2964
3019
  }
2965
3020
  return this;
@@ -2974,11 +3029,11 @@ class ns {
2974
3029
  return Object.keys(this).forEach((l) => {
2975
3030
  const u = this[l];
2976
3031
  // eslint-disable-next-line prettier/prettier
2977
- be(u) || P(u) && u.trim().length === 0 || je(u.isNewRec) && u.isNewRec() || (r[l] = u);
3032
+ _e(u) || R(u) && u.trim().length === 0 || Qe(u.isNewRec) && u.isNewRec() || (r[l] = u);
2978
3033
  }), !((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;
2979
3034
  }
2980
3035
  }
2981
- class de extends B {
3036
+ class Ue extends F {
2982
3037
  /**
2983
3038
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
2984
3039
  *
@@ -2998,17 +3053,17 @@ class de extends B {
2998
3053
  * Признак того, что заказ подтвержден в 1С.
2999
3054
  */
3000
3055
  s(this, "isApproved1c");
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;
3056
+ this.createdAt = R(e == null ? void 0 : e.createdAt) ? W(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;
3002
3057
  }
3003
3058
  }
3004
- class Ge extends de {
3059
+ class Me extends Ue {
3005
3060
  /**
3006
3061
  * Инициализирует экземпляр класса {@link OrderInfo}.
3007
3062
  *
3008
3063
  * @param data Данные для первоначальной инициализации.
3009
3064
  */
3010
3065
  constructor(e) {
3011
- var t, n, o, l, u, h, m, R;
3066
+ var t, n, o, l, u, h, m, A;
3012
3067
  super(e);
3013
3068
  /**
3014
3069
  * Краткие данные о клиенте.
@@ -3050,19 +3105,19 @@ class Ge extends de {
3050
3105
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
3051
3106
  */
3052
3107
  s(this, "isNotInStock");
3053
- this.client = new we(e == null ? void 0 : e.client), this.payment = {
3108
+ this.client = new De(e == null ? void 0 : e.client), this.payment = {
3054
3109
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
3055
3110
  status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
3056
3111
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
3057
3112
  }, this.delivery = {
3058
3113
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
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(),
3060
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Z(e.delivery.address) : void 0,
3061
- warehouse: (R = e == null ? void 0 : e.delivery) != null && R.warehouse ? new re(e.delivery.warehouse) : void 0
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;
3114
+ date: R((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? W(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(),
3115
+ address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new re(e.delivery.address) : void 0,
3116
+ warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new te(e.delivery.warehouse) : void 0
3117
+ }, 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 = R(e == null ? void 0 : e.pendingAt) ? W(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 = R(e == null ? void 0 : e.processedAt) ? W(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;
3063
3118
  }
3064
3119
  }
3065
- class Nr extends B {
3120
+ class dr extends F {
3066
3121
  /**
3067
3122
  * Инициализирует экземпляр класса {@link OrderProduct}.
3068
3123
  *
@@ -3142,10 +3197,10 @@ class Nr extends B {
3142
3197
  * который соответствует указанной ширине. Количество не ограничено.
3143
3198
  */
3144
3199
  s(this, "sawing");
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;
3200
+ this.product = new ne(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;
3146
3201
  }
3147
3202
  }
3148
- class Or extends Ge {
3203
+ class Gr extends Me {
3149
3204
  /**
3150
3205
  * Инициализирует экземпляр класса {@link Order}.
3151
3206
  *
@@ -3185,10 +3240,10 @@ class Or extends Ge {
3185
3240
  * Признак, что разрешена передача заказа в работу без оплаты.
3186
3241
  */
3187
3242
  s(this, "isAllowProcessingWithoutPayment");
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;
3243
+ this.products = (e.products ?? []).map((t) => new dr(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ee.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new y(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
3189
3244
  }
3190
3245
  }
3191
- class is extends Ce {
3246
+ class ls extends ve {
3192
3247
  /**
3193
3248
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
3194
3249
  *
@@ -3200,7 +3255,7 @@ class is extends Ce {
3200
3255
  getOrders(r, e, t) {
3201
3256
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, t, (n) => {
3202
3257
  const o = { ...n.data };
3203
- return o.data = o.data.map((l) => new Ge(l)), o;
3258
+ return o.data = o.data.map((l) => new Me(l)), o;
3204
3259
  });
3205
3260
  }
3206
3261
  /**
@@ -3218,10 +3273,10 @@ class is extends Ce {
3218
3273
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
3219
3274
  */
3220
3275
  getOrder(r) {
3221
- return this.get(`/internal/orders/${r}`, {}, (e) => new Or(e.data));
3276
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Gr(e.data));
3222
3277
  }
3223
3278
  }
3224
- class dr extends b {
3279
+ class Ur extends D {
3225
3280
  /**
3226
3281
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
3227
3282
  *
@@ -3246,11 +3301,11 @@ class dr extends b {
3246
3301
  * Данные о последнем заказе клиента.
3247
3302
  */
3248
3303
  s(this, "lastOrder");
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));
3304
+ (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new U(o))), e.lastOrder && (this.lastOrder = new Ue(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new z(e.preferredDeliveryType));
3250
3305
  }
3251
3306
  }
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 || {});
3253
- class Gr {
3307
+ var qe = /* @__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))(qe || {});
3308
+ class Mr {
3254
3309
  /**
3255
3310
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
3256
3311
  *
@@ -3274,7 +3329,7 @@ class Gr {
3274
3329
  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;
3275
3330
  }
3276
3331
  }
3277
- class os extends Gr {
3332
+ class us extends Mr {
3278
3333
  /**
3279
3334
  * Инициализирует экземпляр класса {@link DataTablePagination}.
3280
3335
  *
@@ -3305,7 +3360,7 @@ class os extends Gr {
3305
3360
  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;
3306
3361
  }
3307
3362
  }
3308
- class cs {
3363
+ class ps {
3309
3364
  /**
3310
3365
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
3311
3366
  *
@@ -3323,7 +3378,7 @@ class cs {
3323
3378
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
3324
3379
  }
3325
3380
  }
3326
- class ls extends Ce {
3381
+ class hs extends ve {
3327
3382
  /**
3328
3383
  * Возвращает данные об указанном клиенте.
3329
3384
  *
@@ -3331,7 +3386,7 @@ class ls extends Ce {
3331
3386
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
3332
3387
  */
3333
3388
  getClient(r) {
3334
- return this.get(`/internal/clients/${r}`, {}, (e) => new Pe(e.data));
3389
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ae(e.data));
3335
3390
  }
3336
3391
  /**
3337
3392
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -3344,7 +3399,7 @@ class ls extends Ce {
3344
3399
  getClientsList(r, e, t) {
3345
3400
  return this.getPaginated("/internal/clients", r, e, t, (n) => {
3346
3401
  const o = { ...n.data };
3347
- return o.data = o.data.map((l) => new we(l)), o;
3402
+ return o.data = o.data.map((l) => new De(l)), o;
3348
3403
  });
3349
3404
  }
3350
3405
  /**
@@ -3357,7 +3412,7 @@ class ls extends Ce {
3357
3412
  return this.getClientsList({
3358
3413
  groupOp: "and",
3359
3414
  groups: [],
3360
- filters: [{ field: "phone", op: Ue.Contains, value: r }]
3415
+ filters: [{ field: "phone", op: qe.Contains, value: r }]
3361
3416
  });
3362
3417
  }
3363
3418
  /**
@@ -3370,7 +3425,7 @@ class ls extends Ce {
3370
3425
  getAdditionalClientsData(r, e) {
3371
3426
  return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (t) => {
3372
3427
  let n = [];
3373
- return (t == null ? void 0 : t.data.length) > 0 && (n = t.data.map((o) => new dr(o))), n;
3428
+ return (t == null ? void 0 : t.data.length) > 0 && (n = t.data.map((o) => new Ur(o))), n;
3374
3429
  });
3375
3430
  }
3376
3431
  /**
@@ -3382,7 +3437,7 @@ class ls extends Ce {
3382
3437
  getAllClientContacts(r) {
3383
3438
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
3384
3439
  let t = [];
3385
- return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new ar(n))), t;
3440
+ return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new Or(n))), t;
3386
3441
  });
3387
3442
  }
3388
3443
  /**
@@ -3412,7 +3467,7 @@ class ls extends Ce {
3412
3467
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
3413
3468
  preferred_warehouse_id: (t = r.preferredWarehouse) == null ? void 0 : t.id
3414
3469
  },
3415
- (n) => new Pe(n.data),
3470
+ (n) => new Ae(n.data),
3416
3471
  e
3417
3472
  );
3418
3473
  }
@@ -3522,11 +3577,11 @@ class ls extends Ce {
3522
3577
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
3523
3578
  */
3524
3579
  createContragentClientData(r, e, t = {}) {
3525
- var h, m, R, S, T, L, c, p;
3580
+ var h, m, A, S, T, L, c, p;
3526
3581
  let n;
3527
3582
  const o = e, l = e, u = e;
3528
3583
  switch (e.opf.slug) {
3529
- case A.Ic:
3584
+ case b.Ic:
3530
3585
  n = {
3531
3586
  opf: o.opf.slug,
3532
3587
  name: o.name,
@@ -3544,12 +3599,12 @@ class ls extends Ce {
3544
3599
  actual_address: o.actualAddress
3545
3600
  };
3546
3601
  break;
3547
- case A.UlR:
3602
+ case b.UlR:
3548
3603
  n = {
3549
3604
  opf: l.opf.slug,
3550
3605
  name: l.name,
3551
3606
  alternative_name: l.alternativeName,
3552
- partner_group_id: (R = l.partnerGroup) == null ? void 0 : R.id,
3607
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
3553
3608
  manager_id: (S = l.manager) == null ? void 0 : S.id,
3554
3609
  comment: l.comment,
3555
3610
  inn: l.inn,
@@ -3563,7 +3618,7 @@ class ls extends Ce {
3563
3618
  actual_address: l.actualAddress
3564
3619
  };
3565
3620
  break;
3566
- case A.UlNr:
3621
+ case b.UlNr:
3567
3622
  n = {
3568
3623
  opf: u.opf.slug,
3569
3624
  name: u.name,
@@ -3599,7 +3654,7 @@ class ls extends Ce {
3599
3654
  return this.post(
3600
3655
  `/internal/clients/${r}/contragents`,
3601
3656
  n,
3602
- (ne) => X.createInstance(ne.data),
3657
+ (oe) => ee.createInstance(oe.data),
3603
3658
  t
3604
3659
  );
3605
3660
  }
@@ -3614,11 +3669,11 @@ class ls extends Ce {
3614
3669
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
3615
3670
  */
3616
3671
  updateContragentClientData(r, e, t = {}) {
3617
- var h, m, R, S, T, L, c, p;
3672
+ var h, m, A, S, T, L, c, p;
3618
3673
  let n;
3619
3674
  const o = e, l = e, u = e;
3620
3675
  switch (e.opf.slug) {
3621
- case A.Ic:
3676
+ case b.Ic:
3622
3677
  n = {
3623
3678
  opf: o.opf.slug,
3624
3679
  name: o.name,
@@ -3636,12 +3691,12 @@ class ls extends Ce {
3636
3691
  actual_address: o.actualAddress
3637
3692
  };
3638
3693
  break;
3639
- case A.UlR:
3694
+ case b.UlR:
3640
3695
  n = {
3641
3696
  opf: l.opf.slug,
3642
3697
  name: l.name,
3643
3698
  alternative_name: l.alternativeName,
3644
- partner_group_id: (R = l.partnerGroup) == null ? void 0 : R.id,
3699
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
3645
3700
  manager_id: (S = l.manager) == null ? void 0 : S.id,
3646
3701
  comment: l.comment,
3647
3702
  inn: l.inn,
@@ -3655,7 +3710,7 @@ class ls extends Ce {
3655
3710
  actual_address: l.actualAddress
3656
3711
  };
3657
3712
  break;
3658
- case A.UlNr:
3713
+ case b.UlNr:
3659
3714
  n = {
3660
3715
  opf: u.opf.slug,
3661
3716
  name: u.name,
@@ -3691,7 +3746,7 @@ class ls extends Ce {
3691
3746
  return this.patch(
3692
3747
  `/internal/clients/${r}/contragents/${e.id}`,
3693
3748
  n,
3694
- (ne) => X.createInstance(ne.data),
3749
+ (oe) => ee.createInstance(oe.data),
3695
3750
  t
3696
3751
  );
3697
3752
  }
@@ -3729,7 +3784,7 @@ class ls extends Ce {
3729
3784
  }), e.operatingHours && (n.operating_hours = {
3730
3785
  from: e.operatingHours.from,
3731
3786
  to: e.operatingHours.to
3732
- }), this.post(`/internal/clients/${r}/delivery-addresses`, n, (u) => new Z(u.data), t);
3787
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, n, (u) => new re(u.data), t);
3733
3788
  }
3734
3789
  /**
3735
3790
  * Обновляет данные об адресе доставки клиента.
@@ -3758,7 +3813,7 @@ class ls extends Ce {
3758
3813
  }), this.patch(
3759
3814
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
3760
3815
  n,
3761
- (u) => new Z(u.data),
3816
+ (u) => new re(u.data),
3762
3817
  t
3763
3818
  );
3764
3819
  }
@@ -3794,7 +3849,7 @@ class ls extends Ce {
3794
3849
  correspondent_account: t.correspondentAccount,
3795
3850
  currency_id: t.currency.id
3796
3851
  },
3797
- (o) => new he(o.data),
3852
+ (o) => new me(o.data),
3798
3853
  n
3799
3854
  );
3800
3855
  }
@@ -3820,7 +3875,7 @@ class ls extends Ce {
3820
3875
  correspondent_account: t.correspondentAccount,
3821
3876
  currency_id: t.currency.id
3822
3877
  },
3823
- (o) => new he(o.data),
3878
+ (o) => new me(o.data),
3824
3879
  n
3825
3880
  );
3826
3881
  }
@@ -4053,7 +4108,7 @@ class ls extends Ce {
4053
4108
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4054
4109
  }
4055
4110
  }
4056
- class us extends g {
4111
+ class gs extends g {
4057
4112
  /**
4058
4113
  * Выполняет проверку занят ли указанный номер телефона.
4059
4114
  *
@@ -4067,7 +4122,7 @@ class us extends g {
4067
4122
  });
4068
4123
  }
4069
4124
  }
4070
- class ps extends g {
4125
+ class ms extends g {
4071
4126
  /**
4072
4127
  * Возвращает настройки указанного конфигуратора для указанной категории.
4073
4128
  *
@@ -4138,7 +4193,7 @@ class ps extends g {
4138
4193
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(t = r.properties) == null ? void 0 : t.editor}/template/${e}`);
4139
4194
  }
4140
4195
  }
4141
- class hs {
4196
+ class fs {
4142
4197
  /**
4143
4198
  * Возвращает Unix Timestamp диапазон дат (в секундах) по умолчанию.
4144
4199
  *
@@ -4148,24 +4203,24 @@ class hs {
4148
4203
  * Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
4149
4204
  */
4150
4205
  static defaultDateRanges() {
4151
- const r = [0, 6].includes(Ye(ie())) ? Ke(ce()) : ie();
4206
+ const r = [0, 6].includes(Xe(ce())) ? Ze(ue()) : ce();
4152
4207
  return {
4153
4208
  // 'Следующий рабочий день' - это значение по-умолчанию
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()) }
4209
+ nextWorkingDay: { label: "Следующий рабочий день", from: x(ir(r)), to: x(nr(r)) },
4210
+ today: { label: "Сегодня", from: x(ue()), to: x(tr()) },
4211
+ yesterday: { label: "Вчера", from: x(sr()), to: x(rr()) },
4212
+ tomorrow: { label: "Завтра", from: x(ce()), to: x(er()) }
4158
4213
  };
4159
4214
  }
4160
4215
  }
4161
- const H = class H {
4216
+ const E = class E {
4162
4217
  /**
4163
4218
  * Устанавливает список единиц измерения линейной величины.
4164
4219
  *
4165
4220
  * @param linearValues Список единиц измерения линейной величины.
4166
4221
  */
4167
4222
  static setLinearValues(r) {
4168
- H.linearValues = r;
4223
+ E.linearValues = r;
4169
4224
  }
4170
4225
  /**
4171
4226
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -4173,7 +4228,7 @@ const H = class H {
4173
4228
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
4174
4229
  */
4175
4230
  static productIsMeasurable(r) {
4176
- return H.linearValues.includes(r.unit);
4231
+ return E.linearValues.includes(r.unit);
4177
4232
  }
4178
4233
  /**
4179
4234
  * Возвращает кратность количества для указанного товара.
@@ -4182,7 +4237,7 @@ const H = class H {
4182
4237
  */
4183
4238
  static getProductMultiplicity(r) {
4184
4239
  var e, t;
4185
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !H.productIsMeasurable(r) ? r.properties.minCount : 1;
4240
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !E.productIsMeasurable(r) ? r.properties.minCount : 1;
4186
4241
  }
4187
4242
  /**
4188
4243
  * Возвращает кратность длины для указанного товара.
@@ -4197,14 +4252,14 @@ const H = class H {
4197
4252
  /**
4198
4253
  * Список единиц измерения линейной величины.
4199
4254
  */
4200
- s(H, "linearValues", ["пог.м.", "м.", "м2"]);
4201
- let Re = H;
4202
- class gs {
4255
+ s(E, "linearValues", ["пог.м.", "м.", "м2"]);
4256
+ let be = E;
4257
+ class ys {
4203
4258
  /**
4204
4259
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
4205
4260
  */
4206
4261
  static generateUndefinedManagerInstance() {
4207
- return new te({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
4262
+ return new ie({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
4208
4263
  }
4209
4264
  /**
4210
4265
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -4215,19 +4270,19 @@ class gs {
4215
4270
  return r.id === 0 && r.guid === "-undefined-";
4216
4271
  }
4217
4272
  }
4218
- class Ur extends g {
4273
+ class qr extends g {
4219
4274
  /**
4220
4275
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
4221
4276
  */
4222
4277
  getManagers() {
4223
4278
  const r = "/internal/managers", e = g.getCachedResponse(r);
4224
4279
  return e ? Promise.resolve(e) : this.get(r).then((t) => {
4225
- const n = t.data.map((o) => ye.instanceInitializer(te, o));
4280
+ const n = t.data.map((o) => Ce.instanceInitializer(ie, o));
4226
4281
  return n && this.cacheResponse(r, n), n;
4227
4282
  });
4228
4283
  }
4229
4284
  }
4230
- class Mr {
4285
+ class Hr {
4231
4286
  /**
4232
4287
  * Инициализирует экземпляр класса {@link MetaTagItem}.
4233
4288
  *
@@ -4245,7 +4300,7 @@ class Mr {
4245
4300
  this.name = r.name, this.content = r.content;
4246
4301
  }
4247
4302
  }
4248
- class Ae {
4303
+ class $e {
4249
4304
  /**
4250
4305
  * Инициализирует экземпляр класса {@link Seo}.
4251
4306
  *
@@ -4281,10 +4336,10 @@ class Ae {
4281
4336
  */
4282
4337
  s(this, "meta");
4283
4338
  var e;
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))) ?? [];
4339
+ this.resourceType = new ke(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 Hr(t))) ?? [];
4285
4340
  }
4286
4341
  }
4287
- class ms extends g {
4342
+ class ws extends g {
4288
4343
  /**
4289
4344
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
4290
4345
  *
@@ -4292,7 +4347,7 @@ class ms extends g {
4292
4347
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
4293
4348
  */
4294
4349
  getResourceSeoData(r, e) {
4295
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Ae(t.data));
4350
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new $e(t.data));
4296
4351
  }
4297
4352
  /**
4298
4353
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -4303,7 +4358,7 @@ class ms extends g {
4303
4358
  * в случае ошибок в запросах.
4304
4359
  */
4305
4360
  saveResourceSeoData(r, e = {}) {
4306
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Ae(t.data), e);
4361
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new $e(t.data), e);
4307
4362
  }
4308
4363
  /**
4309
4364
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -4315,8 +4370,8 @@ class ms extends g {
4315
4370
  return this.delete(`/internal/seo/${r.slug}/${e}`);
4316
4371
  }
4317
4372
  }
4318
- const v = ee("__references_private", () => {
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);
4373
+ const v = se("__references_private", () => {
4374
+ 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), A = w(void 0), S = w(void 0), T = w(void 0), L = w(void 0), c = w(void 0);
4320
4375
  return {
4321
4376
  /**
4322
4377
  * Список загружаемых/загруженных на данный момент значений.
@@ -4361,7 +4416,7 @@ const v = ee("__references_private", () => {
4361
4416
  /**
4362
4417
  * Справочник групп партнеров.
4363
4418
  */
4364
- partnerGroupReference: R,
4419
+ partnerGroupReference: A,
4365
4420
  /**
4366
4421
  * Справочник типов ресурсов.
4367
4422
  */
@@ -4379,75 +4434,75 @@ const v = ee("__references_private", () => {
4379
4434
  */
4380
4435
  warehousesReference: c
4381
4436
  };
4382
- }), fs = ee("references", () => {
4383
- const i = w(() => {
4437
+ }), Cs = se("references", () => {
4438
+ const i = C(() => {
4384
4439
  const c = v();
4385
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, g.getInstance(D).getChannelPrimaryInterest().then((p) => {
4440
+ return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, g.getInstance(P).getChannelPrimaryInterest().then((p) => {
4386
4441
  c.channelPrimaryInterestReference = p;
4387
4442
  }).catch(f)), c.channelPrimaryInterestReference;
4388
- }), r = w(() => {
4443
+ }), r = C(() => {
4389
4444
  const c = v();
4390
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, g.getInstance(D).getContactPositions().then((p) => {
4445
+ return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, g.getInstance(P).getContactPositions().then((p) => {
4391
4446
  c.contactPositionsReference = p;
4392
4447
  }).catch(f)), c.contactPositionsReference;
4393
- }), e = w(() => {
4448
+ }), e = C(() => {
4394
4449
  const c = v();
4395
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, g.getInstance(D).getCurrency().then((p) => {
4450
+ return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, g.getInstance(P).getCurrency().then((p) => {
4396
4451
  c.currencyReference = p;
4397
4452
  }).catch(f)), c.currencyReference;
4398
- }), t = w(() => {
4453
+ }), t = C(() => {
4399
4454
  const c = v();
4400
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, g.getInstance(D).getOpf().then((p) => {
4455
+ return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, g.getInstance(P).getOpf().then((p) => {
4401
4456
  c.opfReference = p;
4402
4457
  }).catch(f)), c.opfReference;
4403
- }), n = w(() => {
4458
+ }), n = C(() => {
4404
4459
  const c = v();
4405
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, g.getInstance(D).getOrderPaymentStatuses().then((p) => {
4460
+ return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, g.getInstance(P).getOrderPaymentStatuses().then((p) => {
4406
4461
  c.orderPaymentStatusReference = p;
4407
4462
  }).catch(f)), c.orderPaymentStatusReference;
4408
- }), o = w(() => {
4463
+ }), o = C(() => {
4409
4464
  const c = v();
4410
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, g.getInstance(D).getOrderStatuses().then((p) => {
4465
+ return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, g.getInstance(P).getOrderStatuses().then((p) => {
4411
4466
  c.orderStatusReference = p;
4412
4467
  }).catch(f)), c.orderStatusReference;
4413
- }), l = w(() => {
4468
+ }), l = C(() => {
4414
4469
  const c = v();
4415
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, g.getInstance(D).getPaymentTypes().then((p) => {
4470
+ return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, g.getInstance(P).getPaymentTypes().then((p) => {
4416
4471
  c.paymentTypeReference = p;
4417
4472
  }).catch(f)), c.paymentTypeReference;
4418
- }), u = w(() => {
4473
+ }), u = C(() => {
4419
4474
  const c = v();
4420
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, g.getInstance(D).getPartnerGroup().then((p) => {
4475
+ return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, g.getInstance(P).getPartnerGroup().then((p) => {
4421
4476
  c.partnerGroupReference = p;
4422
4477
  }).catch(f)), c.partnerGroupReference;
4423
- }), h = w(() => {
4478
+ }), h = C(() => {
4424
4479
  const c = v();
4425
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, g.getInstance(D).getResourceTypes().then((p) => {
4480
+ return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, g.getInstance(P).getResourceTypes().then((p) => {
4426
4481
  c.resourceTypesReference = p;
4427
4482
  }).catch(f)), c.resourceTypesReference;
4428
- }), m = w(() => {
4483
+ }), m = C(() => {
4429
4484
  const c = v();
4430
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, g.getInstance(D).getSalesDirections().then((p) => {
4485
+ return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, g.getInstance(P).getSalesDirections().then((p) => {
4431
4486
  c.salesDirectionsReference = p;
4432
4487
  }).catch(f)), c.salesDirectionsReference;
4433
- }), R = w(() => {
4488
+ }), A = C(() => {
4434
4489
  const c = v();
4435
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, g.getInstance(D).getSourcePrimaryInterest().then((p) => {
4490
+ return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, g.getInstance(P).getSourcePrimaryInterest().then((p) => {
4436
4491
  c.sourcePrimaryInterestReference = p;
4437
4492
  }).catch(f)), c.sourcePrimaryInterestReference;
4438
- }), S = w(() => {
4493
+ }), S = C(() => {
4439
4494
  const c = v();
4440
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, g.getInstance(D).getDeliveryTypes().then((p) => {
4495
+ return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, g.getInstance(P).getDeliveryTypes().then((p) => {
4441
4496
  c.deliveryTypeReference = p;
4442
4497
  }).catch(f)), c.deliveryTypeReference;
4443
- }), T = w(() => {
4498
+ }), T = C(() => {
4444
4499
  const c = v();
4445
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, g.getInstance(Ur).getManagers().then((p) => {
4500
+ return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, g.getInstance(qr).getManagers().then((p) => {
4446
4501
  c.managersList = p;
4447
4502
  }).catch(f)), c.managersList;
4448
- }), L = w(() => {
4503
+ }), L = C(() => {
4449
4504
  const c = v();
4450
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, g.getInstance(D).getWarehouses().then((p) => {
4505
+ return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, g.getInstance(P).getWarehouses().then((p) => {
4451
4506
  c.warehousesReference = p;
4452
4507
  }).catch(f)), c.warehousesReference;
4453
4508
  });
@@ -4495,7 +4550,7 @@ const v = ee("__references_private", () => {
4495
4550
  /**
4496
4551
  * Справочник каналов первичного интереса.
4497
4552
  */
4498
- sourcePrimaryInterestsReference: R,
4553
+ sourcePrimaryInterestsReference: A,
4499
4554
  /**
4500
4555
  * Справочник типов доставки.
4501
4556
  */
@@ -4509,8 +4564,8 @@ const v = ee("__references_private", () => {
4509
4564
  */
4510
4565
  warehousesReference: L
4511
4566
  };
4512
- }), qr = ee("__user_state_private", () => {
4513
- const i = C({}), r = C(void 0);
4567
+ }), Er = se("__user_state_private", () => {
4568
+ const i = w({}), r = w(void 0);
4514
4569
  return {
4515
4570
  /**
4516
4571
  * Список загружаемых/загруженных на данный момент значений.
@@ -4521,18 +4576,18 @@ const v = ee("__references_private", () => {
4521
4576
  */
4522
4577
  currentUser: r
4523
4578
  };
4524
- }), ys = ee("user_state", () => ({
4579
+ }), vs = se("user_state", () => ({
4525
4580
  /**
4526
4581
  * Данные о текущем пользователе.
4527
4582
  */
4528
- currentUser: w(() => {
4529
- const r = qr();
4530
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, g.getInstance(Tr).getCurrentUser().then((e) => {
4583
+ currentUser: C(() => {
4584
+ const r = Er();
4585
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, g.getInstance(Ir).getCurrentUser().then((e) => {
4531
4586
  r.currentUser = e;
4532
4587
  }).catch(f).finally(f)), r.currentUser;
4533
4588
  })
4534
4589
  }));
4535
- class Cs extends g {
4590
+ class Ds extends g {
4536
4591
  /**
4537
4592
  * Возвращает подсказки по адресам.
4538
4593
  *
@@ -4579,7 +4634,7 @@ class Cs extends g {
4579
4634
  });
4580
4635
  }
4581
4636
  }
4582
- class ws {
4637
+ class Ps {
4583
4638
  /**
4584
4639
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
4585
4640
  *
@@ -4603,117 +4658,120 @@ class ws {
4603
4658
  }
4604
4659
  }
4605
4660
  export {
4606
- Pr as AnyReference,
4607
- Vr as AppBaseConfig,
4661
+ Ar as AnyReference,
4662
+ Jr as AppBaseConfig,
4608
4663
  N as AppConfigProvider,
4609
- he as BankAccount,
4610
- Ce as BasePaginationProvider,
4611
- j as Cart,
4612
- pr as CartItem,
4613
- ur as CartItemBase,
4614
- Qr as CartProvider,
4615
- Kr as CatalogProvider,
4616
- $e as CatalogableItem,
4664
+ me as BankAccount,
4665
+ ve as BasePaginationProvider,
4666
+ Q as Cart,
4667
+ gr as CartItem,
4668
+ hr as CartItemBase,
4669
+ Yr as CartProvider,
4670
+ es as CatalogProvider,
4671
+ Se as CatalogableItem,
4617
4672
  k as Category,
4618
- Le as ChannelPrimaryInterest,
4619
- Yr as City,
4620
- Y as CityWithRegionAndCountry,
4621
- Pe as Client,
4622
- dr as ClientAdditionalData,
4623
- J as ClientCategory,
4624
- ls as ClientDataProvider,
4625
- se as ClientProduct,
4626
- es as ClientProductCategoryDataProvider,
4627
- rs as ClientProductDataProvider,
4628
- we as ClientShortInfo,
4629
- Ir as ClientsAdditionalDataRequestTypeEnum,
4630
- ns as ClientsListFilters,
4631
- ps as ConfiguratorProvider,
4632
- ge as Contact,
4633
- vr as ContactLinks,
4673
+ xe as ChannelPrimaryInterest,
4674
+ Zr as City,
4675
+ X as CityWithRegionAndCountry,
4676
+ Ae as Client,
4677
+ Ur as ClientAdditionalData,
4678
+ K as ClientCategory,
4679
+ hs as ClientDataProvider,
4680
+ ne as ClientProduct,
4681
+ ts as ClientProductCategoryDataProvider,
4682
+ ns as ClientProductDataProvider,
4683
+ De as ClientShortInfo,
4684
+ kr as ClientsAdditionalDataRequestTypeEnum,
4685
+ cs as ClientsListFilters,
4686
+ ms as ConfiguratorProvider,
4687
+ fe as Contact,
4688
+ Pr as ContactLinks,
4634
4689
  U as ContactPerson,
4635
- ar as ContactPersonRelated,
4636
- Rr as ContactPosition,
4637
- oe as ContactRelation,
4638
- ae as ContragentBase,
4639
- X as ContragentFactory,
4640
- Ne as ContragentIc,
4641
- xr as ContragentPerson,
4642
- kr as ContragentUlNr,
4643
- Oe as ContragentUlR,
4644
- Se as CostSourceEnum,
4645
- z as Country,
4646
- K as Currency,
4647
- Cs as DataSuggestionProvider,
4648
- os as DataTablePagination,
4649
- Gr as DataTablePaginationRequestParams,
4650
- cs as DataTableSortRequestParams,
4651
- hs as DateTimeProvider,
4652
- yr as DeletableNamedIdentity,
4653
- Z as DeliveryAddress,
4654
- W as DeliveryType,
4655
- hr as DeviceTypeResolutionConfig,
4656
- Cr as DiscountShortInfo,
4657
- ws as FieldValidationResultData,
4658
- Ue as FilterOpEnum,
4659
- _e as GeoCoordinates,
4660
- cr as HiddenCatalogableItem,
4661
- pe as HttpBaseCachedRequester,
4662
- ue as HttpBaseRequester,
4663
- gr as HttpParamsConfig,
4690
+ Or as ContactPersonRelated,
4691
+ br as ContactPosition,
4692
+ le as ContactRelation,
4693
+ Oe as ContragentBase,
4694
+ ee as ContragentFactory,
4695
+ de as ContragentIc,
4696
+ ar as ContragentPerson,
4697
+ Nr as ContragentUlNr,
4698
+ Ge as ContragentUlR,
4699
+ Le as CostSourceEnum,
4700
+ B as Country,
4701
+ Z as Currency,
4702
+ Ds as DataSuggestionProvider,
4703
+ us as DataTablePagination,
4704
+ Mr as DataTablePaginationRequestParams,
4705
+ ps as DataTableSortRequestParams,
4706
+ fs as DateTimeProvider,
4707
+ Cr as DeletableNamedIdentity,
4708
+ re as DeliveryAddress,
4709
+ z as DeliveryType,
4710
+ mr as DeviceTypeResolutionConfig,
4711
+ vr as DiscountShortInfo,
4712
+ Ps as FieldValidationResultData,
4713
+ qe as FilterOpEnum,
4714
+ Te as GeoCoordinates,
4715
+ ur as HiddenCatalogableItem,
4716
+ ge as HttpBaseCachedRequester,
4717
+ he as HttpBaseRequester,
4718
+ fr as HttpParamsConfig,
4664
4719
  g as HttpRequester,
4665
- B as Identity,
4666
- lr as Image,
4667
- te as Manager,
4668
- Q as ManagerCommon,
4669
- gs as ManagerDataFactory,
4670
- Ur as ManagerDataProvider,
4671
- Mr as MetaTagItem,
4672
- b as NamedIdentity,
4720
+ F as Identity,
4721
+ pr as Image,
4722
+ ie as Manager,
4723
+ Y as ManagerCommon,
4724
+ ys as ManagerDataFactory,
4725
+ qr as ManagerDataProvider,
4726
+ Hr as MetaTagItem,
4727
+ D as NamedIdentity,
4673
4728
  d as Opf,
4674
- A as OpfEnum,
4675
- Or as Order,
4676
- Ge as OrderInfo,
4677
- Ar as OrderPaymentStatus,
4678
- Nr as OrderProduct,
4679
- de as OrderShortInfo,
4680
- br as OrderStatus,
4681
- is as OrdersDataProvider,
4729
+ b as OpfEnum,
4730
+ Gr as Order,
4731
+ Me as OrderInfo,
4732
+ $r as OrderPaymentStatus,
4733
+ dr as OrderProduct,
4734
+ Ue as OrderShortInfo,
4735
+ _r as OrderStatus,
4736
+ ls as OrdersDataProvider,
4682
4737
  G as PartnerGroup,
4683
- $r as PaymentType,
4684
- Jr as PreferencesStorageProvider,
4685
- fe as PriceCoefficient,
4686
- wr as PriceTemplate,
4687
- le as PrimaryCatalogableItem,
4738
+ Sr as PaymentType,
4739
+ Kr as PreferencesStorageProvider,
4740
+ we as PriceCoefficient,
4741
+ Dr as PriceTemplate,
4742
+ pe as PrimaryCatalogableItem,
4688
4743
  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,
4744
+ rs as ProductCategoryDataProvider,
4745
+ ss as ProductDataProvider,
4746
+ xr as ProductPriceHistory,
4747
+ is as PropertiesProvider,
4748
+ j as Property,
4749
+ Xr as PropertyType,
4750
+ M as PropertyValue,
4751
+ os as RecommendationsDataProvider,
4752
+ Re as RecommendationsList,
4695
4753
  y as Reference,
4696
- D as ReferenceDataProvider,
4697
- F as Region,
4698
- Ie as ResourceType,
4754
+ P as ReferenceDataProvider,
4755
+ V as Region,
4756
+ ke as ResourceType,
4699
4757
  _ as SalesDirection,
4700
- mr as SentryConfig,
4701
- Ae as Seo,
4702
- ms as SeoDataProvider,
4703
- xe as SourcePrimaryInterest,
4704
- or as StockCount,
4705
- ye as TypedInstanceFactory,
4706
- Re as UnitsHelper,
4707
- us as UnknownClientDataProvider,
4708
- Te as UpdatableNamedIdentity,
4709
- Sr as User,
4710
- ke as UserCommonInfo,
4711
- Tr as UserDataProvider,
4758
+ yr as SentryConfig,
4759
+ $e as Seo,
4760
+ ws as SeoDataProvider,
4761
+ ae as SourcePrimaryInterest,
4762
+ lr as StockCount,
4763
+ Ce as TypedInstanceFactory,
4764
+ be as UnitsHelper,
4765
+ gs as UnknownClientDataProvider,
4766
+ Ie as UpdatableNamedIdentity,
4767
+ Lr as User,
4768
+ Ne as UserCommonInfo,
4769
+ Ir as UserDataProvider,
4712
4770
  O as UserShortInfo,
4713
- _r as UserTypeEnum,
4714
- fr as VersionConfig,
4715
- re as Warehouse,
4716
- fs as useReferencesStore,
4717
- ys as useUserStateStore
4771
+ Tr as UserTypeEnum,
4772
+ wr as VersionConfig,
4773
+ te as Warehouse,
4774
+ Cs as useReferencesStore,
4775
+ vs as useUserStateStore
4718
4776
  };
4719
4777
  //# sourceMappingURL=sc-common-lib.js.map