@snabcentr/common-lib 1.72.0 → 1.72.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,14 +1,14 @@
1
- var wr = Object.defineProperty;
2
- var Cr = (n, r, e) => r in n ? wr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
1
+ var Cr = Object.defineProperty;
2
+ var vr = (n, r, e) => r in n ? Cr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => vr(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as Ye } from "jwt-decode";
5
- import { merge as me, isUndefined as vr, isNil as $, noop as C, mapValues as Pr, isArray as J, every as Rr, split as ar, toUpper as Ar, constant as Dr, isString as w, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ve, forEach as br, isDate as de, isEmpty as Pe, omitBy as Xe, isObject as Ze } from "lodash-es";
5
+ import { merge as me, isUndefined as Pr, isNil as $, noop as w, mapValues as Xe, isArray as K, every as Rr, split as ar, toUpper as Ar, constant as Dr, isString as C, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ve, forEach as br, isDate as Ie, isEmpty as Pe, omitBy as Ze, isObject as er } from "lodash-es";
6
6
  import { objectToCamel as Oe, objectToSnake as Me } from "ts-case-convert";
7
- import { defineStore as Z } from "pinia";
7
+ import { defineStore as re } from "pinia";
8
8
  import { ref as y, markRaw as _r, computed as R } from "vue";
9
- import { parseISO as v, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as dr, endOfTomorrow as Lr, startOfTomorrow as kr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
9
+ import { parseISO as v, format as q, isAfter as Sr, startOfToday as rr, addSeconds as dr, addBusinessDays as Ir, endOfTomorrow as kr, startOfTomorrow as Lr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
10
10
  import Gr from "axios";
11
- class ie {
11
+ class Q {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class ie {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = Ye(r), s = new ie(Oe(e));
110
+ const e = Ye(r), s = new Q(Oe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class kt extends ie {
114
+ class Lt extends Q {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,26 +151,26 @@ class kt extends ie {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new ie(Oe(Ye(e)));
154
+ return new Q(Oe(Ye(e)));
155
155
  }
156
156
  }
157
- const W = class W {
157
+ const E = class E {
158
158
  /**
159
159
  * Инициализирует и возвращает конфигурацию приложения.
160
160
  *
161
161
  * @param config Данные для первоначальной инициализации.
162
162
  */
163
163
  static init(r) {
164
- W.config = r;
164
+ E.config = r;
165
165
  }
166
166
  /**
167
167
  * Возвращает текущую конфигурацию приложения.
168
168
  */
169
169
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
170
170
  static getConfig() {
171
- if (vr(W.config))
171
+ if (Pr(E.config))
172
172
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
173
- return W.config;
173
+ return E.config;
174
174
  }
175
175
  /**
176
176
  * Выполняет загрузку конфигурации по указанному пути.
@@ -189,11 +189,17 @@ const W = class W {
189
189
  /**
190
190
  * Конфигурация приложения.
191
191
  */
192
- t(W, "config");
193
- let D = W;
194
- const ee = Z("__auth_state_private", () => {
195
- var i;
196
- const n = y(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = y(void 0), e = y(void 0), s = _r(/* @__PURE__ */ new Map());
192
+ t(E, "config");
193
+ let T = E;
194
+ const H = re("__auth_state_private", () => {
195
+ var o;
196
+ const n = y(Promise.resolve((o = T.getConfig().devMode) == null ? void 0 : o.initAuthBearerToken)), r = y(void 0), e = y(void 0), s = _r(/* @__PURE__ */ new Map());
197
+ function i() {
198
+ e.value = void 0, $(n.value) || n.value.then((c) => {
199
+ const u = Q.getJwtPayload(c);
200
+ e.value = u.exp * 1e3 > Date.now() ? Xe(u.resourceAccess, (p) => (p == null ? void 0 : p.roles) ?? []) : void 0;
201
+ }).catch(w);
202
+ }
197
203
  return {
198
204
  /**
199
205
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
@@ -210,46 +216,55 @@ const ee = Z("__auth_state_private", () => {
210
216
  /**
211
217
  * Список вычисляемых свойств для проверки наличия у пользователя прав доступа.
212
218
  */
213
- userPermissionsComputedRefs: s
219
+ userPermissionsComputedRefs: s,
220
+ /**
221
+ * Принудительно пересчитывает права доступа пользователя на основе текущего JWT токена.
222
+ */
223
+ recalculateUserPermissions: i
214
224
  };
215
- }), $e = Z("__auth_state", () => {
225
+ }), $e = re("__auth_state", () => {
216
226
  const n = R(() => {
217
- const i = ee();
218
- if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
219
- const o = i.jwtTokenUpdater();
220
- i.jwtToken = o, o.then((c) => {
221
- i.jwtToken = Promise.resolve(c);
222
- }).catch(C);
227
+ const o = H();
228
+ if ($(o.jwtToken) && !$(o.jwtTokenUpdater)) {
229
+ const c = o.jwtTokenUpdater();
230
+ o.jwtToken = c, c.then((u) => {
231
+ o.jwtToken = Promise.resolve(u), o.recalculateUserPermissions();
232
+ }).catch(w);
223
233
  }
224
- return i.jwtToken;
234
+ return o.jwtToken;
225
235
  });
226
- function r(i) {
227
- ee().jwtTokenUpdater = i;
228
- }
229
- function e() {
230
- ee().jwtToken = void 0;
231
- }
232
- function s(i) {
233
- const o = ee();
234
- !$(o.jwtToken) && $(o.userPermissions) && o.jwtToken.then((u) => {
235
- const f = ie.getJwtPayload(u);
236
- o.userPermissions = f.exp * 1e3 > Date.now() ? Pr(f.resourceAccess, (m) => (m == null ? void 0 : m.roles) ?? []) : void 0;
237
- }).catch(C);
238
- const c = J(i) ? i.join(" && ") : i;
239
- if (o.userPermissionsComputedRefs.has(c))
240
- return o.userPermissionsComputedRefs.get(c);
236
+ function r(o) {
237
+ H().jwtTokenUpdater = o;
238
+ }
239
+ function e(o) {
240
+ const c = H();
241
+ c.jwtToken = Promise.resolve(o), c.recalculateUserPermissions();
242
+ }
243
+ function s() {
244
+ const o = H();
245
+ o.jwtToken = void 0, o.userPermissions = void 0;
246
+ }
247
+ function i(o) {
248
+ const c = H();
249
+ !$(c.jwtToken) && $(c.userPermissions) && c.jwtToken.then((f) => {
250
+ const m = Q.getJwtPayload(f);
251
+ c.userPermissions = m.exp * 1e3 > Date.now() ? Xe(m.resourceAccess, (A) => (A == null ? void 0 : A.roles) ?? []) : void 0;
252
+ }).catch(w);
253
+ const u = K(o) ? o.join(" && ") : o;
254
+ if (c.userPermissionsComputedRefs.has(u))
255
+ return c.userPermissionsComputedRefs.get(u);
241
256
  const p = R(() => {
242
- const u = (f) => {
243
- var _;
244
- const m = ar(f, ".");
245
- if (m.length < 2)
257
+ const f = (m) => {
258
+ var S;
259
+ const A = ar(m, ".");
260
+ if (A.length < 2)
246
261
  return !1;
247
- const [S, I] = m, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
248
- return J(b) && b.includes(I);
262
+ const [d, I] = A, _ = (S = H().userPermissions) == null ? void 0 : S[d];
263
+ return K(_) && _.includes(I);
249
264
  };
250
- return J(i) ? Rr(i, (f) => u(f)) : u(i);
265
+ return K(o) ? Rr(o, (m) => f(m)) : f(o);
251
266
  });
252
- return o.userPermissionsComputedRefs.set(c, p), p;
267
+ return c.userPermissionsComputedRefs.set(u, p), p;
253
268
  }
254
269
  return {
255
270
  /**
@@ -262,16 +277,22 @@ const ee = Z("__auth_state_private", () => {
262
277
  * @param updater Механизм для обновления jwt-ключа доступа к системам.
263
278
  */
264
279
  setJwtTokenUpdater: r,
280
+ /**
281
+ * Устанавливает новый JWT токен и автоматически пересчитывает права доступа.
282
+ *
283
+ * @param token Новый JWT токен.
284
+ */
285
+ setJwtToken: e,
265
286
  /**
266
287
  * Выполняет очистку jwt-ключа доступа к системам.
267
288
  */
268
- invalidateJwtToken: e,
289
+ invalidateJwtToken: s,
269
290
  /**
270
291
  * Возвращает вычисляемое поле для проверки наличия указанных прав доступа.
271
292
  *
272
293
  * @param name Проверяемое право доступа или их список. Должны быть представлены в виде значения: <РЕСУРС>.<РОЛЬ>.
273
294
  */
274
- hasUserPermission: s
295
+ hasUserPermission: i
275
296
  };
276
297
  });
277
298
  class M {
@@ -299,7 +320,7 @@ class M {
299
320
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : $(this.id);
300
321
  }
301
322
  }
302
- class T extends M {
323
+ class b extends M {
303
324
  /**
304
325
  * Инициализирует экземпляр класса {@link NamedIdentity}.
305
326
  *
@@ -314,7 +335,7 @@ class T extends M {
314
335
  this.name = (e == null ? void 0 : e.name) ?? "";
315
336
  }
316
337
  }
317
- class ne extends T {
338
+ class ne extends b {
318
339
  /**
319
340
  * Инициализирует экземпляр класса {@link NamedIdentity}.
320
341
  *
@@ -329,7 +350,7 @@ class ne extends T {
329
350
  this.code = (e == null ? void 0 : e.code) ?? "";
330
351
  }
331
352
  }
332
- class rr extends ne {
353
+ class tr extends ne {
333
354
  /**
334
355
  * Инициализирует экземпляр класса {@link CatalogableItem}.
335
356
  *
@@ -348,7 +369,7 @@ class rr extends ne {
348
369
  this.slug = (e == null ? void 0 : e.slug) ?? "";
349
370
  }
350
371
  }
351
- class Le extends rr {
372
+ class ke extends tr {
352
373
  /**
353
374
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
354
375
  *
@@ -363,7 +384,7 @@ class Le extends rr {
363
384
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
364
385
  }
365
386
  }
366
- class ue extends Le {
387
+ class pe extends ke {
367
388
  /**
368
389
  * Инициализирует экземпляр класса {@link BaseCategory}.
369
390
  *
@@ -390,8 +411,8 @@ class ue extends Le {
390
411
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Ar(s), i])) : void 0;
391
412
  }
392
413
  }
393
- var tr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tr || {});
394
- class P extends T {
414
+ var sr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(sr || {});
415
+ class P extends b {
395
416
  /**
396
417
  * Инициализирует экземпляр класса {@link Reference}.
397
418
  *
@@ -415,7 +436,7 @@ class Re extends P {
415
436
  * Возвращает значение справочника коэффициента розничной цены.
416
437
  */
417
438
  static getRetailPriceCoefficient() {
418
- return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: Dr(!0) };
439
+ return { id: -2, slug: sr.Retail, name: "Розн. цена", guid: "", isNewRec: Dr(!0) };
419
440
  }
420
441
  }
421
442
  class qe {
@@ -448,7 +469,7 @@ class qe {
448
469
  this.coefficient = new Re(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;
449
470
  }
450
471
  }
451
- class sr {
472
+ class ir {
452
473
  /**
453
474
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
454
475
  *
@@ -466,7 +487,7 @@ class sr {
466
487
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
467
488
  }
468
489
  }
469
- class K extends P {
490
+ class Y extends P {
470
491
  }
471
492
  class ae extends P {
472
493
  /**
@@ -497,10 +518,10 @@ class ae extends P {
497
518
  * Координаты склада.
498
519
  */
499
520
  t(this, "coordinates");
500
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new sr(e == null ? void 0 : e.coordinates);
521
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new Y(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ir(e == null ? void 0 : e.coordinates);
501
522
  }
502
523
  }
503
- class Fr {
524
+ class jr {
504
525
  /**
505
526
  * Инициализирует экземпляр класса {@link StockCount}.
506
527
  *
@@ -518,7 +539,7 @@ class Fr {
518
539
  this.warehouse = new ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
519
540
  }
520
541
  }
521
- class jr extends rr {
542
+ class Fr extends tr {
522
543
  /**
523
544
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
524
545
  *
@@ -556,14 +577,14 @@ class Mr {
556
577
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
557
578
  }
558
579
  }
559
- class k extends jr {
580
+ class x extends Fr {
560
581
  /**
561
582
  * Инициализирует экземпляр класса {@link Product}.
562
583
  *
563
584
  * @param data Данные для первоначальной инициализации.
564
585
  */
565
586
  constructor(e) {
566
- var i, o, c, p;
587
+ var i, o, c, u;
567
588
  super(e);
568
589
  /**
569
590
  * Артикул производителя/поставщика.
@@ -641,16 +662,16 @@ class k extends jr {
641
662
  * Список коэффициентов цен на продукт.
642
663
  */
643
664
  t(this, "priceCoefficients");
644
- 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 = w(e == null ? void 0 : e.costDate) ? v(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((u) => new Fr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
645
- const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((u) => u.isPrimary));
646
- s && (this.category = new Le({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new Le(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new Mr(u, D.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
665
+ 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 = C(e == null ? void 0 : e.costDate) ? v(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 jr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
666
+ const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
667
+ s && (this.category = new ke({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new ke(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Mr(p, T.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 qe(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
647
668
  }
648
669
  /**
649
670
  * Возвращает признак, что это измеряемый товар.
650
671
  */
651
672
  getIsMeasurable() {
652
673
  var s;
653
- const e = (s = D.getConfig().catalog) == null ? void 0 : s.products.units;
674
+ const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
654
675
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
655
676
  }
656
677
  /**
@@ -718,7 +739,7 @@ class Hr extends M {
718
739
  * Признак того, что позиция является дополнительной продажей.
719
740
  */
720
741
  t(this, "isAdditionalSale");
721
- this.product = new k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ue(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
742
+ this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new pe(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
722
743
  }
723
744
  }
724
745
  class Br extends Hr {
@@ -824,7 +845,7 @@ const L = class L {
824
845
  /**
825
846
  * Базовый URL путь для выполнения запросов.
826
847
  */
827
- t(this, "baseUrl", `${D.getConfig().http.portalApiUrl}/api`);
848
+ t(this, "baseUrl", `${T.getConfig().http.portalApiUrl}/api`);
828
849
  /**
829
850
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
830
851
  *
@@ -832,7 +853,7 @@ const L = class L {
832
853
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
833
854
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
834
855
  */
835
- t(this, "errorResponseHandler", C);
856
+ t(this, "errorResponseHandler", w);
836
857
  /**
837
858
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
838
859
  */
@@ -877,10 +898,10 @@ const L = class L {
877
898
  */
878
899
  // eslint-disable-next-line class-methods-use-this
879
900
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
880
- const r = D.getConfig().version;
901
+ const r = T.getConfig().version;
881
902
  this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = Gr.create({
882
903
  headers: {
883
- "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
904
+ "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, T.getConfig().dateFormats.uiDate)})`,
884
905
  Accept: "application/json",
885
906
  "Content-Type": "application/json"
886
907
  }
@@ -1014,7 +1035,7 @@ t(L, "instances", {}), /**
1014
1035
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1015
1036
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1016
1037
  */
1017
- t(L, "defaultErrorsResponseHandler", C);
1038
+ t(L, "defaultErrorsResponseHandler", w);
1018
1039
  let h = L;
1019
1040
  class xt extends h {
1020
1041
  /**
@@ -1131,7 +1152,7 @@ class xt extends h {
1131
1152
  }
1132
1153
  }
1133
1154
  var zr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(zr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Wr = /* @__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))(Wr || {});
1134
- class B extends ue {
1155
+ class z extends pe {
1135
1156
  /**
1136
1157
  * Инициализирует экземпляр класса {@link Category}.
1137
1158
  *
@@ -1148,10 +1169,10 @@ class B extends ue {
1148
1169
  * Список продуктов категории.
1149
1170
  */
1150
1171
  t(this, "products");
1151
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new k(o));
1172
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new x(o));
1152
1173
  }
1153
1174
  }
1154
- class ir extends T {
1175
+ class nr extends b {
1155
1176
  /**
1156
1177
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1157
1178
  *
@@ -1163,10 +1184,10 @@ class ir extends T {
1163
1184
  * Дата и время последнего изменения.
1164
1185
  */
1165
1186
  t(this, "updatedAt");
1166
- this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1187
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1167
1188
  }
1168
1189
  }
1169
- class Er extends ir {
1190
+ class Er extends nr {
1170
1191
  /**
1171
1192
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1172
1193
  *
@@ -1178,7 +1199,7 @@ class Er extends ir {
1178
1199
  * Дата и время последнего удаления.
1179
1200
  */
1180
1201
  t(this, "deletedAt");
1181
- this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1202
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1182
1203
  }
1183
1204
  }
1184
1205
  class Nt {
@@ -1192,7 +1213,7 @@ class Nt {
1192
1213
  if (e)
1193
1214
  try {
1194
1215
  const s = JSON.parse(e);
1195
- if (Sr(v(s.availableFor) || er(), /* @__PURE__ */ new Date()))
1216
+ if (Sr(v(s.availableFor) || rr(), /* @__PURE__ */ new Date()))
1196
1217
  return s.data ?? {};
1197
1218
  } catch {
1198
1219
  localStorage.removeItem(r);
@@ -1215,7 +1236,7 @@ class Nt {
1215
1236
  );
1216
1237
  }
1217
1238
  }
1218
- class G extends T {
1239
+ class G extends b {
1219
1240
  /**
1220
1241
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1221
1242
  *
@@ -1230,7 +1251,7 @@ class G extends T {
1230
1251
  this.type = e == null ? void 0 : e.type;
1231
1252
  }
1232
1253
  }
1233
- class Vr extends T {
1254
+ class Jr extends b {
1234
1255
  /**
1235
1256
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1236
1257
  *
@@ -1266,10 +1287,10 @@ class Vr extends T {
1266
1287
  * Дата и время удаления.
1267
1288
  */
1268
1289
  t(this, "deletedAt");
1269
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = w(e == null ? void 0 : e.publishedAt) ? v(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 = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1290
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(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 = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1270
1291
  }
1271
1292
  }
1272
- class z extends ir {
1293
+ class W extends nr {
1273
1294
  /**
1274
1295
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1275
1296
  *
@@ -1285,10 +1306,10 @@ class z extends ir {
1285
1306
  * Дата и время создания шаблона.
1286
1307
  */
1287
1308
  t(this, "createdAt");
1288
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1309
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1289
1310
  }
1290
1311
  }
1291
- class Q extends k {
1312
+ class X extends x {
1292
1313
  /**
1293
1314
  * Инициализирует экземпляр класса {@link ClientProduct}.
1294
1315
  *
@@ -1324,10 +1345,10 @@ class Q extends k {
1324
1345
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1325
1346
  */
1326
1347
  t(this, "isFavorite");
1327
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Vr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new z(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;
1348
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Jr(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;
1328
1349
  }
1329
1350
  }
1330
- class Jr {
1351
+ class Vr {
1331
1352
  /**
1332
1353
  * Инициализирует экземпляр класса {@link ContactLinks}.
1333
1354
  *
@@ -1345,9 +1366,9 @@ class Jr {
1345
1366
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1346
1367
  }
1347
1368
  }
1348
- class x extends P {
1369
+ class N extends P {
1349
1370
  }
1350
- class oe extends T {
1371
+ class oe extends b {
1351
1372
  /**
1352
1373
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1353
1374
  *
@@ -1358,7 +1379,7 @@ class oe extends T {
1358
1379
  /**
1359
1380
  * Направление продаж.
1360
1381
  */
1361
- t(this, "salesDirection", new x());
1382
+ t(this, "salesDirection", new N());
1362
1383
  /**
1363
1384
  * URI путь к фотографии пользователя.
1364
1385
  */
@@ -1371,10 +1392,10 @@ class oe extends T {
1371
1392
  * Признак того, что менеджер является основным для клиента.
1372
1393
  */
1373
1394
  t(this, "isDefault");
1374
- e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Jr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1395
+ e && (this.salesDirection = new N(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Vr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1375
1396
  }
1376
1397
  }
1377
- class Kr extends T {
1398
+ class Kr extends b {
1378
1399
  /**
1379
1400
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1380
1401
  *
@@ -1432,7 +1453,7 @@ class Ae extends oe {
1432
1453
  this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new Kr(e.pricingRole) : void 0;
1433
1454
  }
1434
1455
  }
1435
- class Qr extends ue {
1456
+ class Qr extends pe {
1436
1457
  /**
1437
1458
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1438
1459
  *
@@ -1480,10 +1501,10 @@ class fe extends Qr {
1480
1501
  * Список продуктов категории.
1481
1502
  */
1482
1503
  t(this, "products");
1483
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new fe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Q(o));
1504
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new fe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new X(o));
1484
1505
  }
1485
1506
  }
1486
- class nr {
1507
+ class or {
1487
1508
  /**
1488
1509
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1489
1510
  *
@@ -1501,7 +1522,7 @@ class nr {
1501
1522
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1502
1523
  }
1503
1524
  }
1504
- class Te extends nr {
1525
+ class Te extends or {
1505
1526
  /**
1506
1527
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1507
1528
  *
@@ -1513,10 +1534,10 @@ class Te extends nr {
1513
1534
  * Базовые данные о продукте.
1514
1535
  */
1515
1536
  t(this, "productCategory");
1516
- this.productCategory = new ue(e == null ? void 0 : e.productCategory);
1537
+ this.productCategory = new pe(e == null ? void 0 : e.productCategory);
1517
1538
  }
1518
1539
  }
1519
- class Y extends P {
1540
+ class Z extends P {
1520
1541
  }
1521
1542
  class ce extends P {
1522
1543
  /**
@@ -1529,11 +1550,11 @@ class ce extends P {
1529
1550
  /**
1530
1551
  * Данные о стране, в которой расположен регион.
1531
1552
  */
1532
- t(this, "country", new Y());
1533
- e && (this.country = new Y(e.country));
1553
+ t(this, "country", new Z());
1554
+ e && (this.country = new Z(e.country));
1534
1555
  }
1535
1556
  }
1536
- class Fe extends P {
1557
+ class je extends P {
1537
1558
  /**
1538
1559
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1539
1560
  *
@@ -1548,7 +1569,7 @@ class Fe extends P {
1548
1569
  e && (this.region = new ce(e.region));
1549
1570
  }
1550
1571
  }
1551
- class or extends T {
1572
+ class cr extends b {
1552
1573
  /**
1553
1574
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1554
1575
  *
@@ -1584,10 +1605,10 @@ class or extends T {
1584
1605
  * Признак активности учетной записи пользователя.
1585
1606
  */
1586
1607
  t(this, "isActive");
1587
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = w(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1608
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new N(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1588
1609
  }
1589
1610
  }
1590
- class he extends or {
1611
+ class he extends cr {
1591
1612
  /**
1592
1613
  * Инициализирует экземпляр класса {@link Client}.
1593
1614
  *
@@ -1629,10 +1650,10 @@ class he extends or {
1629
1650
  * Список менеджеров клиента.
1630
1651
  */
1631
1652
  t(this, "managers");
1632
- this.salesDirection = new x(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 Fe(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new oe(i))) ?? [];
1653
+ this.salesDirection = new N(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 je(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new oe(i))) ?? [];
1633
1654
  }
1634
1655
  }
1635
- class re extends M {
1656
+ class te extends M {
1636
1657
  /**
1637
1658
  * Инициализирует новый экземпляр класса.
1638
1659
  *
@@ -1656,10 +1677,10 @@ class re extends M {
1656
1677
  * Данные шаблона прайс-листа.
1657
1678
  */
1658
1679
  t(this, "priceTemplate");
1659
- this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
1680
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1660
1681
  }
1661
1682
  }
1662
- class be extends nr {
1683
+ class be extends or {
1663
1684
  /**
1664
1685
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1665
1686
  *
@@ -1671,12 +1692,12 @@ class be extends nr {
1671
1692
  * Базовые данные о продукте.
1672
1693
  */
1673
1694
  t(this, "product");
1674
- this.product = new k(e == null ? void 0 : e.product);
1695
+ this.product = new x(e == null ? void 0 : e.product);
1675
1696
  }
1676
1697
  }
1677
- class cr extends P {
1698
+ class lr extends P {
1678
1699
  }
1679
- class te extends T {
1700
+ class se extends b {
1680
1701
  /**
1681
1702
  * Инициализирует экземпляр класса {@link Property}.
1682
1703
  *
@@ -1696,10 +1717,10 @@ class te extends T {
1696
1717
  * Дополнительные метаданные свойства.
1697
1718
  */
1698
1719
  t(this, "metadata");
1699
- this.type = new cr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1720
+ this.type = new lr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1700
1721
  }
1701
1722
  }
1702
- class H {
1723
+ class B {
1703
1724
  /**
1704
1725
  * Инициализирует экземпляр класса {@link PropertyValue}.
1705
1726
  *
@@ -1715,7 +1736,7 @@ class H {
1715
1736
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1716
1737
  */
1717
1738
  t(this, "value");
1718
- this.property = new te(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1739
+ this.property = new se(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1719
1740
  }
1720
1741
  }
1721
1742
  class O {
@@ -1733,7 +1754,7 @@ class O {
1733
1754
  * Окончание периода.
1734
1755
  */
1735
1756
  t(this, "to");
1736
- this.from = w(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = w(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
1757
+ this.from = C(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
1737
1758
  }
1738
1759
  }
1739
1760
  class Ot {
@@ -1794,13 +1815,13 @@ class Ot {
1794
1815
  var e, s, i, o;
1795
1816
  const r = {};
1796
1817
  return Object.keys(this).forEach((c) => {
1797
- const p = this[c];
1818
+ const u = this[c];
1798
1819
  // eslint-disable-next-line prettier/prettier
1799
- $(p) || w(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
1820
+ $(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
1800
1821
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1801
1822
  }
1802
1823
  }
1803
- class se extends T {
1824
+ class ie extends b {
1804
1825
  /**
1805
1826
  * Инициализирует экземпляр класса {@link PricingRole}.
1806
1827
  *
@@ -1854,7 +1875,7 @@ class He {
1854
1875
  * Минимальный коэффициент цены.
1855
1876
  */
1856
1877
  t(this, "minCoefficient");
1857
- this.role = new se(r == null ? void 0 : r.role), this.category = new ue(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
1878
+ this.role = new ie(r == null ? void 0 : r.role), this.category = new pe(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
1858
1879
  }
1859
1880
  }
1860
1881
  class Yr {
@@ -1965,7 +1986,7 @@ class et {
1965
1986
  * Текущая версия приложения.
1966
1987
  */
1967
1988
  t(this, "version");
1968
- this.date = w(r == null ? void 0 : r.date) ? v(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
1989
+ this.date = C(r == null ? void 0 : r.date) ? v(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
1969
1990
  }
1970
1991
  }
1971
1992
  class rt {
@@ -2088,7 +2109,7 @@ class Ut extends h {
2088
2109
  */
2089
2110
  // eslint-disable-next-line class-methods-use-this
2090
2111
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2091
- let c = `${D.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2112
+ let c = `${T.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2092
2113
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2093
2114
  }
2094
2115
  }
@@ -2216,7 +2237,7 @@ class Gt extends h {
2216
2237
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2217
2238
  increase_percent: s.value
2218
2239
  },
2219
- (o) => new Q(o.data)
2240
+ (o) => new X(o.data)
2220
2241
  );
2221
2242
  }
2222
2243
  /**
@@ -2228,7 +2249,7 @@ class Gt extends h {
2228
2249
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2229
2250
  */
2230
2251
  removeProductPrice(r, e) {
2231
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Q(s.data));
2252
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new X(s.data));
2232
2253
  }
2233
2254
  /**
2234
2255
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2291,7 +2312,7 @@ class Gt extends h {
2291
2312
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2292
2313
  }
2293
2314
  }
2294
- class Ft extends h {
2315
+ class jt extends h {
2295
2316
  /**
2296
2317
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2297
2318
  *
@@ -2303,7 +2324,7 @@ class Ft extends h {
2303
2324
  return this.get(
2304
2325
  `/internal/clients/${r}/price/templates`,
2305
2326
  {},
2306
- (e) => e.data.map((s) => new re(s))
2327
+ (e) => e.data.map((s) => new te(s))
2307
2328
  );
2308
2329
  }
2309
2330
  /**
@@ -2314,7 +2335,7 @@ class Ft extends h {
2314
2335
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2315
2336
  */
2316
2337
  getActiveTemplate(r) {
2317
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new re(e.data));
2338
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new te(e.data));
2318
2339
  }
2319
2340
  /**
2320
2341
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2326,14 +2347,14 @@ class Ft extends h {
2326
2347
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2327
2348
  */
2328
2349
  attachTemplate(r, e, s) {
2329
- const i = D.getConfig().dateFormats.api;
2350
+ const i = T.getConfig().dateFormats.api;
2330
2351
  return this.post(
2331
2352
  `/internal/clients/${r}/price/templates/${e}`,
2332
2353
  s && {
2333
2354
  startAt: s.startAt && q(s.startAt, i),
2334
2355
  endAt: s.endAt && q(s.endAt, i)
2335
2356
  },
2336
- (o) => new re(o.data),
2357
+ (o) => new te(o.data),
2337
2358
  {},
2338
2359
  !0
2339
2360
  );
@@ -2360,14 +2381,14 @@ class Ft extends h {
2360
2381
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2361
2382
  */
2362
2383
  changeTemplate(r, e, s, i) {
2363
- const o = D.getConfig().dateFormats.api;
2384
+ const o = T.getConfig().dateFormats.api;
2364
2385
  return this.patch(
2365
2386
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2366
2387
  i && {
2367
2388
  startAt: i.startAt && q(i.startAt, o),
2368
2389
  endAt: i.endAt && q(i.endAt, o)
2369
2390
  },
2370
- (c) => new re(c.data)
2391
+ (c) => new te(c.data)
2371
2392
  );
2372
2393
  }
2373
2394
  /**
@@ -2383,7 +2404,7 @@ class Ft extends h {
2383
2404
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2384
2405
  }
2385
2406
  }
2386
- class jt extends h {
2407
+ class Ft extends h {
2387
2408
  /**
2388
2409
  * Возвращает список данных о корневых категориях.
2389
2410
  *
@@ -2397,7 +2418,7 @@ class jt extends h {
2397
2418
  {
2398
2419
  showHidden: r
2399
2420
  },
2400
- (e) => e.data.map((s) => new B(s))
2421
+ (e) => e.data.map((s) => new z(s))
2401
2422
  );
2402
2423
  }
2403
2424
  /**
@@ -2416,7 +2437,7 @@ class jt extends h {
2416
2437
  showHidden: e,
2417
2438
  withNestedCategories: s
2418
2439
  },
2419
- (i) => new B(i.data)
2440
+ (i) => new z(i.data)
2420
2441
  );
2421
2442
  }
2422
2443
  /**
@@ -2425,7 +2446,7 @@ class jt extends h {
2425
2446
  * @param categoryID Идентификатор категории продуктов.
2426
2447
  */
2427
2448
  getPublicCategoryData(r) {
2428
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new B(e.data));
2449
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
2429
2450
  }
2430
2451
  /**
2431
2452
  * Возвращает список продуктов категории.
@@ -2443,7 +2464,7 @@ class jt extends h {
2443
2464
  showHidden: s,
2444
2465
  withPriceCoefficients: e
2445
2466
  },
2446
- (i) => ve(i.data, (o) => new k(o))
2467
+ (i) => ve(i.data, (o) => new x(o))
2447
2468
  );
2448
2469
  }
2449
2470
  /**
@@ -2468,7 +2489,7 @@ class jt extends h {
2468
2489
  publicSimpleSearch(r, e = 10) {
2469
2490
  return new Promise((s, i) => {
2470
2491
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2471
- s(o.categories.map((c) => new B(c)));
2492
+ s(o.categories.map((c) => new z(c)));
2472
2493
  }).catch((o) => {
2473
2494
  i(o);
2474
2495
  });
@@ -2485,7 +2506,7 @@ class Mt extends h {
2485
2506
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2486
2507
  */
2487
2508
  getProductData(r, e = !1) {
2488
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
2509
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new x(s.data));
2489
2510
  }
2490
2511
  /**
2491
2512
  * Возвращает публичные данные об указанном продукте.
@@ -2493,7 +2514,7 @@ class Mt extends h {
2493
2514
  * @param productId Идентификатор продукта.
2494
2515
  */
2495
2516
  getPublicProductData(r) {
2496
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
2517
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new x(e.data));
2497
2518
  }
2498
2519
  /**
2499
2520
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2518,7 +2539,7 @@ class Mt extends h {
2518
2539
  publicSimpleSearch(r, e = 10) {
2519
2540
  return new Promise((s, i) => {
2520
2541
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2521
- s(o.products.map((c) => new k(c)));
2542
+ s(o.products.map((c) => new x(c)));
2522
2543
  }).catch((o) => {
2523
2544
  i(o);
2524
2545
  });
@@ -2583,7 +2604,7 @@ class Ht extends h {
2583
2604
  showHidden: i,
2584
2605
  withPriceCoefficients: s
2585
2606
  },
2586
- (o) => ve(o.data, (c) => new Q(c))
2607
+ (o) => ve(o.data, (c) => new X(c))
2587
2608
  );
2588
2609
  }
2589
2610
  }
@@ -2604,11 +2625,11 @@ class Bt extends h {
2604
2625
  clientId: e,
2605
2626
  withPriceCoefficients: s
2606
2627
  },
2607
- (i) => new Q(i.data)
2628
+ (i) => new X(i.data)
2608
2629
  );
2609
2630
  }
2610
2631
  }
2611
- var je = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(je || {});
2632
+ var Fe = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Fe || {});
2612
2633
  class Be {
2613
2634
  /**
2614
2635
  * Инициализирует экземпляр класса {@link FilterItem}.
@@ -2628,7 +2649,7 @@ class Be {
2628
2649
  * Значение с которым сравнивается поле.
2629
2650
  */
2630
2651
  t(this, "value");
2631
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? je.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2652
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Fe.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2632
2653
  }
2633
2654
  /**
2634
2655
  * Преобразует фильтр в примитивное представление для API.
@@ -2640,7 +2661,7 @@ class Be {
2640
2661
  field: this.field,
2641
2662
  op: this.op
2642
2663
  };
2643
- return r.value = de(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
2664
+ return r.value = Ie(this.value) ? q(this.value, T.getConfig().dateFormats.api) : this.value, r;
2644
2665
  }
2645
2666
  }
2646
2667
  class le {
@@ -2690,12 +2711,12 @@ class De extends h {
2690
2711
  * @param successHandler Обработчик успешного выполнения запроса.
2691
2712
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2692
2713
  */
2693
- getPaginated(r, e, s, i, o, c, p) {
2694
- let u = {
2714
+ getPaginated(r, e, s, i, o, c, u) {
2715
+ let p = {
2695
2716
  page: (i == null ? void 0 : i.page) ?? 1,
2696
2717
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2697
2718
  };
2698
- return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), Pe(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
2719
+ return e && (p.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), Pe(s) || (p.sort = K(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
2699
2720
  }
2700
2721
  }
2701
2722
  class zt extends De {
@@ -2711,7 +2732,7 @@ class zt extends De {
2711
2732
  getTemplateList(r, e, s) {
2712
2733
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2713
2734
  const o = { ...i.data };
2714
- return o.data = o.data.map((c) => new z(c)), o;
2735
+ return o.data = o.data.map((c) => new W(c)), o;
2715
2736
  });
2716
2737
  }
2717
2738
  /**
@@ -2724,7 +2745,7 @@ class zt extends De {
2724
2745
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2725
2746
  */
2726
2747
  createTemplate(r, e = {}) {
2727
- return this.post("/internal/price/templates", r, (s) => new z(s.data), e);
2748
+ return this.post("/internal/price/templates", r, (s) => new W(s.data), e);
2728
2749
  }
2729
2750
  /**
2730
2751
  * Возвращает данные о шаблоне прайс-листа.
@@ -2734,7 +2755,7 @@ class zt extends De {
2734
2755
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
2735
2756
  */
2736
2757
  getTemplate(r) {
2737
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new z(e.data));
2758
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new W(e.data));
2738
2759
  }
2739
2760
  /**
2740
2761
  * Изменяет данные о шаблоне прайс-листа.
@@ -2747,7 +2768,7 @@ class zt extends De {
2747
2768
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2748
2769
  */
2749
2770
  updateTemplate(r, e, s = {}) {
2750
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new z(i.data), s);
2771
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new W(i.data), s);
2751
2772
  }
2752
2773
  /**
2753
2774
  * Удаляет данные о шаблоне прайс-листа.
@@ -2898,7 +2919,7 @@ class zt extends De {
2898
2919
  return this.get(
2899
2920
  `/internal/price/templates/${r}/clients`,
2900
2921
  {},
2901
- (e) => e.data.map((s) => new re(s))
2922
+ (e) => e.data.map((s) => new te(s))
2902
2923
  );
2903
2924
  }
2904
2925
  }
@@ -2909,7 +2930,7 @@ class Wt extends h {
2909
2930
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
2910
2931
  */
2911
2932
  getRoles() {
2912
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new se(e)));
2933
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ie(e)));
2913
2934
  }
2914
2935
  /**
2915
2936
  * Добавляет новую роль ценообразования.
@@ -2919,7 +2940,7 @@ class Wt extends h {
2919
2940
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
2920
2941
  */
2921
2942
  createRole(r) {
2922
- return this.post("/internal/price/roles", r, (e) => new se(e.data));
2943
+ return this.post("/internal/price/roles", r, (e) => new ie(e.data));
2923
2944
  }
2924
2945
  /**
2925
2946
  * Возвращает данные роли ценообразования.
@@ -2929,7 +2950,7 @@ class Wt extends h {
2929
2950
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
2930
2951
  */
2931
2952
  getRole(r) {
2932
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new se(e.data));
2953
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new ie(e.data));
2933
2954
  }
2934
2955
  /**
2935
2956
  * Обновляет данные роли ценообразования.
@@ -2940,7 +2961,7 @@ class Wt extends h {
2940
2961
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
2941
2962
  */
2942
2963
  updateRole(r, e) {
2943
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new se(s.data));
2964
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new ie(s.data));
2944
2965
  }
2945
2966
  /**
2946
2967
  * Удаляет роль ценообразования.
@@ -2995,7 +3016,7 @@ class Et extends De {
2995
3016
  getProperties(r, e, s) {
2996
3017
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
2997
3018
  const o = { ...i.data };
2998
- return o.data = o.data.map((c) => new te(c)), o;
3019
+ return o.data = o.data.map((c) => new se(c)), o;
2999
3020
  });
3000
3021
  }
3001
3022
  /**
@@ -3012,7 +3033,7 @@ class Et extends De {
3012
3033
  ...s,
3013
3034
  type: e
3014
3035
  },
3015
- (i) => new te(i.data)
3036
+ (i) => new se(i.data)
3016
3037
  );
3017
3038
  }
3018
3039
  /**
@@ -3022,7 +3043,7 @@ class Et extends De {
3022
3043
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3023
3044
  */
3024
3045
  getProperty(r) {
3025
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new te(e.data));
3046
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new se(e.data));
3026
3047
  }
3027
3048
  /**
3028
3049
  * Обновляет существующее свойство.
@@ -3039,7 +3060,7 @@ class Et extends De {
3039
3060
  ...i,
3040
3061
  type: s
3041
3062
  },
3042
- (o) => new te(o.data)
3063
+ (o) => new se(o.data)
3043
3064
  );
3044
3065
  }
3045
3066
  /**
@@ -3058,7 +3079,7 @@ class Et extends De {
3058
3079
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3059
3080
  */
3060
3081
  getProductProperties(r) {
3061
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3082
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
3062
3083
  }
3063
3084
  /**
3064
3085
  * Возвращает значение свойства продукта.
@@ -3068,7 +3089,7 @@ class Et extends De {
3068
3089
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3069
3090
  */
3070
3091
  getProductProperty(r, e) {
3071
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3092
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new B(s.data));
3072
3093
  }
3073
3094
  /**
3074
3095
  * Обновляет значение свойства продукта.
@@ -3079,7 +3100,7 @@ class Et extends De {
3079
3100
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3080
3101
  */
3081
3102
  updateProductProperty(r, e, s) {
3082
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3103
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
3083
3104
  }
3084
3105
  /**
3085
3106
  * Удаляет значение свойства продукта.
@@ -3204,7 +3225,7 @@ class Et extends De {
3204
3225
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3205
3226
  */
3206
3227
  getCategoryProperties(r) {
3207
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3228
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
3208
3229
  }
3209
3230
  /**
3210
3231
  * Возвращает значение свойства категории.
@@ -3214,7 +3235,7 @@ class Et extends De {
3214
3235
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3215
3236
  */
3216
3237
  getCategoryProperty(r, e) {
3217
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3238
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new B(s.data));
3218
3239
  }
3219
3240
  /**
3220
3241
  * Обновляет значение свойства категории.
@@ -3225,7 +3246,7 @@ class Et extends De {
3225
3246
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3226
3247
  */
3227
3248
  updateCategoryProperty(r, e, s) {
3228
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3249
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
3229
3250
  }
3230
3251
  /**
3231
3252
  * Удаляет значение свойства категории.
@@ -3384,16 +3405,16 @@ function We(n) {
3384
3405
  }
3385
3406
  }), r;
3386
3407
  }
3387
- var tt = /* @__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))(tt || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
3408
+ var tt = /* @__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))(tt || {}), k = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(k || {});
3388
3409
  class st extends P {
3389
3410
  }
3390
- class lr extends P {
3411
+ class ur extends P {
3391
3412
  }
3392
- class Vt extends P {
3413
+ class Jt extends P {
3393
3414
  }
3394
3415
  class it extends P {
3395
3416
  }
3396
- class ye extends T {
3417
+ class ye extends b {
3397
3418
  /**
3398
3419
  * Инициализирует экземпляр класса {@link Currency}.
3399
3420
  *
@@ -3412,15 +3433,15 @@ class ye extends T {
3412
3433
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
3413
3434
  }
3414
3435
  }
3415
- class F extends P {
3436
+ class j extends P {
3416
3437
  /**
3417
3438
  * Возвращает сгенерированную запись-описание физического лица.
3418
3439
  */
3419
3440
  static generatePersonItem() {
3420
- return new F({
3441
+ return new j({
3421
3442
  id: 1,
3422
3443
  guid: "",
3423
- slug: d.Person,
3444
+ slug: k.Person,
3424
3445
  name: ""
3425
3446
  });
3426
3447
  }
@@ -3429,7 +3450,7 @@ class nt extends P {
3429
3450
  }
3430
3451
  class ot extends P {
3431
3452
  }
3432
- class X extends P {
3453
+ class ee extends P {
3433
3454
  }
3434
3455
  class ct extends P {
3435
3456
  }
@@ -3437,9 +3458,9 @@ class lt extends P {
3437
3458
  }
3438
3459
  class pr extends P {
3439
3460
  }
3440
- class ur extends P {
3461
+ class hr extends P {
3441
3462
  }
3442
- class ke extends M {
3463
+ class Le extends M {
3443
3464
  /**
3444
3465
  * Инициализирует экземпляр класса {@link BankAccount}.
3445
3466
  *
@@ -3470,7 +3491,7 @@ class ke extends M {
3470
3491
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
3471
3492
  }
3472
3493
  }
3473
- class xe extends T {
3494
+ class xe extends b {
3474
3495
  /**
3475
3496
  * Инициализирует экземпляр класса {@link Contact}.
3476
3497
  *
@@ -3489,7 +3510,7 @@ class xe extends T {
3489
3510
  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;
3490
3511
  }
3491
3512
  }
3492
- class j extends xe {
3513
+ class F extends xe {
3493
3514
  /**
3494
3515
  * Инициализирует экземпляр класса {@link ContactPerson}.
3495
3516
  *
@@ -3521,10 +3542,10 @@ class j extends xe {
3521
3542
  * Дата и время последнего удаления.
3522
3543
  */
3523
3544
  t(this, "deletedAt");
3524
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3545
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3525
3546
  }
3526
3547
  }
3527
- class hr extends T {
3548
+ class gr extends b {
3528
3549
  /**
3529
3550
  * Инициализирует экземпляр класса {@link ContragentBase}.
3530
3551
  *
@@ -3540,15 +3561,15 @@ class hr extends T {
3540
3561
  /**
3541
3562
  * Данные об организационно-правовой форме.
3542
3563
  */
3543
- t(this, "opf", F.generatePersonItem());
3564
+ t(this, "opf", j.generatePersonItem());
3544
3565
  /**
3545
3566
  * Направление продаж.
3546
3567
  */
3547
- t(this, "salesDirection", new x());
3568
+ t(this, "salesDirection", new N());
3548
3569
  /**
3549
3570
  * Группа партнеров (направление деятельности).
3550
3571
  */
3551
- t(this, "partnerGroup", new X());
3572
+ t(this, "partnerGroup", new ee());
3552
3573
  /**
3553
3574
  * Список контактных лиц контрагента.
3554
3575
  */
@@ -3582,22 +3603,22 @@ class hr extends T {
3582
3603
  */
3583
3604
  t(this, "updater");
3584
3605
  if (e) {
3585
- if (this.opf = new F(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new X(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
3606
+ if (this.opf = new j(e.opf), this.salesDirection = new N(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
3586
3607
  const s = [];
3587
3608
  e.contacts.forEach((i) => {
3588
- s.push(new j(i));
3609
+ s.push(new F(i));
3589
3610
  }), this.contacts = s;
3590
3611
  }
3591
3612
  if (e.bankAccounts) {
3592
3613
  const s = [];
3593
3614
  e.bankAccounts.forEach((i) => {
3594
- s.push(new ke(i));
3615
+ s.push(new Le(i));
3595
3616
  }), this.bankAccounts = s;
3596
3617
  }
3597
3618
  }
3598
3619
  }
3599
3620
  }
3600
- class pt extends hr {
3621
+ class ut extends gr {
3601
3622
  /**
3602
3623
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3603
3624
  *
@@ -3607,7 +3628,7 @@ class pt extends hr {
3607
3628
  super(r);
3608
3629
  }
3609
3630
  }
3610
- class gr extends hr {
3631
+ class mr extends gr {
3611
3632
  /**
3612
3633
  * Инициализирует экземпляр класса {@link ContragentIc}.
3613
3634
  *
@@ -3650,7 +3671,7 @@ class gr extends hr {
3650
3671
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3651
3672
  }
3652
3673
  }
3653
- class mr extends gr {
3674
+ class fr extends mr {
3654
3675
  /**
3655
3676
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3656
3677
  *
@@ -3665,7 +3686,7 @@ class mr extends gr {
3665
3686
  e && (this.kpp = e.kpp ?? "");
3666
3687
  }
3667
3688
  }
3668
- class ut extends mr {
3689
+ class pt extends fr {
3669
3690
  /**
3670
3691
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3671
3692
  *
@@ -3676,7 +3697,7 @@ class ut extends mr {
3676
3697
  /**
3677
3698
  * Страна регистрации юридического лица нерезидента.
3678
3699
  */
3679
- t(this, "registrationCountry", new Y());
3700
+ t(this, "registrationCountry", new Z());
3680
3701
  /**
3681
3702
  * Регистрационный номер юридического лица нерезидента.
3682
3703
  */
@@ -3685,7 +3706,7 @@ class ut extends mr {
3685
3706
  * Налоговый номер юридического лица нерезидента.
3686
3707
  */
3687
3708
  t(this, "taxNumber", "");
3688
- e && (this.registrationCountry = new Y(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3709
+ e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3689
3710
  }
3690
3711
  }
3691
3712
  class we {
@@ -3696,14 +3717,14 @@ class we {
3696
3717
  */
3697
3718
  static createInstance(r) {
3698
3719
  switch (r.opf.slug) {
3699
- case d.Ic:
3700
- return new gr(r);
3701
- case d.UlR:
3720
+ case k.Ic:
3702
3721
  return new mr(r);
3703
- case d.UlNr:
3704
- return new ut(r);
3705
- default:
3722
+ case k.UlR:
3723
+ return new fr(r);
3724
+ case k.UlNr:
3706
3725
  return new pt(r);
3726
+ default:
3727
+ return new ut(r);
3707
3728
  }
3708
3729
  }
3709
3730
  }
@@ -3722,7 +3743,7 @@ class _e extends M {
3722
3743
  this.isPrimary = e.isPrimary;
3723
3744
  }
3724
3745
  }
3725
- class ht extends j {
3746
+ class ht extends F {
3726
3747
  /**
3727
3748
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3728
3749
  *
@@ -3787,7 +3808,7 @@ class Ce extends Er {
3787
3808
  * Признак того, что указанный адрес является адресом транспортной компании.
3788
3809
  */
3789
3810
  t(this, "isTransportCompanyAddress");
3790
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new sr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new j(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;
3811
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ir(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3791
3812
  }
3792
3813
  }
3793
3814
  class Ee extends he {
@@ -3844,10 +3865,10 @@ class Ee extends he {
3844
3865
  * Дополнительные данные о клиенте.
3845
3866
  */
3846
3867
  t(this, "extraData");
3847
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new j(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new lr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ur(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 ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3868
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => we.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new ee(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 Ce(u))) ?? [], this.channelPrimaryInterest = new ur(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new hr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Y(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 ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3848
3869
  }
3849
3870
  }
3850
- class Jt {
3871
+ class Vt {
3851
3872
  /**
3852
3873
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3853
3874
  *
@@ -3942,11 +3963,11 @@ class Jt {
3942
3963
  * Данные о параметрах поиска последнего заказа который сделал пользователь.
3943
3964
  */
3944
3965
  t(this, "lastOrder");
3945
- var e, s, i, o, c, p;
3946
- 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((u) => new Fe(u)), this.region = new ce(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((u) => new Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(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((u) => new X(u)), this.contact = new xe(r == null ? void 0 : r.contact), this.lastOrder = {
3966
+ var e, s, i, o, c, u;
3967
+ 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 je(p)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Z(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = 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 Ae(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new N(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Y(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new ee(p)), this.contact = new xe(r == null ? void 0 : r.contact), this.lastOrder = {
3947
3968
  createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
3948
3969
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
3949
- isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
3970
+ isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
3950
3971
  };
3951
3972
  }
3952
3973
  /**
@@ -3993,10 +4014,10 @@ class Jt {
3993
4014
  this.salesDirections = [];
3994
4015
  break;
3995
4016
  case "contragentType":
3996
- this.contragentType = new F();
4017
+ this.contragentType = new j();
3997
4018
  break;
3998
4019
  case "preferredDeliveryType":
3999
- this.preferredDeliveryType = new K();
4020
+ this.preferredDeliveryType = new Y();
4000
4021
  break;
4001
4022
  case "partnerGroups":
4002
4023
  this.partnerGroups = [];
@@ -4015,13 +4036,13 @@ class Jt {
4015
4036
  var e, s, i, o;
4016
4037
  const r = {};
4017
4038
  return Object.keys(this).forEach((c) => {
4018
- const p = this[c];
4039
+ const u = this[c];
4019
4040
  // eslint-disable-next-line prettier/prettier
4020
- $(p) || w(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
4041
+ $(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
4021
4042
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
4022
4043
  }
4023
4044
  }
4024
- class fr extends M {
4045
+ class yr extends M {
4025
4046
  /**
4026
4047
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4027
4048
  *
@@ -4041,10 +4062,10 @@ class fr extends M {
4041
4062
  * Признак того, что заказ подтвержден в 1С.
4042
4063
  */
4043
4064
  t(this, "isApproved1c");
4044
- this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4065
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4045
4066
  }
4046
4067
  }
4047
- class gt extends T {
4068
+ class gt extends b {
4048
4069
  /**
4049
4070
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4050
4071
  *
@@ -4077,7 +4098,7 @@ class gt extends T {
4077
4098
  * Список менеджеров.
4078
4099
  */
4079
4100
  t(this, "managers");
4080
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new j(o))), e.lastOrder && (this.lastOrder = new fr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new X(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
4101
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new yr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new ee(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new Y(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new N(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
4081
4102
  }
4082
4103
  }
4083
4104
  class mt {
@@ -4170,7 +4191,7 @@ class Yt extends De {
4170
4191
  getClientsList(r, e, s, i) {
4171
4192
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4172
4193
  const c = { ...o.data };
4173
- return c.data = c.data.map((p) => new he(p)), c;
4194
+ return c.data = c.data.map((u) => new he(u)), c;
4174
4195
  });
4175
4196
  }
4176
4197
  /**
@@ -4183,7 +4204,7 @@ class Yt extends De {
4183
4204
  return this.getClientsList({
4184
4205
  groupOp: "and",
4185
4206
  groups: [],
4186
- filters: [{ field: "phone", op: je.Contains, value: r }]
4207
+ filters: [{ field: "phone", op: Fe.Contains, value: r }]
4187
4208
  });
4188
4209
  }
4189
4210
  /**
@@ -4349,16 +4370,16 @@ class Yt extends De {
4349
4370
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4350
4371
  */
4351
4372
  createContragentClientData(r, e, s = {}) {
4352
- var u, f, m, S, I, b, _, N;
4373
+ var p, f, m, A, d, I, _, S;
4353
4374
  let i;
4354
- const o = e, c = e, p = e;
4375
+ const o = e, c = e, u = e;
4355
4376
  switch (e.opf.slug) {
4356
- case d.Ic:
4377
+ case k.Ic:
4357
4378
  i = {
4358
4379
  opf: o.opf.slug,
4359
4380
  name: o.name,
4360
4381
  alternative_name: o.alternativeName,
4361
- partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
4382
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4362
4383
  manager_id: (f = o.manager) == null ? void 0 : f.id,
4363
4384
  comment: o.comment,
4364
4385
  inn: o.inn,
@@ -4371,13 +4392,13 @@ class Yt extends De {
4371
4392
  actual_address: o.actualAddress
4372
4393
  };
4373
4394
  break;
4374
- case d.UlR:
4395
+ case k.UlR:
4375
4396
  i = {
4376
4397
  opf: c.opf.slug,
4377
4398
  name: c.name,
4378
4399
  alternative_name: c.alternativeName,
4379
4400
  partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
4380
- manager_id: (S = c.manager) == null ? void 0 : S.id,
4401
+ manager_id: (A = c.manager) == null ? void 0 : A.id,
4381
4402
  comment: c.comment,
4382
4403
  inn: c.inn,
4383
4404
  kpp: c.kpp,
@@ -4390,23 +4411,23 @@ class Yt extends De {
4390
4411
  actual_address: c.actualAddress
4391
4412
  };
4392
4413
  break;
4393
- case d.UlNr:
4414
+ case k.UlNr:
4394
4415
  i = {
4395
- opf: p.opf.slug,
4396
- name: p.name,
4397
- alternative_name: p.alternativeName,
4398
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4399
- manager_id: (b = p.manager) == null ? void 0 : b.id,
4400
- comment: p.comment,
4401
- director_name: p.directorName,
4402
- director_position: p.directorPosition,
4403
- director_acts_on: p.directorActsOn,
4404
- legal_address: p.legalAddress,
4405
- postal_address: p.postalAddress,
4406
- actual_address: p.actualAddress,
4407
- registration_country_id: p.registrationCountry.id,
4408
- registration_number: p.registrationNumber,
4409
- tax_number: p.taxNumber || void 0
4416
+ opf: u.opf.slug,
4417
+ name: u.name,
4418
+ alternative_name: u.alternativeName,
4419
+ partner_group_id: (d = u.partnerGroup) == null ? void 0 : d.id,
4420
+ manager_id: (I = u.manager) == null ? void 0 : I.id,
4421
+ comment: u.comment,
4422
+ director_name: u.directorName,
4423
+ director_position: u.directorPosition,
4424
+ director_acts_on: u.directorActsOn,
4425
+ legal_address: u.legalAddress,
4426
+ postal_address: u.postalAddress,
4427
+ actual_address: u.actualAddress,
4428
+ registration_country_id: u.registrationCountry.id,
4429
+ registration_number: u.registrationNumber,
4430
+ tax_number: u.taxNumber || void 0
4410
4431
  };
4411
4432
  break;
4412
4433
  default:
@@ -4415,7 +4436,7 @@ class Yt extends De {
4415
4436
  name: e.name,
4416
4437
  alternative_name: e.alternativeName,
4417
4438
  partner_group_id: (_ = e.partnerGroup) == null ? void 0 : _.id,
4418
- manager_id: (N = e.manager) == null ? void 0 : N.id,
4439
+ manager_id: (S = e.manager) == null ? void 0 : S.id,
4419
4440
  comment: e.comment
4420
4441
  };
4421
4442
  break;
@@ -4438,16 +4459,16 @@ class Yt extends De {
4438
4459
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4439
4460
  */
4440
4461
  updateContragentClientData(r, e, s = {}) {
4441
- var u, f, m, S, I, b, _, N;
4462
+ var p, f, m, A, d, I, _, S;
4442
4463
  let i;
4443
- const o = e, c = e, p = e;
4464
+ const o = e, c = e, u = e;
4444
4465
  switch (e.opf.slug) {
4445
- case d.Ic:
4466
+ case k.Ic:
4446
4467
  i = {
4447
4468
  opf: o.opf.slug,
4448
4469
  name: o.name,
4449
4470
  alternative_name: o.alternativeName,
4450
- partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
4471
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4451
4472
  manager_id: (f = o.manager) == null ? void 0 : f.id,
4452
4473
  comment: o.comment,
4453
4474
  inn: o.inn,
@@ -4460,13 +4481,13 @@ class Yt extends De {
4460
4481
  actual_address: o.actualAddress
4461
4482
  };
4462
4483
  break;
4463
- case d.UlR:
4484
+ case k.UlR:
4464
4485
  i = {
4465
4486
  opf: c.opf.slug,
4466
4487
  name: c.name,
4467
4488
  alternative_name: c.alternativeName,
4468
4489
  partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
4469
- manager_id: (S = c.manager) == null ? void 0 : S.id,
4490
+ manager_id: (A = c.manager) == null ? void 0 : A.id,
4470
4491
  comment: c.comment,
4471
4492
  inn: c.inn,
4472
4493
  kpp: c.kpp,
@@ -4479,23 +4500,23 @@ class Yt extends De {
4479
4500
  actual_address: c.actualAddress
4480
4501
  };
4481
4502
  break;
4482
- case d.UlNr:
4503
+ case k.UlNr:
4483
4504
  i = {
4484
- opf: p.opf.slug,
4485
- name: p.name,
4486
- alternative_name: p.alternativeName,
4487
- partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4488
- manager_id: (b = p.manager) == null ? void 0 : b.id,
4489
- comment: p.comment,
4490
- director_name: p.directorName,
4491
- director_position: p.directorPosition,
4492
- director_acts_on: p.directorActsOn,
4493
- legal_address: p.legalAddress,
4494
- postal_address: p.postalAddress,
4495
- actual_address: p.actualAddress,
4496
- registration_country_id: p.registrationCountry.id,
4497
- registration_number: p.registrationNumber,
4498
- tax_number: p.taxNumber || void 0
4505
+ opf: u.opf.slug,
4506
+ name: u.name,
4507
+ alternative_name: u.alternativeName,
4508
+ partner_group_id: (d = u.partnerGroup) == null ? void 0 : d.id,
4509
+ manager_id: (I = u.manager) == null ? void 0 : I.id,
4510
+ comment: u.comment,
4511
+ director_name: u.directorName,
4512
+ director_position: u.directorPosition,
4513
+ director_acts_on: u.directorActsOn,
4514
+ legal_address: u.legalAddress,
4515
+ postal_address: u.postalAddress,
4516
+ actual_address: u.actualAddress,
4517
+ registration_country_id: u.registrationCountry.id,
4518
+ registration_number: u.registrationNumber,
4519
+ tax_number: u.taxNumber || void 0
4499
4520
  };
4500
4521
  break;
4501
4522
  default:
@@ -4504,7 +4525,7 @@ class Yt extends De {
4504
4525
  name: e.name,
4505
4526
  alternative_name: e.alternativeName,
4506
4527
  partner_group_id: (_ = e.partnerGroup) == null ? void 0 : _.id,
4507
- manager_id: (N = e.manager) == null ? void 0 : N.id,
4528
+ manager_id: (S = e.manager) == null ? void 0 : S.id,
4508
4529
  comment: e.comment
4509
4530
  };
4510
4531
  break;
@@ -4550,7 +4571,7 @@ class Yt extends De {
4550
4571
  }), e.operatingHours && (i.operating_hours = {
4551
4572
  from: e.operatingHours.from,
4552
4573
  to: e.operatingHours.to
4553
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new Ce(p.data), s);
4574
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new Ce(u.data), s);
4554
4575
  }
4555
4576
  /**
4556
4577
  * Обновляет данные об адресе доставки клиента.
@@ -4579,7 +4600,7 @@ class Yt extends De {
4579
4600
  }), this.patch(
4580
4601
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4581
4602
  i,
4582
- (p) => new Ce(p.data),
4603
+ (u) => new Ce(u.data),
4583
4604
  s
4584
4605
  );
4585
4606
  }
@@ -4615,7 +4636,7 @@ class Yt extends De {
4615
4636
  correspondent_account: s.correspondentAccount,
4616
4637
  currency_id: s.currency.id
4617
4638
  },
4618
- (o) => new ke(o.data),
4639
+ (o) => new Le(o.data),
4619
4640
  i
4620
4641
  );
4621
4642
  }
@@ -4641,7 +4662,7 @@ class Yt extends De {
4641
4662
  correspondent_account: s.correspondentAccount,
4642
4663
  currency_id: s.currency.id
4643
4664
  },
4644
- (o) => new ke(o.data),
4665
+ (o) => new Le(o.data),
4645
4666
  i
4646
4667
  );
4647
4668
  }
@@ -4702,7 +4723,7 @@ class Yt extends De {
4702
4723
  comment: e.comment,
4703
4724
  not_disturb: e.notDisturb
4704
4725
  },
4705
- (i) => new j(i.data),
4726
+ (i) => new F(i.data),
4706
4727
  s
4707
4728
  );
4708
4729
  }
@@ -4838,14 +4859,14 @@ class Yt extends De {
4838
4859
  * в случае ошибок в запросах.
4839
4860
  */
4840
4861
  createContact(r, e, s, i = {}) {
4841
- var c, p;
4862
+ var c, u;
4842
4863
  const o = {
4843
4864
  name: e.name,
4844
4865
  position: e.position,
4845
4866
  comment: e.comment,
4846
4867
  ...s
4847
4868
  };
4848
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (u) => new j(u.data), i);
4869
+ 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);
4849
4870
  }
4850
4871
  /**
4851
4872
  * Устанавливает признак основного контактного лица.
@@ -4874,7 +4895,7 @@ class Yt extends De {
4874
4895
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4875
4896
  }
4876
4897
  }
4877
- const E = class E extends h {
4898
+ const J = class J extends h {
4878
4899
  /**
4879
4900
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
4880
4901
  */
@@ -4884,7 +4905,7 @@ const E = class E extends h {
4884
4905
  * Время кэширования данных ответов на запросы (секунд).
4885
4906
  */
4886
4907
  t(this, "responseDataCacheTimeout");
4887
- this.responseDataCacheTimeout = D.getConfig().http.responseDataCacheTimeout;
4908
+ this.responseDataCacheTimeout = T.getConfig().http.responseDataCacheTimeout;
4888
4909
  }
4889
4910
  /**
4890
4911
  * Возвращает кэшированные данные.
@@ -4894,7 +4915,7 @@ const E = class E extends h {
4894
4915
  */
4895
4916
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
4896
4917
  static getCachedResponse(e) {
4897
- const s = E.responseDataCache.get(e);
4918
+ const s = J.responseDataCache.get(e);
4898
4919
  if (s && s.validTo > /* @__PURE__ */ new Date())
4899
4920
  return s.val;
4900
4921
  }
@@ -4905,8 +4926,8 @@ const E = class E extends h {
4905
4926
  * @param data Данные для кэширования.
4906
4927
  */
4907
4928
  cacheResponse(e, s) {
4908
- E.responseDataCache.set(e, {
4909
- validTo: Ir(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4929
+ J.responseDataCache.set(e, {
4930
+ validTo: dr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4910
4931
  val: s
4911
4932
  });
4912
4933
  }
@@ -4921,9 +4942,9 @@ const E = class E extends h {
4921
4942
  */
4922
4943
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
4923
4944
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
4924
- const c = s + (Pe(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? E.getCachedResponse(c) : void 0;
4925
- return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
4926
- const f = u.map((m) => Ue.instanceInitializer(e, m));
4945
+ const c = s + (Pe(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? J.getCachedResponse(c) : void 0;
4946
+ return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
4947
+ const f = p.map((m) => Ue.instanceInitializer(e, m));
4927
4948
  return i && f && this.cacheResponse(s, f), f;
4928
4949
  });
4929
4950
  }
@@ -4931,8 +4952,8 @@ const E = class E extends h {
4931
4952
  /**
4932
4953
  * Кэш результатов запросов.
4933
4954
  */
4934
- t(E, "responseDataCache", /* @__PURE__ */ new Map());
4935
- let pe = E;
4955
+ t(J, "responseDataCache", /* @__PURE__ */ new Map());
4956
+ let ue = J;
4936
4957
  class Xt extends h {
4937
4958
  /**
4938
4959
  * Выполняет проверку занят ли указанный номер телефона.
@@ -4975,7 +4996,7 @@ class Zt extends h {
4975
4996
  const i = this.get(
4976
4997
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
4977
4998
  { params: e },
4978
- (c) => new k(c.data)
4999
+ (c) => new x(c.data)
4979
5000
  );
4980
5001
  return i.catch((c) => {
4981
5002
  this.errorResponseHandler(c, s);
@@ -5023,13 +5044,13 @@ class es {
5023
5044
  * Возвращает диапазон дат по умолчанию.
5024
5045
  */
5025
5046
  static defaultDateRanges() {
5026
- const r = dr(/* @__PURE__ */ new Date(), 1);
5047
+ const r = Ir(/* @__PURE__ */ new Date(), 1);
5027
5048
  return {
5028
5049
  // 'Следующий рабочий день' - это значение по-умолчанию
5029
5050
  nextWorkingDay: { label: "Следующий рабочий день", from: Ur(r), to: qr(r) },
5030
- today: { label: "Сегодня", from: er(), to: Or() },
5051
+ today: { label: "Сегодня", from: rr(), to: Or() },
5031
5052
  yesterday: { label: "Вчера", from: Nr(), to: xr() },
5032
- tomorrow: { label: "Завтра", from: kr(), to: Lr() }
5053
+ tomorrow: { label: "Завтра", from: Lr(), to: kr() }
5033
5054
  };
5034
5055
  }
5035
5056
  }
@@ -5073,7 +5094,7 @@ const V = class V {
5073
5094
  * Список единиц измерения линейной величины.
5074
5095
  */
5075
5096
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5076
- let Ve = V;
5097
+ let Je = V;
5077
5098
  class rs {
5078
5099
  /**
5079
5100
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
@@ -5090,26 +5111,26 @@ class rs {
5090
5111
  return r.id === 0 && r.guid === "-undefined-";
5091
5112
  }
5092
5113
  }
5093
- class ft extends pe {
5114
+ class ft extends ue {
5094
5115
  /**
5095
5116
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5096
5117
  */
5097
5118
  async getManagers() {
5098
- const r = "/internal/managers", e = pe.getCachedResponse(r);
5119
+ const r = "/internal/managers", e = ue.getCachedResponse(r);
5099
5120
  if (e)
5100
5121
  return e;
5101
5122
  const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(Ae, o));
5102
5123
  return this.cacheResponse(r, i), i;
5103
5124
  }
5104
5125
  }
5105
- class yr extends fr {
5126
+ class wr extends yr {
5106
5127
  /**
5107
5128
  * Инициализирует экземпляр класса {@link OrderInfo}.
5108
5129
  *
5109
5130
  * @param data Данные для первоначальной инициализации.
5110
5131
  */
5111
5132
  constructor(e) {
5112
- var s, i, o, c, p, u, f, m;
5133
+ var s, i, o, c, u, p, f, m;
5113
5134
  super(e);
5114
5135
  /**
5115
5136
  * Краткие данные о клиенте.
@@ -5157,10 +5178,10 @@ class yr extends fr {
5157
5178
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5158
5179
  }, this.delivery = {
5159
5180
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5160
- date: w((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? v(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
5181
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5161
5182
  address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Ce(e.delivery.address) : void 0,
5162
5183
  warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new ae(e.delivery.warehouse) : void 0
5163
- }, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = w(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(e == null ? void 0 : e.processedAt) ? v(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;
5184
+ }, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new N(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(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;
5164
5185
  }
5165
5186
  }
5166
5187
  class yt extends M {
@@ -5243,10 +5264,10 @@ class yt extends M {
5243
5264
  * который соответствует указанной ширине. Количество не ограничено.
5244
5265
  */
5245
5266
  t(this, "sawing");
5246
- 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;
5267
+ this.product = new X(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;
5247
5268
  }
5248
5269
  }
5249
- class wt extends yr {
5270
+ class wt extends wr {
5250
5271
  /**
5251
5272
  * Инициализирует экземпляр класса {@link Order}.
5252
5273
  *
@@ -5302,7 +5323,7 @@ class ts extends De {
5302
5323
  getOrders(r, e, s) {
5303
5324
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5304
5325
  const o = { ...i.data };
5305
- return o.data = o.data.map((c) => new yr(c)), o;
5326
+ return o.data = o.data.map((c) => new wr(c)), o;
5306
5327
  });
5307
5328
  }
5308
5329
  /**
@@ -5350,12 +5371,12 @@ class Se {
5350
5371
  * Источник клиентской цены.
5351
5372
  */
5352
5373
  t(this, "source");
5353
- this.client = new he(r == null ? void 0 : r.client), this.product = new k(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) ?? Ge.Product;
5374
+ this.client = new he(r == null ? void 0 : r.client), this.product = new x(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) ?? Ge.Product;
5354
5375
  }
5355
5376
  }
5356
- const Ie = (n) => {
5377
+ const de = (n) => {
5357
5378
  var r, e, s, i, o;
5358
- return n ? Xe(
5379
+ return n ? Ze(
5359
5380
  {
5360
5381
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5361
5382
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5364,9 +5385,9 @@ const Ie = (n) => {
5364
5385
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5365
5386
  hideNotActive: n.hideNotActive
5366
5387
  },
5367
- (c) => $(c) || (J(c) || Ze(c)) && Pe(c)
5388
+ (c) => $(c) || (K(c) || er(c)) && Pe(c)
5368
5389
  ) : {};
5369
- }, Je = (n) => {
5390
+ }, Ve = (n) => {
5370
5391
  const r = {};
5371
5392
  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;
5372
5393
  };
@@ -5384,8 +5405,8 @@ class ss extends h {
5384
5405
  return this.get(
5385
5406
  `/internal/price/products/${r}/analyze`,
5386
5407
  {
5387
- ...Je(e),
5388
- filters: Ie(s)
5408
+ ...Ve(e),
5409
+ filters: de(s)
5389
5410
  },
5390
5411
  (i) => i.data.map((o) => new Se(o))
5391
5412
  );
@@ -5403,8 +5424,8 @@ class ss extends h {
5403
5424
  return this.get(
5404
5425
  `/internal/price/categories/${r}/analyze`,
5405
5426
  {
5406
- ...Je(e),
5407
- filters: Ie(s)
5427
+ ...Ve(e),
5428
+ filters: de(s)
5408
5429
  },
5409
5430
  (i) => i.data.map((o) => new Se(o))
5410
5431
  );
@@ -5425,7 +5446,7 @@ class ss extends h {
5425
5446
  `/internal/price/categories/${r}/analyze/square`,
5426
5447
  {
5427
5448
  ...e,
5428
- filters: Ie(s)
5449
+ filters: de(s)
5429
5450
  },
5430
5451
  (i) => i.data.map((o) => new Se(o))
5431
5452
  );
@@ -5478,7 +5499,7 @@ class Ct {
5478
5499
  * @inheritDoc
5479
5500
  */
5480
5501
  t(this, "currency");
5481
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = w(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(r.product) : void 0, 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 ye(r.currency) : void 0;
5502
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(r.product) : void 0, 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 ye(r.currency) : void 0;
5482
5503
  }
5483
5504
  }
5484
5505
  class vt extends ne {
@@ -5505,15 +5526,15 @@ class is extends h {
5505
5526
  * @see /docs/api#/operations/api_internal_price_history_get
5506
5527
  */
5507
5528
  getProductPriceHistory(r) {
5508
- var o, c, p, u, f;
5509
- const e = D.getConfig().dateFormats.api, s = Xe(
5529
+ var o, c, u, p, f;
5530
+ const e = T.getConfig().dateFormats.api, s = Ze(
5510
5531
  me(r, {
5511
5532
  costDate: {
5512
- from: de((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5513
- to: de((p = r.costDate) == null ? void 0 : p.to) ? q(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
5533
+ from: Ie((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5534
+ to: Ie((u = r.costDate) == null ? void 0 : u.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
5514
5535
  }
5515
5536
  }),
5516
- (m) => $(m) || (J(m) || Ze(m)) && Pe(m)
5537
+ (m) => $(m) || (K(m) || er(m)) && Pe(m)
5517
5538
  ), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
5518
5539
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
5519
5540
  new vt(me(m[0], { history: m }))
@@ -5584,7 +5605,7 @@ class ns extends h {
5584
5605
  });
5585
5606
  }
5586
5607
  }
5587
- class A extends pe {
5608
+ class D extends ue {
5588
5609
  /**
5589
5610
  * Возвращает {@link Promise} для получения данных указанного справочника.
5590
5611
  *
@@ -5600,7 +5621,7 @@ class A extends pe {
5600
5621
  * первичного интереса.
5601
5622
  */
5602
5623
  getChannelPrimaryInterest() {
5603
- return this.getTypedDataArrayRequester(lr, "/internal/references/channel-primary-interest", !0);
5624
+ return this.getTypedDataArrayRequester(ur, "/internal/references/channel-primary-interest", !0);
5604
5625
  }
5605
5626
  /**
5606
5627
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -5619,13 +5640,13 @@ class A extends pe {
5619
5640
  * групп партнеров (направлений деятельности).
5620
5641
  */
5621
5642
  getPartnerGroup() {
5622
- return this.getTypedDataArrayRequester(X, "/internal/references/partner-group", !0);
5643
+ return this.getTypedDataArrayRequester(ee, "/internal/references/partner-group", !0);
5623
5644
  }
5624
5645
  /**
5625
5646
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
5626
5647
  */
5627
5648
  getOpf() {
5628
- return this.getTypedDataArrayRequester(F, "/public/references/opf", !0);
5649
+ return this.getTypedDataArrayRequester(j, "/public/references/opf", !0);
5629
5650
  }
5630
5651
  /**
5631
5652
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -5655,13 +5676,13 @@ class A extends pe {
5655
5676
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5656
5677
  */
5657
5678
  getSalesDirections() {
5658
- return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
5679
+ return this.getTypedDataArrayRequester(N, "/public/references/sales-direction", !0);
5659
5680
  }
5660
5681
  /**
5661
5682
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5662
5683
  */
5663
5684
  getSourcePrimaryInterest() {
5664
- return this.getTypedDataArrayRequester(ur, "/internal/references/source-primary-interest", !0);
5685
+ return this.getTypedDataArrayRequester(hr, "/internal/references/source-primary-interest", !0);
5665
5686
  }
5666
5687
  /**
5667
5688
  * Выполняет поиск данных о городах по терму в названии.
@@ -5669,7 +5690,7 @@ class A extends pe {
5669
5690
  * @param term Терм поиска.
5670
5691
  */
5671
5692
  searchCity(r) {
5672
- return this.getTypedDataArrayRequester(Fe, `/internal/references/city-with-region-and-country/search?term=${r}`);
5693
+ return this.getTypedDataArrayRequester(je, `/internal/references/city-with-region-and-country/search?term=${r}`);
5673
5694
  }
5674
5695
  /**
5675
5696
  * Выполняет поиск данных о регионах по терму в названии.
@@ -5685,13 +5706,13 @@ class A extends pe {
5685
5706
  * @param term Терм поиска.
5686
5707
  */
5687
5708
  searchCountry(r) {
5688
- return this.getTypedDataArrayRequester(Y, `/internal/references/country/search?term=${r}`);
5709
+ return this.getTypedDataArrayRequester(Z, `/internal/references/country/search?term=${r}`);
5689
5710
  }
5690
5711
  /**
5691
5712
  * Возвращает {@link Promise} для получения справочника типов доставки.
5692
5713
  */
5693
5714
  getDeliveryTypes() {
5694
- return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
5715
+ return this.getTypedDataArrayRequester(Y, "/internal/references/delivery-type", !0);
5695
5716
  }
5696
5717
  /**
5697
5718
  * Возвращает {@link Promise} для получения справочника складов.
@@ -5703,7 +5724,7 @@ class A extends pe {
5703
5724
  * Возвращает {@link Promise} для получения справочника типов свойств.
5704
5725
  */
5705
5726
  getPropertyTypes() {
5706
- return this.getTypedDataArrayRequester(cr, "/internal/references/property-type", !0);
5727
+ return this.getTypedDataArrayRequester(lr, "/internal/references/property-type", !0);
5707
5728
  }
5708
5729
  /**
5709
5730
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -5718,8 +5739,8 @@ class A extends pe {
5718
5739
  return this.getTypedDataArrayRequester(lt, "/public/references/product-file-type", !0);
5719
5740
  }
5720
5741
  }
5721
- const a = Z("__references_private", () => {
5722
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), p = y(void 0), u = y(void 0), f = y(void 0), m = y(void 0), S = y(void 0), I = y(void 0), b = y(void 0), _ = y(void 0), N = y(void 0), U = y(void 0), l = y(void 0);
5742
+ const a = re("__references_private", () => {
5743
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), A = y(void 0), d = y(void 0), I = y(void 0), _ = y(void 0), S = y(void 0), U = y(void 0), l = y(void 0);
5723
5744
  return {
5724
5745
  /**
5725
5746
  * Список загружаемых/загруженных на данный момент значений.
@@ -5752,11 +5773,11 @@ const a = Z("__references_private", () => {
5752
5773
  /**
5753
5774
  * Справочник статусов оплаты заказа.
5754
5775
  */
5755
- orderPaymentStatusReference: p,
5776
+ orderPaymentStatusReference: u,
5756
5777
  /**
5757
5778
  * Справочник статусов заказов.
5758
5779
  */
5759
- orderStatusReference: u,
5780
+ orderStatusReference: p,
5760
5781
  /**
5761
5782
  * Справочник типов оплаты заказов.
5762
5783
  */
@@ -5768,15 +5789,15 @@ const a = Z("__references_private", () => {
5768
5789
  /**
5769
5790
  * Справочник типов файлов продукктов/категорий.
5770
5791
  */
5771
- productFileTypeReference: S,
5792
+ productFileTypeReference: A,
5772
5793
  /**
5773
5794
  * Справочник типов ресурсов.
5774
5795
  */
5775
- resourceTypesReference: I,
5796
+ resourceTypesReference: d,
5776
5797
  /**
5777
5798
  * Справочник направлений продаж.
5778
5799
  */
5779
- salesDirectionsReference: b,
5800
+ salesDirectionsReference: I,
5780
5801
  /**
5781
5802
  * Справочник источников первичного интереса.
5782
5803
  */
@@ -5784,7 +5805,7 @@ const a = Z("__references_private", () => {
5784
5805
  /**
5785
5806
  * Справочник складов.
5786
5807
  */
5787
- warehousesReference: N,
5808
+ warehousesReference: S,
5788
5809
  /**
5789
5810
  * Справочник типов свойств.
5790
5811
  */
@@ -5794,92 +5815,92 @@ const a = Z("__references_private", () => {
5794
5815
  */
5795
5816
  priceCoefficientsReference: l
5796
5817
  };
5797
- }), os = Z("references", () => {
5818
+ }), os = re("references", () => {
5798
5819
  const n = R(() => {
5799
5820
  const l = a();
5800
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
5821
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(D).getChannelPrimaryInterest().then((g) => {
5801
5822
  l.channelPrimaryInterestReference = g;
5802
- }).catch(C)), l.channelPrimaryInterestReference;
5823
+ }).catch(w)), l.channelPrimaryInterestReference;
5803
5824
  }), r = R(() => {
5804
5825
  const l = a();
5805
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
5826
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(D).getContactPositions().then((g) => {
5806
5827
  l.contactPositionsReference = g;
5807
- }).catch(C)), l.contactPositionsReference;
5828
+ }).catch(w)), l.contactPositionsReference;
5808
5829
  }), e = R(() => {
5809
5830
  const l = a();
5810
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
5831
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(D).getCurrency().then((g) => {
5811
5832
  l.currencyReference = g;
5812
- }).catch(C)), l.currencyReference;
5833
+ }).catch(w)), l.currencyReference;
5813
5834
  }), s = R(() => {
5814
5835
  const l = a();
5815
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
5836
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(D).getOpf().then((g) => {
5816
5837
  l.opfReference = g;
5817
- }).catch(C)), l.opfReference;
5838
+ }).catch(w)), l.opfReference;
5818
5839
  }), i = R(() => {
5819
5840
  const l = a();
5820
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
5841
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(D).getOrderPaymentStatuses().then((g) => {
5821
5842
  l.orderPaymentStatusReference = g;
5822
- }).catch(C)), l.orderPaymentStatusReference;
5843
+ }).catch(w)), l.orderPaymentStatusReference;
5823
5844
  }), o = R(() => {
5824
5845
  const l = a();
5825
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
5846
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(D).getOrderStatuses().then((g) => {
5826
5847
  l.orderStatusReference = g;
5827
- }).catch(C)), l.orderStatusReference;
5848
+ }).catch(w)), l.orderStatusReference;
5828
5849
  }), c = R(() => {
5829
5850
  const l = a();
5830
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
5851
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(D).getPaymentTypes().then((g) => {
5831
5852
  l.paymentTypeReference = g;
5832
- }).catch(C)), l.paymentTypeReference;
5833
- }), p = R(() => {
5853
+ }).catch(w)), l.paymentTypeReference;
5854
+ }), u = R(() => {
5834
5855
  const l = a();
5835
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
5856
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(D).getPartnerGroup().then((g) => {
5836
5857
  l.partnerGroupReference = g;
5837
- }).catch(C)), l.partnerGroupReference;
5838
- }), u = R(() => {
5858
+ }).catch(w)), l.partnerGroupReference;
5859
+ }), p = R(() => {
5839
5860
  const l = a();
5840
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
5861
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(D).getProductFileType().then((g) => {
5841
5862
  l.productFileTypeReference = g;
5842
- }).catch(C)), l.productFileTypeReference;
5863
+ }).catch(w)), l.productFileTypeReference;
5843
5864
  }), f = R(() => {
5844
5865
  const l = a();
5845
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
5866
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(D).getResourceTypes().then((g) => {
5846
5867
  l.resourceTypesReference = g;
5847
- }).catch(C)), l.resourceTypesReference;
5868
+ }).catch(w)), l.resourceTypesReference;
5848
5869
  }), m = R(() => {
5849
5870
  const l = a();
5850
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
5871
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(D).getSalesDirections().then((g) => {
5851
5872
  l.salesDirectionsReference = g;
5852
- }).catch(C)), l.salesDirectionsReference;
5853
- }), S = R(() => {
5873
+ }).catch(w)), l.salesDirectionsReference;
5874
+ }), A = R(() => {
5854
5875
  const l = a();
5855
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
5876
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(D).getSourcePrimaryInterest().then((g) => {
5856
5877
  l.sourcePrimaryInterestReference = g;
5857
- }).catch(C)), l.sourcePrimaryInterestReference;
5858
- }), I = R(() => {
5878
+ }).catch(w)), l.sourcePrimaryInterestReference;
5879
+ }), d = R(() => {
5859
5880
  const l = a();
5860
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
5881
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(D).getDeliveryTypes().then((g) => {
5861
5882
  l.deliveryTypeReference = g;
5862
- }).catch(C)), l.deliveryTypeReference;
5863
- }), b = R(() => {
5883
+ }).catch(w)), l.deliveryTypeReference;
5884
+ }), I = R(() => {
5864
5885
  const l = a();
5865
5886
  return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ft).getManagers().then((g) => {
5866
5887
  l.managersList = g;
5867
- }).catch(C)), l.managersList;
5888
+ }).catch(w)), l.managersList;
5868
5889
  }), _ = R(() => {
5869
5890
  const l = a();
5870
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
5891
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(D).getWarehouses().then((g) => {
5871
5892
  l.warehousesReference = g;
5872
- }).catch(C)), l.warehousesReference;
5873
- }), N = R(() => {
5893
+ }).catch(w)), l.warehousesReference;
5894
+ }), S = R(() => {
5874
5895
  const l = a();
5875
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
5896
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(D).getPropertyTypes().then((g) => {
5876
5897
  l.propertyTypesReference = g;
5877
- }).catch(C)), l.propertyTypesReference;
5898
+ }).catch(w)), l.propertyTypesReference;
5878
5899
  }), U = R(() => {
5879
5900
  const l = a();
5880
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
5901
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(D).getPriceCoefficients().then((g) => {
5881
5902
  l.priceCoefficientsReference = g;
5882
- }).catch(C)), l.priceCoefficientsReference;
5903
+ }).catch(w)), l.priceCoefficientsReference;
5883
5904
  });
5884
5905
  return {
5885
5906
  /**
@@ -5913,11 +5934,11 @@ const a = Z("__references_private", () => {
5913
5934
  /**
5914
5935
  * Справочник групп партнеров.
5915
5936
  */
5916
- partnerGroupsReference: p,
5937
+ partnerGroupsReference: u,
5917
5938
  /**
5918
5939
  * Справочник типов файлов продуктов/категорий.
5919
5940
  */
5920
- productFilesTypesReference: u,
5941
+ productFilesTypesReference: p,
5921
5942
  /**
5922
5943
  * Справочник типов ресурсов.
5923
5944
  */
@@ -5929,15 +5950,15 @@ const a = Z("__references_private", () => {
5929
5950
  /**
5930
5951
  * Справочник каналов первичного интереса.
5931
5952
  */
5932
- sourcePrimaryInterestsReference: S,
5953
+ sourcePrimaryInterestsReference: A,
5933
5954
  /**
5934
5955
  * Справочник типов доставки.
5935
5956
  */
5936
- deliveryTypeReference: I,
5957
+ deliveryTypeReference: d,
5937
5958
  /**
5938
5959
  * Список менеджеров.
5939
5960
  */
5940
- managersList: b,
5961
+ managersList: I,
5941
5962
  /**
5942
5963
  * Справочник складов.
5943
5964
  */
@@ -5945,7 +5966,7 @@ const a = Z("__references_private", () => {
5945
5966
  /**
5946
5967
  * Справочник типов свойств.
5947
5968
  */
5948
- propertyTypesReference: N,
5969
+ propertyTypesReference: S,
5949
5970
  /**
5950
5971
  * Справочник коэффициентов цен.
5951
5972
  */
@@ -6088,7 +6109,7 @@ class ls extends h {
6088
6109
  }
6089
6110
  }
6090
6111
  var Rt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Rt || {});
6091
- class at extends or {
6112
+ class at extends cr {
6092
6113
  /**
6093
6114
  * Инициализирует экземпляр класса {@link User}.
6094
6115
  *
@@ -6111,12 +6132,12 @@ class at extends or {
6111
6132
  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;
6112
6133
  }
6113
6134
  }
6114
- class ps extends h {
6135
+ class us extends h {
6115
6136
  /**
6116
6137
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6117
6138
  */
6118
6139
  constructor() {
6119
- super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6140
+ super(), this.baseUrl = `${T.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6120
6141
  }
6121
6142
  /**
6122
6143
  * Функция для получения обновленных токенов доступа.
@@ -6136,7 +6157,7 @@ class At extends h {
6136
6157
  return this.get("/internal/users/info", {}, (r) => new at(r.data));
6137
6158
  }
6138
6159
  }
6139
- const Dt = Z("__user_state_private", () => {
6160
+ const Dt = re("__user_state_private", () => {
6140
6161
  const n = y({}), r = y(void 0);
6141
6162
  return {
6142
6163
  /**
@@ -6148,7 +6169,7 @@ const Dt = Z("__user_state_private", () => {
6148
6169
  */
6149
6170
  currentUser: r
6150
6171
  };
6151
- }), us = Z("user_state", () => ({
6172
+ }), ps = re("user_state", () => ({
6152
6173
  /**
6153
6174
  * Данные о текущем пользователе.
6154
6175
  */
@@ -6156,7 +6177,7 @@ const Dt = Z("__user_state_private", () => {
6156
6177
  const r = Dt();
6157
6178
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
6158
6179
  r.currentUser = e;
6159
- }).catch(C).finally(() => {
6180
+ }).catch(w).finally(() => {
6160
6181
  r.dataLoaderList.currentUser = !1;
6161
6182
  })), r.currentUser;
6162
6183
  })
@@ -6187,8 +6208,8 @@ class hs {
6187
6208
  export {
6188
6209
  st as AnyReference,
6189
6210
  qt as AppBaseConfig,
6190
- D as AppConfigProvider,
6191
- ke as BankAccount,
6211
+ T as AppConfigProvider,
6212
+ Le as BankAccount,
6192
6213
  De as BasePaginationProvider,
6193
6214
  zr as CalculationTypeEnum,
6194
6215
  ge as Cart,
@@ -6196,40 +6217,40 @@ export {
6196
6217
  Hr as CartItemBase,
6197
6218
  xt as CartProvider,
6198
6219
  Ut as CatalogProvider,
6199
- rr as CatalogableItem,
6200
- B as Category,
6220
+ tr as CatalogableItem,
6221
+ z as Category,
6201
6222
  He as CategoryPricingRule,
6202
- lr as ChannelPrimaryInterest,
6203
- Vt as City,
6204
- Fe as CityWithRegionAndCountry,
6223
+ ur as ChannelPrimaryInterest,
6224
+ Jt as City,
6225
+ je as CityWithRegionAndCountry,
6205
6226
  Ee as Client,
6206
6227
  gt as ClientAdditionalData,
6207
6228
  fe as ClientCategory,
6208
6229
  Yt as ClientDataProvider,
6209
6230
  Gt as ClientPriceProvider,
6210
- Ft as ClientPriceTemplateProvider,
6211
- Q as ClientProduct,
6231
+ jt as ClientPriceTemplateProvider,
6232
+ X as ClientProduct,
6212
6233
  Ht as ClientProductCategoryDataProvider,
6213
6234
  Bt as ClientProductDataProvider,
6214
6235
  he as ClientShortInfo,
6215
6236
  tt as ClientsAdditionalDataRequestTypeEnum,
6216
- Jt as ClientsListFilters,
6237
+ Vt as ClientsListFilters,
6217
6238
  ne as CodedIdentity,
6218
6239
  Zt as ConfiguratorProvider,
6219
6240
  xe as Contact,
6220
- Jr as ContactLinks,
6221
- j as ContactPerson,
6241
+ Vr as ContactLinks,
6242
+ F as ContactPerson,
6222
6243
  ht as ContactPersonRelated,
6223
6244
  it as ContactPosition,
6224
6245
  _e as ContactRelation,
6225
- hr as ContragentBase,
6246
+ gr as ContragentBase,
6226
6247
  we as ContragentFactory,
6227
- gr as ContragentIc,
6228
- pt as ContragentPerson,
6229
- ut as ContragentUlNr,
6230
- mr as ContragentUlR,
6248
+ mr as ContragentIc,
6249
+ ut as ContragentPerson,
6250
+ pt as ContragentUlNr,
6251
+ fr as ContragentUlR,
6231
6252
  Ge as CostSourceEnum,
6232
- Y as Country,
6253
+ Z as Country,
6233
6254
  ye as Currency,
6234
6255
  ls as DataSuggestionProvider,
6235
6256
  Kt as DataTablePagination,
@@ -6238,86 +6259,86 @@ export {
6238
6259
  es as DateTimeProvider,
6239
6260
  Er as DeletableNamedIdentity,
6240
6261
  Ce as DeliveryAddress,
6241
- K as DeliveryType,
6242
- kt as DetailedJwtPayload,
6262
+ Y as DeliveryType,
6263
+ Lt as DetailedJwtPayload,
6243
6264
  Yr as DeviceTypeResolutionConfig,
6244
- Vr as DiscountShortInfo,
6265
+ Jr as DiscountShortInfo,
6245
6266
  hs as FieldValidationResultData,
6246
6267
  le as FilterGroup,
6247
6268
  Be as FilterItem,
6248
- je as FilterOpEnum,
6249
- sr as GeoCoordinates,
6250
- jr as HiddenCatalogableItem,
6251
- pe as HttpCachedRequester,
6269
+ Fe as FilterOpEnum,
6270
+ ir as GeoCoordinates,
6271
+ Fr as HiddenCatalogableItem,
6272
+ ue as HttpCachedRequester,
6252
6273
  Xr as HttpParamsConfig,
6253
6274
  h as HttpRequester,
6254
6275
  M as Identity,
6255
6276
  Mr as Image,
6256
- ie as JwtPayload,
6277
+ Q as JwtPayload,
6257
6278
  Ae as Manager,
6258
6279
  oe as ManagerCommon,
6259
6280
  rs as ManagerDataFactory,
6260
6281
  ft as ManagerDataProvider,
6261
6282
  Pt as MetaTagItem,
6262
- T as NamedIdentity,
6263
- F as Opf,
6264
- d as OpfEnum,
6283
+ b as NamedIdentity,
6284
+ j as Opf,
6285
+ k as OpfEnum,
6265
6286
  wt as Order,
6266
- yr as OrderInfo,
6287
+ wr as OrderInfo,
6267
6288
  nt as OrderPaymentStatus,
6268
6289
  yt as OrderProduct,
6269
- fr as OrderShortInfo,
6290
+ yr as OrderShortInfo,
6270
6291
  ot as OrderStatus,
6271
6292
  ts as OrdersDataProvider,
6272
- X as PartnerGroup,
6293
+ ee as PartnerGroup,
6273
6294
  ct as PaymentType,
6274
6295
  Nt as PreferencesStorageProvider,
6275
6296
  Se as PriceAnalyze,
6276
6297
  ss as PriceAnalyzeProvider,
6277
6298
  Re as PriceCoefficient,
6278
- tr as PriceCoefficientEnum,
6299
+ sr as PriceCoefficientEnum,
6279
6300
  is as PriceHistoryDataProvider,
6280
6301
  Ct as PriceHistoryItem,
6281
- z as PriceTemplate,
6302
+ W as PriceTemplate,
6282
6303
  Te as PriceTemplateCategory,
6283
- re as PriceTemplateClient,
6284
- nr as PriceTemplateICatalogableItem,
6304
+ te as PriceTemplateClient,
6305
+ or as PriceTemplateICatalogableItem,
6285
6306
  be as PriceTemplateProduct,
6286
6307
  zt as PriceTemplateProvider,
6287
- se as PricingRole,
6308
+ ie as PricingRole,
6288
6309
  Wt as PricingRoleProvider,
6289
- Le as PrimaryCatalogableItem,
6290
- k as Product,
6291
- jt as ProductCategoryDataProvider,
6310
+ ke as PrimaryCatalogableItem,
6311
+ x as Product,
6312
+ Ft as ProductCategoryDataProvider,
6292
6313
  Mt as ProductDataProvider,
6293
6314
  lt as ProductFileType,
6294
6315
  qe as ProductPriceCoefficient,
6295
6316
  vt as ProductPriceHistory,
6296
6317
  Et as PropertiesProvider,
6297
- te as Property,
6298
- cr as PropertyType,
6318
+ se as Property,
6319
+ lr as PropertyType,
6299
6320
  Wr as PropertyTypeEnum,
6300
- H as PropertyValue,
6321
+ B as PropertyValue,
6301
6322
  ns as RecommendationsDataProvider,
6302
6323
  Ke as RecommendationsList,
6303
6324
  P as Reference,
6304
- A as ReferenceDataProvider,
6325
+ D as ReferenceDataProvider,
6305
6326
  ce as Region,
6306
6327
  pr as ResourceType,
6307
- x as SalesDirection,
6328
+ N as SalesDirection,
6308
6329
  Zr as SentryConfig,
6309
6330
  Qe as Seo,
6310
6331
  cs as SeoDataProvider,
6311
- ur as SourcePrimaryInterest,
6312
- Fr as StockCount,
6332
+ hr as SourcePrimaryInterest,
6333
+ jr as StockCount,
6313
6334
  Ot as TemplatesListFilters,
6314
6335
  Ue as TypedInstanceFactory,
6315
- Ve as UnitsHelper,
6336
+ Je as UnitsHelper,
6316
6337
  Xt as UnknownClientDataProvider,
6317
- ir as UpdatableNamedIdentity,
6338
+ nr as UpdatableNamedIdentity,
6318
6339
  at as User,
6319
- ps as UserAuthDataProvider,
6320
- or as UserCommonInfo,
6340
+ us as UserAuthDataProvider,
6341
+ cr as UserCommonInfo,
6321
6342
  At as UserDataProvider,
6322
6343
  Kr as UserPricingRole,
6323
6344
  G as UserShortInfo,
@@ -6329,6 +6350,6 @@ export {
6329
6350
  We as flattenCatalogItems,
6330
6351
  $e as useAuthStateStore,
6331
6352
  os as useReferencesStore,
6332
- us as useUserStateStore
6353
+ ps as useUserStateStore
6333
6354
  };
6334
6355
  //# sourceMappingURL=sc-common-lib.js.map