@snabcentr/common-lib 1.72.3 → 1.72.5

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 Pr = Object.defineProperty;
2
- var Rr = (n, r, e) => r in n ? Pr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => Rr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as rr } from "jwt-decode";
5
- import { merge as ye, isUndefined as Dr, isNil as D, isEmpty as Y, noop as w, mapValues as tr, isArray as Q, every as Ar, split as $r, toUpper as Tr, constant as br, isString as C, cloneDeep as Sr, toLower as _r, isFunction as qe, map as Pe, forEach as Ir, isDate as ke, omitBy as sr, isObject as ir } from "lodash-es";
6
- import { objectToCamel as Ue, objectToSnake as Be } from "ts-case-convert";
7
- import { isAfter as ze, parseISO as v, startOfToday as Le, format as q, addSeconds as dr, addBusinessDays as kr, endOfTomorrow as Lr, startOfTomorrow as xr, endOfYesterday as Nr, startOfYesterday as Or, endOfToday as qr, endOfDay as Ur, startOfDay as Gr } from "date-fns";
1
+ var Ar = Object.defineProperty;
2
+ var Dr = (n, r, e) => r in n ? Ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => Dr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as tr } from "jwt-decode";
5
+ import { merge as ye, isUndefined as Tr, isNil as D, isEmpty as Y, noop as y, mapValues as sr, isArray as Q, every as $r, split as br, toUpper as Sr, constant as ar, isString as w, cloneDeep as Ir, toLower as xr, isFunction as Ue, map as Re, forEach as Lr, isDate as _e, omitBy as ir, isObject as nr } from "lodash-es";
6
+ import { objectToCamel as Fe, objectToSnake as He } from "ts-case-convert";
7
+ import { isAfter as ze, parseISO as C, startOfToday as de, format as O, addSeconds as kr, addBusinessDays as _r, endOfTomorrow as dr, startOfTomorrow as Or, endOfYesterday as qr, startOfYesterday as Nr, endOfToday as Ur, endOfDay as Fr, startOfDay as Mr } from "date-fns";
8
8
  import { defineStore as te } from "pinia";
9
- import { ref as y, markRaw as Fr, computed as P } from "vue";
10
- import jr from "axios";
11
- class G {
9
+ import { ref as f, markRaw as jr, computed as R } from "vue";
10
+ import Gr from "axios";
11
+ class N {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class G {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = rr(r), s = new G(Ue(e));
110
+ const e = tr(r), s = new N(Fe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Nt extends G {
114
+ class qt extends N {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,7 +151,7 @@ class Nt extends G {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new G(Ue(rr(e)));
154
+ return new N(Fe(tr(e)));
155
155
  }
156
156
  }
157
157
  const J = class J {
@@ -168,7 +168,7 @@ const J = class J {
168
168
  */
169
169
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
170
170
  static getConfig() {
171
- if (Dr(J.config))
171
+ if (Tr(J.config))
172
172
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
173
173
  return J.config;
174
174
  }
@@ -190,7 +190,7 @@ const J = class J {
190
190
  * Конфигурация приложения.
191
191
  */
192
192
  t(J, "config");
193
- let T = J;
193
+ let $ = J;
194
194
  class fe {
195
195
  /**
196
196
  * Возвращает актуальные и не просроченные данные из хранилища.
@@ -210,7 +210,7 @@ class fe {
210
210
  if (e)
211
211
  try {
212
212
  const s = JSON.parse(e);
213
- if (!s.availableFor || ze(v(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
213
+ if (!s.availableFor || ze(C(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
214
214
  if (D(s.data) || Y(s.data))
215
215
  throw new Error("Data is empty");
216
216
  return s.data;
@@ -284,7 +284,7 @@ class fe {
284
284
  const i = localStorage.getItem(s);
285
285
  if (i) {
286
286
  const o = JSON.parse(i);
287
- o.availableFor && !ze(v(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
287
+ o.availableFor && !ze(C(o.availableFor) || de(), /* @__PURE__ */ new Date()) && r.push(s);
288
288
  }
289
289
  } catch {
290
290
  r.push(s);
@@ -300,16 +300,16 @@ class fe {
300
300
  }
301
301
  }
302
302
  }
303
- function Ee(n) {
303
+ function We(n) {
304
304
  try {
305
- const r = G.getJwtPayload(n);
305
+ const r = N.getJwtPayload(n);
306
306
  return new Date(r.exp * 1e3);
307
307
  } catch {
308
308
  return;
309
309
  }
310
310
  }
311
- const B = te("__auth_state_private", () => {
312
- const n = y(
311
+ const E = te("__auth_state_private", () => {
312
+ const n = f(
313
313
  (() => {
314
314
  var u;
315
315
  const o = fe.getActualDataFromStorage(
@@ -318,15 +318,15 @@ const B = te("__auth_state_private", () => {
318
318
  );
319
319
  if (o)
320
320
  return Promise.resolve(o);
321
- const c = (u = T.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
321
+ const c = (u = $.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
322
322
  return c ? Promise.resolve(c) : void 0;
323
323
  })()
324
- ), r = y(void 0), e = y(void 0), s = Fr(/* @__PURE__ */ new Map());
324
+ ), r = f(void 0), e = f(void 0), s = jr(/* @__PURE__ */ new Map());
325
325
  function i() {
326
326
  e.value = void 0, D(n.value) || n.value.then((o) => {
327
- const c = G.getJwtPayload(o);
328
- e.value = c.exp * 1e3 > Date.now() ? tr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
329
- }).catch(w);
327
+ const c = N.getJwtPayload(o);
328
+ e.value = c.exp * 1e3 > Date.now() ? sr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
329
+ }).catch(y);
330
330
  }
331
331
  return {
332
332
  /**
@@ -350,47 +350,47 @@ const B = te("__auth_state_private", () => {
350
350
  */
351
351
  recalculateUserPermissions: i
352
352
  };
353
- }), Te = te("__auth_state", () => {
354
- const n = P(() => {
355
- const o = B();
353
+ }), Se = te("__auth_state", () => {
354
+ const n = R(() => {
355
+ const o = E();
356
356
  if (D(o.jwtToken) && !D(o.jwtTokenUpdater)) {
357
357
  const c = o.jwtTokenUpdater();
358
358
  o.jwtToken = c, c.then((u) => {
359
- o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Ee(u)), o.recalculateUserPermissions();
360
- }).catch(w);
359
+ o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, We(u)), o.recalculateUserPermissions();
360
+ }).catch(y);
361
361
  }
362
362
  return o.jwtToken;
363
363
  });
364
364
  function r(o) {
365
- B().jwtTokenUpdater = o;
365
+ E().jwtTokenUpdater = o;
366
366
  }
367
367
  function e(o) {
368
- const c = B();
369
- c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Ee(o)), c.recalculateUserPermissions();
368
+ const c = E();
369
+ c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, We(o)), c.recalculateUserPermissions();
370
370
  }
371
371
  function s() {
372
- const o = B();
372
+ const o = E();
373
373
  o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
374
374
  }
375
375
  function i(o) {
376
- const c = B();
377
- !D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((f) => {
378
- const m = G.getJwtPayload(f);
379
- c.userPermissions = m.exp * 1e3 > Date.now() ? tr(m.resourceAccess, (A) => (A == null ? void 0 : A.roles) ?? []) : void 0;
380
- }).catch(w);
376
+ const c = E();
377
+ !D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((v) => {
378
+ const m = N.getJwtPayload(v);
379
+ c.userPermissions = m.exp * 1e3 > Date.now() ? sr(m.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
380
+ }).catch(y);
381
381
  const u = Q(o) ? o.join(" && ") : o;
382
382
  if (c.userPermissionsComputedRefs.has(u))
383
383
  return c.userPermissionsComputedRefs.get(u);
384
- const p = P(() => {
385
- const f = (m) => {
386
- var _;
387
- const A = $r(m, ".");
388
- if (A.length < 2)
384
+ const p = R(() => {
385
+ const v = (m) => {
386
+ var B;
387
+ const S = br(m, ".");
388
+ if (S.length < 2)
389
389
  return !1;
390
- const [I, d] = A, S = (_ = B().userPermissions) == null ? void 0 : _[I];
391
- return Q(S) && S.includes(d);
390
+ const [_, d] = S, G = (B = E().userPermissions) == null ? void 0 : B[_];
391
+ return Q(G) && G.includes(d);
392
392
  };
393
- return Q(o) ? Ar(o, (m) => f(m)) : f(o);
393
+ return Q(o) ? $r(o, (m) => v(m)) : v(o);
394
394
  });
395
395
  return c.userPermissionsComputedRefs.set(u, p), p;
396
396
  }
@@ -423,7 +423,7 @@ const B = te("__auth_state_private", () => {
423
423
  hasUserPermission: i
424
424
  };
425
425
  });
426
- class H {
426
+ class j {
427
427
  /**
428
428
  * Инициализирует экземпляр класса {@link Identity}.
429
429
  *
@@ -448,7 +448,7 @@ class H {
448
448
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : D(this.id);
449
449
  }
450
450
  }
451
- class b extends H {
451
+ class b extends j {
452
452
  /**
453
453
  * Инициализирует экземпляр класса {@link NamedIdentity}.
454
454
  *
@@ -478,7 +478,7 @@ class oe extends b {
478
478
  this.code = (e == null ? void 0 : e.code) ?? "";
479
479
  }
480
480
  }
481
- class nr extends oe {
481
+ class or extends oe {
482
482
  /**
483
483
  * Инициализирует экземпляр класса {@link CatalogableItem}.
484
484
  *
@@ -497,7 +497,7 @@ class nr extends oe {
497
497
  this.slug = (e == null ? void 0 : e.slug) ?? "";
498
498
  }
499
499
  }
500
- class xe extends nr {
500
+ class Oe extends or {
501
501
  /**
502
502
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
503
503
  *
@@ -512,7 +512,7 @@ class xe extends nr {
512
512
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
513
513
  }
514
514
  }
515
- class he extends xe {
515
+ class he extends Oe {
516
516
  /**
517
517
  * Инициализирует экземпляр класса {@link BaseCategory}.
518
518
  *
@@ -536,11 +536,11 @@ class he extends xe {
536
536
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
537
537
  */
538
538
  t(this, "currencyRates");
539
- 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]) => [Tr(s), i])) : void 0;
539
+ 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]) => [Sr(s), i])) : void 0;
540
540
  }
541
541
  }
542
- var or = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(or || {});
543
- class a extends b {
542
+ var cr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(cr || {});
543
+ class P extends b {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link Reference}.
546
546
  *
@@ -559,15 +559,15 @@ class a extends b {
559
559
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
560
560
  }
561
561
  }
562
- class Re extends a {
562
+ class Ae extends P {
563
563
  /**
564
564
  * Возвращает значение справочника коэффициента розничной цены.
565
565
  */
566
566
  static getRetailPriceCoefficient() {
567
- return { id: -2, slug: or.Retail, name: "Розн. цена", guid: "", isNewRec: br(!0) };
567
+ return { id: -2, slug: cr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
568
568
  }
569
569
  }
570
- class Ge {
570
+ class Me {
571
571
  /**
572
572
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
573
573
  *
@@ -594,10 +594,10 @@ class Ge {
594
594
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
595
595
  */
596
596
  t(this, "readOnly");
597
- 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;
597
+ this.coefficient = new Ae(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;
598
598
  }
599
599
  }
600
- class cr {
600
+ class lr {
601
601
  /**
602
602
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
603
603
  *
@@ -615,9 +615,9 @@ class cr {
615
615
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
616
616
  }
617
617
  }
618
- class X extends a {
618
+ class X extends P {
619
619
  }
620
- class De extends a {
620
+ class De extends P {
621
621
  /**
622
622
  * Инициализирует экземпляр класса {@link Warehouse}.
623
623
  *
@@ -646,10 +646,10 @@ class De extends a {
646
646
  * Координаты склада.
647
647
  */
648
648
  t(this, "coordinates");
649
- 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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new cr(e == null ? void 0 : e.coordinates);
649
+ 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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new lr(e == null ? void 0 : e.coordinates);
650
650
  }
651
651
  }
652
- class Mr {
652
+ class Br {
653
653
  /**
654
654
  * Инициализирует экземпляр класса {@link StockCount}.
655
655
  *
@@ -667,7 +667,7 @@ class Mr {
667
667
  this.warehouse = new De(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
668
668
  }
669
669
  }
670
- class Hr extends nr {
670
+ class Er extends or {
671
671
  /**
672
672
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
673
673
  *
@@ -682,7 +682,7 @@ class Hr extends nr {
682
682
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
683
683
  }
684
684
  }
685
- class Br {
685
+ class Hr {
686
686
  /**
687
687
  * Инициализирует экземпляр класса {@link Image}.
688
688
  *
@@ -705,7 +705,7 @@ class Br {
705
705
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
706
706
  }
707
707
  }
708
- class x extends Hr {
708
+ class I extends Er {
709
709
  /**
710
710
  * Инициализирует экземпляр класса {@link Product}.
711
711
  *
@@ -790,16 +790,16 @@ class x extends Hr {
790
790
  * Список коэффициентов цен на продукт.
791
791
  */
792
792
  t(this, "priceCoefficients");
793
- 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 Mr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
793
+ 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) ? C(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 Br(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
794
794
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
795
- s && (this.category = new xe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new xe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Br(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 Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
795
+ s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Oe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Hr(p, $.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 Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
796
796
  }
797
797
  /**
798
798
  * Возвращает признак, что это измеряемый товар.
799
799
  */
800
800
  getIsMeasurable() {
801
801
  var s;
802
- const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
802
+ const e = (s = $.getConfig().catalog) == null ? void 0 : s.products.units;
803
803
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
804
804
  }
805
805
  /**
@@ -815,7 +815,7 @@ class x extends Hr {
815
815
  return this.retailCostRub ?? this.costRub;
816
816
  }
817
817
  }
818
- class zr extends H {
818
+ class zr extends j {
819
819
  /**
820
820
  * Инициализирует экземпляр класса {@link CartItemBase}.
821
821
  *
@@ -867,10 +867,10 @@ class zr extends H {
867
867
  * Признак того, что позиция является дополнительной продажей.
868
868
  */
869
869
  t(this, "isAdditionalSale");
870
- this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Sr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
870
+ this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ir(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
871
871
  }
872
872
  }
873
- class Er extends zr {
873
+ class Wr extends zr {
874
874
  /**
875
875
  * Инициализирует экземпляр класса {@link CartItem}.
876
876
  *
@@ -939,10 +939,10 @@ class me {
939
939
  * Список итоговых сумм по направлениям продаж.
940
940
  */
941
941
  t(this, "directionsSum");
942
- this.items = r.items.map((e) => new Er(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
942
+ this.items = r.items.map((e) => new Wr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
943
943
  }
944
944
  }
945
- class Fe {
945
+ class je {
946
946
  /**
947
947
  * Инициализирует экземпляр указанного класса.
948
948
  *
@@ -961,7 +961,7 @@ class Fe {
961
961
  return new r(e);
962
962
  }
963
963
  }
964
- const L = class L {
964
+ const a = class a {
965
965
  /**
966
966
  * Инициализирует экземпляр класса {@link HttpRequester}.
967
967
  */
@@ -973,7 +973,7 @@ const L = class L {
973
973
  /**
974
974
  * Базовый URL путь для выполнения запросов.
975
975
  */
976
- t(this, "baseUrl", `${T.getConfig().http.portalApiUrl}/api`);
976
+ t(this, "baseUrl", `${$.getConfig().http.portalApiUrl}/api`);
977
977
  /**
978
978
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
979
979
  *
@@ -981,7 +981,7 @@ const L = class L {
981
981
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
982
982
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
983
983
  */
984
- t(this, "errorResponseHandler", w);
984
+ t(this, "errorResponseHandler", y);
985
985
  /**
986
986
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
987
987
  */
@@ -1000,7 +1000,7 @@ const L = class L {
1000
1000
  // eslint-disable-next-line class-methods-use-this
1001
1001
  t(this, "authRequestInterceptor", async (r) => {
1002
1002
  let e;
1003
- return D(Te().jwtToken) || (e = await Te().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1003
+ return D(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1004
1004
  });
1005
1005
  /**
1006
1006
  * Перехватчик запроса для преобразования данных запроса.
@@ -1008,7 +1008,7 @@ const L = class L {
1008
1008
  * @param request Данные запроса.
1009
1009
  */
1010
1010
  // eslint-disable-next-line class-methods-use-this
1011
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Be(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = Be(r.data))), r));
1011
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = He(r.params)), ["put", "patch", "post"].includes(xr(r.method)) && r.data && (r.data = He(r.data))), r));
1012
1012
  /**
1013
1013
  * Перехватчик ошибок ответов на запрос.
1014
1014
  *
@@ -1017,7 +1017,7 @@ const L = class L {
1017
1017
  t(this, "authErrorsResponseInterceptors", (r) => {
1018
1018
  var s;
1019
1019
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1020
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Te().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1020
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Se().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1021
1021
  });
1022
1022
  /**
1023
1023
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -1025,11 +1025,11 @@ const L = class L {
1025
1025
  * @param response Данные ответа на запрос.
1026
1026
  */
1027
1027
  // eslint-disable-next-line class-methods-use-this
1028
- t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ue(r.data)), r));
1029
- const r = T.getConfig().version;
1030
- this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = jr.create({
1028
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1029
+ const r = $.getConfig().version;
1030
+ this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Gr.create({
1031
1031
  headers: {
1032
- "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, T.getConfig().dateFormats.uiDate)})`,
1032
+ "APP-VERSION": `${r.name} (${r.version}, ${O(r.date, $.getConfig().dateFormats.uiDate)})`,
1033
1033
  Accept: "application/json",
1034
1034
  "Content-Type": "application/json"
1035
1035
  }
@@ -1038,7 +1038,7 @@ const L = class L {
1038
1038
  (e) => Promise.reject(e)
1039
1039
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1040
1040
  (e) => e,
1041
- (e) => L.convertHttpErrorResponse(e)
1041
+ (e) => a.convertHttpErrorResponse(e)
1042
1042
  ), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1043
1043
  this.dataConverterResponseInterceptor,
1044
1044
  (e) => Promise.reject(e)
@@ -1050,7 +1050,7 @@ const L = class L {
1050
1050
  * @param handler Ссылка на функцию-обработчик ошибок.
1051
1051
  */
1052
1052
  static setDefaultErrorsResponseHandler(r) {
1053
- L.defaultErrorsResponseHandler = r;
1053
+ a.defaultErrorsResponseHandler = r;
1054
1054
  }
1055
1055
  /**
1056
1056
  * Возвращает экземпляр объекта текущего класса.
@@ -1058,7 +1058,7 @@ const L = class L {
1058
1058
  * @param type Тип данных, которыми оперирует метод.
1059
1059
  */
1060
1060
  static getInstance(r) {
1061
- return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = Fe.simpleInstanceInitializer(r)), L.instances[r.name];
1061
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = je.simpleInstanceInitializer(r)), a.instances[r.name];
1062
1062
  }
1063
1063
  /**
1064
1064
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1156,16 +1156,16 @@ const L = class L {
1156
1156
  * Экземпляр объекта текущего класса.
1157
1157
  */
1158
1158
  // eslint-disable-next-line no-use-before-define
1159
- t(L, "instances", {}), /**
1159
+ t(a, "instances", {}), /**
1160
1160
  * Базовый обработчик ошибок выполнения запросов.
1161
1161
  *
1162
1162
  * @param error Данные об ошибке.
1163
1163
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1164
1164
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1165
1165
  */
1166
- t(L, "defaultErrorsResponseHandler", w);
1167
- let h = L;
1168
- class Ot extends h {
1166
+ t(a, "defaultErrorsResponseHandler", y);
1167
+ let h = a;
1168
+ class Nt extends h {
1169
1169
  /**
1170
1170
  * Возвращает содержимое корзины указанного клиента.
1171
1171
  *
@@ -1279,8 +1279,8 @@ class Ot extends h {
1279
1279
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1280
1280
  }
1281
1281
  }
1282
- var Wr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Wr || {}), je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {}), Jr = /* @__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))(Jr || {});
1283
- class E extends he {
1282
+ var Jr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Jr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Vr = /* @__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))(Vr || {});
1283
+ class z extends he {
1284
1284
  /**
1285
1285
  * Инициализирует экземпляр класса {@link Category}.
1286
1286
  *
@@ -1297,10 +1297,10 @@ class E extends he {
1297
1297
  * Список продуктов категории.
1298
1298
  */
1299
1299
  t(this, "products");
1300
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new E(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new x(o));
1300
+ 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 I(o));
1301
1301
  }
1302
1302
  }
1303
- class lr extends b {
1303
+ class ur extends b {
1304
1304
  /**
1305
1305
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1306
1306
  *
@@ -1312,10 +1312,10 @@ class lr extends b {
1312
1312
  * Дата и время последнего изменения.
1313
1313
  */
1314
1314
  t(this, "updatedAt");
1315
- this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1315
+ this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1316
1316
  }
1317
1317
  }
1318
- class Vr extends lr {
1318
+ class Kr extends ur {
1319
1319
  /**
1320
1320
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1321
1321
  *
@@ -1327,10 +1327,10 @@ class Vr extends lr {
1327
1327
  * Дата и время последнего удаления.
1328
1328
  */
1329
1329
  t(this, "deletedAt");
1330
- this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1330
+ this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1331
1331
  }
1332
1332
  }
1333
- class F extends b {
1333
+ class U extends b {
1334
1334
  /**
1335
1335
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1336
1336
  *
@@ -1345,7 +1345,7 @@ class F extends b {
1345
1345
  this.type = e == null ? void 0 : e.type;
1346
1346
  }
1347
1347
  }
1348
- class Kr extends b {
1348
+ class Qr extends b {
1349
1349
  /**
1350
1350
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1351
1351
  *
@@ -1381,10 +1381,10 @@ class Kr extends b {
1381
1381
  * Дата и время удаления.
1382
1382
  */
1383
1383
  t(this, "deletedAt");
1384
- 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 F(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1384
+ 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) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1385
1385
  }
1386
1386
  }
1387
- class W extends lr {
1387
+ class W extends ur {
1388
1388
  /**
1389
1389
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1390
1390
  *
@@ -1400,10 +1400,10 @@ class W extends lr {
1400
1400
  * Дата и время создания шаблона.
1401
1401
  */
1402
1402
  t(this, "createdAt");
1403
- 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();
1403
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = w(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1404
1404
  }
1405
1405
  }
1406
- class Z extends x {
1406
+ class Z extends I {
1407
1407
  /**
1408
1408
  * Инициализирует экземпляр класса {@link ClientProduct}.
1409
1409
  *
@@ -1439,10 +1439,10 @@ class Z extends x {
1439
1439
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1440
1440
  */
1441
1441
  t(this, "isFavorite");
1442
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new Kr(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;
1442
+ 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 Qr(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;
1443
1443
  }
1444
1444
  }
1445
- class Qr {
1445
+ class Yr {
1446
1446
  /**
1447
1447
  * Инициализирует экземпляр класса {@link ContactLinks}.
1448
1448
  *
@@ -1460,7 +1460,7 @@ class Qr {
1460
1460
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1461
1461
  }
1462
1462
  }
1463
- class N extends a {
1463
+ class x extends P {
1464
1464
  }
1465
1465
  class ce extends b {
1466
1466
  /**
@@ -1490,10 +1490,10 @@ class ce extends b {
1490
1490
  * @inheritDoc
1491
1491
  */
1492
1492
  t(this, "isRegionalDirector");
1493
- this.salesDirection = e != null && e.salesDirection ? new N(e.salesDirection) : new N(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Qr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1493
+ this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Yr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1494
1494
  }
1495
1495
  }
1496
- class Yr extends b {
1496
+ class Xr extends b {
1497
1497
  /**
1498
1498
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1499
1499
  *
@@ -1516,7 +1516,7 @@ class Yr extends b {
1516
1516
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1517
1517
  }
1518
1518
  }
1519
- class Ae extends ce {
1519
+ class Te extends ce {
1520
1520
  /**
1521
1521
  * Инициализирует экземпляр класса {@link Manager}.
1522
1522
  *
@@ -1548,10 +1548,10 @@ class Ae extends ce {
1548
1548
  * Данные роли ценообразования менеджера.
1549
1549
  */
1550
1550
  t(this, "pricingRole");
1551
- 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 Yr(e.pricingRole) : void 0;
1551
+ 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 Xr(e.pricingRole) : void 0;
1552
1552
  }
1553
1553
  }
1554
- class Xr extends he {
1554
+ class Zr extends he {
1555
1555
  /**
1556
1556
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1557
1557
  *
@@ -1579,10 +1579,10 @@ class Xr extends he {
1579
1579
  * Данные о менеджере за которым закреплена категория.
1580
1580
  */
1581
1581
  t(this, "manager");
1582
- this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Ae(e.manager) : void 0;
1582
+ this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Te(e.manager) : void 0;
1583
1583
  }
1584
1584
  }
1585
- class we extends Xr {
1585
+ class we extends Zr {
1586
1586
  /**
1587
1587
  * Инициализирует экземпляр класса {@link ClientCategory}.
1588
1588
  *
@@ -1602,7 +1602,7 @@ class we extends Xr {
1602
1602
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Z(o));
1603
1603
  }
1604
1604
  }
1605
- class ur {
1605
+ class pr {
1606
1606
  /**
1607
1607
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1608
1608
  *
@@ -1617,10 +1617,10 @@ class ur {
1617
1617
  * Процент, который прибавляется к значению выбранного коэффициента.
1618
1618
  */
1619
1619
  t(this, "increasePercent");
1620
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1620
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ae(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1621
1621
  }
1622
1622
  }
1623
- class be extends ur {
1623
+ class ae extends pr {
1624
1624
  /**
1625
1625
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1626
1626
  *
@@ -1635,9 +1635,9 @@ class be extends ur {
1635
1635
  this.productCategory = new he(e == null ? void 0 : e.productCategory);
1636
1636
  }
1637
1637
  }
1638
- class ee extends a {
1638
+ class ee extends P {
1639
1639
  }
1640
- class le extends a {
1640
+ class le extends P {
1641
1641
  /**
1642
1642
  * Инициализирует экземпляр класса {@link Region}.
1643
1643
  *
@@ -1652,7 +1652,7 @@ class le extends a {
1652
1652
  e && (this.country = new ee(e.country));
1653
1653
  }
1654
1654
  }
1655
- class Me extends a {
1655
+ class Be extends P {
1656
1656
  /**
1657
1657
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1658
1658
  *
@@ -1667,7 +1667,7 @@ class Me extends a {
1667
1667
  e && (this.region = new le(e.region));
1668
1668
  }
1669
1669
  }
1670
- class pr extends b {
1670
+ class hr extends b {
1671
1671
  /**
1672
1672
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1673
1673
  *
@@ -1703,10 +1703,10 @@ class pr extends b {
1703
1703
  * Признак активности учетной записи пользователя.
1704
1704
  */
1705
1705
  t(this, "isActive");
1706
- 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;
1706
+ 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) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = w(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1707
1707
  }
1708
1708
  }
1709
- class ge extends pr {
1709
+ class ge extends hr {
1710
1710
  /**
1711
1711
  * Инициализирует экземпляр класса {@link Client}.
1712
1712
  *
@@ -1748,10 +1748,10 @@ class ge extends pr {
1748
1748
  * Список менеджеров клиента.
1749
1749
  */
1750
1750
  t(this, "managers");
1751
- 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 Me(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 ce(i))) ?? [];
1751
+ 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 Be(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 ce(i))) ?? [];
1752
1752
  }
1753
1753
  }
1754
- class se extends H {
1754
+ class se extends j {
1755
1755
  /**
1756
1756
  * Инициализирует новый экземпляр класса.
1757
1757
  *
@@ -1775,10 +1775,10 @@ class se extends H {
1775
1775
  * Данные шаблона прайс-листа.
1776
1776
  */
1777
1777
  t(this, "priceTemplate");
1778
- 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 ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1778
+ this.createdAt = w(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1779
1779
  }
1780
1780
  }
1781
- class Se extends ur {
1781
+ class Ie extends pr {
1782
1782
  /**
1783
1783
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1784
1784
  *
@@ -1790,10 +1790,10 @@ class Se extends ur {
1790
1790
  * Базовые данные о продукте.
1791
1791
  */
1792
1792
  t(this, "product");
1793
- this.product = new x(e == null ? void 0 : e.product);
1793
+ this.product = new I(e == null ? void 0 : e.product);
1794
1794
  }
1795
1795
  }
1796
- class hr extends a {
1796
+ class gr extends P {
1797
1797
  }
1798
1798
  class ie extends b {
1799
1799
  /**
@@ -1815,10 +1815,10 @@ class ie extends b {
1815
1815
  * Дополнительные метаданные свойства.
1816
1816
  */
1817
1817
  t(this, "metadata");
1818
- this.type = new hr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1818
+ this.type = new gr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1819
1819
  }
1820
1820
  }
1821
- class z {
1821
+ class H {
1822
1822
  /**
1823
1823
  * Инициализирует экземпляр класса {@link PropertyValue}.
1824
1824
  *
@@ -1837,7 +1837,7 @@ class z {
1837
1837
  this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1838
1838
  }
1839
1839
  }
1840
- class O {
1840
+ class k {
1841
1841
  /**
1842
1842
  * Инициализирует экземпляр класса {@link DatePeriod}.
1843
1843
  *
@@ -1852,10 +1852,10 @@ class O {
1852
1852
  * Окончание периода.
1853
1853
  */
1854
1854
  t(this, "to");
1855
- 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;
1855
+ this.from = w(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = w(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
1856
1856
  }
1857
1857
  }
1858
- class qt {
1858
+ class Ut {
1859
1859
  /**
1860
1860
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1861
1861
  *
@@ -1877,12 +1877,12 @@ class qt {
1877
1877
  /**
1878
1878
  * Период создания.
1879
1879
  */
1880
- t(this, "createdAt", new O());
1880
+ t(this, "createdAt", new k());
1881
1881
  /**
1882
1882
  * Период изменения.
1883
1883
  */
1884
- t(this, "updatedAt", new O());
1885
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.updatedAt = new O(r == null ? void 0 : r.updatedAt);
1884
+ t(this, "updatedAt", new k());
1885
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new k(r == null ? void 0 : r.createdAt), this.updatedAt = new k(r == null ? void 0 : r.updatedAt);
1886
1886
  }
1887
1887
  /**
1888
1888
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -1915,7 +1915,7 @@ class qt {
1915
1915
  return Object.keys(this).forEach((c) => {
1916
1916
  const u = this[c];
1917
1917
  // eslint-disable-next-line prettier/prettier
1918
- D(u) || C(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
1918
+ D(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1919
1919
  }), !((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;
1920
1920
  }
1921
1921
  }
@@ -1954,7 +1954,7 @@ class ne extends b {
1954
1954
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
1955
1955
  }
1956
1956
  }
1957
- class We {
1957
+ class Je {
1958
1958
  /**
1959
1959
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
1960
1960
  *
@@ -1973,10 +1973,10 @@ class We {
1973
1973
  * Минимальный коэффициент цены.
1974
1974
  */
1975
1975
  t(this, "minCoefficient");
1976
- this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
1976
+ this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Ae(r == null ? void 0 : r.minCoefficient);
1977
1977
  }
1978
1978
  }
1979
- class Zr {
1979
+ class et {
1980
1980
  /**
1981
1981
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
1982
1982
  *
@@ -1998,7 +1998,7 @@ class Zr {
1998
1998
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
1999
1999
  }
2000
2000
  }
2001
- class et {
2001
+ class rt {
2002
2002
  /**
2003
2003
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
2004
2004
  *
@@ -2020,7 +2020,7 @@ class et {
2020
2020
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
2021
2021
  }
2022
2022
  }
2023
- class rt {
2023
+ class tt {
2024
2024
  /**
2025
2025
  * Инициализирует экземпляр класса {@link SentryConfig}.
2026
2026
  *
@@ -2065,7 +2065,7 @@ class rt {
2065
2065
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
2066
2066
  }
2067
2067
  }
2068
- class tt {
2068
+ class st {
2069
2069
  /**
2070
2070
  * Инициализирует экземпляр класса {@link VersionConfig}.
2071
2071
  *
@@ -2084,10 +2084,10 @@ class tt {
2084
2084
  * Текущая версия приложения.
2085
2085
  */
2086
2086
  t(this, "version");
2087
- 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";
2087
+ this.date = w(r == null ? void 0 : r.date) ? C(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";
2088
2088
  }
2089
2089
  }
2090
- class st {
2090
+ class it {
2091
2091
  /**
2092
2092
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
2093
2093
  *
@@ -2126,7 +2126,7 @@ class st {
2126
2126
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
2127
2127
  }
2128
2128
  }
2129
- class Ut {
2129
+ class Ft {
2130
2130
  /**
2131
2131
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
2132
2132
  *
@@ -2170,17 +2170,17 @@ class Ut {
2170
2170
  */
2171
2171
  t(this, "dateFormats");
2172
2172
  var e, s, i;
2173
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new et(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Zr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new rt({
2173
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new rt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new et(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new tt({
2174
2174
  environment: this.environment,
2175
2175
  ...r == null ? void 0 : r.sentry
2176
- }), this.urls = r == null ? void 0 : r.urls, this.version = new tt(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new st(r.websocket) : void 0, this.dateFormats = {
2176
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new st(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new it(r.websocket) : void 0, this.dateFormats = {
2177
2177
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2178
2178
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2179
2179
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
2180
2180
  };
2181
2181
  }
2182
2182
  }
2183
- class Gt extends h {
2183
+ class Mt extends h {
2184
2184
  /**
2185
2185
  * Возвращает данные о результатах поиска категорий и товаров.
2186
2186
  *
@@ -2207,11 +2207,11 @@ class Gt extends h {
2207
2207
  */
2208
2208
  // eslint-disable-next-line class-methods-use-this
2209
2209
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2210
- let c = `${T.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2210
+ let c = `${$.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2211
2211
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2212
2212
  }
2213
2213
  }
2214
- class Ft extends h {
2214
+ class jt extends h {
2215
2215
  /**
2216
2216
  * Импортирует цены клиента из CSV файла.
2217
2217
  *
@@ -2410,7 +2410,7 @@ class Ft extends h {
2410
2410
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2411
2411
  }
2412
2412
  }
2413
- class jt extends h {
2413
+ class Gt extends h {
2414
2414
  /**
2415
2415
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2416
2416
  *
@@ -2445,12 +2445,12 @@ class jt extends h {
2445
2445
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2446
2446
  */
2447
2447
  attachTemplate(r, e, s) {
2448
- const i = T.getConfig().dateFormats.api;
2448
+ const i = $.getConfig().dateFormats.api;
2449
2449
  return this.post(
2450
2450
  `/internal/clients/${r}/price/templates/${e}`,
2451
2451
  s && {
2452
- startAt: s.startAt && q(s.startAt, i),
2453
- endAt: s.endAt && q(s.endAt, i)
2452
+ startAt: s.startAt && O(s.startAt, i),
2453
+ endAt: s.endAt && O(s.endAt, i)
2454
2454
  },
2455
2455
  (o) => new se(o.data),
2456
2456
  {},
@@ -2479,12 +2479,12 @@ class jt extends h {
2479
2479
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2480
2480
  */
2481
2481
  changeTemplate(r, e, s, i) {
2482
- const o = T.getConfig().dateFormats.api;
2482
+ const o = $.getConfig().dateFormats.api;
2483
2483
  return this.patch(
2484
2484
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2485
2485
  i && {
2486
- startAt: i.startAt && q(i.startAt, o),
2487
- endAt: i.endAt && q(i.endAt, o)
2486
+ startAt: i.startAt && O(i.startAt, o),
2487
+ endAt: i.endAt && O(i.endAt, o)
2488
2488
  },
2489
2489
  (c) => new se(c.data)
2490
2490
  );
@@ -2502,7 +2502,7 @@ class jt extends h {
2502
2502
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2503
2503
  }
2504
2504
  }
2505
- class Mt extends h {
2505
+ class Bt extends h {
2506
2506
  /**
2507
2507
  * Возвращает список данных о корневых категориях.
2508
2508
  *
@@ -2516,7 +2516,7 @@ class Mt extends h {
2516
2516
  {
2517
2517
  showHidden: r
2518
2518
  },
2519
- (e) => e.data.map((s) => new E(s))
2519
+ (e) => e.data.map((s) => new z(s))
2520
2520
  );
2521
2521
  }
2522
2522
  /**
@@ -2535,7 +2535,7 @@ class Mt extends h {
2535
2535
  showHidden: e,
2536
2536
  withNestedCategories: s
2537
2537
  },
2538
- (i) => new E(i.data)
2538
+ (i) => new z(i.data)
2539
2539
  );
2540
2540
  }
2541
2541
  /**
@@ -2544,7 +2544,7 @@ class Mt extends h {
2544
2544
  * @param categoryID Идентификатор категории продуктов.
2545
2545
  */
2546
2546
  getPublicCategoryData(r) {
2547
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new E(e.data));
2547
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
2548
2548
  }
2549
2549
  /**
2550
2550
  * Возвращает список продуктов категории.
@@ -2562,7 +2562,7 @@ class Mt extends h {
2562
2562
  showHidden: s,
2563
2563
  withPriceCoefficients: e
2564
2564
  },
2565
- (i) => Pe(i.data, (o) => new x(o))
2565
+ (i) => Re(i.data, (o) => new I(o))
2566
2566
  );
2567
2567
  }
2568
2568
  /**
@@ -2575,7 +2575,7 @@ class Mt extends h {
2575
2575
  getCategoryProductsCoefficients(r) {
2576
2576
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2577
2577
  const { data: s } = e;
2578
- return Ir(s, (i) => i.map((o) => new Ge(o))), s;
2578
+ return Lr(s, (i) => i.map((o) => new Me(o))), s;
2579
2579
  });
2580
2580
  }
2581
2581
  /**
@@ -2587,14 +2587,14 @@ class Mt extends h {
2587
2587
  publicSimpleSearch(r, e = 10) {
2588
2588
  return new Promise((s, i) => {
2589
2589
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2590
- s(o.categories.map((c) => new E(c)));
2590
+ s(o.categories.map((c) => new z(c)));
2591
2591
  }).catch((o) => {
2592
2592
  i(o);
2593
2593
  });
2594
2594
  });
2595
2595
  }
2596
2596
  }
2597
- class Ht extends h {
2597
+ class Et extends h {
2598
2598
  /**
2599
2599
  * Возвращает данные об указанном продукте.
2600
2600
  *
@@ -2604,7 +2604,7 @@ class Ht extends h {
2604
2604
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2605
2605
  */
2606
2606
  getProductData(r, e = !1) {
2607
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new x(s.data));
2607
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2608
2608
  }
2609
2609
  /**
2610
2610
  * Возвращает публичные данные об указанном продукте.
@@ -2612,7 +2612,7 @@ class Ht extends h {
2612
2612
  * @param productId Идентификатор продукта.
2613
2613
  */
2614
2614
  getPublicProductData(r) {
2615
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new x(e.data));
2615
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2616
2616
  }
2617
2617
  /**
2618
2618
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2625,7 +2625,7 @@ class Ht extends h {
2625
2625
  return this.get(
2626
2626
  `/internal/catalog/products/${r}/coefficients`,
2627
2627
  {},
2628
- (e) => Pe(e.data, (s) => new Ge(s))
2628
+ (e) => Re(e.data, (s) => new Me(s))
2629
2629
  );
2630
2630
  }
2631
2631
  /**
@@ -2637,14 +2637,14 @@ class Ht extends h {
2637
2637
  publicSimpleSearch(r, e = 10) {
2638
2638
  return new Promise((s, i) => {
2639
2639
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2640
- s(o.products.map((c) => new x(c)));
2640
+ s(o.products.map((c) => new I(c)));
2641
2641
  }).catch((o) => {
2642
2642
  i(o);
2643
2643
  });
2644
2644
  });
2645
2645
  }
2646
2646
  }
2647
- class Bt extends h {
2647
+ class Ht extends h {
2648
2648
  /**
2649
2649
  * Возвращает список данных о корневых категориях указанного клиента.
2650
2650
  *
@@ -2702,7 +2702,7 @@ class Bt extends h {
2702
2702
  showHidden: i,
2703
2703
  withPriceCoefficients: s
2704
2704
  },
2705
- (o) => Pe(o.data, (c) => new Z(c))
2705
+ (o) => Re(o.data, (c) => new Z(c))
2706
2706
  );
2707
2707
  }
2708
2708
  }
@@ -2727,8 +2727,8 @@ class zt extends h {
2727
2727
  );
2728
2728
  }
2729
2729
  }
2730
- var He = /* @__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))(He || {});
2731
- class Je {
2730
+ var Ee = /* @__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))(Ee || {});
2731
+ class Ve {
2732
2732
  /**
2733
2733
  * Инициализирует экземпляр класса {@link FilterItem}.
2734
2734
  *
@@ -2747,7 +2747,7 @@ class Je {
2747
2747
  * Значение с которым сравнивается поле.
2748
2748
  */
2749
2749
  t(this, "value");
2750
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? He.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2750
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ee.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2751
2751
  }
2752
2752
  /**
2753
2753
  * Преобразует фильтр в примитивное представление для API.
@@ -2759,7 +2759,7 @@ class Je {
2759
2759
  field: this.field,
2760
2760
  op: this.op
2761
2761
  };
2762
- return r.value = ke(this.value) ? q(this.value, T.getConfig().dateFormats.api) : this.value, r;
2762
+ return r.value = _e(this.value) ? O(this.value, $.getConfig().dateFormats.api) : this.value, r;
2763
2763
  }
2764
2764
  }
2765
2765
  class ue {
@@ -2782,7 +2782,7 @@ class ue {
2782
2782
  */
2783
2783
  t(this, "groups");
2784
2784
  var e, s;
2785
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Je(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
2785
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ve(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
2786
2786
  }
2787
2787
  /**
2788
2788
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2792,7 +2792,7 @@ class ue {
2792
2792
  toPrimitive() {
2793
2793
  return {
2794
2794
  groupOp: this.groupOp,
2795
- filters: this.filters.map((r) => r instanceof Je && qe(r.toPrimitive) ? r.toPrimitive() : r),
2795
+ filters: this.filters.map((r) => r instanceof Ve && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2796
2796
  groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
2797
2797
  };
2798
2798
  }
@@ -2817,7 +2817,7 @@ class $e extends h {
2817
2817
  return e && (p.filters = JSON.stringify((e instanceof ue ? e : new ue(e)).toPrimitive())), Y(s) || (p.sort = Q(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
2818
2818
  }
2819
2819
  }
2820
- class Et extends $e {
2820
+ class Wt extends $e {
2821
2821
  /**
2822
2822
  * Возвращает список шаблонов прайс-листа.
2823
2823
  *
@@ -2889,7 +2889,7 @@ class Et extends $e {
2889
2889
  return this.get(
2890
2890
  `/internal/price/templates/${r}/products`,
2891
2891
  {},
2892
- (e) => e.data.map((s) => new Se(s))
2892
+ (e) => e.data.map((s) => new Ie(s))
2893
2893
  );
2894
2894
  }
2895
2895
  /**
@@ -2901,7 +2901,7 @@ class Et extends $e {
2901
2901
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2902
2902
  */
2903
2903
  getProductTemplatePrice(r, e) {
2904
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Se(s.data));
2904
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Ie(s.data));
2905
2905
  }
2906
2906
  /**
2907
2907
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2920,7 +2920,7 @@ class Et extends $e {
2920
2920
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2921
2921
  increase_percent: s.value
2922
2922
  },
2923
- (o) => new Se(o.data)
2923
+ (o) => new Ie(o.data)
2924
2924
  );
2925
2925
  }
2926
2926
  /**
@@ -2945,7 +2945,7 @@ class Et extends $e {
2945
2945
  return this.get(
2946
2946
  `/internal/price/templates/${r}/categories`,
2947
2947
  {},
2948
- (e) => e.data.map((s) => new be(s))
2948
+ (e) => e.data.map((s) => new ae(s))
2949
2949
  );
2950
2950
  }
2951
2951
  /**
@@ -2960,7 +2960,7 @@ class Et extends $e {
2960
2960
  return this.get(
2961
2961
  `/internal/price/templates/${r}/categories/${e}`,
2962
2962
  {},
2963
- (s) => new be(s.data)
2963
+ (s) => new ae(s.data)
2964
2964
  );
2965
2965
  }
2966
2966
  /**
@@ -2986,7 +2986,7 @@ class Et extends $e {
2986
2986
  },
2987
2987
  params: i ? { recursively: !0 } : {}
2988
2988
  },
2989
- (c) => new be(c.data)
2989
+ (c) => new ae(c.data)
2990
2990
  );
2991
2991
  }
2992
2992
  /**
@@ -3021,7 +3021,7 @@ class Et extends $e {
3021
3021
  );
3022
3022
  }
3023
3023
  }
3024
- class Wt extends h {
3024
+ class Jt extends h {
3025
3025
  /**
3026
3026
  * Возвращает список ролей ценообразования.
3027
3027
  *
@@ -3082,7 +3082,7 @@ class Wt extends h {
3082
3082
  return this.get(
3083
3083
  `/internal/price/roles/rules/categories/${r}`,
3084
3084
  {},
3085
- (e) => e.data.map((s) => new We(s))
3085
+ (e) => e.data.map((s) => new Je(s))
3086
3086
  );
3087
3087
  }
3088
3088
  /**
@@ -3097,11 +3097,11 @@ class Wt extends h {
3097
3097
  return this.patch(
3098
3098
  `/internal/price/roles/rules/categories/${r}`,
3099
3099
  e,
3100
- (s) => s.data.map((i) => new We(i))
3100
+ (s) => s.data.map((i) => new Je(i))
3101
3101
  );
3102
3102
  }
3103
3103
  }
3104
- class Jt extends $e {
3104
+ class Vt extends $e {
3105
3105
  /**
3106
3106
  * Возвращает пагинированный список свойств.
3107
3107
  *
@@ -3177,7 +3177,7 @@ class Jt extends $e {
3177
3177
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3178
3178
  */
3179
3179
  getProductProperties(r) {
3180
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
3180
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3181
3181
  }
3182
3182
  /**
3183
3183
  * Возвращает значение свойства продукта.
@@ -3187,7 +3187,7 @@ class Jt extends $e {
3187
3187
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3188
3188
  */
3189
3189
  getProductProperty(r, e) {
3190
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new z(s.data));
3190
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3191
3191
  }
3192
3192
  /**
3193
3193
  * Обновляет значение свойства продукта.
@@ -3198,7 +3198,7 @@ class Jt extends $e {
3198
3198
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3199
3199
  */
3200
3200
  updateProductProperty(r, e, s) {
3201
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
3201
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3202
3202
  }
3203
3203
  /**
3204
3204
  * Удаляет значение свойства продукта.
@@ -3323,7 +3323,7 @@ class Jt extends $e {
3323
3323
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3324
3324
  */
3325
3325
  getCategoryProperties(r) {
3326
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
3326
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3327
3327
  }
3328
3328
  /**
3329
3329
  * Возвращает значение свойства категории.
@@ -3333,7 +3333,7 @@ class Jt extends $e {
3333
3333
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3334
3334
  */
3335
3335
  getCategoryProperty(r, e) {
3336
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new z(s.data));
3336
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3337
3337
  }
3338
3338
  /**
3339
3339
  * Обновляет значение свойства категории.
@@ -3344,7 +3344,7 @@ class Jt extends $e {
3344
3344
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3345
3345
  */
3346
3346
  updateCategoryProperty(r, e, s) {
3347
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
3347
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3348
3348
  }
3349
3349
  /**
3350
3350
  * Удаляет значение свойства категории.
@@ -3473,7 +3473,7 @@ class Jt extends $e {
3473
3473
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3474
3474
  }
3475
3475
  }
3476
- function Ve(n, r, e) {
3476
+ function Ke(n, r, e) {
3477
3477
  let s;
3478
3478
  return n.some((i) => {
3479
3479
  if (i.type === e && i.id === r)
@@ -3482,35 +3482,35 @@ function Ve(n, r, e) {
3482
3482
  return !1;
3483
3483
  const o = i;
3484
3484
  if (o.products && o.products.length > 0) {
3485
- const c = Ve(o.products, r, e);
3485
+ const c = Ke(o.products, r, e);
3486
3486
  if (c)
3487
3487
  return s = c, !0;
3488
3488
  }
3489
3489
  if (o.categories && o.categories.length > 0) {
3490
- const c = Ve(o.categories, r, e);
3490
+ const c = Ke(o.categories, r, e);
3491
3491
  if (c)
3492
3492
  return s = c, !0;
3493
3493
  }
3494
3494
  return !1;
3495
3495
  }), s;
3496
3496
  }
3497
- function Ke(n) {
3497
+ function Qe(n) {
3498
3498
  const r = [];
3499
3499
  return n.forEach((e) => {
3500
3500
  if (r.push(e), e.type === "category") {
3501
3501
  const s = e;
3502
- s.products && s.products.length > 0 && r.push(...Ke(s.products)), s.categories && s.categories.length > 0 && r.push(...Ke(s.categories));
3502
+ s.products && s.products.length > 0 && r.push(...Qe(s.products)), s.categories && s.categories.length > 0 && r.push(...Qe(s.categories));
3503
3503
  }
3504
3504
  }), r;
3505
3505
  }
3506
- var it = /* @__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))(it || {}), k = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(k || {});
3507
- class nt extends a {
3506
+ var nt = /* @__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))(nt || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3507
+ class ot extends P {
3508
3508
  }
3509
- class gr extends a {
3509
+ class mr extends P {
3510
3510
  }
3511
- class Vt extends a {
3511
+ class Kt extends P {
3512
3512
  }
3513
- class ot extends a {
3513
+ class ct extends P {
3514
3514
  }
3515
3515
  class Ce extends b {
3516
3516
  /**
@@ -3531,34 +3531,34 @@ class Ce extends b {
3531
3531
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
3532
3532
  }
3533
3533
  }
3534
- class j extends a {
3534
+ class F extends P {
3535
3535
  /**
3536
3536
  * Возвращает сгенерированную запись-описание физического лица.
3537
3537
  */
3538
3538
  static generatePersonItem() {
3539
- return new j({
3539
+ return new F({
3540
3540
  id: 1,
3541
3541
  guid: "",
3542
- slug: k.Person,
3542
+ slug: q.Person,
3543
3543
  name: ""
3544
3544
  });
3545
3545
  }
3546
3546
  }
3547
- class ct extends a {
3547
+ class lt extends P {
3548
3548
  }
3549
- class lt extends a {
3549
+ class ut extends P {
3550
3550
  }
3551
- class re extends a {
3551
+ class re extends P {
3552
3552
  }
3553
- class ut extends a {
3553
+ class pt extends P {
3554
3554
  }
3555
- class pt extends a {
3555
+ class ht extends P {
3556
3556
  }
3557
- class mr extends a {
3557
+ class fr extends P {
3558
3558
  }
3559
- class fr extends a {
3559
+ class yr extends P {
3560
3560
  }
3561
- class Ne extends H {
3561
+ class qe extends j {
3562
3562
  /**
3563
3563
  * Инициализирует экземпляр класса {@link BankAccount}.
3564
3564
  *
@@ -3589,7 +3589,7 @@ class Ne extends H {
3589
3589
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new Ce(e.currency));
3590
3590
  }
3591
3591
  }
3592
- class Oe extends b {
3592
+ class Ne extends b {
3593
3593
  /**
3594
3594
  * Инициализирует экземпляр класса {@link Contact}.
3595
3595
  *
@@ -3608,7 +3608,7 @@ class Oe extends b {
3608
3608
  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;
3609
3609
  }
3610
3610
  }
3611
- class M extends Oe {
3611
+ class M extends Ne {
3612
3612
  /**
3613
3613
  * Инициализирует экземпляр класса {@link ContactPerson}.
3614
3614
  *
@@ -3640,10 +3640,10 @@ class M extends Oe {
3640
3640
  * Дата и время последнего удаления.
3641
3641
  */
3642
3642
  t(this, "deletedAt");
3643
- 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;
3643
+ 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) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3644
3644
  }
3645
3645
  }
3646
- class yr extends b {
3646
+ class wr extends b {
3647
3647
  /**
3648
3648
  * Инициализирует экземпляр класса {@link ContragentBase}.
3649
3649
  *
@@ -3659,11 +3659,11 @@ class yr extends b {
3659
3659
  /**
3660
3660
  * Данные об организационно-правовой форме.
3661
3661
  */
3662
- t(this, "opf", j.generatePersonItem());
3662
+ t(this, "opf", F.generatePersonItem());
3663
3663
  /**
3664
3664
  * Направление продаж.
3665
3665
  */
3666
- t(this, "salesDirection", new N());
3666
+ t(this, "salesDirection", new x());
3667
3667
  /**
3668
3668
  * Группа партнеров (направление деятельности).
3669
3669
  */
@@ -3701,7 +3701,7 @@ class yr extends b {
3701
3701
  */
3702
3702
  t(this, "updater");
3703
3703
  if (e) {
3704
- 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 F(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new F(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3704
+ 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) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3705
3705
  const s = [];
3706
3706
  e.contacts.forEach((i) => {
3707
3707
  s.push(new M(i));
@@ -3710,13 +3710,13 @@ class yr extends b {
3710
3710
  if (e.bankAccounts) {
3711
3711
  const s = [];
3712
3712
  e.bankAccounts.forEach((i) => {
3713
- s.push(new Ne(i));
3713
+ s.push(new qe(i));
3714
3714
  }), this.bankAccounts = s;
3715
3715
  }
3716
3716
  }
3717
3717
  }
3718
3718
  }
3719
- class ht extends yr {
3719
+ class gt extends wr {
3720
3720
  /**
3721
3721
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3722
3722
  *
@@ -3726,7 +3726,7 @@ class ht extends yr {
3726
3726
  super(r);
3727
3727
  }
3728
3728
  }
3729
- class wr extends yr {
3729
+ class Cr extends wr {
3730
3730
  /**
3731
3731
  * Инициализирует экземпляр класса {@link ContragentIc}.
3732
3732
  *
@@ -3769,7 +3769,7 @@ class wr extends yr {
3769
3769
  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 ?? "");
3770
3770
  }
3771
3771
  }
3772
- class Cr extends wr {
3772
+ class vr extends Cr {
3773
3773
  /**
3774
3774
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3775
3775
  *
@@ -3784,7 +3784,7 @@ class Cr extends wr {
3784
3784
  e && (this.kpp = e.kpp ?? "");
3785
3785
  }
3786
3786
  }
3787
- class gt extends Cr {
3787
+ class mt extends vr {
3788
3788
  /**
3789
3789
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3790
3790
  *
@@ -3815,18 +3815,18 @@ class ve {
3815
3815
  */
3816
3816
  static createInstance(r) {
3817
3817
  switch (r.opf.slug) {
3818
- case k.Ic:
3819
- return new wr(r);
3820
- case k.UlR:
3818
+ case q.Ic:
3821
3819
  return new Cr(r);
3822
- case k.UlNr:
3823
- return new gt(r);
3820
+ case q.UlR:
3821
+ return new vr(r);
3822
+ case q.UlNr:
3823
+ return new mt(r);
3824
3824
  default:
3825
- return new ht(r);
3825
+ return new gt(r);
3826
3826
  }
3827
3827
  }
3828
3828
  }
3829
- class _e extends H {
3829
+ class xe extends j {
3830
3830
  /**
3831
3831
  * Инициализирует экземпляр класса {@link ContactRelation}.
3832
3832
  *
@@ -3841,7 +3841,7 @@ class _e extends H {
3841
3841
  this.isPrimary = e.isPrimary;
3842
3842
  }
3843
3843
  }
3844
- class mt extends M {
3844
+ class ft extends M {
3845
3845
  /**
3846
3846
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3847
3847
  *
@@ -3866,10 +3866,10 @@ class mt extends M {
3866
3866
  */
3867
3867
  addresses: []
3868
3868
  });
3869
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new _e(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new _e(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new _e(s))));
3869
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new xe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new xe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new xe(s))));
3870
3870
  }
3871
3871
  }
3872
- class ae extends Vr {
3872
+ class Pe extends Kr {
3873
3873
  /**
3874
3874
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3875
3875
  *
@@ -3906,10 +3906,10 @@ class ae extends Vr {
3906
3906
  * Признак того, что указанный адрес является адресом транспортной компании.
3907
3907
  */
3908
3908
  t(this, "isTransportCompanyAddress");
3909
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new cr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3909
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new lr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3910
3910
  }
3911
3911
  }
3912
- class Qe extends ge {
3912
+ class Ye extends ge {
3913
3913
  /**
3914
3914
  * Инициализирует экземпляр класса {@link Client}.
3915
3915
  *
@@ -3920,53 +3920,57 @@ class Qe extends ge {
3920
3920
  var s, i, o, c;
3921
3921
  super(e);
3922
3922
  /**
3923
- * Список контрагентов клиента.
3923
+ * @inheritDoc
3924
3924
  */
3925
3925
  t(this, "contragents");
3926
3926
  /**
3927
- * Список групп партнеров (направлений деятельности), к которым относится клиент.
3927
+ * @inheritDoc
3928
3928
  */
3929
3929
  t(this, "partnerGroups");
3930
3930
  /**
3931
- * Список контактов клиента.
3931
+ * @inheritDoc
3932
3932
  */
3933
3933
  t(this, "contacts");
3934
3934
  /**
3935
- * Список адресов доставки.
3935
+ * @inheritDoc
3936
3936
  */
3937
3937
  t(this, "deliveryAddresses");
3938
3938
  /**
3939
- * Канал первичного интереса.
3939
+ * @inheritDoc
3940
3940
  */
3941
3941
  t(this, "channelPrimaryInterest");
3942
3942
  /**
3943
- * Источник первичного интереса.
3943
+ * @inheritDoc
3944
3944
  */
3945
3945
  t(this, "sourcePrimaryInterest");
3946
3946
  /**
3947
- * Предпочтительный тип доставки.
3947
+ * @inheritDoc
3948
3948
  */
3949
3949
  t(this, "preferredDeliveryType");
3950
3950
  /**
3951
- * Первичный спрос.
3951
+ * @inheritDoc
3952
3952
  */
3953
3953
  t(this, "primaryDemand");
3954
3954
  /**
3955
- * Признак того, что клиента необходимо исключить из прозвонника.
3955
+ * @inheritDoc
3956
3956
  */
3957
3957
  t(this, "isExcludedFromMsCallsToClients");
3958
3958
  /**
3959
- * Предпочтительный склад для самовывоза.
3959
+ * @inheritDoc
3960
+ */
3961
+ t(this, "reasonExcludedFromMsCallsToClients");
3962
+ /**
3963
+ * @inheritDoc
3960
3964
  */
3961
3965
  t(this, "preferredWarehouse");
3962
3966
  /**
3963
- * Дополнительные данные о клиенте.
3967
+ * @inheritDoc
3964
3968
  */
3965
3969
  t(this, "extraData");
3966
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ae(u))) ?? [], this.channelPrimaryInterest = new gr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new fr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(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 De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3970
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new mr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3967
3971
  }
3968
3972
  }
3969
- class Kt {
3973
+ class Qt {
3970
3974
  /**
3971
3975
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3972
3976
  *
@@ -3974,99 +3978,103 @@ class Kt {
3974
3978
  */
3975
3979
  constructor(r) {
3976
3980
  /**
3977
- * Идентификатор клиента.
3981
+ * @inheritDoc
3978
3982
  */
3979
3983
  t(this, "id");
3980
3984
  /**
3981
- * Название клиента.
3985
+ * @inheritDoc
3982
3986
  */
3983
3987
  t(this, "name");
3984
3988
  /**
3985
- * Альтернативное название клиента.
3989
+ * @inheritDoc
3986
3990
  */
3987
3991
  t(this, "alternativeName");
3988
3992
  /**
3989
- * Строка запроса для поиска клиентов.
3993
+ * @inheritDoc
3990
3994
  */
3991
3995
  t(this, "searchTerm");
3992
3996
  /**
3993
- * Данные о городах.
3997
+ * @inheritDoc
3994
3998
  */
3995
3999
  t(this, "cities");
3996
4000
  /**
3997
- * Данные о регионе.
4001
+ * @inheritDoc
3998
4002
  */
3999
4003
  t(this, "region");
4000
4004
  /**
4001
- * Данные о стране.
4005
+ * @inheritDoc
4002
4006
  */
4003
4007
  t(this, "country");
4004
4008
  /**
4005
- * Номер телефона.
4009
+ * @inheritDoc
4006
4010
  */
4007
4011
  t(this, "phone");
4008
4012
  /**
4009
- * Адрес электронной почты.
4013
+ * @inheritDoc
4010
4014
  */
4011
4015
  t(this, "email");
4012
4016
  /**
4013
- * Признак необходимости отображения скрытых/деактивированных клиентов.
4017
+ * @inheritDoc
4014
4018
  */
4015
4019
  t(this, "isActive");
4016
4020
  /**
4017
- * Период регистрации.
4021
+ * @inheritDoc
4018
4022
  */
4019
- t(this, "createdAt", new O());
4023
+ t(this, "createdAt", new k());
4020
4024
  /**
4021
- * Период последнего входа.
4025
+ * @inheritDoc
4022
4026
  */
4023
- t(this, "lastLoginDate", new O());
4027
+ t(this, "lastLoginDate", new k());
4024
4028
  /**
4025
- * Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
4029
+ * @inheritDoc
4026
4030
  */
4027
4031
  t(this, "lastLoginDateHasOrder");
4028
4032
  /**
4029
- * Данные о менеджерах клиентов.
4033
+ * @inheritDoc
4030
4034
  */
4031
4035
  t(this, "managers");
4032
4036
  /**
4033
- * Признак того, что наличие менеджера у клиента является обязательным.
4037
+ * @inheritDoc
4034
4038
  */
4035
4039
  t(this, "isManagerRequired");
4036
4040
  /**
4037
- * Направления продаж.
4041
+ * @inheritDoc
4038
4042
  */
4039
4043
  t(this, "salesDirections");
4040
4044
  /**
4041
- * ИНН контрагента.
4045
+ * @inheritDoc
4042
4046
  */
4043
4047
  t(this, "contragentInn");
4044
4048
  /**
4045
- * Тип организационно-правовой формы контрагента.
4049
+ * @inheritDoc
4046
4050
  */
4047
4051
  t(this, "contragentType");
4048
4052
  /**
4049
- * Предпочитаемый тип доставки.
4053
+ * @inheritDoc
4050
4054
  */
4051
4055
  t(this, "preferredDeliveryType");
4052
4056
  /**
4053
- * Группы партнеров (направление деятельности).
4057
+ * @inheritDoc
4054
4058
  */
4055
4059
  t(this, "partnerGroups");
4056
4060
  /**
4057
- * Данные контактного лица.
4061
+ * @inheritDoc
4058
4062
  */
4059
4063
  t(this, "contact");
4060
4064
  /**
4061
- * Данные о параметрах поиска последнего заказа который сделал пользователь.
4065
+ * @inheritDoc
4062
4066
  */
4063
4067
  t(this, "lastOrder");
4068
+ /**
4069
+ * @inheritDoc
4070
+ */
4071
+ t(this, "isExcludedFromMsCallsToClients");
4064
4072
  var e, s, i, o, c, u;
4065
- 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 Me(p)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new re(p)), this.contact = new Oe(r == null ? void 0 : r.contact), this.lastOrder = {
4066
- createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4073
+ 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 Be(p)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(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 Te(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new x(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new re(p)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
4074
+ createdAt: new k((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4067
4075
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
4068
4076
  isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
4069
- };
4077
+ }, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
4070
4078
  }
4071
4079
  /**
4072
4080
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -4075,15 +4083,6 @@ class Kt {
4075
4083
  */
4076
4084
  resetFilterValue(r) {
4077
4085
  switch (r) {
4078
- case "id":
4079
- case "phone":
4080
- case "email":
4081
- case "name":
4082
- case "alternativeName":
4083
- case "searchTerm":
4084
- case "contragentInn":
4085
- this[r] = void 0;
4086
- break;
4087
4086
  case "cities":
4088
4087
  this.cities = [];
4089
4088
  break;
@@ -4099,9 +4098,6 @@ class Kt {
4099
4098
  case "lastLoginDate":
4100
4099
  this.lastLoginDate.from = null, this.lastLoginDate.to = null;
4101
4100
  break;
4102
- case "lastLoginDateHasOrder":
4103
- this.lastLoginDateHasOrder = void 0;
4104
- break;
4105
4101
  case "lastOrder":
4106
4102
  this.lastOrder = {};
4107
4103
  break;
@@ -4112,7 +4108,7 @@ class Kt {
4112
4108
  this.salesDirections = [];
4113
4109
  break;
4114
4110
  case "contragentType":
4115
- this.contragentType = new j();
4111
+ this.contragentType = new F();
4116
4112
  break;
4117
4113
  case "preferredDeliveryType":
4118
4114
  this.preferredDeliveryType = new X();
@@ -4121,7 +4117,10 @@ class Kt {
4121
4117
  this.partnerGroups = [];
4122
4118
  break;
4123
4119
  case "contact":
4124
- this.contact = new Oe();
4120
+ this.contact = new Ne();
4121
+ break;
4122
+ default:
4123
+ this[r] = void 0;
4125
4124
  break;
4126
4125
  }
4127
4126
  return this;
@@ -4136,11 +4135,11 @@ class Kt {
4136
4135
  return Object.keys(this).forEach((c) => {
4137
4136
  const u = this[c];
4138
4137
  // eslint-disable-next-line prettier/prettier
4139
- D(u) || C(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
4138
+ D(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4140
4139
  }), !((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;
4141
4140
  }
4142
4141
  }
4143
- class vr extends H {
4142
+ class Pr extends j {
4144
4143
  /**
4145
4144
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4146
4145
  *
@@ -4160,10 +4159,10 @@ class vr extends H {
4160
4159
  * Признак того, что заказ подтвержден в 1С.
4161
4160
  */
4162
4161
  t(this, "isApproved1c");
4163
- this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new F(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4162
+ this.createdAt = w(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4164
4163
  }
4165
4164
  }
4166
- class ft extends b {
4165
+ class yt extends b {
4167
4166
  /**
4168
4167
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4169
4168
  *
@@ -4196,10 +4195,10 @@ class ft extends b {
4196
4195
  * Список менеджеров.
4197
4196
  */
4198
4197
  t(this, "managers");
4199
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new vr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new N(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
4198
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Pr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
4200
4199
  }
4201
4200
  }
4202
- class yt {
4201
+ class wt {
4203
4202
  /**
4204
4203
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4205
4204
  *
@@ -4217,7 +4216,7 @@ class yt {
4217
4216
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4218
4217
  }
4219
4218
  }
4220
- class Qt extends yt {
4219
+ class Yt extends wt {
4221
4220
  /**
4222
4221
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4223
4222
  *
@@ -4248,7 +4247,7 @@ class Qt extends yt {
4248
4247
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4249
4248
  }
4250
4249
  }
4251
- class Yt {
4250
+ class Xt {
4252
4251
  /**
4253
4252
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4254
4253
  *
@@ -4266,7 +4265,144 @@ class Yt {
4266
4265
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4267
4266
  }
4268
4267
  }
4269
- class Xt extends $e {
4268
+ class L extends $e {
4269
+ /**
4270
+ * Преобразует данные о клиенте в данные требуемые для запроса.
4271
+ *
4272
+ * @param client Данные о клиенте.
4273
+ */
4274
+ static transformClientDataToRequest(r) {
4275
+ var s;
4276
+ const e = {
4277
+ name: r.name,
4278
+ alternative_name: r.alternativeName,
4279
+ partner_groups: r.partnerGroups.map((i) => i.id),
4280
+ phone: r.phone,
4281
+ email: r.email,
4282
+ city_id: r.city.id,
4283
+ get_news: r.getNews,
4284
+ channel_primary_interest_id: r.channelPrimaryInterest.id,
4285
+ source_primary_interest_id: r.sourcePrimaryInterest.id,
4286
+ primary_demand: r.primaryDemand,
4287
+ is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4288
+ preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4289
+ };
4290
+ return r.isExcludedFromMsCallsToClients && (e.reason_excluded_from_ms_calls_to_clients = r.reasonExcludedFromMsCallsToClients), e;
4291
+ }
4292
+ /**
4293
+ * Преобразует данные о контрагенте клиента в данные требуемые для запроса.
4294
+ *
4295
+ * @param contragent Данные о контрагенте клиента.
4296
+ */
4297
+ static transformContragentClientDataToRequest(r) {
4298
+ var c, u, p, v, m, S, _, d;
4299
+ let e;
4300
+ const s = r, i = r, o = r;
4301
+ switch (r.opf.slug) {
4302
+ case q.Ic:
4303
+ e = {
4304
+ opf: s.opf.slug,
4305
+ name: s.name,
4306
+ alternative_name: s.alternativeName,
4307
+ partner_group_id: (c = s.partnerGroup) == null ? void 0 : c.id,
4308
+ manager_id: (u = s.manager) == null ? void 0 : u.id,
4309
+ comment: s.comment,
4310
+ inn: s.inn,
4311
+ okpo: s.okpo,
4312
+ director_name: s.directorName,
4313
+ director_position: s.directorPosition,
4314
+ director_acts_on: s.directorActsOn,
4315
+ legal_address: s.legalAddress,
4316
+ postal_address: s.postalAddress,
4317
+ actual_address: s.actualAddress
4318
+ };
4319
+ break;
4320
+ case q.UlR:
4321
+ e = {
4322
+ opf: i.opf.slug,
4323
+ name: i.name,
4324
+ alternative_name: i.alternativeName,
4325
+ partner_group_id: (p = i.partnerGroup) == null ? void 0 : p.id,
4326
+ manager_id: (v = i.manager) == null ? void 0 : v.id,
4327
+ comment: i.comment,
4328
+ inn: i.inn,
4329
+ kpp: i.kpp,
4330
+ okpo: i.okpo,
4331
+ director_name: i.directorName,
4332
+ director_position: i.directorPosition,
4333
+ director_acts_on: i.directorActsOn,
4334
+ legal_address: i.legalAddress,
4335
+ postal_address: i.postalAddress,
4336
+ actual_address: i.actualAddress
4337
+ };
4338
+ break;
4339
+ case q.UlNr:
4340
+ e = {
4341
+ opf: o.opf.slug,
4342
+ name: o.name,
4343
+ alternative_name: o.alternativeName,
4344
+ partner_group_id: (m = o.partnerGroup) == null ? void 0 : m.id,
4345
+ manager_id: (S = o.manager) == null ? void 0 : S.id,
4346
+ comment: o.comment,
4347
+ director_name: o.directorName,
4348
+ director_position: o.directorPosition,
4349
+ director_acts_on: o.directorActsOn,
4350
+ legal_address: o.legalAddress,
4351
+ postal_address: o.postalAddress,
4352
+ actual_address: o.actualAddress,
4353
+ registration_country_id: o.registrationCountry.id,
4354
+ registration_number: o.registrationNumber,
4355
+ tax_number: o.taxNumber || void 0
4356
+ };
4357
+ break;
4358
+ default:
4359
+ e = {
4360
+ opf: r.opf.slug,
4361
+ name: r.name,
4362
+ alternative_name: r.alternativeName,
4363
+ partner_group_id: (_ = r.partnerGroup) == null ? void 0 : _.id,
4364
+ manager_id: (d = r.manager) == null ? void 0 : d.id,
4365
+ comment: r.comment
4366
+ };
4367
+ break;
4368
+ }
4369
+ return e;
4370
+ }
4371
+ /**
4372
+ * Преобразует данные об адресе доставки клиенту в данные требуемые для запроса.
4373
+ *
4374
+ * @param deliveryAddress Данные об адресе доставки клиенту.
4375
+ */
4376
+ static transformClientDeliveryAddressToRequest(r) {
4377
+ var s, i;
4378
+ const e = {
4379
+ address: r.address,
4380
+ is_one_time: r.isOneTime ?? !1,
4381
+ is_transport_company_address: r.isTransportCompanyAddress ?? !1,
4382
+ comment: r.comment ?? ""
4383
+ };
4384
+ return r.coordinates && (e.coordinates = {
4385
+ lat: (s = r.coordinates) == null ? void 0 : s.lat,
4386
+ long: (i = r.coordinates) == null ? void 0 : i.long
4387
+ }), r.operatingHours && (e.operating_hours = {
4388
+ from: r.operatingHours.from,
4389
+ to: r.operatingHours.to
4390
+ }), e;
4391
+ }
4392
+ /**
4393
+ * Преобразует данные о банковских реквизитах контрагента в данные требуемые для запроса.
4394
+ *
4395
+ * @param bankAccount Данные о банковских реквизитах контрагента.
4396
+ */
4397
+ static transformClientContragentBankAccountToRequest(r) {
4398
+ return {
4399
+ bank_name: r.bankName,
4400
+ bic: r.bic,
4401
+ account_number: r.accountNumber,
4402
+ correspondent_account: r.correspondentAccount,
4403
+ currency_id: r.currency.id
4404
+ };
4405
+ }
4270
4406
  /**
4271
4407
  * Возвращает данные об указанном клиенте.
4272
4408
  *
@@ -4274,7 +4410,7 @@ class Xt extends $e {
4274
4410
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4275
4411
  */
4276
4412
  getClient(r) {
4277
- return this.get(`/internal/clients/${r}`, {}, (e) => new Qe(e.data));
4413
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ye(e.data));
4278
4414
  }
4279
4415
  /**
4280
4416
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4302,7 +4438,7 @@ class Xt extends $e {
4302
4438
  return this.getClientsList({
4303
4439
  groupOp: "and",
4304
4440
  groups: [],
4305
- filters: [{ field: "phone", op: He.Contains, value: r }]
4441
+ filters: [{ field: "phone", op: Ee.Contains, value: r }]
4306
4442
  });
4307
4443
  }
4308
4444
  /**
@@ -4316,7 +4452,7 @@ class Xt extends $e {
4316
4452
  const s = r.map((i) => i.id);
4317
4453
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4318
4454
  let o = [];
4319
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ft(c))), o;
4455
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new yt(c))), o;
4320
4456
  });
4321
4457
  }
4322
4458
  /**
@@ -4328,70 +4464,42 @@ class Xt extends $e {
4328
4464
  getAllClientContacts(r) {
4329
4465
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4330
4466
  let s = [];
4331
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new mt(i))), s;
4467
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ft(i))), s;
4332
4468
  });
4333
4469
  }
4334
4470
  /**
4335
4471
  * Создаёт нового клиента на основе указанных данных.
4336
4472
  *
4337
4473
  * @param client Данные о клиенте.
4338
- * @param validationFieldResultData Список полей, для которых необходимо
4339
- * установить данные об ошибках валидации
4340
- * в случае ошибок в запросах.
4474
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4341
4475
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4342
4476
  */
4343
4477
  createClientCommonData(r, e = {}) {
4344
- var s;
4345
- return this.post(
4346
- "/internal/clients",
4347
- {
4348
- name: r.name,
4349
- alternative_name: r.alternativeName,
4350
- partner_groups: r.partnerGroups.map((i) => i.id),
4351
- phone: r.phone,
4352
- email: r.email,
4353
- city_id: r.city.id,
4354
- get_news: r.getNews,
4355
- channel_primary_interest_id: r.channelPrimaryInterest.id,
4356
- source_primary_interest_id: r.sourcePrimaryInterest.id,
4357
- primary_demand: r.primaryDemand,
4358
- is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4359
- preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4360
- },
4361
- (i) => new Qe(i.data),
4362
- e
4363
- );
4478
+ return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ye(s.data), e);
4364
4479
  }
4365
4480
  /**
4366
4481
  * Обновляет данные указанного клиента.
4367
4482
  *
4368
4483
  * @param client Данные о клиенте.
4369
- * @param validationFieldResultData Список полей, для которых необходимо
4370
- * установить данные об ошибках валидации
4371
- * в случае ошибок в запросах.
4484
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4372
4485
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4373
4486
  */
4374
4487
  updateClientCommonData(r, e = {}) {
4375
- var s;
4376
- return this.patch(
4377
- `/internal/clients/${r.id}`,
4378
- {
4379
- name: r.name,
4380
- alternative_name: r.alternativeName,
4381
- partner_groups: r.partnerGroups.map((i) => i.id),
4382
- phone: r.phone,
4383
- email: r.email,
4384
- city_id: r.city.id,
4385
- get_news: r.getNews,
4386
- channel_primary_interest_id: r.channelPrimaryInterest.id,
4387
- source_primary_interest_id: r.sourcePrimaryInterest.id,
4388
- primary_demand: r.primaryDemand,
4389
- is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4390
- preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4391
- },
4392
- void 0,
4393
- e
4394
- );
4488
+ return this.patch(`/internal/clients/${r.id}`, L.transformClientDataToRequest(r), void 0, e);
4489
+ }
4490
+ /**
4491
+ * Обновляет данные "Не беспокоить" указанного клиента.
4492
+ *
4493
+ * @param client Данные о клиенте.
4494
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4495
+ * @see /doc/api/internal#/Клиенты/api_internal_client_change
4496
+ */
4497
+ updateClientNotDistribCommonData(r, e = {}) {
4498
+ const s = {
4499
+ get_news: r.getNews,
4500
+ is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients
4501
+ };
4502
+ return r.isExcludedFromMsCallsToClients && (s.reason_excluded_from_ms_calls_to_clients = r.reasonExcludedFromMsCallsToClients), this.patch(`/internal/clients/${r.id}`, s, void 0, e);
4395
4503
  }
4396
4504
  /**
4397
4505
  * Изменяет пароль клиента.
@@ -4399,9 +4507,7 @@ class Xt extends $e {
4399
4507
  * @param clientId Идентификатор клиента которому необходимо поменять пароль.
4400
4508
  * @param password Новый пароль.
4401
4509
  * @param passwordConfirm Пароль-подтверждение.
4402
- * @param validationFieldResultData Список полей, для которых необходимо
4403
- * установить данные об ошибках валидации
4404
- * в случае ошибок в запросах.
4510
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4405
4511
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4406
4512
  */
4407
4513
  changeClientPassword(r, e, s, i = {}) {
@@ -4462,87 +4568,14 @@ class Xt extends $e {
4462
4568
  *
4463
4569
  * @param clientId Идентификатор клиента, к которому необходимо привязать контрагента.
4464
4570
  * @param contragent Данные о контрагенте клиента.
4465
- * @param validationFieldResultData Список полей, для которых необходимо
4466
- * установить данные об ошибках валидации
4467
- * в случае ошибок в запросах.
4571
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4468
4572
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4469
4573
  */
4470
4574
  createContragentClientData(r, e, s = {}) {
4471
- var p, f, m, A, I, d, S, _;
4472
- let i;
4473
- const o = e, c = e, u = e;
4474
- switch (e.opf.slug) {
4475
- case k.Ic:
4476
- i = {
4477
- opf: o.opf.slug,
4478
- name: o.name,
4479
- alternative_name: o.alternativeName,
4480
- partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4481
- manager_id: (f = o.manager) == null ? void 0 : f.id,
4482
- comment: o.comment,
4483
- inn: o.inn,
4484
- okpo: o.okpo,
4485
- director_name: o.directorName,
4486
- director_position: o.directorPosition,
4487
- director_acts_on: o.directorActsOn,
4488
- legal_address: o.legalAddress,
4489
- postal_address: o.postalAddress,
4490
- actual_address: o.actualAddress
4491
- };
4492
- break;
4493
- case k.UlR:
4494
- i = {
4495
- opf: c.opf.slug,
4496
- name: c.name,
4497
- alternative_name: c.alternativeName,
4498
- partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
4499
- manager_id: (A = c.manager) == null ? void 0 : A.id,
4500
- comment: c.comment,
4501
- inn: c.inn,
4502
- kpp: c.kpp,
4503
- okpo: c.okpo,
4504
- director_name: c.directorName,
4505
- director_position: c.directorPosition,
4506
- director_acts_on: c.directorActsOn,
4507
- legal_address: c.legalAddress,
4508
- postal_address: c.postalAddress,
4509
- actual_address: c.actualAddress
4510
- };
4511
- break;
4512
- case k.UlNr:
4513
- i = {
4514
- opf: u.opf.slug,
4515
- name: u.name,
4516
- alternative_name: u.alternativeName,
4517
- partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4518
- manager_id: (d = u.manager) == null ? void 0 : d.id,
4519
- comment: u.comment,
4520
- director_name: u.directorName,
4521
- director_position: u.directorPosition,
4522
- director_acts_on: u.directorActsOn,
4523
- legal_address: u.legalAddress,
4524
- postal_address: u.postalAddress,
4525
- actual_address: u.actualAddress,
4526
- registration_country_id: u.registrationCountry.id,
4527
- registration_number: u.registrationNumber,
4528
- tax_number: u.taxNumber || void 0
4529
- };
4530
- break;
4531
- default:
4532
- i = {
4533
- opf: e.opf.slug,
4534
- name: e.name,
4535
- alternative_name: e.alternativeName,
4536
- partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
4537
- manager_id: (_ = e.manager) == null ? void 0 : _.id,
4538
- comment: e.comment
4539
- };
4540
- break;
4541
- }
4542
4575
  return this.post(
4543
4576
  `/internal/clients/${r}/contragents`,
4544
- i,
4545
- (U) => ve.createInstance(U.data),
4577
+ L.transformContragentClientDataToRequest(e),
4578
+ (i) => ve.createInstance(i.data),
4546
4579
  s
4547
4580
  );
4548
4581
  }
@@ -4551,87 +4584,14 @@ class Xt extends $e {
4551
4584
  *
4552
4585
  * @param clientId Идентификатор клиента, к которому привязан контрагент.
4553
4586
  * @param contragent Данные о контрагенте клиента.
4554
- * @param validationFieldResultData Список полей, для которых необходимо
4555
- * установить данные об ошибках валидации
4556
- * в случае ошибок в запросах.
4587
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4557
4588
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4558
4589
  */
4559
4590
  updateContragentClientData(r, e, s = {}) {
4560
- var p, f, m, A, I, d, S, _;
4561
- let i;
4562
- const o = e, c = e, u = e;
4563
- switch (e.opf.slug) {
4564
- case k.Ic:
4565
- i = {
4566
- opf: o.opf.slug,
4567
- name: o.name,
4568
- alternative_name: o.alternativeName,
4569
- partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4570
- manager_id: (f = o.manager) == null ? void 0 : f.id,
4571
- comment: o.comment,
4572
- inn: o.inn,
4573
- okpo: o.okpo,
4574
- director_name: o.directorName,
4575
- director_position: o.directorPosition,
4576
- director_acts_on: o.directorActsOn,
4577
- legal_address: o.legalAddress,
4578
- postal_address: o.postalAddress,
4579
- actual_address: o.actualAddress
4580
- };
4581
- break;
4582
- case k.UlR:
4583
- i = {
4584
- opf: c.opf.slug,
4585
- name: c.name,
4586
- alternative_name: c.alternativeName,
4587
- partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
4588
- manager_id: (A = c.manager) == null ? void 0 : A.id,
4589
- comment: c.comment,
4590
- inn: c.inn,
4591
- kpp: c.kpp,
4592
- okpo: c.okpo,
4593
- director_name: c.directorName,
4594
- director_position: c.directorPosition,
4595
- director_acts_on: c.directorActsOn,
4596
- legal_address: c.legalAddress,
4597
- postal_address: c.postalAddress,
4598
- actual_address: c.actualAddress
4599
- };
4600
- break;
4601
- case k.UlNr:
4602
- i = {
4603
- opf: u.opf.slug,
4604
- name: u.name,
4605
- alternative_name: u.alternativeName,
4606
- partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4607
- manager_id: (d = u.manager) == null ? void 0 : d.id,
4608
- comment: u.comment,
4609
- director_name: u.directorName,
4610
- director_position: u.directorPosition,
4611
- director_acts_on: u.directorActsOn,
4612
- legal_address: u.legalAddress,
4613
- postal_address: u.postalAddress,
4614
- actual_address: u.actualAddress,
4615
- registration_country_id: u.registrationCountry.id,
4616
- registration_number: u.registrationNumber,
4617
- tax_number: u.taxNumber || void 0
4618
- };
4619
- break;
4620
- default:
4621
- i = {
4622
- opf: e.opf.slug,
4623
- name: e.name,
4624
- alternative_name: e.alternativeName,
4625
- partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
4626
- manager_id: (_ = e.manager) == null ? void 0 : _.id,
4627
- comment: e.comment
4628
- };
4629
- break;
4630
- }
4631
4591
  return this.patch(
4632
4592
  `/internal/clients/${r}/contragents/${e.id}`,
4633
- i,
4634
- (U) => ve.createInstance(U.data),
4593
+ L.transformContragentClientDataToRequest(e),
4594
+ (i) => ve.createInstance(i.data),
4635
4595
  s
4636
4596
  );
4637
4597
  }
@@ -4650,55 +4610,30 @@ class Xt extends $e {
4650
4610
  *
4651
4611
  * @param clientId Идентификатор клиента, к которому необходимо привязать адрес доставки.
4652
4612
  * @param deliveryAddress Данные об адресе доставки.
4653
- * @param validationFieldResultData Список полей, для которых необходимо
4654
- * установить данные об ошибках валидации
4655
- * в случае ошибок в запросах.
4613
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4656
4614
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_create
4657
4615
  */
4658
4616
  createClientDeliveryAddress(r, e, s = {}) {
4659
- var o, c;
4660
- const i = {
4661
- address: e.address,
4662
- is_one_time: e.isOneTime ?? !1,
4663
- is_transport_company_address: e.isTransportCompanyAddress ?? !1,
4664
- comment: e.comment ?? ""
4665
- };
4666
- return e.coordinates && (i.coordinates = {
4667
- lat: (o = e.coordinates) == null ? void 0 : o.lat,
4668
- long: (c = e.coordinates) == null ? void 0 : c.long
4669
- }), e.operatingHours && (i.operating_hours = {
4670
- from: e.operatingHours.from,
4671
- to: e.operatingHours.to
4672
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ae(u.data), s);
4617
+ return this.post(
4618
+ `/internal/clients/${r}/delivery-addresses`,
4619
+ L.transformClientDeliveryAddressToRequest(e),
4620
+ (i) => new Pe(i.data),
4621
+ s
4622
+ );
4673
4623
  }
4674
4624
  /**
4675
4625
  * Обновляет данные об адресе доставки клиента.
4676
4626
  *
4677
4627
  * @param clientId Идентификатор клиента, к которому привязан адрес доставки.
4678
4628
  * @param deliveryAddress Данные об адресе доставки.
4679
- * @param validationFieldResultData Список полей, для которых необходимо
4680
- * установить данные об ошибках валидации
4681
- * в случае ошибок в запросах.
4629
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4682
4630
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
4683
4631
  */
4684
4632
  updateClientDeliveryAddress(r, e, s = {}) {
4685
- var o, c;
4686
- const i = {
4687
- address: e.address,
4688
- is_one_time: e.isOneTime ?? !1,
4689
- is_transport_company_address: e.isTransportCompanyAddress ?? !1,
4690
- comment: e.comment ?? ""
4691
- };
4692
- return e.operatingHours && (i.operating_hours = {
4693
- from: e.operatingHours.from,
4694
- to: e.operatingHours.to
4695
- }), e.coordinates && (i.coordinates = {
4696
- lat: (o = e.coordinates) == null ? void 0 : o.lat,
4697
- long: (c = e.coordinates) == null ? void 0 : c.long
4698
- }), this.patch(
4633
+ return this.patch(
4699
4634
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4700
- i,
4701
- (u) => new ae(u.data),
4635
+ L.transformClientDeliveryAddressToRequest(e),
4636
+ (i) => new Pe(i.data),
4702
4637
  s
4703
4638
  );
4704
4639
  }
@@ -4716,25 +4651,16 @@ class Xt extends $e {
4716
4651
  * Создаёт новую запись банковских реквизитов контрагента.
4717
4652
  *
4718
4653
  * @param clientId Идентификатор клиента, к которому необходимо привязать банковские реквизиты.
4719
- * @param contragentId Идентификатор контрагента, к которому необходимо
4720
- * привязать банковские реквизиты.
4654
+ * @param contragentId Идентификатор контрагента, к которому необходимо привязать банковские реквизиты.
4721
4655
  * @param bankAccount Данные банковских реквизитов.
4722
- * @param validationFieldResultData Список полей, для которых необходимо
4723
- * установить данные об ошибках валидации
4724
- * в случае ошибок в запросах.
4656
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4725
4657
  * @see /doc/api/internal#/Банковские реквизиты/api_internal_client_contragent_bank_accounts_create
4726
4658
  */
4727
4659
  createContragentBankAccount(r, e, s, i = {}) {
4728
4660
  return this.post(
4729
4661
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4730
- {
4731
- bank_name: s.bankName,
4732
- bic: s.bic,
4733
- account_number: s.accountNumber,
4734
- correspondent_account: s.correspondentAccount,
4735
- currency_id: s.currency.id
4736
- },
4737
- (o) => new Ne(o.data),
4662
+ L.transformClientContragentBankAccountToRequest(s),
4663
+ (o) => new qe(o.data),
4738
4664
  i
4739
4665
  );
4740
4666
  }
@@ -4742,25 +4668,16 @@ class Xt extends $e {
4742
4668
  * Обновляет данные о банковских реквизитах контрагента.
4743
4669
  *
4744
4670
  * @param clientId Идентификатор клиента, к которому необходимо привязать банковские реквизиты.
4745
- * @param contragentId Идентификатор контрагента, к которому необходимо
4746
- * привязать банковские реквизиты.
4671
+ * @param contragentId Идентификатор контрагента, к которому необходимо привязать банковские реквизиты.
4747
4672
  * @param bankAccount Данные банковских реквизитов.
4748
- * @param validationFieldResultData Список полей, для которых необходимо
4749
- * установить данные об ошибках валидации
4750
- * в случае ошибок в запросах.
4673
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4751
4674
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
4752
4675
  */
4753
4676
  updateContragentBankAccount(r, e, s, i = {}) {
4754
4677
  return this.patch(
4755
4678
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4756
- {
4757
- bank_name: s.bankName,
4758
- bic: s.bic,
4759
- account_number: s.accountNumber,
4760
- correspondent_account: s.correspondentAccount,
4761
- currency_id: s.currency.id
4762
- },
4763
- (o) => new Ne(o.data),
4679
+ L.transformClientContragentBankAccountToRequest(s),
4680
+ (o) => new qe(o.data),
4764
4681
  i
4765
4682
  );
4766
4683
  }
@@ -4768,8 +4685,7 @@ class Xt extends $e {
4768
4685
  * Удаляет указанные банковские реквизиты контрагента.
4769
4686
  *
4770
4687
  * @param clientId Идентификатор клиента, к которому необходимо привязать банковские реквизиты.
4771
- * @param contragentId Идентификатор контрагента, к которому необходимо
4772
- * привязать банковские реквизиты.
4688
+ * @param contragentId Идентификатор контрагента, к которому необходимо привязать банковские реквизиты.
4773
4689
  * @param bankAccount Данные банковских реквизитов.
4774
4690
  * @see /doc/api/internal#/Банковские реквизиты/api_internal_client_contragent_bank_accounts_delete
4775
4691
  */
@@ -4781,9 +4697,7 @@ class Xt extends $e {
4781
4697
  *
4782
4698
  * @param clientId Идентификатор клиента, к которому привязано контактное лицо.
4783
4699
  * @param contactPerson Данные о контактном лице.
4784
- * @param validationFieldResultData Список полей, для которых необходимо
4785
- * установить данные об ошибках валидации
4786
- * в случае ошибок в запросах.
4700
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4787
4701
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
4788
4702
  */
4789
4703
  createClientContact(r, e, s = {}) {
@@ -4805,9 +4719,7 @@ class Xt extends $e {
4805
4719
  *
4806
4720
  * @param clientId Идентификатор клиента, к которому привязано контактное лицо.
4807
4721
  * @param contactPerson Данные о контактном лице.
4808
- * @param validationFieldResultData Список полей, для которых необходимо
4809
- * установить данные об ошибках валидации
4810
- * в случае ошибок в запросах.
4722
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4811
4723
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_change
4812
4724
  */
4813
4725
  updateClientContact(r, e, s = {}) {
@@ -4851,9 +4763,7 @@ class Xt extends $e {
4851
4763
  * @param clientId Идентификатор клиента, к которому привязано контактное лицо.
4852
4764
  * @param contragentId Идентификатор контрагента, к которому привязано контактное лицо.
4853
4765
  * @param contactPerson Данные о контактном лице.
4854
- * @param validationFieldResultData Список полей, для которых необходимо
4855
- * установить данные об ошибках валидации
4856
- * в случае ошибок в запросах.
4766
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4857
4767
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
4858
4768
  */
4859
4769
  createContragentContact(r, e, s, i = {}) {
@@ -4900,9 +4810,7 @@ class Xt extends $e {
4900
4810
  * @param clientId Идентификатор клиента, к которому привязано контактное лицо.
4901
4811
  * @param deliveryAddressId Идентификатор контрагента, к которому привязано контактное лицо.
4902
4812
  * @param contactPerson Данные о контактном лице.
4903
- * @param validationFieldResultData Список полей, для которых необходимо
4904
- * установить данные об ошибках валидации
4905
- * в случае ошибок в запросах.
4813
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4906
4814
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
4907
4815
  */
4908
4816
  createDeliveryAddressContact(r, e, s, i = {}) {
@@ -4952,9 +4860,7 @@ class Xt extends $e {
4952
4860
  * @param clientId Идентификатор клиента, к которому привязано контактное лицо.
4953
4861
  * @param contactPerson Данные о контактном лице.
4954
4862
  * @param extraData Дополнительные данные
4955
- * @param validationFieldResultData Список полей, для которых необходимо
4956
- * установить данные об ошибках валидации
4957
- * в случае ошибок в запросах.
4863
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4958
4864
  */
4959
4865
  createContact(r, e, s, i = {}) {
4960
4866
  var c, u;
@@ -5003,7 +4909,7 @@ const V = class V extends h {
5003
4909
  * Время кэширования данных ответов на запросы (секунд).
5004
4910
  */
5005
4911
  t(this, "responseDataCacheTimeout");
5006
- this.responseDataCacheTimeout = T.getConfig().http.responseDataCacheTimeout;
4912
+ this.responseDataCacheTimeout = $.getConfig().http.responseDataCacheTimeout;
5007
4913
  }
5008
4914
  /**
5009
4915
  * Возвращает кэшированные данные.
@@ -5025,7 +4931,7 @@ const V = class V extends h {
5025
4931
  */
5026
4932
  cacheResponse(e, s) {
5027
4933
  V.responseDataCache.set(e, {
5028
- validTo: dr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4934
+ validTo: kr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5029
4935
  val: s
5030
4936
  });
5031
4937
  }
@@ -5042,8 +4948,8 @@ const V = class V extends h {
5042
4948
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5043
4949
  const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
5044
4950
  return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
5045
- const f = p.map((m) => Fe.instanceInitializer(e, m));
5046
- return i && f && this.cacheResponse(s, f), f;
4951
+ const v = p.map((m) => je.instanceInitializer(e, m));
4952
+ return i && v && this.cacheResponse(s, v), v;
5047
4953
  });
5048
4954
  }
5049
4955
  };
@@ -5094,7 +5000,7 @@ class es extends h {
5094
5000
  const i = this.get(
5095
5001
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
5096
5002
  { params: e },
5097
- (c) => new x(c.data)
5003
+ (c) => new I(c.data)
5098
5004
  );
5099
5005
  return i.catch((c) => {
5100
5006
  this.errorResponseHandler(c, s);
@@ -5142,13 +5048,13 @@ class rs {
5142
5048
  * Возвращает диапазон дат по умолчанию.
5143
5049
  */
5144
5050
  static defaultDateRanges() {
5145
- const r = kr(/* @__PURE__ */ new Date(), 1);
5051
+ const r = _r(/* @__PURE__ */ new Date(), 1);
5146
5052
  return {
5147
5053
  // 'Следующий рабочий день' - это значение по-умолчанию
5148
- nextWorkingDay: { label: "Следующий рабочий день", from: Gr(r), to: Ur(r) },
5149
- today: { label: "Сегодня", from: Le(), to: qr() },
5150
- yesterday: { label: "Вчера", from: Or(), to: Nr() },
5151
- tomorrow: { label: "Завтра", from: xr(), to: Lr() }
5054
+ nextWorkingDay: { label: "Следующий рабочий день", from: Mr(r), to: Fr(r) },
5055
+ today: { label: "Сегодня", from: de(), to: Ur() },
5056
+ yesterday: { label: "Вчера", from: Nr(), to: qr() },
5057
+ tomorrow: { label: "Завтра", from: Or(), to: dr() }
5152
5058
  };
5153
5059
  }
5154
5060
  }
@@ -5192,13 +5098,13 @@ const K = class K {
5192
5098
  * Список единиц измерения линейной величины.
5193
5099
  */
5194
5100
  t(K, "linearValues", ["пог.м.", "м.", "м2"]);
5195
- let Ye = K;
5101
+ let Xe = K;
5196
5102
  class ts {
5197
5103
  /**
5198
5104
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5199
5105
  */
5200
5106
  static generateUndefinedManagerInstance() {
5201
- return new Ae({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5107
+ return new Te({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5202
5108
  }
5203
5109
  /**
5204
5110
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5209,7 +5115,7 @@ class ts {
5209
5115
  return r.id === 0 && r.guid === "-undefined-";
5210
5116
  }
5211
5117
  }
5212
- class wt extends pe {
5118
+ class Ct extends pe {
5213
5119
  /**
5214
5120
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5215
5121
  */
@@ -5217,18 +5123,18 @@ class wt extends pe {
5217
5123
  const r = "/internal/managers", e = pe.getCachedResponse(r);
5218
5124
  if (e)
5219
5125
  return e;
5220
- const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(Ae, o));
5126
+ const i = (await this.get(r)).data.map((o) => je.instanceInitializer(Te, o));
5221
5127
  return this.cacheResponse(r, i), i;
5222
5128
  }
5223
5129
  }
5224
- class ar extends vr {
5130
+ class Rr extends Pr {
5225
5131
  /**
5226
5132
  * Инициализирует экземпляр класса {@link OrderInfo}.
5227
5133
  *
5228
5134
  * @param data Данные для первоначальной инициализации.
5229
5135
  */
5230
5136
  constructor(e) {
5231
- var s, i, o, c, u, p, f, m;
5137
+ var s, i, o, c, u, p, v, m;
5232
5138
  super(e);
5233
5139
  /**
5234
5140
  * Краткие данные о клиенте.
@@ -5276,13 +5182,13 @@ class ar extends vr {
5276
5182
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5277
5183
  }, this.delivery = {
5278
5184
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5279
- 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(),
5280
- address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ae(e.delivery.address) : void 0,
5185
+ date: w((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5186
+ address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new Pe(e.delivery.address) : void 0,
5281
5187
  warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new De(e.delivery.warehouse) : void 0
5282
- }, this.attachedUser = new F(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;
5188
+ }, this.attachedUser = new U(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) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(e == null ? void 0 : e.processedAt) ? C(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;
5283
5189
  }
5284
5190
  }
5285
- class Ct extends H {
5191
+ class vt extends j {
5286
5192
  /**
5287
5193
  * Инициализирует экземпляр класса {@link OrderProduct}.
5288
5194
  *
@@ -5365,7 +5271,7 @@ class Ct extends H {
5365
5271
  this.product = new Z(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;
5366
5272
  }
5367
5273
  }
5368
- class vt extends ar {
5274
+ class Pt extends Rr {
5369
5275
  /**
5370
5276
  * Инициализирует экземпляр класса {@link Order}.
5371
5277
  *
@@ -5405,7 +5311,7 @@ class vt extends ar {
5405
5311
  * Признак, что разрешена передача заказа в работу без оплаты.
5406
5312
  */
5407
5313
  t(this, "isAllowProcessingWithoutPayment");
5408
- this.products = (e.products ?? []).map((s) => new Ct(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new a(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5314
+ this.products = (e.products ?? []).map((s) => new vt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5409
5315
  }
5410
5316
  }
5411
5317
  class ss extends $e {
@@ -5421,7 +5327,7 @@ class ss extends $e {
5421
5327
  getOrders(r, e, s) {
5422
5328
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5423
5329
  const o = { ...i.data };
5424
- return o.data = o.data.map((c) => new ar(c)), o;
5330
+ return o.data = o.data.map((c) => new Rr(c)), o;
5425
5331
  });
5426
5332
  }
5427
5333
  /**
@@ -5439,10 +5345,10 @@ class ss extends $e {
5439
5345
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5440
5346
  */
5441
5347
  getOrder(r) {
5442
- return this.get(`/internal/orders/${r}`, {}, (e) => new vt(e.data));
5348
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Pt(e.data));
5443
5349
  }
5444
5350
  }
5445
- class Ie {
5351
+ class Le {
5446
5352
  /**
5447
5353
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5448
5354
  *
@@ -5469,12 +5375,12 @@ class Ie {
5469
5375
  * Источник клиентской цены.
5470
5376
  */
5471
5377
  t(this, "source");
5472
- this.client = new ge(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) ?? je.Product;
5378
+ this.client = new ge(r == null ? void 0 : r.client), this.product = new I(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;
5473
5379
  }
5474
5380
  }
5475
- const de = (n) => {
5381
+ const ke = (n) => {
5476
5382
  var r, e, s, i, o;
5477
- return n ? sr(
5383
+ return n ? ir(
5478
5384
  {
5479
5385
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5480
5386
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5483,9 +5389,9 @@ const de = (n) => {
5483
5389
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5484
5390
  hideNotActive: n.hideNotActive
5485
5391
  },
5486
- (c) => D(c) || (Q(c) || ir(c)) && Y(c)
5392
+ (c) => D(c) || (Q(c) || nr(c)) && Y(c)
5487
5393
  ) : {};
5488
- }, Xe = (n) => {
5394
+ }, Ze = (n) => {
5489
5395
  const r = {};
5490
5396
  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;
5491
5397
  };
@@ -5503,10 +5409,10 @@ class is extends h {
5503
5409
  return this.get(
5504
5410
  `/internal/price/products/${r}/analyze`,
5505
5411
  {
5506
- ...Xe(e),
5507
- filters: de(s)
5412
+ ...Ze(e),
5413
+ filters: ke(s)
5508
5414
  },
5509
- (i) => i.data.map((o) => new Ie(o))
5415
+ (i) => i.data.map((o) => new Le(o))
5510
5416
  );
5511
5417
  }
5512
5418
  /**
@@ -5522,10 +5428,10 @@ class is extends h {
5522
5428
  return this.get(
5523
5429
  `/internal/price/categories/${r}/analyze`,
5524
5430
  {
5525
- ...Xe(e),
5526
- filters: de(s)
5431
+ ...Ze(e),
5432
+ filters: ke(s)
5527
5433
  },
5528
- (i) => i.data.map((o) => new Ie(o))
5434
+ (i) => i.data.map((o) => new Le(o))
5529
5435
  );
5530
5436
  }
5531
5437
  /**
@@ -5544,13 +5450,13 @@ class is extends h {
5544
5450
  `/internal/price/categories/${r}/analyze/square`,
5545
5451
  {
5546
5452
  ...e,
5547
- filters: de(s)
5453
+ filters: ke(s)
5548
5454
  },
5549
- (i) => i.data.map((o) => new Ie(o))
5455
+ (i) => i.data.map((o) => new Le(o))
5550
5456
  );
5551
5457
  }
5552
5458
  }
5553
- class at {
5459
+ class Rt {
5554
5460
  /**
5555
5461
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5556
5462
  *
@@ -5597,10 +5503,10 @@ class at {
5597
5503
  * @inheritDoc
5598
5504
  */
5599
5505
  t(this, "currency");
5600
- 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 oe(r.product) : void 0, this.client = r.client ? new F(r.client) : void 0, this.executor = r.executor ? new F(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
5506
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = w(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
5601
5507
  }
5602
5508
  }
5603
- class Pt extends oe {
5509
+ class At extends oe {
5604
5510
  /**
5605
5511
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
5606
5512
  *
@@ -5612,7 +5518,7 @@ class Pt extends oe {
5612
5518
  * @inheritDoc
5613
5519
  */
5614
5520
  t(this, "history");
5615
- this.history = Pe(e.history, (s) => new at(s));
5521
+ this.history = Re(e.history, (s) => new Rt(s));
5616
5522
  }
5617
5523
  }
5618
5524
  class ns extends h {
@@ -5624,22 +5530,22 @@ class ns extends h {
5624
5530
  * @see /docs/api#/operations/api_internal_price_history_get
5625
5531
  */
5626
5532
  getProductPriceHistory(r) {
5627
- var o, c, u, p, f;
5628
- const e = T.getConfig().dateFormats.api, s = sr(
5533
+ var o, c, u, p, v;
5534
+ const e = $.getConfig().dateFormats.api, s = ir(
5629
5535
  ye(r, {
5630
5536
  costDate: {
5631
- from: ke((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5632
- to: ke((u = r.costDate) == null ? void 0 : u.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
5537
+ from: _e((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5538
+ to: _e((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
5633
5539
  }
5634
5540
  }),
5635
- (m) => D(m) || (Q(m) || ir(m)) && Y(m)
5636
- ), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
5541
+ (m) => D(m) || (Q(m) || nr(m)) && Y(m)
5542
+ ), i = ((v = r.product) == null ? void 0 : v[0]) ?? 0;
5637
5543
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
5638
- new Pt(ye(m[0], { history: m }))
5544
+ new At(ye(m[0], { history: m }))
5639
5545
  ]);
5640
5546
  }
5641
5547
  }
5642
- class Ze {
5548
+ class er {
5643
5549
  /**
5644
5550
  * Инициализирует экземпляр класса {@link RecommendationsList}.
5645
5551
  *
@@ -5665,7 +5571,7 @@ class os extends h {
5665
5571
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
5666
5572
  */
5667
5573
  getProductCategoryRecommendations(r) {
5668
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ze(e.data));
5574
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new er(e.data));
5669
5575
  }
5670
5576
  /**
5671
5577
  * Возвращает данные о рекомендациях указанного продукта.
@@ -5674,7 +5580,7 @@ class os extends h {
5674
5580
  * @see /docs/api#/operations/api_internal_recommendations_product_get
5675
5581
  */
5676
5582
  getProductRecommendations(r) {
5677
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ze(e.data));
5583
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new er(e.data));
5678
5584
  }
5679
5585
  /**
5680
5586
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -5703,7 +5609,7 @@ class os extends h {
5703
5609
  });
5704
5610
  }
5705
5611
  }
5706
- class $ extends pe {
5612
+ class T extends pe {
5707
5613
  /**
5708
5614
  * Возвращает {@link Promise} для получения данных указанного справочника.
5709
5615
  *
@@ -5712,20 +5618,20 @@ class $ extends pe {
5712
5618
  * и использовать в случае аналогичных запросов.
5713
5619
  */
5714
5620
  getReference(r, e = !1) {
5715
- return this.getTypedDataArrayRequester(nt, `/internal/references/${r}`, e);
5621
+ return this.getTypedDataArrayRequester(ot, `/internal/references/${r}`, e);
5716
5622
  }
5717
5623
  /**
5718
5624
  * Возвращает {@link Promise} для получения справочника данных о канале
5719
5625
  * первичного интереса.
5720
5626
  */
5721
5627
  getChannelPrimaryInterest() {
5722
- return this.getTypedDataArrayRequester(gr, "/internal/references/channel-primary-interest", !0);
5628
+ return this.getTypedDataArrayRequester(mr, "/internal/references/channel-primary-interest", !0);
5723
5629
  }
5724
5630
  /**
5725
5631
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5726
5632
  */
5727
5633
  getContactPositions() {
5728
- return this.getTypedDataArrayRequester(ot, "/internal/references/contact-position", !0);
5634
+ return this.getTypedDataArrayRequester(ct, "/internal/references/contact-position", !0);
5729
5635
  }
5730
5636
  /**
5731
5637
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -5744,43 +5650,43 @@ class $ extends pe {
5744
5650
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
5745
5651
  */
5746
5652
  getOpf() {
5747
- return this.getTypedDataArrayRequester(j, "/public/references/opf", !0);
5653
+ return this.getTypedDataArrayRequester(F, "/public/references/opf", !0);
5748
5654
  }
5749
5655
  /**
5750
5656
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5751
5657
  */
5752
5658
  getOrderPaymentStatuses() {
5753
- return this.getTypedDataArrayRequester(ct, "/public/references/order-payment-status", !0);
5659
+ return this.getTypedDataArrayRequester(lt, "/public/references/order-payment-status", !0);
5754
5660
  }
5755
5661
  /**
5756
5662
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5757
5663
  */
5758
5664
  getOrderStatuses() {
5759
- return this.getTypedDataArrayRequester(lt, "/public/references/order-status", !0);
5665
+ return this.getTypedDataArrayRequester(ut, "/public/references/order-status", !0);
5760
5666
  }
5761
5667
  /**
5762
5668
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5763
5669
  */
5764
5670
  getPaymentTypes() {
5765
- return this.getTypedDataArrayRequester(ut, "/public/references/payment-type", !0);
5671
+ return this.getTypedDataArrayRequester(pt, "/public/references/payment-type", !0);
5766
5672
  }
5767
5673
  /**
5768
5674
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5769
5675
  */
5770
5676
  getResourceTypes() {
5771
- return this.getTypedDataArrayRequester(mr, "/internal/references/resource-type", !0);
5677
+ return this.getTypedDataArrayRequester(fr, "/internal/references/resource-type", !0);
5772
5678
  }
5773
5679
  /**
5774
5680
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5775
5681
  */
5776
5682
  getSalesDirections() {
5777
- return this.getTypedDataArrayRequester(N, "/public/references/sales-direction", !0);
5683
+ return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
5778
5684
  }
5779
5685
  /**
5780
5686
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5781
5687
  */
5782
5688
  getSourcePrimaryInterest() {
5783
- return this.getTypedDataArrayRequester(fr, "/internal/references/source-primary-interest", !0);
5689
+ return this.getTypedDataArrayRequester(yr, "/internal/references/source-primary-interest", !0);
5784
5690
  }
5785
5691
  /**
5786
5692
  * Выполняет поиск данных о городах по терму в названии.
@@ -5788,7 +5694,7 @@ class $ extends pe {
5788
5694
  * @param term Терм поиска.
5789
5695
  */
5790
5696
  searchCity(r) {
5791
- return this.getTypedDataArrayRequester(Me, `/internal/references/city-with-region-and-country/search?term=${r}`);
5697
+ return this.getTypedDataArrayRequester(Be, `/internal/references/city-with-region-and-country/search?term=${r}`);
5792
5698
  }
5793
5699
  /**
5794
5700
  * Выполняет поиск данных о регионах по терму в названии.
@@ -5822,23 +5728,23 @@ class $ extends pe {
5822
5728
  * Возвращает {@link Promise} для получения справочника типов свойств.
5823
5729
  */
5824
5730
  getPropertyTypes() {
5825
- return this.getTypedDataArrayRequester(hr, "/internal/references/property-type", !0);
5731
+ return this.getTypedDataArrayRequester(gr, "/internal/references/property-type", !0);
5826
5732
  }
5827
5733
  /**
5828
5734
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5829
5735
  */
5830
5736
  getPriceCoefficients() {
5831
- return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
5737
+ return this.getTypedDataArrayRequester(Ae, "/internal/references/price-coefficient", !0);
5832
5738
  }
5833
5739
  /**
5834
5740
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5835
5741
  */
5836
5742
  getProductFileType() {
5837
- return this.getTypedDataArrayRequester(pt, "/public/references/product-file-type", !0);
5743
+ return this.getTypedDataArrayRequester(ht, "/public/references/product-file-type", !0);
5838
5744
  }
5839
5745
  }
5840
- const R = te("__references_private", () => {
5841
- 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), I = y(void 0), d = y(void 0), S = y(void 0), _ = y(void 0), U = y(void 0), l = y(void 0);
5746
+ const A = te("__references_private", () => {
5747
+ const n = f({}), r = f(void 0), e = f(void 0), s = f(void 0), i = f(void 0), o = f(void 0), c = f(void 0), u = f(void 0), p = f(void 0), v = f(void 0), m = f(void 0), S = f(void 0), _ = f(void 0), d = f(void 0), G = f(void 0), B = f(void 0), be = f(void 0), l = f(void 0);
5842
5748
  return {
5843
5749
  /**
5844
5750
  * Список загружаемых/загруженных на данный момент значений.
@@ -5879,7 +5785,7 @@ const R = te("__references_private", () => {
5879
5785
  /**
5880
5786
  * Справочник типов оплаты заказов.
5881
5787
  */
5882
- paymentTypeReference: f,
5788
+ paymentTypeReference: v,
5883
5789
  /**
5884
5790
  * Справочник групп партнеров.
5885
5791
  */
@@ -5887,11 +5793,11 @@ const R = te("__references_private", () => {
5887
5793
  /**
5888
5794
  * Справочник типов файлов продукктов/категорий.
5889
5795
  */
5890
- productFileTypeReference: A,
5796
+ productFileTypeReference: S,
5891
5797
  /**
5892
5798
  * Справочник типов ресурсов.
5893
5799
  */
5894
- resourceTypesReference: I,
5800
+ resourceTypesReference: _,
5895
5801
  /**
5896
5802
  * Справочник направлений продаж.
5897
5803
  */
@@ -5899,106 +5805,106 @@ const R = te("__references_private", () => {
5899
5805
  /**
5900
5806
  * Справочник источников первичного интереса.
5901
5807
  */
5902
- sourcePrimaryInterestReference: S,
5808
+ sourcePrimaryInterestReference: G,
5903
5809
  /**
5904
5810
  * Справочник складов.
5905
5811
  */
5906
- warehousesReference: _,
5812
+ warehousesReference: B,
5907
5813
  /**
5908
5814
  * Справочник типов свойств.
5909
5815
  */
5910
- propertyTypesReference: U,
5816
+ propertyTypesReference: be,
5911
5817
  /**
5912
5818
  * Справочник коэффициентов цен.
5913
5819
  */
5914
5820
  priceCoefficientsReference: l
5915
5821
  };
5916
5822
  }), cs = te("references", () => {
5917
- const n = P(() => {
5918
- const l = R();
5919
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance($).getChannelPrimaryInterest().then((g) => {
5823
+ const n = R(() => {
5824
+ const l = A();
5825
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
5920
5826
  l.channelPrimaryInterestReference = g;
5921
- }).catch(w)), l.channelPrimaryInterestReference;
5922
- }), r = P(() => {
5923
- const l = R();
5924
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance($).getContactPositions().then((g) => {
5827
+ }).catch(y)), l.channelPrimaryInterestReference;
5828
+ }), r = R(() => {
5829
+ const l = A();
5830
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
5925
5831
  l.contactPositionsReference = g;
5926
- }).catch(w)), l.contactPositionsReference;
5927
- }), e = P(() => {
5928
- const l = R();
5929
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance($).getCurrency().then((g) => {
5832
+ }).catch(y)), l.contactPositionsReference;
5833
+ }), e = R(() => {
5834
+ const l = A();
5835
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
5930
5836
  l.currencyReference = g;
5931
- }).catch(w)), l.currencyReference;
5932
- }), s = P(() => {
5933
- const l = R();
5934
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance($).getOpf().then((g) => {
5837
+ }).catch(y)), l.currencyReference;
5838
+ }), s = R(() => {
5839
+ const l = A();
5840
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
5935
5841
  l.opfReference = g;
5936
- }).catch(w)), l.opfReference;
5937
- }), i = P(() => {
5938
- const l = R();
5939
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance($).getOrderPaymentStatuses().then((g) => {
5842
+ }).catch(y)), l.opfReference;
5843
+ }), i = R(() => {
5844
+ const l = A();
5845
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
5940
5846
  l.orderPaymentStatusReference = g;
5941
- }).catch(w)), l.orderPaymentStatusReference;
5942
- }), o = P(() => {
5943
- const l = R();
5944
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance($).getOrderStatuses().then((g) => {
5847
+ }).catch(y)), l.orderPaymentStatusReference;
5848
+ }), o = R(() => {
5849
+ const l = A();
5850
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
5945
5851
  l.orderStatusReference = g;
5946
- }).catch(w)), l.orderStatusReference;
5947
- }), c = P(() => {
5948
- const l = R();
5949
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance($).getPaymentTypes().then((g) => {
5852
+ }).catch(y)), l.orderStatusReference;
5853
+ }), c = R(() => {
5854
+ const l = A();
5855
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
5950
5856
  l.paymentTypeReference = g;
5951
- }).catch(w)), l.paymentTypeReference;
5952
- }), u = P(() => {
5953
- const l = R();
5954
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance($).getPartnerGroup().then((g) => {
5857
+ }).catch(y)), l.paymentTypeReference;
5858
+ }), u = R(() => {
5859
+ const l = A();
5860
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
5955
5861
  l.partnerGroupReference = g;
5956
- }).catch(w)), l.partnerGroupReference;
5957
- }), p = P(() => {
5958
- const l = R();
5959
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance($).getProductFileType().then((g) => {
5862
+ }).catch(y)), l.partnerGroupReference;
5863
+ }), p = R(() => {
5864
+ const l = A();
5865
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
5960
5866
  l.productFileTypeReference = g;
5961
- }).catch(w)), l.productFileTypeReference;
5962
- }), f = P(() => {
5963
- const l = R();
5964
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance($).getResourceTypes().then((g) => {
5867
+ }).catch(y)), l.productFileTypeReference;
5868
+ }), v = R(() => {
5869
+ const l = A();
5870
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
5965
5871
  l.resourceTypesReference = g;
5966
- }).catch(w)), l.resourceTypesReference;
5967
- }), m = P(() => {
5968
- const l = R();
5969
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance($).getSalesDirections().then((g) => {
5872
+ }).catch(y)), l.resourceTypesReference;
5873
+ }), m = R(() => {
5874
+ const l = A();
5875
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
5970
5876
  l.salesDirectionsReference = g;
5971
- }).catch(w)), l.salesDirectionsReference;
5972
- }), A = P(() => {
5973
- const l = R();
5974
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((g) => {
5877
+ }).catch(y)), l.salesDirectionsReference;
5878
+ }), S = R(() => {
5879
+ const l = A();
5880
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
5975
5881
  l.sourcePrimaryInterestReference = g;
5976
- }).catch(w)), l.sourcePrimaryInterestReference;
5977
- }), I = P(() => {
5978
- const l = R();
5979
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance($).getDeliveryTypes().then((g) => {
5882
+ }).catch(y)), l.sourcePrimaryInterestReference;
5883
+ }), _ = R(() => {
5884
+ const l = A();
5885
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
5980
5886
  l.deliveryTypeReference = g;
5981
- }).catch(w)), l.deliveryTypeReference;
5982
- }), d = P(() => {
5983
- const l = R();
5984
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(wt).getManagers().then((g) => {
5887
+ }).catch(y)), l.deliveryTypeReference;
5888
+ }), d = R(() => {
5889
+ const l = A();
5890
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ct).getManagers().then((g) => {
5985
5891
  l.managersList = g;
5986
- }).catch(w)), l.managersList;
5987
- }), S = P(() => {
5988
- const l = R();
5989
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance($).getWarehouses().then((g) => {
5892
+ }).catch(y)), l.managersList;
5893
+ }), G = R(() => {
5894
+ const l = A();
5895
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
5990
5896
  l.warehousesReference = g;
5991
- }).catch(w)), l.warehousesReference;
5992
- }), _ = P(() => {
5993
- const l = R();
5994
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance($).getPropertyTypes().then((g) => {
5897
+ }).catch(y)), l.warehousesReference;
5898
+ }), B = R(() => {
5899
+ const l = A();
5900
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
5995
5901
  l.propertyTypesReference = g;
5996
- }).catch(w)), l.propertyTypesReference;
5997
- }), U = P(() => {
5998
- const l = R();
5999
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance($).getPriceCoefficients().then((g) => {
5902
+ }).catch(y)), l.propertyTypesReference;
5903
+ }), be = R(() => {
5904
+ const l = A();
5905
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
6000
5906
  l.priceCoefficientsReference = g;
6001
- }).catch(w)), l.priceCoefficientsReference;
5907
+ }).catch(y)), l.priceCoefficientsReference;
6002
5908
  });
6003
5909
  return {
6004
5910
  /**
@@ -6040,7 +5946,7 @@ const R = te("__references_private", () => {
6040
5946
  /**
6041
5947
  * Справочник типов ресурсов.
6042
5948
  */
6043
- resourceTypesReference: f,
5949
+ resourceTypesReference: v,
6044
5950
  /**
6045
5951
  * Справочник направлений продаж.
6046
5952
  */
@@ -6048,11 +5954,11 @@ const R = te("__references_private", () => {
6048
5954
  /**
6049
5955
  * Справочник каналов первичного интереса.
6050
5956
  */
6051
- sourcePrimaryInterestsReference: A,
5957
+ sourcePrimaryInterestsReference: S,
6052
5958
  /**
6053
5959
  * Справочник типов доставки.
6054
5960
  */
6055
- deliveryTypeReference: I,
5961
+ deliveryTypeReference: _,
6056
5962
  /**
6057
5963
  * Список менеджеров.
6058
5964
  */
@@ -6060,18 +5966,18 @@ const R = te("__references_private", () => {
6060
5966
  /**
6061
5967
  * Справочник складов.
6062
5968
  */
6063
- warehousesReference: S,
5969
+ warehousesReference: G,
6064
5970
  /**
6065
5971
  * Справочник типов свойств.
6066
5972
  */
6067
- propertyTypesReference: _,
5973
+ propertyTypesReference: B,
6068
5974
  /**
6069
5975
  * Справочник коэффициентов цен.
6070
5976
  */
6071
- priceCoefficientsReference: U
5977
+ priceCoefficientsReference: be
6072
5978
  };
6073
5979
  });
6074
- class Rt {
5980
+ class Dt {
6075
5981
  /**
6076
5982
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6077
5983
  *
@@ -6089,7 +5995,7 @@ class Rt {
6089
5995
  this.name = r.name, this.content = r.content;
6090
5996
  }
6091
5997
  }
6092
- class er {
5998
+ class rr {
6093
5999
  /**
6094
6000
  * Инициализирует экземпляр класса {@link Seo}.
6095
6001
  *
@@ -6125,7 +6031,7 @@ class er {
6125
6031
  */
6126
6032
  t(this, "meta");
6127
6033
  var e;
6128
- this.resourceType = new mr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new Rt(s))) ?? [];
6034
+ this.resourceType = new fr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new Dt(s))) ?? [];
6129
6035
  }
6130
6036
  }
6131
6037
  class ls extends h {
@@ -6136,7 +6042,7 @@ class ls extends h {
6136
6042
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6137
6043
  */
6138
6044
  getResourceSeoData(r, e) {
6139
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new er(s.data));
6045
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new rr(s.data));
6140
6046
  }
6141
6047
  /**
6142
6048
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6147,7 +6053,7 @@ class ls extends h {
6147
6053
  * в случае ошибок в запросах.
6148
6054
  */
6149
6055
  saveResourceSeoData(r, e = {}) {
6150
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new er(s.data), e);
6056
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new rr(s.data), e);
6151
6057
  }
6152
6058
  /**
6153
6059
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6206,8 +6112,8 @@ class us extends h {
6206
6112
  });
6207
6113
  }
6208
6114
  }
6209
- var Dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Dt || {});
6210
- class At extends pr {
6115
+ var Tt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Tt || {});
6116
+ class $t extends hr {
6211
6117
  /**
6212
6118
  * Инициализирует экземпляр класса {@link User}.
6213
6119
  *
@@ -6235,7 +6141,7 @@ class ps extends h {
6235
6141
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6236
6142
  */
6237
6143
  constructor() {
6238
- super(), this.baseUrl = `${T.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6144
+ super(), this.baseUrl = `${$.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6239
6145
  }
6240
6146
  /**
6241
6147
  * Функция для получения обновленных токенов доступа.
@@ -6246,17 +6152,17 @@ class ps extends h {
6246
6152
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6247
6153
  }
6248
6154
  }
6249
- class $t extends h {
6155
+ class bt extends h {
6250
6156
  /**
6251
6157
  * Возвращает данные о текущем пользователе.
6252
6158
  */
6253
6159
  // eslint-disable-next-line class-methods-use-this
6254
6160
  getCurrentUser() {
6255
- return this.get("/internal/users/info", {}, (r) => new At(r.data));
6161
+ return this.get("/internal/users/info", {}, (r) => new $t(r.data));
6256
6162
  }
6257
6163
  }
6258
- const Tt = te("__user_state_private", () => {
6259
- const n = y({}), r = y(void 0);
6164
+ const St = te("__user_state_private", () => {
6165
+ const n = f({}), r = f(void 0);
6260
6166
  return {
6261
6167
  /**
6262
6168
  * Список загружаемых/загруженных на данный момент значений.
@@ -6271,11 +6177,11 @@ const Tt = te("__user_state_private", () => {
6271
6177
  /**
6272
6178
  * Данные о текущем пользователе.
6273
6179
  */
6274
- currentUser: P(() => {
6275
- const r = Tt();
6276
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance($t).getCurrentUser().then((e) => {
6180
+ currentUser: R(() => {
6181
+ const r = St();
6182
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(bt).getCurrentUser().then((e) => {
6277
6183
  r.currentUser = e;
6278
- }).catch(w).finally(() => {
6184
+ }).catch(y).finally(() => {
6279
6185
  r.dataLoaderList.currentUser = !1;
6280
6186
  })), r.currentUser;
6281
6187
  })
@@ -6304,149 +6210,149 @@ class gs {
6304
6210
  }
6305
6211
  }
6306
6212
  export {
6307
- nt as AnyReference,
6308
- Ut as AppBaseConfig,
6309
- T as AppConfigProvider,
6310
- Ne as BankAccount,
6213
+ ot as AnyReference,
6214
+ Ft as AppBaseConfig,
6215
+ $ as AppConfigProvider,
6216
+ qe as BankAccount,
6311
6217
  $e as BasePaginationProvider,
6312
- Wr as CalculationTypeEnum,
6218
+ Jr as CalculationTypeEnum,
6313
6219
  me as Cart,
6314
- Er as CartItem,
6220
+ Wr as CartItem,
6315
6221
  zr as CartItemBase,
6316
- Ot as CartProvider,
6317
- Gt as CatalogProvider,
6318
- nr as CatalogableItem,
6319
- E as Category,
6320
- We as CategoryPricingRule,
6321
- gr as ChannelPrimaryInterest,
6322
- Vt as City,
6323
- Me as CityWithRegionAndCountry,
6324
- Qe as Client,
6325
- ft as ClientAdditionalData,
6222
+ Nt as CartProvider,
6223
+ Mt as CatalogProvider,
6224
+ or as CatalogableItem,
6225
+ z as Category,
6226
+ Je as CategoryPricingRule,
6227
+ mr as ChannelPrimaryInterest,
6228
+ Kt as City,
6229
+ Be as CityWithRegionAndCountry,
6230
+ Ye as Client,
6231
+ yt as ClientAdditionalData,
6326
6232
  we as ClientCategory,
6327
- Xt as ClientDataProvider,
6328
- Ft as ClientPriceProvider,
6329
- jt as ClientPriceTemplateProvider,
6233
+ L as ClientDataProvider,
6234
+ jt as ClientPriceProvider,
6235
+ Gt as ClientPriceTemplateProvider,
6330
6236
  Z as ClientProduct,
6331
- Bt as ClientProductCategoryDataProvider,
6237
+ Ht as ClientProductCategoryDataProvider,
6332
6238
  zt as ClientProductDataProvider,
6333
6239
  ge as ClientShortInfo,
6334
- it as ClientsAdditionalDataRequestTypeEnum,
6335
- Kt as ClientsListFilters,
6240
+ nt as ClientsAdditionalDataRequestTypeEnum,
6241
+ Qt as ClientsListFilters,
6336
6242
  oe as CodedIdentity,
6337
6243
  es as ConfiguratorProvider,
6338
- Oe as Contact,
6339
- Qr as ContactLinks,
6244
+ Ne as Contact,
6245
+ Yr as ContactLinks,
6340
6246
  M as ContactPerson,
6341
- mt as ContactPersonRelated,
6342
- ot as ContactPosition,
6343
- _e as ContactRelation,
6344
- yr as ContragentBase,
6247
+ ft as ContactPersonRelated,
6248
+ ct as ContactPosition,
6249
+ xe as ContactRelation,
6250
+ wr as ContragentBase,
6345
6251
  ve as ContragentFactory,
6346
- wr as ContragentIc,
6347
- ht as ContragentPerson,
6348
- gt as ContragentUlNr,
6349
- Cr as ContragentUlR,
6350
- je as CostSourceEnum,
6252
+ Cr as ContragentIc,
6253
+ gt as ContragentPerson,
6254
+ mt as ContragentUlNr,
6255
+ vr as ContragentUlR,
6256
+ Ge as CostSourceEnum,
6351
6257
  ee as Country,
6352
6258
  Ce as Currency,
6353
6259
  us as DataSuggestionProvider,
6354
- Qt as DataTablePagination,
6355
- yt as DataTablePaginationRequestParams,
6356
- Yt as DataTableSortRequestParams,
6260
+ Yt as DataTablePagination,
6261
+ wt as DataTablePaginationRequestParams,
6262
+ Xt as DataTableSortRequestParams,
6357
6263
  rs as DateTimeProvider,
6358
- Vr as DeletableNamedIdentity,
6359
- ae as DeliveryAddress,
6264
+ Kr as DeletableNamedIdentity,
6265
+ Pe as DeliveryAddress,
6360
6266
  X as DeliveryType,
6361
- Nt as DetailedJwtPayload,
6362
- Zr as DeviceTypeResolutionConfig,
6363
- Kr as DiscountShortInfo,
6267
+ qt as DetailedJwtPayload,
6268
+ et as DeviceTypeResolutionConfig,
6269
+ Qr as DiscountShortInfo,
6364
6270
  gs as FieldValidationResultData,
6365
6271
  ue as FilterGroup,
6366
- Je as FilterItem,
6367
- He as FilterOpEnum,
6368
- cr as GeoCoordinates,
6369
- Hr as HiddenCatalogableItem,
6272
+ Ve as FilterItem,
6273
+ Ee as FilterOpEnum,
6274
+ lr as GeoCoordinates,
6275
+ Er as HiddenCatalogableItem,
6370
6276
  pe as HttpCachedRequester,
6371
- et as HttpParamsConfig,
6277
+ rt as HttpParamsConfig,
6372
6278
  h as HttpRequester,
6373
- H as Identity,
6374
- Br as Image,
6375
- G as JwtPayload,
6376
- Ae as Manager,
6279
+ j as Identity,
6280
+ Hr as Image,
6281
+ N as JwtPayload,
6282
+ Te as Manager,
6377
6283
  ce as ManagerCommon,
6378
6284
  ts as ManagerDataFactory,
6379
- wt as ManagerDataProvider,
6380
- Rt as MetaTagItem,
6285
+ Ct as ManagerDataProvider,
6286
+ Dt as MetaTagItem,
6381
6287
  b as NamedIdentity,
6382
- j as Opf,
6383
- k as OpfEnum,
6384
- vt as Order,
6385
- ar as OrderInfo,
6386
- ct as OrderPaymentStatus,
6387
- Ct as OrderProduct,
6388
- vr as OrderShortInfo,
6389
- lt as OrderStatus,
6288
+ F as Opf,
6289
+ q as OpfEnum,
6290
+ Pt as Order,
6291
+ Rr as OrderInfo,
6292
+ lt as OrderPaymentStatus,
6293
+ vt as OrderProduct,
6294
+ Pr as OrderShortInfo,
6295
+ ut as OrderStatus,
6390
6296
  ss as OrdersDataProvider,
6391
6297
  re as PartnerGroup,
6392
- ut as PaymentType,
6298
+ pt as PaymentType,
6393
6299
  fe as PreferencesStorageProvider,
6394
- Ie as PriceAnalyze,
6300
+ Le as PriceAnalyze,
6395
6301
  is as PriceAnalyzeProvider,
6396
- Re as PriceCoefficient,
6397
- or as PriceCoefficientEnum,
6302
+ Ae as PriceCoefficient,
6303
+ cr as PriceCoefficientEnum,
6398
6304
  ns as PriceHistoryDataProvider,
6399
- at as PriceHistoryItem,
6305
+ Rt as PriceHistoryItem,
6400
6306
  W as PriceTemplate,
6401
- be as PriceTemplateCategory,
6307
+ ae as PriceTemplateCategory,
6402
6308
  se as PriceTemplateClient,
6403
- ur as PriceTemplateICatalogableItem,
6404
- Se as PriceTemplateProduct,
6405
- Et as PriceTemplateProvider,
6309
+ pr as PriceTemplateICatalogableItem,
6310
+ Ie as PriceTemplateProduct,
6311
+ Wt as PriceTemplateProvider,
6406
6312
  ne as PricingRole,
6407
- Wt as PricingRoleProvider,
6408
- xe as PrimaryCatalogableItem,
6409
- x as Product,
6410
- Mt as ProductCategoryDataProvider,
6411
- Ht as ProductDataProvider,
6412
- pt as ProductFileType,
6413
- Ge as ProductPriceCoefficient,
6414
- Pt as ProductPriceHistory,
6415
- Jt as PropertiesProvider,
6313
+ Jt as PricingRoleProvider,
6314
+ Oe as PrimaryCatalogableItem,
6315
+ I as Product,
6316
+ Bt as ProductCategoryDataProvider,
6317
+ Et as ProductDataProvider,
6318
+ ht as ProductFileType,
6319
+ Me as ProductPriceCoefficient,
6320
+ At as ProductPriceHistory,
6321
+ Vt as PropertiesProvider,
6416
6322
  ie as Property,
6417
- hr as PropertyType,
6418
- Jr as PropertyTypeEnum,
6419
- z as PropertyValue,
6323
+ gr as PropertyType,
6324
+ Vr as PropertyTypeEnum,
6325
+ H as PropertyValue,
6420
6326
  os as RecommendationsDataProvider,
6421
- Ze as RecommendationsList,
6422
- a as Reference,
6423
- $ as ReferenceDataProvider,
6327
+ er as RecommendationsList,
6328
+ P as Reference,
6329
+ T as ReferenceDataProvider,
6424
6330
  le as Region,
6425
- mr as ResourceType,
6426
- N as SalesDirection,
6427
- rt as SentryConfig,
6428
- er as Seo,
6331
+ fr as ResourceType,
6332
+ x as SalesDirection,
6333
+ tt as SentryConfig,
6334
+ rr as Seo,
6429
6335
  ls as SeoDataProvider,
6430
- fr as SourcePrimaryInterest,
6431
- Mr as StockCount,
6432
- qt as TemplatesListFilters,
6433
- Fe as TypedInstanceFactory,
6434
- Ye as UnitsHelper,
6336
+ yr as SourcePrimaryInterest,
6337
+ Br as StockCount,
6338
+ Ut as TemplatesListFilters,
6339
+ je as TypedInstanceFactory,
6340
+ Xe as UnitsHelper,
6435
6341
  Zt as UnknownClientDataProvider,
6436
- lr as UpdatableNamedIdentity,
6437
- At as User,
6342
+ ur as UpdatableNamedIdentity,
6343
+ $t as User,
6438
6344
  ps as UserAuthDataProvider,
6439
- pr as UserCommonInfo,
6440
- $t as UserDataProvider,
6441
- Yr as UserPricingRole,
6442
- F as UserShortInfo,
6443
- Dt as UserTypeEnum,
6444
- tt as VersionConfig,
6345
+ hr as UserCommonInfo,
6346
+ bt as UserDataProvider,
6347
+ Xr as UserPricingRole,
6348
+ U as UserShortInfo,
6349
+ Tt as UserTypeEnum,
6350
+ st as VersionConfig,
6445
6351
  De as Warehouse,
6446
- st as WebSocketConfig,
6447
- Ve as findCatalogItemByIdRecursive,
6448
- Ke as flattenCatalogItems,
6449
- Te as useAuthStateStore,
6352
+ it as WebSocketConfig,
6353
+ Ke as findCatalogItemByIdRecursive,
6354
+ Qe as flattenCatalogItems,
6355
+ Se as useAuthStateStore,
6450
6356
  cs as useReferencesStore,
6451
6357
  hs as useUserStateStore
6452
6358
  };