@snabcentr/common-lib 2.2.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/sc-common-lib.js +523 -505
  3. package/dist/sc-common-lib.js.map +1 -1
  4. package/dist/sc-common-lib.umd.cjs +1 -1
  5. package/dist/sc-common-lib.umd.cjs.map +1 -1
  6. package/dist/src/clients/classes/contragent/contragent-base.d.ts +2 -10
  7. package/dist/src/clients/classes/contragent/contragent-base.d.ts.map +1 -1
  8. package/dist/src/clients/classes/contragent/contragent-factory.d.ts +1 -1
  9. package/dist/src/clients/classes/contragent/contragent-factory.d.ts.map +1 -1
  10. package/dist/src/clients/classes/contragent/contragent-ic.d.ts +1 -1
  11. package/dist/src/clients/classes/contragent/contragent-ic.d.ts.map +1 -1
  12. package/dist/src/clients/classes/contragent/contragent-person.d.ts +1 -1
  13. package/dist/src/clients/classes/contragent/contragent-person.d.ts.map +1 -1
  14. package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts +1 -1
  15. package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts.map +1 -1
  16. package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts +1 -1
  17. package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts.map +1 -1
  18. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts +1 -10
  19. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts.map +1 -1
  20. package/dist/src/clients/interfaces/contragent/i-contragent-ic.d.ts.map +1 -1
  21. package/dist/src/clients/interfaces/contragent/i-contragent-person.d.ts.map +1 -1
  22. package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts +1 -1
  23. package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts.map +1 -1
  24. package/dist/src/clients/interfaces/contragent/i-contragent-ul-r.d.ts.map +1 -1
  25. package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
  26. package/dist/src/orders/providers/orders-data-provider.d.ts +15 -0
  27. package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
  28. package/package.json +1 -1
@@ -1,14 +1,14 @@
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 ir } from "jwt-decode";
5
- import { merge as Ne, isUndefined as ar, isNil as A, isEmpty as Y, noop as w, mapValues as nr, 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 he, forEach as dr, isDate as ke, omitBy as or, isObject as cr } from "lodash-es";
6
- import { objectToCamel as Fe, objectToSnake as We } from "ts-case-convert";
7
- import { isAfter as Je, parseISO as v, startOfToday as _e, 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 Hr } from "date-fns";
8
- import { defineStore as te } from "pinia";
9
- import { ref as y, markRaw as Br, computed as R } from "vue";
10
- import Er from "axios";
11
- class N {
1
+ var br = Object.defineProperty;
2
+ var Sr = (n, r, e) => r in n ? br(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => Sr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as nr } from "jwt-decode";
5
+ import { merge as qe, isUndefined as ar, isNil as D, isEmpty as K, noop as w, mapValues as or, isArray as V, every as Ir, split as xr, toUpper as kr, constant as Lr, isString as C, cloneDeep as _r, toLower as dr, isFunction as Ne, map as pe, forEach as Or, isDate as ke, omitBy as cr, isObject as lr } from "lodash-es";
6
+ import { objectToCamel as Ue, objectToSnake as We } from "ts-case-convert";
7
+ import { isAfter as Je, parseISO as v, startOfToday as Le, format as L, addSeconds as qr, addBusinessDays as Nr, endOfTomorrow as Ur, startOfTomorrow as Fr, endOfYesterday as Mr, startOfYesterday as jr, endOfToday as Gr, endOfDay as Hr, startOfDay as Br } from "date-fns";
8
+ import { defineStore as ee } from "pinia";
9
+ import { ref as y, markRaw as Er, computed as R } from "vue";
10
+ import zr from "axios";
11
+ class O {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class N {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- Ne(this, r);
102
+ qe(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class N {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = ir(r), s = new N(Fe(e));
110
+ const e = nr(r), s = new O(Ue(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Ut extends N {
114
+ class Ut extends O {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class Ut extends N {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- Ne(this, e);
146
+ qe(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,26 +151,26 @@ class Ut extends N {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new N(Fe(ir(e)));
154
+ return new O(Ue(nr(e)));
155
155
  }
156
156
  }
157
- const J = class J {
157
+ const z = class z {
158
158
  /**
159
159
  * Инициализирует и возвращает конфигурацию приложения.
160
160
  *
161
161
  * @param config Данные для первоначальной инициализации.
162
162
  */
163
163
  static init(r) {
164
- J.config = r;
164
+ z.config = r;
165
165
  }
166
166
  /**
167
167
  * Возвращает текущую конфигурацию приложения.
168
168
  */
169
169
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
170
170
  static getConfig() {
171
- if (ar(J.config))
171
+ if (ar(z.config))
172
172
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
173
- return J.config;
173
+ return z.config;
174
174
  }
175
175
  /**
176
176
  * Выполняет загрузку конфигурации по указанному пути.
@@ -189,9 +189,9 @@ const J = class J {
189
189
  /**
190
190
  * Конфигурация приложения.
191
191
  */
192
- t(J, "config");
193
- let T = J;
194
- class ye {
192
+ t(z, "config");
193
+ let T = z;
194
+ class fe {
195
195
  /**
196
196
  * Возвращает актуальные и не просроченные данные из хранилища.
197
197
  *
@@ -210,8 +210,8 @@ class ye {
210
210
  if (e)
211
211
  try {
212
212
  const s = JSON.parse(e);
213
- if (!s.availableFor || Je(v(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
214
- if (A(s.data) || Y(s.data))
213
+ if (!s.availableFor || Je(v(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
214
+ if (D(s.data) || K(s.data))
215
215
  throw new Error("Data is empty");
216
216
  return s.data;
217
217
  }
@@ -233,7 +233,7 @@ class ye {
233
233
  static saveActualDataToStorage(r, e, s) {
234
234
  if (this.isLocalStorageAvailable())
235
235
  try {
236
- if (A(e) || Y(e))
236
+ if (D(e) || K(e))
237
237
  throw new Error("Data is empty");
238
238
  const i = JSON.stringify({
239
239
  availableFor: s,
@@ -284,7 +284,7 @@ class ye {
284
284
  const i = localStorage.getItem(s);
285
285
  if (i) {
286
286
  const o = JSON.parse(i);
287
- o.availableFor && !Je(v(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
287
+ o.availableFor && !Je(v(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
288
288
  }
289
289
  } catch {
290
290
  r.push(s);
@@ -302,17 +302,17 @@ class ye {
302
302
  }
303
303
  function Ve(n) {
304
304
  try {
305
- const r = N.getJwtPayload(n);
305
+ const r = O.getJwtPayload(n);
306
306
  return new Date(r.exp * 1e3);
307
307
  } catch {
308
308
  return;
309
309
  }
310
310
  }
311
- const B = te("__auth_state_private", () => {
311
+ const G = ee("__auth_state_private", () => {
312
312
  const n = y(
313
313
  (() => {
314
314
  var u;
315
- const o = ye.getActualDataFromStorage(
315
+ const o = fe.getActualDataFromStorage(
316
316
  "sc.token"
317
317
  /* JwtToken */
318
318
  );
@@ -321,11 +321,11 @@ const B = te("__auth_state_private", () => {
321
321
  const c = (u = T.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
322
322
  return c ? Promise.resolve(c) : void 0;
323
323
  })()
324
- ), r = y(void 0), e = y(void 0), s = Br(/* @__PURE__ */ new Map());
324
+ ), r = y(void 0), e = y(void 0), s = Er(/* @__PURE__ */ new Map());
325
325
  function i() {
326
- e.value = void 0, A(n.value) || n.value.then((o) => {
327
- const c = N.getJwtPayload(o);
328
- e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
326
+ e.value = void 0, D(n.value) || n.value.then((o) => {
327
+ const c = O.getJwtPayload(o);
328
+ e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
329
329
  }).catch(w);
330
330
  }
331
331
  return {
@@ -350,47 +350,47 @@ const B = te("__auth_state_private", () => {
350
350
  */
351
351
  recalculateUserPermissions: i
352
352
  };
353
- }), be = te("__auth_state", () => {
353
+ }), $e = ee("__auth_state", () => {
354
354
  const n = R(() => {
355
- const o = B();
356
- if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
355
+ const o = G();
356
+ if (D(o.jwtToken) && !D(o.jwtTokenUpdater)) {
357
357
  const c = o.jwtTokenUpdater();
358
358
  o.jwtToken = c, c.then((u) => {
359
- o.jwtToken = Promise.resolve(u), ye.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
359
+ o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
360
360
  }).catch(w);
361
361
  }
362
362
  return o.jwtToken;
363
363
  });
364
364
  function r(o) {
365
- B().jwtTokenUpdater = o;
365
+ G().jwtTokenUpdater = o;
366
366
  }
367
367
  function e(o) {
368
- const c = B();
369
- c.jwtToken = Promise.resolve(o), ye.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
368
+ const c = G();
369
+ c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
370
370
  }
371
371
  function s() {
372
- const o = B();
373
- o.jwtToken = void 0, o.userPermissions = void 0, ye.saveActualDataToStorage("sc.token", void 0);
372
+ const o = G();
373
+ o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
374
374
  }
375
375
  function i(o) {
376
- const c = B();
377
- !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
378
- const m = N.getJwtPayload(f);
379
- c.userPermissions = m.exp * 1e3 > Date.now() ? nr(m.resourceAccess, (a) => (a == null ? void 0 : a.roles) ?? []) : void 0;
376
+ const c = G();
377
+ !D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((f) => {
378
+ const m = O.getJwtPayload(f);
379
+ c.userPermissions = m.exp * 1e3 > Date.now() ? or(m.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
380
380
  }).catch(w);
381
- const u = Q(o) ? o.join(" && ") : o;
381
+ const u = V(o) ? o.join(" && ") : o;
382
382
  if (c.userPermissionsComputedRefs.has(u))
383
383
  return c.userPermissionsComputedRefs.get(u);
384
384
  const p = R(() => {
385
385
  const f = (m) => {
386
- var H;
387
- const a = Ir(m, ".");
388
- if (a.length < 2)
386
+ var j;
387
+ const S = xr(m, ".");
388
+ if (S.length < 2)
389
389
  return !1;
390
- const [_, d] = a, G = (H = B().userPermissions) == null ? void 0 : H[_];
391
- return Q(G) && G.includes(d);
390
+ const [re, te] = S, M = (j = G().userPermissions) == null ? void 0 : j[re];
391
+ return V(M) && M.includes(te);
392
392
  };
393
- return Q(o) ? Sr(o, (m) => f(m)) : f(o);
393
+ return V(o) ? Ir(o, (m) => f(m)) : f(o);
394
394
  });
395
395
  return c.userPermissionsComputedRefs.set(u, p), p;
396
396
  }
@@ -423,7 +423,7 @@ const B = te("__auth_state_private", () => {
423
423
  hasUserPermission: i
424
424
  };
425
425
  });
426
- class j {
426
+ class F {
427
427
  /**
428
428
  * Инициализирует экземпляр класса {@link Identity}.
429
429
  *
@@ -439,16 +439,16 @@ class j {
439
439
  * @inheritDoc
440
440
  */
441
441
  t(this, "guid");
442
- this.id = r == null ? void 0 : r.id, A(this.id) && (A(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
442
+ this.id = r == null ? void 0 : r.id, D(this.id) && (D(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
443
443
  }
444
444
  /**
445
445
  * Возвращает признак, что это новая запись.
446
446
  */
447
447
  isNewRec() {
448
- return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
448
+ return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : D(this.id);
449
449
  }
450
450
  }
451
- class b extends j {
451
+ class b extends F {
452
452
  /**
453
453
  * Инициализирует экземпляр класса {@link NamedIdentity}.
454
454
  *
@@ -478,7 +478,7 @@ class oe extends b {
478
478
  this.code = (e == null ? void 0 : e.code) ?? "";
479
479
  }
480
480
  }
481
- class lr extends oe {
481
+ class ur extends oe {
482
482
  /**
483
483
  * Инициализирует экземпляр класса {@link CatalogableItem}.
484
484
  *
@@ -497,7 +497,7 @@ class lr extends oe {
497
497
  this.slug = (e == null ? void 0 : e.slug) ?? "";
498
498
  }
499
499
  }
500
- class de extends lr {
500
+ class _e extends ur {
501
501
  /**
502
502
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
503
503
  *
@@ -512,7 +512,7 @@ class de extends lr {
512
512
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
513
513
  }
514
514
  }
515
- class ge extends de {
515
+ class he extends _e {
516
516
  /**
517
517
  * Инициализирует экземпляр класса {@link BaseCategory}.
518
518
  *
@@ -536,10 +536,10 @@ class ge extends de {
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]) => [xr(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]) => [kr(s), i])) : void 0;
540
540
  }
541
541
  }
542
- var ur = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ur || {});
542
+ var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
543
543
  class P extends b {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link Reference}.
@@ -559,15 +559,15 @@ class P extends b {
559
559
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
560
560
  }
561
561
  }
562
- class Re extends P {
562
+ class Pe extends P {
563
563
  /**
564
564
  * Возвращает значение справочника коэффициента розничной цены.
565
565
  */
566
566
  static getRetailPriceCoefficient() {
567
- return { id: -2, slug: ur.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
567
+ return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
568
568
  }
569
569
  }
570
- class Me {
570
+ class Fe {
571
571
  /**
572
572
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
573
573
  *
@@ -594,10 +594,10 @@ class Me {
594
594
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
595
595
  */
596
596
  t(this, "readOnly");
597
- this.coefficient = new Re(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
597
+ this.coefficient = new Pe(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 pr {
600
+ class hr {
601
601
  /**
602
602
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
603
603
  *
@@ -615,9 +615,9 @@ class pr {
615
615
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
616
616
  }
617
617
  }
618
- class X extends P {
618
+ class Q extends P {
619
619
  }
620
- class De extends P {
620
+ class Re extends P {
621
621
  /**
622
622
  * Инициализирует экземпляр класса {@link Warehouse}.
623
623
  *
@@ -646,10 +646,10 @@ class De 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 pr(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 Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
650
650
  }
651
651
  }
652
- class zr {
652
+ class Wr {
653
653
  /**
654
654
  * Инициализирует экземпляр класса {@link StockCount}.
655
655
  *
@@ -664,10 +664,10 @@ class zr {
664
664
  * Количество остатков товара на складе.
665
665
  */
666
666
  t(this, "count");
667
- this.warehouse = new De(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
667
+ this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
668
668
  }
669
669
  }
670
- class Wr extends lr {
670
+ class Jr extends ur {
671
671
  /**
672
672
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
673
673
  *
@@ -682,7 +682,7 @@ class Wr extends lr {
682
682
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
683
683
  }
684
684
  }
685
- class Jr {
685
+ class Vr {
686
686
  /**
687
687
  * Инициализирует экземпляр класса {@link Image}.
688
688
  *
@@ -705,7 +705,7 @@ class Jr {
705
705
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
706
706
  }
707
707
  }
708
- class I extends Wr {
708
+ class I extends Jr {
709
709
  /**
710
710
  * Инициализирует экземпляр класса {@link Product}.
711
711
  *
@@ -790,9 +790,9 @@ class I extends Wr {
790
790
  * Список коэффициентов цен на продукт.
791
791
  */
792
792
  t(this, "priceCoefficients");
793
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new zr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
793
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new Wr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
794
794
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
795
- s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new de(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Jr(p, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
795
+ s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new _e(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Vr(p, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Fe(p))) ?? [], 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 Wr {
815
815
  return this.retailCostRub ?? this.costRub;
816
816
  }
817
817
  }
818
- class Vr extends j {
818
+ class Kr extends F {
819
819
  /**
820
820
  * Инициализирует экземпляр класса {@link CartItemBase}.
821
821
  *
@@ -867,10 +867,10 @@ class Vr 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 ge(), 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;
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 && _r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
871
871
  }
872
872
  }
873
- class Kr extends Vr {
873
+ class Qr extends Kr {
874
874
  /**
875
875
  * Инициализирует экземпляр класса {@link CartItem}.
876
876
  *
@@ -920,7 +920,7 @@ class Kr extends Vr {
920
920
  this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
921
921
  }
922
922
  }
923
- class fe {
923
+ class me {
924
924
  /**
925
925
  * Инициализирует экземпляр класса {@link Cart}.
926
926
  *
@@ -939,10 +939,10 @@ class fe {
939
939
  * Список итоговых сумм по направлениям продаж.
940
940
  */
941
941
  t(this, "directionsSum");
942
- this.items = r.items.map((e) => new Kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
942
+ this.items = r.items.map((e) => new Qr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
943
943
  }
944
944
  }
945
- class je {
945
+ class Me {
946
946
  /**
947
947
  * Инициализирует экземпляр указанного класса.
948
948
  *
@@ -961,7 +961,7 @@ class je {
961
961
  return new r(e);
962
962
  }
963
963
  }
964
- const S = class S {
964
+ const a = class a {
965
965
  /**
966
966
  * Инициализирует экземпляр класса {@link HttpRequester}.
967
967
  */
@@ -1000,7 +1000,7 @@ const S = class S {
1000
1000
  // eslint-disable-next-line class-methods-use-this
1001
1001
  t(this, "authRequestInterceptor", async (r) => {
1002
1002
  let e;
1003
- return A(be().jwtToken) || (e = await be().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1003
+ return D($e().jwtToken) || (e = await $e().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1004
1004
  });
1005
1005
  /**
1006
1006
  * Перехватчик запроса для преобразования данных запроса.
@@ -1008,7 +1008,7 @@ const S = class S {
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 = We(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = We(r.data))), r));
1011
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = We(r.params)), ["put", "patch", "post"].includes(dr(r.method)) && r.data && (r.data = We(r.data))), r));
1012
1012
  /**
1013
1013
  * Перехватчик ошибок ответов на запрос.
1014
1014
  *
@@ -1017,7 +1017,7 @@ const S = class S {
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) : (be().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1020
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : ($e().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1021
1021
  });
1022
1022
  /**
1023
1023
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -1025,11 +1025,11 @@ const S = class S {
1025
1025
  * @param response Данные ответа на запрос.
1026
1026
  */
1027
1027
  // eslint-disable-next-line class-methods-use-this
1028
- t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1028
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ue(r.data)), r));
1029
1029
  const r = T.getConfig().version;
1030
- this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Er.create({
1030
+ this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = zr.create({
1031
1031
  headers: {
1032
- "APP-VERSION": `${r.name} (${r.version}, ${O(r.date, T.getConfig().dateFormats.uiDate)})`,
1032
+ "APP-VERSION": `${r.name} (${r.version}, ${L(r.date, T.getConfig().dateFormats.uiDate)})`,
1033
1033
  Accept: "application/json",
1034
1034
  "Content-Type": "application/json"
1035
1035
  }
@@ -1038,7 +1038,7 @@ const S = class S {
1038
1038
  (e) => Promise.reject(e)
1039
1039
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1040
1040
  (e) => e,
1041
- (e) => S.convertHttpErrorResponse(e)
1041
+ (e) => a.convertHttpErrorResponse(e)
1042
1042
  ), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1043
1043
  this.dataConverterResponseInterceptor,
1044
1044
  (e) => Promise.reject(e)
@@ -1050,7 +1050,7 @@ const S = class S {
1050
1050
  * @param handler Ссылка на функцию-обработчик ошибок.
1051
1051
  */
1052
1052
  static setDefaultErrorsResponseHandler(r) {
1053
- S.defaultErrorsResponseHandler = r;
1053
+ a.defaultErrorsResponseHandler = r;
1054
1054
  }
1055
1055
  /**
1056
1056
  * Возвращает экземпляр объекта текущего класса.
@@ -1058,7 +1058,7 @@ const S = class S {
1058
1058
  * @param type Тип данных, которыми оперирует метод.
1059
1059
  */
1060
1060
  static getInstance(r) {
1061
- return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = je.simpleInstanceInitializer(r)), S.instances[r.name];
1061
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Me.simpleInstanceInitializer(r)), a.instances[r.name];
1062
1062
  }
1063
1063
  /**
1064
1064
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1067,7 +1067,7 @@ const S = class S {
1067
1067
  */
1068
1068
  static convertHttpErrorResponse(r) {
1069
1069
  var e, s;
1070
- if (!A(r.request) || !A(r.response)) {
1070
+ if (!D(r.request) || !D(r.response)) {
1071
1071
  const i = r == null ? void 0 : r.response;
1072
1072
  return Promise.reject({
1073
1073
  status: (i == null ? void 0 : i.status) ?? 0,
@@ -1156,15 +1156,15 @@ const S = class S {
1156
1156
  * Экземпляр объекта текущего класса.
1157
1157
  */
1158
1158
  // eslint-disable-next-line no-use-before-define
1159
- t(S, "instances", {}), /**
1159
+ t(a, "instances", {}), /**
1160
1160
  * Базовый обработчик ошибок выполнения запросов.
1161
1161
  *
1162
1162
  * @param error Данные об ошибке.
1163
1163
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1164
1164
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1165
1165
  */
1166
- t(S, "defaultErrorsResponseHandler", w);
1167
- let h = S;
1166
+ t(a, "defaultErrorsResponseHandler", w);
1167
+ let h = a;
1168
1168
  class Ft extends h {
1169
1169
  /**
1170
1170
  * Возвращает содержимое корзины указанного клиента.
@@ -1174,7 +1174,7 @@ class Ft extends h {
1174
1174
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1175
1175
  */
1176
1176
  getCart(r) {
1177
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new fe(e.data));
1177
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new me(e.data));
1178
1178
  }
1179
1179
  /**
1180
1180
  * Удаляет всё содержимое корзины.
@@ -1212,7 +1212,7 @@ class Ft extends h {
1212
1212
  isAdditionalSale: e.isAdditionalSale,
1213
1213
  ...e.configuratorParams
1214
1214
  },
1215
- (i) => new fe(i.data),
1215
+ (i) => new me(i.data),
1216
1216
  s
1217
1217
  );
1218
1218
  }
@@ -1242,7 +1242,7 @@ class Ft extends h {
1242
1242
  isAdditionalSale: e.isAdditionalSale,
1243
1243
  ...e.configuratorParams
1244
1244
  },
1245
- (i) => new fe(i.data),
1245
+ (i) => new me(i.data),
1246
1246
  s
1247
1247
  );
1248
1248
  }
@@ -1266,7 +1266,7 @@ class Ft extends h {
1266
1266
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1267
1267
  */
1268
1268
  addCartItemFromCSV(r, e) {
1269
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new fe(s.data));
1269
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new me(s.data));
1270
1270
  }
1271
1271
  /**
1272
1272
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1279,8 +1279,8 @@ class Ft 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 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
- class z extends ge {
1282
+ var Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}), je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {}), Xr = /* @__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))(Xr || {});
1283
+ class B extends he {
1284
1284
  /**
1285
1285
  * Инициализирует экземпляр класса {@link Category}.
1286
1286
  *
@@ -1297,10 +1297,10 @@ class z extends ge {
1297
1297
  * Список продуктов категории.
1298
1298
  */
1299
1299
  t(this, "products");
1300
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1300
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1301
1301
  }
1302
1302
  }
1303
- class hr extends b {
1303
+ class gr extends b {
1304
1304
  /**
1305
1305
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1306
1306
  *
@@ -1315,7 +1315,7 @@ class hr extends b {
1315
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 Xr extends hr {
1318
+ class Zr extends gr {
1319
1319
  /**
1320
1320
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1321
1321
  *
@@ -1330,7 +1330,7 @@ class Xr extends hr {
1330
1330
  this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1331
1331
  }
1332
1332
  }
1333
- class U extends b {
1333
+ class q extends b {
1334
1334
  /**
1335
1335
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1336
1336
  *
@@ -1345,7 +1345,7 @@ class U extends b {
1345
1345
  this.type = e == null ? void 0 : e.type;
1346
1346
  }
1347
1347
  }
1348
- class Zr extends b {
1348
+ class et extends b {
1349
1349
  /**
1350
1350
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1351
1351
  *
@@ -1381,10 +1381,10 @@ class Zr extends b {
1381
1381
  * Дата и время удаления.
1382
1382
  */
1383
1383
  t(this, "deletedAt");
1384
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new 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;
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 q(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 hr {
1387
+ class E extends gr {
1388
1388
  /**
1389
1389
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1390
1390
  *
@@ -1403,7 +1403,7 @@ class W extends hr {
1403
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
- class Z extends I {
1406
+ class Y extends I {
1407
1407
  /**
1408
1408
  * Инициализирует экземпляр класса {@link ClientProduct}.
1409
1409
  *
@@ -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 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;
1442
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new et(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new E(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 gr {
1445
+ class mr {
1446
1446
  /**
1447
1447
  * Инициализирует экземпляр класса {@link ContactLinks}.
1448
1448
  *
@@ -1460,9 +1460,9 @@ class gr {
1460
1460
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1461
1461
  }
1462
1462
  }
1463
- class x extends P {
1463
+ class d extends P {
1464
1464
  }
1465
- class ce extends b {
1465
+ class Ge extends b {
1466
1466
  /**
1467
1467
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1468
1468
  *
@@ -1490,12 +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 gr(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 d(e.salesDirection) : new d(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(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
1496
  class He extends P {
1497
1497
  }
1498
- class et extends b {
1498
+ class rt extends b {
1499
1499
  /**
1500
1500
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1501
1501
  *
@@ -1518,7 +1518,7 @@ class et extends b {
1518
1518
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1519
1519
  }
1520
1520
  }
1521
- class Ae extends ce {
1521
+ class Ae extends Ge {
1522
1522
  /**
1523
1523
  * Инициализирует экземпляр класса {@link Manager}.
1524
1524
  *
@@ -1555,10 +1555,10 @@ class Ae extends ce {
1555
1555
  * Список направлений кураторства.
1556
1556
  */
1557
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 He(i))) ?? [];
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 rt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new He(i))) ?? [];
1559
1559
  }
1560
1560
  }
1561
- class rt extends ge {
1561
+ class tt extends he {
1562
1562
  /**
1563
1563
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1564
1564
  *
@@ -1589,7 +1589,7 @@ class rt extends ge {
1589
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 Ae(e.manager) : void 0;
1590
1590
  }
1591
1591
  }
1592
- class we extends rt {
1592
+ class ye extends tt {
1593
1593
  /**
1594
1594
  * Инициализирует экземпляр класса {@link ClientCategory}.
1595
1595
  *
@@ -1606,10 +1606,10 @@ class we extends rt {
1606
1606
  * Список продуктов категории.
1607
1607
  */
1608
1608
  t(this, "products");
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));
1609
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ye(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Y(o));
1610
1610
  }
1611
1611
  }
1612
- class mr {
1612
+ class fr {
1613
1613
  /**
1614
1614
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1615
1615
  *
@@ -1624,10 +1624,10 @@ class mr {
1624
1624
  * Процент, который прибавляется к значению выбранного коэффициента.
1625
1625
  */
1626
1626
  t(this, "increasePercent");
1627
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1627
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1628
1628
  }
1629
1629
  }
1630
- class ae extends mr {
1630
+ class be extends fr {
1631
1631
  /**
1632
1632
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1633
1633
  *
@@ -1639,7 +1639,7 @@ class ae extends mr {
1639
1639
  * Базовые данные о продукте.
1640
1640
  */
1641
1641
  t(this, "productCategory");
1642
- this.productCategory = new ge(e == null ? void 0 : e.productCategory);
1642
+ this.productCategory = new he(e == null ? void 0 : e.productCategory);
1643
1643
  }
1644
1644
  }
1645
1645
  class Be extends b {
@@ -1662,12 +1662,12 @@ class Be extends b {
1662
1662
  * @inheritDoc
1663
1663
  */
1664
1664
  t(this, "curatedDirection");
1665
- this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new He(e.curatedDirection);
1665
+ this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new He(e.curatedDirection);
1666
1666
  }
1667
1667
  }
1668
- class ee extends P {
1668
+ class X extends P {
1669
1669
  }
1670
- class le extends P {
1670
+ class ce extends P {
1671
1671
  /**
1672
1672
  * Инициализирует экземпляр класса {@link Region}.
1673
1673
  *
@@ -1678,8 +1678,8 @@ class le extends P {
1678
1678
  /**
1679
1679
  * Данные о стране, в которой расположен регион.
1680
1680
  */
1681
- t(this, "country", new ee());
1682
- e && (this.country = new ee(e.country));
1681
+ t(this, "country", new X());
1682
+ e && (this.country = new X(e.country));
1683
1683
  }
1684
1684
  }
1685
1685
  class Ee extends P {
@@ -1693,11 +1693,11 @@ class Ee extends P {
1693
1693
  /**
1694
1694
  * Данные о регионе, в котором расположен город.
1695
1695
  */
1696
- t(this, "region", new le());
1697
- e && (this.region = new le(e.region));
1696
+ t(this, "region", new ce());
1697
+ e && (this.region = new ce(e.region));
1698
1698
  }
1699
1699
  }
1700
- class fr extends b {
1700
+ class yr extends b {
1701
1701
  /**
1702
1702
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1703
1703
  *
@@ -1733,10 +1733,10 @@ class fr extends b {
1733
1733
  * Признак активности учетной записи пользователя.
1734
1734
  */
1735
1735
  t(this, "isActive");
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;
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 d(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;
1737
1737
  }
1738
1738
  }
1739
- class me extends fr {
1739
+ class ge extends yr {
1740
1740
  /**
1741
1741
  * Инициализирует экземпляр класса {@link Client}.
1742
1742
  *
@@ -1782,10 +1782,10 @@ class me extends fr {
1782
1782
  * @inheritDoc
1783
1783
  */
1784
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 Ee(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 Be(o))) ?? void 0;
1785
+ this.salesDirection = new d(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 Ee(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 Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Be(o))) ?? void 0;
1786
1786
  }
1787
1787
  }
1788
- class se extends j {
1788
+ class se extends F {
1789
1789
  /**
1790
1790
  * Инициализирует новый экземпляр класса.
1791
1791
  *
@@ -1809,10 +1809,10 @@ class se extends j {
1809
1809
  * Данные шаблона прайс-листа.
1810
1810
  */
1811
1811
  t(this, "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 me(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 E(e == null ? void 0 : e.priceTemplate);
1813
1813
  }
1814
1814
  }
1815
- class Se extends mr {
1815
+ class Se extends fr {
1816
1816
  /**
1817
1817
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1818
1818
  *
@@ -1827,7 +1827,7 @@ class Se extends mr {
1827
1827
  this.product = new I(e == null ? void 0 : e.product);
1828
1828
  }
1829
1829
  }
1830
- class yr extends P {
1830
+ class wr extends P {
1831
1831
  }
1832
1832
  class ie extends b {
1833
1833
  /**
@@ -1849,10 +1849,10 @@ class ie extends b {
1849
1849
  * Дополнительные метаданные свойства.
1850
1850
  */
1851
1851
  t(this, "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;
1852
+ this.type = new wr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1853
1853
  }
1854
1854
  }
1855
- class E {
1855
+ class H {
1856
1856
  /**
1857
1857
  * Инициализирует экземпляр класса {@link PropertyValue}.
1858
1858
  *
@@ -1949,7 +1949,7 @@ class Mt {
1949
1949
  return Object.keys(this).forEach((c) => {
1950
1950
  const u = this[c];
1951
1951
  // eslint-disable-next-line prettier/prettier
1952
- A(u) || C(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1952
+ D(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
1953
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;
1954
1954
  }
1955
1955
  }
@@ -2007,10 +2007,10 @@ class Ke {
2007
2007
  * Минимальный коэффициент цены.
2008
2008
  */
2009
2009
  t(this, "minCoefficient");
2010
- this.role = new ne(r == null ? void 0 : r.role), this.category = new ge(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2010
+ this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2011
2011
  }
2012
2012
  }
2013
- class tt {
2013
+ class st {
2014
2014
  /**
2015
2015
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
2016
2016
  *
@@ -2032,7 +2032,7 @@ class tt {
2032
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;
2033
2033
  }
2034
2034
  }
2035
- class st {
2035
+ class it {
2036
2036
  /**
2037
2037
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
2038
2038
  *
@@ -2062,7 +2062,7 @@ class st {
2062
2062
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.recommendationsApiUrl = (r == null ? void 0 : r.recommendationsApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
2063
2063
  }
2064
2064
  }
2065
- class it {
2065
+ class nt {
2066
2066
  /**
2067
2067
  * Инициализирует экземпляр класса {@link SentryConfig}.
2068
2068
  *
@@ -2107,7 +2107,7 @@ class it {
2107
2107
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
2108
2108
  }
2109
2109
  }
2110
- class nt {
2110
+ class ot {
2111
2111
  /**
2112
2112
  * Инициализирует экземпляр класса {@link VersionConfig}.
2113
2113
  *
@@ -2129,7 +2129,7 @@ class nt {
2129
2129
  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";
2130
2130
  }
2131
2131
  }
2132
- class ot {
2132
+ class ct {
2133
2133
  /**
2134
2134
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
2135
2135
  *
@@ -2216,10 +2216,10 @@ class jt {
2216
2216
  */
2217
2217
  t(this, "dateFormats");
2218
2218
  var e, s, i;
2219
- 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({
2219
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new it(r == null ? void 0 : r.http), this.deviceTypeByResolution = new st(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new nt({
2220
2220
  environment: this.environment,
2221
2221
  ...r == null ? void 0 : r.sentry
2222
- }), 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 = {
2222
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new ot(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ct(r.websocket) : void 0, this.dateFormats = {
2223
2223
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2224
2224
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2225
2225
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -2381,7 +2381,7 @@ class Ht extends h {
2381
2381
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2382
2382
  increase_percent: s.value
2383
2383
  },
2384
- (o) => new Z(o.data)
2384
+ (o) => new Y(o.data)
2385
2385
  );
2386
2386
  }
2387
2387
  /**
@@ -2393,7 +2393,7 @@ class Ht extends h {
2393
2393
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2394
2394
  */
2395
2395
  removeProductPrice(r, e) {
2396
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Z(s.data));
2396
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Y(s.data));
2397
2397
  }
2398
2398
  /**
2399
2399
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2495,8 +2495,8 @@ class Bt extends h {
2495
2495
  return this.post(
2496
2496
  `/internal/clients/${r}/price/templates/${e}`,
2497
2497
  s && {
2498
- startAt: s.startAt && O(s.startAt, i),
2499
- endAt: s.endAt && O(s.endAt, i)
2498
+ startAt: s.startAt && L(s.startAt, i),
2499
+ endAt: s.endAt && L(s.endAt, i)
2500
2500
  },
2501
2501
  (o) => new se(o.data),
2502
2502
  {},
@@ -2529,8 +2529,8 @@ class Bt extends h {
2529
2529
  return this.patch(
2530
2530
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2531
2531
  i && {
2532
- startAt: i.startAt && O(i.startAt, o),
2533
- endAt: i.endAt && O(i.endAt, o)
2532
+ startAt: i.startAt && L(i.startAt, o),
2533
+ endAt: i.endAt && L(i.endAt, o)
2534
2534
  },
2535
2535
  (c) => new se(c.data)
2536
2536
  );
@@ -2562,7 +2562,7 @@ class Et extends h {
2562
2562
  {
2563
2563
  showHidden: r
2564
2564
  },
2565
- (e) => e.data.map((s) => new z(s))
2565
+ (e) => e.data.map((s) => new B(s))
2566
2566
  );
2567
2567
  }
2568
2568
  /**
@@ -2581,7 +2581,7 @@ class Et extends h {
2581
2581
  showHidden: e,
2582
2582
  withNestedCategories: s
2583
2583
  },
2584
- (i) => new z(i.data)
2584
+ (i) => new B(i.data)
2585
2585
  );
2586
2586
  }
2587
2587
  /**
@@ -2590,7 +2590,7 @@ class Et extends h {
2590
2590
  * @param categoryID Идентификатор категории продуктов.
2591
2591
  */
2592
2592
  getPublicCategoryData(r) {
2593
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
2593
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new B(e.data));
2594
2594
  }
2595
2595
  /**
2596
2596
  * Возвращает список продуктов категории.
@@ -2608,7 +2608,7 @@ class Et extends h {
2608
2608
  showHidden: s,
2609
2609
  withPriceCoefficients: e
2610
2610
  },
2611
- (i) => he(i.data, (o) => new I(o))
2611
+ (i) => pe(i.data, (o) => new I(o))
2612
2612
  );
2613
2613
  }
2614
2614
  /**
@@ -2621,7 +2621,7 @@ class Et extends h {
2621
2621
  getCategoryProductsCoefficients(r) {
2622
2622
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2623
2623
  const { data: s } = e;
2624
- return dr(s, (i) => i.map((o) => new Me(o))), s;
2624
+ return Or(s, (i) => i.map((o) => new Fe(o))), s;
2625
2625
  });
2626
2626
  }
2627
2627
  /**
@@ -2633,7 +2633,7 @@ class Et extends h {
2633
2633
  publicSimpleSearch(r, e = 10) {
2634
2634
  return new Promise((s, i) => {
2635
2635
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2636
- s(o.categories.map((c) => new z(c)));
2636
+ s(o.categories.map((c) => new B(c)));
2637
2637
  }).catch((o) => {
2638
2638
  i(o);
2639
2639
  });
@@ -2671,7 +2671,7 @@ class zt extends h {
2671
2671
  return this.get(
2672
2672
  `/internal/catalog/products/${r}/coefficients`,
2673
2673
  {},
2674
- (e) => he(e.data, (s) => new Me(s))
2674
+ (e) => pe(e.data, (s) => new Fe(s))
2675
2675
  );
2676
2676
  }
2677
2677
  /**
@@ -2706,7 +2706,7 @@ class Wt extends h {
2706
2706
  clientId: r,
2707
2707
  showHidden: e
2708
2708
  },
2709
- (s) => s.data.map((i) => new we(i))
2709
+ (s) => s.data.map((i) => new ye(i))
2710
2710
  );
2711
2711
  }
2712
2712
  /**
@@ -2727,7 +2727,7 @@ class Wt extends h {
2727
2727
  showHidden: s,
2728
2728
  withNestedCategories: i
2729
2729
  },
2730
- (o) => new we(o.data)
2730
+ (o) => new ye(o.data)
2731
2731
  );
2732
2732
  }
2733
2733
  /**
@@ -2748,7 +2748,7 @@ class Wt extends h {
2748
2748
  showHidden: i,
2749
2749
  withPriceCoefficients: s
2750
2750
  },
2751
- (o) => he(o.data, (c) => new Z(c))
2751
+ (o) => pe(o.data, (c) => new Y(c))
2752
2752
  );
2753
2753
  }
2754
2754
  }
@@ -2769,7 +2769,7 @@ class Jt extends h {
2769
2769
  clientId: e,
2770
2770
  withPriceCoefficients: s
2771
2771
  },
2772
- (i) => new Z(i.data)
2772
+ (i) => new Y(i.data)
2773
2773
  );
2774
2774
  }
2775
2775
  }
@@ -2805,10 +2805,10 @@ class Qe {
2805
2805
  field: this.field,
2806
2806
  op: this.op
2807
2807
  };
2808
- return r.value = ke(this.value) ? O(this.value, T.getConfig().dateFormats.api) : this.value, r;
2808
+ return r.value = ke(this.value) ? L(this.value, T.getConfig().dateFormats.api) : this.value, r;
2809
2809
  }
2810
2810
  }
2811
- class ue {
2811
+ class le {
2812
2812
  /**
2813
2813
  * Инициализирует экземпляр класса {@link FilterGroup}.
2814
2814
  *
@@ -2828,7 +2828,7 @@ class ue {
2828
2828
  */
2829
2829
  t(this, "groups");
2830
2830
  var e, s;
2831
- 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 Qe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
2831
+ 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 Qe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new le(i))) ?? [];
2832
2832
  }
2833
2833
  /**
2834
2834
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2838,12 +2838,12 @@ class ue {
2838
2838
  toPrimitive() {
2839
2839
  return {
2840
2840
  groupOp: this.groupOp,
2841
- filters: this.filters.map((r) => r instanceof Qe && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2842
- groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
2841
+ filters: this.filters.map((r) => r instanceof Qe && Ne(r.toPrimitive) ? r.toPrimitive() : r),
2842
+ groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
2843
2843
  };
2844
2844
  }
2845
2845
  }
2846
- class Te extends h {
2846
+ class De extends h {
2847
2847
  /**
2848
2848
  * Получает пагинированный список данных.
2849
2849
  *
@@ -2860,10 +2860,10 @@ class Te extends h {
2860
2860
  page: (i == null ? void 0 : i.page) ?? 1,
2861
2861
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2862
2862
  };
2863
- 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);
2863
+ return e && (p.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (p.sort = V(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
2864
2864
  }
2865
2865
  }
2866
- class Vt extends Te {
2866
+ class Vt extends De {
2867
2867
  /**
2868
2868
  * Возвращает список шаблонов прайс-листа.
2869
2869
  *
@@ -2876,7 +2876,7 @@ class Vt extends Te {
2876
2876
  getTemplateList(r, e, s) {
2877
2877
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2878
2878
  const o = { ...i.data };
2879
- return o.data = o.data.map((c) => new W(c)), o;
2879
+ return o.data = o.data.map((c) => new E(c)), o;
2880
2880
  });
2881
2881
  }
2882
2882
  /**
@@ -2889,7 +2889,7 @@ class Vt extends Te {
2889
2889
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2890
2890
  */
2891
2891
  createTemplate(r, e = {}) {
2892
- return this.post("/internal/price/templates", r, (s) => new W(s.data), e);
2892
+ return this.post("/internal/price/templates", r, (s) => new E(s.data), e);
2893
2893
  }
2894
2894
  /**
2895
2895
  * Возвращает данные о шаблоне прайс-листа.
@@ -2899,7 +2899,7 @@ class Vt extends Te {
2899
2899
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
2900
2900
  */
2901
2901
  getTemplate(r) {
2902
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new W(e.data));
2902
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new E(e.data));
2903
2903
  }
2904
2904
  /**
2905
2905
  * Изменяет данные о шаблоне прайс-листа.
@@ -2912,7 +2912,7 @@ class Vt extends Te {
2912
2912
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2913
2913
  */
2914
2914
  updateTemplate(r, e, s = {}) {
2915
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new W(i.data), s);
2915
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new E(i.data), s);
2916
2916
  }
2917
2917
  /**
2918
2918
  * Удаляет данные о шаблоне прайс-листа.
@@ -2991,7 +2991,7 @@ class Vt extends Te {
2991
2991
  return this.get(
2992
2992
  `/internal/price/templates/${r}/categories`,
2993
2993
  {},
2994
- (e) => e.data.map((s) => new ae(s))
2994
+ (e) => e.data.map((s) => new be(s))
2995
2995
  );
2996
2996
  }
2997
2997
  /**
@@ -3006,7 +3006,7 @@ class Vt extends Te {
3006
3006
  return this.get(
3007
3007
  `/internal/price/templates/${r}/categories/${e}`,
3008
3008
  {},
3009
- (s) => new ae(s.data)
3009
+ (s) => new be(s.data)
3010
3010
  );
3011
3011
  }
3012
3012
  /**
@@ -3032,7 +3032,7 @@ class Vt extends Te {
3032
3032
  },
3033
3033
  params: i ? { recursively: !0 } : {}
3034
3034
  },
3035
- (c) => new ae(c.data)
3035
+ (c) => new be(c.data)
3036
3036
  );
3037
3037
  }
3038
3038
  /**
@@ -3147,7 +3147,7 @@ class Kt extends h {
3147
3147
  );
3148
3148
  }
3149
3149
  }
3150
- class Qt extends Te {
3150
+ class Qt extends De {
3151
3151
  /**
3152
3152
  * Возвращает пагинированный список свойств.
3153
3153
  *
@@ -3223,7 +3223,7 @@ class Qt extends Te {
3223
3223
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3224
3224
  */
3225
3225
  getProductProperties(r) {
3226
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new E(s)));
3226
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3227
3227
  }
3228
3228
  /**
3229
3229
  * Возвращает значение свойства продукта.
@@ -3233,7 +3233,7 @@ class Qt extends Te {
3233
3233
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3234
3234
  */
3235
3235
  getProductProperty(r, e) {
3236
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new E(s.data));
3236
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3237
3237
  }
3238
3238
  /**
3239
3239
  * Обновляет значение свойства продукта.
@@ -3244,7 +3244,7 @@ class Qt extends Te {
3244
3244
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3245
3245
  */
3246
3246
  updateProductProperty(r, e, s) {
3247
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new E(i.data));
3247
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3248
3248
  }
3249
3249
  /**
3250
3250
  * Удаляет значение свойства продукта.
@@ -3369,7 +3369,7 @@ class Qt extends Te {
3369
3369
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3370
3370
  */
3371
3371
  getCategoryProperties(r) {
3372
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new E(s)));
3372
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3373
3373
  }
3374
3374
  /**
3375
3375
  * Возвращает значение свойства категории.
@@ -3379,7 +3379,7 @@ class Qt extends Te {
3379
3379
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3380
3380
  */
3381
3381
  getCategoryProperty(r, e) {
3382
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new E(s.data));
3382
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3383
3383
  }
3384
3384
  /**
3385
3385
  * Обновляет значение свойства категории.
@@ -3390,7 +3390,7 @@ class Qt extends Te {
3390
3390
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3391
3391
  */
3392
3392
  updateCategoryProperty(r, e, s) {
3393
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new E(i.data));
3393
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3394
3394
  }
3395
3395
  /**
3396
3396
  * Удаляет значение свойства категории.
@@ -3549,16 +3549,16 @@ function Xe(n) {
3549
3549
  }
3550
3550
  }), r;
3551
3551
  }
3552
- 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 || {});
3553
- class lt extends P {
3552
+ var lt = /* @__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))(lt || {}), _ = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(_ || {});
3553
+ class ut extends P {
3554
3554
  }
3555
- class wr extends P {
3555
+ class Cr extends P {
3556
3556
  }
3557
3557
  class Yt extends P {
3558
3558
  }
3559
- class ut extends P {
3559
+ class pt extends P {
3560
3560
  }
3561
- class Ce extends b {
3561
+ class we extends b {
3562
3562
  /**
3563
3563
  * Инициализирует экземпляр класса {@link Currency}.
3564
3564
  *
@@ -3577,34 +3577,34 @@ class Ce extends b {
3577
3577
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
3578
3578
  }
3579
3579
  }
3580
- class F extends P {
3580
+ class N extends P {
3581
3581
  /**
3582
3582
  * Возвращает сгенерированную запись-описание физического лица.
3583
3583
  */
3584
3584
  static generatePersonItem() {
3585
- return new F({
3585
+ return new N({
3586
3586
  id: 1,
3587
3587
  guid: "",
3588
- slug: q.Person,
3588
+ slug: _.Person,
3589
3589
  name: ""
3590
3590
  });
3591
3591
  }
3592
3592
  }
3593
- class pt extends P {
3594
- }
3595
3593
  class ht extends P {
3596
3594
  }
3597
- class re extends P {
3598
- }
3599
3595
  class gt extends P {
3600
3596
  }
3597
+ class Z extends P {
3598
+ }
3601
3599
  class mt extends P {
3602
3600
  }
3603
- class Cr extends P {
3601
+ class ft extends P {
3604
3602
  }
3605
3603
  class vr extends P {
3606
3604
  }
3607
- class Oe extends j {
3605
+ class Pr extends P {
3606
+ }
3607
+ class de extends F {
3608
3608
  /**
3609
3609
  * Инициализирует экземпляр класса {@link BankAccount}.
3610
3610
  *
@@ -3631,11 +3631,11 @@ class Oe extends j {
3631
3631
  /**
3632
3632
  * Данные о валюте.
3633
3633
  */
3634
- t(this, "currency", new Ce());
3635
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new Ce(e.currency));
3634
+ t(this, "currency", new we());
3635
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new we(e.currency));
3636
3636
  }
3637
3637
  }
3638
- class qe extends b {
3638
+ class Oe extends b {
3639
3639
  /**
3640
3640
  * Инициализирует экземпляр класса {@link Contact}.
3641
3641
  *
@@ -3654,7 +3654,7 @@ class qe extends b {
3654
3654
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3655
3655
  }
3656
3656
  }
3657
- class M extends qe {
3657
+ class U extends Oe {
3658
3658
  /**
3659
3659
  * Инициализирует экземпляр класса {@link ContactPerson}.
3660
3660
  *
@@ -3689,7 +3689,7 @@ class M extends qe {
3689
3689
  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;
3690
3690
  }
3691
3691
  }
3692
- class Pr extends b {
3692
+ class Rr extends b {
3693
3693
  /**
3694
3694
  * Инициализирует экземпляр класса {@link ContragentBase}.
3695
3695
  *
@@ -3698,22 +3698,14 @@ class Pr extends b {
3698
3698
  // eslint-disable-next-line sonarjs/cognitive-complexity
3699
3699
  constructor(e) {
3700
3700
  super(e);
3701
- /**
3702
- * Данные о менеджере.
3703
- */
3704
- t(this, "manager", new ce());
3705
3701
  /**
3706
3702
  * Данные об организационно-правовой форме.
3707
3703
  */
3708
- t(this, "opf", F.generatePersonItem());
3709
- /**
3710
- * Направление продаж.
3711
- */
3712
- t(this, "salesDirection", new x());
3704
+ t(this, "opf", N.generatePersonItem());
3713
3705
  /**
3714
3706
  * Группа партнеров (направление деятельности).
3715
3707
  */
3716
- t(this, "partnerGroup", new re());
3708
+ t(this, "partnerGroup", new Z());
3717
3709
  /**
3718
3710
  * Список контактных лиц контрагента.
3719
3711
  */
@@ -3747,22 +3739,22 @@ class Pr extends b {
3747
3739
  */
3748
3740
  t(this, "updater");
3749
3741
  if (e) {
3750
- 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) {
3742
+ if (this.opf = new N(e.opf), 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 q(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
3751
3743
  const s = [];
3752
3744
  e.contacts.forEach((i) => {
3753
- s.push(new M(i));
3745
+ s.push(new U(i));
3754
3746
  }), this.contacts = s;
3755
3747
  }
3756
3748
  if (e.bankAccounts) {
3757
3749
  const s = [];
3758
3750
  e.bankAccounts.forEach((i) => {
3759
- s.push(new Oe(i));
3751
+ s.push(new de(i));
3760
3752
  }), this.bankAccounts = s;
3761
3753
  }
3762
3754
  }
3763
3755
  }
3764
3756
  }
3765
- class ft extends Pr {
3757
+ class yt extends Rr {
3766
3758
  /**
3767
3759
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3768
3760
  *
@@ -3772,7 +3764,7 @@ class ft extends Pr {
3772
3764
  super(r);
3773
3765
  }
3774
3766
  }
3775
- class Rr extends Pr {
3767
+ class Ar extends Rr {
3776
3768
  /**
3777
3769
  * Инициализирует экземпляр класса {@link ContragentIc}.
3778
3770
  *
@@ -3815,7 +3807,7 @@ class Rr extends Pr {
3815
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 ?? "");
3816
3808
  }
3817
3809
  }
3818
- class Dr extends Rr {
3810
+ class Dr extends Ar {
3819
3811
  /**
3820
3812
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3821
3813
  *
@@ -3830,7 +3822,7 @@ class Dr extends Rr {
3830
3822
  e && (this.kpp = e.kpp ?? "");
3831
3823
  }
3832
3824
  }
3833
- class yt extends Dr {
3825
+ class wt extends Dr {
3834
3826
  /**
3835
3827
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3836
3828
  *
@@ -3841,7 +3833,7 @@ class yt extends Dr {
3841
3833
  /**
3842
3834
  * Страна регистрации юридического лица нерезидента.
3843
3835
  */
3844
- t(this, "registrationCountry", new ee());
3836
+ t(this, "registrationCountry", new X());
3845
3837
  /**
3846
3838
  * Регистрационный номер юридического лица нерезидента.
3847
3839
  */
@@ -3850,10 +3842,10 @@ class yt extends Dr {
3850
3842
  * Налоговый номер юридического лица нерезидента.
3851
3843
  */
3852
3844
  t(this, "taxNumber", "");
3853
- e && (this.registrationCountry = new ee(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3845
+ e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3854
3846
  }
3855
3847
  }
3856
- class ve {
3848
+ class Ce {
3857
3849
  /**
3858
3850
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3859
3851
  *
@@ -3861,18 +3853,18 @@ class ve {
3861
3853
  */
3862
3854
  static createInstance(r) {
3863
3855
  switch (r.opf.slug) {
3864
- case q.Ic:
3865
- return new Rr(r);
3866
- case q.UlR:
3856
+ case _.Ic:
3857
+ return new Ar(r);
3858
+ case _.UlR:
3867
3859
  return new Dr(r);
3868
- case q.UlNr:
3869
- return new yt(r);
3860
+ case _.UlNr:
3861
+ return new wt(r);
3870
3862
  default:
3871
- return new ft(r);
3863
+ return new yt(r);
3872
3864
  }
3873
3865
  }
3874
3866
  }
3875
- class Ie extends j {
3867
+ class ae extends F {
3876
3868
  /**
3877
3869
  * Инициализирует экземпляр класса {@link ContactRelation}.
3878
3870
  *
@@ -3887,7 +3879,7 @@ class Ie extends j {
3887
3879
  this.isPrimary = e.isPrimary;
3888
3880
  }
3889
3881
  }
3890
- class wt extends M {
3882
+ class Ct extends U {
3891
3883
  /**
3892
3884
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3893
3885
  *
@@ -3912,10 +3904,10 @@ class wt extends M {
3912
3904
  */
3913
3905
  addresses: []
3914
3906
  });
3915
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
3907
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ae(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ae(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ae(s))));
3916
3908
  }
3917
3909
  }
3918
- class Pe extends Xr {
3910
+ class ve extends Zr {
3919
3911
  /**
3920
3912
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3921
3913
  *
@@ -3952,10 +3944,10 @@ class Pe extends Xr {
3952
3944
  * Признак того, что указанный адрес является адресом транспортной компании.
3953
3945
  */
3954
3946
  t(this, "isTransportCompanyAddress");
3955
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new pr(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 hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new U(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;
3956
3948
  }
3957
3949
  }
3958
- class Ze extends me {
3950
+ class Ze extends ge {
3959
3951
  /**
3960
3952
  * Инициализирует экземпляр класса {@link Client}.
3961
3953
  *
@@ -4013,7 +4005,7 @@ class Ze extends me {
4013
4005
  * @inheritDoc
4014
4006
  */
4015
4007
  t(this, "extraData");
4016
- 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 De(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) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new U(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(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 Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4017
4009
  }
4018
4010
  }
4019
4011
  class Xt {
@@ -4120,7 +4112,7 @@ class Xt {
4120
4112
  */
4121
4113
  t(this, "isExcludedFromMsCallsToClients");
4122
4114
  var e, s, i, o, c, u, p, f;
4123
- 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((m) => new Ee(m)), 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((m) => new Ae(m))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((m) => new Be(m))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((m) => new x(m)), 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((m) => new re(m)), this.contact = new qe(r == null ? void 0 : r.contact), this.lastOrder = {
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((m) => new Ee(m)), this.region = new ce(r == null ? void 0 : r.region), this.country = new X(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((m) => new Ae(m))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((m) => new Be(m))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((m) => new d(m)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new N(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Q(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((m) => new Z(m)), this.contact = new Oe(r == null ? void 0 : r.contact), this.lastOrder = {
4124
4116
  createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
4125
4117
  creator: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.creator,
4126
4118
  isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
@@ -4137,7 +4129,7 @@ class Xt {
4137
4129
  this.cities = [];
4138
4130
  break;
4139
4131
  case "region":
4140
- this.region = new le();
4132
+ this.region = new ce();
4141
4133
  break;
4142
4134
  case "isActive":
4143
4135
  this.isActive = !0;
@@ -4161,16 +4153,16 @@ class Xt {
4161
4153
  this.salesDirections = [];
4162
4154
  break;
4163
4155
  case "contragentType":
4164
- this.contragentType = new F();
4156
+ this.contragentType = new N();
4165
4157
  break;
4166
4158
  case "preferredDeliveryType":
4167
- this.preferredDeliveryType = new X();
4159
+ this.preferredDeliveryType = new Q();
4168
4160
  break;
4169
4161
  case "partnerGroups":
4170
4162
  this.partnerGroups = [];
4171
4163
  break;
4172
4164
  case "contact":
4173
- this.contact = new qe();
4165
+ this.contact = new Oe();
4174
4166
  break;
4175
4167
  default:
4176
4168
  this[r] = void 0;
@@ -4188,11 +4180,11 @@ class Xt {
4188
4180
  return Object.keys(this).forEach((c) => {
4189
4181
  const u = this[c];
4190
4182
  // eslint-disable-next-line prettier/prettier
4191
- A(u) || C(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4183
+ D(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
4192
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;
4193
4185
  }
4194
4186
  }
4195
- class Ar extends j {
4187
+ class Tr extends F {
4196
4188
  /**
4197
4189
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4198
4190
  *
@@ -4212,10 +4204,10 @@ class Ar extends j {
4212
4204
  * Признак того, что заказ подтвержден в 1С.
4213
4205
  */
4214
4206
  t(this, "isApproved1c");
4215
- 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;
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 q(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4216
4208
  }
4217
4209
  }
4218
- class Ct extends b {
4210
+ class vt extends b {
4219
4211
  /**
4220
4212
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4221
4213
  *
@@ -4252,10 +4244,10 @@ class Ct extends b {
4252
4244
  * @inheritDoc
4253
4245
  */
4254
4246
  t(this, "curators");
4255
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new M(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ar(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new x(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ce(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Be(u))) ?? void 0;
4247
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new U(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Tr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new d(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Be(u))) ?? void 0;
4256
4248
  }
4257
4249
  }
4258
- class vt {
4250
+ class Pt {
4259
4251
  /**
4260
4252
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4261
4253
  *
@@ -4273,7 +4265,7 @@ class vt {
4273
4265
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4274
4266
  }
4275
4267
  }
4276
- class Zt extends vt {
4268
+ class Zt extends Pt {
4277
4269
  /**
4278
4270
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4279
4271
  *
@@ -4322,7 +4314,7 @@ class es {
4322
4314
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4323
4315
  }
4324
4316
  }
4325
- class L extends Te {
4317
+ class x extends De {
4326
4318
  /**
4327
4319
  * Преобразует данные о клиенте в данные требуемые для запроса.
4328
4320
  *
@@ -4352,17 +4344,16 @@ class L extends Te {
4352
4344
  * @param contragent Данные о контрагенте клиента.
4353
4345
  */
4354
4346
  static transformContragentClientDataToRequest(r) {
4355
- var c, u, p, f, m, a, _, d;
4347
+ var c, u, p, f;
4356
4348
  let e;
4357
4349
  const s = r, i = r, o = r;
4358
4350
  switch (r.opf.slug) {
4359
- case q.Ic:
4351
+ case _.Ic:
4360
4352
  e = {
4361
4353
  opf: s.opf.slug,
4362
4354
  name: s.name,
4363
4355
  alternative_name: s.alternativeName,
4364
4356
  partner_group_id: (c = s.partnerGroup) == null ? void 0 : c.id,
4365
- manager_id: (u = s.manager) == null ? void 0 : u.id,
4366
4357
  comment: s.comment,
4367
4358
  inn: s.inn,
4368
4359
  okpo: s.okpo,
@@ -4374,13 +4365,12 @@ class L extends Te {
4374
4365
  actual_address: s.actualAddress
4375
4366
  };
4376
4367
  break;
4377
- case q.UlR:
4368
+ case _.UlR:
4378
4369
  e = {
4379
4370
  opf: i.opf.slug,
4380
4371
  name: i.name,
4381
4372
  alternative_name: i.alternativeName,
4382
- partner_group_id: (p = i.partnerGroup) == null ? void 0 : p.id,
4383
- manager_id: (f = i.manager) == null ? void 0 : f.id,
4373
+ partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
4384
4374
  comment: i.comment,
4385
4375
  inn: i.inn,
4386
4376
  kpp: i.kpp,
@@ -4393,13 +4383,12 @@ class L extends Te {
4393
4383
  actual_address: i.actualAddress
4394
4384
  };
4395
4385
  break;
4396
- case q.UlNr:
4386
+ case _.UlNr:
4397
4387
  e = {
4398
4388
  opf: o.opf.slug,
4399
4389
  name: o.name,
4400
4390
  alternative_name: o.alternativeName,
4401
- partner_group_id: (m = o.partnerGroup) == null ? void 0 : m.id,
4402
- manager_id: (a = o.manager) == null ? void 0 : a.id,
4391
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4403
4392
  comment: o.comment,
4404
4393
  director_name: o.directorName,
4405
4394
  director_position: o.directorPosition,
@@ -4417,8 +4406,7 @@ class L extends Te {
4417
4406
  opf: r.opf.slug,
4418
4407
  name: r.name,
4419
4408
  alternative_name: r.alternativeName,
4420
- partner_group_id: (_ = r.partnerGroup) == null ? void 0 : _.id,
4421
- manager_id: (d = r.manager) == null ? void 0 : d.id,
4409
+ partner_group_id: (f = r.partnerGroup) == null ? void 0 : f.id,
4422
4410
  comment: r.comment
4423
4411
  };
4424
4412
  break;
@@ -4482,7 +4470,7 @@ class L extends Te {
4482
4470
  getClientsList(r, e, s, i) {
4483
4471
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4484
4472
  const c = { ...o.data };
4485
- return c.data = c.data.map((u) => new me(u)), c;
4473
+ return c.data = c.data.map((u) => new ge(u)), c;
4486
4474
  });
4487
4475
  }
4488
4476
  /**
@@ -4509,7 +4497,7 @@ class L extends Te {
4509
4497
  const s = r.map((i) => i.id);
4510
4498
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4511
4499
  let o = [];
4512
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Ct(c))), o;
4500
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
4513
4501
  });
4514
4502
  }
4515
4503
  /**
@@ -4521,7 +4509,7 @@ class L extends Te {
4521
4509
  getAllClientContacts(r) {
4522
4510
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4523
4511
  let s = [];
4524
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new wt(i))), s;
4512
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Ct(i))), s;
4525
4513
  });
4526
4514
  }
4527
4515
  /**
@@ -4532,7 +4520,7 @@ class L extends Te {
4532
4520
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4533
4521
  */
4534
4522
  createClientCommonData(r, e = {}) {
4535
- return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
4523
+ return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
4536
4524
  }
4537
4525
  /**
4538
4526
  * Обновляет данные указанного клиента.
@@ -4542,7 +4530,7 @@ class L extends Te {
4542
4530
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4543
4531
  */
4544
4532
  updateClientCommonData(r, e = {}) {
4545
- return this.patch(`/internal/clients/${r.id}`, L.transformClientDataToRequest(r), void 0, e);
4533
+ return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
4546
4534
  }
4547
4535
  /**
4548
4536
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4672,8 +4660,8 @@ class L extends Te {
4672
4660
  createContragentClientData(r, e, s = {}) {
4673
4661
  return this.post(
4674
4662
  `/internal/clients/${r}/contragents`,
4675
- L.transformContragentClientDataToRequest(e),
4676
- (i) => ve.createInstance(i.data),
4663
+ x.transformContragentClientDataToRequest(e),
4664
+ (i) => Ce.createInstance(i.data),
4677
4665
  s
4678
4666
  );
4679
4667
  }
@@ -4688,8 +4676,8 @@ class L extends Te {
4688
4676
  updateContragentClientData(r, e, s = {}) {
4689
4677
  return this.patch(
4690
4678
  `/internal/clients/${r}/contragents/${e.id}`,
4691
- L.transformContragentClientDataToRequest(e),
4692
- (i) => ve.createInstance(i.data),
4679
+ x.transformContragentClientDataToRequest(e),
4680
+ (i) => Ce.createInstance(i.data),
4693
4681
  s
4694
4682
  );
4695
4683
  }
@@ -4714,8 +4702,8 @@ class L extends Te {
4714
4702
  createClientDeliveryAddress(r, e, s = {}) {
4715
4703
  return this.post(
4716
4704
  `/internal/clients/${r}/delivery-addresses`,
4717
- L.transformClientDeliveryAddressToRequest(e),
4718
- (i) => new Pe(i.data),
4705
+ x.transformClientDeliveryAddressToRequest(e),
4706
+ (i) => new ve(i.data),
4719
4707
  s
4720
4708
  );
4721
4709
  }
@@ -4730,8 +4718,8 @@ class L extends Te {
4730
4718
  updateClientDeliveryAddress(r, e, s = {}) {
4731
4719
  return this.patch(
4732
4720
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4733
- L.transformClientDeliveryAddressToRequest(e),
4734
- (i) => new Pe(i.data),
4721
+ x.transformClientDeliveryAddressToRequest(e),
4722
+ (i) => new ve(i.data),
4735
4723
  s
4736
4724
  );
4737
4725
  }
@@ -4757,8 +4745,8 @@ class L extends Te {
4757
4745
  createContragentBankAccount(r, e, s, i = {}) {
4758
4746
  return this.post(
4759
4747
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4760
- L.transformClientContragentBankAccountToRequest(s),
4761
- (o) => new Oe(o.data),
4748
+ x.transformClientContragentBankAccountToRequest(s),
4749
+ (o) => new de(o.data),
4762
4750
  i
4763
4751
  );
4764
4752
  }
@@ -4774,8 +4762,8 @@ class L extends Te {
4774
4762
  updateContragentBankAccount(r, e, s, i = {}) {
4775
4763
  return this.patch(
4776
4764
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4777
- L.transformClientContragentBankAccountToRequest(s),
4778
- (o) => new Oe(o.data),
4765
+ x.transformClientContragentBankAccountToRequest(s),
4766
+ (o) => new de(o.data),
4779
4767
  i
4780
4768
  );
4781
4769
  }
@@ -4831,7 +4819,7 @@ class L extends Te {
4831
4819
  comment: e.comment,
4832
4820
  not_disturb: e.notDisturb
4833
4821
  },
4834
- (i) => new M(i.data),
4822
+ (i) => new U(i.data),
4835
4823
  s
4836
4824
  );
4837
4825
  }
@@ -4968,7 +4956,7 @@ class L extends Te {
4968
4956
  comment: e.comment,
4969
4957
  ...s
4970
4958
  };
4971
- 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, (p) => new U(p.data), i);
4972
4960
  }
4973
4961
  /**
4974
4962
  * Устанавливает признак основного контактного лица.
@@ -4997,7 +4985,7 @@ class L extends Te {
4997
4985
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4998
4986
  }
4999
4987
  }
5000
- const V = class V extends h {
4988
+ const W = class W extends h {
5001
4989
  /**
5002
4990
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5003
4991
  */
@@ -5017,7 +5005,7 @@ const V = class V extends h {
5017
5005
  */
5018
5006
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5019
5007
  static getCachedResponse(e) {
5020
- const s = V.responseDataCache.get(e);
5008
+ const s = W.responseDataCache.get(e);
5021
5009
  if (s && s.validTo > /* @__PURE__ */ new Date())
5022
5010
  return s.val;
5023
5011
  }
@@ -5028,8 +5016,8 @@ const V = class V extends h {
5028
5016
  * @param data Данные для кэширования.
5029
5017
  */
5030
5018
  cacheResponse(e, s) {
5031
- V.responseDataCache.set(e, {
5032
- validTo: Or(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5019
+ W.responseDataCache.set(e, {
5020
+ validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5033
5021
  val: s
5034
5022
  });
5035
5023
  }
@@ -5044,9 +5032,9 @@ const V = class V extends h {
5044
5032
  */
5045
5033
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5046
5034
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5047
- const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
5035
+ const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? W.getCachedResponse(c) : void 0;
5048
5036
  return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
5049
- const f = p.map((m) => je.instanceInitializer(e, m));
5037
+ const f = p.map((m) => Me.instanceInitializer(e, m));
5050
5038
  return i && f && this.cacheResponse(s, f), f;
5051
5039
  });
5052
5040
  }
@@ -5054,8 +5042,8 @@ const V = class V extends h {
5054
5042
  /**
5055
5043
  * Кэш результатов запросов.
5056
5044
  */
5057
- t(V, "responseDataCache", /* @__PURE__ */ new Map());
5058
- let pe = V;
5045
+ t(W, "responseDataCache", /* @__PURE__ */ new Map());
5046
+ let ue = W;
5059
5047
  class rs extends h {
5060
5048
  /**
5061
5049
  * Выполняет проверку занят ли указанный номер телефона.
@@ -5150,24 +5138,24 @@ class ss {
5150
5138
  * Возвращает диапазон дат по умолчанию.
5151
5139
  */
5152
5140
  static defaultDateRanges() {
5153
- const r = qr(/* @__PURE__ */ new Date(), 1);
5141
+ const r = Nr(/* @__PURE__ */ new Date(), 1);
5154
5142
  return {
5155
5143
  // 'Следующий рабочий день' - это значение по-умолчанию
5156
- nextWorkingDay: { label: "Следующий рабочий день", from: Hr(r), to: Gr(r) },
5157
- today: { label: "Сегодня", from: _e(), to: jr() },
5158
- yesterday: { label: "Вчера", from: Mr(), to: Fr() },
5159
- tomorrow: { label: "Завтра", from: Ur(), to: Nr() }
5144
+ nextWorkingDay: { label: "Следующий рабочий день", from: Br(r), to: Hr(r) },
5145
+ today: { label: "Сегодня", from: Le(), to: Gr() },
5146
+ yesterday: { label: "Вчера", from: jr(), to: Mr() },
5147
+ tomorrow: { label: "Завтра", from: Fr(), to: Ur() }
5160
5148
  };
5161
5149
  }
5162
5150
  }
5163
- const K = class K {
5151
+ const J = class J {
5164
5152
  /**
5165
5153
  * Устанавливает список единиц измерения линейной величины.
5166
5154
  *
5167
5155
  * @param linearValues Список единиц измерения линейной величины.
5168
5156
  */
5169
5157
  static setLinearValues(r) {
5170
- K.linearValues = r;
5158
+ J.linearValues = r;
5171
5159
  }
5172
5160
  /**
5173
5161
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -5175,7 +5163,7 @@ const K = class K {
5175
5163
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
5176
5164
  */
5177
5165
  static productIsMeasurable(r) {
5178
- return K.linearValues.includes(r.unit);
5166
+ return J.linearValues.includes(r.unit);
5179
5167
  }
5180
5168
  /**
5181
5169
  * Возвращает кратность количества для указанного товара.
@@ -5184,7 +5172,7 @@ const K = class K {
5184
5172
  */
5185
5173
  static getProductMultiplicity(r) {
5186
5174
  var e, s;
5187
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !K.productIsMeasurable(r) ? r.properties.minCount : 1;
5175
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !J.productIsMeasurable(r) ? r.properties.minCount : 1;
5188
5176
  }
5189
5177
  /**
5190
5178
  * Возвращает кратность длины для указанного товара.
@@ -5199,8 +5187,8 @@ const K = class K {
5199
5187
  /**
5200
5188
  * Список единиц измерения линейной величины.
5201
5189
  */
5202
- t(K, "linearValues", ["пог.м.", "м.", "м2"]);
5203
- let er = K;
5190
+ t(J, "linearValues", ["пог.м.", "м.", "м2"]);
5191
+ let er = J;
5204
5192
  class is {
5205
5193
  /**
5206
5194
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
@@ -5217,19 +5205,19 @@ class is {
5217
5205
  return r.id === 0 && r.guid === "-undefined-";
5218
5206
  }
5219
5207
  }
5220
- class Pt extends pe {
5208
+ class Rt extends ue {
5221
5209
  /**
5222
5210
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5223
5211
  */
5224
5212
  async getManagers() {
5225
- const r = "/internal/managers", e = pe.getCachedResponse(r);
5213
+ const r = "/internal/managers", e = ue.getCachedResponse(r);
5226
5214
  if (e)
5227
5215
  return e;
5228
- const i = (await this.get(r)).data.map((o) => je.instanceInitializer(Ae, o));
5216
+ const i = (await this.get(r)).data.map((o) => Me.instanceInitializer(Ae, o));
5229
5217
  return this.cacheResponse(r, i), i;
5230
5218
  }
5231
5219
  }
5232
- class Tr extends Ar {
5220
+ class $r extends Tr {
5233
5221
  /**
5234
5222
  * Инициализирует экземпляр класса {@link OrderInfo}.
5235
5223
  *
@@ -5278,19 +5266,19 @@ class Tr extends Ar {
5278
5266
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
5279
5267
  */
5280
5268
  t(this, "isNotInStock");
5281
- this.client = new me(e == null ? void 0 : e.client), this.payment = {
5269
+ this.client = new ge(e == null ? void 0 : e.client), this.payment = {
5282
5270
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5283
5271
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5284
5272
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5285
5273
  }, this.delivery = {
5286
5274
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5287
5275
  date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5288
- address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Pe(e.delivery.address) : void 0,
5289
- warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new De(e.delivery.warehouse) : void 0
5290
- }, 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;
5276
+ address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ve(e.delivery.address) : void 0,
5277
+ warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new Re(e.delivery.warehouse) : void 0
5278
+ }, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new d(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;
5291
5279
  }
5292
5280
  }
5293
- class Rt extends j {
5281
+ class At extends F {
5294
5282
  /**
5295
5283
  * Инициализирует экземпляр класса {@link OrderProduct}.
5296
5284
  *
@@ -5370,10 +5358,10 @@ class Rt extends j {
5370
5358
  * который соответствует указанной ширине. Количество не ограничено.
5371
5359
  */
5372
5360
  t(this, "sawing");
5373
- 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;
5361
+ this.product = new Y(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;
5374
5362
  }
5375
5363
  }
5376
- class Dt extends Tr {
5364
+ class rr extends $r {
5377
5365
  /**
5378
5366
  * Инициализирует экземпляр класса {@link Order}.
5379
5367
  *
@@ -5413,10 +5401,10 @@ class Dt extends Tr {
5413
5401
  * Признак, что разрешена передача заказа в работу без оплаты.
5414
5402
  */
5415
5403
  t(this, "isAllowProcessingWithoutPayment");
5416
- 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;
5404
+ this.products = (e.products ?? []).map((s) => new At(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5417
5405
  }
5418
5406
  }
5419
- class ns extends Te {
5407
+ class ns extends De {
5420
5408
  /**
5421
5409
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5422
5410
  *
@@ -5429,7 +5417,7 @@ class ns extends Te {
5429
5417
  getOrders(r, e, s) {
5430
5418
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5431
5419
  const o = { ...i.data };
5432
- return o.data = o.data.map((c) => new Tr(c)), o;
5420
+ return o.data = o.data.map((c) => new $r(c)), o;
5433
5421
  });
5434
5422
  }
5435
5423
  /**
@@ -5447,10 +5435,40 @@ class ns extends Te {
5447
5435
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5448
5436
  */
5449
5437
  getOrder(r) {
5450
- return this.get(`/internal/orders/${r}`, {}, (e) => new Dt(e.data));
5438
+ return this.get(`/internal/orders/${r}`, {}, (e) => new rr(e.data));
5439
+ }
5440
+ /**
5441
+ * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
5442
+ *
5443
+ * @param orderId Идентификатор заказа, в который необходимо добавить продукт.
5444
+ * @param cartItem Данные о товаре, который необходимо добавить в заказ.
5445
+ * @param validationFieldResultData Список полей, для которых необходимо
5446
+ * установить данные об ошибках валидации
5447
+ * в случае ошибок в запросах.
5448
+ *
5449
+ * @see /doc/api/internal#/Заказы/api_internal_orders_product_add
5450
+ */
5451
+ addOrderProduct(r, e, s = {}) {
5452
+ return this.post(
5453
+ `/internal/orders/${r}/products`,
5454
+ {
5455
+ id: e.configurator && e.category.id,
5456
+ productId: e.product.id,
5457
+ quantity: e.quantity,
5458
+ height: e.height,
5459
+ length: e.length,
5460
+ width: e.width,
5461
+ configurator: e.configurator,
5462
+ marker: e.marker,
5463
+ isAdditionalSale: e.isAdditionalSale,
5464
+ ...e.configuratorParams
5465
+ },
5466
+ (i) => new rr(i.data),
5467
+ s
5468
+ );
5451
5469
  }
5452
5470
  }
5453
- class xe {
5471
+ class Ie {
5454
5472
  /**
5455
5473
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5456
5474
  *
@@ -5477,12 +5495,12 @@ class xe {
5477
5495
  * Источник клиентской цены.
5478
5496
  */
5479
5497
  t(this, "source");
5480
- this.client = new me(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ge.Product;
5498
+ this.client = new ge(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? je.Product;
5481
5499
  }
5482
5500
  }
5483
- const Le = (n) => {
5501
+ const xe = (n) => {
5484
5502
  var r, e, s, i, o;
5485
- return n ? or(
5503
+ return n ? cr(
5486
5504
  {
5487
5505
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5488
5506
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5491,9 +5509,9 @@ const Le = (n) => {
5491
5509
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5492
5510
  hideNotActive: n.hideNotActive
5493
5511
  },
5494
- (c) => A(c) || (Q(c) || cr(c)) && Y(c)
5512
+ (c) => D(c) || (V(c) || lr(c)) && K(c)
5495
5513
  ) : {};
5496
- }, rr = (n) => {
5514
+ }, tr = (n) => {
5497
5515
  const r = {};
5498
5516
  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;
5499
5517
  };
@@ -5511,10 +5529,10 @@ class os extends h {
5511
5529
  return this.get(
5512
5530
  `/internal/price/products/${r}/analyze`,
5513
5531
  {
5514
- ...rr(e),
5515
- filters: Le(s)
5532
+ ...tr(e),
5533
+ filters: xe(s)
5516
5534
  },
5517
- (i) => i.data.map((o) => new xe(o))
5535
+ (i) => i.data.map((o) => new Ie(o))
5518
5536
  );
5519
5537
  }
5520
5538
  /**
@@ -5530,10 +5548,10 @@ class os extends h {
5530
5548
  return this.get(
5531
5549
  `/internal/price/categories/${r}/analyze`,
5532
5550
  {
5533
- ...rr(e),
5534
- filters: Le(s)
5551
+ ...tr(e),
5552
+ filters: xe(s)
5535
5553
  },
5536
- (i) => i.data.map((o) => new xe(o))
5554
+ (i) => i.data.map((o) => new Ie(o))
5537
5555
  );
5538
5556
  }
5539
5557
  /**
@@ -5552,13 +5570,13 @@ class os extends h {
5552
5570
  `/internal/price/categories/${r}/analyze/square`,
5553
5571
  {
5554
5572
  ...e,
5555
- filters: Le(s)
5573
+ filters: xe(s)
5556
5574
  },
5557
- (i) => i.data.map((o) => new xe(o))
5575
+ (i) => i.data.map((o) => new Ie(o))
5558
5576
  );
5559
5577
  }
5560
5578
  }
5561
- class At {
5579
+ class Dt {
5562
5580
  /**
5563
5581
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5564
5582
  *
@@ -5605,7 +5623,7 @@ class At {
5605
5623
  * @inheritDoc
5606
5624
  */
5607
5625
  t(this, "currency");
5608
- 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;
5626
+ 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 q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new we(r.currency) : void 0;
5609
5627
  }
5610
5628
  }
5611
5629
  class Tt extends oe {
@@ -5620,7 +5638,7 @@ class Tt extends oe {
5620
5638
  * @inheritDoc
5621
5639
  */
5622
5640
  t(this, "history");
5623
- this.history = he(e.history, (s) => new At(s));
5641
+ this.history = pe(e.history, (s) => new Dt(s));
5624
5642
  }
5625
5643
  }
5626
5644
  class cs extends h {
@@ -5639,19 +5657,19 @@ class cs extends h {
5639
5657
  */
5640
5658
  getProductPriceHistory(r) {
5641
5659
  var i, o, c, u;
5642
- const e = T.getConfig().dateFormats.api, s = or(
5643
- Ne(r, {
5660
+ const e = T.getConfig().dateFormats.api, s = cr(
5661
+ qe(r, {
5644
5662
  costDate: {
5645
- from: ke((i = r.costDate) == null ? void 0 : i.from) ? O(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
5646
- to: ke((c = r.costDate) == null ? void 0 : c.to) ? O(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
5663
+ from: ke((i = r.costDate) == null ? void 0 : i.from) ? L(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
5664
+ to: ke((c = r.costDate) == null ? void 0 : c.to) ? L(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
5647
5665
  }
5648
5666
  }),
5649
- (p) => A(p) || (Q(p) || cr(p)) && Y(p)
5667
+ (p) => D(p) || (V(p) || lr(p)) && K(p)
5650
5668
  );
5651
- return this.get("/internal/history", s, (p) => he(p.data, (f) => new Tt(f)));
5669
+ return this.get("/internal/history", s, (p) => pe(p.data, (f) => new Tt(f)));
5652
5670
  }
5653
5671
  }
5654
- class tr {
5672
+ class sr {
5655
5673
  /**
5656
5674
  * Инициализирует экземпляр класса {@link RecommendationsList}.
5657
5675
  *
@@ -5683,7 +5701,7 @@ class ls extends h {
5683
5701
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
5684
5702
  */
5685
5703
  getProductCategoryRecommendations(r) {
5686
- return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new tr(e.data));
5704
+ return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
5687
5705
  }
5688
5706
  /**
5689
5707
  * Возвращает данные о рекомендациях указанного продукта.
@@ -5692,7 +5710,7 @@ class ls extends h {
5692
5710
  * @see /docs/api#/operations/api_internal_recommendations_product_get
5693
5711
  */
5694
5712
  getProductRecommendations(r) {
5695
- return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new tr(e.data));
5713
+ return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
5696
5714
  }
5697
5715
  /**
5698
5716
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -5721,7 +5739,7 @@ class ls extends h {
5721
5739
  });
5722
5740
  }
5723
5741
  }
5724
- class $ extends pe {
5742
+ class $ extends ue {
5725
5743
  /**
5726
5744
  * Возвращает {@link Promise} для получения данных указанного справочника.
5727
5745
  *
@@ -5730,20 +5748,20 @@ class $ extends pe {
5730
5748
  * и использовать в случае аналогичных запросов.
5731
5749
  */
5732
5750
  getReference(r, e = !1) {
5733
- return this.getTypedDataArrayRequester(lt, `/internal/references/${r}`, e);
5751
+ return this.getTypedDataArrayRequester(ut, `/internal/references/${r}`, e);
5734
5752
  }
5735
5753
  /**
5736
5754
  * Возвращает {@link Promise} для получения справочника данных о канале
5737
5755
  * первичного интереса.
5738
5756
  */
5739
5757
  getChannelPrimaryInterest() {
5740
- return this.getTypedDataArrayRequester(wr, "/internal/references/channel-primary-interest", !0);
5758
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
5741
5759
  }
5742
5760
  /**
5743
5761
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5744
5762
  */
5745
5763
  getContactPositions() {
5746
- return this.getTypedDataArrayRequester(ut, "/internal/references/contact-position", !0);
5764
+ return this.getTypedDataArrayRequester(pt, "/internal/references/contact-position", !0);
5747
5765
  }
5748
5766
  /**
5749
5767
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -5755,56 +5773,56 @@ class $ extends pe {
5755
5773
  * Возвращает {@link Promise} для получения справочника списка валют.
5756
5774
  */
5757
5775
  getCurrency() {
5758
- return this.getTypedDataArrayRequester(Ce, "/public/references/currency", !0);
5776
+ return this.getTypedDataArrayRequester(we, "/public/references/currency", !0);
5759
5777
  }
5760
5778
  /**
5761
5779
  * Возвращает {@link Promise} для получения справочника данных
5762
5780
  * групп партнеров (направлений деятельности).
5763
5781
  */
5764
5782
  getPartnerGroup() {
5765
- return this.getTypedDataArrayRequester(re, "/internal/references/partner-group", !0);
5783
+ return this.getTypedDataArrayRequester(Z, "/internal/references/partner-group", !0);
5766
5784
  }
5767
5785
  /**
5768
5786
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
5769
5787
  */
5770
5788
  getOpf() {
5771
- return this.getTypedDataArrayRequester(F, "/public/references/opf", !0);
5789
+ return this.getTypedDataArrayRequester(N, "/public/references/opf", !0);
5772
5790
  }
5773
5791
  /**
5774
5792
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5775
5793
  */
5776
5794
  getOrderPaymentStatuses() {
5777
- return this.getTypedDataArrayRequester(pt, "/public/references/order-payment-status", !0);
5795
+ return this.getTypedDataArrayRequester(ht, "/public/references/order-payment-status", !0);
5778
5796
  }
5779
5797
  /**
5780
5798
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5781
5799
  */
5782
5800
  getOrderStatuses() {
5783
- return this.getTypedDataArrayRequester(ht, "/public/references/order-status", !0);
5801
+ return this.getTypedDataArrayRequester(gt, "/public/references/order-status", !0);
5784
5802
  }
5785
5803
  /**
5786
5804
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5787
5805
  */
5788
5806
  getPaymentTypes() {
5789
- return this.getTypedDataArrayRequester(gt, "/public/references/payment-type", !0);
5807
+ return this.getTypedDataArrayRequester(mt, "/public/references/payment-type", !0);
5790
5808
  }
5791
5809
  /**
5792
5810
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5793
5811
  */
5794
5812
  getResourceTypes() {
5795
- return this.getTypedDataArrayRequester(Cr, "/internal/references/resource-type", !0);
5813
+ return this.getTypedDataArrayRequester(vr, "/internal/references/resource-type", !0);
5796
5814
  }
5797
5815
  /**
5798
5816
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5799
5817
  */
5800
5818
  getSalesDirections() {
5801
- return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
5819
+ return this.getTypedDataArrayRequester(d, "/public/references/sales-direction", !0);
5802
5820
  }
5803
5821
  /**
5804
5822
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5805
5823
  */
5806
5824
  getSourcePrimaryInterest() {
5807
- return this.getTypedDataArrayRequester(vr, "/internal/references/source-primary-interest", !0);
5825
+ return this.getTypedDataArrayRequester(Pr, "/internal/references/source-primary-interest", !0);
5808
5826
  }
5809
5827
  /**
5810
5828
  * Выполняет поиск данных о городах по терму в названии.
@@ -5820,7 +5838,7 @@ class $ extends pe {
5820
5838
  * @param term Терм поиска.
5821
5839
  */
5822
5840
  searchRegion(r) {
5823
- return this.getTypedDataArrayRequester(le, `/internal/references/region-with-country/search?term=${r}`);
5841
+ return this.getTypedDataArrayRequester(ce, `/internal/references/region-with-country/search?term=${r}`);
5824
5842
  }
5825
5843
  /**
5826
5844
  * Выполняет поиск данных о странах по терму в названии.
@@ -5828,41 +5846,41 @@ class $ extends pe {
5828
5846
  * @param term Терм поиска.
5829
5847
  */
5830
5848
  searchCountry(r) {
5831
- return this.getTypedDataArrayRequester(ee, `/internal/references/country/search?term=${r}`);
5849
+ return this.getTypedDataArrayRequester(X, `/internal/references/country/search?term=${r}`);
5832
5850
  }
5833
5851
  /**
5834
5852
  * Возвращает {@link Promise} для получения справочника типов доставки.
5835
5853
  */
5836
5854
  getDeliveryTypes() {
5837
- return this.getTypedDataArrayRequester(X, "/internal/references/delivery-type", !0);
5855
+ return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
5838
5856
  }
5839
5857
  /**
5840
5858
  * Возвращает {@link Promise} для получения справочника складов.
5841
5859
  */
5842
5860
  getWarehouses() {
5843
- return this.getTypedDataArrayRequester(De, "/public/references/warehouse", !0);
5861
+ return this.getTypedDataArrayRequester(Re, "/public/references/warehouse", !0);
5844
5862
  }
5845
5863
  /**
5846
5864
  * Возвращает {@link Promise} для получения справочника типов свойств.
5847
5865
  */
5848
5866
  getPropertyTypes() {
5849
- return this.getTypedDataArrayRequester(yr, "/internal/references/property-type", !0);
5867
+ return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
5850
5868
  }
5851
5869
  /**
5852
5870
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5853
5871
  */
5854
5872
  getPriceCoefficients() {
5855
- return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
5873
+ return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
5856
5874
  }
5857
5875
  /**
5858
5876
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5859
5877
  */
5860
5878
  getProductFileType() {
5861
- return this.getTypedDataArrayRequester(mt, "/public/references/product-file-type", !0);
5879
+ return this.getTypedDataArrayRequester(ft, "/public/references/product-file-type", !0);
5862
5880
  }
5863
5881
  }
5864
- const D = te("__references_private", () => {
5865
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), a = y(void 0), _ = y(void 0), d = y(void 0), G = y(void 0), H = y(void 0), $e = y(void 0), l = y(void 0);
5882
+ const A = ee("__references_private", () => {
5883
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), S = y(void 0), re = y(void 0), te = y(void 0), M = y(void 0), j = y(void 0), Te = y(void 0), l = y(void 0);
5866
5884
  return {
5867
5885
  /**
5868
5886
  * Список загружаемых/загруженных на данный момент значений.
@@ -5911,115 +5929,115 @@ const D = te("__references_private", () => {
5911
5929
  /**
5912
5930
  * Справочник типов файлов продукктов/категорий.
5913
5931
  */
5914
- productFileTypeReference: a,
5932
+ productFileTypeReference: S,
5915
5933
  /**
5916
5934
  * Справочник типов ресурсов.
5917
5935
  */
5918
- resourceTypesReference: _,
5936
+ resourceTypesReference: re,
5919
5937
  /**
5920
5938
  * Справочник направлений продаж.
5921
5939
  */
5922
- salesDirectionsReference: d,
5940
+ salesDirectionsReference: te,
5923
5941
  /**
5924
5942
  * Справочник источников первичного интереса.
5925
5943
  */
5926
- sourcePrimaryInterestReference: G,
5944
+ sourcePrimaryInterestReference: M,
5927
5945
  /**
5928
5946
  * Справочник складов.
5929
5947
  */
5930
- warehousesReference: H,
5948
+ warehousesReference: j,
5931
5949
  /**
5932
5950
  * Справочник типов свойств.
5933
5951
  */
5934
- propertyTypesReference: $e,
5952
+ propertyTypesReference: Te,
5935
5953
  /**
5936
5954
  * Справочник коэффициентов цен.
5937
5955
  */
5938
5956
  priceCoefficientsReference: l
5939
5957
  };
5940
- }), us = te("references", () => {
5958
+ }), us = ee("references", () => {
5941
5959
  const n = R(() => {
5942
- const l = D();
5960
+ const l = A();
5943
5961
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance($).getChannelPrimaryInterest().then((g) => {
5944
5962
  l.channelPrimaryInterestReference = g;
5945
5963
  }).catch(w)), l.channelPrimaryInterestReference;
5946
5964
  }), r = R(() => {
5947
- const l = D();
5965
+ const l = A();
5948
5966
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance($).getContactPositions().then((g) => {
5949
5967
  l.contactPositionsReference = g;
5950
5968
  }).catch(w)), l.contactPositionsReference;
5951
5969
  }), e = R(() => {
5952
- const l = D();
5970
+ const l = A();
5953
5971
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance($).getCurrency().then((g) => {
5954
5972
  l.currencyReference = g;
5955
5973
  }).catch(w)), l.currencyReference;
5956
5974
  }), s = R(() => {
5957
- const l = D();
5975
+ const l = A();
5958
5976
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance($).getOpf().then((g) => {
5959
5977
  l.opfReference = g;
5960
5978
  }).catch(w)), l.opfReference;
5961
5979
  }), i = R(() => {
5962
- const l = D();
5980
+ const l = A();
5963
5981
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance($).getOrderPaymentStatuses().then((g) => {
5964
5982
  l.orderPaymentStatusReference = g;
5965
5983
  }).catch(w)), l.orderPaymentStatusReference;
5966
5984
  }), o = R(() => {
5967
- const l = D();
5985
+ const l = A();
5968
5986
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance($).getOrderStatuses().then((g) => {
5969
5987
  l.orderStatusReference = g;
5970
5988
  }).catch(w)), l.orderStatusReference;
5971
5989
  }), c = R(() => {
5972
- const l = D();
5990
+ const l = A();
5973
5991
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance($).getPaymentTypes().then((g) => {
5974
5992
  l.paymentTypeReference = g;
5975
5993
  }).catch(w)), l.paymentTypeReference;
5976
5994
  }), u = R(() => {
5977
- const l = D();
5995
+ const l = A();
5978
5996
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance($).getPartnerGroup().then((g) => {
5979
5997
  l.partnerGroupReference = g;
5980
5998
  }).catch(w)), l.partnerGroupReference;
5981
5999
  }), p = R(() => {
5982
- const l = D();
6000
+ const l = A();
5983
6001
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance($).getProductFileType().then((g) => {
5984
6002
  l.productFileTypeReference = g;
5985
6003
  }).catch(w)), l.productFileTypeReference;
5986
6004
  }), f = R(() => {
5987
- const l = D();
6005
+ const l = A();
5988
6006
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance($).getResourceTypes().then((g) => {
5989
6007
  l.resourceTypesReference = g;
5990
6008
  }).catch(w)), l.resourceTypesReference;
5991
6009
  }), m = R(() => {
5992
- const l = D();
6010
+ const l = A();
5993
6011
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance($).getSalesDirections().then((g) => {
5994
6012
  l.salesDirectionsReference = g;
5995
6013
  }).catch(w)), l.salesDirectionsReference;
5996
- }), a = R(() => {
5997
- const l = D();
6014
+ }), S = R(() => {
6015
+ const l = A();
5998
6016
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((g) => {
5999
6017
  l.sourcePrimaryInterestReference = g;
6000
6018
  }).catch(w)), l.sourcePrimaryInterestReference;
6001
- }), _ = R(() => {
6002
- const l = D();
6019
+ }), re = R(() => {
6020
+ const l = A();
6003
6021
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance($).getDeliveryTypes().then((g) => {
6004
6022
  l.deliveryTypeReference = g;
6005
6023
  }).catch(w)), l.deliveryTypeReference;
6006
- }), d = R(() => {
6007
- const l = D();
6008
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Pt).getManagers().then((g) => {
6024
+ }), te = R(() => {
6025
+ const l = A();
6026
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Rt).getManagers().then((g) => {
6009
6027
  l.managersList = g;
6010
6028
  }).catch(w)), l.managersList;
6011
- }), G = R(() => {
6012
- const l = D();
6029
+ }), M = R(() => {
6030
+ const l = A();
6013
6031
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance($).getWarehouses().then((g) => {
6014
6032
  l.warehousesReference = g;
6015
6033
  }).catch(w)), l.warehousesReference;
6016
- }), H = R(() => {
6017
- const l = D();
6034
+ }), j = R(() => {
6035
+ const l = A();
6018
6036
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance($).getPropertyTypes().then((g) => {
6019
6037
  l.propertyTypesReference = g;
6020
6038
  }).catch(w)), l.propertyTypesReference;
6021
- }), $e = R(() => {
6022
- const l = D();
6039
+ }), Te = R(() => {
6040
+ const l = A();
6023
6041
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance($).getPriceCoefficients().then((g) => {
6024
6042
  l.priceCoefficientsReference = g;
6025
6043
  }).catch(w)), l.priceCoefficientsReference;
@@ -6072,27 +6090,27 @@ const D = te("__references_private", () => {
6072
6090
  /**
6073
6091
  * Справочник каналов первичного интереса.
6074
6092
  */
6075
- sourcePrimaryInterestsReference: a,
6093
+ sourcePrimaryInterestsReference: S,
6076
6094
  /**
6077
6095
  * Справочник типов доставки.
6078
6096
  */
6079
- deliveryTypeReference: _,
6097
+ deliveryTypeReference: re,
6080
6098
  /**
6081
6099
  * Список менеджеров.
6082
6100
  */
6083
- managersList: d,
6101
+ managersList: te,
6084
6102
  /**
6085
6103
  * Справочник складов.
6086
6104
  */
6087
- warehousesReference: G,
6105
+ warehousesReference: M,
6088
6106
  /**
6089
6107
  * Справочник типов свойств.
6090
6108
  */
6091
- propertyTypesReference: H,
6109
+ propertyTypesReference: j,
6092
6110
  /**
6093
6111
  * Справочник коэффициентов цен.
6094
6112
  */
6095
- priceCoefficientsReference: $e
6113
+ priceCoefficientsReference: Te
6096
6114
  };
6097
6115
  });
6098
6116
  class $t {
@@ -6113,7 +6131,7 @@ class $t {
6113
6131
  this.name = r.name, this.content = r.content;
6114
6132
  }
6115
6133
  }
6116
- class sr {
6134
+ class ir {
6117
6135
  /**
6118
6136
  * Инициализирует экземпляр класса {@link Seo}.
6119
6137
  *
@@ -6149,7 +6167,7 @@ class sr {
6149
6167
  */
6150
6168
  t(this, "meta");
6151
6169
  var e;
6152
- 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))) ?? [];
6170
+ this.resourceType = new vr(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))) ?? [];
6153
6171
  }
6154
6172
  }
6155
6173
  class ps extends h {
@@ -6160,7 +6178,7 @@ class ps extends h {
6160
6178
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6161
6179
  */
6162
6180
  getResourceSeoData(r, e) {
6163
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new sr(s.data));
6181
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
6164
6182
  }
6165
6183
  /**
6166
6184
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6171,7 +6189,7 @@ class ps extends h {
6171
6189
  * в случае ошибок в запросах.
6172
6190
  */
6173
6191
  saveResourceSeoData(r, e = {}) {
6174
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new sr(s.data), e);
6192
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
6175
6193
  }
6176
6194
  /**
6177
6195
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6231,7 +6249,7 @@ class hs extends h {
6231
6249
  }
6232
6250
  }
6233
6251
  var bt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(bt || {});
6234
- class at extends fr {
6252
+ class St extends yr {
6235
6253
  /**
6236
6254
  * Инициализирует экземпляр класса {@link User}.
6237
6255
  *
@@ -6270,16 +6288,16 @@ class gs extends h {
6270
6288
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6271
6289
  }
6272
6290
  }
6273
- class St extends h {
6291
+ class at extends h {
6274
6292
  /**
6275
6293
  * Возвращает данные о текущем пользователе.
6276
6294
  */
6277
6295
  // eslint-disable-next-line class-methods-use-this
6278
6296
  getCurrentUser() {
6279
- return this.get("/internal/users/info", {}, (r) => new at(r.data));
6297
+ return this.get("/internal/users/info", {}, (r) => new St(r.data));
6280
6298
  }
6281
6299
  }
6282
- const It = te("__user_state_private", () => {
6300
+ const It = ee("__user_state_private", () => {
6283
6301
  const n = y({}), r = y(void 0);
6284
6302
  return {
6285
6303
  /**
@@ -6291,13 +6309,13 @@ const It = te("__user_state_private", () => {
6291
6309
  */
6292
6310
  currentUser: r
6293
6311
  };
6294
- }), ms = te("user_state", () => ({
6312
+ }), ms = ee("user_state", () => ({
6295
6313
  /**
6296
6314
  * Данные о текущем пользователе.
6297
6315
  */
6298
6316
  currentUser: R(() => {
6299
6317
  const r = It();
6300
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(St).getCurrentUser().then((e) => {
6318
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(at).getCurrentUser().then((e) => {
6301
6319
  r.currentUser = e;
6302
6320
  }).catch(w).finally(() => {
6303
6321
  r.dataLoaderList.currentUser = !1;
@@ -6328,151 +6346,151 @@ class fs {
6328
6346
  }
6329
6347
  }
6330
6348
  export {
6331
- lt as AnyReference,
6349
+ ut as AnyReference,
6332
6350
  jt as AppBaseConfig,
6333
6351
  T as AppConfigProvider,
6334
- Oe as BankAccount,
6335
- Te as BasePaginationProvider,
6336
- Qr as CalculationTypeEnum,
6337
- fe as Cart,
6338
- Kr as CartItem,
6339
- Vr as CartItemBase,
6352
+ de as BankAccount,
6353
+ De as BasePaginationProvider,
6354
+ Yr as CalculationTypeEnum,
6355
+ me as Cart,
6356
+ Qr as CartItem,
6357
+ Kr as CartItemBase,
6340
6358
  Ft as CartProvider,
6341
6359
  Gt as CatalogProvider,
6342
- lr as CatalogableItem,
6343
- z as Category,
6360
+ ur as CatalogableItem,
6361
+ B as Category,
6344
6362
  Ke as CategoryPricingRule,
6345
- wr as ChannelPrimaryInterest,
6363
+ Cr as ChannelPrimaryInterest,
6346
6364
  Yt as City,
6347
6365
  Ee as CityWithRegionAndCountry,
6348
6366
  Ze as Client,
6349
- Ct as ClientAdditionalData,
6350
- we as ClientCategory,
6351
- L as ClientDataProvider,
6367
+ vt as ClientAdditionalData,
6368
+ ye as ClientCategory,
6369
+ x as ClientDataProvider,
6352
6370
  Ht as ClientPriceProvider,
6353
6371
  Bt as ClientPriceTemplateProvider,
6354
- Z as ClientProduct,
6372
+ Y as ClientProduct,
6355
6373
  Wt as ClientProductCategoryDataProvider,
6356
6374
  Jt as ClientProductDataProvider,
6357
- me as ClientShortInfo,
6358
- ct as ClientsAdditionalDataRequestTypeEnum,
6375
+ ge as ClientShortInfo,
6376
+ lt as ClientsAdditionalDataRequestTypeEnum,
6359
6377
  Xt as ClientsListFilters,
6360
6378
  oe as CodedIdentity,
6361
6379
  ts as ConfiguratorProvider,
6362
- qe as Contact,
6363
- gr as ContactLinks,
6364
- M as ContactPerson,
6365
- wt as ContactPersonRelated,
6366
- ut as ContactPosition,
6367
- Ie as ContactRelation,
6368
- Pr as ContragentBase,
6369
- ve as ContragentFactory,
6370
- Rr as ContragentIc,
6371
- ft as ContragentPerson,
6372
- yt as ContragentUlNr,
6380
+ Oe as Contact,
6381
+ mr as ContactLinks,
6382
+ U as ContactPerson,
6383
+ Ct as ContactPersonRelated,
6384
+ pt as ContactPosition,
6385
+ ae as ContactRelation,
6386
+ Rr as ContragentBase,
6387
+ Ce as ContragentFactory,
6388
+ Ar as ContragentIc,
6389
+ yt as ContragentPerson,
6390
+ wt as ContragentUlNr,
6373
6391
  Dr as ContragentUlR,
6374
- Ge as CostSourceEnum,
6375
- ee as Country,
6392
+ je as CostSourceEnum,
6393
+ X as Country,
6376
6394
  He as CuratedDirection,
6377
6395
  Be as Curator,
6378
- Ce as Currency,
6396
+ we as Currency,
6379
6397
  hs as DataSuggestionProvider,
6380
6398
  Zt as DataTablePagination,
6381
- vt as DataTablePaginationRequestParams,
6399
+ Pt as DataTablePaginationRequestParams,
6382
6400
  es as DataTableSortRequestParams,
6383
6401
  ss as DateTimeProvider,
6384
- Xr as DeletableNamedIdentity,
6385
- Pe as DeliveryAddress,
6386
- X as DeliveryType,
6402
+ Zr as DeletableNamedIdentity,
6403
+ ve as DeliveryAddress,
6404
+ Q as DeliveryType,
6387
6405
  Ut as DetailedJwtPayload,
6388
- tt as DeviceTypeResolutionConfig,
6389
- Zr as DiscountShortInfo,
6406
+ st as DeviceTypeResolutionConfig,
6407
+ et as DiscountShortInfo,
6390
6408
  fs as FieldValidationResultData,
6391
- ue as FilterGroup,
6409
+ le as FilterGroup,
6392
6410
  Qe as FilterItem,
6393
6411
  ze as FilterOpEnum,
6394
- pr as GeoCoordinates,
6395
- Wr as HiddenCatalogableItem,
6396
- pe as HttpCachedRequester,
6397
- st as HttpParamsConfig,
6412
+ hr as GeoCoordinates,
6413
+ Jr as HiddenCatalogableItem,
6414
+ ue as HttpCachedRequester,
6415
+ it as HttpParamsConfig,
6398
6416
  h as HttpRequester,
6399
- j as Identity,
6400
- Jr as Image,
6401
- N as JwtPayload,
6417
+ F as Identity,
6418
+ Vr as Image,
6419
+ O as JwtPayload,
6402
6420
  Ae as Manager,
6403
- ce as ManagerCommon,
6421
+ Ge as ManagerCommon,
6404
6422
  is as ManagerDataFactory,
6405
- Pt as ManagerDataProvider,
6423
+ Rt as ManagerDataProvider,
6406
6424
  $t as MetaTagItem,
6407
6425
  b as NamedIdentity,
6408
- F as Opf,
6409
- q as OpfEnum,
6410
- Dt as Order,
6411
- Tr as OrderInfo,
6412
- pt as OrderPaymentStatus,
6413
- Rt as OrderProduct,
6414
- Ar as OrderShortInfo,
6415
- ht as OrderStatus,
6426
+ N as Opf,
6427
+ _ as OpfEnum,
6428
+ rr as Order,
6429
+ $r as OrderInfo,
6430
+ ht as OrderPaymentStatus,
6431
+ At as OrderProduct,
6432
+ Tr as OrderShortInfo,
6433
+ gt as OrderStatus,
6416
6434
  ns as OrdersDataProvider,
6417
- re as PartnerGroup,
6418
- gt as PaymentType,
6419
- ye as PreferencesStorageProvider,
6420
- xe as PriceAnalyze,
6435
+ Z as PartnerGroup,
6436
+ mt as PaymentType,
6437
+ fe as PreferencesStorageProvider,
6438
+ Ie as PriceAnalyze,
6421
6439
  os as PriceAnalyzeProvider,
6422
- Re as PriceCoefficient,
6423
- ur as PriceCoefficientEnum,
6440
+ Pe as PriceCoefficient,
6441
+ pr as PriceCoefficientEnum,
6424
6442
  cs as PriceHistoryDataProvider,
6425
- At as PriceHistoryItem,
6426
- W as PriceTemplate,
6427
- ae as PriceTemplateCategory,
6443
+ Dt as PriceHistoryItem,
6444
+ E as PriceTemplate,
6445
+ be as PriceTemplateCategory,
6428
6446
  se as PriceTemplateClient,
6429
- mr as PriceTemplateICatalogableItem,
6447
+ fr as PriceTemplateICatalogableItem,
6430
6448
  Se as PriceTemplateProduct,
6431
6449
  Vt as PriceTemplateProvider,
6432
6450
  ne as PricingRole,
6433
6451
  Kt as PricingRoleProvider,
6434
- de as PrimaryCatalogableItem,
6452
+ _e as PrimaryCatalogableItem,
6435
6453
  I as Product,
6436
6454
  Et as ProductCategoryDataProvider,
6437
6455
  zt as ProductDataProvider,
6438
- mt as ProductFileType,
6439
- Me as ProductPriceCoefficient,
6456
+ ft as ProductFileType,
6457
+ Fe as ProductPriceCoefficient,
6440
6458
  Tt as ProductPriceHistory,
6441
6459
  Qt as PropertiesProvider,
6442
6460
  ie as Property,
6443
- yr as PropertyType,
6444
- Yr as PropertyTypeEnum,
6445
- E as PropertyValue,
6461
+ wr as PropertyType,
6462
+ Xr as PropertyTypeEnum,
6463
+ H as PropertyValue,
6446
6464
  ls as RecommendationsDataProvider,
6447
- tr as RecommendationsList,
6465
+ sr as RecommendationsList,
6448
6466
  P as Reference,
6449
6467
  $ as ReferenceDataProvider,
6450
- le as Region,
6451
- Cr as ResourceType,
6452
- x as SalesDirection,
6453
- it as SentryConfig,
6454
- sr as Seo,
6468
+ ce as Region,
6469
+ vr as ResourceType,
6470
+ d as SalesDirection,
6471
+ nt as SentryConfig,
6472
+ ir as Seo,
6455
6473
  ps as SeoDataProvider,
6456
- vr as SourcePrimaryInterest,
6457
- zr as StockCount,
6474
+ Pr as SourcePrimaryInterest,
6475
+ Wr as StockCount,
6458
6476
  Mt as TemplatesListFilters,
6459
- je as TypedInstanceFactory,
6477
+ Me as TypedInstanceFactory,
6460
6478
  er as UnitsHelper,
6461
6479
  rs as UnknownClientDataProvider,
6462
- hr as UpdatableNamedIdentity,
6463
- at as User,
6480
+ gr as UpdatableNamedIdentity,
6481
+ St as User,
6464
6482
  gs as UserAuthDataProvider,
6465
- fr as UserCommonInfo,
6466
- St as UserDataProvider,
6467
- et as UserPricingRole,
6468
- U as UserShortInfo,
6483
+ yr as UserCommonInfo,
6484
+ at as UserDataProvider,
6485
+ rt as UserPricingRole,
6486
+ q as UserShortInfo,
6469
6487
  bt as UserTypeEnum,
6470
- nt as VersionConfig,
6471
- De as Warehouse,
6472
- ot as WebSocketConfig,
6488
+ ot as VersionConfig,
6489
+ Re as Warehouse,
6490
+ ct as WebSocketConfig,
6473
6491
  Ye as findCatalogItemByIdRecursive,
6474
6492
  Xe as flattenCatalogItems,
6475
- be as useAuthStateStore,
6493
+ $e as useAuthStateStore,
6476
6494
  us as useReferencesStore,
6477
6495
  ms as useUserStateStore
6478
6496
  };