@snabcentr/common-lib 1.73.0 → 1.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +1 -27
  3. package/dist/sc-common-lib.js +557 -467
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/clients/classes/client-short-info.d.ts +5 -0
  8. package/dist/src/clients/classes/client-short-info.d.ts.map +1 -1
  9. package/dist/src/clients/classes/client.d.ts +9 -2
  10. package/dist/src/clients/classes/client.d.ts.map +1 -1
  11. package/dist/src/clients/classes/clients-list-filters.d.ts +12 -1
  12. package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
  13. package/dist/src/clients/enums/clients-additional-data-request-type-enum.d.ts +5 -1
  14. package/dist/src/clients/enums/clients-additional-data-request-type-enum.d.ts.map +1 -1
  15. package/dist/src/clients/interfaces/i-client-short-info.d.ts +5 -0
  16. package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
  17. package/dist/src/clients/interfaces/i-client.d.ts +9 -2
  18. package/dist/src/clients/interfaces/i-client.d.ts.map +1 -1
  19. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +5 -0
  20. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
  21. package/dist/src/clients/providers/client-data-provider.d.ts +34 -0
  22. package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
  23. package/dist/src/managers/classes/curator.d.ts +28 -0
  24. package/dist/src/managers/classes/curator.d.ts.map +1 -0
  25. package/dist/src/managers/classes/index.d.ts +1 -0
  26. package/dist/src/managers/classes/index.d.ts.map +1 -1
  27. package/dist/src/managers/classes/manager.d.ts +5 -0
  28. package/dist/src/managers/classes/manager.d.ts.map +1 -1
  29. package/dist/src/managers/interfaces/i-curator.d.ts +21 -0
  30. package/dist/src/managers/interfaces/i-curator.d.ts.map +1 -0
  31. package/dist/src/managers/interfaces/i-manager.d.ts +5 -0
  32. package/dist/src/managers/interfaces/i-manager.d.ts.map +1 -1
  33. package/dist/src/managers/interfaces/index.d.ts +1 -0
  34. package/dist/src/managers/interfaces/index.d.ts.map +1 -1
  35. package/dist/src/references/classes/curated-direction.d.ts +8 -0
  36. package/dist/src/references/classes/curated-direction.d.ts.map +1 -0
  37. package/dist/src/references/classes/index.d.ts +1 -0
  38. package/dist/src/references/classes/index.d.ts.map +1 -1
  39. package/dist/src/references/interfaces/i-curated-direction.d.ts +7 -0
  40. package/dist/src/references/interfaces/i-curated-direction.d.ts.map +1 -0
  41. package/dist/src/references/interfaces/index.d.ts +1 -0
  42. package/dist/src/references/interfaces/index.d.ts.map +1 -1
  43. package/dist/src/references/providers/reference-data-provider.d.ts +5 -0
  44. package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
  45. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- var Dr = Object.defineProperty;
2
- var Ar = (n, r, e) => r in n ? Dr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => Ar(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 A, 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 Oe, format as q, addSeconds as kr, addBusinessDays as _r, endOfTomorrow as Or, startOfTomorrow as qr, endOfYesterday as dr, startOfYesterday as Nr, endOfToday as Ur, endOfDay as Fr, startOfDay as Mr } from "date-fns";
1
+ var $r = Object.defineProperty;
2
+ var br = (n, r, e) => r in n ? $r(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => br(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as sr } from "jwt-decode";
5
+ import { merge as ye, isUndefined as ar, isNil as A, isEmpty as Y, noop as w, mapValues as ir, isArray as Q, every as Sr, split as Ir, toUpper as xr, constant as Lr, isString as C, cloneDeep as kr, toLower as _r, isFunction as Ue, map as Re, forEach as dr, isDate as _e, omitBy as nr, isObject as or } from "lodash-es";
6
+ import { objectToCamel as Fe, objectToSnake as ze } from "ts-case-convert";
7
+ import { isAfter as We, parseISO as v, startOfToday as de, format as O, addSeconds as Or, addBusinessDays as qr, endOfTomorrow as Nr, startOfTomorrow as Ur, endOfYesterday as Fr, startOfYesterday as Mr, endOfToday as jr, endOfDay as Gr, startOfDay as Br } from "date-fns";
8
8
  import { defineStore as te } from "pinia";
9
- import { ref as f, markRaw as jr, computed as R } from "vue";
10
- import Gr from "axios";
9
+ import { ref as y, markRaw as Hr, computed as R } from "vue";
10
+ import Er from "axios";
11
11
  class N {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -107,11 +107,11 @@ class N {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = tr(r), s = new N(Fe(e));
110
+ const e = sr(r), s = new N(Fe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class dt extends N {
114
+ class Ut extends N {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,7 +151,7 @@ class dt extends N {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new N(Fe(tr(e)));
154
+ return new N(Fe(sr(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 (Tr(J.config))
171
+ if (ar(J.config))
172
172
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
173
173
  return J.config;
174
174
  }
@@ -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(C(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
213
+ if (!s.availableFor || We(v(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
214
214
  if (A(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(C(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
287
+ o.availableFor && !We(v(o.availableFor) || de(), /* @__PURE__ */ new Date()) && r.push(s);
288
288
  }
289
289
  } catch {
290
290
  r.push(s);
@@ -300,7 +300,7 @@ class fe {
300
300
  }
301
301
  }
302
302
  }
303
- function We(n) {
303
+ function Je(n) {
304
304
  try {
305
305
  const r = N.getJwtPayload(n);
306
306
  return new Date(r.exp * 1e3);
@@ -308,8 +308,8 @@ function We(n) {
308
308
  return;
309
309
  }
310
310
  }
311
- const E = te("__auth_state_private", () => {
312
- const n = f(
311
+ const H = te("__auth_state_private", () => {
312
+ const n = y(
313
313
  (() => {
314
314
  var u;
315
315
  const o = fe.getActualDataFromStorage(
@@ -321,12 +321,12 @@ const E = te("__auth_state_private", () => {
321
321
  const c = (u = $.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
322
322
  return c ? Promise.resolve(c) : void 0;
323
323
  })()
324
- ), r = f(void 0), e = f(void 0), s = jr(/* @__PURE__ */ new Map());
324
+ ), r = y(void 0), e = y(void 0), s = Hr(/* @__PURE__ */ new Map());
325
325
  function i() {
326
326
  e.value = void 0, A(n.value) || n.value.then((o) => {
327
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);
328
+ e.value = c.exp * 1e3 > Date.now() ? ir(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
329
+ }).catch(w);
330
330
  }
331
331
  return {
332
332
  /**
@@ -350,49 +350,49 @@ const E = te("__auth_state_private", () => {
350
350
  */
351
351
  recalculateUserPermissions: i
352
352
  };
353
- }), Se = te("__auth_state", () => {
353
+ }), ae = te("__auth_state", () => {
354
354
  const n = R(() => {
355
- const o = E();
355
+ const o = H();
356
356
  if (A(o.jwtToken) && !A(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, We(u)), o.recalculateUserPermissions();
360
- }).catch(y);
359
+ o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Je(u)), o.recalculateUserPermissions();
360
+ }).catch(w);
361
361
  }
362
362
  return o.jwtToken;
363
363
  });
364
364
  function r(o) {
365
- E().jwtTokenUpdater = o;
365
+ H().jwtTokenUpdater = o;
366
366
  }
367
367
  function e(o) {
368
- const c = E();
369
- c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, We(o)), c.recalculateUserPermissions();
368
+ const c = H();
369
+ c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Je(o)), c.recalculateUserPermissions();
370
370
  }
371
371
  function s() {
372
- const o = E();
372
+ const o = H();
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 = E();
377
- !A(c.jwtToken) && A(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);
376
+ const c = H();
377
+ !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
378
+ const g = N.getJwtPayload(f);
379
+ c.userPermissions = g.exp * 1e3 > Date.now() ? ir(g.resourceAccess, (a) => (a == null ? void 0 : a.roles) ?? []) : void 0;
380
+ }).catch(w);
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 = R(() => {
385
- const v = (m) => {
384
+ const h = R(() => {
385
+ const f = (g) => {
386
386
  var B;
387
- const S = br(m, ".");
388
- if (S.length < 2)
387
+ const a = Ir(g, ".");
388
+ if (a.length < 2)
389
389
  return !1;
390
- const [_, O] = S, G = (B = E().userPermissions) == null ? void 0 : B[_];
391
- return Q(G) && G.includes(O);
390
+ const [_, d] = a, G = (B = H().userPermissions) == null ? void 0 : B[_];
391
+ return Q(G) && G.includes(d);
392
392
  };
393
- return Q(o) ? $r(o, (m) => v(m)) : v(o);
393
+ return Q(o) ? Sr(o, (g) => f(g)) : f(o);
394
394
  });
395
- return c.userPermissionsComputedRefs.set(u, p), p;
395
+ return c.userPermissionsComputedRefs.set(u, h), h;
396
396
  }
397
397
  return {
398
398
  /**
@@ -478,7 +478,7 @@ class oe extends b {
478
478
  this.code = (e == null ? void 0 : e.code) ?? "";
479
479
  }
480
480
  }
481
- class or extends oe {
481
+ class cr extends oe {
482
482
  /**
483
483
  * Инициализирует экземпляр класса {@link CatalogableItem}.
484
484
  *
@@ -497,7 +497,7 @@ class or extends oe {
497
497
  this.slug = (e == null ? void 0 : e.slug) ?? "";
498
498
  }
499
499
  }
500
- class qe extends or {
500
+ class Oe extends cr {
501
501
  /**
502
502
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
503
503
  *
@@ -512,7 +512,7 @@ class qe extends or {
512
512
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
513
513
  }
514
514
  }
515
- class he extends qe {
515
+ class he extends Oe {
516
516
  /**
517
517
  * Инициализирует экземпляр класса {@link BaseCategory}.
518
518
  *
@@ -536,10 +536,10 @@ class he extends qe {
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]) => [Sr(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]) => [xr(s), i])) : void 0;
540
540
  }
541
541
  }
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 || {});
542
+ var lr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(lr || {});
543
543
  class P extends b {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link Reference}.
@@ -564,7 +564,7 @@ class De extends P {
564
564
  * Возвращает значение справочника коэффициента розничной цены.
565
565
  */
566
566
  static getRetailPriceCoefficient() {
567
- return { id: -2, slug: cr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
567
+ return { id: -2, slug: lr.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
568
568
  }
569
569
  }
570
570
  class Me {
@@ -597,7 +597,7 @@ class Me {
597
597
  this.coefficient = new De(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 lr {
600
+ class ur {
601
601
  /**
602
602
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
603
603
  *
@@ -646,10 +646,10 @@ class Ae extends P {
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 lr(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 ur(e == null ? void 0 : e.coordinates);
650
650
  }
651
651
  }
652
- class Br {
652
+ class zr {
653
653
  /**
654
654
  * Инициализирует экземпляр класса {@link StockCount}.
655
655
  *
@@ -667,7 +667,7 @@ class Br {
667
667
  this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
668
668
  }
669
669
  }
670
- class Er extends or {
670
+ class Wr extends cr {
671
671
  /**
672
672
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
673
673
  *
@@ -682,7 +682,7 @@ class Er extends or {
682
682
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
683
683
  }
684
684
  }
685
- class Hr {
685
+ class Jr {
686
686
  /**
687
687
  * Инициализирует экземпляр класса {@link Image}.
688
688
  *
@@ -705,7 +705,7 @@ class Hr {
705
705
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
706
706
  }
707
707
  }
708
- class I extends Er {
708
+ class I extends Wr {
709
709
  /**
710
710
  * Инициализирует экземпляр класса {@link Product}.
711
711
  *
@@ -790,9 +790,9 @@ class I extends Er {
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 = 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
- 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 qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new qe(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);
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((h) => new zr(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
794
+ const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
795
+ s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Oe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Jr(h, $.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((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
796
796
  }
797
797
  /**
798
798
  * Возвращает признак, что это измеряемый товар.
@@ -815,7 +815,7 @@ class I extends Er {
815
815
  return this.retailCostRub ?? this.costRub;
816
816
  }
817
817
  }
818
- class zr extends j {
818
+ class Vr extends j {
819
819
  /**
820
820
  * Инициализирует экземпляр класса {@link CartItemBase}.
821
821
  *
@@ -867,10 +867,10 @@ class zr extends j {
867
867
  * Признак того, что позиция является дополнительной продажей.
868
868
  */
869
869
  t(this, "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;
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 && kr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
871
871
  }
872
872
  }
873
- class Wr extends zr {
873
+ class Kr extends Vr {
874
874
  /**
875
875
  * Инициализирует экземпляр класса {@link CartItem}.
876
876
  *
@@ -939,7 +939,7 @@ class me {
939
939
  * Список итоговых сумм по направлениям продаж.
940
940
  */
941
941
  t(this, "directionsSum");
942
- this.items = r.items.map((e) => new Wr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
942
+ this.items = r.items.map((e) => new Kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
943
943
  }
944
944
  }
945
945
  class je {
@@ -961,7 +961,7 @@ class je {
961
961
  return new r(e);
962
962
  }
963
963
  }
964
- const a = class a {
964
+ const S = class S {
965
965
  /**
966
966
  * Инициализирует экземпляр класса {@link HttpRequester}.
967
967
  */
@@ -981,7 +981,7 @@ const a = class a {
981
981
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
982
982
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
983
983
  */
984
- t(this, "errorResponseHandler", y);
984
+ t(this, "errorResponseHandler", w);
985
985
  /**
986
986
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
987
987
  */
@@ -1000,7 +1000,7 @@ const a = class a {
1000
1000
  // eslint-disable-next-line class-methods-use-this
1001
1001
  t(this, "authRequestInterceptor", async (r) => {
1002
1002
  let e;
1003
- return A(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1003
+ return A(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1004
1004
  });
1005
1005
  /**
1006
1006
  * Перехватчик запроса для преобразования данных запроса.
@@ -1008,7 +1008,7 @@ const a = class a {
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 = He(r.params)), ["put", "patch", "post"].includes(xr(r.method)) && r.data && (r.data = He(r.data))), r));
1011
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = ze(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = ze(r.data))), r));
1012
1012
  /**
1013
1013
  * Перехватчик ошибок ответов на запрос.
1014
1014
  *
@@ -1017,7 +1017,7 @@ const a = class a {
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) : (Se().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1020
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1021
1021
  });
1022
1022
  /**
1023
1023
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -1027,9 +1027,9 @@ const a = class a {
1027
1027
  // eslint-disable-next-line class-methods-use-this
1028
1028
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1029
1029
  const r = $.getConfig().version;
1030
- this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Gr.create({
1030
+ this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Er.create({
1031
1031
  headers: {
1032
- "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, $.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 a = class a {
1038
1038
  (e) => Promise.reject(e)
1039
1039
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1040
1040
  (e) => e,
1041
- (e) => a.convertHttpErrorResponse(e)
1041
+ (e) => S.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 a = class a {
1050
1050
  * @param handler Ссылка на функцию-обработчик ошибок.
1051
1051
  */
1052
1052
  static setDefaultErrorsResponseHandler(r) {
1053
- a.defaultErrorsResponseHandler = r;
1053
+ S.defaultErrorsResponseHandler = r;
1054
1054
  }
1055
1055
  /**
1056
1056
  * Возвращает экземпляр объекта текущего класса.
@@ -1058,7 +1058,7 @@ const a = class a {
1058
1058
  * @param type Тип данных, которыми оперирует метод.
1059
1059
  */
1060
1060
  static getInstance(r) {
1061
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = je.simpleInstanceInitializer(r)), a.instances[r.name];
1061
+ return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = je.simpleInstanceInitializer(r)), S.instances[r.name];
1062
1062
  }
1063
1063
  /**
1064
1064
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1156,16 +1156,16 @@ const a = class a {
1156
1156
  * Экземпляр объекта текущего класса.
1157
1157
  */
1158
1158
  // eslint-disable-next-line no-use-before-define
1159
- t(a, "instances", {}), /**
1159
+ t(S, "instances", {}), /**
1160
1160
  * Базовый обработчик ошибок выполнения запросов.
1161
1161
  *
1162
1162
  * @param error Данные об ошибке.
1163
1163
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1164
1164
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1165
1165
  */
1166
- t(a, "defaultErrorsResponseHandler", y);
1167
- let h = a;
1168
- class Nt extends h {
1166
+ t(S, "defaultErrorsResponseHandler", w);
1167
+ let p = S;
1168
+ class Ft extends p {
1169
1169
  /**
1170
1170
  * Возвращает содержимое корзины указанного клиента.
1171
1171
  *
@@ -1279,7 +1279,7 @@ class Nt 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 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 || {});
1282
+ var Qr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Qr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Yr = /* @__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))(Yr || {});
1283
1283
  class z extends he {
1284
1284
  /**
1285
1285
  * Инициализирует экземпляр класса {@link Category}.
@@ -1300,7 +1300,7 @@ class z extends he {
1300
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 ur extends b {
1303
+ class pr extends b {
1304
1304
  /**
1305
1305
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1306
1306
  *
@@ -1312,10 +1312,10 @@ class ur extends b {
1312
1312
  * Дата и время последнего изменения.
1313
1313
  */
1314
1314
  t(this, "updatedAt");
1315
- this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1315
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1316
1316
  }
1317
1317
  }
1318
- class Kr extends ur {
1318
+ class Xr extends pr {
1319
1319
  /**
1320
1320
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1321
1321
  *
@@ -1327,7 +1327,7 @@ class Kr extends ur {
1327
1327
  * Дата и время последнего удаления.
1328
1328
  */
1329
1329
  t(this, "deletedAt");
1330
- this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1330
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1331
1331
  }
1332
1332
  }
1333
1333
  class U extends b {
@@ -1345,7 +1345,7 @@ class U extends b {
1345
1345
  this.type = e == null ? void 0 : e.type;
1346
1346
  }
1347
1347
  }
1348
- class Qr extends b {
1348
+ class Zr extends b {
1349
1349
  /**
1350
1350
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1351
1351
  *
@@ -1381,10 +1381,10 @@ class Qr 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 = 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;
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 U(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1385
1385
  }
1386
1386
  }
1387
- class W extends ur {
1387
+ class W extends pr {
1388
1388
  /**
1389
1389
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1390
1390
  *
@@ -1400,7 +1400,7 @@ class W extends ur {
1400
1400
  * Дата и время создания шаблона.
1401
1401
  */
1402
1402
  t(this, "createdAt");
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();
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();
1404
1404
  }
1405
1405
  }
1406
1406
  class Z extends I {
@@ -1439,10 +1439,10 @@ class Z extends I {
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) ?? 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;
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 Zr(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 Yr {
1445
+ class hr {
1446
1446
  /**
1447
1447
  * Инициализирует экземпляр класса {@link ContactLinks}.
1448
1448
  *
@@ -1490,10 +1490,12 @@ class ce extends b {
1490
1490
  * @inheritDoc
1491
1491
  */
1492
1492
  t(this, "isRegionalDirector");
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;
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 hr(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 Xr extends b {
1496
+ class Be extends P {
1497
+ }
1498
+ class et extends b {
1497
1499
  /**
1498
1500
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1499
1501
  *
@@ -1523,6 +1525,7 @@ class Te extends ce {
1523
1525
  * @param data Данные для первоначальной инициализации.
1524
1526
  */
1525
1527
  constructor(e) {
1528
+ var s;
1526
1529
  super(e);
1527
1530
  /**
1528
1531
  * Признак активности учетной записи менеджера.
@@ -1548,10 +1551,14 @@ class Te extends ce {
1548
1551
  * Данные роли ценообразования менеджера.
1549
1552
  */
1550
1553
  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 Xr(e.pricingRole) : void 0;
1554
+ /**
1555
+ * Список направлений кураторства.
1556
+ */
1557
+ t(this, "curatedDirections");
1558
+ 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 et(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
1552
1559
  }
1553
1560
  }
1554
- class Zr extends he {
1561
+ class rt extends he {
1555
1562
  /**
1556
1563
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1557
1564
  *
@@ -1582,7 +1589,7 @@ class Zr extends he {
1582
1589
  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
1590
  }
1584
1591
  }
1585
- class we extends Zr {
1592
+ class we extends rt {
1586
1593
  /**
1587
1594
  * Инициализирует экземпляр класса {@link ClientCategory}.
1588
1595
  *
@@ -1602,7 +1609,7 @@ class we extends Zr {
1602
1609
  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
1610
  }
1604
1611
  }
1605
- class pr {
1612
+ class gr {
1606
1613
  /**
1607
1614
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1608
1615
  *
@@ -1620,7 +1627,7 @@ class pr {
1620
1627
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1621
1628
  }
1622
1629
  }
1623
- class ae extends pr {
1630
+ class Se extends gr {
1624
1631
  /**
1625
1632
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1626
1633
  *
@@ -1635,6 +1642,29 @@ class ae extends pr {
1635
1642
  this.productCategory = new he(e == null ? void 0 : e.productCategory);
1636
1643
  }
1637
1644
  }
1645
+ class mr extends b {
1646
+ /**
1647
+ * Инициализирует экземпляр класса {@link Curator}.
1648
+ *
1649
+ * @param data Данные для первоначальной инициализации.
1650
+ */
1651
+ constructor(e) {
1652
+ super(e);
1653
+ /**
1654
+ * @inheritDoc
1655
+ */
1656
+ t(this, "photo");
1657
+ /**
1658
+ * @inheritDoc
1659
+ */
1660
+ t(this, "contacts");
1661
+ /**
1662
+ * @inheritDoc
1663
+ */
1664
+ t(this, "curatedDirection");
1665
+ this.photo = e.photo, this.contacts = new hr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1666
+ }
1667
+ }
1638
1668
  class ee extends P {
1639
1669
  }
1640
1670
  class le extends P {
@@ -1652,7 +1682,7 @@ class le extends P {
1652
1682
  e && (this.country = new ee(e.country));
1653
1683
  }
1654
1684
  }
1655
- class Be extends P {
1685
+ class He extends P {
1656
1686
  /**
1657
1687
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1658
1688
  *
@@ -1667,7 +1697,7 @@ class Be extends P {
1667
1697
  e && (this.region = new le(e.region));
1668
1698
  }
1669
1699
  }
1670
- class hr extends b {
1700
+ class fr extends b {
1671
1701
  /**
1672
1702
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1673
1703
  *
@@ -1703,10 +1733,10 @@ class hr extends b {
1703
1733
  * Признак активности учетной записи пользователя.
1704
1734
  */
1705
1735
  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 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;
1736
+ 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 = 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;
1707
1737
  }
1708
1738
  }
1709
- class ge extends hr {
1739
+ class ge extends fr {
1710
1740
  /**
1711
1741
  * Инициализирует экземпляр класса {@link Client}.
1712
1742
  *
@@ -1714,7 +1744,7 @@ class ge extends hr {
1714
1744
  */
1715
1745
  // eslint-disable-next-line sonarjs/cognitive-complexity
1716
1746
  constructor(e) {
1717
- var s;
1747
+ var s, i;
1718
1748
  super(e);
1719
1749
  /**
1720
1750
  * Направление продаж.
@@ -1748,7 +1778,11 @@ class ge extends hr {
1748
1778
  * Список менеджеров клиента.
1749
1779
  */
1750
1780
  t(this, "managers");
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))) ?? [];
1781
+ /**
1782
+ * @inheritDoc
1783
+ */
1784
+ t(this, "curators");
1785
+ 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 He(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((o) => new ce(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new mr(o))) ?? [];
1752
1786
  }
1753
1787
  }
1754
1788
  class se extends j {
@@ -1775,10 +1809,10 @@ class se extends j {
1775
1809
  * Данные шаблона прайс-листа.
1776
1810
  */
1777
1811
  t(this, "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);
1812
+ 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);
1779
1813
  }
1780
1814
  }
1781
- class Ie extends pr {
1815
+ class Ie extends gr {
1782
1816
  /**
1783
1817
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1784
1818
  *
@@ -1793,7 +1827,7 @@ class Ie extends pr {
1793
1827
  this.product = new I(e == null ? void 0 : e.product);
1794
1828
  }
1795
1829
  }
1796
- class gr extends P {
1830
+ class yr extends P {
1797
1831
  }
1798
1832
  class ie extends b {
1799
1833
  /**
@@ -1815,10 +1849,10 @@ class ie extends b {
1815
1849
  * Дополнительные метаданные свойства.
1816
1850
  */
1817
1851
  t(this, "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;
1852
+ this.type = new yr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1819
1853
  }
1820
1854
  }
1821
- class H {
1855
+ class E {
1822
1856
  /**
1823
1857
  * Инициализирует экземпляр класса {@link PropertyValue}.
1824
1858
  *
@@ -1852,10 +1886,10 @@ class k {
1852
1886
  * Окончание периода.
1853
1887
  */
1854
1888
  t(this, "to");
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;
1889
+ 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;
1856
1890
  }
1857
1891
  }
1858
- class Ut {
1892
+ class Mt {
1859
1893
  /**
1860
1894
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1861
1895
  *
@@ -1915,7 +1949,7 @@ class Ut {
1915
1949
  return Object.keys(this).forEach((c) => {
1916
1950
  const u = this[c];
1917
1951
  // eslint-disable-next-line prettier/prettier
1918
- A(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1952
+ A(u) || C(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1919
1953
  }), !((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
1954
  }
1921
1955
  }
@@ -1954,7 +1988,7 @@ class ne extends b {
1954
1988
  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
1989
  }
1956
1990
  }
1957
- class Je {
1991
+ class Ve {
1958
1992
  /**
1959
1993
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
1960
1994
  *
@@ -1976,7 +2010,7 @@ class Je {
1976
2010
  this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new De(r == null ? void 0 : r.minCoefficient);
1977
2011
  }
1978
2012
  }
1979
- class et {
2013
+ class tt {
1980
2014
  /**
1981
2015
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
1982
2016
  *
@@ -1998,7 +2032,7 @@ class et {
1998
2032
  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
2033
  }
2000
2034
  }
2001
- class rt {
2035
+ class st {
2002
2036
  /**
2003
2037
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
2004
2038
  *
@@ -2020,7 +2054,7 @@ class rt {
2020
2054
  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
2055
  }
2022
2056
  }
2023
- class tt {
2057
+ class it {
2024
2058
  /**
2025
2059
  * Инициализирует экземпляр класса {@link SentryConfig}.
2026
2060
  *
@@ -2065,7 +2099,7 @@ class tt {
2065
2099
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
2066
2100
  }
2067
2101
  }
2068
- class st {
2102
+ class nt {
2069
2103
  /**
2070
2104
  * Инициализирует экземпляр класса {@link VersionConfig}.
2071
2105
  *
@@ -2084,10 +2118,10 @@ class st {
2084
2118
  * Текущая версия приложения.
2085
2119
  */
2086
2120
  t(this, "version");
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";
2121
+ 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";
2088
2122
  }
2089
2123
  }
2090
- class it {
2124
+ class ot {
2091
2125
  /**
2092
2126
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
2093
2127
  *
@@ -2126,7 +2160,7 @@ class it {
2126
2160
  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
2161
  }
2128
2162
  }
2129
- class Ft {
2163
+ class jt {
2130
2164
  /**
2131
2165
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
2132
2166
  *
@@ -2174,17 +2208,17 @@ class Ft {
2174
2208
  */
2175
2209
  t(this, "dateFormats");
2176
2210
  var e, s, i;
2177
- 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({
2211
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new st(r == null ? void 0 : r.http), this.deviceTypeByResolution = new tt(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new it({
2178
2212
  environment: this.environment,
2179
2213
  ...r == null ? void 0 : r.sentry
2180
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, 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 = {
2214
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new nt(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ot(r.websocket) : void 0, this.dateFormats = {
2181
2215
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2182
2216
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2183
2217
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
2184
2218
  };
2185
2219
  }
2186
2220
  }
2187
- class Mt extends h {
2221
+ class Gt extends p {
2188
2222
  /**
2189
2223
  * Возвращает данные о результатах поиска категорий и товаров.
2190
2224
  *
@@ -2215,7 +2249,7 @@ class Mt extends h {
2215
2249
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2216
2250
  }
2217
2251
  }
2218
- class jt extends h {
2252
+ class Bt extends p {
2219
2253
  /**
2220
2254
  * Импортирует цены клиента из CSV файла.
2221
2255
  *
@@ -2414,7 +2448,7 @@ class jt extends h {
2414
2448
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2415
2449
  }
2416
2450
  }
2417
- class Gt extends h {
2451
+ class Ht extends p {
2418
2452
  /**
2419
2453
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2420
2454
  *
@@ -2453,8 +2487,8 @@ class Gt extends h {
2453
2487
  return this.post(
2454
2488
  `/internal/clients/${r}/price/templates/${e}`,
2455
2489
  s && {
2456
- startAt: s.startAt && q(s.startAt, i),
2457
- endAt: s.endAt && q(s.endAt, i)
2490
+ startAt: s.startAt && O(s.startAt, i),
2491
+ endAt: s.endAt && O(s.endAt, i)
2458
2492
  },
2459
2493
  (o) => new se(o.data),
2460
2494
  {},
@@ -2487,8 +2521,8 @@ class Gt extends h {
2487
2521
  return this.patch(
2488
2522
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2489
2523
  i && {
2490
- startAt: i.startAt && q(i.startAt, o),
2491
- endAt: i.endAt && q(i.endAt, o)
2524
+ startAt: i.startAt && O(i.startAt, o),
2525
+ endAt: i.endAt && O(i.endAt, o)
2492
2526
  },
2493
2527
  (c) => new se(c.data)
2494
2528
  );
@@ -2506,7 +2540,7 @@ class Gt extends h {
2506
2540
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2507
2541
  }
2508
2542
  }
2509
- class Bt extends h {
2543
+ class Et extends p {
2510
2544
  /**
2511
2545
  * Возвращает список данных о корневых категориях.
2512
2546
  *
@@ -2579,7 +2613,7 @@ class Bt extends h {
2579
2613
  getCategoryProductsCoefficients(r) {
2580
2614
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2581
2615
  const { data: s } = e;
2582
- return Lr(s, (i) => i.map((o) => new Me(o))), s;
2616
+ return dr(s, (i) => i.map((o) => new Me(o))), s;
2583
2617
  });
2584
2618
  }
2585
2619
  /**
@@ -2598,7 +2632,7 @@ class Bt extends h {
2598
2632
  });
2599
2633
  }
2600
2634
  }
2601
- class Et extends h {
2635
+ class zt extends p {
2602
2636
  /**
2603
2637
  * Возвращает данные об указанном продукте.
2604
2638
  *
@@ -2648,7 +2682,7 @@ class Et extends h {
2648
2682
  });
2649
2683
  }
2650
2684
  }
2651
- class Ht extends h {
2685
+ class Wt extends p {
2652
2686
  /**
2653
2687
  * Возвращает список данных о корневых категориях указанного клиента.
2654
2688
  *
@@ -2710,7 +2744,7 @@ class Ht extends h {
2710
2744
  );
2711
2745
  }
2712
2746
  }
2713
- class zt extends h {
2747
+ class Jt extends p {
2714
2748
  /**
2715
2749
  * Возвращает данные об указанном продукте для указанного клиента.
2716
2750
  *
@@ -2732,7 +2766,7 @@ class zt extends h {
2732
2766
  }
2733
2767
  }
2734
2768
  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 || {});
2735
- class Ve {
2769
+ class Ke {
2736
2770
  /**
2737
2771
  * Инициализирует экземпляр класса {@link FilterItem}.
2738
2772
  *
@@ -2763,7 +2797,7 @@ class Ve {
2763
2797
  field: this.field,
2764
2798
  op: this.op
2765
2799
  };
2766
- return r.value = _e(this.value) ? q(this.value, $.getConfig().dateFormats.api) : this.value, r;
2800
+ return r.value = _e(this.value) ? O(this.value, $.getConfig().dateFormats.api) : this.value, r;
2767
2801
  }
2768
2802
  }
2769
2803
  class ue {
@@ -2786,7 +2820,7 @@ class ue {
2786
2820
  */
2787
2821
  t(this, "groups");
2788
2822
  var e, s;
2789
- 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))) ?? [];
2823
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ke(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
2790
2824
  }
2791
2825
  /**
2792
2826
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2796,12 +2830,12 @@ class ue {
2796
2830
  toPrimitive() {
2797
2831
  return {
2798
2832
  groupOp: this.groupOp,
2799
- filters: this.filters.map((r) => r instanceof Ve && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2833
+ filters: this.filters.map((r) => r instanceof Ke && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2800
2834
  groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
2801
2835
  };
2802
2836
  }
2803
2837
  }
2804
- class $e extends h {
2838
+ class $e extends p {
2805
2839
  /**
2806
2840
  * Получает пагинированный список данных.
2807
2841
  *
@@ -2814,14 +2848,14 @@ class $e extends h {
2814
2848
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2815
2849
  */
2816
2850
  getPaginated(r, e, s, i, o, c, u) {
2817
- let p = {
2851
+ let h = {
2818
2852
  page: (i == null ? void 0 : i.page) ?? 1,
2819
2853
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2820
2854
  };
2821
- 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);
2855
+ return e && (h.filters = JSON.stringify((e instanceof ue ? e : new ue(e)).toPrimitive())), Y(s) || (h.sort = Q(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, u);
2822
2856
  }
2823
2857
  }
2824
- class Wt extends $e {
2858
+ class Vt extends $e {
2825
2859
  /**
2826
2860
  * Возвращает список шаблонов прайс-листа.
2827
2861
  *
@@ -2949,7 +2983,7 @@ class Wt extends $e {
2949
2983
  return this.get(
2950
2984
  `/internal/price/templates/${r}/categories`,
2951
2985
  {},
2952
- (e) => e.data.map((s) => new ae(s))
2986
+ (e) => e.data.map((s) => new Se(s))
2953
2987
  );
2954
2988
  }
2955
2989
  /**
@@ -2964,7 +2998,7 @@ class Wt extends $e {
2964
2998
  return this.get(
2965
2999
  `/internal/price/templates/${r}/categories/${e}`,
2966
3000
  {},
2967
- (s) => new ae(s.data)
3001
+ (s) => new Se(s.data)
2968
3002
  );
2969
3003
  }
2970
3004
  /**
@@ -2990,7 +3024,7 @@ class Wt extends $e {
2990
3024
  },
2991
3025
  params: i ? { recursively: !0 } : {}
2992
3026
  },
2993
- (c) => new ae(c.data)
3027
+ (c) => new Se(c.data)
2994
3028
  );
2995
3029
  }
2996
3030
  /**
@@ -3025,7 +3059,7 @@ class Wt extends $e {
3025
3059
  );
3026
3060
  }
3027
3061
  }
3028
- class Jt extends h {
3062
+ class Kt extends p {
3029
3063
  /**
3030
3064
  * Возвращает список ролей ценообразования.
3031
3065
  *
@@ -3086,7 +3120,7 @@ class Jt extends h {
3086
3120
  return this.get(
3087
3121
  `/internal/price/roles/rules/categories/${r}`,
3088
3122
  {},
3089
- (e) => e.data.map((s) => new Je(s))
3123
+ (e) => e.data.map((s) => new Ve(s))
3090
3124
  );
3091
3125
  }
3092
3126
  /**
@@ -3101,11 +3135,11 @@ class Jt extends h {
3101
3135
  return this.patch(
3102
3136
  `/internal/price/roles/rules/categories/${r}`,
3103
3137
  e,
3104
- (s) => s.data.map((i) => new Je(i))
3138
+ (s) => s.data.map((i) => new Ve(i))
3105
3139
  );
3106
3140
  }
3107
3141
  }
3108
- class Vt extends $e {
3142
+ class Qt extends $e {
3109
3143
  /**
3110
3144
  * Возвращает пагинированный список свойств.
3111
3145
  *
@@ -3181,7 +3215,7 @@ class Vt extends $e {
3181
3215
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3182
3216
  */
3183
3217
  getProductProperties(r) {
3184
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3218
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new E(s)));
3185
3219
  }
3186
3220
  /**
3187
3221
  * Возвращает значение свойства продукта.
@@ -3191,7 +3225,7 @@ class Vt extends $e {
3191
3225
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3192
3226
  */
3193
3227
  getProductProperty(r, e) {
3194
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3228
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new E(s.data));
3195
3229
  }
3196
3230
  /**
3197
3231
  * Обновляет значение свойства продукта.
@@ -3202,7 +3236,7 @@ class Vt extends $e {
3202
3236
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3203
3237
  */
3204
3238
  updateProductProperty(r, e, s) {
3205
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3239
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new E(i.data));
3206
3240
  }
3207
3241
  /**
3208
3242
  * Удаляет значение свойства продукта.
@@ -3327,7 +3361,7 @@ class Vt extends $e {
3327
3361
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3328
3362
  */
3329
3363
  getCategoryProperties(r) {
3330
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3364
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new E(s)));
3331
3365
  }
3332
3366
  /**
3333
3367
  * Возвращает значение свойства категории.
@@ -3337,7 +3371,7 @@ class Vt extends $e {
3337
3371
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3338
3372
  */
3339
3373
  getCategoryProperty(r, e) {
3340
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3374
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new E(s.data));
3341
3375
  }
3342
3376
  /**
3343
3377
  * Обновляет значение свойства категории.
@@ -3348,7 +3382,7 @@ class Vt extends $e {
3348
3382
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3349
3383
  */
3350
3384
  updateCategoryProperty(r, e, s) {
3351
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3385
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new E(i.data));
3352
3386
  }
3353
3387
  /**
3354
3388
  * Удаляет значение свойства категории.
@@ -3477,7 +3511,7 @@ class Vt extends $e {
3477
3511
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3478
3512
  }
3479
3513
  }
3480
- function Ke(n, r, e) {
3514
+ function Qe(n, r, e) {
3481
3515
  let s;
3482
3516
  return n.some((i) => {
3483
3517
  if (i.type === e && i.id === r)
@@ -3486,35 +3520,35 @@ function Ke(n, r, e) {
3486
3520
  return !1;
3487
3521
  const o = i;
3488
3522
  if (o.products && o.products.length > 0) {
3489
- const c = Ke(o.products, r, e);
3523
+ const c = Qe(o.products, r, e);
3490
3524
  if (c)
3491
3525
  return s = c, !0;
3492
3526
  }
3493
3527
  if (o.categories && o.categories.length > 0) {
3494
- const c = Ke(o.categories, r, e);
3528
+ const c = Qe(o.categories, r, e);
3495
3529
  if (c)
3496
3530
  return s = c, !0;
3497
3531
  }
3498
3532
  return !1;
3499
3533
  }), s;
3500
3534
  }
3501
- function Qe(n) {
3535
+ function Ye(n) {
3502
3536
  const r = [];
3503
3537
  return n.forEach((e) => {
3504
3538
  if (r.push(e), e.type === "category") {
3505
3539
  const s = e;
3506
- s.products && s.products.length > 0 && r.push(...Qe(s.products)), s.categories && s.categories.length > 0 && r.push(...Qe(s.categories));
3540
+ s.products && s.products.length > 0 && r.push(...Ye(s.products)), s.categories && s.categories.length > 0 && r.push(...Ye(s.categories));
3507
3541
  }
3508
3542
  }), r;
3509
3543
  }
3510
- 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 || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
3511
- class ot extends P {
3544
+ var ct = /* @__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.Curators = "curators", n))(ct || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3545
+ class lt extends P {
3512
3546
  }
3513
- class mr extends P {
3547
+ class wr extends P {
3514
3548
  }
3515
- class Kt extends P {
3549
+ class Yt extends P {
3516
3550
  }
3517
- class ct extends P {
3551
+ class ut extends P {
3518
3552
  }
3519
3553
  class Ce extends b {
3520
3554
  /**
@@ -3543,26 +3577,26 @@ class F extends P {
3543
3577
  return new F({
3544
3578
  id: 1,
3545
3579
  guid: "",
3546
- slug: d.Person,
3580
+ slug: q.Person,
3547
3581
  name: ""
3548
3582
  });
3549
3583
  }
3550
3584
  }
3551
- class lt extends P {
3585
+ class pt extends P {
3552
3586
  }
3553
- class ut extends P {
3587
+ class ht extends P {
3554
3588
  }
3555
3589
  class re extends P {
3556
3590
  }
3557
- class pt extends P {
3591
+ class gt extends P {
3558
3592
  }
3559
- class ht extends P {
3593
+ class mt extends P {
3560
3594
  }
3561
- class fr extends P {
3595
+ class Cr extends P {
3562
3596
  }
3563
- class yr extends P {
3597
+ class vr extends P {
3564
3598
  }
3565
- class de extends j {
3599
+ class qe extends j {
3566
3600
  /**
3567
3601
  * Инициализирует экземпляр класса {@link BankAccount}.
3568
3602
  *
@@ -3644,10 +3678,10 @@ class M extends Ne {
3644
3678
  * Дата и время последнего удаления.
3645
3679
  */
3646
3680
  t(this, "deletedAt");
3647
- 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;
3681
+ 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;
3648
3682
  }
3649
3683
  }
3650
- class wr extends b {
3684
+ class Pr extends b {
3651
3685
  /**
3652
3686
  * Инициализирует экземпляр класса {@link ContragentBase}.
3653
3687
  *
@@ -3705,7 +3739,7 @@ class wr extends b {
3705
3739
  */
3706
3740
  t(this, "updater");
3707
3741
  if (e) {
3708
- 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) {
3742
+ if (this.opf = new F(e.opf), this.salesDirection = new x(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 U(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(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) {
3709
3743
  const s = [];
3710
3744
  e.contacts.forEach((i) => {
3711
3745
  s.push(new M(i));
@@ -3714,13 +3748,13 @@ class wr extends b {
3714
3748
  if (e.bankAccounts) {
3715
3749
  const s = [];
3716
3750
  e.bankAccounts.forEach((i) => {
3717
- s.push(new de(i));
3751
+ s.push(new qe(i));
3718
3752
  }), this.bankAccounts = s;
3719
3753
  }
3720
3754
  }
3721
3755
  }
3722
3756
  }
3723
- class gt extends wr {
3757
+ class ft extends Pr {
3724
3758
  /**
3725
3759
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3726
3760
  *
@@ -3730,7 +3764,7 @@ class gt extends wr {
3730
3764
  super(r);
3731
3765
  }
3732
3766
  }
3733
- class Cr extends wr {
3767
+ class Rr extends Pr {
3734
3768
  /**
3735
3769
  * Инициализирует экземпляр класса {@link ContragentIc}.
3736
3770
  *
@@ -3773,7 +3807,7 @@ class Cr extends wr {
3773
3807
  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 ?? "");
3774
3808
  }
3775
3809
  }
3776
- class vr extends Cr {
3810
+ class Dr extends Rr {
3777
3811
  /**
3778
3812
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3779
3813
  *
@@ -3788,7 +3822,7 @@ class vr extends Cr {
3788
3822
  e && (this.kpp = e.kpp ?? "");
3789
3823
  }
3790
3824
  }
3791
- class mt extends vr {
3825
+ class yt extends Dr {
3792
3826
  /**
3793
3827
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3794
3828
  *
@@ -3819,14 +3853,14 @@ class ve {
3819
3853
  */
3820
3854
  static createInstance(r) {
3821
3855
  switch (r.opf.slug) {
3822
- case d.Ic:
3823
- return new Cr(r);
3824
- case d.UlR:
3825
- return new vr(r);
3826
- case d.UlNr:
3827
- return new mt(r);
3856
+ case q.Ic:
3857
+ return new Rr(r);
3858
+ case q.UlR:
3859
+ return new Dr(r);
3860
+ case q.UlNr:
3861
+ return new yt(r);
3828
3862
  default:
3829
- return new gt(r);
3863
+ return new ft(r);
3830
3864
  }
3831
3865
  }
3832
3866
  }
@@ -3845,7 +3879,7 @@ class xe extends j {
3845
3879
  this.isPrimary = e.isPrimary;
3846
3880
  }
3847
3881
  }
3848
- class ft extends M {
3882
+ class wt extends M {
3849
3883
  /**
3850
3884
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3851
3885
  *
@@ -3873,7 +3907,7 @@ class ft extends M {
3873
3907
  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))));
3874
3908
  }
3875
3909
  }
3876
- class Pe extends Kr {
3910
+ class Pe extends Xr {
3877
3911
  /**
3878
3912
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3879
3913
  *
@@ -3910,10 +3944,10 @@ class Pe extends Kr {
3910
3944
  * Признак того, что указанный адрес является адресом транспортной компании.
3911
3945
  */
3912
3946
  t(this, "isTransportCompanyAddress");
3913
- 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;
3947
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ur(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;
3914
3948
  }
3915
3949
  }
3916
- class Ye extends ge {
3950
+ class Xe extends ge {
3917
3951
  /**
3918
3952
  * Инициализирует экземпляр класса {@link Client}.
3919
3953
  *
@@ -3971,10 +4005,10 @@ class Ye extends ge {
3971
4005
  * @inheritDoc
3972
4006
  */
3973
4007
  t(this, "extraData");
3974
- 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 Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4008
+ 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 wr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new vr(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 Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3975
4009
  }
3976
4010
  }
3977
- class Qt {
4011
+ class Xt {
3978
4012
  /**
3979
4013
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3980
4014
  *
@@ -4037,6 +4071,10 @@ class Qt {
4037
4071
  * @inheritDoc
4038
4072
  */
4039
4073
  t(this, "managers");
4074
+ /**
4075
+ * @inheritDoc
4076
+ */
4077
+ t(this, "curators");
4040
4078
  /**
4041
4079
  * @inheritDoc
4042
4080
  */
@@ -4073,11 +4111,11 @@ class Qt {
4073
4111
  * @inheritDoc
4074
4112
  */
4075
4113
  t(this, "isExcludedFromMsCallsToClients");
4076
- var e, s, i, o, c, u;
4077
- 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 = {
4078
- createdAt: new k((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4079
- creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
4080
- isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
4114
+ var e, s, i, o, c, u, h, f;
4115
+ 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((g) => new He(g)), 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 = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Te(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new mr(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new x(g)), 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 = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new re(g)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
4116
+ createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
4117
+ creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
4118
+ isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
4081
4119
  }, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
4082
4120
  }
4083
4121
  /**
@@ -4108,6 +4146,9 @@ class Qt {
4108
4146
  case "managers":
4109
4147
  this.managers = [];
4110
4148
  break;
4149
+ case "curators":
4150
+ this.curators = [];
4151
+ break;
4111
4152
  case "salesDirections":
4112
4153
  this.salesDirections = [];
4113
4154
  break;
@@ -4139,11 +4180,11 @@ class Qt {
4139
4180
  return Object.keys(this).forEach((c) => {
4140
4181
  const u = this[c];
4141
4182
  // eslint-disable-next-line prettier/prettier
4142
- A(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4183
+ A(u) || C(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4143
4184
  }), !((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;
4144
4185
  }
4145
4186
  }
4146
- class Pr extends j {
4187
+ class Ar extends j {
4147
4188
  /**
4148
4189
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4149
4190
  *
@@ -4163,10 +4204,10 @@ class Pr extends j {
4163
4204
  * Признак того, что заказ подтвержден в 1С.
4164
4205
  */
4165
4206
  t(this, "isApproved1c");
4166
- 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;
4207
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(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;
4167
4208
  }
4168
4209
  }
4169
- class yt extends b {
4210
+ class Ct extends b {
4170
4211
  /**
4171
4212
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4172
4213
  *
@@ -4199,10 +4240,10 @@ class yt extends b {
4199
4240
  * Список менеджеров.
4200
4241
  */
4201
4242
  t(this, "managers");
4202
- (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)));
4243
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Ar(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)));
4203
4244
  }
4204
4245
  }
4205
- class wt {
4246
+ class vt {
4206
4247
  /**
4207
4248
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4208
4249
  *
@@ -4220,7 +4261,7 @@ class wt {
4220
4261
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4221
4262
  }
4222
4263
  }
4223
- class Yt extends wt {
4264
+ class Zt extends vt {
4224
4265
  /**
4225
4266
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4226
4267
  *
@@ -4251,7 +4292,7 @@ class Yt extends wt {
4251
4292
  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;
4252
4293
  }
4253
4294
  }
4254
- class Xt {
4295
+ class es {
4255
4296
  /**
4256
4297
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4257
4298
  *
@@ -4299,11 +4340,11 @@ class L extends $e {
4299
4340
  * @param contragent Данные о контрагенте клиента.
4300
4341
  */
4301
4342
  static transformContragentClientDataToRequest(r) {
4302
- var c, u, p, v, m, S, _, O;
4343
+ var c, u, h, f, g, a, _, d;
4303
4344
  let e;
4304
4345
  const s = r, i = r, o = r;
4305
4346
  switch (r.opf.slug) {
4306
- case d.Ic:
4347
+ case q.Ic:
4307
4348
  e = {
4308
4349
  opf: s.opf.slug,
4309
4350
  name: s.name,
@@ -4321,13 +4362,13 @@ class L extends $e {
4321
4362
  actual_address: s.actualAddress
4322
4363
  };
4323
4364
  break;
4324
- case d.UlR:
4365
+ case q.UlR:
4325
4366
  e = {
4326
4367
  opf: i.opf.slug,
4327
4368
  name: i.name,
4328
4369
  alternative_name: i.alternativeName,
4329
- partner_group_id: (p = i.partnerGroup) == null ? void 0 : p.id,
4330
- manager_id: (v = i.manager) == null ? void 0 : v.id,
4370
+ partner_group_id: (h = i.partnerGroup) == null ? void 0 : h.id,
4371
+ manager_id: (f = i.manager) == null ? void 0 : f.id,
4331
4372
  comment: i.comment,
4332
4373
  inn: i.inn,
4333
4374
  kpp: i.kpp,
@@ -4340,13 +4381,13 @@ class L extends $e {
4340
4381
  actual_address: i.actualAddress
4341
4382
  };
4342
4383
  break;
4343
- case d.UlNr:
4384
+ case q.UlNr:
4344
4385
  e = {
4345
4386
  opf: o.opf.slug,
4346
4387
  name: o.name,
4347
4388
  alternative_name: o.alternativeName,
4348
- partner_group_id: (m = o.partnerGroup) == null ? void 0 : m.id,
4349
- manager_id: (S = o.manager) == null ? void 0 : S.id,
4389
+ partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4390
+ manager_id: (a = o.manager) == null ? void 0 : a.id,
4350
4391
  comment: o.comment,
4351
4392
  director_name: o.directorName,
4352
4393
  director_position: o.directorPosition,
@@ -4365,7 +4406,7 @@ class L extends $e {
4365
4406
  name: r.name,
4366
4407
  alternative_name: r.alternativeName,
4367
4408
  partner_group_id: (_ = r.partnerGroup) == null ? void 0 : _.id,
4368
- manager_id: (O = r.manager) == null ? void 0 : O.id,
4409
+ manager_id: (d = r.manager) == null ? void 0 : d.id,
4369
4410
  comment: r.comment
4370
4411
  };
4371
4412
  break;
@@ -4414,7 +4455,7 @@ class L extends $e {
4414
4455
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4415
4456
  */
4416
4457
  getClient(r) {
4417
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ye(e.data));
4458
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Xe(e.data));
4418
4459
  }
4419
4460
  /**
4420
4461
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4456,7 +4497,7 @@ class L extends $e {
4456
4497
  const s = r.map((i) => i.id);
4457
4498
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4458
4499
  let o = [];
4459
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new yt(c))), o;
4500
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Ct(c))), o;
4460
4501
  });
4461
4502
  }
4462
4503
  /**
@@ -4468,7 +4509,7 @@ class L extends $e {
4468
4509
  getAllClientContacts(r) {
4469
4510
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4470
4511
  let s = [];
4471
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ft(i))), s;
4512
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new wt(i))), s;
4472
4513
  });
4473
4514
  }
4474
4515
  /**
@@ -4479,7 +4520,7 @@ class L extends $e {
4479
4520
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4480
4521
  */
4481
4522
  createClientCommonData(r, e = {}) {
4482
- return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ye(s.data), e);
4523
+ return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Xe(s.data), e);
4483
4524
  }
4484
4525
  /**
4485
4526
  * Обновляет данные указанного клиента.
@@ -4567,6 +4608,47 @@ class L extends $e {
4567
4608
  const s = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/detach`));
4568
4609
  await Promise.all(s);
4569
4610
  }
4611
+ /**
4612
+ * Закрепляет клиента за указанным куратором.
4613
+ *
4614
+ * @param clientId Идентификатор клиента, которого необходимо закрепить за куратором.
4615
+ * @param curatorId Идентификатор куратора, за которого необходимо закрепить клиента.
4616
+ * @param curatedDirection Направление кураторства.
4617
+ *
4618
+ * @see /doc/api/internal#/Клиенты/api_internal_client_curator_attach
4619
+ */
4620
+ attachToCurator(r, e, s) {
4621
+ return this.patch(`/internal/clients/${r}/curators/${e}/attach`, { curated_direction_id: s.id });
4622
+ }
4623
+ /**
4624
+ * Открепляет клиента от указанного куратора.
4625
+ *
4626
+ * @param clientId Идентификатор клиента, которого необходимо открепить от куратора.
4627
+ * @param curatorId Идентификатор куратора, от которого необходимо открепить клиента.
4628
+ * @param curatedDirection Направление кураторства.
4629
+ *
4630
+ * @see /doc/api/internal#/Клиенты/api_internal_client_curator_detach
4631
+ */
4632
+ detachFromCurator(r, e, s) {
4633
+ return this.patch(`/internal/clients/${r}/curators/${e}/detach`, { curated_direction_id: s.id });
4634
+ }
4635
+ /**
4636
+ * Устанавливает кураторов для указанного клиента.
4637
+ * При этом все ранее установленные кураторы будут удалены.
4638
+ *
4639
+ * @param clientId Идентификатор клиента, для которого необходимо установить кураторов.
4640
+ * @param curators Список данных о кураторах.
4641
+ *
4642
+ * @see /doc/api/internal#/Клиенты/api_internal_client_curator_update_list
4643
+ */
4644
+ setCurators(r, e) {
4645
+ return this.patch(`/internal/clients/${r}/curators`, {
4646
+ curators: e.map((s) => ({
4647
+ curator_id: s.curatorId,
4648
+ curated_direction_id: s.curatedDirection.id
4649
+ }))
4650
+ });
4651
+ }
4570
4652
  /**
4571
4653
  * Создаёт нового контрагента клиента.
4572
4654
  *
@@ -4664,7 +4746,7 @@ class L extends $e {
4664
4746
  return this.post(
4665
4747
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4666
4748
  L.transformClientContragentBankAccountToRequest(s),
4667
- (o) => new de(o.data),
4749
+ (o) => new qe(o.data),
4668
4750
  i
4669
4751
  );
4670
4752
  }
@@ -4681,7 +4763,7 @@ class L extends $e {
4681
4763
  return this.patch(
4682
4764
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4683
4765
  L.transformClientContragentBankAccountToRequest(s),
4684
- (o) => new de(o.data),
4766
+ (o) => new qe(o.data),
4685
4767
  i
4686
4768
  );
4687
4769
  }
@@ -4874,7 +4956,7 @@ class L extends $e {
4874
4956
  comment: e.comment,
4875
4957
  ...s
4876
4958
  };
4877
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new M(p.data), i);
4959
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new M(h.data), i);
4878
4960
  }
4879
4961
  /**
4880
4962
  * Устанавливает признак основного контактного лица.
@@ -4903,7 +4985,7 @@ class L extends $e {
4903
4985
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4904
4986
  }
4905
4987
  }
4906
- const V = class V extends h {
4988
+ const V = class V extends p {
4907
4989
  /**
4908
4990
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
4909
4991
  */
@@ -4935,7 +5017,7 @@ const V = class V extends h {
4935
5017
  */
4936
5018
  cacheResponse(e, s) {
4937
5019
  V.responseDataCache.set(e, {
4938
- validTo: kr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5020
+ validTo: Or(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4939
5021
  val: s
4940
5022
  });
4941
5023
  }
@@ -4951,9 +5033,9 @@ const V = class V extends h {
4951
5033
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
4952
5034
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
4953
5035
  const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
4954
- return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
4955
- const v = p.map((m) => je.instanceInitializer(e, m));
4956
- return i && v && this.cacheResponse(s, v), v;
5036
+ return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5037
+ const f = h.map((g) => je.instanceInitializer(e, g));
5038
+ return i && f && this.cacheResponse(s, f), f;
4957
5039
  });
4958
5040
  }
4959
5041
  };
@@ -4962,7 +5044,7 @@ const V = class V extends h {
4962
5044
  */
4963
5045
  t(V, "responseDataCache", /* @__PURE__ */ new Map());
4964
5046
  let pe = V;
4965
- class Zt extends h {
5047
+ class rs extends p {
4966
5048
  /**
4967
5049
  * Выполняет проверку занят ли указанный номер телефона.
4968
5050
  *
@@ -4976,7 +5058,7 @@ class Zt extends h {
4976
5058
  });
4977
5059
  }
4978
5060
  }
4979
- class es extends h {
5061
+ class ts extends p {
4980
5062
  /**
4981
5063
  * Возвращает настройки указанного конфигуратора для указанной категории.
4982
5064
  *
@@ -5047,18 +5129,18 @@ class es extends h {
5047
5129
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
5048
5130
  }
5049
5131
  }
5050
- class rs {
5132
+ class ss {
5051
5133
  /**
5052
5134
  * Возвращает диапазон дат по умолчанию.
5053
5135
  */
5054
5136
  static defaultDateRanges() {
5055
- const r = _r(/* @__PURE__ */ new Date(), 1);
5137
+ const r = qr(/* @__PURE__ */ new Date(), 1);
5056
5138
  return {
5057
5139
  // 'Следующий рабочий день' - это значение по-умолчанию
5058
- nextWorkingDay: { label: "Следующий рабочий день", from: Mr(r), to: Fr(r) },
5059
- today: { label: "Сегодня", from: Oe(), to: Ur() },
5060
- yesterday: { label: "Вчера", from: Nr(), to: dr() },
5061
- tomorrow: { label: "Завтра", from: qr(), to: Or() }
5140
+ nextWorkingDay: { label: "Следующий рабочий день", from: Br(r), to: Gr(r) },
5141
+ today: { label: "Сегодня", from: de(), to: jr() },
5142
+ yesterday: { label: "Вчера", from: Mr(), to: Fr() },
5143
+ tomorrow: { label: "Завтра", from: Ur(), to: Nr() }
5062
5144
  };
5063
5145
  }
5064
5146
  }
@@ -5102,8 +5184,8 @@ const K = class K {
5102
5184
  * Список единиц измерения линейной величины.
5103
5185
  */
5104
5186
  t(K, "linearValues", ["пог.м.", "м.", "м2"]);
5105
- let Xe = K;
5106
- class ts {
5187
+ let Ze = K;
5188
+ class is {
5107
5189
  /**
5108
5190
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5109
5191
  */
@@ -5119,7 +5201,7 @@ class ts {
5119
5201
  return r.id === 0 && r.guid === "-undefined-";
5120
5202
  }
5121
5203
  }
5122
- class Ct extends pe {
5204
+ class Pt extends pe {
5123
5205
  /**
5124
5206
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5125
5207
  */
@@ -5131,14 +5213,14 @@ class Ct extends pe {
5131
5213
  return this.cacheResponse(r, i), i;
5132
5214
  }
5133
5215
  }
5134
- class Rr extends Pr {
5216
+ class Tr extends Ar {
5135
5217
  /**
5136
5218
  * Инициализирует экземпляр класса {@link OrderInfo}.
5137
5219
  *
5138
5220
  * @param data Данные для первоначальной инициализации.
5139
5221
  */
5140
5222
  constructor(e) {
5141
- var s, i, o, c, u, p, v, m;
5223
+ var s, i, o, c, u, h, f, g;
5142
5224
  super(e);
5143
5225
  /**
5144
5226
  * Краткие данные о клиенте.
@@ -5186,13 +5268,13 @@ class Rr extends Pr {
5186
5268
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5187
5269
  }, this.delivery = {
5188
5270
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5189
- 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(),
5190
- address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new Pe(e.delivery.address) : void 0,
5191
- warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new Ae(e.delivery.warehouse) : void 0
5192
- }, 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;
5271
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5272
+ address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Pe(e.delivery.address) : void 0,
5273
+ warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new Ae(e.delivery.warehouse) : void 0
5274
+ }, 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 = 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;
5193
5275
  }
5194
5276
  }
5195
- class vt extends j {
5277
+ class Rt extends j {
5196
5278
  /**
5197
5279
  * Инициализирует экземпляр класса {@link OrderProduct}.
5198
5280
  *
@@ -5275,7 +5357,7 @@ class vt extends j {
5275
5357
  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;
5276
5358
  }
5277
5359
  }
5278
- class Pt extends Rr {
5360
+ class Dt extends Tr {
5279
5361
  /**
5280
5362
  * Инициализирует экземпляр класса {@link Order}.
5281
5363
  *
@@ -5315,10 +5397,10 @@ class Pt extends Rr {
5315
5397
  * Признак, что разрешена передача заказа в работу без оплаты.
5316
5398
  */
5317
5399
  t(this, "isAllowProcessingWithoutPayment");
5318
- 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;
5400
+ this.products = (e.products ?? []).map((s) => new Rt(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;
5319
5401
  }
5320
5402
  }
5321
- class ss extends $e {
5403
+ class ns extends $e {
5322
5404
  /**
5323
5405
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5324
5406
  *
@@ -5331,7 +5413,7 @@ class ss extends $e {
5331
5413
  getOrders(r, e, s) {
5332
5414
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5333
5415
  const o = { ...i.data };
5334
- return o.data = o.data.map((c) => new Rr(c)), o;
5416
+ return o.data = o.data.map((c) => new Tr(c)), o;
5335
5417
  });
5336
5418
  }
5337
5419
  /**
@@ -5349,7 +5431,7 @@ class ss extends $e {
5349
5431
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5350
5432
  */
5351
5433
  getOrder(r) {
5352
- return this.get(`/internal/orders/${r}`, {}, (e) => new Pt(e.data));
5434
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Dt(e.data));
5353
5435
  }
5354
5436
  }
5355
5437
  class Le {
@@ -5384,7 +5466,7 @@ class Le {
5384
5466
  }
5385
5467
  const ke = (n) => {
5386
5468
  var r, e, s, i, o;
5387
- return n ? ir(
5469
+ return n ? nr(
5388
5470
  {
5389
5471
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5390
5472
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5393,13 +5475,13 @@ const ke = (n) => {
5393
5475
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5394
5476
  hideNotActive: n.hideNotActive
5395
5477
  },
5396
- (c) => A(c) || (Q(c) || nr(c)) && Y(c)
5478
+ (c) => A(c) || (Q(c) || or(c)) && Y(c)
5397
5479
  ) : {};
5398
- }, Ze = (n) => {
5480
+ }, er = (n) => {
5399
5481
  const r = {};
5400
5482
  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;
5401
5483
  };
5402
- class is extends h {
5484
+ class os extends p {
5403
5485
  /**
5404
5486
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5405
5487
  *
@@ -5413,7 +5495,7 @@ class is extends h {
5413
5495
  return this.get(
5414
5496
  `/internal/price/products/${r}/analyze`,
5415
5497
  {
5416
- ...Ze(e),
5498
+ ...er(e),
5417
5499
  filters: ke(s)
5418
5500
  },
5419
5501
  (i) => i.data.map((o) => new Le(o))
@@ -5432,7 +5514,7 @@ class is extends h {
5432
5514
  return this.get(
5433
5515
  `/internal/price/categories/${r}/analyze`,
5434
5516
  {
5435
- ...Ze(e),
5517
+ ...er(e),
5436
5518
  filters: ke(s)
5437
5519
  },
5438
5520
  (i) => i.data.map((o) => new Le(o))
@@ -5460,7 +5542,7 @@ class is extends h {
5460
5542
  );
5461
5543
  }
5462
5544
  }
5463
- class Rt {
5545
+ class At {
5464
5546
  /**
5465
5547
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5466
5548
  *
@@ -5507,10 +5589,10 @@ class Rt {
5507
5589
  * @inheritDoc
5508
5590
  */
5509
5591
  t(this, "currency");
5510
- 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;
5592
+ 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 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;
5511
5593
  }
5512
5594
  }
5513
- class Dt extends oe {
5595
+ class Tt extends oe {
5514
5596
  /**
5515
5597
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
5516
5598
  *
@@ -5522,10 +5604,10 @@ class Dt extends oe {
5522
5604
  * @inheritDoc
5523
5605
  */
5524
5606
  t(this, "history");
5525
- this.history = Re(e.history, (s) => new Rt(s));
5607
+ this.history = Re(e.history, (s) => new At(s));
5526
5608
  }
5527
5609
  }
5528
- class ns extends h {
5610
+ class cs extends p {
5529
5611
  /**
5530
5612
  * Возвращает данные об истории изменения цен.
5531
5613
  *
@@ -5534,22 +5616,22 @@ class ns extends h {
5534
5616
  * @see /docs/api#/operations/api_internal_price_history_get
5535
5617
  */
5536
5618
  getProductPriceHistory(r) {
5537
- var o, c, u, p, v;
5538
- const e = $.getConfig().dateFormats.api, s = ir(
5619
+ var o, c, u, h, f;
5620
+ const e = $.getConfig().dateFormats.api, s = nr(
5539
5621
  ye(r, {
5540
5622
  costDate: {
5541
- from: _e((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5542
- to: _e((u = r.costDate) == null ? void 0 : u.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
5623
+ from: _e((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5624
+ to: _e((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5543
5625
  }
5544
5626
  }),
5545
- (m) => A(m) || (Q(m) || nr(m)) && Y(m)
5546
- ), i = ((v = r.product) == null ? void 0 : v[0]) ?? 0;
5547
- return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
5548
- new Dt(ye(m[0], { history: m }))
5627
+ (g) => A(g) || (Q(g) || or(g)) && Y(g)
5628
+ ), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
5629
+ return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
5630
+ new Tt(ye(g[0], { history: g }))
5549
5631
  ]);
5550
5632
  }
5551
5633
  }
5552
- class er {
5634
+ class rr {
5553
5635
  /**
5554
5636
  * Инициализирует экземпляр класса {@link RecommendationsList}.
5555
5637
  *
@@ -5567,7 +5649,7 @@ class er {
5567
5649
  r != null && r.products && (this.products = r.products.map((e) => new oe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new oe(e)));
5568
5650
  }
5569
5651
  }
5570
- class os extends h {
5652
+ class ls extends p {
5571
5653
  /**
5572
5654
  * Возвращает данные о рекомендациях указанной категории продуктов.
5573
5655
  *
@@ -5575,7 +5657,7 @@ class os extends h {
5575
5657
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
5576
5658
  */
5577
5659
  getProductCategoryRecommendations(r) {
5578
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new er(e.data));
5660
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new rr(e.data));
5579
5661
  }
5580
5662
  /**
5581
5663
  * Возвращает данные о рекомендациях указанного продукта.
@@ -5584,7 +5666,7 @@ class os extends h {
5584
5666
  * @see /docs/api#/operations/api_internal_recommendations_product_get
5585
5667
  */
5586
5668
  getProductRecommendations(r) {
5587
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new er(e.data));
5669
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new rr(e.data));
5588
5670
  }
5589
5671
  /**
5590
5672
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -5622,20 +5704,26 @@ class T extends pe {
5622
5704
  * и использовать в случае аналогичных запросов.
5623
5705
  */
5624
5706
  getReference(r, e = !1) {
5625
- return this.getTypedDataArrayRequester(ot, `/internal/references/${r}`, e);
5707
+ return this.getTypedDataArrayRequester(lt, `/internal/references/${r}`, e);
5626
5708
  }
5627
5709
  /**
5628
5710
  * Возвращает {@link Promise} для получения справочника данных о канале
5629
5711
  * первичного интереса.
5630
5712
  */
5631
5713
  getChannelPrimaryInterest() {
5632
- return this.getTypedDataArrayRequester(mr, "/internal/references/channel-primary-interest", !0);
5714
+ return this.getTypedDataArrayRequester(wr, "/internal/references/channel-primary-interest", !0);
5633
5715
  }
5634
5716
  /**
5635
5717
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5636
5718
  */
5637
5719
  getContactPositions() {
5638
- return this.getTypedDataArrayRequester(ct, "/internal/references/contact-position", !0);
5720
+ return this.getTypedDataArrayRequester(ut, "/internal/references/contact-position", !0);
5721
+ }
5722
+ /**
5723
+ * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
5724
+ */
5725
+ getCuratedDirection() {
5726
+ return this.getTypedDataArrayRequester(Be, "/internal/references/curated-direction", !0);
5639
5727
  }
5640
5728
  /**
5641
5729
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -5660,25 +5748,25 @@ class T extends pe {
5660
5748
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5661
5749
  */
5662
5750
  getOrderPaymentStatuses() {
5663
- return this.getTypedDataArrayRequester(lt, "/public/references/order-payment-status", !0);
5751
+ return this.getTypedDataArrayRequester(pt, "/public/references/order-payment-status", !0);
5664
5752
  }
5665
5753
  /**
5666
5754
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5667
5755
  */
5668
5756
  getOrderStatuses() {
5669
- return this.getTypedDataArrayRequester(ut, "/public/references/order-status", !0);
5757
+ return this.getTypedDataArrayRequester(ht, "/public/references/order-status", !0);
5670
5758
  }
5671
5759
  /**
5672
5760
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5673
5761
  */
5674
5762
  getPaymentTypes() {
5675
- return this.getTypedDataArrayRequester(pt, "/public/references/payment-type", !0);
5763
+ return this.getTypedDataArrayRequester(gt, "/public/references/payment-type", !0);
5676
5764
  }
5677
5765
  /**
5678
5766
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5679
5767
  */
5680
5768
  getResourceTypes() {
5681
- return this.getTypedDataArrayRequester(fr, "/internal/references/resource-type", !0);
5769
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/resource-type", !0);
5682
5770
  }
5683
5771
  /**
5684
5772
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -5690,7 +5778,7 @@ class T extends pe {
5690
5778
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5691
5779
  */
5692
5780
  getSourcePrimaryInterest() {
5693
- return this.getTypedDataArrayRequester(yr, "/internal/references/source-primary-interest", !0);
5781
+ return this.getTypedDataArrayRequester(vr, "/internal/references/source-primary-interest", !0);
5694
5782
  }
5695
5783
  /**
5696
5784
  * Выполняет поиск данных о городах по терму в названии.
@@ -5698,7 +5786,7 @@ class T extends pe {
5698
5786
  * @param term Терм поиска.
5699
5787
  */
5700
5788
  searchCity(r) {
5701
- return this.getTypedDataArrayRequester(Be, `/internal/references/city-with-region-and-country/search?term=${r}`);
5789
+ return this.getTypedDataArrayRequester(He, `/internal/references/city-with-region-and-country/search?term=${r}`);
5702
5790
  }
5703
5791
  /**
5704
5792
  * Выполняет поиск данных о регионах по терму в названии.
@@ -5732,7 +5820,7 @@ class T extends pe {
5732
5820
  * Возвращает {@link Promise} для получения справочника типов свойств.
5733
5821
  */
5734
5822
  getPropertyTypes() {
5735
- return this.getTypedDataArrayRequester(gr, "/internal/references/property-type", !0);
5823
+ return this.getTypedDataArrayRequester(yr, "/internal/references/property-type", !0);
5736
5824
  }
5737
5825
  /**
5738
5826
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -5744,11 +5832,11 @@ class T extends pe {
5744
5832
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5745
5833
  */
5746
5834
  getProductFileType() {
5747
- return this.getTypedDataArrayRequester(ht, "/public/references/product-file-type", !0);
5835
+ return this.getTypedDataArrayRequester(mt, "/public/references/product-file-type", !0);
5748
5836
  }
5749
5837
  }
5750
5838
  const D = te("__references_private", () => {
5751
- 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), O = f(void 0), G = f(void 0), B = f(void 0), be = f(void 0), l = f(void 0);
5839
+ 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), h = y(void 0), f = y(void 0), g = y(void 0), a = y(void 0), _ = y(void 0), d = y(void 0), G = y(void 0), B = y(void 0), be = y(void 0), l = y(void 0);
5752
5840
  return {
5753
5841
  /**
5754
5842
  * Список загружаемых/загруженных на данный момент значений.
@@ -5785,19 +5873,19 @@ const D = te("__references_private", () => {
5785
5873
  /**
5786
5874
  * Справочник статусов заказов.
5787
5875
  */
5788
- orderStatusReference: p,
5876
+ orderStatusReference: h,
5789
5877
  /**
5790
5878
  * Справочник типов оплаты заказов.
5791
5879
  */
5792
- paymentTypeReference: v,
5880
+ paymentTypeReference: f,
5793
5881
  /**
5794
5882
  * Справочник групп партнеров.
5795
5883
  */
5796
- partnerGroupReference: m,
5884
+ partnerGroupReference: g,
5797
5885
  /**
5798
5886
  * Справочник типов файлов продукктов/категорий.
5799
5887
  */
5800
- productFileTypeReference: S,
5888
+ productFileTypeReference: a,
5801
5889
  /**
5802
5890
  * Справочник типов ресурсов.
5803
5891
  */
@@ -5805,7 +5893,7 @@ const D = te("__references_private", () => {
5805
5893
  /**
5806
5894
  * Справочник направлений продаж.
5807
5895
  */
5808
- salesDirectionsReference: O,
5896
+ salesDirectionsReference: d,
5809
5897
  /**
5810
5898
  * Справочник источников первичного интереса.
5811
5899
  */
@@ -5823,92 +5911,92 @@ const D = te("__references_private", () => {
5823
5911
  */
5824
5912
  priceCoefficientsReference: l
5825
5913
  };
5826
- }), cs = te("references", () => {
5914
+ }), us = te("references", () => {
5827
5915
  const n = R(() => {
5828
5916
  const l = D();
5829
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
5830
- l.channelPrimaryInterestReference = g;
5831
- }).catch(y)), l.channelPrimaryInterestReference;
5917
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((m) => {
5918
+ l.channelPrimaryInterestReference = m;
5919
+ }).catch(w)), l.channelPrimaryInterestReference;
5832
5920
  }), r = R(() => {
5833
5921
  const l = D();
5834
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
5835
- l.contactPositionsReference = g;
5836
- }).catch(y)), l.contactPositionsReference;
5922
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(T).getContactPositions().then((m) => {
5923
+ l.contactPositionsReference = m;
5924
+ }).catch(w)), l.contactPositionsReference;
5837
5925
  }), e = R(() => {
5838
5926
  const l = D();
5839
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
5840
- l.currencyReference = g;
5841
- }).catch(y)), l.currencyReference;
5927
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(T).getCurrency().then((m) => {
5928
+ l.currencyReference = m;
5929
+ }).catch(w)), l.currencyReference;
5842
5930
  }), s = R(() => {
5843
5931
  const l = D();
5844
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
5845
- l.opfReference = g;
5846
- }).catch(y)), l.opfReference;
5932
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(T).getOpf().then((m) => {
5933
+ l.opfReference = m;
5934
+ }).catch(w)), l.opfReference;
5847
5935
  }), i = R(() => {
5848
5936
  const l = D();
5849
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
5850
- l.orderPaymentStatusReference = g;
5851
- }).catch(y)), l.orderPaymentStatusReference;
5937
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(T).getOrderPaymentStatuses().then((m) => {
5938
+ l.orderPaymentStatusReference = m;
5939
+ }).catch(w)), l.orderPaymentStatusReference;
5852
5940
  }), o = R(() => {
5853
5941
  const l = D();
5854
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
5855
- l.orderStatusReference = g;
5856
- }).catch(y)), l.orderStatusReference;
5942
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(T).getOrderStatuses().then((m) => {
5943
+ l.orderStatusReference = m;
5944
+ }).catch(w)), l.orderStatusReference;
5857
5945
  }), c = R(() => {
5858
5946
  const l = D();
5859
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
5860
- l.paymentTypeReference = g;
5861
- }).catch(y)), l.paymentTypeReference;
5947
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(T).getPaymentTypes().then((m) => {
5948
+ l.paymentTypeReference = m;
5949
+ }).catch(w)), l.paymentTypeReference;
5862
5950
  }), u = R(() => {
5863
5951
  const l = D();
5864
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
5865
- l.partnerGroupReference = g;
5866
- }).catch(y)), l.partnerGroupReference;
5867
- }), p = R(() => {
5952
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(T).getPartnerGroup().then((m) => {
5953
+ l.partnerGroupReference = m;
5954
+ }).catch(w)), l.partnerGroupReference;
5955
+ }), h = R(() => {
5868
5956
  const l = D();
5869
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
5870
- l.productFileTypeReference = g;
5871
- }).catch(y)), l.productFileTypeReference;
5872
- }), v = R(() => {
5957
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(T).getProductFileType().then((m) => {
5958
+ l.productFileTypeReference = m;
5959
+ }).catch(w)), l.productFileTypeReference;
5960
+ }), f = R(() => {
5873
5961
  const l = D();
5874
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
5875
- l.resourceTypesReference = g;
5876
- }).catch(y)), l.resourceTypesReference;
5877
- }), m = R(() => {
5962
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(T).getResourceTypes().then((m) => {
5963
+ l.resourceTypesReference = m;
5964
+ }).catch(w)), l.resourceTypesReference;
5965
+ }), g = R(() => {
5878
5966
  const l = D();
5879
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
5880
- l.salesDirectionsReference = g;
5881
- }).catch(y)), l.salesDirectionsReference;
5882
- }), S = R(() => {
5967
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((m) => {
5968
+ l.salesDirectionsReference = m;
5969
+ }).catch(w)), l.salesDirectionsReference;
5970
+ }), a = R(() => {
5883
5971
  const l = D();
5884
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
5885
- l.sourcePrimaryInterestReference = g;
5886
- }).catch(y)), l.sourcePrimaryInterestReference;
5972
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
5973
+ l.sourcePrimaryInterestReference = m;
5974
+ }).catch(w)), l.sourcePrimaryInterestReference;
5887
5975
  }), _ = R(() => {
5888
5976
  const l = D();
5889
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
5890
- l.deliveryTypeReference = g;
5891
- }).catch(y)), l.deliveryTypeReference;
5892
- }), O = R(() => {
5977
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
5978
+ l.deliveryTypeReference = m;
5979
+ }).catch(w)), l.deliveryTypeReference;
5980
+ }), d = R(() => {
5893
5981
  const l = D();
5894
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ct).getManagers().then((g) => {
5895
- l.managersList = g;
5896
- }).catch(y)), l.managersList;
5982
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Pt).getManagers().then((m) => {
5983
+ l.managersList = m;
5984
+ }).catch(w)), l.managersList;
5897
5985
  }), G = R(() => {
5898
5986
  const l = D();
5899
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
5900
- l.warehousesReference = g;
5901
- }).catch(y)), l.warehousesReference;
5987
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(T).getWarehouses().then((m) => {
5988
+ l.warehousesReference = m;
5989
+ }).catch(w)), l.warehousesReference;
5902
5990
  }), B = R(() => {
5903
5991
  const l = D();
5904
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
5905
- l.propertyTypesReference = g;
5906
- }).catch(y)), l.propertyTypesReference;
5992
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((m) => {
5993
+ l.propertyTypesReference = m;
5994
+ }).catch(w)), l.propertyTypesReference;
5907
5995
  }), be = R(() => {
5908
5996
  const l = D();
5909
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
5910
- l.priceCoefficientsReference = g;
5911
- }).catch(y)), l.priceCoefficientsReference;
5997
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((m) => {
5998
+ l.priceCoefficientsReference = m;
5999
+ }).catch(w)), l.priceCoefficientsReference;
5912
6000
  });
5913
6001
  return {
5914
6002
  /**
@@ -5946,19 +6034,19 @@ const D = te("__references_private", () => {
5946
6034
  /**
5947
6035
  * Справочник типов файлов продуктов/категорий.
5948
6036
  */
5949
- productFilesTypesReference: p,
6037
+ productFilesTypesReference: h,
5950
6038
  /**
5951
6039
  * Справочник типов ресурсов.
5952
6040
  */
5953
- resourceTypesReference: v,
6041
+ resourceTypesReference: f,
5954
6042
  /**
5955
6043
  * Справочник направлений продаж.
5956
6044
  */
5957
- salesDirectionsReference: m,
6045
+ salesDirectionsReference: g,
5958
6046
  /**
5959
6047
  * Справочник каналов первичного интереса.
5960
6048
  */
5961
- sourcePrimaryInterestsReference: S,
6049
+ sourcePrimaryInterestsReference: a,
5962
6050
  /**
5963
6051
  * Справочник типов доставки.
5964
6052
  */
@@ -5966,7 +6054,7 @@ const D = te("__references_private", () => {
5966
6054
  /**
5967
6055
  * Список менеджеров.
5968
6056
  */
5969
- managersList: O,
6057
+ managersList: d,
5970
6058
  /**
5971
6059
  * Справочник складов.
5972
6060
  */
@@ -5981,7 +6069,7 @@ const D = te("__references_private", () => {
5981
6069
  priceCoefficientsReference: be
5982
6070
  };
5983
6071
  });
5984
- class At {
6072
+ class $t {
5985
6073
  /**
5986
6074
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5987
6075
  *
@@ -5999,7 +6087,7 @@ class At {
5999
6087
  this.name = r.name, this.content = r.content;
6000
6088
  }
6001
6089
  }
6002
- class rr {
6090
+ class tr {
6003
6091
  /**
6004
6092
  * Инициализирует экземпляр класса {@link Seo}.
6005
6093
  *
@@ -6035,10 +6123,10 @@ class rr {
6035
6123
  */
6036
6124
  t(this, "meta");
6037
6125
  var e;
6038
- 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 At(s))) ?? [];
6126
+ this.resourceType = new Cr(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 $t(s))) ?? [];
6039
6127
  }
6040
6128
  }
6041
- class ls extends h {
6129
+ class ps extends p {
6042
6130
  /**
6043
6131
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6044
6132
  *
@@ -6046,7 +6134,7 @@ class ls extends h {
6046
6134
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6047
6135
  */
6048
6136
  getResourceSeoData(r, e) {
6049
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new rr(s.data));
6137
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new tr(s.data));
6050
6138
  }
6051
6139
  /**
6052
6140
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6057,7 +6145,7 @@ class ls extends h {
6057
6145
  * в случае ошибок в запросах.
6058
6146
  */
6059
6147
  saveResourceSeoData(r, e = {}) {
6060
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new rr(s.data), e);
6148
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new tr(s.data), e);
6061
6149
  }
6062
6150
  /**
6063
6151
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6069,7 +6157,7 @@ class ls extends h {
6069
6157
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6070
6158
  }
6071
6159
  }
6072
- class us extends h {
6160
+ class hs extends p {
6073
6161
  /**
6074
6162
  * Возвращает подсказки по адресам.
6075
6163
  *
@@ -6116,8 +6204,8 @@ class us extends h {
6116
6204
  });
6117
6205
  }
6118
6206
  }
6119
- var Tt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Tt || {});
6120
- class $t extends hr {
6207
+ var bt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(bt || {});
6208
+ class at extends fr {
6121
6209
  /**
6122
6210
  * Инициализирует экземпляр класса {@link User}.
6123
6211
  *
@@ -6140,7 +6228,7 @@ class $t extends hr {
6140
6228
  this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
6141
6229
  }
6142
6230
  }
6143
- class ps extends h {
6231
+ class gs extends p {
6144
6232
  /**
6145
6233
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6146
6234
  */
@@ -6156,17 +6244,17 @@ class ps extends h {
6156
6244
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6157
6245
  }
6158
6246
  }
6159
- class bt extends h {
6247
+ class St extends p {
6160
6248
  /**
6161
6249
  * Возвращает данные о текущем пользователе.
6162
6250
  */
6163
6251
  // eslint-disable-next-line class-methods-use-this
6164
6252
  getCurrentUser() {
6165
- return this.get("/internal/users/info", {}, (r) => new $t(r.data));
6253
+ return this.get("/internal/users/info", {}, (r) => new at(r.data));
6166
6254
  }
6167
6255
  }
6168
- const St = te("__user_state_private", () => {
6169
- const n = f({}), r = f(void 0);
6256
+ const It = te("__user_state_private", () => {
6257
+ const n = y({}), r = y(void 0);
6170
6258
  return {
6171
6259
  /**
6172
6260
  * Список загружаемых/загруженных на данный момент значений.
@@ -6177,20 +6265,20 @@ const St = te("__user_state_private", () => {
6177
6265
  */
6178
6266
  currentUser: r
6179
6267
  };
6180
- }), hs = te("user_state", () => ({
6268
+ }), ms = te("user_state", () => ({
6181
6269
  /**
6182
6270
  * Данные о текущем пользователе.
6183
6271
  */
6184
6272
  currentUser: R(() => {
6185
- const r = St();
6186
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(bt).getCurrentUser().then((e) => {
6273
+ const r = It();
6274
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(St).getCurrentUser().then((e) => {
6187
6275
  r.currentUser = e;
6188
- }).catch(y).finally(() => {
6276
+ }).catch(w).finally(() => {
6189
6277
  r.dataLoaderList.currentUser = !1;
6190
6278
  })), r.currentUser;
6191
6279
  })
6192
6280
  }));
6193
- class gs {
6281
+ class fs {
6194
6282
  /**
6195
6283
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
6196
6284
  *
@@ -6214,150 +6302,152 @@ class gs {
6214
6302
  }
6215
6303
  }
6216
6304
  export {
6217
- ot as AnyReference,
6218
- Ft as AppBaseConfig,
6305
+ lt as AnyReference,
6306
+ jt as AppBaseConfig,
6219
6307
  $ as AppConfigProvider,
6220
- de as BankAccount,
6308
+ qe as BankAccount,
6221
6309
  $e as BasePaginationProvider,
6222
- Jr as CalculationTypeEnum,
6310
+ Qr as CalculationTypeEnum,
6223
6311
  me as Cart,
6224
- Wr as CartItem,
6225
- zr as CartItemBase,
6226
- Nt as CartProvider,
6227
- Mt as CatalogProvider,
6228
- or as CatalogableItem,
6312
+ Kr as CartItem,
6313
+ Vr as CartItemBase,
6314
+ Ft as CartProvider,
6315
+ Gt as CatalogProvider,
6316
+ cr as CatalogableItem,
6229
6317
  z as Category,
6230
- Je as CategoryPricingRule,
6231
- mr as ChannelPrimaryInterest,
6232
- Kt as City,
6233
- Be as CityWithRegionAndCountry,
6234
- Ye as Client,
6235
- yt as ClientAdditionalData,
6318
+ Ve as CategoryPricingRule,
6319
+ wr as ChannelPrimaryInterest,
6320
+ Yt as City,
6321
+ He as CityWithRegionAndCountry,
6322
+ Xe as Client,
6323
+ Ct as ClientAdditionalData,
6236
6324
  we as ClientCategory,
6237
6325
  L as ClientDataProvider,
6238
- jt as ClientPriceProvider,
6239
- Gt as ClientPriceTemplateProvider,
6326
+ Bt as ClientPriceProvider,
6327
+ Ht as ClientPriceTemplateProvider,
6240
6328
  Z as ClientProduct,
6241
- Ht as ClientProductCategoryDataProvider,
6242
- zt as ClientProductDataProvider,
6329
+ Wt as ClientProductCategoryDataProvider,
6330
+ Jt as ClientProductDataProvider,
6243
6331
  ge as ClientShortInfo,
6244
- nt as ClientsAdditionalDataRequestTypeEnum,
6245
- Qt as ClientsListFilters,
6332
+ ct as ClientsAdditionalDataRequestTypeEnum,
6333
+ Xt as ClientsListFilters,
6246
6334
  oe as CodedIdentity,
6247
- es as ConfiguratorProvider,
6335
+ ts as ConfiguratorProvider,
6248
6336
  Ne as Contact,
6249
- Yr as ContactLinks,
6337
+ hr as ContactLinks,
6250
6338
  M as ContactPerson,
6251
- ft as ContactPersonRelated,
6252
- ct as ContactPosition,
6339
+ wt as ContactPersonRelated,
6340
+ ut as ContactPosition,
6253
6341
  xe as ContactRelation,
6254
- wr as ContragentBase,
6342
+ Pr as ContragentBase,
6255
6343
  ve as ContragentFactory,
6256
- Cr as ContragentIc,
6257
- gt as ContragentPerson,
6258
- mt as ContragentUlNr,
6259
- vr as ContragentUlR,
6344
+ Rr as ContragentIc,
6345
+ ft as ContragentPerson,
6346
+ yt as ContragentUlNr,
6347
+ Dr as ContragentUlR,
6260
6348
  Ge as CostSourceEnum,
6261
6349
  ee as Country,
6350
+ Be as CuratedDirection,
6351
+ mr as Curator,
6262
6352
  Ce as Currency,
6263
- us as DataSuggestionProvider,
6264
- Yt as DataTablePagination,
6265
- wt as DataTablePaginationRequestParams,
6266
- Xt as DataTableSortRequestParams,
6267
- rs as DateTimeProvider,
6268
- Kr as DeletableNamedIdentity,
6353
+ hs as DataSuggestionProvider,
6354
+ Zt as DataTablePagination,
6355
+ vt as DataTablePaginationRequestParams,
6356
+ es as DataTableSortRequestParams,
6357
+ ss as DateTimeProvider,
6358
+ Xr as DeletableNamedIdentity,
6269
6359
  Pe as DeliveryAddress,
6270
6360
  X as DeliveryType,
6271
- dt as DetailedJwtPayload,
6272
- et as DeviceTypeResolutionConfig,
6273
- Qr as DiscountShortInfo,
6274
- gs as FieldValidationResultData,
6361
+ Ut as DetailedJwtPayload,
6362
+ tt as DeviceTypeResolutionConfig,
6363
+ Zr as DiscountShortInfo,
6364
+ fs as FieldValidationResultData,
6275
6365
  ue as FilterGroup,
6276
- Ve as FilterItem,
6366
+ Ke as FilterItem,
6277
6367
  Ee as FilterOpEnum,
6278
- lr as GeoCoordinates,
6279
- Er as HiddenCatalogableItem,
6368
+ ur as GeoCoordinates,
6369
+ Wr as HiddenCatalogableItem,
6280
6370
  pe as HttpCachedRequester,
6281
- rt as HttpParamsConfig,
6282
- h as HttpRequester,
6371
+ st as HttpParamsConfig,
6372
+ p as HttpRequester,
6283
6373
  j as Identity,
6284
- Hr as Image,
6374
+ Jr as Image,
6285
6375
  N as JwtPayload,
6286
6376
  Te as Manager,
6287
6377
  ce as ManagerCommon,
6288
- ts as ManagerDataFactory,
6289
- Ct as ManagerDataProvider,
6290
- At as MetaTagItem,
6378
+ is as ManagerDataFactory,
6379
+ Pt as ManagerDataProvider,
6380
+ $t as MetaTagItem,
6291
6381
  b as NamedIdentity,
6292
6382
  F as Opf,
6293
- d as OpfEnum,
6294
- Pt as Order,
6295
- Rr as OrderInfo,
6296
- lt as OrderPaymentStatus,
6297
- vt as OrderProduct,
6298
- Pr as OrderShortInfo,
6299
- ut as OrderStatus,
6300
- ss as OrdersDataProvider,
6383
+ q as OpfEnum,
6384
+ Dt as Order,
6385
+ Tr as OrderInfo,
6386
+ pt as OrderPaymentStatus,
6387
+ Rt as OrderProduct,
6388
+ Ar as OrderShortInfo,
6389
+ ht as OrderStatus,
6390
+ ns as OrdersDataProvider,
6301
6391
  re as PartnerGroup,
6302
- pt as PaymentType,
6392
+ gt as PaymentType,
6303
6393
  fe as PreferencesStorageProvider,
6304
6394
  Le as PriceAnalyze,
6305
- is as PriceAnalyzeProvider,
6395
+ os as PriceAnalyzeProvider,
6306
6396
  De as PriceCoefficient,
6307
- cr as PriceCoefficientEnum,
6308
- ns as PriceHistoryDataProvider,
6309
- Rt as PriceHistoryItem,
6397
+ lr as PriceCoefficientEnum,
6398
+ cs as PriceHistoryDataProvider,
6399
+ At as PriceHistoryItem,
6310
6400
  W as PriceTemplate,
6311
- ae as PriceTemplateCategory,
6401
+ Se as PriceTemplateCategory,
6312
6402
  se as PriceTemplateClient,
6313
- pr as PriceTemplateICatalogableItem,
6403
+ gr as PriceTemplateICatalogableItem,
6314
6404
  Ie as PriceTemplateProduct,
6315
- Wt as PriceTemplateProvider,
6405
+ Vt as PriceTemplateProvider,
6316
6406
  ne as PricingRole,
6317
- Jt as PricingRoleProvider,
6318
- qe as PrimaryCatalogableItem,
6407
+ Kt as PricingRoleProvider,
6408
+ Oe as PrimaryCatalogableItem,
6319
6409
  I as Product,
6320
- Bt as ProductCategoryDataProvider,
6321
- Et as ProductDataProvider,
6322
- ht as ProductFileType,
6410
+ Et as ProductCategoryDataProvider,
6411
+ zt as ProductDataProvider,
6412
+ mt as ProductFileType,
6323
6413
  Me as ProductPriceCoefficient,
6324
- Dt as ProductPriceHistory,
6325
- Vt as PropertiesProvider,
6414
+ Tt as ProductPriceHistory,
6415
+ Qt as PropertiesProvider,
6326
6416
  ie as Property,
6327
- gr as PropertyType,
6328
- Vr as PropertyTypeEnum,
6329
- H as PropertyValue,
6330
- os as RecommendationsDataProvider,
6331
- er as RecommendationsList,
6417
+ yr as PropertyType,
6418
+ Yr as PropertyTypeEnum,
6419
+ E as PropertyValue,
6420
+ ls as RecommendationsDataProvider,
6421
+ rr as RecommendationsList,
6332
6422
  P as Reference,
6333
6423
  T as ReferenceDataProvider,
6334
6424
  le as Region,
6335
- fr as ResourceType,
6425
+ Cr as ResourceType,
6336
6426
  x as SalesDirection,
6337
- tt as SentryConfig,
6338
- rr as Seo,
6339
- ls as SeoDataProvider,
6340
- yr as SourcePrimaryInterest,
6341
- Br as StockCount,
6342
- Ut as TemplatesListFilters,
6427
+ it as SentryConfig,
6428
+ tr as Seo,
6429
+ ps as SeoDataProvider,
6430
+ vr as SourcePrimaryInterest,
6431
+ zr as StockCount,
6432
+ Mt as TemplatesListFilters,
6343
6433
  je as TypedInstanceFactory,
6344
- Xe as UnitsHelper,
6345
- Zt as UnknownClientDataProvider,
6346
- ur as UpdatableNamedIdentity,
6347
- $t as User,
6348
- ps as UserAuthDataProvider,
6349
- hr as UserCommonInfo,
6350
- bt as UserDataProvider,
6351
- Xr as UserPricingRole,
6434
+ Ze as UnitsHelper,
6435
+ rs as UnknownClientDataProvider,
6436
+ pr as UpdatableNamedIdentity,
6437
+ at as User,
6438
+ gs as UserAuthDataProvider,
6439
+ fr as UserCommonInfo,
6440
+ St as UserDataProvider,
6441
+ et as UserPricingRole,
6352
6442
  U as UserShortInfo,
6353
- Tt as UserTypeEnum,
6354
- st as VersionConfig,
6443
+ bt as UserTypeEnum,
6444
+ nt as VersionConfig,
6355
6445
  Ae as Warehouse,
6356
- it as WebSocketConfig,
6357
- Ke as findCatalogItemByIdRecursive,
6358
- Qe as flattenCatalogItems,
6359
- Se as useAuthStateStore,
6360
- cs as useReferencesStore,
6361
- hs as useUserStateStore
6446
+ ot as WebSocketConfig,
6447
+ Qe as findCatalogItemByIdRecursive,
6448
+ Ye as flattenCatalogItems,
6449
+ ae as useAuthStateStore,
6450
+ us as useReferencesStore,
6451
+ ms as useUserStateStore
6362
6452
  };
6363
6453
  //# sourceMappingURL=sc-common-lib.js.map