@snabcentr/common-lib 1.62.3 → 1.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  var or = Object.defineProperty;
2
2
  var cr = (n, r, e) => r in n ? or(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var s = (n, r, e) => cr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { isNil as U, toUpper as lr, constant as ur, isUndefined as pr, isString as m, cloneDeep as hr, noop as y, toLower as gr, isEmpty as ae, isFunction as Le, map as ce, forEach as mr, isDate as fr, isArray as Be, omitBy as yr, isObject as wr } from "lodash-es";
5
- import { parseISO as f, format as W, addSeconds as Cr, isAfter as vr, startOfToday as We, addBusinessDays as Pr, endOfTomorrow as Rr, startOfTomorrow as Ar, endOfYesterday as Dr, startOfYesterday as $r, endOfToday as br, endOfDay as Tr, startOfDay as _r } from "date-fns";
6
- import Sr from "axios";
7
- import { objectToSnake as Oe, objectToCamel as ar } from "ts-case-convert";
8
- import { defineStore as me } from "pinia";
9
- import { ref as C, computed as v } from "vue";
10
- class z {
4
+ import { isNil as U, toUpper as lr, constant as ur, isUndefined as pr, isString as m, cloneDeep as hr, noop as y, toLower as gr, isEmpty as ae, isFunction as Se, map as ce, forEach as mr, isDate as fr, isArray as Be, omitBy as yr, isObject as Cr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as wr, isAfter as vr, startOfToday as We, addBusinessDays as Pr, endOfTomorrow as Rr, startOfTomorrow as Ar, endOfYesterday as Dr, startOfYesterday as $r, endOfToday as br, endOfDay as Tr, startOfDay as _r } from "date-fns";
6
+ import ar from "axios";
7
+ import { objectToSnake as Oe, objectToCamel as Sr } from "ts-case-convert";
8
+ import { defineStore as ge } from "pinia";
9
+ import { ref as w, computed as v } from "vue";
10
+ class H {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
13
13
  *
@@ -32,7 +32,7 @@ class z {
32
32
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : U(this.id);
33
33
  }
34
34
  }
35
- class $ extends z {
35
+ class $ extends H {
36
36
  /**
37
37
  * Инициализирует экземпляр класса {@link NamedIdentity}.
38
38
  *
@@ -70,7 +70,7 @@ class je extends $ {
70
70
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
71
71
  }
72
72
  }
73
- class $e extends je {
73
+ class De extends je {
74
74
  /**
75
75
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
76
76
  *
@@ -85,7 +85,7 @@ class $e extends je {
85
85
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
86
86
  }
87
87
  }
88
- class ie extends $e {
88
+ class ie extends De {
89
89
  /**
90
90
  * Инициализирует экземпляр класса {@link BaseCategory}.
91
91
  *
@@ -113,7 +113,7 @@ class ie extends $e {
113
113
  }
114
114
  }
115
115
  var Ve = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ve || {});
116
- class w extends $ {
116
+ class C extends $ {
117
117
  /**
118
118
  * Инициализирует экземпляр класса {@link Reference}.
119
119
  *
@@ -132,7 +132,7 @@ class w extends $ {
132
132
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
133
133
  }
134
134
  }
135
- class fe extends w {
135
+ class me extends C {
136
136
  /**
137
137
  * Возвращает значение справочника коэффициента розничной цены.
138
138
  */
@@ -140,7 +140,7 @@ class fe extends w {
140
140
  return { id: -2, slug: Ve.Retail, name: "Розн. цена", guid: "", isNewRec: ur(!0) };
141
141
  }
142
142
  }
143
- class Ie {
143
+ class Le {
144
144
  /**
145
145
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
146
146
  *
@@ -167,7 +167,7 @@ class Ie {
167
167
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
168
168
  */
169
169
  s(this, "readOnly");
170
- this.coefficient = new fe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
170
+ 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;
171
171
  }
172
172
  }
173
173
  class Ee {
@@ -188,9 +188,9 @@ class Ee {
188
188
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
189
189
  }
190
190
  }
191
- class J extends w {
191
+ class K extends C {
192
192
  }
193
- class ye extends w {
193
+ class fe extends C {
194
194
  /**
195
195
  * Инициализирует экземпляр класса {@link Warehouse}.
196
196
  *
@@ -219,7 +219,7 @@ class ye extends w {
219
219
  * Координаты склада.
220
220
  */
221
221
  s(this, "coordinates");
222
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ee(e == null ? void 0 : e.coordinates);
222
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ee(e == null ? void 0 : e.coordinates);
223
223
  }
224
224
  }
225
225
  class Lr {
@@ -237,26 +237,26 @@ class Lr {
237
237
  * Количество остатков товара на складе.
238
238
  */
239
239
  s(this, "count");
240
- this.warehouse = new ye(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
240
+ this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
241
241
  }
242
242
  }
243
- const V = class V {
243
+ const j = class j {
244
244
  /**
245
245
  * Инициализирует и возвращает конфигурацию приложения.
246
246
  *
247
247
  * @param config Данные для первоначальной инициализации.
248
248
  */
249
249
  static init(r) {
250
- V.config = r;
250
+ j.config = r;
251
251
  }
252
252
  /**
253
253
  * Возвращает текущую конфигурацию приложения.
254
254
  */
255
255
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
256
256
  static getConfig() {
257
- if (pr(V.config))
257
+ if (pr(j.config))
258
258
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
259
- return V.config;
259
+ return j.config;
260
260
  }
261
261
  /**
262
262
  * Выполняет загрузку конфигурации по указанному пути.
@@ -275,8 +275,8 @@ const V = class V {
275
275
  /**
276
276
  * Конфигурация приложения.
277
277
  */
278
- s(V, "config");
279
- let b = V;
278
+ s(j, "config");
279
+ let b = j;
280
280
  class Ir extends je {
281
281
  /**
282
282
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
@@ -400,9 +400,9 @@ class _ extends Ir {
400
400
  * Список коэффициентов цен на продукт.
401
401
  */
402
402
  s(this, "priceCoefficients");
403
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new Lr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
404
- const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
405
- t && (this.category = new $e({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new $e(g))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((g) => new xr(g, b.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((g) => new Ie(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
403
+ 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((p) => new Lr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
404
+ const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
405
+ t && (this.category = new De({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new De(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new xr(p, b.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Le(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
406
406
  }
407
407
  /**
408
408
  * Возвращает признак, что это измеряемый товар.
@@ -425,7 +425,7 @@ class _ extends Ir {
425
425
  return this.retailCostRub ?? this.costRub;
426
426
  }
427
427
  }
428
- class kr extends z {
428
+ class kr extends H {
429
429
  /**
430
430
  * Инициализирует экземпляр класса {@link CartItemBase}.
431
431
  *
@@ -713,7 +713,7 @@ class vt {
713
713
  };
714
714
  }
715
715
  }
716
- class xe {
716
+ class Ie {
717
717
  /**
718
718
  * Инициализирует экземпляр указанного класса.
719
719
  *
@@ -752,11 +752,11 @@ const a = class a {
752
752
  */
753
753
  s(this, "defaultInstanceNotificationErrorResponseHandler", y);
754
754
  const e = b.getConfig().version;
755
- this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = Sr.create({
755
+ this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = ar.create({
756
756
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
757
757
  baseURL: r,
758
758
  headers: {
759
- "APP-VERSION": `${e.name} (${e.version}, ${W(e.date, b.getConfig().dateFormats.uiDate)})`,
759
+ "APP-VERSION": `${e.name} (${e.version}, ${B(e.date, b.getConfig().dateFormats.uiDate)})`,
760
760
  Accept: "application/json",
761
761
  "Content-Type": "application/json"
762
762
  }
@@ -764,7 +764,7 @@ const a = class a {
764
764
  (t) => (t.method && (t.method === "get" && t.params && (t.params = Oe(t.params)), ["put", "patch", "post"].includes(gr(t.method)) && t.data && (t.data = Oe(t.data))), t),
765
765
  (t) => Promise.reject(t)
766
766
  ), this.httpClient.interceptors.response.use(
767
- (t) => (t.data && (t.data = ar(t.data)), t),
767
+ (t) => (t.data && (t.data = Sr(t.data)), t),
768
768
  // Возвращаем изменённую структуру сообщения об ошибке.
769
769
  (t) => a.convertHttpErrorResponse(t)
770
770
  );
@@ -783,7 +783,7 @@ const a = class a {
783
783
  * @param type Тип данных, которыми оперирует метод.
784
784
  */
785
785
  static getInstance(r) {
786
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = xe.simpleInstanceInitializer(r)), a.instances[r.name];
786
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Ie.simpleInstanceInitializer(r)), a.instances[r.name];
787
787
  }
788
788
  /**
789
789
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -886,8 +886,8 @@ s(a, "instances", {}), /**
886
886
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
887
887
  */
888
888
  s(a, "baseDefaultNotificationErrorResponseHandler", y);
889
- let be = a;
890
- const E = class E extends be {
889
+ let $e = a;
890
+ const V = class V extends $e {
891
891
  /**
892
892
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
893
893
  *
@@ -909,7 +909,7 @@ const E = class E extends be {
909
909
  * @param key Ключ запроса.
910
910
  */
911
911
  static getCachedResponse(e) {
912
- const t = E.responseDataCache.get(e);
912
+ const t = V.responseDataCache.get(e);
913
913
  if (t && t.validTo > /* @__PURE__ */ new Date())
914
914
  return t.val;
915
915
  }
@@ -920,8 +920,8 @@ const E = class E extends be {
920
920
  * @param data Данные для кэширования.
921
921
  */
922
922
  cacheResponse(e, t) {
923
- E.responseDataCache.set(e, {
924
- validTo: Cr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
923
+ V.responseDataCache.set(e, {
924
+ validTo: wr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
925
925
  val: t
926
926
  });
927
927
  }
@@ -936,9 +936,9 @@ const E = class E extends be {
936
936
  */
937
937
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
938
938
  getTypedDataArrayRequester(e, t, i = !1, o = {}) {
939
- const c = t + (ae(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? E.getCachedResponse(c) : void 0;
940
- return u ? Promise.resolve(u) : this.get(t, o).then((g) => {
941
- const R = g.map((D) => xe.instanceInitializer(e, D));
939
+ const c = t + (ae(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
940
+ return u ? Promise.resolve(u) : this.get(t, o).then((p) => {
941
+ const R = p.map((D) => Ie.instanceInitializer(e, D));
942
942
  return i && R && this.cacheResponse(t, R), R;
943
943
  });
944
944
  }
@@ -946,9 +946,9 @@ const E = class E extends be {
946
946
  /**
947
947
  * Кэш результатов запросов.
948
948
  */
949
- s(E, "responseDataCache", /* @__PURE__ */ new Map());
950
- let Te = E;
951
- class p extends Te {
949
+ s(V, "responseDataCache", /* @__PURE__ */ new Map());
950
+ let be = V;
951
+ class h extends be {
952
952
  /**
953
953
  * Инициализирует экземпляр класса {@link HttpRequester}.
954
954
  */
@@ -964,7 +964,7 @@ class p extends Te {
964
964
  );
965
965
  }
966
966
  }
967
- class Pt extends p {
967
+ class Pt extends h {
968
968
  /**
969
969
  * Возвращает содержимое корзины указанного клиента.
970
970
  *
@@ -1067,7 +1067,7 @@ class Pt extends p {
1067
1067
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1068
1068
  }
1069
1069
  }
1070
- var Gr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Gr || {}), ke = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ke || {}), Mr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Mr || {});
1070
+ var Gr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Gr || {}), xe = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(xe || {}), Mr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Mr || {});
1071
1071
  class q extends ie {
1072
1072
  /**
1073
1073
  * Инициализирует экземпляр класса {@link Category}.
@@ -1206,7 +1206,7 @@ class Hr extends $ {
1206
1206
  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 G(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1207
1207
  }
1208
1208
  }
1209
- class j extends Ke {
1209
+ class W extends Ke {
1210
1210
  /**
1211
1211
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1212
1212
  *
@@ -1225,7 +1225,7 @@ class j extends Ke {
1225
1225
  this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1226
1226
  }
1227
1227
  }
1228
- class Q extends _ {
1228
+ class J extends _ {
1229
1229
  /**
1230
1230
  * Инициализирует экземпляр класса {@link ClientProduct}.
1231
1231
  *
@@ -1261,7 +1261,7 @@ class Q extends _ {
1261
1261
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1262
1262
  */
1263
1263
  s(this, "isFavorite");
1264
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ke.Product, this.discount = e != null && e.discount ? new Hr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new j(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;
1264
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? xe.Product, this.discount = e != null && e.discount ? new Hr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1265
1265
  }
1266
1266
  }
1267
1267
  class zr {
@@ -1282,7 +1282,7 @@ class zr {
1282
1282
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1283
1283
  }
1284
1284
  }
1285
- class S extends w {
1285
+ class S extends C {
1286
1286
  }
1287
1287
  class re extends $ {
1288
1288
  /**
@@ -1311,7 +1311,7 @@ class re extends $ {
1311
1311
  e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new zr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1312
1312
  }
1313
1313
  }
1314
- class we extends re {
1314
+ class ye extends re {
1315
1315
  /**
1316
1316
  * Инициализирует экземпляр класса {@link Manager}.
1317
1317
  *
@@ -1370,7 +1370,7 @@ class Br extends ie {
1370
1370
  * Данные о менеджере за которым закреплена категория.
1371
1371
  */
1372
1372
  s(this, "manager");
1373
- this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new we(e.manager) : void 0;
1373
+ 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;
1374
1374
  }
1375
1375
  }
1376
1376
  class le extends Br {
@@ -1390,7 +1390,7 @@ class le extends Br {
1390
1390
  * Список продуктов категории.
1391
1391
  */
1392
1392
  s(this, "products");
1393
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Q(o));
1393
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
1394
1394
  }
1395
1395
  }
1396
1396
  class Je {
@@ -1408,10 +1408,10 @@ class Je {
1408
1408
  * Процент, который прибавляется к значению выбранного коэффициента.
1409
1409
  */
1410
1410
  s(this, "increasePercent");
1411
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1411
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new me(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1412
1412
  }
1413
1413
  }
1414
- class ve extends Je {
1414
+ class we extends Je {
1415
1415
  /**
1416
1416
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1417
1417
  *
@@ -1426,9 +1426,9 @@ class ve extends Je {
1426
1426
  this.productCategory = new ie(e == null ? void 0 : e.productCategory);
1427
1427
  }
1428
1428
  }
1429
- class Y extends w {
1429
+ class Q extends C {
1430
1430
  }
1431
- class te extends w {
1431
+ class te extends C {
1432
1432
  /**
1433
1433
  * Инициализирует экземпляр класса {@link Region}.
1434
1434
  *
@@ -1439,11 +1439,11 @@ class te extends w {
1439
1439
  /**
1440
1440
  * Данные о стране, в которой расположен регион.
1441
1441
  */
1442
- s(this, "country", new Y());
1443
- e && (this.country = new Y(e.country));
1442
+ s(this, "country", new Q());
1443
+ e && (this.country = new Q(e.country));
1444
1444
  }
1445
1445
  }
1446
- class ue extends w {
1446
+ class ke extends C {
1447
1447
  /**
1448
1448
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1449
1449
  *
@@ -1539,10 +1539,10 @@ class ne extends Qe {
1539
1539
  * Список менеджеров клиента.
1540
1540
  */
1541
1541
  s(this, "managers");
1542
- 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 ue(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((i) => new re(i))) ?? [];
1542
+ 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 ke(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((i) => new re(i))) ?? [];
1543
1543
  }
1544
1544
  }
1545
- class X extends z {
1545
+ class X extends H {
1546
1546
  /**
1547
1547
  * Инициализирует новый экземпляр класса.
1548
1548
  *
@@ -1566,10 +1566,10 @@ class X extends z {
1566
1566
  * Данные шаблона прайс-листа.
1567
1567
  */
1568
1568
  s(this, "priceTemplate");
1569
- this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new j(e == null ? void 0 : e.priceTemplate);
1569
+ this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1570
1570
  }
1571
1571
  }
1572
- class Pe extends Je {
1572
+ class ve extends Je {
1573
1573
  /**
1574
1574
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1575
1575
  *
@@ -1584,7 +1584,7 @@ class Pe extends Je {
1584
1584
  this.product = new _(e == null ? void 0 : e.product);
1585
1585
  }
1586
1586
  }
1587
- class Ye extends w {
1587
+ class Ye extends C {
1588
1588
  }
1589
1589
  class Z extends $ {
1590
1590
  /**
@@ -1609,7 +1609,7 @@ class Z extends $ {
1609
1609
  this.type = new Ye(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1610
1610
  }
1611
1611
  }
1612
- class B {
1612
+ class z {
1613
1613
  /**
1614
1614
  * Инициализирует экземпляр класса {@link PropertyValue}.
1615
1615
  *
@@ -1706,19 +1706,19 @@ class At {
1706
1706
  return Object.keys(this).forEach((c) => {
1707
1707
  const u = this[c];
1708
1708
  // eslint-disable-next-line prettier/prettier
1709
- U(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
1709
+ U(u) || m(u) && u.trim().length === 0 || Se(u.isNewRec) && u.isNewRec() || (r[c] = u);
1710
1710
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1711
1711
  }
1712
1712
  }
1713
- class Wr extends w {
1713
+ class Wr extends C {
1714
1714
  }
1715
- class Xe extends w {
1715
+ class Xe extends C {
1716
1716
  }
1717
- class Dt extends w {
1717
+ class Dt extends C {
1718
1718
  }
1719
- class jr extends w {
1719
+ class jr extends C {
1720
1720
  }
1721
- class pe extends $ {
1721
+ class ue extends $ {
1722
1722
  /**
1723
1723
  * Инициализирует экземпляр класса {@link Currency}.
1724
1724
  *
@@ -1738,7 +1738,7 @@ class pe extends $ {
1738
1738
  }
1739
1739
  }
1740
1740
  var T = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(T || {});
1741
- class M extends w {
1741
+ class M extends C {
1742
1742
  /**
1743
1743
  * Возвращает сгенерированную запись-описание физического лица.
1744
1744
  */
@@ -1751,21 +1751,21 @@ class M extends w {
1751
1751
  });
1752
1752
  }
1753
1753
  }
1754
- class Vr extends w {
1754
+ class Vr extends C {
1755
1755
  }
1756
- class Er extends w {
1756
+ class Er extends C {
1757
1757
  }
1758
- class F extends w {
1758
+ class Y extends C {
1759
1759
  }
1760
- class Kr extends w {
1760
+ class Kr extends C {
1761
1761
  }
1762
- class Jr extends w {
1762
+ class Jr extends C {
1763
1763
  }
1764
- class Ze extends w {
1764
+ class Ze extends C {
1765
1765
  }
1766
- class er extends w {
1766
+ class er extends C {
1767
1767
  }
1768
- class A extends p {
1768
+ class A extends h {
1769
1769
  /**
1770
1770
  * Возвращает {@link Promise} для получения данных указанного справочника.
1771
1771
  *
@@ -1793,14 +1793,14 @@ class A extends p {
1793
1793
  * Возвращает {@link Promise} для получения справочника списка валют.
1794
1794
  */
1795
1795
  getCurrency() {
1796
- return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
1796
+ return this.getTypedDataArrayRequester(ue, "/public/references/currency", !0);
1797
1797
  }
1798
1798
  /**
1799
1799
  * Возвращает {@link Promise} для получения справочника данных
1800
1800
  * групп партнеров (направлений деятельности).
1801
1801
  */
1802
1802
  getPartnerGroup() {
1803
- return this.getTypedDataArrayRequester(F, "/internal/references/partner-group", !0);
1803
+ return this.getTypedDataArrayRequester(Y, "/internal/references/partner-group", !0);
1804
1804
  }
1805
1805
  /**
1806
1806
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
@@ -1850,7 +1850,7 @@ class A extends p {
1850
1850
  * @param term Терм поиска.
1851
1851
  */
1852
1852
  searchCity(r) {
1853
- return this.getTypedDataArrayRequester(ue, `/internal/references/city-with-region-and-country/search?term=${r}`);
1853
+ return this.getTypedDataArrayRequester(ke, `/internal/references/city-with-region-and-country/search?term=${r}`);
1854
1854
  }
1855
1855
  /**
1856
1856
  * Выполняет поиск данных о регионах по терму в названии.
@@ -1866,19 +1866,19 @@ class A extends p {
1866
1866
  * @param term Терм поиска.
1867
1867
  */
1868
1868
  searchCountry(r) {
1869
- return this.getTypedDataArrayRequester(Y, `/internal/references/country/search?term=${r}`);
1869
+ return this.getTypedDataArrayRequester(Q, `/internal/references/country/search?term=${r}`);
1870
1870
  }
1871
1871
  /**
1872
1872
  * Возвращает {@link Promise} для получения справочника типов доставки.
1873
1873
  */
1874
1874
  getDeliveryTypes() {
1875
- return this.getTypedDataArrayRequester(J, "/internal/references/delivery-type", !0);
1875
+ return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
1876
1876
  }
1877
1877
  /**
1878
1878
  * Возвращает {@link Promise} для получения справочника складов.
1879
1879
  */
1880
1880
  getWarehouses() {
1881
- return this.getTypedDataArrayRequester(ye, "/public/references/warehouse", !0);
1881
+ return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
1882
1882
  }
1883
1883
  /**
1884
1884
  * Возвращает {@link Promise} для получения справочника типов свойств.
@@ -1890,7 +1890,7 @@ class A extends p {
1890
1890
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
1891
1891
  */
1892
1892
  getPriceCoefficients() {
1893
- return this.getTypedDataArrayRequester(fe, "/internal/references/price-coefficient", !0);
1893
+ return this.getTypedDataArrayRequester(me, "/internal/references/price-coefficient", !0);
1894
1894
  }
1895
1895
  /**
1896
1896
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -1923,7 +1923,7 @@ class Yr extends Qe {
1923
1923
  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;
1924
1924
  }
1925
1925
  }
1926
- class Xr extends p {
1926
+ class Xr extends h {
1927
1927
  /**
1928
1928
  * Возвращает данные о текущем пользователе.
1929
1929
  */
@@ -1975,7 +1975,7 @@ class Zr {
1975
1975
  * Данные о валюте.
1976
1976
  */
1977
1977
  s(this, "currency");
1978
- 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 G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1978
+ 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 G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ue(r.currency) : void 0;
1979
1979
  }
1980
1980
  }
1981
1981
  class de {
@@ -2050,10 +2050,10 @@ class qe {
2050
2050
  * Минимальный коэффициент цены.
2051
2051
  */
2052
2052
  s(this, "minCoefficient");
2053
- this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new fe(r == null ? void 0 : r.minCoefficient);
2053
+ this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
2054
2054
  }
2055
2055
  }
2056
- class $t extends p {
2056
+ class $t extends h {
2057
2057
  /**
2058
2058
  * Возвращает данные о результатах поиска категорий и товаров.
2059
2059
  *
@@ -2084,7 +2084,7 @@ class $t extends p {
2084
2084
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
2085
2085
  }
2086
2086
  }
2087
- class bt extends p {
2087
+ class bt extends h {
2088
2088
  /**
2089
2089
  * Импортирует цены клиента из CSV файла.
2090
2090
  *
@@ -2208,7 +2208,7 @@ class bt extends p {
2208
2208
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
2209
2209
  increase_percent: t.value
2210
2210
  },
2211
- (o) => new Q(o.data)
2211
+ (o) => new J(o.data)
2212
2212
  );
2213
2213
  }
2214
2214
  /**
@@ -2220,7 +2220,7 @@ class bt extends p {
2220
2220
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2221
2221
  */
2222
2222
  removeProductPrice(r, e) {
2223
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new Q(t.data));
2223
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new J(t.data));
2224
2224
  }
2225
2225
  /**
2226
2226
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2283,7 +2283,7 @@ class bt extends p {
2283
2283
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2284
2284
  }
2285
2285
  }
2286
- class Tt extends p {
2286
+ class Tt extends h {
2287
2287
  /**
2288
2288
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2289
2289
  *
@@ -2322,10 +2322,12 @@ class Tt extends p {
2322
2322
  return this.post(
2323
2323
  `/internal/clients/${r}/price/templates/${e}`,
2324
2324
  t && {
2325
- startAt: t.startAt && W(t.startAt, i),
2326
- endAt: t.endAt && W(t.endAt, i)
2325
+ startAt: t.startAt && B(t.startAt, i),
2326
+ endAt: t.endAt && B(t.endAt, i)
2327
2327
  },
2328
- (o) => new X(o.data)
2328
+ (o) => new X(o.data),
2329
+ {},
2330
+ !0
2329
2331
  );
2330
2332
  }
2331
2333
  /**
@@ -2337,7 +2339,7 @@ class Tt extends p {
2337
2339
  * @see /doc/api/internal#/operations/api_internal_client_price_template_apply
2338
2340
  */
2339
2341
  applyTemplate(r, e) {
2340
- return this.post(`/internal/clients/${r}/price/templates/${e}/apply`);
2342
+ return this.post(`/internal/clients/${r}/price/templates/${e}/apply`, {}, void 0, {}, !0);
2341
2343
  }
2342
2344
  /**
2343
2345
  * Изменяет связь между клиентом и шаблоном прайс-листа.
@@ -2354,8 +2356,8 @@ class Tt extends p {
2354
2356
  return this.patch(
2355
2357
  `/internal/clients/${r}/price/templates/${e}/${t}`,
2356
2358
  i && {
2357
- startAt: i.startAt && W(i.startAt, o),
2358
- endAt: i.endAt && W(i.endAt, o)
2359
+ startAt: i.startAt && B(i.startAt, o),
2360
+ endAt: i.endAt && B(i.endAt, o)
2359
2361
  },
2360
2362
  (c) => new X(c.data)
2361
2363
  );
@@ -2373,7 +2375,7 @@ class Tt extends p {
2373
2375
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
2374
2376
  }
2375
2377
  }
2376
- class _t extends p {
2378
+ class _t extends h {
2377
2379
  /**
2378
2380
  * Возвращает список данных о корневых категориях.
2379
2381
  *
@@ -2446,7 +2448,7 @@ class _t extends p {
2446
2448
  getCategoryProductsCoefficients(r) {
2447
2449
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2448
2450
  const { data: t } = e;
2449
- return mr(t, (i) => i.map((o) => new Ie(o))), t;
2451
+ return mr(t, (i) => i.map((o) => new Le(o))), t;
2450
2452
  });
2451
2453
  }
2452
2454
  /**
@@ -2465,7 +2467,7 @@ class _t extends p {
2465
2467
  });
2466
2468
  }
2467
2469
  }
2468
- class St extends p {
2470
+ class at extends h {
2469
2471
  /**
2470
2472
  * Возвращает данные об указанном продукте.
2471
2473
  *
@@ -2496,7 +2498,7 @@ class St extends p {
2496
2498
  return this.get(
2497
2499
  `/internal/catalog/products/${r}/coefficients`,
2498
2500
  {},
2499
- (e) => ce(e.data, (t) => new Ie(t))
2501
+ (e) => ce(e.data, (t) => new Le(t))
2500
2502
  );
2501
2503
  }
2502
2504
  /**
@@ -2527,7 +2529,7 @@ class St extends p {
2527
2529
  });
2528
2530
  }
2529
2531
  }
2530
- class at extends p {
2532
+ class St extends h {
2531
2533
  /**
2532
2534
  * Возвращает список данных о корневых категориях указанного клиента.
2533
2535
  *
@@ -2585,11 +2587,11 @@ class at extends p {
2585
2587
  showHidden: i,
2586
2588
  withPriceCoefficients: t
2587
2589
  },
2588
- (o) => ce(o.data, (c) => new Q(c))
2590
+ (o) => ce(o.data, (c) => new J(c))
2589
2591
  );
2590
2592
  }
2591
2593
  }
2592
- class Lt extends p {
2594
+ class Lt extends h {
2593
2595
  /**
2594
2596
  * Возвращает данные об указанном продукте для указанного клиента.
2595
2597
  *
@@ -2606,7 +2608,7 @@ class Lt extends p {
2606
2608
  clientId: e,
2607
2609
  withPriceCoefficients: t
2608
2610
  },
2609
- (i) => new Q(i.data)
2611
+ (i) => new J(i.data)
2610
2612
  );
2611
2613
  }
2612
2614
  }
@@ -2642,7 +2644,7 @@ class Ue {
2642
2644
  field: this.field,
2643
2645
  op: this.op
2644
2646
  };
2645
- return r.value = fr(this.value) ? W(this.value, b.getConfig().dateFormats.api) : this.value, r;
2647
+ return r.value = fr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2646
2648
  }
2647
2649
  }
2648
2650
  class se {
@@ -2675,12 +2677,12 @@ class se {
2675
2677
  toPrimitive() {
2676
2678
  return {
2677
2679
  groupOp: this.groupOp,
2678
- filters: this.filters.map((r) => r instanceof Ue && Le(r.toPrimitive) ? r.toPrimitive() : r),
2680
+ filters: this.filters.map((r) => r instanceof Ue && Se(r.toPrimitive) ? r.toPrimitive() : r),
2679
2681
  groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
2680
2682
  };
2681
2683
  }
2682
2684
  }
2683
- class Ce extends p {
2685
+ class Ce extends h {
2684
2686
  /**
2685
2687
  * Получает пагинированный список данных.
2686
2688
  *
@@ -2693,11 +2695,11 @@ class Ce extends p {
2693
2695
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2694
2696
  */
2695
2697
  getPaginated(r, e, t, i, o, c, u) {
2696
- let g = {
2698
+ let p = {
2697
2699
  page: (i == null ? void 0 : i.page) ?? 1,
2698
2700
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2699
2701
  };
2700
- return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), ae(t) || (g.sort = Be(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u);
2702
+ return e && (p.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), ae(t) || (p.sort = Be(t) ? t : [t]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
2701
2703
  }
2702
2704
  }
2703
2705
  class It extends Ce {
@@ -2713,7 +2715,7 @@ class It extends Ce {
2713
2715
  getTemplateList(r, e, t) {
2714
2716
  return this.getPaginated("/internal/price/templates", r, e, t, {}, (i) => {
2715
2717
  const o = { ...i.data };
2716
- return o.data = o.data.map((c) => new j(c)), o;
2718
+ return o.data = o.data.map((c) => new W(c)), o;
2717
2719
  });
2718
2720
  }
2719
2721
  /**
@@ -2726,7 +2728,7 @@ class It extends Ce {
2726
2728
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2727
2729
  */
2728
2730
  createTemplate(r, e = {}) {
2729
- return this.post("/internal/price/templates", r, (t) => new j(t.data), e);
2731
+ return this.post("/internal/price/templates", r, (t) => new W(t.data), e);
2730
2732
  }
2731
2733
  /**
2732
2734
  * Возвращает данные о шаблоне прайс-листа.
@@ -2736,7 +2738,7 @@ class It extends Ce {
2736
2738
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
2737
2739
  */
2738
2740
  getTemplate(r) {
2739
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new j(e.data));
2741
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new W(e.data));
2740
2742
  }
2741
2743
  /**
2742
2744
  * Изменяет данные о шаблоне прайс-листа.
@@ -2749,7 +2751,7 @@ class It extends Ce {
2749
2751
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2750
2752
  */
2751
2753
  updateTemplate(r, e, t = {}) {
2752
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new j(i.data), t);
2754
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new W(i.data), t);
2753
2755
  }
2754
2756
  /**
2755
2757
  * Удаляет данные о шаблоне прайс-листа.
@@ -2772,7 +2774,7 @@ class It extends Ce {
2772
2774
  return this.get(
2773
2775
  `/internal/price/templates/${r}/products`,
2774
2776
  {},
2775
- (e) => e.data.map((t) => new Pe(t))
2777
+ (e) => e.data.map((t) => new ve(t))
2776
2778
  );
2777
2779
  }
2778
2780
  /**
@@ -2784,7 +2786,7 @@ class It extends Ce {
2784
2786
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2785
2787
  */
2786
2788
  getProductTemplatePrice(r, e) {
2787
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new Pe(t.data));
2789
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new ve(t.data));
2788
2790
  }
2789
2791
  /**
2790
2792
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2803,7 +2805,7 @@ class It extends Ce {
2803
2805
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
2804
2806
  increase_percent: t.value
2805
2807
  },
2806
- (o) => new Pe(o.data)
2808
+ (o) => new ve(o.data)
2807
2809
  );
2808
2810
  }
2809
2811
  /**
@@ -2828,7 +2830,7 @@ class It extends Ce {
2828
2830
  return this.get(
2829
2831
  `/internal/price/templates/${r}/categories`,
2830
2832
  {},
2831
- (e) => e.data.map((t) => new ve(t))
2833
+ (e) => e.data.map((t) => new we(t))
2832
2834
  );
2833
2835
  }
2834
2836
  /**
@@ -2843,7 +2845,7 @@ class It extends Ce {
2843
2845
  return this.get(
2844
2846
  `/internal/price/templates/${r}/categories/${e}`,
2845
2847
  {},
2846
- (t) => new ve(t.data)
2848
+ (t) => new we(t.data)
2847
2849
  );
2848
2850
  }
2849
2851
  /**
@@ -2869,7 +2871,7 @@ class It extends Ce {
2869
2871
  },
2870
2872
  params: i ? { recursively: !0 } : {}
2871
2873
  },
2872
- (c) => new ve(c.data)
2874
+ (c) => new we(c.data)
2873
2875
  );
2874
2876
  }
2875
2877
  /**
@@ -2904,7 +2906,7 @@ class It extends Ce {
2904
2906
  );
2905
2907
  }
2906
2908
  }
2907
- class xt extends p {
2909
+ class xt extends h {
2908
2910
  /**
2909
2911
  * Возвращает список ролей ценообразования.
2910
2912
  *
@@ -3060,7 +3062,7 @@ class kt extends Ce {
3060
3062
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3061
3063
  */
3062
3064
  getProductProperties(r) {
3063
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new B(t)));
3065
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new z(t)));
3064
3066
  }
3065
3067
  /**
3066
3068
  * Возвращает значение свойства продукта.
@@ -3070,7 +3072,7 @@ class kt extends Ce {
3070
3072
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3071
3073
  */
3072
3074
  getProductProperty(r, e) {
3073
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new B(t.data));
3075
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new z(t.data));
3074
3076
  }
3075
3077
  /**
3076
3078
  * Обновляет значение свойства продукта.
@@ -3081,7 +3083,7 @@ class kt extends Ce {
3081
3083
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3082
3084
  */
3083
3085
  updateProductProperty(r, e, t) {
3084
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new B(i.data));
3086
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new z(i.data));
3085
3087
  }
3086
3088
  /**
3087
3089
  * Удаляет значение свойства продукта.
@@ -3206,7 +3208,7 @@ class kt extends Ce {
3206
3208
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3207
3209
  */
3208
3210
  getCategoryProperties(r) {
3209
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new B(t)));
3211
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new z(t)));
3210
3212
  }
3211
3213
  /**
3212
3214
  * Возвращает значение свойства категории.
@@ -3216,7 +3218,7 @@ class kt extends Ce {
3216
3218
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3217
3219
  */
3218
3220
  getCategoryProperty(r, e) {
3219
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new B(t.data));
3221
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new z(t.data));
3220
3222
  }
3221
3223
  /**
3222
3224
  * Обновляет значение свойства категории.
@@ -3227,7 +3229,7 @@ class kt extends Ce {
3227
3229
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3228
3230
  */
3229
3231
  updateCategoryProperty(r, e, t) {
3230
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new B(i.data));
3232
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new z(i.data));
3231
3233
  }
3232
3234
  /**
3233
3235
  * Удаляет значение свойства категории.
@@ -3356,7 +3358,7 @@ class kt extends Ce {
3356
3358
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3357
3359
  }
3358
3360
  }
3359
- class Nt extends p {
3361
+ class Nt extends h {
3360
3362
  /**
3361
3363
  * Возвращает данные о рекомендациях указанной категории продуктов.
3362
3364
  *
@@ -3420,7 +3422,7 @@ function Ge(n, r, e) {
3420
3422
  }), t;
3421
3423
  }
3422
3424
  var et = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(et || {});
3423
- class _e extends z {
3425
+ class Te extends H {
3424
3426
  /**
3425
3427
  * Инициализирует экземпляр класса {@link BankAccount}.
3426
3428
  *
@@ -3447,11 +3449,11 @@ class _e extends z {
3447
3449
  /**
3448
3450
  * Данные о валюте.
3449
3451
  */
3450
- s(this, "currency", new pe());
3451
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
3452
+ s(this, "currency", new ue());
3453
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3452
3454
  }
3453
3455
  }
3454
- class Se extends $ {
3456
+ class _e extends $ {
3455
3457
  /**
3456
3458
  * Инициализирует экземпляр класса {@link Contact}.
3457
3459
  *
@@ -3470,7 +3472,7 @@ class Se extends $ {
3470
3472
  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;
3471
3473
  }
3472
3474
  }
3473
- class H extends Se {
3475
+ class F extends _e {
3474
3476
  /**
3475
3477
  * Инициализирует экземпляр класса {@link ContactPerson}.
3476
3478
  *
@@ -3529,7 +3531,7 @@ class rr extends $ {
3529
3531
  /**
3530
3532
  * Группа партнеров (направление деятельности).
3531
3533
  */
3532
- s(this, "partnerGroup", new F());
3534
+ s(this, "partnerGroup", new Y());
3533
3535
  /**
3534
3536
  * Список контактных лиц контрагента.
3535
3537
  */
@@ -3563,16 +3565,16 @@ class rr extends $ {
3563
3565
  */
3564
3566
  s(this, "updater");
3565
3567
  if (e) {
3566
- if (this.opf = new M(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 G(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new F(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3568
+ if (this.opf = new M(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 G(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Y(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3567
3569
  const t = [];
3568
3570
  e.contacts.forEach((i) => {
3569
- t.push(new H(i));
3571
+ t.push(new F(i));
3570
3572
  }), this.contacts = t;
3571
3573
  }
3572
3574
  if (e.bankAccounts) {
3573
3575
  const t = [];
3574
3576
  e.bankAccounts.forEach((i) => {
3575
- t.push(new _e(i));
3577
+ t.push(new Te(i));
3576
3578
  }), this.bankAccounts = t;
3577
3579
  }
3578
3580
  }
@@ -3657,7 +3659,7 @@ class tt extends sr {
3657
3659
  /**
3658
3660
  * Страна регистрации юридического лица нерезидента.
3659
3661
  */
3660
- s(this, "registrationCountry", new Y());
3662
+ s(this, "registrationCountry", new Q());
3661
3663
  /**
3662
3664
  * Регистрационный номер юридического лица нерезидента.
3663
3665
  */
@@ -3666,10 +3668,10 @@ class tt extends sr {
3666
3668
  * Налоговый номер юридического лица нерезидента.
3667
3669
  */
3668
3670
  s(this, "taxNumber", "");
3669
- e && (this.registrationCountry = new Y(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3671
+ e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3670
3672
  }
3671
3673
  }
3672
- class he {
3674
+ class pe {
3673
3675
  /**
3674
3676
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3675
3677
  *
@@ -3688,7 +3690,7 @@ class he {
3688
3690
  }
3689
3691
  }
3690
3692
  }
3691
- class Re extends z {
3693
+ class Pe extends H {
3692
3694
  /**
3693
3695
  * Инициализирует экземпляр класса {@link ContactRelation}.
3694
3696
  *
@@ -3703,7 +3705,7 @@ class Re extends z {
3703
3705
  this.isPrimary = e.isPrimary;
3704
3706
  }
3705
3707
  }
3706
- class st extends H {
3708
+ class st extends F {
3707
3709
  /**
3708
3710
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3709
3711
  *
@@ -3728,10 +3730,10 @@ class st extends H {
3728
3730
  */
3729
3731
  addresses: []
3730
3732
  });
3731
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Re(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Re(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Re(t))));
3733
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Pe(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Pe(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Pe(t))));
3732
3734
  }
3733
3735
  }
3734
- class ge extends Fr {
3736
+ class he extends Fr {
3735
3737
  /**
3736
3738
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3737
3739
  *
@@ -3768,7 +3770,7 @@ class ge extends Fr {
3768
3770
  * Признак того, что указанный адрес является адресом транспортной компании.
3769
3771
  */
3770
3772
  s(this, "isTransportCompanyAddress");
3771
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ee(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new H(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;
3773
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ee(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.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;
3772
3774
  }
3773
3775
  }
3774
3776
  class Me extends ne {
@@ -3825,7 +3827,7 @@ class Me extends ne {
3825
3827
  * Дополнительные данные о клиенте.
3826
3828
  */
3827
3829
  s(this, "extraData");
3828
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => he.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new F(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new H(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ge(u))) ?? [], this.channelPrimaryInterest = new Xe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new er(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3830
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => pe.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Y(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new he(u))) ?? [], this.channelPrimaryInterest = new Xe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new er(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3829
3831
  }
3830
3832
  }
3831
3833
  class Ot {
@@ -3852,9 +3854,9 @@ class Ot {
3852
3854
  */
3853
3855
  s(this, "searchTerm");
3854
3856
  /**
3855
- * Данные о городе.
3857
+ * Данные о городах.
3856
3858
  */
3857
- s(this, "city");
3859
+ s(this, "cities");
3858
3860
  /**
3859
3861
  * Данные о регионе.
3860
3862
  */
@@ -3892,9 +3894,9 @@ class Ot {
3892
3894
  */
3893
3895
  s(this, "managers");
3894
3896
  /**
3895
- * Направление продаж.
3897
+ * Направления продаж.
3896
3898
  */
3897
- s(this, "salesDirection");
3899
+ s(this, "salesDirections");
3898
3900
  /**
3899
3901
  * ИНН контрагента.
3900
3902
  */
@@ -3908,9 +3910,9 @@ class Ot {
3908
3910
  */
3909
3911
  s(this, "preferredDeliveryType");
3910
3912
  /**
3911
- * Группа партнеров (направление деятельности).
3913
+ * Группы партнеров (направление деятельности).
3912
3914
  */
3913
- s(this, "partnerGroup");
3915
+ s(this, "partnerGroups");
3914
3916
  /**
3915
3917
  * Данные контактного лица.
3916
3918
  */
@@ -3919,11 +3921,11 @@ class Ot {
3919
3921
  * Данные о параметрах поиска последнего заказа который сделал пользователь.
3920
3922
  */
3921
3923
  s(this, "lastOrder");
3922
- var e, t, i;
3923
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.city = new ue(r == null ? void 0 : r.city), this.region = new te(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new we(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new M(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new F(r == null ? void 0 : r.partnerGroup), this.contact = new Se(r == null ? void 0 : r.contact), this.lastOrder = {
3924
- createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3925
- creator: (t = r == null ? void 0 : r.lastOrder) == null ? void 0 : t.creator,
3926
- isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
3924
+ var e, t, i, o, c, u;
3925
+ 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.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((p) => new ke(p)), this.region = new te(r == null ? void 0 : r.region), this.country = new Q(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((p) => new ye(p)) : [], this.salesDirections = (t = r == null ? void 0 : r.salesDirections) == null ? void 0 : t.map((p) => new S(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new M(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new Y(p)), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
3926
+ createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
3927
+ creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
3928
+ isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
3927
3929
  };
3928
3930
  }
3929
3931
  /**
@@ -3942,8 +3944,8 @@ class Ot {
3942
3944
  case "contragentInn":
3943
3945
  this[r] = void 0;
3944
3946
  break;
3945
- case "city":
3946
- this.city = new ue();
3947
+ case "cities":
3948
+ this.cities = [];
3947
3949
  break;
3948
3950
  case "region":
3949
3951
  this.region = new te();
@@ -3966,20 +3968,20 @@ class Ot {
3966
3968
  case "managers":
3967
3969
  this.managers = [];
3968
3970
  break;
3969
- case "salesDirection":
3970
- this.salesDirection = new S();
3971
+ case "salesDirections":
3972
+ this.salesDirections = [];
3971
3973
  break;
3972
3974
  case "contragentType":
3973
3975
  this.contragentType = new M();
3974
3976
  break;
3975
3977
  case "preferredDeliveryType":
3976
- this.preferredDeliveryType = new J();
3978
+ this.preferredDeliveryType = new K();
3977
3979
  break;
3978
- case "partnerGroup":
3979
- this.partnerGroup = new F();
3980
+ case "partnerGroups":
3981
+ this.partnerGroups = [];
3980
3982
  break;
3981
3983
  case "contact":
3982
- this.contact = new Se();
3984
+ this.contact = new _e();
3983
3985
  break;
3984
3986
  }
3985
3987
  return this;
@@ -3994,11 +3996,11 @@ class Ot {
3994
3996
  return Object.keys(this).forEach((c) => {
3995
3997
  const u = this[c];
3996
3998
  // eslint-disable-next-line prettier/prettier
3997
- U(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
3999
+ U(u) || m(u) && u.trim().length === 0 || Se(u.isNewRec) && u.isNewRec() || (r[c] = u);
3998
4000
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.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;
3999
4001
  }
4000
4002
  }
4001
- class ir extends z {
4003
+ class ir extends H {
4002
4004
  /**
4003
4005
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4004
4006
  *
@@ -4054,7 +4056,7 @@ class it extends $ {
4054
4056
  * Список менеджеров.
4055
4057
  */
4056
4058
  s(this, "managers");
4057
- (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new H(o))), e.lastOrder && (this.lastOrder = new ir(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new F(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4059
+ (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new ir(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new Y(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4058
4060
  }
4059
4061
  }
4060
4062
  class nt {
@@ -4326,7 +4328,7 @@ class Ut extends Ce {
4326
4328
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4327
4329
  */
4328
4330
  createContragentClientData(r, e, t = {}) {
4329
- var g, R, D, L, I, x, k, N;
4331
+ var p, R, D, L, I, x, k, N;
4330
4332
  let i;
4331
4333
  const o = e, c = e, u = e;
4332
4334
  switch (e.opf.slug) {
@@ -4335,7 +4337,7 @@ class Ut extends Ce {
4335
4337
  opf: o.opf.slug,
4336
4338
  name: o.name,
4337
4339
  alternative_name: o.alternativeName,
4338
- partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4340
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4339
4341
  manager_id: (R = o.manager) == null ? void 0 : R.id,
4340
4342
  comment: o.comment,
4341
4343
  inn: o.inn,
@@ -4400,7 +4402,7 @@ class Ut extends Ce {
4400
4402
  return this.post(
4401
4403
  `/internal/clients/${r}/contragents`,
4402
4404
  i,
4403
- (d) => he.createInstance(d.data),
4405
+ (d) => pe.createInstance(d.data),
4404
4406
  t
4405
4407
  );
4406
4408
  }
@@ -4415,7 +4417,7 @@ class Ut extends Ce {
4415
4417
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4416
4418
  */
4417
4419
  updateContragentClientData(r, e, t = {}) {
4418
- var g, R, D, L, I, x, k, N;
4420
+ var p, R, D, L, I, x, k, N;
4419
4421
  let i;
4420
4422
  const o = e, c = e, u = e;
4421
4423
  switch (e.opf.slug) {
@@ -4424,7 +4426,7 @@ class Ut extends Ce {
4424
4426
  opf: o.opf.slug,
4425
4427
  name: o.name,
4426
4428
  alternative_name: o.alternativeName,
4427
- partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4429
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4428
4430
  manager_id: (R = o.manager) == null ? void 0 : R.id,
4429
4431
  comment: o.comment,
4430
4432
  inn: o.inn,
@@ -4489,7 +4491,7 @@ class Ut extends Ce {
4489
4491
  return this.patch(
4490
4492
  `/internal/clients/${r}/contragents/${e.id}`,
4491
4493
  i,
4492
- (d) => he.createInstance(d.data),
4494
+ (d) => pe.createInstance(d.data),
4493
4495
  t
4494
4496
  );
4495
4497
  }
@@ -4527,7 +4529,7 @@ class Ut extends Ce {
4527
4529
  }), e.operatingHours && (i.operating_hours = {
4528
4530
  from: e.operatingHours.from,
4529
4531
  to: e.operatingHours.to
4530
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ge(u.data), t);
4532
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new he(u.data), t);
4531
4533
  }
4532
4534
  /**
4533
4535
  * Обновляет данные об адресе доставки клиента.
@@ -4556,7 +4558,7 @@ class Ut extends Ce {
4556
4558
  }), this.patch(
4557
4559
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4558
4560
  i,
4559
- (u) => new ge(u.data),
4561
+ (u) => new he(u.data),
4560
4562
  t
4561
4563
  );
4562
4564
  }
@@ -4592,7 +4594,7 @@ class Ut extends Ce {
4592
4594
  correspondent_account: t.correspondentAccount,
4593
4595
  currency_id: t.currency.id
4594
4596
  },
4595
- (o) => new _e(o.data),
4597
+ (o) => new Te(o.data),
4596
4598
  i
4597
4599
  );
4598
4600
  }
@@ -4618,7 +4620,7 @@ class Ut extends Ce {
4618
4620
  correspondent_account: t.correspondentAccount,
4619
4621
  currency_id: t.currency.id
4620
4622
  },
4621
- (o) => new _e(o.data),
4623
+ (o) => new Te(o.data),
4622
4624
  i
4623
4625
  );
4624
4626
  }
@@ -4679,7 +4681,7 @@ class Ut extends Ce {
4679
4681
  comment: e.comment,
4680
4682
  not_disturb: e.notDisturb
4681
4683
  },
4682
- (i) => new H(i.data),
4684
+ (i) => new F(i.data),
4683
4685
  t
4684
4686
  );
4685
4687
  }
@@ -4822,7 +4824,7 @@ class Ut extends Ce {
4822
4824
  comment: e.comment,
4823
4825
  ...t
4824
4826
  };
4825
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new H(g.data), i);
4827
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new F(p.data), i);
4826
4828
  }
4827
4829
  /**
4828
4830
  * Устанавливает признак основного контактного лица.
@@ -4851,7 +4853,7 @@ class Ut extends Ce {
4851
4853
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4852
4854
  }
4853
4855
  }
4854
- class Gt extends p {
4856
+ class Gt extends h {
4855
4857
  /**
4856
4858
  * Выполняет проверку занят ли указанный номер телефона.
4857
4859
  *
@@ -4865,7 +4867,7 @@ class Gt extends p {
4865
4867
  });
4866
4868
  }
4867
4869
  }
4868
- class Mt extends p {
4870
+ class Mt extends h {
4869
4871
  /**
4870
4872
  * Возвращает настройки указанного конфигуратора для указанной категории.
4871
4873
  *
@@ -4951,14 +4953,14 @@ class Ft {
4951
4953
  };
4952
4954
  }
4953
4955
  }
4954
- const K = class K {
4956
+ const E = class E {
4955
4957
  /**
4956
4958
  * Устанавливает список единиц измерения линейной величины.
4957
4959
  *
4958
4960
  * @param linearValues Список единиц измерения линейной величины.
4959
4961
  */
4960
4962
  static setLinearValues(r) {
4961
- K.linearValues = r;
4963
+ E.linearValues = r;
4962
4964
  }
4963
4965
  /**
4964
4966
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -4966,7 +4968,7 @@ const K = class K {
4966
4968
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
4967
4969
  */
4968
4970
  static productIsMeasurable(r) {
4969
- return K.linearValues.includes(r.unit);
4971
+ return E.linearValues.includes(r.unit);
4970
4972
  }
4971
4973
  /**
4972
4974
  * Возвращает кратность количества для указанного товара.
@@ -4975,7 +4977,7 @@ const K = class K {
4975
4977
  */
4976
4978
  static getProductMultiplicity(r) {
4977
4979
  var e, t;
4978
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !K.productIsMeasurable(r) ? r.properties.minCount : 1;
4980
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !E.productIsMeasurable(r) ? r.properties.minCount : 1;
4979
4981
  }
4980
4982
  /**
4981
4983
  * Возвращает кратность длины для указанного товара.
@@ -4990,14 +4992,14 @@ const K = class K {
4990
4992
  /**
4991
4993
  * Список единиц измерения линейной величины.
4992
4994
  */
4993
- s(K, "linearValues", ["пог.м.", "м.", "м2"]);
4994
- let Fe = K;
4995
+ s(E, "linearValues", ["пог.м.", "м.", "м2"]);
4996
+ let Fe = E;
4995
4997
  class Ht {
4996
4998
  /**
4997
4999
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
4998
5000
  */
4999
5001
  static generateUndefinedManagerInstance() {
5000
- return new we({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5002
+ return new ye({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5001
5003
  }
5002
5004
  /**
5003
5005
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5008,14 +5010,14 @@ class Ht {
5008
5010
  return r.id === 0 && r.guid === "-undefined-";
5009
5011
  }
5010
5012
  }
5011
- class ot extends p {
5013
+ class ot extends h {
5012
5014
  /**
5013
5015
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5014
5016
  */
5015
5017
  getManagers() {
5016
- const r = "/internal/managers", e = p.getCachedResponse(r);
5018
+ const r = "/internal/managers", e = h.getCachedResponse(r);
5017
5019
  return e ? Promise.resolve(e) : this.get(r).then((t) => {
5018
- const i = t.data.map((o) => xe.instanceInitializer(we, o));
5020
+ const i = t.data.map((o) => Ie.instanceInitializer(ye, o));
5019
5021
  return i && this.cacheResponse(r, i), i;
5020
5022
  });
5021
5023
  }
@@ -5027,7 +5029,7 @@ class nr extends ir {
5027
5029
  * @param data Данные для первоначальной инициализации.
5028
5030
  */
5029
5031
  constructor(e) {
5030
- var t, i, o, c, u, g, R, D;
5032
+ var t, i, o, c, u, p, R, D;
5031
5033
  super(e);
5032
5034
  /**
5033
5035
  * Краткие данные о клиенте.
@@ -5075,13 +5077,13 @@ class nr extends ir {
5075
5077
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5076
5078
  }, this.delivery = {
5077
5079
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5078
- date: m((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
5079
- address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5080
- warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new ye(e.delivery.warehouse) : void 0
5080
+ date: m((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? f(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5081
+ address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new he(e.delivery.address) : void 0,
5082
+ warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new fe(e.delivery.warehouse) : void 0
5081
5083
  }, this.attachedUser = new G(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;
5082
5084
  }
5083
5085
  }
5084
- class ct extends z {
5086
+ class ct extends H {
5085
5087
  /**
5086
5088
  * Инициализирует экземпляр класса {@link OrderProduct}.
5087
5089
  *
@@ -5161,7 +5163,7 @@ class ct extends z {
5161
5163
  * который соответствует указанной ширине. Количество не ограничено.
5162
5164
  */
5163
5165
  s(this, "sawing");
5164
- this.product = new Q(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
5166
+ this.product = new J(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
5165
5167
  }
5166
5168
  }
5167
5169
  class lt extends nr {
@@ -5204,7 +5206,7 @@ class lt extends nr {
5204
5206
  * Признак, что разрешена передача заказа в работу без оплаты.
5205
5207
  */
5206
5208
  s(this, "isAllowProcessingWithoutPayment");
5207
- this.products = (e.products ?? []).map((t) => new ct(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5209
+ this.products = (e.products ?? []).map((t) => new ct(t)), 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;
5208
5210
  }
5209
5211
  }
5210
5212
  class zt extends Ce {
@@ -5241,7 +5243,7 @@ class zt extends Ce {
5241
5243
  return this.get(`/internal/orders/${r}`, {}, (e) => new lt(e.data));
5242
5244
  }
5243
5245
  }
5244
- class Ae {
5246
+ class Re {
5245
5247
  /**
5246
5248
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5247
5249
  *
@@ -5268,10 +5270,10 @@ class Ae {
5268
5270
  * Источник клиентской цены.
5269
5271
  */
5270
5272
  s(this, "source");
5271
- this.client = new ne(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? ke.Product;
5273
+ this.client = new ne(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? xe.Product;
5272
5274
  }
5273
5275
  }
5274
- const De = (n) => {
5276
+ const Ae = (n) => {
5275
5277
  var r, e, t, i, o;
5276
5278
  return n ? yr(
5277
5279
  {
@@ -5282,13 +5284,13 @@ const De = (n) => {
5282
5284
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5283
5285
  hideNotActive: n.hideNotActive
5284
5286
  },
5285
- (c) => U(c) || (Be(c) || wr(c)) && ae(c)
5287
+ (c) => U(c) || (Be(c) || Cr(c)) && ae(c)
5286
5288
  ) : {};
5287
5289
  }, He = (n) => {
5288
5290
  const r = {};
5289
5291
  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;
5290
5292
  };
5291
- class Bt extends p {
5293
+ class Bt extends h {
5292
5294
  /**
5293
5295
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5294
5296
  *
@@ -5303,9 +5305,9 @@ class Bt extends p {
5303
5305
  `/internal/price/products/${r}/analyze`,
5304
5306
  {
5305
5307
  ...He(e),
5306
- filters: De(t)
5308
+ filters: Ae(t)
5307
5309
  },
5308
- (i) => i.data.map((o) => new Ae(o))
5310
+ (i) => i.data.map((o) => new Re(o))
5309
5311
  );
5310
5312
  }
5311
5313
  /**
@@ -5322,9 +5324,9 @@ class Bt extends p {
5322
5324
  `/internal/price/categories/${r}/analyze`,
5323
5325
  {
5324
5326
  ...He(e),
5325
- filters: De(t)
5327
+ filters: Ae(t)
5326
5328
  },
5327
- (i) => i.data.map((o) => new Ae(o))
5329
+ (i) => i.data.map((o) => new Re(o))
5328
5330
  );
5329
5331
  }
5330
5332
  /**
@@ -5343,9 +5345,9 @@ class Bt extends p {
5343
5345
  `/internal/price/categories/${r}/analyze/square`,
5344
5346
  {
5345
5347
  ...e,
5346
- filters: De(t)
5348
+ filters: Ae(t)
5347
5349
  },
5348
- (i) => i.data.map((o) => new Ae(o))
5350
+ (i) => i.data.map((o) => new Re(o))
5349
5351
  );
5350
5352
  }
5351
5353
  }
@@ -5406,7 +5408,7 @@ class ze {
5406
5408
  this.resourceType = new Ze(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new ut(t))) ?? [];
5407
5409
  }
5408
5410
  }
5409
- class Wt extends p {
5411
+ class Wt extends h {
5410
5412
  /**
5411
5413
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5412
5414
  *
@@ -5437,8 +5439,8 @@ class Wt extends p {
5437
5439
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5438
5440
  }
5439
5441
  }
5440
- const P = me("__references_private", () => {
5441
- const n = C({}), r = C(void 0), e = C(void 0), t = C(void 0), i = C(void 0), o = C(void 0), c = C(void 0), u = C(void 0), g = C(void 0), R = C(void 0), D = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), l = C(void 0);
5442
+ const P = ge("__references_private", () => {
5443
+ const n = w({}), r = w(void 0), e = w(void 0), t = w(void 0), i = w(void 0), o = w(void 0), c = w(void 0), u = w(void 0), p = w(void 0), R = w(void 0), D = w(void 0), L = w(void 0), I = w(void 0), x = w(void 0), k = w(void 0), N = w(void 0), d = w(void 0), l = w(void 0);
5442
5444
  return {
5443
5445
  /**
5444
5446
  * Список загружаемых/загруженных на данный момент значений.
@@ -5475,7 +5477,7 @@ const P = me("__references_private", () => {
5475
5477
  /**
5476
5478
  * Справочник статусов заказов.
5477
5479
  */
5478
- orderStatusReference: g,
5480
+ orderStatusReference: p,
5479
5481
  /**
5480
5482
  * Справочник типов оплаты заказов.
5481
5483
  */
@@ -5513,91 +5515,91 @@ const P = me("__references_private", () => {
5513
5515
  */
5514
5516
  priceCoefficientsReference: l
5515
5517
  };
5516
- }), jt = me("references", () => {
5518
+ }), jt = ge("references", () => {
5517
5519
  const n = v(() => {
5518
5520
  const l = P();
5519
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(A).getChannelPrimaryInterest().then((h) => {
5520
- l.channelPrimaryInterestReference = h;
5521
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
5522
+ l.channelPrimaryInterestReference = g;
5521
5523
  }).catch(y)), l.channelPrimaryInterestReference;
5522
5524
  }), r = v(() => {
5523
5525
  const l = P();
5524
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(A).getContactPositions().then((h) => {
5525
- l.contactPositionsReference = h;
5526
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
5527
+ l.contactPositionsReference = g;
5526
5528
  }).catch(y)), l.contactPositionsReference;
5527
5529
  }), e = v(() => {
5528
5530
  const l = P();
5529
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(A).getCurrency().then((h) => {
5530
- l.currencyReference = h;
5531
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
5532
+ l.currencyReference = g;
5531
5533
  }).catch(y)), l.currencyReference;
5532
5534
  }), t = v(() => {
5533
5535
  const l = P();
5534
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(A).getOpf().then((h) => {
5535
- l.opfReference = h;
5536
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
5537
+ l.opfReference = g;
5536
5538
  }).catch(y)), l.opfReference;
5537
5539
  }), i = v(() => {
5538
5540
  const l = P();
5539
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(A).getOrderPaymentStatuses().then((h) => {
5540
- l.orderPaymentStatusReference = h;
5541
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
5542
+ l.orderPaymentStatusReference = g;
5541
5543
  }).catch(y)), l.orderPaymentStatusReference;
5542
5544
  }), o = v(() => {
5543
5545
  const l = P();
5544
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(A).getOrderStatuses().then((h) => {
5545
- l.orderStatusReference = h;
5546
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
5547
+ l.orderStatusReference = g;
5546
5548
  }).catch(y)), l.orderStatusReference;
5547
5549
  }), c = v(() => {
5548
5550
  const l = P();
5549
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(A).getPaymentTypes().then((h) => {
5550
- l.paymentTypeReference = h;
5551
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
5552
+ l.paymentTypeReference = g;
5551
5553
  }).catch(y)), l.paymentTypeReference;
5552
5554
  }), u = v(() => {
5553
5555
  const l = P();
5554
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(A).getPartnerGroup().then((h) => {
5555
- l.partnerGroupReference = h;
5556
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
5557
+ l.partnerGroupReference = g;
5556
5558
  }).catch(y)), l.partnerGroupReference;
5557
- }), g = v(() => {
5559
+ }), p = v(() => {
5558
5560
  const l = P();
5559
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(A).getProductFileType().then((h) => {
5560
- l.productFileTypeReference = h;
5561
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
5562
+ l.productFileTypeReference = g;
5561
5563
  }).catch(y)), l.productFileTypeReference;
5562
5564
  }), R = v(() => {
5563
5565
  const l = P();
5564
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(A).getResourceTypes().then((h) => {
5565
- l.resourceTypesReference = h;
5566
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
5567
+ l.resourceTypesReference = g;
5566
5568
  }).catch(y)), l.resourceTypesReference;
5567
5569
  }), D = v(() => {
5568
5570
  const l = P();
5569
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(A).getSalesDirections().then((h) => {
5570
- l.salesDirectionsReference = h;
5571
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
5572
+ l.salesDirectionsReference = g;
5571
5573
  }).catch(y)), l.salesDirectionsReference;
5572
5574
  }), L = v(() => {
5573
5575
  const l = P();
5574
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(A).getSourcePrimaryInterest().then((h) => {
5575
- l.sourcePrimaryInterestReference = h;
5576
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
5577
+ l.sourcePrimaryInterestReference = g;
5576
5578
  }).catch(y)), l.sourcePrimaryInterestReference;
5577
5579
  }), I = v(() => {
5578
5580
  const l = P();
5579
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(A).getDeliveryTypes().then((h) => {
5580
- l.deliveryTypeReference = h;
5581
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
5582
+ l.deliveryTypeReference = g;
5581
5583
  }).catch(y)), l.deliveryTypeReference;
5582
5584
  }), x = v(() => {
5583
5585
  const l = P();
5584
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(ot).getManagers().then((h) => {
5585
- l.managersList = h;
5586
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ot).getManagers().then((g) => {
5587
+ l.managersList = g;
5586
5588
  }).catch(y)), l.managersList;
5587
5589
  }), k = v(() => {
5588
5590
  const l = P();
5589
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(A).getWarehouses().then((h) => {
5590
- l.warehousesReference = h;
5591
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
5592
+ l.warehousesReference = g;
5591
5593
  }).catch(y)), l.warehousesReference;
5592
5594
  }), N = v(() => {
5593
5595
  const l = P();
5594
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(A).getPropertyTypes().then((h) => {
5595
- l.propertyTypesReference = h;
5596
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
5597
+ l.propertyTypesReference = g;
5596
5598
  }).catch(y)), l.propertyTypesReference;
5597
5599
  }), d = v(() => {
5598
5600
  const l = P();
5599
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(A).getPriceCoefficients().then((h) => {
5600
- l.priceCoefficientsReference = h;
5601
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
5602
+ l.priceCoefficientsReference = g;
5601
5603
  }).catch(y)), l.priceCoefficientsReference;
5602
5604
  });
5603
5605
  return {
@@ -5636,7 +5638,7 @@ const P = me("__references_private", () => {
5636
5638
  /**
5637
5639
  * Справочник типов файлов продуктов/категорий.
5638
5640
  */
5639
- productFilesTypesReference: g,
5641
+ productFilesTypesReference: p,
5640
5642
  /**
5641
5643
  * Справочник типов ресурсов.
5642
5644
  */
@@ -5670,8 +5672,8 @@ const P = me("__references_private", () => {
5670
5672
  */
5671
5673
  priceCoefficientsReference: d
5672
5674
  };
5673
- }), pt = me("__user_state_private", () => {
5674
- const n = C({}), r = C(void 0);
5675
+ }), pt = ge("__user_state_private", () => {
5676
+ const n = w({}), r = w(void 0);
5675
5677
  return {
5676
5678
  /**
5677
5679
  * Список загружаемых/загруженных на данный момент значений.
@@ -5682,18 +5684,18 @@ const P = me("__references_private", () => {
5682
5684
  */
5683
5685
  currentUser: r
5684
5686
  };
5685
- }), Vt = me("user_state", () => ({
5687
+ }), Vt = ge("user_state", () => ({
5686
5688
  /**
5687
5689
  * Данные о текущем пользователе.
5688
5690
  */
5689
5691
  currentUser: v(() => {
5690
5692
  const r = pt();
5691
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Xr).getCurrentUser().then((e) => {
5693
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Xr).getCurrentUser().then((e) => {
5692
5694
  r.currentUser = e;
5693
5695
  }).catch(y).finally(y)), r.currentUser;
5694
5696
  })
5695
5697
  }));
5696
- class Et extends p {
5698
+ class Et extends h {
5697
5699
  /**
5698
5700
  * Возвращает подсказки по адресам.
5699
5701
  *
@@ -5767,7 +5769,7 @@ export {
5767
5769
  Wr as AnyReference,
5768
5770
  vt as AppBaseConfig,
5769
5771
  b as AppConfigProvider,
5770
- _e as BankAccount,
5772
+ Te as BankAccount,
5771
5773
  Ce as BasePaginationProvider,
5772
5774
  Gr as CalculationTypeEnum,
5773
5775
  oe as Cart,
@@ -5780,43 +5782,43 @@ export {
5780
5782
  qe as CategoryPricingRule,
5781
5783
  Xe as ChannelPrimaryInterest,
5782
5784
  Dt as City,
5783
- ue as CityWithRegionAndCountry,
5785
+ ke as CityWithRegionAndCountry,
5784
5786
  Me as Client,
5785
5787
  it as ClientAdditionalData,
5786
5788
  le as ClientCategory,
5787
5789
  Ut as ClientDataProvider,
5788
5790
  bt as ClientPriceProvider,
5789
5791
  Tt as ClientPriceTemplateProvider,
5790
- Q as ClientProduct,
5791
- at as ClientProductCategoryDataProvider,
5792
+ J as ClientProduct,
5793
+ St as ClientProductCategoryDataProvider,
5792
5794
  Lt as ClientProductDataProvider,
5793
5795
  ne as ClientShortInfo,
5794
5796
  et as ClientsAdditionalDataRequestTypeEnum,
5795
5797
  Ot as ClientsListFilters,
5796
5798
  Mt as ConfiguratorProvider,
5797
- Se as Contact,
5799
+ _e as Contact,
5798
5800
  zr as ContactLinks,
5799
- H as ContactPerson,
5801
+ F as ContactPerson,
5800
5802
  st as ContactPersonRelated,
5801
5803
  jr as ContactPosition,
5802
- Re as ContactRelation,
5804
+ Pe as ContactRelation,
5803
5805
  rr as ContragentBase,
5804
- he as ContragentFactory,
5806
+ pe as ContragentFactory,
5805
5807
  tr as ContragentIc,
5806
5808
  rt as ContragentPerson,
5807
5809
  tt as ContragentUlNr,
5808
5810
  sr as ContragentUlR,
5809
- ke as CostSourceEnum,
5810
- Y as Country,
5811
- pe as Currency,
5811
+ xe as CostSourceEnum,
5812
+ Q as Country,
5813
+ ue as Currency,
5812
5814
  Et as DataSuggestionProvider,
5813
5815
  dt as DataTablePagination,
5814
5816
  nt as DataTablePaginationRequestParams,
5815
5817
  qt as DataTableSortRequestParams,
5816
5818
  Ft as DateTimeProvider,
5817
5819
  Fr as DeletableNamedIdentity,
5818
- ge as DeliveryAddress,
5819
- J as DeliveryType,
5820
+ he as DeliveryAddress,
5821
+ K as DeliveryType,
5820
5822
  Or as DeviceTypeResolutionConfig,
5821
5823
  Hr as DiscountShortInfo,
5822
5824
  Kt as FieldValidationResultData,
@@ -5825,13 +5827,13 @@ export {
5825
5827
  Ne as FilterOpEnum,
5826
5828
  Ee as GeoCoordinates,
5827
5829
  Ir as HiddenCatalogableItem,
5828
- Te as HttpBaseCachedRequester,
5829
- be as HttpBaseRequester,
5830
+ be as HttpBaseCachedRequester,
5831
+ $e as HttpBaseRequester,
5830
5832
  dr as HttpParamsConfig,
5831
- p as HttpRequester,
5832
- z as Identity,
5833
+ h as HttpRequester,
5834
+ H as Identity,
5833
5835
  xr as Image,
5834
- we as Manager,
5836
+ ye as Manager,
5835
5837
  re as ManagerCommon,
5836
5838
  Ht as ManagerDataFactory,
5837
5839
  ot as ManagerDataProvider,
@@ -5846,36 +5848,36 @@ export {
5846
5848
  ir as OrderShortInfo,
5847
5849
  Er as OrderStatus,
5848
5850
  zt as OrdersDataProvider,
5849
- F as PartnerGroup,
5851
+ Y as PartnerGroup,
5850
5852
  Kr as PaymentType,
5851
5853
  Rt as PreferencesStorageProvider,
5852
- Ae as PriceAnalyze,
5854
+ Re as PriceAnalyze,
5853
5855
  Bt as PriceAnalyzeProvider,
5854
- fe as PriceCoefficient,
5856
+ me as PriceCoefficient,
5855
5857
  Ve as PriceCoefficientEnum,
5856
- j as PriceTemplate,
5857
- ve as PriceTemplateCategory,
5858
+ W as PriceTemplate,
5859
+ we as PriceTemplateCategory,
5858
5860
  X as PriceTemplateClient,
5859
5861
  Je as PriceTemplateICatalogableItem,
5860
- Pe as PriceTemplateProduct,
5862
+ ve as PriceTemplateProduct,
5861
5863
  It as PriceTemplateProvider,
5862
5864
  ee as PricingRole,
5863
5865
  xt as PricingRoleProvider,
5864
- $e as PrimaryCatalogableItem,
5866
+ De as PrimaryCatalogableItem,
5865
5867
  _ as Product,
5866
5868
  _t as ProductCategoryDataProvider,
5867
- St as ProductDataProvider,
5869
+ at as ProductDataProvider,
5868
5870
  Jr as ProductFileType,
5869
- Ie as ProductPriceCoefficient,
5871
+ Le as ProductPriceCoefficient,
5870
5872
  Zr as ProductPriceHistory,
5871
5873
  kt as PropertiesProvider,
5872
5874
  Z as Property,
5873
5875
  Ye as PropertyType,
5874
5876
  Mr as PropertyTypeEnum,
5875
- B as PropertyValue,
5877
+ z as PropertyValue,
5876
5878
  Nt as RecommendationsDataProvider,
5877
5879
  de as RecommendationsList,
5878
- w as Reference,
5880
+ C as Reference,
5879
5881
  A as ReferenceDataProvider,
5880
5882
  te as Region,
5881
5883
  Ze as ResourceType,
@@ -5886,7 +5888,7 @@ export {
5886
5888
  er as SourcePrimaryInterest,
5887
5889
  Lr as StockCount,
5888
5890
  At as TemplatesListFilters,
5889
- xe as TypedInstanceFactory,
5891
+ Ie as TypedInstanceFactory,
5890
5892
  Fe as UnitsHelper,
5891
5893
  Gt as UnknownClientDataProvider,
5892
5894
  Ke as UpdatableNamedIdentity,
@@ -5896,7 +5898,7 @@ export {
5896
5898
  G as UserShortInfo,
5897
5899
  Qr as UserTypeEnum,
5898
5900
  Ur as VersionConfig,
5899
- ye as Warehouse,
5901
+ fe as Warehouse,
5900
5902
  Ge as findCatalogItemByIdRecursive,
5901
5903
  jt as useReferencesStore,
5902
5904
  Vt as useUserStateStore