@snabcentr/common-lib 1.51.0 → 1.52.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 rr = Object.defineProperty;
2
- var tr = (n, r, e) => r in n ? rr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => tr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { constant as sr, isUndefined as ir, isString as m, cloneDeep as nr, noop as y, toLower as or, map as ie, forEach as cr, isNil as Ge, isDate as lr, isFunction as Me, isEmpty as pr } from "lodash-es";
5
- import { parseISO as f, format as z, addSeconds as ur, isAfter as hr, startOfToday as Fe, addBusinessDays as gr, endOfTomorrow as mr, startOfTomorrow as fr, endOfYesterday as yr, startOfYesterday as Cr, endOfToday as wr, endOfDay as vr, startOfDay as Pr } from "date-fns";
6
- import Rr from "axios";
7
- import { objectToSnake as Ie, objectToCamel as Dr } from "ts-case-convert";
8
- import { defineStore as he } from "pinia";
9
- import { ref as w, computed as v } from "vue";
10
- class d {
1
+ var tr = Object.defineProperty;
2
+ var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { constant as ir, isUndefined as nr, isString as m, cloneDeep as or, noop as y, toLower as cr, map as ne, forEach as lr, isNil as Ge, isDate as pr, isFunction as Me, isEmpty as ur } from "lodash-es";
5
+ import { parseISO as f, format as z, addSeconds as hr, isAfter as gr, startOfToday as Fe, addBusinessDays as mr, endOfTomorrow as fr, startOfTomorrow as yr, endOfYesterday as wr, startOfYesterday as Cr, endOfToday as vr, endOfDay as Pr, startOfDay as Rr } from "date-fns";
6
+ import Dr from "axios";
7
+ import { objectToSnake as Ie, objectToCamel as $r } from "ts-case-convert";
8
+ import { defineStore as ge } from "pinia";
9
+ import { ref as C, computed as v } from "vue";
10
+ class F {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
13
13
  *
@@ -31,7 +31,7 @@ class d {
31
31
  return this.id === -1;
32
32
  }
33
33
  }
34
- class A extends d {
34
+ class D extends F {
35
35
  /**
36
36
  * Инициализирует экземпляр класса {@link NamedIdentity}.
37
37
  *
@@ -46,7 +46,7 @@ class A extends d {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class de extends A {
49
+ class He extends D {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class de extends A {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class Re extends de {
72
+ class De extends He {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -84,7 +84,7 @@ class Re extends de {
84
84
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
85
85
  }
86
86
  }
87
- class re extends Re {
87
+ class te extends De {
88
88
  /**
89
89
  * Инициализирует экземпляр класса {@link BaseCategory}.
90
90
  *
@@ -107,8 +107,8 @@ class re extends Re {
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
- var He = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(He || {});
111
- class C extends A {
110
+ var ze = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ze || {});
111
+ class w extends D {
112
112
  /**
113
113
  * Инициализирует экземпляр класса {@link Reference}.
114
114
  *
@@ -127,15 +127,15 @@ class C extends A {
127
127
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
128
128
  }
129
129
  }
130
- class ge extends C {
130
+ class me extends w {
131
131
  /**
132
132
  * Возвращает значение справочника коэффициента розничной цены.
133
133
  */
134
134
  static getRetailPriceCoefficient() {
135
- return { id: -2, slug: He.Retail, name: "Розн. цена", guid: "", isNewRec: sr(!0) };
135
+ return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: ir(!0) };
136
136
  }
137
137
  }
138
- class be {
138
+ class ae {
139
139
  /**
140
140
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
141
141
  *
@@ -162,10 +162,10 @@ class be {
162
162
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
163
163
  */
164
164
  t(this, "readOnly");
165
- this.coefficient = new ge(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;
165
+ this.coefficient = new me(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;
166
166
  }
167
167
  }
168
- class ze {
168
+ class Be {
169
169
  /**
170
170
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
171
171
  *
@@ -183,9 +183,9 @@ class ze {
183
183
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
184
184
  }
185
185
  }
186
- class E extends C {
186
+ class E extends w {
187
187
  }
188
- class me extends C {
188
+ class fe extends w {
189
189
  /**
190
190
  * Инициализирует экземпляр класса {@link Warehouse}.
191
191
  *
@@ -214,10 +214,10 @@ class me extends C {
214
214
  * Координаты склада.
215
215
  */
216
216
  t(this, "coordinates");
217
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ze(e == null ? void 0 : e.coordinates);
217
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
218
218
  }
219
219
  }
220
- class $r {
220
+ class Ar {
221
221
  /**
222
222
  * Инициализирует экземпляр класса {@link StockCount}.
223
223
  *
@@ -232,7 +232,7 @@ class $r {
232
232
  * Количество остатков товара на складе.
233
233
  */
234
234
  t(this, "count");
235
- this.warehouse = new me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
235
+ this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
236
236
  }
237
237
  }
238
238
  const W = class W {
@@ -249,7 +249,7 @@ const W = class W {
249
249
  */
250
250
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
251
251
  static getConfig() {
252
- if (ir(W.config))
252
+ if (nr(W.config))
253
253
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
254
254
  return W.config;
255
255
  }
@@ -271,8 +271,8 @@ const W = class W {
271
271
  * Конфигурация приложения.
272
272
  */
273
273
  t(W, "config");
274
- let I = W;
275
- class Ar extends de {
274
+ let T = W;
275
+ class Tr extends He {
276
276
  /**
277
277
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
278
278
  *
@@ -287,7 +287,7 @@ class Ar extends de {
287
287
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
288
288
  }
289
289
  }
290
- class Tr {
290
+ class br {
291
291
  /**
292
292
  * Инициализирует экземпляр класса {@link Image}.
293
293
  *
@@ -310,7 +310,7 @@ class Tr {
310
310
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
311
311
  }
312
312
  }
313
- class a extends Ar {
313
+ class a extends Tr {
314
314
  /**
315
315
  * Инициализирует экземпляр класса {@link Product}.
316
316
  *
@@ -383,19 +383,19 @@ class a extends Ar {
383
383
  * Список коэффициентов цен на продукт.
384
384
  */
385
385
  t(this, "priceCoefficients");
386
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new $r(h))) ?? [], this.type = "product";
387
- const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
388
- s && (this.category = new Re({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Re(h))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((h) => new Tr(h, I.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((h) => new be(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
386
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new Ar(g))) ?? [], this.type = "product";
387
+ const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
388
+ s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new br(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new ae(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
389
389
  }
390
390
  /**
391
391
  * Возвращает признак, что это измеряемый товар.
392
392
  */
393
393
  getIsMeasurable() {
394
- const e = I.getConfig().products.units;
394
+ const e = T.getConfig().products.units;
395
395
  return [...e.linear, ...e.square].includes(this.unit);
396
396
  }
397
397
  }
398
- class br extends d {
398
+ class ar extends F {
399
399
  /**
400
400
  * Инициализирует экземпляр класса {@link CartItemBase}.
401
401
  *
@@ -447,10 +447,10 @@ class br extends d {
447
447
  * Признак того, что позиция является дополнительной продажей.
448
448
  */
449
449
  t(this, "isAdditionalSale");
450
- this.product = new a(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new re(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
450
+ this.product = new a(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new te(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && or(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
451
451
  }
452
452
  }
453
- class _r extends br {
453
+ class _r extends ar {
454
454
  /**
455
455
  * Инициализирует экземпляр класса {@link CartItem}.
456
456
  *
@@ -500,7 +500,7 @@ class _r extends br {
500
500
  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;
501
501
  }
502
502
  }
503
- class se {
503
+ class ie {
504
504
  /**
505
505
  * Инициализирует экземпляр класса {@link Cart}.
506
506
  *
@@ -633,7 +633,7 @@ class xr {
633
633
  this.date = m(r == null ? void 0 : r.date) ? f(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
634
634
  }
635
635
  }
636
- class ht {
636
+ class gt {
637
637
  /**
638
638
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
639
639
  *
@@ -716,7 +716,7 @@ class _e {
716
716
  return new r(e);
717
717
  }
718
718
  }
719
- const N = class N {
719
+ const _ = class _ {
720
720
  /**
721
721
  * Инициализирует экземпляр класса {@link HttpRequester}.
722
722
  *
@@ -736,23 +736,23 @@ const N = class N {
736
736
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
737
737
  */
738
738
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
739
- const s = I.getConfig().version;
740
- this.defaultInstanceNotificationErrorResponseHandler = N.baseDefaultNotificationErrorResponseHandler, this.httpClient = Rr.create({
739
+ const s = T.getConfig().version;
740
+ this.defaultInstanceNotificationErrorResponseHandler = _.baseDefaultNotificationErrorResponseHandler, this.httpClient = Dr.create({
741
741
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
742
742
  baseURL: r,
743
743
  headers: {
744
- "APP-VERSION": `${s.name} (${s.version}, ${z(s.date, I.getConfig().dateFormats.api)})`,
744
+ "APP-VERSION": `${s.name} (${s.version}, ${z(s.date, T.getConfig().dateFormats.api)})`,
745
745
  Accept: "application/json",
746
746
  "Content-Type": "application/json",
747
747
  ...e
748
748
  }
749
749
  }), this.httpClient.interceptors.request.use(
750
- (i) => (i.method && (i.method === "get" && i.params && (i.params = Ie(i.params)), ["put", "patch", "post"].includes(or(i.method)) && i.data && (i.data = Ie(i.data))), i),
750
+ (i) => (i.method && (i.method === "get" && i.params && (i.params = Ie(i.params)), ["put", "patch", "post"].includes(cr(i.method)) && i.data && (i.data = Ie(i.data))), i),
751
751
  (i) => Promise.reject(i)
752
752
  ), this.httpClient.interceptors.response.use(
753
- (i) => (i.data && (i.data = Dr(i.data)), i),
753
+ (i) => (i.data && (i.data = $r(i.data)), i),
754
754
  // Возвращаем изменённую структуру сообщения об ошибке.
755
- (i) => N.convertHttpErrorResponse(i)
755
+ (i) => _.convertHttpErrorResponse(i)
756
756
  );
757
757
  }
758
758
  /**
@@ -761,7 +761,7 @@ const N = class N {
761
761
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
762
762
  */
763
763
  static setBaseDefaultNotificationErrorResponseHandler(r) {
764
- N.baseDefaultNotificationErrorResponseHandler = r;
764
+ _.baseDefaultNotificationErrorResponseHandler = r;
765
765
  }
766
766
  /**
767
767
  * Возвращает экземпляр объекта текущего класса.
@@ -769,7 +769,7 @@ const N = class N {
769
769
  * @param type Тип данных, которыми оперирует метод.
770
770
  */
771
771
  static getInstance(r) {
772
- return Object.prototype.hasOwnProperty.call(N.instances, r.name) || (N.instances[r.name] = _e.simpleInstanceInitializer(r)), N.instances[r.name];
772
+ return Object.prototype.hasOwnProperty.call(_.instances, r.name) || (_.instances[r.name] = _e.simpleInstanceInitializer(r)), _.instances[r.name];
773
773
  }
774
774
  /**
775
775
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -864,16 +864,16 @@ const N = class N {
864
864
  * Экземпляр объекта текущего класса.
865
865
  */
866
866
  // eslint-disable-next-line no-use-before-define
867
- t(N, "instances", {}), /**
867
+ t(_, "instances", {}), /**
868
868
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
869
869
  *
870
870
  * Параметры:
871
871
  * - error Данные об ошибке.
872
872
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
873
873
  */
874
- t(N, "baseDefaultNotificationErrorResponseHandler", y);
875
- let De = N;
876
- const j = class j extends De {
874
+ t(_, "baseDefaultNotificationErrorResponseHandler", y);
875
+ let $e = _;
876
+ const j = class j extends $e {
877
877
  /**
878
878
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
879
879
  *
@@ -886,7 +886,7 @@ const j = class j extends De {
886
886
  * Время кэширования данных ответов на запросы (секунд).
887
887
  */
888
888
  t(this, "responseDataCacheTimeout");
889
- const i = I.getConfig();
889
+ const i = T.getConfig();
890
890
  this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
891
891
  }
892
892
  /**
@@ -908,7 +908,7 @@ const j = class j extends De {
908
908
  */
909
909
  cacheResponse(e, s) {
910
910
  j.responseDataCache.set(e, {
911
- validTo: ur(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
911
+ validTo: hr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
912
912
  val: s
913
913
  });
914
914
  }
@@ -924,7 +924,7 @@ const j = class j extends De {
924
924
  getTypedDataArrayRequester(e, s, i = !1) {
925
925
  const o = i ? j.getCachedResponse(s) : void 0;
926
926
  return o ? Promise.resolve(o) : this.get(s).then((l) => {
927
- const p = l.map((h) => _e.instanceInitializer(e, h));
927
+ const p = l.map((g) => _e.instanceInitializer(e, g));
928
928
  return i && p && this.cacheResponse(s, p), p;
929
929
  });
930
930
  }
@@ -933,18 +933,18 @@ const j = class j extends De {
933
933
  * Кэш результатов запросов.
934
934
  */
935
935
  t(j, "responseDataCache", /* @__PURE__ */ new Map());
936
- let $e = j;
937
- class u extends $e {
936
+ let Ae = j;
937
+ class u extends Ae {
938
938
  /**
939
939
  * Инициализирует экземпляр класса {@link HttpRequester}.
940
940
  */
941
941
  constructor() {
942
942
  var s, i;
943
- const r = I.getConfig(), e = {};
943
+ const r = T.getConfig(), e = {};
944
944
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
945
945
  }
946
946
  }
947
- class gt extends u {
947
+ class mt extends u {
948
948
  /**
949
949
  * Возвращает содержимое корзины указанного клиента.
950
950
  *
@@ -953,7 +953,7 @@ class gt extends u {
953
953
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
954
954
  */
955
955
  getCart(r) {
956
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new se(e.data));
956
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ie(e.data));
957
957
  }
958
958
  /**
959
959
  * Удаляет всё содержимое корзины.
@@ -991,7 +991,7 @@ class gt extends u {
991
991
  isAdditionalSale: e.isAdditionalSale,
992
992
  ...e.configuratorParams
993
993
  },
994
- (i) => new se(i.data),
994
+ (i) => new ie(i.data),
995
995
  s
996
996
  );
997
997
  }
@@ -1021,7 +1021,7 @@ class gt extends u {
1021
1021
  isAdditionalSale: e.isAdditionalSale,
1022
1022
  ...e.configuratorParams
1023
1023
  },
1024
- (i) => new se(i.data),
1024
+ (i) => new ie(i.data),
1025
1025
  s
1026
1026
  );
1027
1027
  }
@@ -1044,11 +1044,11 @@ class gt extends u {
1044
1044
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1045
1045
  */
1046
1046
  addCartItemFromCSV(r) {
1047
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new se(e.data));
1047
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ie(e.data));
1048
1048
  }
1049
1049
  }
1050
- var ar = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ar || {}), Se = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Se || {}), kr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(kr || {});
1051
- class q extends re {
1050
+ var kr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(kr || {}), Se = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Se || {}), Nr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Nr || {});
1051
+ class d extends te {
1052
1052
  /**
1053
1053
  * Инициализирует экземпляр класса {@link Category}.
1054
1054
  *
@@ -1065,10 +1065,10 @@ class q extends re {
1065
1065
  * Список продуктов категории.
1066
1066
  */
1067
1067
  t(this, "products");
1068
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new a(o));
1068
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new d(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new a(o));
1069
1069
  }
1070
1070
  }
1071
- class Be extends A {
1071
+ class We extends D {
1072
1072
  /**
1073
1073
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1074
1074
  *
@@ -1083,7 +1083,7 @@ class Be extends A {
1083
1083
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1084
1084
  }
1085
1085
  }
1086
- class Nr extends Be {
1086
+ class Or extends We {
1087
1087
  /**
1088
1088
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1089
1089
  *
@@ -1098,7 +1098,7 @@ class Nr extends Be {
1098
1098
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1099
1099
  }
1100
1100
  }
1101
- class mt {
1101
+ class ft {
1102
1102
  /**
1103
1103
  * Возвращает актуальные и не просроченные данные из хранилища.
1104
1104
  *
@@ -1109,7 +1109,7 @@ class mt {
1109
1109
  if (e)
1110
1110
  try {
1111
1111
  const s = JSON.parse(e);
1112
- if (hr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1112
+ if (gr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1113
1113
  return s.data || {};
1114
1114
  } catch {
1115
1115
  localStorage.removeItem(r);
@@ -1132,7 +1132,7 @@ class mt {
1132
1132
  );
1133
1133
  }
1134
1134
  }
1135
- class U extends A {
1135
+ class q extends D {
1136
1136
  /**
1137
1137
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1138
1138
  *
@@ -1147,7 +1147,7 @@ class U extends A {
1147
1147
  this.type = e == null ? void 0 : e.type;
1148
1148
  }
1149
1149
  }
1150
- class Or extends A {
1150
+ class dr extends D {
1151
1151
  /**
1152
1152
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1153
1153
  *
@@ -1183,10 +1183,10 @@ class Or extends A {
1183
1183
  * Дата и время удаления.
1184
1184
  */
1185
1185
  t(this, "deletedAt");
1186
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1186
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1187
1187
  }
1188
1188
  }
1189
- class B extends Be {
1189
+ class B extends We {
1190
1190
  /**
1191
1191
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1192
1192
  *
@@ -1241,7 +1241,7 @@ class K extends a {
1241
1241
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1242
1242
  */
1243
1243
  t(this, "isFavorite");
1244
- 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 Or(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1244
+ 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 dr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1245
1245
  }
1246
1246
  }
1247
1247
  class qr {
@@ -1262,9 +1262,9 @@ class qr {
1262
1262
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1263
1263
  }
1264
1264
  }
1265
- class O extends C {
1265
+ class S extends w {
1266
1266
  }
1267
- class ne extends A {
1267
+ class oe extends D {
1268
1268
  /**
1269
1269
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1270
1270
  *
@@ -1275,7 +1275,7 @@ class ne extends A {
1275
1275
  /**
1276
1276
  * Направление продаж.
1277
1277
  */
1278
- t(this, "salesDirection", new O());
1278
+ t(this, "salesDirection", new S());
1279
1279
  /**
1280
1280
  * URI путь к фотографии пользователя.
1281
1281
  */
@@ -1288,10 +1288,10 @@ class ne extends A {
1288
1288
  * Признак того, что менеджер является основным для клиента.
1289
1289
  */
1290
1290
  t(this, "isDefault");
1291
- e && (this.salesDirection = new O(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new qr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1291
+ e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new qr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1292
1292
  }
1293
1293
  }
1294
- class fe extends ne {
1294
+ class ye extends oe {
1295
1295
  /**
1296
1296
  * Инициализирует экземпляр класса {@link Manager}.
1297
1297
  *
@@ -1322,7 +1322,7 @@ class fe extends ne {
1322
1322
  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;
1323
1323
  }
1324
1324
  }
1325
- class Ur extends re {
1325
+ class Ur extends te {
1326
1326
  /**
1327
1327
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1328
1328
  *
@@ -1350,10 +1350,10 @@ class Ur extends re {
1350
1350
  * Данные о менеджере за которым закреплена категория.
1351
1351
  */
1352
1352
  t(this, "manager");
1353
- 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 fe(e.manager) : void 0;
1353
+ 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 ye(e.manager) : void 0;
1354
1354
  }
1355
1355
  }
1356
- class oe extends Ur {
1356
+ class ce extends Ur {
1357
1357
  /**
1358
1358
  * Инициализирует экземпляр класса {@link ClientCategory}.
1359
1359
  *
@@ -1370,10 +1370,10 @@ class oe extends Ur {
1370
1370
  * Список продуктов категории.
1371
1371
  */
1372
1372
  t(this, "products");
1373
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new oe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
1373
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
1374
1374
  }
1375
1375
  }
1376
- class We {
1376
+ class je {
1377
1377
  /**
1378
1378
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1379
1379
  *
@@ -1388,10 +1388,10 @@ class We {
1388
1388
  * Процент, который прибавляется к значению выбранного коэффициента.
1389
1389
  */
1390
1390
  t(this, "increasePercent");
1391
- this.coefficient = (r == null ? void 0 : r.coefficient) && new ge(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1391
+ this.coefficient = (r == null ? void 0 : r.coefficient) && new me(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1392
1392
  }
1393
1393
  }
1394
- class Ce extends We {
1394
+ class Ce extends je {
1395
1395
  /**
1396
1396
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1397
1397
  *
@@ -1403,12 +1403,12 @@ class Ce extends We {
1403
1403
  * Базовые данные о продукте.
1404
1404
  */
1405
1405
  t(this, "productCategory");
1406
- this.productCategory = new re(e == null ? void 0 : e.productCategory);
1406
+ this.productCategory = new te(e == null ? void 0 : e.productCategory);
1407
1407
  }
1408
1408
  }
1409
- class J extends C {
1409
+ class J extends w {
1410
1410
  }
1411
- class Z extends C {
1411
+ class ee extends w {
1412
1412
  /**
1413
1413
  * Инициализирует экземпляр класса {@link Region}.
1414
1414
  *
@@ -1423,7 +1423,7 @@ class Z extends C {
1423
1423
  e && (this.country = new J(e.country));
1424
1424
  }
1425
1425
  }
1426
- class ce extends C {
1426
+ class le extends w {
1427
1427
  /**
1428
1428
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1429
1429
  *
@@ -1434,11 +1434,11 @@ class ce extends C {
1434
1434
  /**
1435
1435
  * Данные о регионе, в котором расположен город.
1436
1436
  */
1437
- t(this, "region", new Z());
1438
- e && (this.region = new Z(e.region));
1437
+ t(this, "region", new ee());
1438
+ e && (this.region = new ee(e.region));
1439
1439
  }
1440
1440
  }
1441
- class je extends A {
1441
+ class Ve extends D {
1442
1442
  /**
1443
1443
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1444
1444
  *
@@ -1474,10 +1474,10 @@ class je extends A {
1474
1474
  * Признак активности учетной записи пользователя.
1475
1475
  */
1476
1476
  t(this, "isActive");
1477
- 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 O(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1477
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new S(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1478
1478
  }
1479
1479
  }
1480
- class te extends je {
1480
+ class se extends Ve {
1481
1481
  /**
1482
1482
  * Инициализирует экземпляр класса {@link Client}.
1483
1483
  *
@@ -1519,10 +1519,10 @@ class te extends je {
1519
1519
  * Список менеджеров клиента.
1520
1520
  */
1521
1521
  t(this, "managers");
1522
- this.salesDirection = new O(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 ce(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new ne(i))) ?? [];
1522
+ this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new le(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new oe(i))) ?? [];
1523
1523
  }
1524
1524
  }
1525
- class Q extends d {
1525
+ class Y extends F {
1526
1526
  /**
1527
1527
  * Инициализирует новый экземпляр класса.
1528
1528
  *
@@ -1546,10 +1546,10 @@ class Q extends d {
1546
1546
  * Данные шаблона прайс-листа.
1547
1547
  */
1548
1548
  t(this, "priceTemplate");
1549
- this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
1549
+ this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
1550
1550
  }
1551
1551
  }
1552
- class we extends We {
1552
+ class ve extends je {
1553
1553
  /**
1554
1554
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1555
1555
  *
@@ -1564,9 +1564,9 @@ class we extends We {
1564
1564
  this.product = new a(e == null ? void 0 : e.product);
1565
1565
  }
1566
1566
  }
1567
- class Ve extends C {
1567
+ class Ee extends w {
1568
1568
  }
1569
- class Y extends A {
1569
+ class X extends D {
1570
1570
  /**
1571
1571
  * Инициализирует экземпляр класса {@link Property}.
1572
1572
  *
@@ -1586,7 +1586,7 @@ class Y extends A {
1586
1586
  * Дополнительные метаданные свойства.
1587
1587
  */
1588
1588
  t(this, "metadata");
1589
- this.type = new Ve(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1589
+ this.type = new Ee(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1590
1590
  }
1591
1591
  }
1592
1592
  class H {
@@ -1605,18 +1605,18 @@ class H {
1605
1605
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1606
1606
  */
1607
1607
  t(this, "value");
1608
- this.property = new Y(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1608
+ this.property = new X(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1609
1609
  }
1610
1610
  }
1611
- class Gr extends C {
1611
+ class Gr extends w {
1612
1612
  }
1613
- class Ee extends C {
1613
+ class Ke extends w {
1614
1614
  }
1615
- class ft extends C {
1615
+ class yt extends w {
1616
1616
  }
1617
- class Mr extends C {
1617
+ class Mr extends w {
1618
1618
  }
1619
- class le extends A {
1619
+ class pe extends D {
1620
1620
  /**
1621
1621
  * Инициализирует экземпляр класса {@link Currency}.
1622
1622
  *
@@ -1635,33 +1635,33 @@ class le extends A {
1635
1635
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
1636
1636
  }
1637
1637
  }
1638
- var x = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(x || {});
1639
- class G extends C {
1638
+ var b = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(b || {});
1639
+ class U extends w {
1640
1640
  /**
1641
1641
  * Возвращает сгенерированную запись-описание физического лица.
1642
1642
  */
1643
1643
  static generatePersonItem() {
1644
- return new G({
1644
+ return new U({
1645
1645
  id: 1,
1646
1646
  guid: "",
1647
- slug: x.Person,
1647
+ slug: b.Person,
1648
1648
  name: ""
1649
1649
  });
1650
1650
  }
1651
1651
  }
1652
- class Fr extends C {
1652
+ class Fr extends w {
1653
1653
  }
1654
- class dr extends C {
1654
+ class Hr extends w {
1655
1655
  }
1656
- class M extends C {
1656
+ class G extends w {
1657
1657
  }
1658
- class Hr extends C {
1658
+ class zr extends w {
1659
1659
  }
1660
- class zr extends C {
1660
+ class Br extends w {
1661
1661
  }
1662
- class Ke extends C {
1662
+ class Je extends w {
1663
1663
  }
1664
- class Je extends C {
1664
+ class Qe extends w {
1665
1665
  }
1666
1666
  class R extends u {
1667
1667
  /**
@@ -1679,7 +1679,7 @@ class R extends u {
1679
1679
  * первичного интереса.
1680
1680
  */
1681
1681
  getChannelPrimaryInterest() {
1682
- return this.getTypedDataArrayRequester(Ee, "/internal/references/channel-primary-interest", !0);
1682
+ return this.getTypedDataArrayRequester(Ke, "/internal/references/channel-primary-interest", !0);
1683
1683
  }
1684
1684
  /**
1685
1685
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -1691,20 +1691,20 @@ class R extends u {
1691
1691
  * Возвращает {@link Promise} для получения справочника списка валют.
1692
1692
  */
1693
1693
  getCurrency() {
1694
- return this.getTypedDataArrayRequester(le, "/public/references/currency", !0);
1694
+ return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
1695
1695
  }
1696
1696
  /**
1697
1697
  * Возвращает {@link Promise} для получения справочника данных
1698
1698
  * групп партнеров (направлений деятельности).
1699
1699
  */
1700
1700
  getPartnerGroup() {
1701
- return this.getTypedDataArrayRequester(M, "/internal/references/partner-group", !0);
1701
+ return this.getTypedDataArrayRequester(G, "/internal/references/partner-group", !0);
1702
1702
  }
1703
1703
  /**
1704
1704
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
1705
1705
  */
1706
1706
  getOpf() {
1707
- return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
1707
+ return this.getTypedDataArrayRequester(U, "/public/references/opf", !0);
1708
1708
  }
1709
1709
  /**
1710
1710
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -1716,31 +1716,31 @@ class R extends u {
1716
1716
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1717
1717
  */
1718
1718
  getOrderStatuses() {
1719
- return this.getTypedDataArrayRequester(dr, "/public/references/order-status", !0);
1719
+ return this.getTypedDataArrayRequester(Hr, "/public/references/order-status", !0);
1720
1720
  }
1721
1721
  /**
1722
1722
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1723
1723
  */
1724
1724
  getPaymentTypes() {
1725
- return this.getTypedDataArrayRequester(Hr, "/public/references/payment-type", !0);
1725
+ return this.getTypedDataArrayRequester(zr, "/public/references/payment-type", !0);
1726
1726
  }
1727
1727
  /**
1728
1728
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1729
1729
  */
1730
1730
  getResourceTypes() {
1731
- return this.getTypedDataArrayRequester(Ke, "/internal/references/resource-type", !0);
1731
+ return this.getTypedDataArrayRequester(Je, "/internal/references/resource-type", !0);
1732
1732
  }
1733
1733
  /**
1734
1734
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
1735
1735
  */
1736
1736
  getSalesDirections() {
1737
- return this.getTypedDataArrayRequester(O, "/public/references/sales-direction", !0);
1737
+ return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
1738
1738
  }
1739
1739
  /**
1740
1740
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1741
1741
  */
1742
1742
  getSourcePrimaryInterest() {
1743
- return this.getTypedDataArrayRequester(Je, "/internal/references/source-primary-interest", !0);
1743
+ return this.getTypedDataArrayRequester(Qe, "/internal/references/source-primary-interest", !0);
1744
1744
  }
1745
1745
  /**
1746
1746
  * Выполняет поиск данных о городах по терму в названии.
@@ -1748,7 +1748,7 @@ class R extends u {
1748
1748
  * @param term Терм поиска.
1749
1749
  */
1750
1750
  searchCity(r) {
1751
- return this.getTypedDataArrayRequester(ce, `/internal/references/city-with-region-and-country/search?term=${r}`);
1751
+ return this.getTypedDataArrayRequester(le, `/internal/references/city-with-region-and-country/search?term=${r}`);
1752
1752
  }
1753
1753
  /**
1754
1754
  * Выполняет поиск данных о регионах по терму в названии.
@@ -1756,7 +1756,7 @@ class R extends u {
1756
1756
  * @param term Терм поиска.
1757
1757
  */
1758
1758
  searchRegion(r) {
1759
- return this.getTypedDataArrayRequester(Z, `/internal/references/region-with-country/search?term=${r}`);
1759
+ return this.getTypedDataArrayRequester(ee, `/internal/references/region-with-country/search?term=${r}`);
1760
1760
  }
1761
1761
  /**
1762
1762
  * Выполняет поиск данных о странах по терму в названии.
@@ -1776,29 +1776,29 @@ class R extends u {
1776
1776
  * Возвращает {@link Promise} для получения справочника складов.
1777
1777
  */
1778
1778
  getWarehouses() {
1779
- return this.getTypedDataArrayRequester(me, "/public/references/warehouse", !0);
1779
+ return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
1780
1780
  }
1781
1781
  /**
1782
1782
  * Возвращает {@link Promise} для получения справочника типов свойств.
1783
1783
  */
1784
1784
  getPropertyTypes() {
1785
- return this.getTypedDataArrayRequester(Ve, "/internal/references/property-type", !0);
1785
+ return this.getTypedDataArrayRequester(Ee, "/internal/references/property-type", !0);
1786
1786
  }
1787
1787
  /**
1788
1788
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
1789
1789
  */
1790
1790
  getPriceCoefficients() {
1791
- return this.getTypedDataArrayRequester(ge, "/internal/references/price-coefficient", !0);
1791
+ return this.getTypedDataArrayRequester(me, "/internal/references/price-coefficient", !0);
1792
1792
  }
1793
1793
  /**
1794
1794
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1795
1795
  */
1796
1796
  getProductFileType() {
1797
- return this.getTypedDataArrayRequester(zr, "/public/references/product-file-type", !0);
1797
+ return this.getTypedDataArrayRequester(Br, "/public/references/product-file-type", !0);
1798
1798
  }
1799
1799
  }
1800
- var Br = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Br || {});
1801
- class Wr extends je {
1800
+ var Wr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Wr || {});
1801
+ class jr extends Ve {
1802
1802
  /**
1803
1803
  * Инициализирует экземпляр класса {@link User}.
1804
1804
  *
@@ -1821,16 +1821,16 @@ class Wr extends je {
1821
1821
  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;
1822
1822
  }
1823
1823
  }
1824
- class jr extends u {
1824
+ class Vr extends u {
1825
1825
  /**
1826
1826
  * Возвращает данные о текущем пользователе.
1827
1827
  */
1828
1828
  // eslint-disable-next-line class-methods-use-this
1829
1829
  getCurrentUser() {
1830
- return this.get("/internal/users/info", {}, (r) => new Wr(r.data));
1830
+ return this.get("/internal/users/info", {}, (r) => new jr(r.data));
1831
1831
  }
1832
1832
  }
1833
- class Vr {
1833
+ class Er {
1834
1834
  /**
1835
1835
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1836
1836
  *
@@ -1873,7 +1873,7 @@ class Vr {
1873
1873
  * Данные о валюте.
1874
1874
  */
1875
1875
  t(this, "currency");
1876
- this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new le(r.currency) : void 0;
1876
+ this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1877
1877
  }
1878
1878
  }
1879
1879
  class xe {
@@ -1891,10 +1891,10 @@ class xe {
1891
1891
  * Список рекомендованных категорий продуктов.
1892
1892
  */
1893
1893
  t(this, "productCategories", []);
1894
- r != null && r.products && (this.products = r.products.map((e) => new a(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
1894
+ r != null && r.products && (this.products = r.products.map((e) => new a(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new d(e)));
1895
1895
  }
1896
1896
  }
1897
- class X extends A {
1897
+ class Z extends D {
1898
1898
  /**
1899
1899
  * Инициализирует экземпляр класса {@link PricingRole}.
1900
1900
  *
@@ -1929,7 +1929,7 @@ class X extends A {
1929
1929
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
1930
1930
  }
1931
1931
  }
1932
- class ae {
1932
+ class ke {
1933
1933
  /**
1934
1934
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
1935
1935
  *
@@ -1948,10 +1948,10 @@ class ae {
1948
1948
  * Минимальный коэффициент цены.
1949
1949
  */
1950
1950
  t(this, "minCoefficient");
1951
- this.role = new X(r == null ? void 0 : r.role), this.category = new re(r == null ? void 0 : r.category), this.minCoefficient = new ge(r == null ? void 0 : r.minCoefficient);
1951
+ this.role = new Z(r == null ? void 0 : r.role), this.category = new te(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
1952
1952
  }
1953
1953
  }
1954
- class ve {
1954
+ class Pe {
1955
1955
  /**
1956
1956
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
1957
1957
  *
@@ -1978,10 +1978,10 @@ class ve {
1978
1978
  * Источник клиентской цены.
1979
1979
  */
1980
1980
  t(this, "source");
1981
- this.client = new te(r == null ? void 0 : r.client), this.product = new a(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Se.Product;
1981
+ this.client = new se(r == null ? void 0 : r.client), this.product = new a(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Se.Product;
1982
1982
  }
1983
1983
  }
1984
- class yt extends u {
1984
+ class wt extends u {
1985
1985
  /**
1986
1986
  * Возвращает данные о результатах поиска категорий и товаров.
1987
1987
  *
@@ -2008,7 +2008,7 @@ class yt extends u {
2008
2008
  */
2009
2009
  // eslint-disable-next-line class-methods-use-this
2010
2010
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2011
- let l = `${I.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2011
+ let l = `${T.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2012
2012
  return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
2013
2013
  }
2014
2014
  }
@@ -2211,7 +2211,7 @@ class Ct extends u {
2211
2211
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2212
2212
  }
2213
2213
  }
2214
- class wt extends u {
2214
+ class vt extends u {
2215
2215
  /**
2216
2216
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2217
2217
  *
@@ -2223,7 +2223,7 @@ class wt extends u {
2223
2223
  return this.get(
2224
2224
  `/internal/clients/${r}/price/templates`,
2225
2225
  {},
2226
- (e) => e.data.map((s) => new Q(s))
2226
+ (e) => e.data.map((s) => new Y(s))
2227
2227
  );
2228
2228
  }
2229
2229
  /**
@@ -2234,7 +2234,7 @@ class wt extends u {
2234
2234
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2235
2235
  */
2236
2236
  getActiveTemplate(r) {
2237
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Q(e.data));
2237
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Y(e.data));
2238
2238
  }
2239
2239
  /**
2240
2240
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2246,14 +2246,14 @@ class wt extends u {
2246
2246
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2247
2247
  */
2248
2248
  attachTemplate(r, e, s) {
2249
- const i = I.getConfig().dateFormats.api;
2249
+ const i = T.getConfig().dateFormats.api;
2250
2250
  return this.post(
2251
2251
  `/internal/clients/${r}/price/templates/${e}`,
2252
2252
  s && {
2253
2253
  startAt: s.startAt && z(s.startAt, i),
2254
2254
  endAt: s.endAt && z(s.endAt, i)
2255
2255
  },
2256
- (o) => new Q(o.data)
2256
+ (o) => new Y(o.data)
2257
2257
  );
2258
2258
  }
2259
2259
  /**
@@ -2278,14 +2278,14 @@ class wt extends u {
2278
2278
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2279
2279
  */
2280
2280
  changeTemplate(r, e, s, i) {
2281
- const o = I.getConfig().dateFormats.api;
2281
+ const o = T.getConfig().dateFormats.api;
2282
2282
  return this.patch(
2283
2283
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2284
2284
  i && {
2285
2285
  startAt: i.startAt && z(i.startAt, o),
2286
2286
  endAt: i.endAt && z(i.endAt, o)
2287
2287
  },
2288
- (l) => new Q(l.data)
2288
+ (l) => new Y(l.data)
2289
2289
  );
2290
2290
  }
2291
2291
  /**
@@ -2301,7 +2301,7 @@ class wt extends u {
2301
2301
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2302
2302
  }
2303
2303
  }
2304
- class vt extends u {
2304
+ class Pt extends u {
2305
2305
  /**
2306
2306
  * Возвращает список данных о корневых категориях.
2307
2307
  *
@@ -2315,7 +2315,7 @@ class vt extends u {
2315
2315
  {
2316
2316
  showHidden: r
2317
2317
  },
2318
- (e) => e.data.map((s) => new q(s))
2318
+ (e) => e.data.map((s) => new d(s))
2319
2319
  );
2320
2320
  }
2321
2321
  /**
@@ -2334,7 +2334,7 @@ class vt extends u {
2334
2334
  showHidden: e,
2335
2335
  withNestedCategories: s
2336
2336
  },
2337
- (i) => new q(i.data)
2337
+ (i) => new d(i.data)
2338
2338
  );
2339
2339
  }
2340
2340
  /**
@@ -2343,7 +2343,7 @@ class vt extends u {
2343
2343
  * @param categoryID Идентификатор категории продуктов.
2344
2344
  */
2345
2345
  getPublicCategoryData(r) {
2346
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new q(e.data));
2346
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new d(e.data));
2347
2347
  }
2348
2348
  /**
2349
2349
  * Возвращает список продуктов категории.
@@ -2361,7 +2361,7 @@ class vt extends u {
2361
2361
  showHidden: s,
2362
2362
  withPriceCoefficients: e
2363
2363
  },
2364
- (i) => ie(i.data, (o) => new a(o))
2364
+ (i) => ne(i.data, (o) => new a(o))
2365
2365
  );
2366
2366
  }
2367
2367
  /**
@@ -2374,7 +2374,7 @@ class vt extends u {
2374
2374
  getCategoryProductsCoefficients(r) {
2375
2375
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2376
2376
  const { data: s } = e;
2377
- return cr(s, (i) => i.map((o) => new be(o))), s;
2377
+ return lr(s, (i) => i.map((o) => new ae(o))), s;
2378
2378
  });
2379
2379
  }
2380
2380
  /**
@@ -2386,14 +2386,14 @@ class vt extends u {
2386
2386
  publicSimpleSearch(r, e = 10) {
2387
2387
  return new Promise((s, i) => {
2388
2388
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2389
- s(o.categories.map((l) => new q(l)));
2389
+ s(o.categories.map((l) => new d(l)));
2390
2390
  }).catch((o) => {
2391
2391
  i(o);
2392
2392
  });
2393
2393
  });
2394
2394
  }
2395
2395
  }
2396
- class Pt extends u {
2396
+ class Rt extends u {
2397
2397
  /**
2398
2398
  * Возвращает данные об указанном продукте.
2399
2399
  *
@@ -2424,7 +2424,7 @@ class Pt extends u {
2424
2424
  return this.get(
2425
2425
  `/internal/catalog/products/${r}/coefficients`,
2426
2426
  {},
2427
- (e) => ie(e.data, (s) => new be(s))
2427
+ (e) => ne(e.data, (s) => new ae(s))
2428
2428
  );
2429
2429
  }
2430
2430
  /**
@@ -2437,7 +2437,7 @@ class Pt extends u {
2437
2437
  */
2438
2438
  getProductPriceHistory(r, e) {
2439
2439
  const s = {};
2440
- return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new Vr(o)));
2440
+ return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Er(o)));
2441
2441
  }
2442
2442
  /**
2443
2443
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2455,7 +2455,7 @@ class Pt extends u {
2455
2455
  });
2456
2456
  }
2457
2457
  }
2458
- class Rt extends u {
2458
+ class Dt extends u {
2459
2459
  /**
2460
2460
  * Возвращает список данных о корневых категориях указанного клиента.
2461
2461
  *
@@ -2471,7 +2471,7 @@ class Rt extends u {
2471
2471
  clientId: r,
2472
2472
  showHidden: e
2473
2473
  },
2474
- (s) => s.data.map((i) => new oe(i))
2474
+ (s) => s.data.map((i) => new ce(i))
2475
2475
  );
2476
2476
  }
2477
2477
  /**
@@ -2492,7 +2492,7 @@ class Rt extends u {
2492
2492
  showHidden: s,
2493
2493
  withNestedCategories: i
2494
2494
  },
2495
- (o) => new oe(o.data)
2495
+ (o) => new ce(o.data)
2496
2496
  );
2497
2497
  }
2498
2498
  /**
@@ -2513,11 +2513,11 @@ class Rt extends u {
2513
2513
  showHidden: i,
2514
2514
  withPriceCoefficients: s
2515
2515
  },
2516
- (o) => ie(o.data, (l) => new K(l))
2516
+ (o) => ne(o.data, (l) => new K(l))
2517
2517
  );
2518
2518
  }
2519
2519
  }
2520
- class Dt extends u {
2520
+ class $t extends u {
2521
2521
  /**
2522
2522
  * Возвращает данные об указанном продукте для указанного клиента.
2523
2523
  *
@@ -2539,7 +2539,7 @@ class Dt extends u {
2539
2539
  }
2540
2540
  }
2541
2541
  var Le = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Le || {});
2542
- class ke {
2542
+ class Ne {
2543
2543
  /**
2544
2544
  * Инициализирует экземпляр класса {@link FilterItem}.
2545
2545
  *
@@ -2570,10 +2570,10 @@ class ke {
2570
2570
  field: this.field,
2571
2571
  op: this.op
2572
2572
  };
2573
- return r.value = lr(this.value) ? z(this.value, I.getConfig().dateFormats.api) : this.value, r;
2573
+ return r.value = pr(this.value) ? z(this.value, T.getConfig().dateFormats.api) : this.value, r;
2574
2574
  }
2575
2575
  }
2576
- class ee {
2576
+ class re {
2577
2577
  /**
2578
2578
  * Инициализирует экземпляр класса {@link FilterGroup}.
2579
2579
  *
@@ -2593,7 +2593,7 @@ class ee {
2593
2593
  */
2594
2594
  t(this, "groups");
2595
2595
  var e, s;
2596
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new ke(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ee(i))) ?? [];
2596
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ne(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new re(i))) ?? [];
2597
2597
  }
2598
2598
  /**
2599
2599
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2603,12 +2603,12 @@ class ee {
2603
2603
  toPrimitive() {
2604
2604
  return {
2605
2605
  groupOp: this.groupOp,
2606
- filters: this.filters.map((r) => r instanceof ke && Me(r.toPrimitive) ? r.toPrimitive() : r),
2607
- groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
2606
+ filters: this.filters.map((r) => r instanceof Ne && Me(r.toPrimitive) ? r.toPrimitive() : r),
2607
+ groups: this.groups.map((r) => r instanceof re ? r.toPrimitive() : r)
2608
2608
  };
2609
2609
  }
2610
2610
  }
2611
- class ye extends u {
2611
+ class we extends u {
2612
2612
  /**
2613
2613
  * Получает пагинированный список данных.
2614
2614
  *
@@ -2621,14 +2621,14 @@ class ye extends u {
2621
2621
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2622
2622
  */
2623
2623
  getPaginated(r, e, s, i, o, l, p) {
2624
- let h = {
2624
+ let g = {
2625
2625
  page: (i == null ? void 0 : i.page) ?? 1,
2626
2626
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2627
2627
  };
2628
- return e && (h.filters = JSON.stringify((e instanceof ee ? e : new ee(e)).toPrimitive())), pr(s) || (h.sort = s), o && (h = { ...h, ...o }), this.get(r, h, l, p);
2628
+ return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), ur(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2629
2629
  }
2630
2630
  }
2631
- class $t extends ye {
2631
+ class At extends we {
2632
2632
  /**
2633
2633
  * Возвращает список шаблонов прайс-листа.
2634
2634
  *
@@ -2696,7 +2696,7 @@ class $t extends ye {
2696
2696
  return this.get(
2697
2697
  `/internal/price/templates/${r}/products`,
2698
2698
  {},
2699
- (e) => e.data.map((s) => new we(s))
2699
+ (e) => e.data.map((s) => new ve(s))
2700
2700
  );
2701
2701
  }
2702
2702
  /**
@@ -2708,7 +2708,7 @@ class $t extends ye {
2708
2708
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2709
2709
  */
2710
2710
  getProductTemplatePrice(r, e) {
2711
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new we(s.data));
2711
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ve(s.data));
2712
2712
  }
2713
2713
  /**
2714
2714
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2727,7 +2727,7 @@ class $t extends ye {
2727
2727
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2728
2728
  increase_percent: s.value
2729
2729
  },
2730
- (o) => new we(o.data)
2730
+ (o) => new ve(o.data)
2731
2731
  );
2732
2732
  }
2733
2733
  /**
@@ -2812,18 +2812,18 @@ class $t extends ye {
2812
2812
  return this.get(
2813
2813
  `/internal/price/templates/${r}/clients`,
2814
2814
  {},
2815
- (e) => e.data.map((s) => new Q(s))
2815
+ (e) => e.data.map((s) => new Y(s))
2816
2816
  );
2817
2817
  }
2818
2818
  }
2819
- class At extends u {
2819
+ class Tt extends u {
2820
2820
  /**
2821
2821
  * Возвращает список ролей ценообразования.
2822
2822
  *
2823
2823
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
2824
2824
  */
2825
2825
  getRoles() {
2826
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new X(e)));
2826
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new Z(e)));
2827
2827
  }
2828
2828
  /**
2829
2829
  * Добавляет новую роль ценообразования.
@@ -2833,7 +2833,7 @@ class At extends u {
2833
2833
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
2834
2834
  */
2835
2835
  createRole(r) {
2836
- return this.post("/internal/price/roles", r, (e) => new X(e.data));
2836
+ return this.post("/internal/price/roles", r, (e) => new Z(e.data));
2837
2837
  }
2838
2838
  /**
2839
2839
  * Возвращает данные роли ценообразования.
@@ -2843,7 +2843,7 @@ class At extends u {
2843
2843
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
2844
2844
  */
2845
2845
  getRole(r) {
2846
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new X(e.data));
2846
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new Z(e.data));
2847
2847
  }
2848
2848
  /**
2849
2849
  * Обновляет данные роли ценообразования.
@@ -2854,7 +2854,7 @@ class At extends u {
2854
2854
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
2855
2855
  */
2856
2856
  updateRole(r, e) {
2857
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new X(s.data));
2857
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new Z(s.data));
2858
2858
  }
2859
2859
  /**
2860
2860
  * Удаляет роль ценообразования.
@@ -2877,7 +2877,7 @@ class At extends u {
2877
2877
  return this.get(
2878
2878
  `/internal/price/roles/rules/categories/${r}`,
2879
2879
  {},
2880
- (e) => e.data.map((s) => new ae(s))
2880
+ (e) => e.data.map((s) => new ke(s))
2881
2881
  );
2882
2882
  }
2883
2883
  /**
@@ -2892,11 +2892,11 @@ class At extends u {
2892
2892
  return this.patch(
2893
2893
  `/internal/price/roles/rules/categories/${r}`,
2894
2894
  e,
2895
- (s) => s.data.map((i) => new ae(i))
2895
+ (s) => s.data.map((i) => new ke(i))
2896
2896
  );
2897
2897
  }
2898
2898
  }
2899
- class Tt extends ye {
2899
+ class bt extends we {
2900
2900
  /**
2901
2901
  * Возвращает пагинированный список свойств.
2902
2902
  *
@@ -2909,7 +2909,7 @@ class Tt extends ye {
2909
2909
  getProperties(r, e, s) {
2910
2910
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
2911
2911
  const o = { ...i.data };
2912
- return o.data = o.data.map((l) => new Y(l)), o;
2912
+ return o.data = o.data.map((l) => new X(l)), o;
2913
2913
  });
2914
2914
  }
2915
2915
  /**
@@ -2926,7 +2926,7 @@ class Tt extends ye {
2926
2926
  ...s,
2927
2927
  type: e
2928
2928
  },
2929
- (i) => new Y(i.data)
2929
+ (i) => new X(i.data)
2930
2930
  );
2931
2931
  }
2932
2932
  /**
@@ -2936,7 +2936,7 @@ class Tt extends ye {
2936
2936
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
2937
2937
  */
2938
2938
  getProperty(r) {
2939
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Y(e.data));
2939
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new X(e.data));
2940
2940
  }
2941
2941
  /**
2942
2942
  * Обновляет существующее свойство.
@@ -2953,7 +2953,7 @@ class Tt extends ye {
2953
2953
  ...i,
2954
2954
  type: s
2955
2955
  },
2956
- (o) => new Y(o.data)
2956
+ (o) => new X(o.data)
2957
2957
  );
2958
2958
  }
2959
2959
  /**
@@ -3268,7 +3268,7 @@ class Tt extends ye {
3268
3268
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3269
3269
  }
3270
3270
  }
3271
- class bt extends u {
3271
+ class at extends u {
3272
3272
  /**
3273
3273
  * Возвращает данные о рекомендациях указанной категории продуктов.
3274
3274
  *
@@ -3310,7 +3310,7 @@ class bt extends u {
3310
3310
  });
3311
3311
  }
3312
3312
  }
3313
- const Ne = (n) => {
3313
+ const Oe = (n) => {
3314
3314
  const r = {};
3315
3315
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
3316
3316
  };
@@ -3326,8 +3326,8 @@ class _t extends u {
3326
3326
  analyzeProductPrices(r, e) {
3327
3327
  return this.get(
3328
3328
  `/internal/price/products/${r}/analyze`,
3329
- { ...Ne(e) },
3330
- (s) => s.data.map((i) => new ve(i))
3329
+ { ...Oe(e) },
3330
+ (s) => s.data.map((i) => new Pe(i))
3331
3331
  );
3332
3332
  }
3333
3333
  /**
@@ -3341,8 +3341,8 @@ class _t extends u {
3341
3341
  analyzeCategoryPrices(r, e) {
3342
3342
  return this.get(
3343
3343
  `/internal/price/categories/${r}/analyze`,
3344
- { ...Ne(e) },
3345
- (s) => s.data.map((i) => new ve(i))
3344
+ { ...Oe(e) },
3345
+ (s) => s.data.map((i) => new Pe(i))
3346
3346
  );
3347
3347
  }
3348
3348
  /**
@@ -3359,12 +3359,12 @@ class _t extends u {
3359
3359
  return this.get(
3360
3360
  `/internal/price/categories/${r}/analyze/square`,
3361
3361
  { ...e },
3362
- (s) => s.data.map((i) => new ve(i))
3362
+ (s) => s.data.map((i) => new Pe(i))
3363
3363
  );
3364
3364
  }
3365
3365
  }
3366
- var Er = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Er || {});
3367
- class Ae extends d {
3366
+ var Kr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Kr || {});
3367
+ class Te extends F {
3368
3368
  /**
3369
3369
  * Инициализирует экземпляр класса {@link BankAccount}.
3370
3370
  *
@@ -3391,11 +3391,11 @@ class Ae extends d {
3391
3391
  /**
3392
3392
  * Данные о валюте.
3393
3393
  */
3394
- t(this, "currency", new le());
3395
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new le(e.currency));
3394
+ t(this, "currency", new pe());
3395
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
3396
3396
  }
3397
3397
  }
3398
- class Te extends A {
3398
+ class be extends D {
3399
3399
  /**
3400
3400
  * Инициализирует экземпляр класса {@link Contact}.
3401
3401
  *
@@ -3414,7 +3414,7 @@ class Te extends A {
3414
3414
  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;
3415
3415
  }
3416
3416
  }
3417
- class F extends Te {
3417
+ class M extends be {
3418
3418
  /**
3419
3419
  * Инициализирует экземпляр класса {@link ContactPerson}.
3420
3420
  *
@@ -3449,7 +3449,7 @@ class F extends Te {
3449
3449
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3450
3450
  }
3451
3451
  }
3452
- class Qe extends A {
3452
+ class Ye extends D {
3453
3453
  /**
3454
3454
  * Инициализирует экземпляр класса {@link ContragentBase}.
3455
3455
  *
@@ -3461,19 +3461,19 @@ class Qe extends A {
3461
3461
  /**
3462
3462
  * Данные о менеджере.
3463
3463
  */
3464
- t(this, "manager", new ne());
3464
+ t(this, "manager", new oe());
3465
3465
  /**
3466
3466
  * Данные об организационно-правовой форме.
3467
3467
  */
3468
- t(this, "opf", G.generatePersonItem());
3468
+ t(this, "opf", U.generatePersonItem());
3469
3469
  /**
3470
3470
  * Направление продаж.
3471
3471
  */
3472
- t(this, "salesDirection", new O());
3472
+ t(this, "salesDirection", new S());
3473
3473
  /**
3474
3474
  * Группа партнеров (направление деятельности).
3475
3475
  */
3476
- t(this, "partnerGroup", new M());
3476
+ t(this, "partnerGroup", new G());
3477
3477
  /**
3478
3478
  * Список контактных лиц контрагента.
3479
3479
  */
@@ -3507,22 +3507,22 @@ class Qe extends A {
3507
3507
  */
3508
3508
  t(this, "updater");
3509
3509
  if (e) {
3510
- if (this.opf = new G(e.opf), this.salesDirection = new O(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new ne(e.manager)), e.contacts) {
3510
+ if (this.opf = new U(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
3511
3511
  const s = [];
3512
3512
  e.contacts.forEach((i) => {
3513
- s.push(new F(i));
3513
+ s.push(new M(i));
3514
3514
  }), this.contacts = s;
3515
3515
  }
3516
3516
  if (e.bankAccounts) {
3517
3517
  const s = [];
3518
3518
  e.bankAccounts.forEach((i) => {
3519
- s.push(new Ae(i));
3519
+ s.push(new Te(i));
3520
3520
  }), this.bankAccounts = s;
3521
3521
  }
3522
3522
  }
3523
3523
  }
3524
3524
  }
3525
- class Kr extends Qe {
3525
+ class Jr extends Ye {
3526
3526
  /**
3527
3527
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3528
3528
  *
@@ -3532,7 +3532,7 @@ class Kr extends Qe {
3532
3532
  super(r);
3533
3533
  }
3534
3534
  }
3535
- class Ye extends Qe {
3535
+ class Xe extends Ye {
3536
3536
  /**
3537
3537
  * Инициализирует экземпляр класса {@link ContragentIc}.
3538
3538
  *
@@ -3575,7 +3575,7 @@ class Ye extends Qe {
3575
3575
  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 ?? "");
3576
3576
  }
3577
3577
  }
3578
- class Xe extends Ye {
3578
+ class Ze extends Xe {
3579
3579
  /**
3580
3580
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3581
3581
  *
@@ -3590,7 +3590,7 @@ class Xe extends Ye {
3590
3590
  e && (this.kpp = e.kpp ?? "");
3591
3591
  }
3592
3592
  }
3593
- class Jr extends Xe {
3593
+ class Qr extends Ze {
3594
3594
  /**
3595
3595
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3596
3596
  *
@@ -3613,7 +3613,7 @@ class Jr extends Xe {
3613
3613
  e && (this.registrationCountry = new J(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3614
3614
  }
3615
3615
  }
3616
- class pe {
3616
+ class ue {
3617
3617
  /**
3618
3618
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3619
3619
  *
@@ -3621,18 +3621,18 @@ class pe {
3621
3621
  */
3622
3622
  static createInstance(r) {
3623
3623
  switch (r.opf.slug) {
3624
- case x.Ic:
3625
- return new Ye(r);
3626
- case x.UlR:
3624
+ case b.Ic:
3627
3625
  return new Xe(r);
3628
- case x.UlNr:
3629
- return new Jr(r);
3626
+ case b.UlR:
3627
+ return new Ze(r);
3628
+ case b.UlNr:
3629
+ return new Qr(r);
3630
3630
  default:
3631
- return new Kr(r);
3631
+ return new Jr(r);
3632
3632
  }
3633
3633
  }
3634
3634
  }
3635
- class Pe extends d {
3635
+ class Re extends F {
3636
3636
  /**
3637
3637
  * Инициализирует экземпляр класса {@link ContactRelation}.
3638
3638
  *
@@ -3647,7 +3647,7 @@ class Pe extends d {
3647
3647
  this.isPrimary = e.isPrimary;
3648
3648
  }
3649
3649
  }
3650
- class Qr extends F {
3650
+ class Yr extends M {
3651
3651
  /**
3652
3652
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3653
3653
  *
@@ -3672,10 +3672,10 @@ class Qr extends F {
3672
3672
  */
3673
3673
  addresses: []
3674
3674
  });
3675
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Pe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Pe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Pe(s))));
3675
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
3676
3676
  }
3677
3677
  }
3678
- class ue extends Nr {
3678
+ class he extends Or {
3679
3679
  /**
3680
3680
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3681
3681
  *
@@ -3712,10 +3712,10 @@ class ue extends Nr {
3712
3712
  * Признак того, что указанный адрес является адресом транспортной компании.
3713
3713
  */
3714
3714
  t(this, "isTransportCompanyAddress");
3715
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ze(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3715
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3716
3716
  }
3717
3717
  }
3718
- class Oe extends te {
3718
+ class de extends se {
3719
3719
  /**
3720
3720
  * Инициализирует экземпляр класса {@link Client}.
3721
3721
  *
@@ -3769,7 +3769,25 @@ class Oe extends te {
3769
3769
  * Дополнительные данные о клиенте.
3770
3770
  */
3771
3771
  t(this, "extraData");
3772
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => pe.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ue(p))) ?? [], this.channelPrimaryInterest = new Ee(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Je(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(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 me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3772
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new G(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new M(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new he(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(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 fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3773
+ }
3774
+ }
3775
+ class Q {
3776
+ /**
3777
+ * Инициализирует экземпляр класса {@link DatePeriod}.
3778
+ *
3779
+ * @param data Данные для первоначальной инициализации.
3780
+ */
3781
+ constructor(r) {
3782
+ /**
3783
+ * Начало периода.
3784
+ */
3785
+ t(this, "from");
3786
+ /**
3787
+ * Окончание периода.
3788
+ */
3789
+ t(this, "to");
3790
+ this.from = m(r == null ? void 0 : r.from) ? f(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = m(r == null ? void 0 : r.to) ? f(r.to) : (r == null ? void 0 : r.to) ?? null;
3773
3791
  }
3774
3792
  }
3775
3793
  class St {
@@ -3822,17 +3840,11 @@ class St {
3822
3840
  /**
3823
3841
  * Период регистрации.
3824
3842
  */
3825
- t(this, "createdAt", {
3826
- from: null,
3827
- to: null
3828
- });
3843
+ t(this, "createdAt", new Q());
3829
3844
  /**
3830
3845
  * Период последнего входа.
3831
3846
  */
3832
- t(this, "lastLoginDate", {
3833
- from: null,
3834
- to: null
3835
- });
3847
+ t(this, "lastLoginDate", new Q());
3836
3848
  /**
3837
3849
  * Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
3838
3850
  */
@@ -3857,10 +3869,6 @@ class St {
3857
3869
  * Предпочитаемый тип доставки.
3858
3870
  */
3859
3871
  t(this, "preferredDeliveryType");
3860
- /**
3861
- * Признак, что у клиента имеются цены ниже стоп-цен.
3862
- */
3863
- t(this, "hasCostLessThenStop");
3864
3872
  /**
3865
3873
  * Группа партнеров (направление деятельности).
3866
3874
  */
@@ -3873,17 +3881,11 @@ class St {
3873
3881
  * Данные о параметрах поиска последнего заказа который сделал пользователь.
3874
3882
  */
3875
3883
  t(this, "lastOrder");
3876
- var e, s, i, o, l, p, h, D, $, T, b, _, S, L, k;
3877
- this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.searchTerm = (r == null ? void 0 : r.searchTerm) ?? "", this.city = new ce(r == null ? void 0 : r.city), this.region = new Z(r == null ? void 0 : r.region), this.country = new J(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 = {
3878
- from: m((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ? f((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.from) : (i = r == null ? void 0 : r.createdAt) == null ? void 0 : i.from,
3879
- to: m((o = r == null ? void 0 : r.createdAt) == null ? void 0 : o.to) ? f((l = r == null ? void 0 : r.createdAt) == null ? void 0 : l.to) : (p = r == null ? void 0 : r.createdAt) == null ? void 0 : p.to
3880
- }, this.lastLoginDate = {
3881
- from: m((h = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : h.from) ? f((D = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : D.from) : ($ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : $.from,
3882
- to: m((T = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : T.to) ? f((b = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : b.to) : (_ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : _.to
3883
- }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((c) => new fe(c)) : [], this.salesDirection = new O(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new Te(r == null ? void 0 : r.contact), this.lastOrder = {
3884
- createdAt: (S = r == null ? void 0 : r.lastOrder) == null ? void 0 : S.createdAt,
3885
- creator: (L = r == null ? void 0 : r.lastOrder) == null ? void 0 : L.creator,
3886
- isApproved: (k = r == null ? void 0 : r.lastOrder) == null ? void 0 : k.isApproved
3884
+ var e, s, i;
3885
+ this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.searchTerm = (r == null ? void 0 : r.searchTerm) ?? "", this.city = new le(r == null ? void 0 : r.city), this.region = new ee(r == null ? void 0 : r.region), this.country = new J(r == null ? void 0 : r.country), this.phone = (r == null ? void 0 : r.phone) ?? "", this.email = (r == null ? void 0 : r.email) ?? "", this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new Q(r == null ? void 0 : r.createdAt), this.lastLoginDate = new Q(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new ye(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
3886
+ createdAt: new Q((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3887
+ creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3888
+ isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
3887
3889
  };
3888
3890
  }
3889
3891
  /**
@@ -3903,10 +3905,10 @@ class St {
3903
3905
  this[r] = "";
3904
3906
  break;
3905
3907
  case "city":
3906
- this.city = new ce();
3908
+ this.city = new le();
3907
3909
  break;
3908
3910
  case "region":
3909
- this.region = new Z();
3911
+ this.region = new ee();
3910
3912
  break;
3911
3913
  case "isActive":
3912
3914
  this.isActive = !0;
@@ -3927,22 +3929,19 @@ class St {
3927
3929
  this.managers = [];
3928
3930
  break;
3929
3931
  case "salesDirection":
3930
- this.salesDirection = new O();
3932
+ this.salesDirection = new S();
3931
3933
  break;
3932
3934
  case "contragentType":
3933
- this.contragentType = new G();
3935
+ this.contragentType = new U();
3934
3936
  break;
3935
3937
  case "preferredDeliveryType":
3936
3938
  this.preferredDeliveryType = new E();
3937
3939
  break;
3938
3940
  case "partnerGroup":
3939
- this.partnerGroup = new M();
3940
- break;
3941
- case "hasCostLessThenStop":
3942
- this.hasCostLessThenStop = void 0;
3941
+ this.partnerGroup = new G();
3943
3942
  break;
3944
3943
  case "contact":
3945
- this.contact = new Te();
3944
+ this.contact = new be();
3946
3945
  break;
3947
3946
  }
3948
3947
  return this;
@@ -3961,7 +3960,7 @@ class St {
3961
3960
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
3962
3961
  }
3963
3962
  }
3964
- class Ze extends d {
3963
+ class er extends F {
3965
3964
  /**
3966
3965
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
3967
3966
  *
@@ -3981,17 +3980,17 @@ class Ze extends d {
3981
3980
  * Признак того, что заказ подтвержден в 1С.
3982
3981
  */
3983
3982
  t(this, "isApproved1c");
3984
- this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3983
+ this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3985
3984
  }
3986
3985
  }
3987
- class er extends Ze {
3986
+ class rr extends er {
3988
3987
  /**
3989
3988
  * Инициализирует экземпляр класса {@link OrderInfo}.
3990
3989
  *
3991
3990
  * @param data Данные для первоначальной инициализации.
3992
3991
  */
3993
3992
  constructor(e) {
3994
- var s, i, o, l, p, h, D, $;
3993
+ var s, i, o, l, p, g, $, A;
3995
3994
  super(e);
3996
3995
  /**
3997
3996
  * Краткие данные о клиенте.
@@ -4033,19 +4032,19 @@ class er extends Ze {
4033
4032
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
4034
4033
  */
4035
4034
  t(this, "isNotInStock");
4036
- this.client = new te(e == null ? void 0 : e.client), this.payment = {
4035
+ this.client = new se(e == null ? void 0 : e.client), this.payment = {
4037
4036
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
4038
4037
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
4039
4038
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
4040
4039
  }, this.delivery = {
4041
4040
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
4042
- date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
4043
- address: (D = e == null ? void 0 : e.delivery) != null && D.address ? new ue(e.delivery.address) : void 0,
4044
- warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new me(e.delivery.warehouse) : void 0
4045
- }, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
4041
+ date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
4042
+ address: ($ = e == null ? void 0 : e.delivery) != null && $.address ? new he(e.delivery.address) : void 0,
4043
+ warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new fe(e.delivery.warehouse) : void 0
4044
+ }, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
4046
4045
  }
4047
4046
  }
4048
- class Yr extends d {
4047
+ class Xr extends F {
4049
4048
  /**
4050
4049
  * Инициализирует экземпляр класса {@link OrderProduct}.
4051
4050
  *
@@ -4128,7 +4127,7 @@ class Yr extends d {
4128
4127
  this.product = new K(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;
4129
4128
  }
4130
4129
  }
4131
- class Xr extends er {
4130
+ class Zr extends rr {
4132
4131
  /**
4133
4132
  * Инициализирует экземпляр класса {@link Order}.
4134
4133
  *
@@ -4168,10 +4167,10 @@ class Xr extends er {
4168
4167
  * Признак, что разрешена передача заказа в работу без оплаты.
4169
4168
  */
4170
4169
  t(this, "isAllowProcessingWithoutPayment");
4171
- this.products = (e.products ?? []).map((s) => new Yr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? pe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
4170
+ this.products = (e.products ?? []).map((s) => new Xr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
4172
4171
  }
4173
4172
  }
4174
- class Lt extends ye {
4173
+ class Lt extends we {
4175
4174
  /**
4176
4175
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
4177
4176
  *
@@ -4184,7 +4183,7 @@ class Lt extends ye {
4184
4183
  getOrders(r, e, s) {
4185
4184
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
4186
4185
  const o = { ...i.data };
4187
- return o.data = o.data.map((l) => new er(l)), o;
4186
+ return o.data = o.data.map((l) => new rr(l)), o;
4188
4187
  });
4189
4188
  }
4190
4189
  /**
@@ -4202,10 +4201,10 @@ class Lt extends ye {
4202
4201
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
4203
4202
  */
4204
4203
  getOrder(r) {
4205
- return this.get(`/internal/orders/${r}`, {}, (e) => new Xr(e.data));
4204
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Zr(e.data));
4206
4205
  }
4207
4206
  }
4208
- class Zr extends A {
4207
+ class et extends D {
4209
4208
  /**
4210
4209
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4211
4210
  *
@@ -4230,10 +4229,10 @@ class Zr extends A {
4230
4229
  * Данные о последнем заказе клиента.
4231
4230
  */
4232
4231
  t(this, "lastOrder");
4233
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new Ze(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
4232
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
4234
4233
  }
4235
4234
  }
4236
- class et {
4235
+ class rt {
4237
4236
  /**
4238
4237
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4239
4238
  *
@@ -4251,7 +4250,7 @@ class et {
4251
4250
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4252
4251
  }
4253
4252
  }
4254
- class It extends et {
4253
+ class It extends rt {
4255
4254
  /**
4256
4255
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4257
4256
  *
@@ -4300,7 +4299,7 @@ class xt {
4300
4299
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4301
4300
  }
4302
4301
  }
4303
- class at extends ye {
4302
+ class kt extends we {
4304
4303
  /**
4305
4304
  * Возвращает данные об указанном клиенте.
4306
4305
  *
@@ -4308,7 +4307,7 @@ class at extends ye {
4308
4307
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4309
4308
  */
4310
4309
  getClient(r) {
4311
- return this.get(`/internal/clients/${r}`, {}, (e) => new Oe(e.data));
4310
+ return this.get(`/internal/clients/${r}`, {}, (e) => new de(e.data));
4312
4311
  }
4313
4312
  /**
4314
4313
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4323,7 +4322,7 @@ class at extends ye {
4323
4322
  getClientsList(r, e, s, i) {
4324
4323
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4325
4324
  const l = { ...o.data };
4326
- return l.data = l.data.map((p) => new te(p)), l;
4325
+ return l.data = l.data.map((p) => new se(p)), l;
4327
4326
  });
4328
4327
  }
4329
4328
  /**
@@ -4349,7 +4348,7 @@ class at extends ye {
4349
4348
  getAdditionalClientsData(r, e) {
4350
4349
  return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (s) => {
4351
4350
  let i = [];
4352
- return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new Zr(o))), i;
4351
+ return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new et(o))), i;
4353
4352
  });
4354
4353
  }
4355
4354
  /**
@@ -4361,7 +4360,7 @@ class at extends ye {
4361
4360
  getAllClientContacts(r) {
4362
4361
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4363
4362
  let s = [];
4364
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Qr(i))), s;
4363
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Yr(i))), s;
4365
4364
  });
4366
4365
  }
4367
4366
  /**
@@ -4391,7 +4390,7 @@ class at extends ye {
4391
4390
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4392
4391
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4393
4392
  },
4394
- (i) => new Oe(i.data),
4393
+ (i) => new de(i.data),
4395
4394
  e
4396
4395
  );
4397
4396
  }
@@ -4501,17 +4500,17 @@ class at extends ye {
4501
4500
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4502
4501
  */
4503
4502
  createContragentClientData(r, e, s = {}) {
4504
- var h, D, $, T, b, _, S, L;
4503
+ var g, $, A, L, I, x, k, N;
4505
4504
  let i;
4506
4505
  const o = e, l = e, p = e;
4507
4506
  switch (e.opf.slug) {
4508
- case x.Ic:
4507
+ case b.Ic:
4509
4508
  i = {
4510
4509
  opf: o.opf.slug,
4511
4510
  name: o.name,
4512
4511
  alternative_name: o.alternativeName,
4513
- partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
4514
- manager_id: (D = o.manager) == null ? void 0 : D.id,
4512
+ partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4513
+ manager_id: ($ = o.manager) == null ? void 0 : $.id,
4515
4514
  comment: o.comment,
4516
4515
  inn: o.inn,
4517
4516
  okpo: o.okpo,
@@ -4523,13 +4522,13 @@ class at extends ye {
4523
4522
  actual_address: o.actualAddress
4524
4523
  };
4525
4524
  break;
4526
- case x.UlR:
4525
+ case b.UlR:
4527
4526
  i = {
4528
4527
  opf: l.opf.slug,
4529
4528
  name: l.name,
4530
4529
  alternative_name: l.alternativeName,
4531
- partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4532
- manager_id: (T = l.manager) == null ? void 0 : T.id,
4530
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4531
+ manager_id: (L = l.manager) == null ? void 0 : L.id,
4533
4532
  comment: l.comment,
4534
4533
  inn: l.inn,
4535
4534
  kpp: l.kpp,
@@ -4542,13 +4541,13 @@ class at extends ye {
4542
4541
  actual_address: l.actualAddress
4543
4542
  };
4544
4543
  break;
4545
- case x.UlNr:
4544
+ case b.UlNr:
4546
4545
  i = {
4547
4546
  opf: p.opf.slug,
4548
4547
  name: p.name,
4549
4548
  alternative_name: p.alternativeName,
4550
- partner_group_id: (b = p.partnerGroup) == null ? void 0 : b.id,
4551
- manager_id: (_ = p.manager) == null ? void 0 : _.id,
4549
+ partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4550
+ manager_id: (x = p.manager) == null ? void 0 : x.id,
4552
4551
  comment: p.comment,
4553
4552
  director_name: p.directorName,
4554
4553
  director_position: p.directorPosition,
@@ -4566,8 +4565,8 @@ class at extends ye {
4566
4565
  opf: e.opf.slug,
4567
4566
  name: e.name,
4568
4567
  alternative_name: e.alternativeName,
4569
- partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
4570
- manager_id: (L = e.manager) == null ? void 0 : L.id,
4568
+ partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
4569
+ manager_id: (N = e.manager) == null ? void 0 : N.id,
4571
4570
  comment: e.comment
4572
4571
  };
4573
4572
  break;
@@ -4575,7 +4574,7 @@ class at extends ye {
4575
4574
  return this.post(
4576
4575
  `/internal/clients/${r}/contragents`,
4577
4576
  i,
4578
- (k) => pe.createInstance(k.data),
4577
+ (O) => ue.createInstance(O.data),
4579
4578
  s
4580
4579
  );
4581
4580
  }
@@ -4590,17 +4589,17 @@ class at extends ye {
4590
4589
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4591
4590
  */
4592
4591
  updateContragentClientData(r, e, s = {}) {
4593
- var h, D, $, T, b, _, S, L;
4592
+ var g, $, A, L, I, x, k, N;
4594
4593
  let i;
4595
4594
  const o = e, l = e, p = e;
4596
4595
  switch (e.opf.slug) {
4597
- case x.Ic:
4596
+ case b.Ic:
4598
4597
  i = {
4599
4598
  opf: o.opf.slug,
4600
4599
  name: o.name,
4601
4600
  alternative_name: o.alternativeName,
4602
- partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
4603
- manager_id: (D = o.manager) == null ? void 0 : D.id,
4601
+ partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4602
+ manager_id: ($ = o.manager) == null ? void 0 : $.id,
4604
4603
  comment: o.comment,
4605
4604
  inn: o.inn,
4606
4605
  okpo: o.okpo,
@@ -4612,13 +4611,13 @@ class at extends ye {
4612
4611
  actual_address: o.actualAddress
4613
4612
  };
4614
4613
  break;
4615
- case x.UlR:
4614
+ case b.UlR:
4616
4615
  i = {
4617
4616
  opf: l.opf.slug,
4618
4617
  name: l.name,
4619
4618
  alternative_name: l.alternativeName,
4620
- partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4621
- manager_id: (T = l.manager) == null ? void 0 : T.id,
4619
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4620
+ manager_id: (L = l.manager) == null ? void 0 : L.id,
4622
4621
  comment: l.comment,
4623
4622
  inn: l.inn,
4624
4623
  kpp: l.kpp,
@@ -4631,13 +4630,13 @@ class at extends ye {
4631
4630
  actual_address: l.actualAddress
4632
4631
  };
4633
4632
  break;
4634
- case x.UlNr:
4633
+ case b.UlNr:
4635
4634
  i = {
4636
4635
  opf: p.opf.slug,
4637
4636
  name: p.name,
4638
4637
  alternative_name: p.alternativeName,
4639
- partner_group_id: (b = p.partnerGroup) == null ? void 0 : b.id,
4640
- manager_id: (_ = p.manager) == null ? void 0 : _.id,
4638
+ partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4639
+ manager_id: (x = p.manager) == null ? void 0 : x.id,
4641
4640
  comment: p.comment,
4642
4641
  director_name: p.directorName,
4643
4642
  director_position: p.directorPosition,
@@ -4655,8 +4654,8 @@ class at extends ye {
4655
4654
  opf: e.opf.slug,
4656
4655
  name: e.name,
4657
4656
  alternative_name: e.alternativeName,
4658
- partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
4659
- manager_id: (L = e.manager) == null ? void 0 : L.id,
4657
+ partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
4658
+ manager_id: (N = e.manager) == null ? void 0 : N.id,
4660
4659
  comment: e.comment
4661
4660
  };
4662
4661
  break;
@@ -4664,7 +4663,7 @@ class at extends ye {
4664
4663
  return this.patch(
4665
4664
  `/internal/clients/${r}/contragents/${e.id}`,
4666
4665
  i,
4667
- (k) => pe.createInstance(k.data),
4666
+ (O) => ue.createInstance(O.data),
4668
4667
  s
4669
4668
  );
4670
4669
  }
@@ -4702,7 +4701,7 @@ class at extends ye {
4702
4701
  }), e.operatingHours && (i.operating_hours = {
4703
4702
  from: e.operatingHours.from,
4704
4703
  to: e.operatingHours.to
4705
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new ue(p.data), s);
4704
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new he(p.data), s);
4706
4705
  }
4707
4706
  /**
4708
4707
  * Обновляет данные об адресе доставки клиента.
@@ -4731,7 +4730,7 @@ class at extends ye {
4731
4730
  }), this.patch(
4732
4731
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4733
4732
  i,
4734
- (p) => new ue(p.data),
4733
+ (p) => new he(p.data),
4735
4734
  s
4736
4735
  );
4737
4736
  }
@@ -4767,7 +4766,7 @@ class at extends ye {
4767
4766
  correspondent_account: s.correspondentAccount,
4768
4767
  currency_id: s.currency.id
4769
4768
  },
4770
- (o) => new Ae(o.data),
4769
+ (o) => new Te(o.data),
4771
4770
  i
4772
4771
  );
4773
4772
  }
@@ -4793,7 +4792,7 @@ class at extends ye {
4793
4792
  correspondent_account: s.correspondentAccount,
4794
4793
  currency_id: s.currency.id
4795
4794
  },
4796
- (o) => new Ae(o.data),
4795
+ (o) => new Te(o.data),
4797
4796
  i
4798
4797
  );
4799
4798
  }
@@ -4854,7 +4853,7 @@ class at extends ye {
4854
4853
  comment: e.comment,
4855
4854
  not_disturb: e.notDisturb
4856
4855
  },
4857
- (i) => new F(i.data),
4856
+ (i) => new M(i.data),
4858
4857
  s
4859
4858
  );
4860
4859
  }
@@ -4997,7 +4996,7 @@ class at extends ye {
4997
4996
  comment: e.comment,
4998
4997
  ...s
4999
4998
  };
5000
- return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new F(h.data), i);
4999
+ return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new M(g.data), i);
5001
5000
  }
5002
5001
  /**
5003
5002
  * Устанавливает признак основного контактного лица.
@@ -5026,7 +5025,7 @@ class at extends ye {
5026
5025
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5027
5026
  }
5028
5027
  }
5029
- class kt extends u {
5028
+ class Nt extends u {
5030
5029
  /**
5031
5030
  * Выполняет проверку занят ли указанный номер телефона.
5032
5031
  *
@@ -5040,7 +5039,7 @@ class kt extends u {
5040
5039
  });
5041
5040
  }
5042
5041
  }
5043
- class Nt extends u {
5042
+ class Ot extends u {
5044
5043
  /**
5045
5044
  * Возвращает настройки указанного конфигуратора для указанной категории.
5046
5045
  *
@@ -5111,18 +5110,18 @@ class Nt extends u {
5111
5110
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5112
5111
  }
5113
5112
  }
5114
- class Ot {
5113
+ class dt {
5115
5114
  /**
5116
5115
  * Возвращает диапазон дат по умолчанию.
5117
5116
  */
5118
5117
  static defaultDateRanges() {
5119
- const r = gr(/* @__PURE__ */ new Date(), 1);
5118
+ const r = mr(/* @__PURE__ */ new Date(), 1);
5120
5119
  return {
5121
5120
  // 'Следующий рабочий день' - это значение по-умолчанию
5122
- nextWorkingDay: { label: "Следующий рабочий день", from: Pr(r), to: vr(r) },
5123
- today: { label: "Сегодня", from: Fe(), to: wr() },
5124
- yesterday: { label: "Вчера", from: Cr(), to: yr() },
5125
- tomorrow: { label: "Завтра", from: fr(), to: mr() }
5121
+ nextWorkingDay: { label: "Следующий рабочий день", from: Rr(r), to: Pr(r) },
5122
+ today: { label: "Сегодня", from: Fe(), to: vr() },
5123
+ yesterday: { label: "Вчера", from: Cr(), to: wr() },
5124
+ tomorrow: { label: "Завтра", from: yr(), to: fr() }
5126
5125
  };
5127
5126
  }
5128
5127
  }
@@ -5172,7 +5171,7 @@ class qt {
5172
5171
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5173
5172
  */
5174
5173
  static generateUndefinedManagerInstance() {
5175
- return new fe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5174
+ return new ye({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5176
5175
  }
5177
5176
  /**
5178
5177
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5183,19 +5182,19 @@ class qt {
5183
5182
  return r.id === 0 && r.guid === "-undefined-";
5184
5183
  }
5185
5184
  }
5186
- class rt extends u {
5185
+ class tt extends u {
5187
5186
  /**
5188
5187
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5189
5188
  */
5190
5189
  getManagers() {
5191
5190
  const r = "/internal/managers", e = u.getCachedResponse(r);
5192
5191
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5193
- const i = s.data.map((o) => _e.instanceInitializer(fe, o));
5192
+ const i = s.data.map((o) => _e.instanceInitializer(ye, o));
5194
5193
  return i && this.cacheResponse(r, i), i;
5195
5194
  });
5196
5195
  }
5197
5196
  }
5198
- class tt {
5197
+ class st {
5199
5198
  /**
5200
5199
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5201
5200
  *
@@ -5249,7 +5248,7 @@ class Ue {
5249
5248
  */
5250
5249
  t(this, "meta");
5251
5250
  var e;
5252
- 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((s) => new tt(s))) ?? [];
5251
+ this.resourceType = new Je(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new st(s))) ?? [];
5253
5252
  }
5254
5253
  }
5255
5254
  class Ut extends u {
@@ -5283,8 +5282,8 @@ class Ut extends u {
5283
5282
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5284
5283
  }
5285
5284
  }
5286
- const P = he("__references_private", () => {
5287
- const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0), h = w(void 0), D = w(void 0), $ = w(void 0), T = w(void 0), b = w(void 0), _ = w(void 0), S = w(void 0), L = w(void 0), k = w(void 0), c = w(void 0);
5285
+ const P = ge("__references_private", () => {
5286
+ const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), $ = C(void 0), A = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), O = C(void 0), c = C(void 0);
5288
5287
  return {
5289
5288
  /**
5290
5289
  * Список загружаемых/загруженных на данный момент значений.
@@ -5321,129 +5320,129 @@ const P = he("__references_private", () => {
5321
5320
  /**
5322
5321
  * Справочник статусов заказов.
5323
5322
  */
5324
- orderStatusReference: h,
5323
+ orderStatusReference: g,
5325
5324
  /**
5326
5325
  * Справочник типов оплаты заказов.
5327
5326
  */
5328
- paymentTypeReference: D,
5327
+ paymentTypeReference: $,
5329
5328
  /**
5330
5329
  * Справочник групп партнеров.
5331
5330
  */
5332
- partnerGroupReference: $,
5331
+ partnerGroupReference: A,
5333
5332
  /**
5334
5333
  * Справочник типов файлов продукктов/категорий.
5335
5334
  */
5336
- productFileTypeReference: T,
5335
+ productFileTypeReference: L,
5337
5336
  /**
5338
5337
  * Справочник типов ресурсов.
5339
5338
  */
5340
- resourceTypesReference: b,
5339
+ resourceTypesReference: I,
5341
5340
  /**
5342
5341
  * Справочник направлений продаж.
5343
5342
  */
5344
- salesDirectionsReference: _,
5343
+ salesDirectionsReference: x,
5345
5344
  /**
5346
5345
  * Справочник источников первичного интереса.
5347
5346
  */
5348
- sourcePrimaryInterestReference: S,
5347
+ sourcePrimaryInterestReference: k,
5349
5348
  /**
5350
5349
  * Справочник складов.
5351
5350
  */
5352
- warehousesReference: L,
5351
+ warehousesReference: N,
5353
5352
  /**
5354
5353
  * Справочник типов свойств.
5355
5354
  */
5356
- propertyTypesReference: k,
5355
+ propertyTypesReference: O,
5357
5356
  /**
5358
5357
  * Справочник коэффициентов цен.
5359
5358
  */
5360
5359
  priceCoefficientsReference: c
5361
5360
  };
5362
- }), Gt = he("references", () => {
5361
+ }), Gt = ge("references", () => {
5363
5362
  const n = v(() => {
5364
5363
  const c = P();
5365
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((g) => {
5366
- c.channelPrimaryInterestReference = g;
5364
+ return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
5365
+ c.channelPrimaryInterestReference = h;
5367
5366
  }).catch(y)), c.channelPrimaryInterestReference;
5368
5367
  }), r = v(() => {
5369
5368
  const c = P();
5370
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((g) => {
5371
- c.contactPositionsReference = g;
5369
+ return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((h) => {
5370
+ c.contactPositionsReference = h;
5372
5371
  }).catch(y)), c.contactPositionsReference;
5373
5372
  }), e = v(() => {
5374
5373
  const c = P();
5375
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((g) => {
5376
- c.currencyReference = g;
5374
+ return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((h) => {
5375
+ c.currencyReference = h;
5377
5376
  }).catch(y)), c.currencyReference;
5378
5377
  }), s = v(() => {
5379
5378
  const c = P();
5380
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((g) => {
5381
- c.opfReference = g;
5379
+ return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((h) => {
5380
+ c.opfReference = h;
5382
5381
  }).catch(y)), c.opfReference;
5383
5382
  }), i = v(() => {
5384
5383
  const c = P();
5385
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((g) => {
5386
- c.orderPaymentStatusReference = g;
5384
+ return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((h) => {
5385
+ c.orderPaymentStatusReference = h;
5387
5386
  }).catch(y)), c.orderPaymentStatusReference;
5388
5387
  }), o = v(() => {
5389
5388
  const c = P();
5390
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((g) => {
5391
- c.orderStatusReference = g;
5389
+ return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((h) => {
5390
+ c.orderStatusReference = h;
5392
5391
  }).catch(y)), c.orderStatusReference;
5393
5392
  }), l = v(() => {
5394
5393
  const c = P();
5395
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((g) => {
5396
- c.paymentTypeReference = g;
5394
+ return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((h) => {
5395
+ c.paymentTypeReference = h;
5397
5396
  }).catch(y)), c.paymentTypeReference;
5398
5397
  }), p = v(() => {
5399
5398
  const c = P();
5400
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((g) => {
5401
- c.partnerGroupReference = g;
5399
+ return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((h) => {
5400
+ c.partnerGroupReference = h;
5402
5401
  }).catch(y)), c.partnerGroupReference;
5403
- }), h = v(() => {
5402
+ }), g = v(() => {
5404
5403
  const c = P();
5405
- return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((g) => {
5406
- c.productFileTypeReference = g;
5404
+ return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((h) => {
5405
+ c.productFileTypeReference = h;
5407
5406
  }).catch(y)), c.productFileTypeReference;
5408
- }), D = v(() => {
5407
+ }), $ = v(() => {
5409
5408
  const c = P();
5410
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((g) => {
5411
- c.resourceTypesReference = g;
5409
+ return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((h) => {
5410
+ c.resourceTypesReference = h;
5412
5411
  }).catch(y)), c.resourceTypesReference;
5413
- }), $ = v(() => {
5412
+ }), A = v(() => {
5414
5413
  const c = P();
5415
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((g) => {
5416
- c.salesDirectionsReference = g;
5414
+ return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
5415
+ c.salesDirectionsReference = h;
5417
5416
  }).catch(y)), c.salesDirectionsReference;
5418
- }), T = v(() => {
5417
+ }), L = v(() => {
5419
5418
  const c = P();
5420
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((g) => {
5421
- c.sourcePrimaryInterestReference = g;
5419
+ return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
5420
+ c.sourcePrimaryInterestReference = h;
5422
5421
  }).catch(y)), c.sourcePrimaryInterestReference;
5423
- }), b = v(() => {
5422
+ }), I = v(() => {
5424
5423
  const c = P();
5425
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((g) => {
5426
- c.deliveryTypeReference = g;
5424
+ return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((h) => {
5425
+ c.deliveryTypeReference = h;
5427
5426
  }).catch(y)), c.deliveryTypeReference;
5428
- }), _ = v(() => {
5427
+ }), x = v(() => {
5429
5428
  const c = P();
5430
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(rt).getManagers().then((g) => {
5431
- c.managersList = g;
5429
+ return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5430
+ c.managersList = h;
5432
5431
  }).catch(y)), c.managersList;
5433
- }), S = v(() => {
5432
+ }), k = v(() => {
5434
5433
  const c = P();
5435
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((g) => {
5436
- c.warehousesReference = g;
5434
+ return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((h) => {
5435
+ c.warehousesReference = h;
5437
5436
  }).catch(y)), c.warehousesReference;
5438
- }), L = v(() => {
5437
+ }), N = v(() => {
5439
5438
  const c = P();
5440
- return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((g) => {
5441
- c.propertyTypesReference = g;
5439
+ return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
5440
+ c.propertyTypesReference = h;
5442
5441
  }).catch(y)), c.propertyTypesReference;
5443
- }), k = v(() => {
5442
+ }), O = v(() => {
5444
5443
  const c = P();
5445
- return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((g) => {
5446
- c.priceCoefficientsReference = g;
5444
+ return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
5445
+ c.priceCoefficientsReference = h;
5447
5446
  }).catch(y)), c.priceCoefficientsReference;
5448
5447
  });
5449
5448
  return {
@@ -5482,42 +5481,42 @@ const P = he("__references_private", () => {
5482
5481
  /**
5483
5482
  * Справочник типов файлов продуктов/категорий.
5484
5483
  */
5485
- productFilesTypesReference: h,
5484
+ productFilesTypesReference: g,
5486
5485
  /**
5487
5486
  * Справочник типов ресурсов.
5488
5487
  */
5489
- resourceTypesReference: D,
5488
+ resourceTypesReference: $,
5490
5489
  /**
5491
5490
  * Справочник направлений продаж.
5492
5491
  */
5493
- salesDirectionsReference: $,
5492
+ salesDirectionsReference: A,
5494
5493
  /**
5495
5494
  * Справочник каналов первичного интереса.
5496
5495
  */
5497
- sourcePrimaryInterestsReference: T,
5496
+ sourcePrimaryInterestsReference: L,
5498
5497
  /**
5499
5498
  * Справочник типов доставки.
5500
5499
  */
5501
- deliveryTypeReference: b,
5500
+ deliveryTypeReference: I,
5502
5501
  /**
5503
5502
  * Список менеджеров.
5504
5503
  */
5505
- managersList: _,
5504
+ managersList: x,
5506
5505
  /**
5507
5506
  * Справочник складов.
5508
5507
  */
5509
- warehousesReference: S,
5508
+ warehousesReference: k,
5510
5509
  /**
5511
5510
  * Справочник типов свойств.
5512
5511
  */
5513
- propertyTypesReference: L,
5512
+ propertyTypesReference: N,
5514
5513
  /**
5515
5514
  * Справочник коэффициентов цен.
5516
5515
  */
5517
- priceCoefficientsReference: k
5516
+ priceCoefficientsReference: O
5518
5517
  };
5519
- }), st = he("__user_state_private", () => {
5520
- const n = w({}), r = w(void 0);
5518
+ }), it = ge("__user_state_private", () => {
5519
+ const n = C({}), r = C(void 0);
5521
5520
  return {
5522
5521
  /**
5523
5522
  * Список загружаемых/загруженных на данный момент значений.
@@ -5528,13 +5527,13 @@ const P = he("__references_private", () => {
5528
5527
  */
5529
5528
  currentUser: r
5530
5529
  };
5531
- }), Mt = he("user_state", () => ({
5530
+ }), Mt = ge("user_state", () => ({
5532
5531
  /**
5533
5532
  * Данные о текущем пользователе.
5534
5533
  */
5535
5534
  currentUser: v(() => {
5536
- const r = st();
5537
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(jr).getCurrentUser().then((e) => {
5535
+ const r = it();
5536
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Vr).getCurrentUser().then((e) => {
5538
5537
  r.currentUser = e;
5539
5538
  }).catch(y).finally(y)), r.currentUser;
5540
5539
  })
@@ -5586,7 +5585,7 @@ class Ft extends u {
5586
5585
  });
5587
5586
  }
5588
5587
  }
5589
- class dt {
5588
+ class Ht {
5590
5589
  /**
5591
5590
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5592
5591
  *
@@ -5611,137 +5610,137 @@ class dt {
5611
5610
  }
5612
5611
  export {
5613
5612
  Gr as AnyReference,
5614
- ht as AppBaseConfig,
5615
- I as AppConfigProvider,
5616
- Ae as BankAccount,
5617
- ye as BasePaginationProvider,
5618
- ar as CalculationTypeEnum,
5619
- se as Cart,
5613
+ gt as AppBaseConfig,
5614
+ T as AppConfigProvider,
5615
+ Te as BankAccount,
5616
+ we as BasePaginationProvider,
5617
+ kr as CalculationTypeEnum,
5618
+ ie as Cart,
5620
5619
  _r as CartItem,
5621
- br as CartItemBase,
5622
- gt as CartProvider,
5623
- yt as CatalogProvider,
5624
- de as CatalogableItem,
5625
- q as Category,
5626
- ae as CategoryPricingRule,
5627
- Ee as ChannelPrimaryInterest,
5628
- ft as City,
5629
- ce as CityWithRegionAndCountry,
5630
- Oe as Client,
5631
- Zr as ClientAdditionalData,
5632
- oe as ClientCategory,
5633
- at as ClientDataProvider,
5620
+ ar as CartItemBase,
5621
+ mt as CartProvider,
5622
+ wt as CatalogProvider,
5623
+ He as CatalogableItem,
5624
+ d as Category,
5625
+ ke as CategoryPricingRule,
5626
+ Ke as ChannelPrimaryInterest,
5627
+ yt as City,
5628
+ le as CityWithRegionAndCountry,
5629
+ de as Client,
5630
+ et as ClientAdditionalData,
5631
+ ce as ClientCategory,
5632
+ kt as ClientDataProvider,
5634
5633
  Ct as ClientPriceProvider,
5635
- wt as ClientPriceTemplateProvider,
5634
+ vt as ClientPriceTemplateProvider,
5636
5635
  K as ClientProduct,
5637
- Rt as ClientProductCategoryDataProvider,
5638
- Dt as ClientProductDataProvider,
5639
- te as ClientShortInfo,
5640
- Er as ClientsAdditionalDataRequestTypeEnum,
5636
+ Dt as ClientProductCategoryDataProvider,
5637
+ $t as ClientProductDataProvider,
5638
+ se as ClientShortInfo,
5639
+ Kr as ClientsAdditionalDataRequestTypeEnum,
5641
5640
  St as ClientsListFilters,
5642
- Nt as ConfiguratorProvider,
5643
- Te as Contact,
5641
+ Ot as ConfiguratorProvider,
5642
+ be as Contact,
5644
5643
  qr as ContactLinks,
5645
- F as ContactPerson,
5646
- Qr as ContactPersonRelated,
5644
+ M as ContactPerson,
5645
+ Yr as ContactPersonRelated,
5647
5646
  Mr as ContactPosition,
5648
- Pe as ContactRelation,
5649
- Qe as ContragentBase,
5650
- pe as ContragentFactory,
5651
- Ye as ContragentIc,
5652
- Kr as ContragentPerson,
5653
- Jr as ContragentUlNr,
5654
- Xe as ContragentUlR,
5647
+ Re as ContactRelation,
5648
+ Ye as ContragentBase,
5649
+ ue as ContragentFactory,
5650
+ Xe as ContragentIc,
5651
+ Jr as ContragentPerson,
5652
+ Qr as ContragentUlNr,
5653
+ Ze as ContragentUlR,
5655
5654
  Se as CostSourceEnum,
5656
5655
  J as Country,
5657
- le as Currency,
5656
+ pe as Currency,
5658
5657
  Ft as DataSuggestionProvider,
5659
5658
  It as DataTablePagination,
5660
- et as DataTablePaginationRequestParams,
5659
+ rt as DataTablePaginationRequestParams,
5661
5660
  xt as DataTableSortRequestParams,
5662
- Ot as DateTimeProvider,
5663
- Nr as DeletableNamedIdentity,
5664
- ue as DeliveryAddress,
5661
+ dt as DateTimeProvider,
5662
+ Or as DeletableNamedIdentity,
5663
+ he as DeliveryAddress,
5665
5664
  E as DeliveryType,
5666
5665
  Sr as DeviceTypeResolutionConfig,
5667
- Or as DiscountShortInfo,
5668
- dt as FieldValidationResultData,
5669
- ee as FilterGroup,
5670
- ke as FilterItem,
5666
+ dr as DiscountShortInfo,
5667
+ Ht as FieldValidationResultData,
5668
+ re as FilterGroup,
5669
+ Ne as FilterItem,
5671
5670
  Le as FilterOpEnum,
5672
- ze as GeoCoordinates,
5673
- Ar as HiddenCatalogableItem,
5674
- $e as HttpBaseCachedRequester,
5675
- De as HttpBaseRequester,
5671
+ Be as GeoCoordinates,
5672
+ Tr as HiddenCatalogableItem,
5673
+ Ae as HttpBaseCachedRequester,
5674
+ $e as HttpBaseRequester,
5676
5675
  Lr as HttpParamsConfig,
5677
5676
  u as HttpRequester,
5678
- d as Identity,
5679
- Tr as Image,
5680
- fe as Manager,
5681
- ne as ManagerCommon,
5677
+ F as Identity,
5678
+ br as Image,
5679
+ ye as Manager,
5680
+ oe as ManagerCommon,
5682
5681
  qt as ManagerDataFactory,
5683
- rt as ManagerDataProvider,
5684
- tt as MetaTagItem,
5685
- A as NamedIdentity,
5686
- G as Opf,
5687
- x as OpfEnum,
5688
- Xr as Order,
5689
- er as OrderInfo,
5682
+ tt as ManagerDataProvider,
5683
+ st as MetaTagItem,
5684
+ D as NamedIdentity,
5685
+ U as Opf,
5686
+ b as OpfEnum,
5687
+ Zr as Order,
5688
+ rr as OrderInfo,
5690
5689
  Fr as OrderPaymentStatus,
5691
- Yr as OrderProduct,
5692
- Ze as OrderShortInfo,
5693
- dr as OrderStatus,
5690
+ Xr as OrderProduct,
5691
+ er as OrderShortInfo,
5692
+ Hr as OrderStatus,
5694
5693
  Lt as OrdersDataProvider,
5695
- M as PartnerGroup,
5696
- Hr as PaymentType,
5697
- mt as PreferencesStorageProvider,
5698
- ve as PriceAnalyze,
5694
+ G as PartnerGroup,
5695
+ zr as PaymentType,
5696
+ ft as PreferencesStorageProvider,
5697
+ Pe as PriceAnalyze,
5699
5698
  _t as PriceAnalyzeProvider,
5700
- ge as PriceCoefficient,
5701
- He as PriceCoefficientEnum,
5699
+ me as PriceCoefficient,
5700
+ ze as PriceCoefficientEnum,
5702
5701
  B as PriceTemplate,
5703
5702
  Ce as PriceTemplateCategory,
5704
- Q as PriceTemplateClient,
5705
- We as PriceTemplateICatalogableItem,
5706
- we as PriceTemplateProduct,
5707
- $t as PriceTemplateProvider,
5708
- X as PricingRole,
5709
- At as PricingRoleProvider,
5710
- Re as PrimaryCatalogableItem,
5703
+ Y as PriceTemplateClient,
5704
+ je as PriceTemplateICatalogableItem,
5705
+ ve as PriceTemplateProduct,
5706
+ At as PriceTemplateProvider,
5707
+ Z as PricingRole,
5708
+ Tt as PricingRoleProvider,
5709
+ De as PrimaryCatalogableItem,
5711
5710
  a as Product,
5712
- vt as ProductCategoryDataProvider,
5713
- Pt as ProductDataProvider,
5714
- zr as ProductFileType,
5715
- be as ProductPriceCoefficient,
5716
- Vr as ProductPriceHistory,
5717
- Tt as PropertiesProvider,
5718
- Y as Property,
5719
- Ve as PropertyType,
5720
- kr as PropertyTypeEnum,
5711
+ Pt as ProductCategoryDataProvider,
5712
+ Rt as ProductDataProvider,
5713
+ Br as ProductFileType,
5714
+ ae as ProductPriceCoefficient,
5715
+ Er as ProductPriceHistory,
5716
+ bt as PropertiesProvider,
5717
+ X as Property,
5718
+ Ee as PropertyType,
5719
+ Nr as PropertyTypeEnum,
5721
5720
  H as PropertyValue,
5722
- bt as RecommendationsDataProvider,
5721
+ at as RecommendationsDataProvider,
5723
5722
  xe as RecommendationsList,
5724
- C as Reference,
5723
+ w as Reference,
5725
5724
  R as ReferenceDataProvider,
5726
- Z as Region,
5727
- Ke as ResourceType,
5728
- O as SalesDirection,
5725
+ ee as Region,
5726
+ Je as ResourceType,
5727
+ S as SalesDirection,
5729
5728
  Ir as SentryConfig,
5730
5729
  Ue as Seo,
5731
5730
  Ut as SeoDataProvider,
5732
- Je as SourcePrimaryInterest,
5733
- $r as StockCount,
5731
+ Qe as SourcePrimaryInterest,
5732
+ Ar as StockCount,
5734
5733
  _e as TypedInstanceFactory,
5735
5734
  qe as UnitsHelper,
5736
- kt as UnknownClientDataProvider,
5737
- Be as UpdatableNamedIdentity,
5738
- Wr as User,
5739
- je as UserCommonInfo,
5740
- jr as UserDataProvider,
5741
- U as UserShortInfo,
5742
- Br as UserTypeEnum,
5735
+ Nt as UnknownClientDataProvider,
5736
+ We as UpdatableNamedIdentity,
5737
+ jr as User,
5738
+ Ve as UserCommonInfo,
5739
+ Vr as UserDataProvider,
5740
+ q as UserShortInfo,
5741
+ Wr as UserTypeEnum,
5743
5742
  xr as VersionConfig,
5744
- me as Warehouse,
5743
+ fe as Warehouse,
5745
5744
  Gt as useReferencesStore,
5746
5745
  Mt as useUserStateStore
5747
5746
  };