@snabcentr/common-lib 2.13.2 → 2.14.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 (31) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +4 -2
  3. package/dist/sc-common-lib.js +871 -771
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/catalog/classes/category-filter-setting.d.ts +30 -0
  8. package/dist/src/catalog/classes/category-filter-setting.d.ts.map +1 -0
  9. package/dist/src/catalog/classes/filter-settings.d.ts +37 -0
  10. package/dist/src/catalog/classes/filter-settings.d.ts.map +1 -0
  11. package/dist/src/catalog/classes/index.d.ts +2 -0
  12. package/dist/src/catalog/classes/index.d.ts.map +1 -1
  13. package/dist/src/catalog/classes/property.d.ts +4 -0
  14. package/dist/src/catalog/classes/property.d.ts.map +1 -1
  15. package/dist/src/catalog/enums/index.d.ts +1 -0
  16. package/dist/src/catalog/enums/index.d.ts.map +1 -1
  17. package/dist/src/catalog/enums/product-filter-type-enum.d.ts +18 -0
  18. package/dist/src/catalog/enums/product-filter-type-enum.d.ts.map +1 -0
  19. package/dist/src/catalog/interfaces/i-category-filter-setting-update-data.d.ts +27 -0
  20. package/dist/src/catalog/interfaces/i-category-filter-setting-update-data.d.ts.map +1 -0
  21. package/dist/src/catalog/interfaces/i-category-filter-setting.d.ts +21 -0
  22. package/dist/src/catalog/interfaces/i-category-filter-setting.d.ts.map +1 -0
  23. package/dist/src/catalog/interfaces/i-filter-settings.d.ts +27 -0
  24. package/dist/src/catalog/interfaces/i-filter-settings.d.ts.map +1 -0
  25. package/dist/src/catalog/interfaces/i-property.d.ts +4 -0
  26. package/dist/src/catalog/interfaces/i-property.d.ts.map +1 -1
  27. package/dist/src/catalog/interfaces/index.d.ts +3 -0
  28. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  29. package/dist/src/catalog/providers/properties-provider.d.ts +26 -0
  30. package/dist/src/catalog/providers/properties-provider.d.ts.map +1 -1
  31. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- var Nr = Object.defineProperty;
2
- var Ur = (n, r, e) => r in n ? Nr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => Ur(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as ur } from "jwt-decode";
5
- import { merge as he, isNil as $, isEmpty as re, noop as v, mapValues as pr, isArray as H, every as Fr, split as Hr, isString as a, constant as Br, toUpper as Mr, cloneDeep as jr, toLower as Gr, isFunction as Be, map as ye, forEach as zr, isDate as qe, isObject as Me, omitBy as hr } from "lodash-es";
1
+ var Fr = Object.defineProperty;
2
+ var Ur = (i, r, e) => r in i ? Fr(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var s = (i, r, e) => Ur(i, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as pr } from "jwt-decode";
5
+ import { merge as ge, isNil as d, isEmpty as te, noop as v, mapValues as hr, isArray as H, every as Hr, split as Mr, isString as C, constant as Br, toUpper as jr, cloneDeep as Gr, toLower as zr, isFunction as Me, map as we, forEach as Wr, isDate as qe, isObject as Be, omitBy as gr } from "lodash-es";
6
6
  import { objectToCamel as je, objectToSnake as Ye } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
- import { ref as y, markRaw as Wr, computed as R } from "vue";
9
- import { isAfter as Xe, parseISO as C, startOfToday as Ne, format as L, addBusinessDays as Jr, endOfTomorrow as Vr, startOfTomorrow as Er, endOfYesterday as Kr, startOfYesterday as Qr, endOfToday as Yr, endOfDay as Xr, startOfDay as Zr, addSeconds as et } from "date-fns";
10
- import rt, { CanceledError as tt } from "axios";
11
- class B {
8
+ import { ref as y, markRaw as Jr, computed as P } from "vue";
9
+ import { isAfter as Xe, parseISO as a, startOfToday as Ne, format as L, addBusinessDays as Vr, endOfTomorrow as Er, startOfTomorrow as Kr, endOfYesterday as Qr, startOfYesterday as Yr, endOfToday as Xr, endOfDay as Zr, startOfDay as et, addSeconds as rt } from "date-fns";
10
+ import tt, { CanceledError as st } from "axios";
11
+ class M {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class B {
99
99
  * @inheritDoc
100
100
  */
101
101
  s(this, "email", "");
102
- he(this, r);
102
+ ge(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class B {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = ur(r), t = new B(je(e));
110
+ const e = pr(r), t = new M(je(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class Et extends B {
114
+ class Yt extends M {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class Et extends B {
143
143
  * @inheritDoc
144
144
  */
145
145
  s(this, "address");
146
- he(this, e);
146
+ ge(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,10 +151,10 @@ class Et extends B {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new B(je(ur(e)));
154
+ return new M(je(pr(e)));
155
155
  }
156
156
  }
157
- class st {
157
+ class it {
158
158
  /**
159
159
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
160
160
  *
@@ -176,7 +176,7 @@ class st {
176
176
  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;
177
177
  }
178
178
  }
179
- class it {
179
+ class nt {
180
180
  /**
181
181
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
182
182
  *
@@ -198,7 +198,7 @@ class it {
198
198
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
199
199
  }
200
200
  }
201
- class nt {
201
+ class ot {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -229,7 +229,7 @@ class nt {
229
229
  * Дополнительные параметры.
230
230
  */
231
231
  s(this, "additionalParams");
232
- var e, t, i, o;
232
+ var e, t, n, o;
233
233
  this.dsn = (r == null ? void 0 : r.dsn) ?? "", this.environment = (r == null ? void 0 : r.environment) ?? "production", this.ignoreErrors = (r == null ? void 0 : r.ignoreErrors) ?? [
234
234
  /Network\s{1,3}Error/,
235
235
  /Request\s{1,3}aborted/,
@@ -238,12 +238,12 @@ class nt {
238
238
  allowedTargets: ((e = r == null ? void 0 : r.trace) == null ? void 0 : e.allowedTargets) ?? [/^\//],
239
239
  sampleRate: ((t = r == null ? void 0 : r.trace) == null ? void 0 : t.sampleRate) ?? 0
240
240
  }, this.replay = {
241
- replaysOnErrorSampleRate: ((i = r == null ? void 0 : r.replay) == null ? void 0 : i.replaysOnErrorSampleRate) ?? 0,
241
+ replaysOnErrorSampleRate: ((n = r == null ? void 0 : r.replay) == null ? void 0 : n.replaysOnErrorSampleRate) ?? 0,
242
242
  replaysSessionSampleRate: ((o = r == null ? void 0 : r.replay) == null ? void 0 : o.replaysSessionSampleRate) ?? 0
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class ot {
246
+ class ct {
247
247
  /**
248
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
249
249
  *
@@ -282,7 +282,7 @@ class ot {
282
282
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
283
283
  }
284
284
  }
285
- class ct {
285
+ class lt {
286
286
  /**
287
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
288
288
  *
@@ -325,41 +325,41 @@ class ct {
325
325
  * @inheritDoc
326
326
  */
327
327
  s(this, "dateFormats");
328
- var e, t, i;
329
- 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({
328
+ var e, t, n;
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new nt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new it(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ot({
330
330
  environment: this.environment,
331
331
  ...r == null ? void 0 : r.sentry
332
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new ot(r.websocket) : void 0, this.dateFormats = {
332
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new ct(r.websocket) : void 0, this.dateFormats = {
333
333
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
334
334
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
335
- uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
335
+ uiDateWithTime: ((n = r == null ? void 0 : r.dateFormats) == null ? void 0 : n.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
336
336
  };
337
337
  }
338
338
  }
339
339
  const k = W("common.config", () => {
340
- const n = y(new ct());
340
+ const i = y(new lt());
341
341
  return {
342
342
  /**
343
343
  * Конфигурационные данные приложения.
344
344
  */
345
- config: n,
345
+ config: i,
346
346
  /**
347
347
  * Получает конфигурацию приложения.
348
348
  *
349
349
  * @returns Конфигурация приложения.
350
350
  */
351
- getConfig: () => n.value,
351
+ getConfig: () => i.value,
352
352
  /**
353
353
  * Устанавливает конфигурацию приложения.
354
354
  *
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (t) => {
358
- n.value = he(n.value, t);
358
+ i.value = ge(i.value, t);
359
359
  }
360
360
  };
361
361
  });
362
- class Pe {
362
+ class Re {
363
363
  /**
364
364
  * Возвращает актуальные и не просроченные данные из хранилища.
365
365
  *
@@ -378,8 +378,8 @@ class Pe {
378
378
  if (e)
379
379
  try {
380
380
  const t = JSON.parse(e);
381
- if (!t.availableFor || Xe(C(t.availableFor) || Ne(), /* @__PURE__ */ new Date())) {
382
- if ($(t.data) || re(t.data))
381
+ if (!t.availableFor || Xe(a(t.availableFor) || Ne(), /* @__PURE__ */ new Date())) {
382
+ if (d(t.data) || te(t.data))
383
383
  throw new Error("Data is empty");
384
384
  return t.data;
385
385
  }
@@ -401,16 +401,16 @@ class Pe {
401
401
  static saveActualDataToStorage(r, e, t) {
402
402
  if (this.isLocalStorageAvailable())
403
403
  try {
404
- if ($(e) || re(e))
404
+ if (d(e) || te(e))
405
405
  throw new Error("Data is empty");
406
- const i = JSON.stringify({
406
+ const n = JSON.stringify({
407
407
  availableFor: t,
408
408
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
409
409
  data: e
410
410
  });
411
- localStorage.setItem(r, i);
412
- } catch (i) {
413
- if (i instanceof DOMException && i.code === DOMException.QUOTA_EXCEEDED_ERR) {
411
+ localStorage.setItem(r, n);
412
+ } catch (n) {
413
+ if (n instanceof DOMException && n.code === DOMException.QUOTA_EXCEEDED_ERR) {
414
414
  this.clearOldData();
415
415
  try {
416
416
  const o = JSON.stringify({
@@ -449,10 +449,10 @@ class Pe {
449
449
  const t = localStorage.key(e);
450
450
  if (t)
451
451
  try {
452
- const i = localStorage.getItem(t);
453
- if (i) {
454
- const o = JSON.parse(i);
455
- o.availableFor && !Xe(C(o.availableFor) || Ne(), /* @__PURE__ */ new Date()) && r.push(t);
452
+ const n = localStorage.getItem(t);
453
+ if (n) {
454
+ const o = JSON.parse(n);
455
+ o.availableFor && !Xe(a(o.availableFor) || Ne(), /* @__PURE__ */ new Date()) && r.push(t);
456
456
  }
457
457
  } catch {
458
458
  r.push(t);
@@ -468,19 +468,19 @@ class Pe {
468
468
  }
469
469
  }
470
470
  }
471
- function Ze(n) {
471
+ function Ze(i) {
472
472
  try {
473
- const r = B.getJwtPayload(n);
473
+ const r = M.getJwtPayload(i);
474
474
  return new Date(r.exp * 1e3);
475
475
  } catch {
476
476
  return;
477
477
  }
478
478
  }
479
479
  const Q = W("common.auth_state_private", () => {
480
- const n = y(
480
+ const i = y(
481
481
  (() => {
482
482
  var u;
483
- const o = Pe.getActualDataFromStorage(
483
+ const o = Re.getActualDataFromStorage(
484
484
  "sc.token"
485
485
  /* JwtToken */
486
486
  );
@@ -489,18 +489,18 @@ const Q = W("common.auth_state_private", () => {
489
489
  const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
- ), r = y(void 0), e = y(void 0), t = Wr(/* @__PURE__ */ new Map());
493
- function i() {
494
- e.value = void 0, $(n.value) || n.value.then((o) => {
495
- const c = B.getJwtPayload(o);
496
- e.value = c.exp * 1e3 > Date.now() ? pr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
492
+ ), r = y(void 0), e = y(void 0), t = Jr(/* @__PURE__ */ new Map());
493
+ function n() {
494
+ e.value = void 0, d(i.value) || i.value.then((o) => {
495
+ const c = M.getJwtPayload(o);
496
+ e.value = c.exp * 1e3 > Date.now() ? hr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(v);
498
498
  }
499
499
  return {
500
500
  /**
501
501
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
502
502
  */
503
- jwtToken: n,
503
+ jwtToken: i,
504
504
  /**
505
505
  * Функция для обновления jwt-ключа доступа к системам.
506
506
  */
@@ -516,15 +516,15 @@ const Q = W("common.auth_state_private", () => {
516
516
  /**
517
517
  * Принудительно пересчитывает права доступа пользователя на основе текущего JWT токена.
518
518
  */
519
- recalculateUserPermissions: i
519
+ recalculateUserPermissions: n
520
520
  };
521
521
  }), ke = W("common.auth_state", () => {
522
- const n = R(() => {
522
+ const i = P(() => {
523
523
  const o = Q();
524
- if ($(o.jwtToken) && !$(o.jwtTokenUpdater)) {
524
+ if (d(o.jwtToken) && !d(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), Pe.saveActualDataToStorage("sc.token", u, Ze(u)), o.recalculateUserPermissions();
527
+ o.jwtToken = Promise.resolve(u), Re.saveActualDataToStorage("sc.token", u, Ze(u)), o.recalculateUserPermissions();
528
528
  }).catch(v);
529
529
  }
530
530
  return o.jwtToken;
@@ -534,31 +534,31 @@ const Q = W("common.auth_state_private", () => {
534
534
  }
535
535
  function e(o) {
536
536
  const c = Q();
537
- c.jwtToken = Promise.resolve(o), Pe.saveActualDataToStorage("sc.token", o, Ze(o)), c.recalculateUserPermissions();
537
+ c.jwtToken = Promise.resolve(o), Re.saveActualDataToStorage("sc.token", o, Ze(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function t() {
540
540
  const o = Q();
541
- o.jwtToken = void 0, o.userPermissions = void 0, Pe.saveActualDataToStorage("sc.token", void 0);
541
+ o.jwtToken = void 0, o.userPermissions = void 0, Re.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
- function i(o) {
543
+ function n(o) {
544
544
  const c = Q();
545
- !$(c.jwtToken) && $(c.userPermissions) && c.jwtToken.then((m) => {
546
- const f = B.getJwtPayload(m);
547
- c.userPermissions = f.exp * 1e3 > Date.now() ? pr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
545
+ !d(c.jwtToken) && d(c.userPermissions) && c.jwtToken.then((f) => {
546
+ const m = M.getJwtPayload(f);
547
+ c.userPermissions = m.exp * 1e3 > Date.now() ? hr(m.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
548
  }).catch(v);
549
549
  const u = H(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
- const p = R(() => {
553
- const m = (f) => {
552
+ const p = P(() => {
553
+ const f = (m) => {
554
554
  var K;
555
- const D = Hr(f, ".");
555
+ const D = Mr(m, ".");
556
556
  if (D.length < 2)
557
557
  return !1;
558
- const [ie, ne] = D, E = (K = Q().userPermissions) == null ? void 0 : K[ie];
559
- return H(E) && E.includes(ne);
558
+ const [oe, ce] = D, E = (K = Q().userPermissions) == null ? void 0 : K[oe];
559
+ return H(E) && E.includes(ce);
560
560
  };
561
- return H(o) ? Fr(o, (f) => m(f)) : m(o);
561
+ return H(o) ? Hr(o, (m) => f(m)) : f(o);
562
562
  });
563
563
  return c.userPermissionsComputedRefs.set(u, p), p;
564
564
  }
@@ -566,7 +566,7 @@ const Q = W("common.auth_state_private", () => {
566
566
  /**
567
567
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
568
568
  */
569
- jwtToken: n,
569
+ jwtToken: i,
570
570
  /**
571
571
  * Устанавливает механизм для обновления jwt-ключа доступа к системам.
572
572
  *
@@ -588,7 +588,7 @@ const Q = W("common.auth_state_private", () => {
588
588
  *
589
589
  * @param name Проверяемое право доступа или их список. Должны быть представлены в виде значения: <РЕСУРС>.<РОЛЬ>.
590
590
  */
591
- hasUserPermission: i
591
+ hasUserPermission: n
592
592
  };
593
593
  });
594
594
  class J {
@@ -607,13 +607,13 @@ class J {
607
607
  * @inheritDoc
608
608
  */
609
609
  s(this, "guid");
610
- this.id = r == null ? void 0 : r.id, $(this.id) && ($(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) ?? "";
610
+ 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) ?? "";
611
611
  }
612
612
  /**
613
613
  * Возвращает признак, что это новая запись.
614
614
  */
615
615
  isNewRec() {
616
- return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : $(this.id);
616
+ return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : d(this.id);
617
617
  }
618
618
  }
619
619
  class S extends J {
@@ -646,7 +646,7 @@ class _ extends S {
646
646
  this.type = e == null ? void 0 : e.type;
647
647
  }
648
648
  }
649
- class lt extends S {
649
+ class ut extends S {
650
650
  /**
651
651
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
652
652
  *
@@ -682,10 +682,10 @@ class lt extends S {
682
682
  * Дата и время удаления.
683
683
  */
684
684
  s(this, "deletedAt");
685
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new _(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
685
+ 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) ? a(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 _(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt;
686
686
  }
687
687
  }
688
- class gr extends S {
688
+ class fr extends S {
689
689
  /**
690
690
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
691
691
  *
@@ -697,10 +697,10 @@ class gr extends S {
697
697
  * Дата и время последнего изменения.
698
698
  */
699
699
  s(this, "updatedAt");
700
- this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
700
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? a(e.updatedAt) : e == null ? void 0 : e.updatedAt;
701
701
  }
702
702
  }
703
- class Z extends gr {
703
+ class Z extends fr {
704
704
  /**
705
705
  * Инициализирует экземпляр класса {@link PriceTemplate}.
706
706
  *
@@ -720,10 +720,10 @@ class Z extends gr {
720
720
  * Данные о пользователе, создавшем шаблон прайс-листа.
721
721
  */
722
722
  s(this, "owner");
723
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new _(e.owner) : void 0;
723
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new _(e.owner) : void 0;
724
724
  }
725
725
  }
726
- var mr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(mr || {});
726
+ var mr = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(mr || {});
727
727
  class w extends S {
728
728
  /**
729
729
  * Инициализирует экземпляр класса {@link Reference}.
@@ -743,7 +743,7 @@ class w extends S {
743
743
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
744
744
  }
745
745
  }
746
- class de extends w {
746
+ class Ae extends w {
747
747
  /**
748
748
  * Возвращает значение справочника коэффициента розничной цены.
749
749
  */
@@ -778,10 +778,10 @@ class Ge {
778
778
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
779
779
  */
780
780
  s(this, "readOnly");
781
- this.coefficient = new de(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
781
+ this.coefficient = new Ae(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
782
782
  }
783
783
  }
784
- class fr {
784
+ class yr {
785
785
  /**
786
786
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
787
787
  *
@@ -799,9 +799,9 @@ class fr {
799
799
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
800
800
  }
801
801
  }
802
- class F extends w {
802
+ class U extends w {
803
803
  }
804
- class we extends w {
804
+ class ve extends w {
805
805
  /**
806
806
  * Инициализирует экземпляр класса {@link Warehouse}.
807
807
  *
@@ -830,10 +830,10 @@ class we extends w {
830
830
  * Координаты склада.
831
831
  */
832
832
  s(this, "coordinates");
833
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new F(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new fr(e == null ? void 0 : e.coordinates);
833
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new U(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new yr(e == null ? void 0 : e.coordinates);
834
834
  }
835
835
  }
836
- class ut {
836
+ class pt {
837
837
  /**
838
838
  * Инициализирует экземпляр класса {@link StockCount}.
839
839
  *
@@ -848,7 +848,7 @@ class ut {
848
848
  * Количество остатков товара на складе.
849
849
  */
850
850
  s(this, "count");
851
- this.warehouse = new we(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
851
+ this.warehouse = new ve(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
852
852
  }
853
853
  }
854
854
  class x extends S {
@@ -905,7 +905,7 @@ class er extends S {
905
905
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
906
906
  }
907
907
  }
908
- class ge extends S {
908
+ class fe extends S {
909
909
  /**
910
910
  * Инициализирует экземпляр класса {@link NamedIdentity}.
911
911
  *
@@ -920,7 +920,7 @@ class ge extends S {
920
920
  this.code = (e == null ? void 0 : e.code) ?? "";
921
921
  }
922
922
  }
923
- class yr extends ge {
923
+ class wr extends fe {
924
924
  /**
925
925
  * Инициализирует экземпляр класса {@link CatalogableItem}.
926
926
  *
@@ -939,7 +939,7 @@ class yr extends ge {
939
939
  this.slug = (e == null ? void 0 : e.slug) ?? "";
940
940
  }
941
941
  }
942
- class pt extends yr {
942
+ class ht extends wr {
943
943
  /**
944
944
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
945
945
  *
@@ -954,7 +954,7 @@ class pt extends yr {
954
954
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
955
955
  }
956
956
  }
957
- class ht {
957
+ class gt {
958
958
  /**
959
959
  * Инициализирует экземпляр класса {@link Image}.
960
960
  *
@@ -977,7 +977,7 @@ class ht {
977
977
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
978
978
  }
979
979
  }
980
- class Ue extends yr {
980
+ class Fe extends wr {
981
981
  /**
982
982
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
983
983
  *
@@ -992,14 +992,14 @@ class Ue extends yr {
992
992
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
993
993
  }
994
994
  }
995
- class I extends pt {
995
+ class I extends ht {
996
996
  /**
997
997
  * Инициализирует экземпляр класса {@link Product}.
998
998
  *
999
999
  * @param data Данные для первоначальной инициализации.
1000
1000
  */
1001
1001
  constructor(e) {
1002
- var i, o, c, u;
1002
+ var n, o, c, u;
1003
1003
  super(e);
1004
1004
  /**
1005
1005
  * Артикул производителя/поставщика.
@@ -1069,9 +1069,9 @@ class I extends pt {
1069
1069
  * Список коэффициентов цен на продукт.
1070
1070
  */
1071
1071
  s(this, "priceCoefficients");
1072
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new er(e.unit) : new er(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = a(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new ut(p))) ?? [], this.type = "product";
1072
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new er(e.unit) : new er(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), 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) ? a(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((p) => new pt(p))) ?? [], this.type = "product";
1073
1073
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1074
- t && (this.category = new Ue({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Ue(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ht(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1074
+ t && (this.category = new Fe({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Fe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new gt(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1075
1075
  }
1076
1076
  /**
1077
1077
  * Возвращает признак, что это измеряемый товар.
@@ -1092,8 +1092,8 @@ class I extends pt {
1092
1092
  return this.retailCostRub ?? this.costRub;
1093
1093
  }
1094
1094
  }
1095
- var ze = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ze || {});
1096
- class M extends I {
1095
+ var ze = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(ze || {});
1096
+ class B extends I {
1097
1097
  /**
1098
1098
  * Инициализирует экземпляр класса {@link ClientProduct}.
1099
1099
  *
@@ -1129,10 +1129,10 @@ class M extends I {
1129
1129
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1130
1130
  */
1131
1131
  s(this, "isFavorite");
1132
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ze.Product, this.discount = e != null && e.discount ? new lt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1132
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ze.Product, this.discount = e != null && e.discount ? new ut(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1133
1133
  }
1134
1134
  }
1135
- class ve extends Ue {
1135
+ class ne extends Fe {
1136
1136
  /**
1137
1137
  * Инициализирует экземпляр класса {@link BaseCategory}.
1138
1138
  *
@@ -1156,10 +1156,10 @@ class ve extends Ue {
1156
1156
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
1157
1157
  */
1158
1158
  s(this, "currencyRates");
1159
- 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(([t, i]) => [Mr(t), i])) : void 0;
1159
+ 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(([t, n]) => [jr(t), n])) : void 0;
1160
1160
  }
1161
1161
  }
1162
- class wr extends J {
1162
+ class vr extends J {
1163
1163
  /**
1164
1164
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1165
1165
  *
@@ -1235,10 +1235,10 @@ class wr extends J {
1235
1235
  * @inheritDoc
1236
1236
  */
1237
1237
  s(this, "replacementId");
1238
- this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ve(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && jr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1238
+ this.product = new B(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ne(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Gr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1239
1239
  }
1240
1240
  }
1241
- let vr = class extends wr {
1241
+ let Cr = class extends vr {
1242
1242
  /**
1243
1243
  * Инициализирует экземпляр класса {@link OrderItem}.
1244
1244
  *
@@ -1285,7 +1285,7 @@ let vr = class extends wr {
1285
1285
  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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new x(e.currency);
1286
1286
  }
1287
1287
  };
1288
- class oe {
1288
+ class le {
1289
1289
  /**
1290
1290
  * Инициализирует экземпляр класса {@link Cart}.
1291
1291
  *
@@ -1304,7 +1304,7 @@ class oe {
1304
1304
  * @inheritDoc
1305
1305
  */
1306
1306
  s(this, "directionsSum");
1307
- this.items = r.items.map((e) => new vr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1307
+ this.items = r.items.map((e) => new Cr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1308
1308
  }
1309
1309
  }
1310
1310
  class We {
@@ -1326,7 +1326,7 @@ class We {
1326
1326
  return new r(e);
1327
1327
  }
1328
1328
  }
1329
- const P = class P {
1329
+ const R = class R {
1330
1330
  /**
1331
1331
  * Инициализирует экземпляр класса {@link HttpRequester}.
1332
1332
  */
@@ -1365,7 +1365,7 @@ const P = class P {
1365
1365
  // eslint-disable-next-line class-methods-use-this
1366
1366
  s(this, "authRequestInterceptor", async (r) => {
1367
1367
  let e;
1368
- return $(ke().jwtToken) || (e = await ke().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1368
+ return d(ke().jwtToken) || (e = await ke().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1369
1369
  });
1370
1370
  /**
1371
1371
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -1373,14 +1373,14 @@ const P = class P {
1373
1373
  * @param request Данные запроса.
1374
1374
  */
1375
1375
  // eslint-disable-next-line class-methods-use-this
1376
- s(this, "userRequestHooksInterceptor", async (r) => P.requestHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
1376
+ s(this, "userRequestHooksInterceptor", async (r) => R.requestHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
1377
1377
  /**
1378
1378
  * Перехватчик запроса для преобразования данных запроса.
1379
1379
  *
1380
1380
  * @param request Данные запроса.
1381
1381
  */
1382
1382
  // eslint-disable-next-line class-methods-use-this
1383
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ye(r.params)), ["put", "patch", "post"].includes(Gr(r.method)) && r.data && (r.data = Ye(r.data))), r));
1383
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ye(r.params)), ["put", "patch", "post"].includes(zr(r.method)) && r.data && (r.data = Ye(r.data))), r));
1384
1384
  /**
1385
1385
  * Перехватчик ошибок ответов на запрос.
1386
1386
  *
@@ -1400,7 +1400,7 @@ const P = class P {
1400
1400
  s(this, "canceledResponseInterceptor", (r) => {
1401
1401
  const e = r.rawError ?? r;
1402
1402
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1403
- throw new tt("Request canceled");
1403
+ throw new st("Request canceled");
1404
1404
  return Promise.reject(r);
1405
1405
  });
1406
1406
  /**
@@ -1409,7 +1409,7 @@ const P = class P {
1409
1409
  * @param response Данные ответа на запрос.
1410
1410
  */
1411
1411
  // eslint-disable-next-line class-methods-use-this
1412
- s(this, "userResponseHooksInterceptor", async (r) => P.responseHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
1412
+ s(this, "userResponseHooksInterceptor", async (r) => R.responseHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
1413
1413
  /**
1414
1414
  * Перехватчик ответа для преобразования данных ответа на запрос.
1415
1415
  *
@@ -1417,7 +1417,7 @@ const P = class P {
1417
1417
  */
1418
1418
  // eslint-disable-next-line class-methods-use-this
1419
1419
  s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = je(r.data)), r));
1420
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = rt.create({
1420
+ this.errorResponseHandler = R.defaultErrorsResponseHandler, this.httpClient = tt.create({
1421
1421
  headers: {
1422
1422
  Accept: "application/json",
1423
1423
  "Content-Type": "application/json"
@@ -1427,7 +1427,7 @@ const P = class P {
1427
1427
  (r) => Promise.reject(r)
1428
1428
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1429
1429
  (r) => r,
1430
- (r) => P.convertHttpErrorResponse(r)
1430
+ (r) => R.convertHttpErrorResponse(r)
1431
1431
  ), this.interceptorIds.response.canceledResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.canceledResponseInterceptor), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1432
1432
  this.dataConverterResponseInterceptor,
1433
1433
  (r) => Promise.reject(r)
@@ -1439,7 +1439,7 @@ const P = class P {
1439
1439
  * @param handler Ссылка на функцию-обработчик ошибок.
1440
1440
  */
1441
1441
  static setDefaultErrorsResponseHandler(r) {
1442
- P.defaultErrorsResponseHandler = r;
1442
+ R.defaultErrorsResponseHandler = r;
1443
1443
  }
1444
1444
  /**
1445
1445
  * Регистрирует хук, который будет вызываться перед выполнением каждого HTTP запроса.
@@ -1447,7 +1447,7 @@ const P = class P {
1447
1447
  * @param hook Функция-хук для обработки запроса.
1448
1448
  */
1449
1449
  static addRequestHook(r) {
1450
- P.requestHooks.includes(r) || P.requestHooks.push(r);
1450
+ R.requestHooks.includes(r) || R.requestHooks.push(r);
1451
1451
  }
1452
1452
  /**
1453
1453
  * Удаляет зарегистрированный хук запроса.
@@ -1455,8 +1455,8 @@ const P = class P {
1455
1455
  * @param hook Функция-хук для удаления.
1456
1456
  */
1457
1457
  static removeRequestHook(r) {
1458
- const e = P.requestHooks.indexOf(r);
1459
- e !== -1 && P.requestHooks.splice(e, 1);
1458
+ const e = R.requestHooks.indexOf(r);
1459
+ e !== -1 && R.requestHooks.splice(e, 1);
1460
1460
  }
1461
1461
  /**
1462
1462
  * Регистрирует хук, который будет вызываться после получения ответа на каждый HTTP запрос.
@@ -1464,7 +1464,7 @@ const P = class P {
1464
1464
  * @param hook Функция-хук для обработки ответа.
1465
1465
  */
1466
1466
  static addResponseHook(r) {
1467
- P.responseHooks.includes(r) || P.responseHooks.push(r);
1467
+ R.responseHooks.includes(r) || R.responseHooks.push(r);
1468
1468
  }
1469
1469
  /**
1470
1470
  * Удаляет зарегистрированный хук ответа.
@@ -1472,8 +1472,8 @@ const P = class P {
1472
1472
  * @param hook Функция-хук для удаления.
1473
1473
  */
1474
1474
  static removeResponseHook(r) {
1475
- const e = P.responseHooks.indexOf(r);
1476
- e !== -1 && P.responseHooks.splice(e, 1);
1475
+ const e = R.responseHooks.indexOf(r);
1476
+ e !== -1 && R.responseHooks.splice(e, 1);
1477
1477
  }
1478
1478
  /**
1479
1479
  * Возвращает экземпляр объекта текущего класса.
@@ -1481,7 +1481,7 @@ const P = class P {
1481
1481
  * @param type Тип данных, которыми оперирует метод.
1482
1482
  */
1483
1483
  static getInstance(r) {
1484
- return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = We.simpleInstanceInitializer(r)), P.instances[r.name];
1484
+ return Object.prototype.hasOwnProperty.call(R.instances, r.name) || (R.instances[r.name] = We.simpleInstanceInitializer(r)), R.instances[r.name];
1485
1485
  }
1486
1486
  /**
1487
1487
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1490,15 +1490,15 @@ const P = class P {
1490
1490
  */
1491
1491
  static convertHttpErrorResponse(r) {
1492
1492
  var e, t;
1493
- if ($(r) || !$(r.request) || !$(r.response)) {
1494
- const i = $(r) ? {} : r == null ? void 0 : r.response;
1493
+ if (d(r) || !d(r.request) || !d(r.response)) {
1494
+ const n = d(r) ? {} : r == null ? void 0 : r.response;
1495
1495
  return Promise.reject({
1496
- status: (i == null ? void 0 : i.status) ?? 0,
1497
- statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
1498
- message: ((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error.",
1499
- errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
1500
- headers: (i == null ? void 0 : i.headers) ?? {},
1501
- data: i == null ? void 0 : i.data,
1496
+ status: (n == null ? void 0 : n.status) ?? 0,
1497
+ statusText: (n == null ? void 0 : n.statusText) ?? "Unknown",
1498
+ message: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error.",
1499
+ errors: (t = n == null ? void 0 : n.data) == null ? void 0 : t.errors,
1500
+ headers: (n == null ? void 0 : n.headers) ?? {},
1501
+ data: n == null ? void 0 : n.data,
1502
1502
  rawError: r
1503
1503
  });
1504
1504
  }
@@ -1512,10 +1512,10 @@ const P = class P {
1512
1512
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1513
1513
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1514
1514
  */
1515
- request(r, e = void 0, t = {}, i = !1) {
1515
+ request(r, e = void 0, t = {}, n = !1) {
1516
1516
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1517
1517
  return o.catch((c) => {
1518
- (c == null ? void 0 : c.name) !== "CanceledError" && this.errorResponseHandler(c, t, i);
1518
+ (c == null ? void 0 : c.name) !== "CanceledError" && this.errorResponseHandler(c, t, n);
1519
1519
  }), o;
1520
1520
  }
1521
1521
  /**
@@ -1527,8 +1527,8 @@ const P = class P {
1527
1527
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1528
1528
  * @param signal Сигнал отмены запроса.
1529
1529
  */
1530
- get(r, e = {}, t = void 0, i = !1, o = void 0) {
1531
- return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, i);
1530
+ get(r, e = {}, t = void 0, n = !1, o = void 0) {
1531
+ return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, n);
1532
1532
  }
1533
1533
  /**
1534
1534
  * Выполняет get-запрос с параметрами по умолчанию и возвращает Blob.
@@ -1538,8 +1538,8 @@ const P = class P {
1538
1538
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1539
1539
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1540
1540
  */
1541
- getBlob(r, e = {}, t = void 0, i = !1) {
1542
- return this.request({ method: "GET", url: r, params: e, responseType: "blob" }, t, {}, i);
1541
+ getBlob(r, e = {}, t = void 0, n = !1) {
1542
+ return this.request({ method: "GET", url: r, params: e, responseType: "blob" }, t, {}, n);
1543
1543
  }
1544
1544
  /**
1545
1545
  * Выполняет patch-запрос с параметрами по умолчанию.
@@ -1550,8 +1550,8 @@ const P = class P {
1550
1550
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1551
1551
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1552
1552
  */
1553
- patch(r, e = {}, t = void 0, i = {}, o = !1) {
1554
- return this.request({ method: "PATCH", url: r, data: e }, t, i, o);
1553
+ patch(r, e = {}, t = void 0, n = {}, o = !1) {
1554
+ return this.request({ method: "PATCH", url: r, data: e }, t, n, o);
1555
1555
  }
1556
1556
  /**
1557
1557
  * Выполняет post-запрос с параметрами по умолчанию.
@@ -1562,8 +1562,8 @@ const P = class P {
1562
1562
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1563
1563
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1564
1564
  */
1565
- post(r, e = {}, t = void 0, i = {}, o = !1) {
1566
- return this.request({ method: "POST", url: r, data: e }, t, i, o);
1565
+ post(r, e = {}, t = void 0, n = {}, o = !1) {
1566
+ return this.request({ method: "POST", url: r, data: e }, t, n, o);
1567
1567
  }
1568
1568
  /**
1569
1569
  * Выполняет delete-запрос с параметрами по умолчанию.
@@ -1580,22 +1580,22 @@ const P = class P {
1580
1580
  * Экземпляр объекта текущего класса.
1581
1581
  */
1582
1582
  // eslint-disable-next-line no-use-before-define
1583
- s(P, "instances", {}), /**
1583
+ s(R, "instances", {}), /**
1584
1584
  * Базовый обработчик ошибок выполнения запросов.
1585
1585
  *
1586
1586
  * @param error Данные об ошибке.
1587
1587
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1588
1588
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1589
1589
  */
1590
- s(P, "defaultErrorsResponseHandler", v), /**
1590
+ s(R, "defaultErrorsResponseHandler", v), /**
1591
1591
  * Список зарегистрированных хуков для запросов.
1592
1592
  */
1593
- s(P, "requestHooks", []), /**
1593
+ s(R, "requestHooks", []), /**
1594
1594
  * Список зарегистрированных хуков для ответов.
1595
1595
  */
1596
- s(P, "responseHooks", []);
1597
- let h = P;
1598
- class Qt extends h {
1596
+ s(R, "responseHooks", []);
1597
+ let h = R;
1598
+ class Zt extends h {
1599
1599
  /**
1600
1600
  * Возвращает содержимое корзины указанного клиента.
1601
1601
  *
@@ -1604,7 +1604,7 @@ class Qt extends h {
1604
1604
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1605
1605
  */
1606
1606
  getCart(r) {
1607
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new oe(e.data));
1607
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new le(e.data));
1608
1608
  }
1609
1609
  /**
1610
1610
  * Удаляет всё содержимое корзины.
@@ -1642,7 +1642,7 @@ class Qt extends h {
1642
1642
  is_additional_sale: e.isAdditionalSale,
1643
1643
  ...e.configuratorParams
1644
1644
  },
1645
- (i) => new oe(i.data),
1645
+ (n) => new le(n.data),
1646
1646
  t
1647
1647
  );
1648
1648
  }
@@ -1672,7 +1672,7 @@ class Qt extends h {
1672
1672
  is_additional_sale: e.isAdditionalSale,
1673
1673
  ...e.configuratorParams
1674
1674
  },
1675
- (i) => new oe(i.data),
1675
+ (n) => new le(n.data),
1676
1676
  t
1677
1677
  );
1678
1678
  }
@@ -1685,7 +1685,7 @@ class Qt extends h {
1685
1685
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_delete_item
1686
1686
  */
1687
1687
  deleteCartItem(r, e) {
1688
- return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new oe(t.data));
1688
+ return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new le(t.data));
1689
1689
  }
1690
1690
  /**
1691
1691
  * Добавляет продукты в корзину из файла CSV.
@@ -1696,7 +1696,7 @@ class Qt extends h {
1696
1696
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1697
1697
  */
1698
1698
  addCartItemFromCSV(r, e) {
1699
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new oe(t.data));
1699
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new le(t.data));
1700
1700
  }
1701
1701
  /**
1702
1702
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1709,15 +1709,15 @@ class Qt extends h {
1709
1709
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1710
1710
  }
1711
1711
  }
1712
- var gt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(gt || {}), mt = /* @__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))(mt || {});
1713
- class N extends ve {
1712
+ var ft = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(ft || {}), mt = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))(mt || {}), yt = /* @__PURE__ */ ((i) => (i.Checkbox = "checkbox", i.Range = "range", i.Toggle = "toggle", i))(yt || {});
1713
+ class N extends ne {
1714
1714
  /**
1715
1715
  * Инициализирует экземпляр класса {@link Category}.
1716
1716
  *
1717
1717
  * @param data Данные для первоначальной инициализации.
1718
1718
  */
1719
1719
  constructor(e) {
1720
- var t, i;
1720
+ var t, n;
1721
1721
  super(e);
1722
1722
  /**
1723
1723
  * Данные о вложенных категориях.
@@ -1727,7 +1727,7 @@ class N extends ve {
1727
1727
  * Список продуктов категории.
1728
1728
  */
1729
1729
  s(this, "products");
1730
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new N(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1730
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new N(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new I(o));
1731
1731
  }
1732
1732
  }
1733
1733
  class ar {
@@ -1783,7 +1783,7 @@ class Je extends S {
1783
1783
  }
1784
1784
  class Ve extends w {
1785
1785
  }
1786
- class Cr extends S {
1786
+ class Rr extends S {
1787
1787
  /**
1788
1788
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1789
1789
  *
@@ -1806,7 +1806,7 @@ class Cr extends S {
1806
1806
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1807
1807
  }
1808
1808
  }
1809
- class ae extends Je {
1809
+ class Ce extends Je {
1810
1810
  /**
1811
1811
  * Инициализирует экземпляр класса {@link Manager}.
1812
1812
  *
@@ -1843,10 +1843,10 @@ class ae extends Je {
1843
1843
  * Список направлений кураторства.
1844
1844
  */
1845
1845
  s(this, "curatedDirections");
1846
- 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 Cr(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new Ve(i))) ?? [];
1846
+ 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 Rr(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((n) => new Ve(n))) ?? [];
1847
1847
  }
1848
1848
  }
1849
- class ft extends ve {
1849
+ class wt extends ne {
1850
1850
  /**
1851
1851
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1852
1852
  *
@@ -1874,17 +1874,17 @@ class ft extends ve {
1874
1874
  * Данные о менеджере за которым закреплена категория.
1875
1875
  */
1876
1876
  s(this, "manager");
1877
- 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;
1877
+ 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 Ce(e.manager) : void 0;
1878
1878
  }
1879
1879
  }
1880
- class Re extends ft {
1880
+ class Pe extends wt {
1881
1881
  /**
1882
1882
  * Инициализирует экземпляр класса {@link ClientCategory}.
1883
1883
  *
1884
1884
  * @param data Данные для первоначальной инициализации.
1885
1885
  */
1886
1886
  constructor(e) {
1887
- var t, i;
1887
+ var t, n;
1888
1888
  super(e);
1889
1889
  /**
1890
1890
  * Данные о вложенных категориях.
@@ -1894,7 +1894,7 @@ class Re extends ft {
1894
1894
  * Список продуктов категории.
1895
1895
  */
1896
1896
  s(this, "products");
1897
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Re(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new M(o));
1897
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Pe(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new B(o));
1898
1898
  }
1899
1899
  }
1900
1900
  class Pr {
@@ -1912,7 +1912,7 @@ class Pr {
1912
1912
  * Процент, который прибавляется к значению выбранного коэффициента.
1913
1913
  */
1914
1914
  s(this, "increasePercent");
1915
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new de(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1915
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ae(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1916
1916
  }
1917
1917
  }
1918
1918
  class Le extends Pr {
@@ -1927,7 +1927,7 @@ class Le extends Pr {
1927
1927
  * Базовые данные о продукте.
1928
1928
  */
1929
1929
  s(this, "productCategory");
1930
- this.productCategory = new ve(e == null ? void 0 : e.productCategory);
1930
+ this.productCategory = new ne(e == null ? void 0 : e.productCategory);
1931
1931
  }
1932
1932
  }
1933
1933
  class Ee extends S {
@@ -1953,7 +1953,7 @@ class Ee extends S {
1953
1953
  this.photo = e.photo, this.contacts = new ar(e.contacts), this.curatedDirection = new Ve(e.curatedDirection);
1954
1954
  }
1955
1955
  }
1956
- class te extends w {
1956
+ class se extends w {
1957
1957
  }
1958
1958
  class me extends w {
1959
1959
  /**
@@ -1966,11 +1966,11 @@ class me extends w {
1966
1966
  /**
1967
1967
  * Данные о стране, в которой расположен регион.
1968
1968
  */
1969
- s(this, "country", new te());
1970
- e && (this.country = new te(e.country));
1969
+ s(this, "country", new se());
1970
+ e && (this.country = new se(e.country));
1971
1971
  }
1972
1972
  }
1973
- class Ae extends w {
1973
+ class $e extends w {
1974
1974
  /**
1975
1975
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1976
1976
  *
@@ -1985,7 +1985,7 @@ class Ae extends w {
1985
1985
  e && (this.region = new me(e.region));
1986
1986
  }
1987
1987
  }
1988
- class Rr extends S {
1988
+ class Dr extends S {
1989
1989
  /**
1990
1990
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1991
1991
  *
@@ -2021,10 +2021,10 @@ class Rr extends S {
2021
2021
  * Признак активности учетной записи пользователя.
2022
2022
  */
2023
2023
  s(this, "isActive");
2024
- 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 q(e.salesDirection) : void 0, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2024
+ 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 q(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? a(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2025
2025
  }
2026
2026
  }
2027
- class V extends Rr {
2027
+ class V extends Dr {
2028
2028
  /**
2029
2029
  * Инициализирует экземпляр класса {@link Client}.
2030
2030
  *
@@ -2032,7 +2032,7 @@ class V extends Rr {
2032
2032
  */
2033
2033
  // eslint-disable-next-line sonarjs/cognitive-complexity
2034
2034
  constructor(e) {
2035
- var t, i;
2035
+ var t, n;
2036
2036
  super(e);
2037
2037
  /**
2038
2038
  * Направление продаж.
@@ -2070,10 +2070,10 @@ class V extends Rr {
2070
2070
  * @inheritDoc
2071
2071
  */
2072
2072
  s(this, "curators");
2073
- this.salesDirection = new q(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 Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Je(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Ee(o))) ?? void 0;
2073
+ this.salesDirection = new q(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 $e(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Je(o))) ?? [], this.curators = ((n = e == null ? void 0 : e.curators) == null ? void 0 : n.map((o) => new Ee(o))) ?? void 0;
2074
2074
  }
2075
2075
  }
2076
- class ce extends J {
2076
+ class ue extends J {
2077
2077
  /**
2078
2078
  * Инициализирует новый экземпляр класса.
2079
2079
  *
@@ -2097,7 +2097,7 @@ class ce extends J {
2097
2097
  * Данные шаблона прайс-листа.
2098
2098
  */
2099
2099
  s(this, "priceTemplate");
2100
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new V(e == null ? void 0 : e.client), this.priceTemplate = new Z(e == null ? void 0 : e.priceTemplate);
2100
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new V(e == null ? void 0 : e.client), this.priceTemplate = new Z(e == null ? void 0 : e.priceTemplate);
2101
2101
  }
2102
2102
  }
2103
2103
  class _e extends Pr {
@@ -2115,9 +2115,9 @@ class _e extends Pr {
2115
2115
  this.product = new I(e == null ? void 0 : e.product);
2116
2116
  }
2117
2117
  }
2118
- class Dr extends w {
2118
+ class Ar extends w {
2119
2119
  }
2120
- class le extends S {
2120
+ class ee extends S {
2121
2121
  /**
2122
2122
  * Инициализирует экземпляр класса {@link Property}.
2123
2123
  *
@@ -2137,7 +2137,11 @@ class le extends S {
2137
2137
  * Дополнительные метаданные свойства.
2138
2138
  */
2139
2139
  s(this, "metadata");
2140
- this.type = new Dr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2140
+ /**
2141
+ * Признак того, что по свойству может производиться фильтрация в каталоге.
2142
+ */
2143
+ s(this, "isFilterable");
2144
+ this.type = new Ar(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2141
2145
  }
2142
2146
  }
2143
2147
  class Y {
@@ -2156,10 +2160,10 @@ class Y {
2156
2160
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2157
2161
  */
2158
2162
  s(this, "value");
2159
- this.property = new le(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2163
+ this.property = new ee(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2160
2164
  }
2161
2165
  }
2162
- class A {
2166
+ class $ {
2163
2167
  /**
2164
2168
  * Инициализирует экземпляр класса {@link DatePeriod}.
2165
2169
  *
@@ -2174,10 +2178,10 @@ class A {
2174
2178
  * Окончание периода.
2175
2179
  */
2176
2180
  s(this, "to");
2177
- this.from = a(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = a(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
2181
+ this.from = C(r == null ? void 0 : r.from) ? a(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? a(r.to) : (r == null ? void 0 : r.to) ?? null;
2178
2182
  }
2179
2183
  }
2180
- class Yt {
2184
+ class es {
2181
2185
  /**
2182
2186
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2183
2187
  *
@@ -2203,12 +2207,12 @@ class Yt {
2203
2207
  /**
2204
2208
  * Период создания.
2205
2209
  */
2206
- s(this, "createdAt", new A());
2210
+ s(this, "createdAt", new $());
2207
2211
  /**
2208
2212
  * Период изменения.
2209
2213
  */
2210
- s(this, "updatedAt", new A());
2211
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new A(r == null ? void 0 : r.createdAt), this.updatedAt = new A(r == null ? void 0 : r.updatedAt);
2214
+ s(this, "updatedAt", new $());
2215
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new $(r == null ? void 0 : r.createdAt), this.updatedAt = new $(r == null ? void 0 : r.updatedAt);
2212
2216
  }
2213
2217
  /**
2214
2218
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2237,16 +2241,16 @@ class Yt {
2237
2241
  * только актуальные данные.
2238
2242
  */
2239
2243
  asClearRaw() {
2240
- var e, t, i, o;
2244
+ var e, t, n, o;
2241
2245
  const r = {};
2242
2246
  return Object.keys(this).forEach((c) => {
2243
2247
  const u = this[c];
2244
2248
  // eslint-disable-next-line prettier/prettier
2245
- $(u) || a(u) && u.trim().length === 0 || Be(u.isNewRec) && u.isNewRec() || (r[c] = u);
2246
- }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2249
+ d(u) || C(u) && u.trim().length === 0 || Me(u.isNewRec) && u.isNewRec() || (r[c] = u);
2250
+ }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2247
2251
  }
2248
2252
  }
2249
- class ue extends S {
2253
+ class pe extends S {
2250
2254
  /**
2251
2255
  * Инициализирует экземпляр класса {@link PricingRole}.
2252
2256
  *
@@ -2300,10 +2304,65 @@ class rr {
2300
2304
  * Минимальный коэффициент цены.
2301
2305
  */
2302
2306
  s(this, "minCoefficient");
2303
- this.role = new ue(r == null ? void 0 : r.role), this.category = new ve(r == null ? void 0 : r.category), this.minCoefficient = new de(r == null ? void 0 : r.minCoefficient);
2307
+ this.role = new pe(r == null ? void 0 : r.role), this.category = new ne(r == null ? void 0 : r.category), this.minCoefficient = new Ae(r == null ? void 0 : r.minCoefficient);
2308
+ }
2309
+ }
2310
+ class vt {
2311
+ /**
2312
+ * Инициализирует экземпляр класса {@link FilterSettings}.
2313
+ *
2314
+ * Значения по умолчанию заданы намеренно: API не возвращает поля, значения которых совпадают
2315
+ * с настройками по умолчанию, поэтому отсутствующее поле означает значение по умолчанию.
2316
+ *
2317
+ * @param data Данные для первоначальной инициализации.
2318
+ */
2319
+ constructor(r) {
2320
+ /**
2321
+ * @inheritDoc
2322
+ */
2323
+ s(this, "isFake");
2324
+ /**
2325
+ * @inheritDoc
2326
+ */
2327
+ s(this, "isHidden");
2328
+ /**
2329
+ * @inheritDoc
2330
+ */
2331
+ s(this, "isMultiple");
2332
+ /**
2333
+ * @inheritDoc
2334
+ */
2335
+ s(this, "type");
2336
+ /**
2337
+ * @inheritDoc
2338
+ */
2339
+ s(this, "ord");
2340
+ this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
2304
2341
  }
2305
2342
  }
2306
- class Xt extends h {
2343
+ class tr {
2344
+ /**
2345
+ * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2346
+ *
2347
+ * @param data Данные для первоначальной инициализации.
2348
+ */
2349
+ constructor(r) {
2350
+ /**
2351
+ * @inheritDoc
2352
+ */
2353
+ s(this, "category");
2354
+ /**
2355
+ * @inheritDoc
2356
+ */
2357
+ s(this, "property");
2358
+ /**
2359
+ * @inheritDoc
2360
+ */
2361
+ s(this, "settings");
2362
+ this.category = new ne(r == null ? void 0 : r.category), this.property = new ee(r == null ? void 0 : r.property), this.settings = new vt(r == null ? void 0 : r.settings);
2363
+ }
2364
+ }
2365
+ class rs extends h {
2307
2366
  /**
2308
2367
  * Возвращает данные о результатах поиска категорий и товаров.
2309
2368
  *
@@ -2329,12 +2388,12 @@ class Xt extends h {
2329
2388
  * @see /doc/api/internal#/operations/api_internal_price_export
2330
2389
  */
2331
2390
  // eslint-disable-next-line class-methods-use-this
2332
- getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
2391
+ getPriceExportLink(r = "csv", e = !1, t = void 0, n = void 0) {
2333
2392
  let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2334
- return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
2393
+ return t && (c += `&category_id=${t}`), n && (c += `&client_id=${n}`), c;
2335
2394
  }
2336
2395
  }
2337
- class Zt extends h {
2396
+ class ts extends h {
2338
2397
  /**
2339
2398
  * Импортирует цены клиента из CSV файла.
2340
2399
  *
@@ -2356,9 +2415,9 @@ class Zt extends h {
2356
2415
  * @see /doc/api/internal#/operations/api_internal_client_price_category_update
2357
2416
  */
2358
2417
  updateCategoryPrices(r, e, t) {
2359
- var i;
2418
+ var n;
2360
2419
  return this.patch(`/internal/clients/${r}/price/categories/${e}`, {
2361
- price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
2420
+ price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
2362
2421
  increase_percent: t.value
2363
2422
  });
2364
2423
  }
@@ -2451,14 +2510,14 @@ class Zt extends h {
2451
2510
  * @see /doc/api/internal#/operations/api_internal_client_price_products_update
2452
2511
  */
2453
2512
  updateProductPrice(r, e, t) {
2454
- var i;
2513
+ var n;
2455
2514
  return this.patch(
2456
2515
  `/internal/clients/${r}/price/products/${e}`,
2457
2516
  {
2458
- price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
2517
+ price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
2459
2518
  increase_percent: t.value
2460
2519
  },
2461
- (o) => new M(o.data)
2520
+ (o) => new B(o.data)
2462
2521
  );
2463
2522
  }
2464
2523
  /**
@@ -2470,7 +2529,7 @@ class Zt extends h {
2470
2529
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2471
2530
  */
2472
2531
  removeProductPrice(r, e) {
2473
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new M(t.data));
2532
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new B(t.data));
2474
2533
  }
2475
2534
  /**
2476
2535
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2533,7 +2592,7 @@ class Zt extends h {
2533
2592
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2534
2593
  }
2535
2594
  }
2536
- class es extends h {
2595
+ class ss extends h {
2537
2596
  /**
2538
2597
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2539
2598
  *
@@ -2545,7 +2604,7 @@ class es extends h {
2545
2604
  return this.get(
2546
2605
  `/internal/clients/${r}/price/templates`,
2547
2606
  {},
2548
- (e) => e.data.map((t) => new ce(t))
2607
+ (e) => e.data.map((t) => new ue(t))
2549
2608
  );
2550
2609
  }
2551
2610
  /**
@@ -2556,7 +2615,7 @@ class es extends h {
2556
2615
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2557
2616
  */
2558
2617
  getActiveTemplate(r) {
2559
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ce(e.data), !0);
2618
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ue(e.data), !0);
2560
2619
  }
2561
2620
  /**
2562
2621
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2568,14 +2627,14 @@ class es extends h {
2568
2627
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2569
2628
  */
2570
2629
  attachTemplate(r, e, t) {
2571
- const i = k().config.dateFormats.api;
2630
+ const n = k().config.dateFormats.api;
2572
2631
  return this.post(
2573
2632
  `/internal/clients/${r}/price/templates/${e}`,
2574
2633
  t && {
2575
- startAt: t.startAt && L(t.startAt, i),
2576
- endAt: t.endAt && L(t.endAt, i)
2634
+ startAt: t.startAt && L(t.startAt, n),
2635
+ endAt: t.endAt && L(t.endAt, n)
2577
2636
  },
2578
- (o) => new ce(o.data),
2637
+ (o) => new ue(o.data),
2579
2638
  {},
2580
2639
  !0
2581
2640
  );
@@ -2601,15 +2660,15 @@ class es extends h {
2601
2660
  *
2602
2661
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2603
2662
  */
2604
- changeTemplate(r, e, t, i) {
2663
+ changeTemplate(r, e, t, n) {
2605
2664
  const o = k().config.dateFormats.api;
2606
2665
  return this.patch(
2607
2666
  `/internal/clients/${r}/price/templates/${e}/${t}`,
2608
- i && {
2609
- startAt: i.startAt && L(i.startAt, o),
2610
- endAt: i.endAt && L(i.endAt, o)
2667
+ n && {
2668
+ startAt: n.startAt && L(n.startAt, o),
2669
+ endAt: n.endAt && L(n.endAt, o)
2611
2670
  },
2612
- (c) => new ce(c.data)
2671
+ (c) => new ue(c.data)
2613
2672
  );
2614
2673
  }
2615
2674
  /**
@@ -2625,7 +2684,7 @@ class es extends h {
2625
2684
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
2626
2685
  }
2627
2686
  }
2628
- class rs extends h {
2687
+ class is extends h {
2629
2688
  /**
2630
2689
  * Возвращает список данных о корневых категориях.
2631
2690
  *
@@ -2658,7 +2717,7 @@ class rs extends h {
2658
2717
  showHidden: e,
2659
2718
  withNestedCategories: t
2660
2719
  },
2661
- (i) => new N(i.data)
2720
+ (n) => new N(n.data)
2662
2721
  );
2663
2722
  }
2664
2723
  /**
@@ -2685,7 +2744,7 @@ class rs extends h {
2685
2744
  showHidden: t,
2686
2745
  withPriceCoefficients: e
2687
2746
  },
2688
- (i) => ye(i.data, (o) => new I(o))
2747
+ (n) => we(n.data, (o) => new I(o))
2689
2748
  );
2690
2749
  }
2691
2750
  /**
@@ -2698,7 +2757,7 @@ class rs extends h {
2698
2757
  getCategoryProductsCoefficients(r) {
2699
2758
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2700
2759
  const { data: t } = e;
2701
- return zr(t, (i) => i.map((o) => new Ge(o))), t;
2760
+ return Wr(t, (n) => n.map((o) => new Ge(o))), t;
2702
2761
  });
2703
2762
  }
2704
2763
  /**
@@ -2708,16 +2767,16 @@ class rs extends h {
2708
2767
  * @param limit Количество возвращаемых записей.
2709
2768
  */
2710
2769
  publicSimpleSearch(r, e = 10) {
2711
- return new Promise((t, i) => {
2770
+ return new Promise((t, n) => {
2712
2771
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2713
2772
  t(o.categories.map((c) => new N(c)));
2714
2773
  }).catch((o) => {
2715
- i(o);
2774
+ n(o);
2716
2775
  });
2717
2776
  });
2718
2777
  }
2719
2778
  }
2720
- class ts extends h {
2779
+ class ns extends h {
2721
2780
  /**
2722
2781
  * Возвращает данные об указанном продукте.
2723
2782
  *
@@ -2748,7 +2807,7 @@ class ts extends h {
2748
2807
  return this.get(
2749
2808
  `/internal/catalog/products/${r}/coefficients`,
2750
2809
  {},
2751
- (e) => ye(e.data, (t) => new Ge(t))
2810
+ (e) => we(e.data, (t) => new Ge(t))
2752
2811
  );
2753
2812
  }
2754
2813
  /**
@@ -2758,16 +2817,16 @@ class ts extends h {
2758
2817
  * @param limit Количество возвращаемых записей.
2759
2818
  */
2760
2819
  publicSimpleSearch(r, e = 10) {
2761
- return new Promise((t, i) => {
2820
+ return new Promise((t, n) => {
2762
2821
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2763
2822
  t(o.products.map((c) => new I(c)));
2764
2823
  }).catch((o) => {
2765
- i(o);
2824
+ n(o);
2766
2825
  });
2767
2826
  });
2768
2827
  }
2769
2828
  }
2770
- class ss extends h {
2829
+ class os extends h {
2771
2830
  /**
2772
2831
  * Возвращает список данных о корневых категориях указанного клиента.
2773
2832
  *
@@ -2783,7 +2842,7 @@ class ss extends h {
2783
2842
  clientId: r,
2784
2843
  showHidden: e
2785
2844
  },
2786
- (t) => t.data.map((i) => new Re(i))
2845
+ (t) => t.data.map((n) => new Pe(n))
2787
2846
  );
2788
2847
  }
2789
2848
  /**
@@ -2796,15 +2855,15 @@ class ss extends h {
2796
2855
  *
2797
2856
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
2798
2857
  */
2799
- getCategoryData(r, e, t = !1, i = !1) {
2858
+ getCategoryData(r, e, t = !1, n = !1) {
2800
2859
  return this.get(
2801
2860
  `/internal/catalog/categories/${e}`,
2802
2861
  {
2803
2862
  clientId: r,
2804
2863
  showHidden: t,
2805
- withNestedCategories: i
2864
+ withNestedCategories: n
2806
2865
  },
2807
- (o) => new Re(o.data)
2866
+ (o) => new Pe(o.data)
2808
2867
  );
2809
2868
  }
2810
2869
  /**
@@ -2817,19 +2876,19 @@ class ss extends h {
2817
2876
  *
2818
2877
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
2819
2878
  */
2820
- getCategoryProductsList(r, e, t = !0, i = !1) {
2879
+ getCategoryProductsList(r, e, t = !0, n = !1) {
2821
2880
  return this.get(
2822
2881
  `/internal/catalog/categories/${e}/products`,
2823
2882
  {
2824
2883
  client_id: r,
2825
- showHidden: i,
2884
+ showHidden: n,
2826
2885
  withPriceCoefficients: t
2827
2886
  },
2828
- (o) => ye(o.data, (c) => new M(c))
2887
+ (o) => we(o.data, (c) => new B(c))
2829
2888
  );
2830
2889
  }
2831
2890
  }
2832
- class is extends h {
2891
+ class cs extends h {
2833
2892
  /**
2834
2893
  * Возвращает данные об указанном продукте для указанного клиента.
2835
2894
  *
@@ -2846,12 +2905,12 @@ class is extends h {
2846
2905
  clientId: e,
2847
2906
  withPriceCoefficients: t
2848
2907
  },
2849
- (i) => new M(i.data)
2908
+ (n) => new B(n.data)
2850
2909
  );
2851
2910
  }
2852
2911
  }
2853
- var Ke = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Ke || {});
2854
- class tr {
2912
+ var Ke = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Ke || {});
2913
+ class sr {
2855
2914
  /**
2856
2915
  * Инициализирует экземпляр класса {@link FilterItem}.
2857
2916
  *
@@ -2882,7 +2941,7 @@ class tr {
2882
2941
  field: this.field,
2883
2942
  op: this.op
2884
2943
  };
2885
- return qe(this.value) ? e.value = L(this.value, r) : Me(this.value) ? e.value = {
2944
+ return qe(this.value) ? e.value = L(this.value, r) : Be(this.value) ? e.value = {
2886
2945
  from: this.value.from ? L(this.value.from, r) : null,
2887
2946
  to: this.value.to ? L(this.value.to, r) : null
2888
2947
  } : e.value = this.value, e;
@@ -2908,7 +2967,7 @@ class j {
2908
2967
  */
2909
2968
  s(this, "groups");
2910
2969
  var e, t;
2911
- 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 tr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new j(i))) ?? [];
2970
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new sr(n))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((n) => new j(n))) ?? [];
2912
2971
  }
2913
2972
  /**
2914
2973
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2918,12 +2977,12 @@ class j {
2918
2977
  toPrimitive() {
2919
2978
  return {
2920
2979
  groupOp: this.groupOp,
2921
- filters: this.filters.map((r) => r instanceof tr && Be(r.toPrimitive) ? r.toPrimitive() : r),
2980
+ filters: this.filters.map((r) => r instanceof sr && Me(r.toPrimitive) ? r.toPrimitive() : r),
2922
2981
  groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
2923
2982
  };
2924
2983
  }
2925
2984
  }
2926
- class Ce extends h {
2985
+ class ae extends h {
2927
2986
  /**
2928
2987
  * Получает пагинированный список данных.
2929
2988
  *
@@ -2936,15 +2995,15 @@ class Ce extends h {
2936
2995
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2937
2996
  * @param signal Сигнал отмены запроса.
2938
2997
  */
2939
- getPaginated(r, e, t, i, o, c, u, p = void 0) {
2940
- let m = {
2941
- page: (i == null ? void 0 : i.page) ?? 1,
2942
- perPage: (i == null ? void 0 : i.pageSize) ?? 10
2998
+ getPaginated(r, e, t, n, o, c, u, p = void 0) {
2999
+ let f = {
3000
+ page: (n == null ? void 0 : n.page) ?? 1,
3001
+ perPage: (n == null ? void 0 : n.pageSize) ?? 10
2943
3002
  };
2944
- return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), re(t) || (m.sort = H(t) ? t : [t]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
3003
+ return e && (f.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), te(t) || (f.sort = H(t) ? t : [t]), o && (f = { ...f, ...o }), this.get(r, f, c, u, p);
2945
3004
  }
2946
3005
  }
2947
- class ns extends Ce {
3006
+ class ls extends ae {
2948
3007
  /**
2949
3008
  * Возвращает список шаблонов прайс-листа.
2950
3009
  *
@@ -2955,8 +3014,8 @@ class ns extends Ce {
2955
3014
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
2956
3015
  */
2957
3016
  getTemplateList(r, e, t) {
2958
- return this.getPaginated("/internal/price/templates", r, e, t, {}, (i) => {
2959
- const o = { ...i.data };
3017
+ return this.getPaginated("/internal/price/templates", r, e, t, {}, (n) => {
3018
+ const o = { ...n.data };
2960
3019
  return o.data = o.data.map((c) => new Z(c)), o;
2961
3020
  });
2962
3021
  }
@@ -2993,7 +3052,7 @@ class ns extends Ce {
2993
3052
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2994
3053
  */
2995
3054
  updateTemplate(r, e, t = {}) {
2996
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new Z(i.data), t);
3055
+ return this.patch(`/internal/price/templates/${r}`, e, (n) => new Z(n.data), t);
2997
3056
  }
2998
3057
  /**
2999
3058
  * Удаляет данные о шаблоне прайс-листа.
@@ -3040,11 +3099,11 @@ class ns extends Ce {
3040
3099
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_save
3041
3100
  */
3042
3101
  saveProductTemplatePrice(r, e, t) {
3043
- var i;
3102
+ var n;
3044
3103
  return this.post(
3045
3104
  `/internal/price/templates/${r}/products/${e}`,
3046
3105
  {
3047
- price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3106
+ price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3048
3107
  increase_percent: t.value
3049
3108
  },
3050
3109
  (o) => new _e(o.data)
@@ -3101,7 +3160,7 @@ class ns extends Ce {
3101
3160
  *
3102
3161
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
3103
3162
  */
3104
- saveCategoryTemplatePrice(r, e, t, i = !1) {
3163
+ saveCategoryTemplatePrice(r, e, t, n = !1) {
3105
3164
  var o;
3106
3165
  return this.request(
3107
3166
  {
@@ -3111,7 +3170,7 @@ class ns extends Ce {
3111
3170
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3112
3171
  increase_percent: t.value
3113
3172
  },
3114
- params: i ? { recursively: !0 } : {}
3173
+ params: n ? { recursively: !0 } : {}
3115
3174
  },
3116
3175
  (c) => new Le(c.data)
3117
3176
  );
@@ -3144,18 +3203,18 @@ class ns extends Ce {
3144
3203
  return this.get(
3145
3204
  `/internal/price/templates/${r}/clients`,
3146
3205
  {},
3147
- (e) => e.data.map((t) => new ce(t))
3206
+ (e) => e.data.map((t) => new ue(t))
3148
3207
  );
3149
3208
  }
3150
3209
  }
3151
- class os extends h {
3210
+ class us extends h {
3152
3211
  /**
3153
3212
  * Возвращает список ролей ценообразования.
3154
3213
  *
3155
3214
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3156
3215
  */
3157
3216
  getRoles() {
3158
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ue(e)));
3217
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new pe(e)));
3159
3218
  }
3160
3219
  /**
3161
3220
  * Добавляет новую роль ценообразования.
@@ -3165,7 +3224,7 @@ class os extends h {
3165
3224
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3166
3225
  */
3167
3226
  createRole(r) {
3168
- return this.post("/internal/price/roles", r, (e) => new ue(e.data));
3227
+ return this.post("/internal/price/roles", r, (e) => new pe(e.data));
3169
3228
  }
3170
3229
  /**
3171
3230
  * Возвращает данные роли ценообразования.
@@ -3175,7 +3234,7 @@ class os extends h {
3175
3234
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3176
3235
  */
3177
3236
  getRole(r) {
3178
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ue(e.data));
3237
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new pe(e.data));
3179
3238
  }
3180
3239
  /**
3181
3240
  * Обновляет данные роли ценообразования.
@@ -3186,7 +3245,7 @@ class os extends h {
3186
3245
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3187
3246
  */
3188
3247
  updateRole(r, e) {
3189
- return this.patch(`/internal/price/roles/${r}`, e, (t) => new ue(t.data));
3248
+ return this.patch(`/internal/price/roles/${r}`, e, (t) => new pe(t.data));
3190
3249
  }
3191
3250
  /**
3192
3251
  * Удаляет роль ценообразования.
@@ -3224,11 +3283,11 @@ class os extends h {
3224
3283
  return this.patch(
3225
3284
  `/internal/price/roles/rules/categories/${r}`,
3226
3285
  e,
3227
- (t) => t.data.map((i) => new rr(i))
3286
+ (t) => t.data.map((n) => new rr(n))
3228
3287
  );
3229
3288
  }
3230
3289
  }
3231
- class cs extends Ce {
3290
+ class ps extends ae {
3232
3291
  /**
3233
3292
  * Возвращает пагинированный список свойств.
3234
3293
  *
@@ -3239,9 +3298,9 @@ class cs extends Ce {
3239
3298
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
3240
3299
  */
3241
3300
  getProperties(r, e, t) {
3242
- return this.getPaginated("/internal/catalog/properties", r, e, t, {}, (i) => {
3243
- const o = { ...i.data };
3244
- return o.data = o.data.map((c) => new le(c)), o;
3301
+ return this.getPaginated("/internal/catalog/properties", r, e, t, {}, (n) => {
3302
+ const o = { ...n.data };
3303
+ return o.data = o.data.map((c) => new ee(c)), o;
3245
3304
  });
3246
3305
  }
3247
3306
  /**
@@ -3258,7 +3317,7 @@ class cs extends Ce {
3258
3317
  ...t,
3259
3318
  type: e
3260
3319
  },
3261
- (i) => new le(i.data)
3320
+ (n) => new ee(n.data)
3262
3321
  );
3263
3322
  }
3264
3323
  /**
@@ -3268,7 +3327,7 @@ class cs extends Ce {
3268
3327
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3269
3328
  */
3270
3329
  getProperty(r) {
3271
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new le(e.data));
3330
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ee(e.data));
3272
3331
  }
3273
3332
  /**
3274
3333
  * Обновляет существующее свойство.
@@ -3278,14 +3337,14 @@ class cs extends Ce {
3278
3337
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_update
3279
3338
  */
3280
3339
  updateProperty(r, e) {
3281
- const { typeId: t, ...i } = e;
3340
+ const { typeId: t, ...n } = e;
3282
3341
  return this.patch(
3283
3342
  `/internal/catalog/properties/${r}`,
3284
3343
  {
3285
- ...i,
3344
+ ...n,
3286
3345
  type: t
3287
3346
  },
3288
- (o) => new le(o.data)
3347
+ (o) => new ee(o.data)
3289
3348
  );
3290
3349
  }
3291
3350
  /**
@@ -3325,7 +3384,7 @@ class cs extends Ce {
3325
3384
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3326
3385
  */
3327
3386
  updateProductProperty(r, e, t) {
3328
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new Y(i.data));
3387
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new Y(n.data));
3329
3388
  }
3330
3389
  /**
3331
3390
  * Удаляет значение свойства продукта.
@@ -3471,7 +3530,7 @@ class cs extends Ce {
3471
3530
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3472
3531
  */
3473
3532
  updateCategoryProperty(r, e, t) {
3474
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new Y(i.data));
3533
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new Y(n.data));
3475
3534
  }
3476
3535
  /**
3477
3536
  * Удаляет значение свойства категории.
@@ -3599,8 +3658,46 @@ class cs extends Ce {
3599
3658
  updateCategoryImage(r, e) {
3600
3659
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3601
3660
  }
3661
+ /**
3662
+ * Возвращает список настроенных фильтров категории.
3663
+ *
3664
+ * @param categoryId Идентификатор категории.
3665
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
3666
+ */
3667
+ getCategoryFilterSettings(r) {
3668
+ return this.get(
3669
+ `/internal/catalog/categories/${r}/filter-settings`,
3670
+ {},
3671
+ (e) => e.data.map((t) => new tr(t))
3672
+ );
3673
+ }
3674
+ /**
3675
+ * Сохраняет настройки фильтра в категории.
3676
+ *
3677
+ * @param categoryId Идентификатор категории.
3678
+ * @param propertyId Идентификатор свойства.
3679
+ * @param settingsData Данные настроек фильтра.
3680
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_save
3681
+ */
3682
+ saveCategoryFilterSetting(r, e, t) {
3683
+ return this.patch(
3684
+ `/internal/catalog/categories/${r}/filter-settings/${e}`,
3685
+ t,
3686
+ (n) => new tr(n.data)
3687
+ );
3688
+ }
3689
+ /**
3690
+ * Удаляет настройки фильтра в категории, возвращая фильтру настройки по умолчанию.
3691
+ *
3692
+ * @param categoryId Идентификатор категории.
3693
+ * @param propertyId Идентификатор свойства.
3694
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_delete
3695
+ */
3696
+ deleteCategoryFilterSetting(r, e) {
3697
+ return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
3698
+ }
3602
3699
  }
3603
- class ls extends h {
3700
+ class hs extends h {
3604
3701
  /**
3605
3702
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3606
3703
  *
@@ -3616,7 +3713,7 @@ class ls extends h {
3616
3713
  priceTemplateId: r,
3617
3714
  showHidden: e
3618
3715
  },
3619
- (t) => t.data.map((i) => new N(i))
3716
+ (t) => t.data.map((n) => new N(n))
3620
3717
  );
3621
3718
  }
3622
3719
  /**
@@ -3629,13 +3726,13 @@ class ls extends h {
3629
3726
  *
3630
3727
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
3631
3728
  */
3632
- getCategoryData(r, e, t = !1, i = !1) {
3729
+ getCategoryData(r, e, t = !1, n = !1) {
3633
3730
  return this.get(
3634
3731
  `/internal/catalog/categories/${e}`,
3635
3732
  {
3636
3733
  priceTemplateId: r,
3637
3734
  showHidden: t,
3638
- withNestedCategories: i
3735
+ withNestedCategories: n
3639
3736
  },
3640
3737
  (o) => new N(o.data)
3641
3738
  );
@@ -3650,50 +3747,50 @@ class ls extends h {
3650
3747
  *
3651
3748
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
3652
3749
  */
3653
- getCategoryProductsList(r, e, t = !0, i = !1) {
3750
+ getCategoryProductsList(r, e, t = !0, n = !1) {
3654
3751
  return this.get(
3655
3752
  `/internal/catalog/categories/${e}/products`,
3656
3753
  {
3657
3754
  priceTemplateId: r,
3658
- showHidden: i,
3755
+ showHidden: n,
3659
3756
  withPriceCoefficients: t
3660
3757
  },
3661
- (o) => ye(o.data, (c) => new I(c))
3758
+ (o) => we(o.data, (c) => new I(c))
3662
3759
  );
3663
3760
  }
3664
3761
  }
3665
- function sr(n, r, e) {
3762
+ function ir(i, r, e) {
3666
3763
  let t;
3667
- return n.some((i) => {
3668
- if (i.type === e && i.id === r)
3669
- return t = i, !0;
3670
- if (i.type === "product")
3764
+ return i.some((n) => {
3765
+ if (n.type === e && n.id === r)
3766
+ return t = n, !0;
3767
+ if (n.type === "product")
3671
3768
  return !1;
3672
- const o = i;
3769
+ const o = n;
3673
3770
  if (o.products && o.products.length > 0) {
3674
- const c = sr(o.products, r, e);
3771
+ const c = ir(o.products, r, e);
3675
3772
  if (c)
3676
3773
  return t = c, !0;
3677
3774
  }
3678
3775
  if (o.categories && o.categories.length > 0) {
3679
- const c = sr(o.categories, r, e);
3776
+ const c = ir(o.categories, r, e);
3680
3777
  if (c)
3681
3778
  return t = c, !0;
3682
3779
  }
3683
3780
  return !1;
3684
3781
  }), t;
3685
3782
  }
3686
- function ir(n) {
3783
+ function nr(i) {
3687
3784
  const r = [];
3688
- return n.forEach((e) => {
3785
+ return i.forEach((e) => {
3689
3786
  if (r.push(e), e.type === "category") {
3690
3787
  const t = e;
3691
- t.products && t.products.length > 0 && r.push(...ir(t.products)), t.categories && t.categories.length > 0 && r.push(...ir(t.categories));
3788
+ t.products && t.products.length > 0 && r.push(...nr(t.products)), t.categories && t.categories.length > 0 && r.push(...nr(t.categories));
3692
3789
  }
3693
3790
  }), r;
3694
3791
  }
3695
- var yt = /* @__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))(yt || {}), U = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(U || {});
3696
- class Fe extends J {
3792
+ var Ct = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i.SalesDirection = "sales_direction", i.Managers = "managers", i.Curators = "curators", i))(Ct || {}), F = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(F || {});
3793
+ class Ue extends J {
3697
3794
  /**
3698
3795
  * Инициализирует экземпляр класса {@link BankAccount}.
3699
3796
  *
@@ -3775,7 +3872,7 @@ class G extends He {
3775
3872
  * Дата и время последнего удаления.
3776
3873
  */
3777
3874
  s(this, "deletedAt");
3778
- 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 = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3875
+ 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) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3779
3876
  }
3780
3877
  }
3781
3878
  class z extends w {
@@ -3786,14 +3883,14 @@ class z extends w {
3786
3883
  return new z({
3787
3884
  id: 1,
3788
3885
  guid: "",
3789
- slug: U.Person,
3886
+ slug: F.Person,
3790
3887
  name: ""
3791
3888
  });
3792
3889
  }
3793
3890
  }
3794
- class se extends w {
3891
+ class ie extends w {
3795
3892
  }
3796
- class dr extends gr {
3893
+ class $r extends fr {
3797
3894
  /**
3798
3895
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
3799
3896
  *
@@ -3805,10 +3902,10 @@ class dr extends gr {
3805
3902
  * Дата и время последнего удаления.
3806
3903
  */
3807
3904
  s(this, "deletedAt");
3808
- this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3905
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3809
3906
  }
3810
3907
  }
3811
- class Ar extends dr {
3908
+ class dr extends $r {
3812
3909
  /**
3813
3910
  * Инициализирует экземпляр класса {@link ContragentBase}.
3814
3911
  *
@@ -3824,7 +3921,7 @@ class Ar extends dr {
3824
3921
  /**
3825
3922
  * Группа партнеров (направление деятельности).
3826
3923
  */
3827
- s(this, "partnerGroup", new se());
3924
+ s(this, "partnerGroup", new ie());
3828
3925
  /**
3829
3926
  * Список контактных лиц контрагента.
3830
3927
  */
@@ -3854,22 +3951,22 @@ class Ar extends dr {
3854
3951
  */
3855
3952
  s(this, "updater");
3856
3953
  if (e) {
3857
- if (this.opf = new z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new se(e.partnerGroup)), e.contacts) {
3954
+ if (this.opf = new z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ie(e.partnerGroup)), e.contacts) {
3858
3955
  const t = [];
3859
- e.contacts.forEach((i) => {
3860
- t.push(new G(i));
3956
+ e.contacts.forEach((n) => {
3957
+ t.push(new G(n));
3861
3958
  }), this.contacts = t;
3862
3959
  }
3863
3960
  if (e.bankAccounts) {
3864
3961
  const t = [];
3865
- e.bankAccounts.forEach((i) => {
3866
- t.push(new Fe(i));
3962
+ e.bankAccounts.forEach((n) => {
3963
+ t.push(new Ue(n));
3867
3964
  }), this.bankAccounts = t;
3868
3965
  }
3869
3966
  }
3870
3967
  }
3871
3968
  }
3872
- class wt extends Ar {
3969
+ class at extends dr {
3873
3970
  /**
3874
3971
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3875
3972
  *
@@ -3879,7 +3976,7 @@ class wt extends Ar {
3879
3976
  super(r);
3880
3977
  }
3881
3978
  }
3882
- class $r extends Ar {
3979
+ class Tr extends dr {
3883
3980
  /**
3884
3981
  * Инициализирует экземпляр класса {@link ContragentIc}.
3885
3982
  *
@@ -3922,7 +4019,7 @@ class $r extends Ar {
3922
4019
  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 ?? "");
3923
4020
  }
3924
4021
  }
3925
- class Tr extends $r {
4022
+ class br extends Tr {
3926
4023
  /**
3927
4024
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3928
4025
  *
@@ -3937,7 +4034,7 @@ class Tr extends $r {
3937
4034
  e && (this.kpp = e.kpp ?? "");
3938
4035
  }
3939
4036
  }
3940
- class vt extends Tr {
4037
+ class Rt extends br {
3941
4038
  /**
3942
4039
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3943
4040
  *
@@ -3948,7 +4045,7 @@ class vt extends Tr {
3948
4045
  /**
3949
4046
  * Страна регистрации юридического лица нерезидента.
3950
4047
  */
3951
- s(this, "registrationCountry", new te());
4048
+ s(this, "registrationCountry", new se());
3952
4049
  /**
3953
4050
  * Регистрационный номер юридического лица нерезидента.
3954
4051
  */
@@ -3957,7 +4054,7 @@ class vt extends Tr {
3957
4054
  * Налоговый номер юридического лица нерезидента.
3958
4055
  */
3959
4056
  s(this, "taxNumber", "");
3960
- e && (this.registrationCountry = new te(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4057
+ e && (this.registrationCountry = new se(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3961
4058
  }
3962
4059
  }
3963
4060
  class De {
@@ -3968,18 +4065,18 @@ class De {
3968
4065
  */
3969
4066
  static createInstance(r) {
3970
4067
  switch (r.opf.slug) {
3971
- case U.Ic:
3972
- return new $r(r);
3973
- case U.UlR:
4068
+ case F.Ic:
3974
4069
  return new Tr(r);
3975
- case U.UlNr:
3976
- return new vt(r);
4070
+ case F.UlR:
4071
+ return new br(r);
4072
+ case F.UlNr:
4073
+ return new Rt(r);
3977
4074
  default:
3978
- return new wt(r);
4075
+ return new at(r);
3979
4076
  }
3980
4077
  }
3981
4078
  }
3982
- class pe extends dr {
4079
+ class he extends $r {
3983
4080
  /**
3984
4081
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3985
4082
  *
@@ -4016,14 +4113,14 @@ class pe extends dr {
4016
4113
  * Признак того, что указанный адрес является адресом транспортной компании.
4017
4114
  */
4018
4115
  s(this, "isTransportCompanyAddress");
4019
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new fr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new G(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;
4116
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new yr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new G(n))) ?? [], 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;
4020
4117
  }
4021
4118
  }
4022
- class br extends w {
4023
- }
4024
4119
  class Sr extends w {
4025
4120
  }
4026
- class nr extends V {
4121
+ class kr extends w {
4122
+ }
4123
+ class or extends V {
4027
4124
  /**
4028
4125
  * Инициализирует экземпляр класса {@link Client}.
4029
4126
  *
@@ -4031,7 +4128,7 @@ class nr extends V {
4031
4128
  */
4032
4129
  // eslint-disable-next-line sonarjs/cognitive-complexity
4033
4130
  constructor(e) {
4034
- var t, i, o, c;
4131
+ var t, n, o, c;
4035
4132
  super(e);
4036
4133
  /**
4037
4134
  * @inheritDoc
@@ -4073,7 +4170,7 @@ class nr extends V {
4073
4170
  * @inheritDoc
4074
4171
  */
4075
4172
  s(this, "extraData");
4076
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => De.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new G(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new pe(u))) ?? [], this.channelPrimaryInterest = new br(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Sr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4173
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => De.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ie(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new G(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new he(u))) ?? [], this.channelPrimaryInterest = new Sr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new kr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new U(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ve(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4077
4174
  }
4078
4175
  }
4079
4176
  class Qe {
@@ -4085,19 +4182,19 @@ class Qe {
4085
4182
  const r = {};
4086
4183
  return Object.keys(this).forEach((e) => {
4087
4184
  const t = this[e];
4088
- $(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4089
- a(t) && t.trim().length === 0 || Be(t.isNewRec) && t.isNewRec() || (r[e] = t);
4185
+ d(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4186
+ C(t) && t.trim().length === 0 || Me(t.isNewRec) && t.isNewRec() || (r[e] = t);
4090
4187
  }), r;
4091
4188
  }
4092
4189
  }
4093
- class us extends Qe {
4190
+ class gs extends Qe {
4094
4191
  /**
4095
4192
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4096
4193
  *
4097
4194
  * @param data Данные для первоначальной инициализации.
4098
4195
  */
4099
4196
  constructor(e) {
4100
- var t, i, o, c, u, p, m, f;
4197
+ var t, n, o, c, u, p, f, m;
4101
4198
  super();
4102
4199
  /**
4103
4200
  * @inheritDoc
@@ -4142,11 +4239,11 @@ class us extends Qe {
4142
4239
  /**
4143
4240
  * @inheritDoc
4144
4241
  */
4145
- s(this, "createdAt", new A());
4242
+ s(this, "createdAt", new $());
4146
4243
  /**
4147
4244
  * @inheritDoc
4148
4245
  */
4149
- s(this, "lastLoginDate", new A());
4246
+ s(this, "lastLoginDate", new $());
4150
4247
  /**
4151
4248
  * @inheritDoc
4152
4249
  */
@@ -4198,12 +4295,12 @@ class us extends Qe {
4198
4295
  /**
4199
4296
  * @inheritDoc
4200
4297
  */
4201
- s(this, "noOrdersPeriod", new A());
4202
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((D) => new Ae(D)), this.region = new me(e == null ? void 0 : e.region), this.country = new te(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new ae(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Ee(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new se(D)), this.contact = new He(e == null ? void 0 : e.contact), this.lastOrder = {
4203
- createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4204
- creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4205
- isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4206
- }, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
4298
+ s(this, "noOrdersPeriod", new $());
4299
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((D) => new $e(D)), this.region = new me(e == null ? void 0 : e.region), this.country = new se(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new $(e == null ? void 0 : e.createdAt), this.lastLoginDate = new $(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new Ce(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Ee(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new U(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ie(D)), this.contact = new He(e == null ? void 0 : e.contact), this.lastOrder = {
4300
+ createdAt: new $((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4301
+ creator: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.creator,
4302
+ isApproved: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.isApproved
4303
+ }, this.noOrdersPeriod = new $(e == null ? void 0 : e.noOrdersPeriod);
4207
4304
  }
4208
4305
  /**
4209
4306
  * @inheritDoc
@@ -4244,7 +4341,7 @@ class us extends Qe {
4244
4341
  this.contragentType = new z();
4245
4342
  break;
4246
4343
  case "preferredDeliveryType":
4247
- this.preferredDeliveryType = new F();
4344
+ this.preferredDeliveryType = new U();
4248
4345
  break;
4249
4346
  case "partnerGroups":
4250
4347
  this.partnerGroups = [];
@@ -4262,12 +4359,12 @@ class us extends Qe {
4262
4359
  * @inheritDoc
4263
4360
  */
4264
4361
  asClearRaw() {
4265
- var t, i, o, c, u, p;
4362
+ var t, n, o, c, u, p;
4266
4363
  const e = super.asClearRaw();
4267
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4364
+ return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4268
4365
  }
4269
4366
  }
4270
- class kr extends J {
4367
+ class Lr extends J {
4271
4368
  /**
4272
4369
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4273
4370
  *
@@ -4283,17 +4380,17 @@ class kr extends J {
4283
4380
  * @inheritDoc
4284
4381
  */
4285
4382
  s(this, "creator");
4286
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
4383
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
4287
4384
  }
4288
4385
  }
4289
- class at extends S {
4386
+ class Pt extends S {
4290
4387
  /**
4291
4388
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4292
4389
  *
4293
4390
  * @param data Данные для первоначальной инициализации.
4294
4391
  */
4295
4392
  constructor(e) {
4296
- var t, i, o, c;
4393
+ var t, n, o, c;
4297
4394
  super(e);
4298
4395
  /**
4299
4396
  * @inheritDoc
@@ -4323,7 +4420,7 @@ class at extends S {
4323
4420
  * @inheritDoc
4324
4421
  */
4325
4422
  s(this, "curators");
4326
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new G(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new F(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Je(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ee(u))) ?? void 0;
4423
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new G(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Lr(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ie(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new U(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Je(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ee(u))) ?? void 0;
4327
4424
  }
4328
4425
  }
4329
4426
  class Ie extends J {
@@ -4341,7 +4438,7 @@ class Ie extends J {
4341
4438
  this.isPrimary = e.isPrimary;
4342
4439
  }
4343
4440
  }
4344
- class Ct extends G {
4441
+ class Dt extends G {
4345
4442
  /**
4346
4443
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4347
4444
  *
@@ -4369,7 +4466,7 @@ class Ct extends G {
4369
4466
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Ie(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Ie(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Ie(t))));
4370
4467
  }
4371
4468
  }
4372
- class O extends Ce {
4469
+ class O extends ae {
4373
4470
  /**
4374
4471
  * Преобразует данные о клиенте в данные требуемые для запроса.
4375
4472
  *
@@ -4380,7 +4477,7 @@ class O extends Ce {
4380
4477
  return {
4381
4478
  name: r.name,
4382
4479
  alternative_name: r.alternativeName,
4383
- partner_groups: r.partnerGroups.map((i) => i.id),
4480
+ partner_groups: r.partnerGroups.map((n) => n.id),
4384
4481
  phone: r.phone,
4385
4482
  email: r.email,
4386
4483
  city_id: r.city.id,
@@ -4397,11 +4494,11 @@ class O extends Ce {
4397
4494
  * @param contragent Данные о контрагенте клиента.
4398
4495
  */
4399
4496
  static transformContragentClientDataToRequest(r) {
4400
- var c, u, p, m;
4497
+ var c, u, p, f;
4401
4498
  let e;
4402
- const t = r, i = r, o = r;
4499
+ const t = r, n = r, o = r;
4403
4500
  switch (r.opf.slug) {
4404
- case U.Ic:
4501
+ case F.Ic:
4405
4502
  e = {
4406
4503
  opf: t.opf.slug,
4407
4504
  name: t.name,
@@ -4418,25 +4515,25 @@ class O extends Ce {
4418
4515
  actual_address: t.actualAddress
4419
4516
  };
4420
4517
  break;
4421
- case U.UlR:
4518
+ case F.UlR:
4422
4519
  e = {
4423
- opf: i.opf.slug,
4424
- name: i.name,
4425
- alternative_name: i.alternativeName,
4426
- partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
4427
- comment: i.comment,
4428
- inn: i.inn,
4429
- kpp: i.kpp,
4430
- okpo: i.okpo,
4431
- director_name: i.directorName,
4432
- director_position: i.directorPosition,
4433
- director_acts_on: i.directorActsOn,
4434
- legal_address: i.legalAddress,
4435
- postal_address: i.postalAddress,
4436
- actual_address: i.actualAddress
4520
+ opf: n.opf.slug,
4521
+ name: n.name,
4522
+ alternative_name: n.alternativeName,
4523
+ partner_group_id: (u = n.partnerGroup) == null ? void 0 : u.id,
4524
+ comment: n.comment,
4525
+ inn: n.inn,
4526
+ kpp: n.kpp,
4527
+ okpo: n.okpo,
4528
+ director_name: n.directorName,
4529
+ director_position: n.directorPosition,
4530
+ director_acts_on: n.directorActsOn,
4531
+ legal_address: n.legalAddress,
4532
+ postal_address: n.postalAddress,
4533
+ actual_address: n.actualAddress
4437
4534
  };
4438
4535
  break;
4439
- case U.UlNr:
4536
+ case F.UlNr:
4440
4537
  e = {
4441
4538
  opf: o.opf.slug,
4442
4539
  name: o.name,
@@ -4459,7 +4556,7 @@ class O extends Ce {
4459
4556
  opf: r.opf.slug,
4460
4557
  name: r.name,
4461
4558
  alternative_name: r.alternativeName,
4462
- partner_group_id: (m = r.partnerGroup) == null ? void 0 : m.id,
4559
+ partner_group_id: (f = r.partnerGroup) == null ? void 0 : f.id,
4463
4560
  comment: r.comment
4464
4561
  };
4465
4562
  break;
@@ -4472,7 +4569,7 @@ class O extends Ce {
4472
4569
  * @param deliveryAddress Данные об адресе доставки клиенту.
4473
4570
  */
4474
4571
  static transformClientDeliveryAddressToRequest(r) {
4475
- var t, i;
4572
+ var t, n;
4476
4573
  const e = {
4477
4574
  address: r.address,
4478
4575
  is_one_time: r.isOneTime ?? !1,
@@ -4481,7 +4578,7 @@ class O extends Ce {
4481
4578
  };
4482
4579
  return r.coordinates && (e.coordinates = {
4483
4580
  lat: (t = r.coordinates) == null ? void 0 : t.lat,
4484
- long: (i = r.coordinates) == null ? void 0 : i.long
4581
+ long: (n = r.coordinates) == null ? void 0 : n.long
4485
4582
  }), r.operatingHours && (e.operating_hours = {
4486
4583
  from: r.operatingHours.from,
4487
4584
  to: r.operatingHours.to
@@ -4508,7 +4605,7 @@ class O extends Ce {
4508
4605
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4509
4606
  */
4510
4607
  getClient(r) {
4511
- return this.get(`/internal/clients/${r}`, {}, (e) => new nr(e.data));
4608
+ return this.get(`/internal/clients/${r}`, {}, (e) => new or(e.data));
4512
4609
  }
4513
4610
  /**
4514
4611
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4521,13 +4618,13 @@ class O extends Ce {
4521
4618
  *
4522
4619
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
4523
4620
  */
4524
- getClientsList(r, e, t, i, o = void 0) {
4621
+ getClientsList(r, e, t, n, o = void 0) {
4525
4622
  return this.getPaginated(
4526
4623
  "/internal/clients",
4527
4624
  r,
4528
4625
  e,
4529
4626
  t,
4530
- i,
4627
+ n,
4531
4628
  (c) => {
4532
4629
  const u = { ...c.data };
4533
4630
  return u.data = u.data.map((p) => new V(p)), u;
@@ -4567,10 +4664,10 @@ class O extends Ce {
4567
4664
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_additional_data_for_clients_list
4568
4665
  */
4569
4666
  getAdditionalClientsData(r, e) {
4570
- const t = r.map((i) => i.id);
4571
- return this.post("/internal/clients/additional-data", { clients: t, requested_data_types: e }, (i) => {
4667
+ const t = r.map((n) => n.id);
4668
+ return this.post("/internal/clients/additional-data", { clients: t, requested_data_types: e }, (n) => {
4572
4669
  let o = [];
4573
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new at(c))), o;
4670
+ return (n == null ? void 0 : n.data.length) > 0 && (o = n.data.map((c) => new Pt(c))), o;
4574
4671
  });
4575
4672
  }
4576
4673
  /**
@@ -4582,7 +4679,7 @@ class O extends Ce {
4582
4679
  getAllClientContacts(r) {
4583
4680
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4584
4681
  let t = [];
4585
- return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new Ct(i))), t;
4682
+ return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new Dt(n))), t;
4586
4683
  });
4587
4684
  }
4588
4685
  /**
@@ -4593,7 +4690,7 @@ class O extends Ce {
4593
4690
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4594
4691
  */
4595
4692
  createClientCommonData(r, e = {}) {
4596
- return this.post("/internal/clients", O.transformClientDataToRequest(r), (t) => new nr(t.data), e);
4693
+ return this.post("/internal/clients", O.transformClientDataToRequest(r), (t) => new or(t.data), e);
4597
4694
  }
4598
4695
  /**
4599
4696
  * Обновляет данные указанного клиента.
@@ -4627,7 +4724,7 @@ class O extends Ce {
4627
4724
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4628
4725
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4629
4726
  */
4630
- changeClientPassword(r, e, t, i = {}) {
4727
+ changeClientPassword(r, e, t, n = {}) {
4631
4728
  return this.patch(
4632
4729
  `/internal/clients/${r}`,
4633
4730
  {
@@ -4635,7 +4732,7 @@ class O extends Ce {
4635
4732
  password_confirmation: t
4636
4733
  },
4637
4734
  void 0,
4638
- i
4735
+ n
4639
4736
  );
4640
4737
  }
4641
4738
  /**
@@ -4665,7 +4762,7 @@ class O extends Ce {
4665
4762
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_attach
4666
4763
  */
4667
4764
  async attachClientToManagers(r, e) {
4668
- const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/attach`, { is_primary: i.isDefault }));
4765
+ const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/attach`, { is_primary: n.isDefault }));
4669
4766
  await Promise.all(t);
4670
4767
  }
4671
4768
  /**
@@ -4677,7 +4774,7 @@ class O extends Ce {
4677
4774
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_detach
4678
4775
  */
4679
4776
  async detachClientFromManagers(r, e) {
4680
- const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/detach`));
4777
+ const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/detach`));
4681
4778
  await Promise.all(t);
4682
4779
  }
4683
4780
  /**
@@ -4733,7 +4830,7 @@ class O extends Ce {
4733
4830
  return this.post(
4734
4831
  `/internal/clients/${r}/contragents`,
4735
4832
  O.transformContragentClientDataToRequest(e),
4736
- (i) => De.createInstance(i.data),
4833
+ (n) => De.createInstance(n.data),
4737
4834
  t
4738
4835
  );
4739
4836
  }
@@ -4749,7 +4846,7 @@ class O extends Ce {
4749
4846
  return this.patch(
4750
4847
  `/internal/clients/${r}/contragents/${e.id}`,
4751
4848
  O.transformContragentClientDataToRequest(e),
4752
- (i) => De.createInstance(i.data),
4849
+ (n) => De.createInstance(n.data),
4753
4850
  t
4754
4851
  );
4755
4852
  }
@@ -4773,7 +4870,7 @@ class O extends Ce {
4773
4870
  return this.get(
4774
4871
  `/internal/clients/${r}/delivery-addresses`,
4775
4872
  {},
4776
- (e) => e.data.map((t) => new pe(t))
4873
+ (e) => e.data.map((t) => new he(t))
4777
4874
  );
4778
4875
  }
4779
4876
  /**
@@ -4788,7 +4885,7 @@ class O extends Ce {
4788
4885
  return this.post(
4789
4886
  `/internal/clients/${r}/delivery-addresses`,
4790
4887
  O.transformClientDeliveryAddressToRequest(e),
4791
- (i) => new pe(i.data),
4888
+ (n) => new he(n.data),
4792
4889
  t
4793
4890
  );
4794
4891
  }
@@ -4804,7 +4901,7 @@ class O extends Ce {
4804
4901
  return this.patch(
4805
4902
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4806
4903
  O.transformClientDeliveryAddressToRequest(e),
4807
- (i) => new pe(i.data),
4904
+ (n) => new he(n.data),
4808
4905
  t
4809
4906
  );
4810
4907
  }
@@ -4827,12 +4924,12 @@ class O extends Ce {
4827
4924
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4828
4925
  * @see /doc/api/internal#/Банковские реквизиты/api_internal_client_contragent_bank_accounts_create
4829
4926
  */
4830
- createContragentBankAccount(r, e, t, i = {}) {
4927
+ createContragentBankAccount(r, e, t, n = {}) {
4831
4928
  return this.post(
4832
4929
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4833
4930
  O.transformClientContragentBankAccountToRequest(t),
4834
- (o) => new Fe(o.data),
4835
- i
4931
+ (o) => new Ue(o.data),
4932
+ n
4836
4933
  );
4837
4934
  }
4838
4935
  /**
@@ -4844,12 +4941,12 @@ class O extends Ce {
4844
4941
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4845
4942
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
4846
4943
  */
4847
- updateContragentBankAccount(r, e, t, i = {}) {
4944
+ updateContragentBankAccount(r, e, t, n = {}) {
4848
4945
  return this.patch(
4849
4946
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
4850
4947
  O.transformClientContragentBankAccountToRequest(t),
4851
- (o) => new Fe(o.data),
4852
- i
4948
+ (o) => new Ue(o.data),
4949
+ n
4853
4950
  );
4854
4951
  }
4855
4952
  /**
@@ -4904,7 +5001,7 @@ class O extends Ce {
4904
5001
  comment: e.comment,
4905
5002
  not_disturb: e.notDisturb
4906
5003
  },
4907
- (i) => new G(i.data),
5004
+ (n) => new G(n.data),
4908
5005
  t
4909
5006
  );
4910
5007
  }
@@ -4937,7 +5034,7 @@ class O extends Ce {
4937
5034
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4938
5035
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
4939
5036
  */
4940
- createContragentContact(r, e, t, i = {}) {
5037
+ createContragentContact(r, e, t, n = {}) {
4941
5038
  return this.createContact(
4942
5039
  r,
4943
5040
  t,
@@ -4950,7 +5047,7 @@ class O extends Ce {
4950
5047
  }
4951
5048
  ]
4952
5049
  },
4953
- i
5050
+ n
4954
5051
  );
4955
5052
  }
4956
5053
  /**
@@ -4984,7 +5081,7 @@ class O extends Ce {
4984
5081
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
4985
5082
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
4986
5083
  */
4987
- createDeliveryAddressContact(r, e, t, i = {}) {
5084
+ createDeliveryAddressContact(r, e, t, n = {}) {
4988
5085
  return this.createContact(
4989
5086
  r,
4990
5087
  t,
@@ -4997,7 +5094,7 @@ class O extends Ce {
4997
5094
  }
4998
5095
  ]
4999
5096
  },
5000
- i
5097
+ n
5001
5098
  );
5002
5099
  }
5003
5100
  /**
@@ -5033,7 +5130,7 @@ class O extends Ce {
5033
5130
  * @param extraData Дополнительные данные
5034
5131
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5035
5132
  */
5036
- createContact(r, e, t, i = {}) {
5133
+ createContact(r, e, t, n = {}) {
5037
5134
  var c, u;
5038
5135
  const o = {
5039
5136
  name: e.name,
@@ -5041,7 +5138,7 @@ class O extends Ce {
5041
5138
  comment: e.comment,
5042
5139
  ...t
5043
5140
  };
5044
- 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 G(p.data), i);
5141
+ 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 G(p.data), n);
5045
5142
  }
5046
5143
  /**
5047
5144
  * Устанавливает признак основного контактного лица.
@@ -5070,7 +5167,7 @@ class O extends Ce {
5070
5167
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5071
5168
  }
5072
5169
  }
5073
- class ps extends h {
5170
+ class fs extends h {
5074
5171
  /**
5075
5172
  * Выполняет проверку занят ли указанный номер телефона.
5076
5173
  *
@@ -5078,13 +5175,13 @@ class ps extends h {
5078
5175
  */
5079
5176
  checkPhoneIsBusy(r) {
5080
5177
  return new Promise((e, t) => {
5081
- this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((i) => {
5082
- e(!!i.isBusy);
5178
+ this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((n) => {
5179
+ e(!!n.isBusy);
5083
5180
  }).catch(t);
5084
5181
  });
5085
5182
  }
5086
5183
  }
5087
- class hs {
5184
+ class ms {
5088
5185
  /**
5089
5186
  * Инициализирует экземпляр класса {@link VersionConfig}.
5090
5187
  *
@@ -5103,11 +5200,11 @@ class hs {
5103
5200
  * Текущая версия приложения.
5104
5201
  */
5105
5202
  s(this, "version");
5106
- this.date = a(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5203
+ this.date = C(r == null ? void 0 : r.date) ? a(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";
5107
5204
  }
5108
5205
  }
5109
- var Pt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Pt || {});
5110
- class gs extends h {
5206
+ var At = /* @__PURE__ */ ((i) => (i.Kozyrek = "kozyrek", i.Mosquitto = "mosquitto", i.Strip = "strip", i.MetalForDoors = "metal_for_doors", i.Sandwich = "sandwich", i.SandwichM2 = "sandwich_m2", i))(At || {});
5207
+ class ys extends h {
5111
5208
  /**
5112
5209
  * Возвращает настройки указанного конфигуратора для указанной категории.
5113
5210
  *
@@ -5132,7 +5229,7 @@ class gs extends h {
5132
5229
  *
5133
5230
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_products_get
5134
5231
  */
5135
- searchProduct(r, e, t, i = {}) {
5232
+ searchProduct(r, e, t, n = {}) {
5136
5233
  var c;
5137
5234
  const o = this.get(
5138
5235
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
@@ -5140,7 +5237,7 @@ class gs extends h {
5140
5237
  (u) => new I(u.data)
5141
5238
  );
5142
5239
  return o.catch((u) => {
5143
- this.errorResponseHandler(u, i);
5240
+ this.errorResponseHandler(u, n);
5144
5241
  }), o;
5145
5242
  }
5146
5243
  /**
@@ -5156,7 +5253,7 @@ class gs extends h {
5156
5253
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_template_create
5157
5254
  */
5158
5255
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5159
- createTemplate(r, e, t, i = {}) {
5256
+ createTemplate(r, e, t, n = {}) {
5160
5257
  var o;
5161
5258
  return this.post(
5162
5259
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/template?client_id=${e}`,
@@ -5164,7 +5261,7 @@ class gs extends h {
5164
5261
  // eslint-disable-next-line lodash/prefer-noop, @typescript-eslint/no-empty-function
5165
5262
  () => {
5166
5263
  },
5167
- i
5264
+ n
5168
5265
  );
5169
5266
  }
5170
5267
  /**
@@ -5178,8 +5275,8 @@ class gs extends h {
5178
5275
  */
5179
5276
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5180
5277
  removeTemplate(r, e, t) {
5181
- var i;
5182
- return this.delete(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template/${t}?client_id=${e}`);
5278
+ var n;
5279
+ return this.delete(`internal/catalog/categories/${r.id}/configurators/${(n = r.properties) == null ? void 0 : n.configurator}/template/${t}?client_id=${e}`);
5183
5280
  }
5184
5281
  /**
5185
5282
  * Выполняет расчет, через указанный конфигуратор с переданными параметрами.
@@ -5191,14 +5288,14 @@ class gs extends h {
5191
5288
  * @see /doc/api/internal#/Каталог/api_public_catalog_categories_category_configurator_calculate
5192
5289
  */
5193
5290
  calculate(r, e, t) {
5194
- var i;
5195
- return this.get(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/calculate`, {
5291
+ var n;
5292
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(n = r.properties) == null ? void 0 : n.configurator}/calculate`, {
5196
5293
  client_id: e,
5197
5294
  ...t
5198
5295
  });
5199
5296
  }
5200
5297
  }
5201
- class Rt {
5298
+ class $t {
5202
5299
  /**
5203
5300
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5204
5301
  *
@@ -5216,7 +5313,7 @@ class Rt {
5216
5313
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5217
5314
  }
5218
5315
  }
5219
- class ms extends Rt {
5316
+ class ws extends $t {
5220
5317
  /**
5221
5318
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5222
5319
  *
@@ -5247,7 +5344,7 @@ class ms extends Rt {
5247
5344
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
5248
5345
  }
5249
5346
  }
5250
- class fs {
5347
+ class vs {
5251
5348
  /**
5252
5349
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5253
5350
  *
@@ -5265,22 +5362,22 @@ class fs {
5265
5362
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
5266
5363
  }
5267
5364
  }
5268
- class ys {
5365
+ class Cs {
5269
5366
  /**
5270
5367
  * Возвращает диапазон дат по умолчанию.
5271
5368
  */
5272
5369
  static defaultDateRanges() {
5273
- const r = Jr(/* @__PURE__ */ new Date(), 1);
5370
+ const r = Vr(/* @__PURE__ */ new Date(), 1);
5274
5371
  return {
5275
5372
  // 'Следующий рабочий день' - это значение по-умолчанию
5276
- nextWorkingDay: { label: "Следующий рабочий день", from: Zr(r), to: Xr(r) },
5277
- today: { label: "Сегодня", from: Ne(), to: Yr() },
5278
- yesterday: { label: "Вчера", from: Qr(), to: Kr() },
5279
- tomorrow: { label: "Завтра", from: Er(), to: Vr() }
5373
+ nextWorkingDay: { label: "Следующий рабочий день", from: et(r), to: Zr(r) },
5374
+ today: { label: "Сегодня", from: Ne(), to: Xr() },
5375
+ yesterday: { label: "Вчера", from: Yr(), to: Qr() },
5376
+ tomorrow: { label: "Завтра", from: Kr(), to: Er() }
5280
5377
  };
5281
5378
  }
5282
5379
  }
5283
- class Lr {
5380
+ class _r {
5284
5381
  /**
5285
5382
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5286
5383
  *
@@ -5296,7 +5393,7 @@ class Lr {
5296
5393
  */
5297
5394
  static getProductMultiplicity(r) {
5298
5395
  var e, t;
5299
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !Lr.productIsMeasurable(r) ? r.properties.minCount : 1;
5396
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !_r.productIsMeasurable(r) ? r.properties.minCount : 1;
5300
5397
  }
5301
5398
  /**
5302
5399
  * Возвращает кратность длины для указанного товара.
@@ -5304,11 +5401,11 @@ class Lr {
5304
5401
  * @param product Данные о товаре для которого необходимо вернуть кратность длины.
5305
5402
  */
5306
5403
  static getProductLengthMultiplicity(r) {
5307
- var e, t, i;
5308
- return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((i = r.properties) != null && i.minCount) ? r.properties.minCount : 0.01;
5404
+ var e, t, n;
5405
+ return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((n = r.properties) != null && n.minCount) ? r.properties.minCount : 0.01;
5309
5406
  }
5310
5407
  }
5311
- const ee = class ee extends h {
5408
+ const re = class re extends h {
5312
5409
  /**
5313
5410
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5314
5411
  */
@@ -5328,7 +5425,7 @@ const ee = class ee extends h {
5328
5425
  */
5329
5426
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5330
5427
  static getCachedResponse(e) {
5331
- const t = ee.responseDataCache.get(e);
5428
+ const t = re.responseDataCache.get(e);
5332
5429
  if (t && t.validTo > /* @__PURE__ */ new Date())
5333
5430
  return t.val;
5334
5431
  }
@@ -5339,8 +5436,8 @@ const ee = class ee extends h {
5339
5436
  * @param data Данные для кэширования.
5340
5437
  */
5341
5438
  cacheResponse(e, t) {
5342
- ee.responseDataCache.set(e, {
5343
- validTo: et(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5439
+ re.responseDataCache.set(e, {
5440
+ validTo: rt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5344
5441
  val: t
5345
5442
  });
5346
5443
  }
@@ -5354,29 +5451,29 @@ const ee = class ee extends h {
5354
5451
  * @param params Дополнительные параметры запроса.
5355
5452
  */
5356
5453
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5357
- getTypedDataArrayRequester(e, t, i = !1, o = {}) {
5358
- const c = t + (re(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? ee.getCachedResponse(c) : void 0;
5454
+ getTypedDataArrayRequester(e, t, n = !1, o = {}) {
5455
+ const c = t + (te(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = n ? re.getCachedResponse(c) : void 0;
5359
5456
  return u ? Promise.resolve(u) : this.get(t, o).then((p) => {
5360
- const m = p.map((f) => We.instanceInitializer(e, f));
5361
- return i && m && this.cacheResponse(t, m), m;
5457
+ const f = p.map((m) => We.instanceInitializer(e, m));
5458
+ return n && f && this.cacheResponse(t, f), f;
5362
5459
  });
5363
5460
  }
5364
5461
  };
5365
5462
  /**
5366
5463
  * Кэш результатов запросов.
5367
5464
  */
5368
- s(ee, "responseDataCache", /* @__PURE__ */ new Map());
5369
- let fe = ee;
5370
- function ws(n, r) {
5465
+ s(re, "responseDataCache", /* @__PURE__ */ new Map());
5466
+ let ye = re;
5467
+ function as(i, r) {
5371
5468
  const e = [2, 0, 1, 1, 1, 2];
5372
- return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
5469
+ return r[i % 100 > 4 && i % 100 < 20 ? 2 : e[Math.min(i % 10, 5)]];
5373
5470
  }
5374
- class vs {
5471
+ class Rs {
5375
5472
  /**
5376
5473
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5377
5474
  */
5378
5475
  static generateUndefinedManagerInstance() {
5379
- return new ae({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5476
+ return new Ce({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5380
5477
  }
5381
5478
  /**
5382
5479
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5387,19 +5484,19 @@ class vs {
5387
5484
  return r.id === 0 && r.guid === "-undefined-";
5388
5485
  }
5389
5486
  }
5390
- class Dt extends fe {
5487
+ class dt extends ye {
5391
5488
  /**
5392
5489
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5393
5490
  */
5394
5491
  async getManagers() {
5395
- const r = "/internal/managers", e = fe.getCachedResponse(r);
5492
+ const r = "/internal/managers", e = ye.getCachedResponse(r);
5396
5493
  if (e)
5397
5494
  return e;
5398
- const i = (await this.get(r)).data.map((o) => We.instanceInitializer(ae, o));
5399
- return this.cacheResponse(r, i), i;
5495
+ const n = (await this.get(r)).data.map((o) => We.instanceInitializer(Ce, o));
5496
+ return this.cacheResponse(r, n), n;
5400
5497
  }
5401
5498
  }
5402
- class _r extends J {
5499
+ class Ir extends J {
5403
5500
  /**
5404
5501
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
5405
5502
  *
@@ -5423,10 +5520,10 @@ class _r extends J {
5423
5520
  * @inheritDoc
5424
5521
  */
5425
5522
  s(this, "sum");
5426
- this.name = e == null ? void 0 : e.name, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new V(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
5523
+ this.name = e == null ? void 0 : e.name, this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new V(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
5427
5524
  }
5428
5525
  }
5429
- class X extends _r {
5526
+ class X extends Ir {
5430
5527
  /**
5431
5528
  * Инициализирует экземпляр класса {@link Offer}.
5432
5529
  *
@@ -5442,10 +5539,10 @@ class X extends _r {
5442
5539
  * @inheritDoc
5443
5540
  */
5444
5541
  s(this, "products");
5445
- this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new vr(t));
5542
+ this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new Cr(t));
5446
5543
  }
5447
5544
  }
5448
- class as extends Qe {
5545
+ class Ps extends Qe {
5449
5546
  /**
5450
5547
  * Инициализирует экземпляр класса {@link OffersListFilters}.
5451
5548
  *
@@ -5468,8 +5565,8 @@ class as extends Qe {
5468
5565
  /**
5469
5566
  * @inheritDoc
5470
5567
  */
5471
- s(this, "createdAt", new A());
5472
- this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new A(e == null ? void 0 : e.createdAt);
5568
+ s(this, "createdAt", new $());
5569
+ this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new $(e == null ? void 0 : e.createdAt);
5473
5570
  }
5474
5571
  /**
5475
5572
  * @inheritDoc
@@ -5481,21 +5578,21 @@ class as extends Qe {
5481
5578
  * @inheritDoc
5482
5579
  */
5483
5580
  asClearRaw() {
5484
- var t, i;
5581
+ var t, n;
5485
5582
  const e = super.asClearRaw();
5486
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, e;
5583
+ return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, e;
5487
5584
  }
5488
5585
  }
5489
- class $e extends w {
5586
+ class de extends w {
5490
5587
  }
5491
- class Ir extends kr {
5588
+ class Or extends Lr {
5492
5589
  /**
5493
5590
  * Инициализирует экземпляр класса {@link OrderInfo}.
5494
5591
  *
5495
5592
  * @param data Данные для первоначальной инициализации.
5496
5593
  */
5497
5594
  constructor(e) {
5498
- var t, i, o, c, u, p, m, f;
5595
+ var t, n, o, c, u, p, f, m;
5499
5596
  super(e);
5500
5597
  /**
5501
5598
  * @inheritDoc
@@ -5547,17 +5644,17 @@ class Ir extends kr {
5547
5644
  s(this, "isLargeOrder");
5548
5645
  this.client = new V(e == null ? void 0 : e.client), this.payment = {
5549
5646
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
5550
- status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5647
+ status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
5551
5648
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5552
5649
  }, this.delivery = {
5553
5650
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5554
- date: a((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5555
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new pe(e.delivery.address) : void 0,
5556
- warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new we(e.delivery.warehouse) : void 0
5557
- }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = a(e == null ? void 0 : e.attachedAt) ? C(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5651
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? a(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5652
+ address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new he(e.delivery.address) : void 0,
5653
+ warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new ve(e.delivery.warehouse) : void 0
5654
+ }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new de(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? a(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5558
5655
  }
5559
5656
  }
5560
- class dt extends wr {
5657
+ class Tt extends vr {
5561
5658
  /**
5562
5659
  * Инициализирует экземпляр класса {@link OrderItem}.
5563
5660
  *
@@ -5614,10 +5711,10 @@ class dt extends wr {
5614
5711
  * Продукт, которым заменена текущая запись.
5615
5712
  */
5616
5713
  s(this, "replacement");
5617
- this.product = new M(e.product), this.currency = new x(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, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
5714
+ this.product = new B(e.product), this.currency = new x(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, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
5618
5715
  }
5619
5716
  }
5620
- class b extends Ir {
5717
+ class b extends Or {
5621
5718
  /**
5622
5719
  * Инициализирует экземпляр класса {@link Order}.
5623
5720
  *
@@ -5678,14 +5775,14 @@ class b extends Ir {
5678
5775
  * @inheritDoc
5679
5776
  */
5680
5777
  s(this, "erpOrderUrl");
5681
- this.products = (e.products ?? []).map((i) => {
5778
+ this.products = (e.products ?? []).map((n) => {
5682
5779
  var c;
5683
- const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
5684
- return new dt(i, o);
5685
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? De.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new $e(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
5780
+ const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
5781
+ return new Tt(n, o);
5782
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? De.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((n) => new de(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
5686
5783
  }
5687
5784
  }
5688
- class Cs extends Ce {
5785
+ class Ds extends ae {
5689
5786
  /**
5690
5787
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
5691
5788
  *
@@ -5696,7 +5793,7 @@ class Cs extends Ce {
5696
5793
  *
5697
5794
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
5698
5795
  */
5699
- getOffers(r, e, t, i = void 0) {
5796
+ getOffers(r, e, t, n = void 0) {
5700
5797
  return this.getPaginated(
5701
5798
  "/internal/orders/offers",
5702
5799
  r,
@@ -5705,10 +5802,10 @@ class Cs extends Ce {
5705
5802
  {},
5706
5803
  (o) => {
5707
5804
  const c = { ...o.data };
5708
- return c.data = c.data.map((u) => new _r(u)), c;
5805
+ return c.data = c.data.map((u) => new Ir(u)), c;
5709
5806
  },
5710
5807
  void 0,
5711
- i
5808
+ n
5712
5809
  );
5713
5810
  }
5714
5811
  /**
@@ -5728,7 +5825,7 @@ class Cs extends Ce {
5728
5825
  name: e,
5729
5826
  items: t != null && t.length ? t : void 0
5730
5827
  },
5731
- (i) => new X(i.data)
5828
+ (n) => new X(n.data)
5732
5829
  );
5733
5830
  }
5734
5831
  /**
@@ -5775,7 +5872,7 @@ class Cs extends Ce {
5775
5872
  *
5776
5873
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
5777
5874
  */
5778
- createOrderFromDraft(r, e, t, i = {}) {
5875
+ createOrderFromDraft(r, e, t, n = {}) {
5779
5876
  const o = k().config.dateFormats.api;
5780
5877
  return this.post(
5781
5878
  `/internal/orders/offers/${r}/create-order`,
@@ -5785,7 +5882,7 @@ class Cs extends Ce {
5785
5882
  items: t != null && t.length ? t : void 0
5786
5883
  },
5787
5884
  (c) => c.data.map((u) => new b(u)),
5788
- i
5885
+ n
5789
5886
  );
5790
5887
  }
5791
5888
  /**
@@ -5813,7 +5910,7 @@ class Cs extends Ce {
5813
5910
  is_additional_sale: e.isAdditionalSale,
5814
5911
  ...e.configuratorParams
5815
5912
  },
5816
- (i) => new X(i.data),
5913
+ (n) => new X(n.data),
5817
5914
  t
5818
5915
  );
5819
5916
  }
@@ -5828,7 +5925,7 @@ class Cs extends Ce {
5828
5925
  *
5829
5926
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_modify
5830
5927
  */
5831
- patchOfferProduct(r, e, t, i = {}) {
5928
+ patchOfferProduct(r, e, t, n = {}) {
5832
5929
  return this.patch(
5833
5930
  `/internal/orders/offers/${r}/products/${e}`,
5834
5931
  {
@@ -5843,7 +5940,7 @@ class Cs extends Ce {
5843
5940
  ...t.configuratorParams
5844
5941
  },
5845
5942
  (o) => new X(o.data),
5846
- i
5943
+ n
5847
5944
  );
5848
5945
  }
5849
5946
  /**
@@ -5895,8 +5992,8 @@ class Cs extends Ce {
5895
5992
  return this.post(`/internal/orders/offers/${r}/send`, e);
5896
5993
  }
5897
5994
  }
5898
- var At = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(At || {});
5899
- class Ps {
5995
+ var bt = /* @__PURE__ */ ((i) => (i.View = "view", i.Share = "share", i.EditTags = "edit_tags", i.SaveOrderIgnoredProducts = "save_order_ignored_products", i.ChangeStatus = "change_status", i.ChangeProducts = "change_products", i.ChangeOrderParameters = "change_order_parameters", i.Recalculate = "recalculate", i.AttachOrder = "attach_order", i.DetachOrder = "detach_order", i.ChangeAttachedOperator = "change_attached_operator", i.SendOnlinePaymentLink = "send_online_payment_link", i.ConfirmOnlineFullPayment = "confirm_online_full_payment", i.MergeOrders = "merge_orders", i.GetHistory = "get_history", i.CloneOrder = "clone_order", i.DeleteAttachedFile = "delete_attached_file", i))(bt || {});
5996
+ class As {
5900
5997
  /**
5901
5998
  * Инициализирует экземпляр класса {@link OrderEditorData}.
5902
5999
  *
@@ -5959,22 +6056,22 @@ class Ps {
5959
6056
  * @inheritDoc
5960
6057
  */
5961
6058
  s(this, "isAdditionalSale");
5962
- var e, t, i;
5963
- this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (i = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : i.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
6059
+ var e, t, n;
6060
+ this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
5964
6061
  }
5965
6062
  }
5966
- class Or extends w {
5967
- }
5968
6063
  class xr extends w {
5969
6064
  }
5970
- class Rs extends Qe {
6065
+ class qr extends w {
6066
+ }
6067
+ class $s extends Qe {
5971
6068
  /**
5972
6069
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5973
6070
  *
5974
6071
  * @param data Данные для первоначальной инициализации.
5975
6072
  */
5976
6073
  constructor(e) {
5977
- var t, i, o, c;
6074
+ var t, n, o, c;
5978
6075
  super();
5979
6076
  /**
5980
6077
  * @inheritDoc
@@ -5995,7 +6092,7 @@ class Rs extends Qe {
5995
6092
  /**
5996
6093
  * @inheritDoc
5997
6094
  */
5998
- s(this, "createdAt", new A());
6095
+ s(this, "createdAt", new $());
5999
6096
  /**
6000
6097
  * @inheritDoc
6001
6098
  */
@@ -6003,7 +6100,7 @@ class Rs extends Qe {
6003
6100
  /**
6004
6101
  * @inheritDoc
6005
6102
  */
6006
- s(this, "deliveryDate", new A());
6103
+ s(this, "deliveryDate", new $());
6007
6104
  /**
6008
6105
  * @inheritDoc
6009
6106
  */
@@ -6031,7 +6128,7 @@ class Rs extends Qe {
6031
6128
  /**
6032
6129
  * @inheritDoc
6033
6130
  */
6034
- s(this, "attachedAt", new A());
6131
+ s(this, "attachedAt", new $());
6035
6132
  /**
6036
6133
  * @inheritDoc
6037
6134
  */
@@ -6068,7 +6165,7 @@ class Rs extends Qe {
6068
6165
  * @inheritDoc
6069
6166
  */
6070
6167
  s(this, "onlyMyRegions");
6071
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new ae(u) : new Or(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new V(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new xr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new we(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6168
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Ce(u) : new xr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new V(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new $(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new $(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new $e(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new $(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new U(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new qr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ve(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6072
6169
  }
6073
6170
  /**
6074
6171
  * @inheritDoc
@@ -6085,7 +6182,7 @@ class Rs extends Qe {
6085
6182
  this.deliveryDate.from = null, this.deliveryDate.to = null;
6086
6183
  break;
6087
6184
  case "deliveryType":
6088
- this.deliveryType = new F();
6185
+ this.deliveryType = new U();
6089
6186
  break;
6090
6187
  case "clientCities":
6091
6188
  this.clientCities = [];
@@ -6112,12 +6209,12 @@ class Rs extends Qe {
6112
6209
  * @inheritDoc
6113
6210
  */
6114
6211
  asClearRaw() {
6115
- var t, i, o, c, u, p;
6212
+ var t, n, o, c, u, p;
6116
6213
  const e = super.asClearRaw();
6117
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
6214
+ return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
6118
6215
  }
6119
6216
  }
6120
- class $t {
6217
+ class St {
6121
6218
  /**
6122
6219
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6123
6220
  *
@@ -6140,10 +6237,10 @@ class $t {
6140
6237
  * @inheritDoc
6141
6238
  */
6142
6239
  s(this, "createdAt");
6143
- this.user = new _(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = a(r == null ? void 0 : r.createdAt) ? C(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6240
+ this.user = new _(r == null ? void 0 : r.user), this.status = new de(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? a(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6144
6241
  }
6145
6242
  }
6146
- class Ds extends Ce {
6243
+ class ds extends ae {
6147
6244
  /**
6148
6245
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
6149
6246
  *
@@ -6154,7 +6251,7 @@ class Ds extends Ce {
6154
6251
  *
6155
6252
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
6156
6253
  */
6157
- getOrders(r, e, t, i = void 0) {
6254
+ getOrders(r, e, t, n = void 0) {
6158
6255
  return this.getPaginated(
6159
6256
  "/internal/orders",
6160
6257
  r,
@@ -6163,10 +6260,10 @@ class Ds extends Ce {
6163
6260
  {},
6164
6261
  (o) => {
6165
6262
  const c = { ...o.data };
6166
- return c.data = c.data.map((u) => new Ir(u)), c;
6263
+ return c.data = c.data.map((u) => new Or(u)), c;
6167
6264
  },
6168
6265
  void 0,
6169
- i
6266
+ n
6170
6267
  );
6171
6268
  }
6172
6269
  /**
@@ -6220,14 +6317,14 @@ class Ds extends Ce {
6220
6317
  * в случае ошибок в запросах.
6221
6318
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
6222
6319
  */
6223
- createClientOrder(r, e, t, i, o = {}) {
6320
+ createClientOrder(r, e, t, n, o = {}) {
6224
6321
  const c = k().config.dateFormats.api;
6225
6322
  return this.post(
6226
6323
  `/internal/clients/${r}/orders/${e}`,
6227
6324
  {
6228
6325
  ...t,
6229
6326
  deliveryDate: L(t.deliveryDate, c),
6230
- items: i != null && i.length ? i : void 0
6327
+ items: n != null && n.length ? n : void 0
6231
6328
  },
6232
6329
  (u) => u.data.map((p) => new b(p)),
6233
6330
  o
@@ -6296,12 +6393,12 @@ class Ds extends Ce {
6296
6393
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
6297
6394
  */
6298
6395
  updateOrder(r, e, t = {}) {
6299
- const i = k().config.dateFormats.api;
6396
+ const n = k().config.dateFormats.api;
6300
6397
  return this.patch(
6301
6398
  `/internal/orders/${r}`,
6302
6399
  {
6303
6400
  ...e,
6304
- deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
6401
+ deliveryDate: e.deliveryDate ? L(e.deliveryDate, n) : void 0
6305
6402
  },
6306
6403
  (o) => new b(o.data),
6307
6404
  t
@@ -6333,7 +6430,7 @@ class Ds extends Ce {
6333
6430
  is_additional_sale: e.isAdditionalSale,
6334
6431
  ...e.configuratorParams
6335
6432
  },
6336
- (i) => new b(i.data),
6433
+ (n) => new b(n.data),
6337
6434
  t
6338
6435
  );
6339
6436
  }
@@ -6349,7 +6446,7 @@ class Ds extends Ce {
6349
6446
  *
6350
6447
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
6351
6448
  */
6352
- changeOrderStatus(r, e, t, i = {}) {
6449
+ changeOrderStatus(r, e, t, n = {}) {
6353
6450
  return this.patch(
6354
6451
  `/internal/orders/${r}/status`,
6355
6452
  {
@@ -6357,7 +6454,7 @@ class Ds extends Ce {
6357
6454
  statusDetail: t
6358
6455
  },
6359
6456
  (o) => new b(o.data),
6360
- i
6457
+ n
6361
6458
  );
6362
6459
  }
6363
6460
  /**
@@ -6383,7 +6480,7 @@ class Ds extends Ce {
6383
6480
  return this.get(
6384
6481
  `/internal/orders/${r}/history`,
6385
6482
  {},
6386
- (e) => e.data.map((t) => new $t(t))
6483
+ (e) => e.data.map((t) => new St(t))
6387
6484
  );
6388
6485
  }
6389
6486
  /**
@@ -6463,7 +6560,7 @@ class Ds extends Ce {
6463
6560
  *
6464
6561
  * @see /doc/api/internal#/Заказы/api_internal_orders_product_update
6465
6562
  */
6466
- patchOrderProduct(r, e, t, i = {}) {
6563
+ patchOrderProduct(r, e, t, n = {}) {
6467
6564
  return this.patch(
6468
6565
  `/internal/orders/${r}/products/${e}`,
6469
6566
  {
@@ -6478,7 +6575,7 @@ class Ds extends Ce {
6478
6575
  ...t.configuratorParams
6479
6576
  },
6480
6577
  (o) => new b(o.data),
6481
- i
6578
+ n
6482
6579
  );
6483
6580
  }
6484
6581
  /**
@@ -6511,7 +6608,7 @@ class Ds extends Ce {
6511
6608
  *
6512
6609
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
6513
6610
  */
6514
- getDeliveryCost(r, e, t, i = void 0) {
6611
+ getDeliveryCost(r, e, t, n = void 0) {
6515
6612
  const o = k().config.dateFormats.api;
6516
6613
  return this.get(
6517
6614
  `/internal/orders/delivery/${r}/cost`,
@@ -6521,7 +6618,7 @@ class Ds extends Ce {
6521
6618
  },
6522
6619
  (c) => c.data,
6523
6620
  void 0,
6524
- i
6621
+ n
6525
6622
  );
6526
6623
  }
6527
6624
  }
@@ -6555,24 +6652,24 @@ class Oe {
6555
6652
  this.client = new V(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) ?? ze.Product;
6556
6653
  }
6557
6654
  }
6558
- const xe = (n) => {
6559
- var r, e, t, i, o;
6560
- return n ? hr(
6655
+ const xe = (i) => {
6656
+ var r, e, t, n, o;
6657
+ return i ? gr(
6561
6658
  {
6562
- cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
6563
- clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
6564
- managers: (t = n.managers) == null ? void 0 : t.map((c) => c.id),
6565
- partnerGroups: (i = n.partnerGroups) == null ? void 0 : i.map((c) => c.id),
6566
- salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
6567
- hideNotActive: n.hideNotActive
6659
+ cities: (r = i.cities) == null ? void 0 : r.map((c) => c.id),
6660
+ clients: (e = i.clients) == null ? void 0 : e.map((c) => c.id),
6661
+ managers: (t = i.managers) == null ? void 0 : t.map((c) => c.id),
6662
+ partnerGroups: (n = i.partnerGroups) == null ? void 0 : n.map((c) => c.id),
6663
+ salesDirections: (o = i.salesDirections) == null ? void 0 : o.map((c) => c.id),
6664
+ hideNotActive: i.hideNotActive
6568
6665
  },
6569
- (c) => $(c) || (H(c) || Me(c)) && re(c)
6666
+ (c) => d(c) || (H(c) || Be(c)) && te(c)
6570
6667
  ) : {};
6571
- }, or = (n) => {
6668
+ }, cr = (i) => {
6572
6669
  const r = {};
6573
- 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;
6670
+ return i.from && (i.from.coefficient || i.from.value) && (r.from = {}, i.from.coefficient && (r.from.priceCoefficientId = i.from.coefficient.id), i.from.value && (r.from.increasePercent = i.from.value)), i.to && (i.to.coefficient || i.to.value) && (r.to = {}, i.to.coefficient && (r.to.priceCoefficientId = i.to.coefficient.id), i.to.value && (r.to.increasePercent = i.to.value)), r;
6574
6671
  };
6575
- class ds extends h {
6672
+ class Ts extends h {
6576
6673
  /**
6577
6674
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6578
6675
  *
@@ -6586,10 +6683,10 @@ class ds extends h {
6586
6683
  return this.get(
6587
6684
  `/internal/price/products/${r}/analyze`,
6588
6685
  {
6589
- ...or(e),
6686
+ ...cr(e),
6590
6687
  filters: xe(t)
6591
6688
  },
6592
- (i) => i.data.map((o) => new Oe(o))
6689
+ (n) => n.data.map((o) => new Oe(o))
6593
6690
  );
6594
6691
  }
6595
6692
  /**
@@ -6605,10 +6702,10 @@ class ds extends h {
6605
6702
  return this.get(
6606
6703
  `/internal/price/categories/${r}/analyze`,
6607
6704
  {
6608
- ...or(e),
6705
+ ...cr(e),
6609
6706
  filters: xe(t)
6610
6707
  },
6611
- (i) => i.data.map((o) => new Oe(o))
6708
+ (n) => n.data.map((o) => new Oe(o))
6612
6709
  );
6613
6710
  }
6614
6711
  /**
@@ -6629,11 +6726,11 @@ class ds extends h {
6629
6726
  ...e,
6630
6727
  filters: xe(t)
6631
6728
  },
6632
- (i) => i.data.map((o) => new Oe(o))
6729
+ (n) => n.data.map((o) => new Oe(o))
6633
6730
  );
6634
6731
  }
6635
6732
  }
6636
- class Tt {
6733
+ class kt {
6637
6734
  /**
6638
6735
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
6639
6736
  *
@@ -6680,10 +6777,10 @@ class Tt {
6680
6777
  * @inheritDoc
6681
6778
  */
6682
6779
  s(this, "currency");
6683
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ge(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
6780
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? a(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new fe(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
6684
6781
  }
6685
6782
  }
6686
- class bt extends ge {
6783
+ class Lt extends fe {
6687
6784
  /**
6688
6785
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6689
6786
  *
@@ -6695,10 +6792,10 @@ class bt extends ge {
6695
6792
  * @inheritDoc
6696
6793
  */
6697
6794
  s(this, "history");
6698
- this.history = ye(e.history, (t) => new Tt(t));
6795
+ this.history = we(e.history, (t) => new kt(t));
6699
6796
  }
6700
6797
  }
6701
- class As extends h {
6798
+ class bs extends h {
6702
6799
  /**
6703
6800
  * Возвращает данные об истории изменения цен.
6704
6801
  *
@@ -6707,22 +6804,22 @@ class As extends h {
6707
6804
  * @see /docs/api#/operations/api_internal_price_history_get
6708
6805
  */
6709
6806
  getProductPriceHistory(r) {
6710
- var o, c, u, p, m;
6711
- const e = k().config.dateFormats.api, t = hr(
6712
- he(r, {
6807
+ var o, c, u, p, f;
6808
+ const e = k().config.dateFormats.api, t = gr(
6809
+ ge(r, {
6713
6810
  costDate: {
6714
6811
  from: qe((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6715
6812
  to: qe((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6716
6813
  }
6717
6814
  }),
6718
- (f) => $(f) || (H(f) || Me(f)) && re(f)
6719
- ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6720
- return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((f) => [
6721
- new bt(he(f[0], { history: f }))
6815
+ (m) => d(m) || (H(m) || Be(m)) && te(m)
6816
+ ), n = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
6817
+ return delete t.product, this.get(`/internal/price/products/${n}/history`, t).then((m) => [
6818
+ new Lt(ge(m[0], { history: m }))
6722
6819
  ]);
6723
6820
  }
6724
6821
  }
6725
- class cr {
6822
+ class lr {
6726
6823
  /**
6727
6824
  * Инициализирует экземпляр класса {@link RecommendationsList}.
6728
6825
  *
@@ -6737,10 +6834,10 @@ class cr {
6737
6834
  * Список рекомендованных категорий продуктов.
6738
6835
  */
6739
6836
  s(this, "productCategories", []);
6740
- r != null && r.products && (this.products = r.products.map((e) => new ge(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ge(e)));
6837
+ r != null && r.products && (this.products = r.products.map((e) => new fe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new fe(e)));
6741
6838
  }
6742
6839
  }
6743
- class $s extends h {
6840
+ class Ss extends h {
6744
6841
  /**
6745
6842
  * Возвращает данные о рекомендациях указанной категории продуктов.
6746
6843
  *
@@ -6748,7 +6845,7 @@ class $s extends h {
6748
6845
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
6749
6846
  */
6750
6847
  getProductCategoryRecommendations(r) {
6751
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new cr(e.data));
6848
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new lr(e.data));
6752
6849
  }
6753
6850
  /**
6754
6851
  * Возвращает данные о рекомендациях указанного продукта.
@@ -6757,7 +6854,7 @@ class $s extends h {
6757
6854
  * @see /docs/api#/operations/api_internal_recommendations_product_get
6758
6855
  */
6759
6856
  getProductRecommendations(r) {
6760
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new cr(e.data));
6857
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new lr(e.data));
6761
6858
  }
6762
6859
  /**
6763
6860
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -6786,20 +6883,20 @@ class $s extends h {
6786
6883
  });
6787
6884
  }
6788
6885
  }
6789
- var St = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(St || {}), kt = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(kt || {});
6790
- class Lt extends w {
6886
+ var _t = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(_t || {}), It = /* @__PURE__ */ ((i) => (i.CanceledBy1c = "canceled_by1c", i.CanceledByClient = "canceled_by_client", i.FinishedNotApproved = "finished_not_approved", i.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", i.WillWaiting = "will_waiting", i))(It || {});
6887
+ class Ot extends w {
6791
6888
  }
6792
- class Ts extends w {
6889
+ class ks extends w {
6793
6890
  }
6794
- class _t extends w {
6891
+ class xt extends w {
6795
6892
  }
6796
- class It extends w {
6893
+ class qt extends w {
6797
6894
  }
6798
- class Ot extends w {
6895
+ class Nt extends w {
6799
6896
  }
6800
- class xt extends w {
6897
+ class Ft extends w {
6801
6898
  }
6802
- class bs {
6899
+ class Ls {
6803
6900
  /**
6804
6901
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
6805
6902
  *
@@ -6818,9 +6915,9 @@ class bs {
6818
6915
  return r.id === 0 && r.slug === "-undefined-";
6819
6916
  }
6820
6917
  }
6821
- class qr extends w {
6918
+ class Nr extends w {
6822
6919
  }
6823
- class T extends fe {
6920
+ class T extends ye {
6824
6921
  /**
6825
6922
  * Возвращает {@link Promise} для получения данных указанного справочника.
6826
6923
  *
@@ -6829,20 +6926,20 @@ class T extends fe {
6829
6926
  * и использовать в случае аналогичных запросов.
6830
6927
  */
6831
6928
  getReference(r, e = !1) {
6832
- return this.getTypedDataArrayRequester(Lt, `/internal/references/${r}`, e);
6929
+ return this.getTypedDataArrayRequester(Ot, `/internal/references/${r}`, e);
6833
6930
  }
6834
6931
  /**
6835
6932
  * Возвращает {@link Promise} для получения справочника данных о канале
6836
6933
  * первичного интереса.
6837
6934
  */
6838
6935
  getChannelPrimaryInterest() {
6839
- return this.getTypedDataArrayRequester(br, "/internal/references/channel-primary-interest", !0);
6936
+ return this.getTypedDataArrayRequester(Sr, "/internal/references/channel-primary-interest", !0);
6840
6937
  }
6841
6938
  /**
6842
6939
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
6843
6940
  */
6844
6941
  getContactPositions() {
6845
- return this.getTypedDataArrayRequester(_t, "/internal/references/contact-position", !0);
6942
+ return this.getTypedDataArrayRequester(xt, "/internal/references/contact-position", !0);
6846
6943
  }
6847
6944
  /**
6848
6945
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -6861,7 +6958,7 @@ class T extends fe {
6861
6958
  * групп партнеров (направлений деятельности).
6862
6959
  */
6863
6960
  getPartnerGroup() {
6864
- return this.getTypedDataArrayRequester(se, "/internal/references/partner-group", !0);
6961
+ return this.getTypedDataArrayRequester(ie, "/internal/references/partner-group", !0);
6865
6962
  }
6866
6963
  /**
6867
6964
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
@@ -6873,37 +6970,37 @@ class T extends fe {
6873
6970
  * Возвращает {@link Promise} для получения справочника операторов.
6874
6971
  */
6875
6972
  getOperators() {
6876
- return this.getTypedDataArrayRequester(Or, "/internal/references/operator", !0);
6973
+ return this.getTypedDataArrayRequester(xr, "/internal/references/operator", !0);
6877
6974
  }
6878
6975
  /**
6879
6976
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
6880
6977
  */
6881
6978
  getOrderPaymentStatuses() {
6882
- return this.getTypedDataArrayRequester(It, "/public/references/order-payment-status", !0);
6979
+ return this.getTypedDataArrayRequester(qt, "/public/references/order-payment-status", !0);
6883
6980
  }
6884
6981
  /**
6885
6982
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
6886
6983
  */
6887
6984
  getOrderStatuses() {
6888
- return this.getTypedDataArrayRequester($e, "/internal/references/order-status", !0);
6985
+ return this.getTypedDataArrayRequester(de, "/internal/references/order-status", !0);
6889
6986
  }
6890
6987
  /**
6891
6988
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
6892
6989
  */
6893
6990
  getOrderStatusDetails() {
6894
- return this.getTypedDataArrayRequester(Ot, "/internal/references/order-status-detail", !0);
6991
+ return this.getTypedDataArrayRequester(Nt, "/internal/references/order-status-detail", !0);
6895
6992
  }
6896
6993
  /**
6897
6994
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
6898
6995
  */
6899
6996
  getPaymentTypes() {
6900
- return this.getTypedDataArrayRequester(xr, "/public/references/payment-type", !0);
6997
+ return this.getTypedDataArrayRequester(qr, "/public/references/payment-type", !0);
6901
6998
  }
6902
6999
  /**
6903
7000
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
6904
7001
  */
6905
7002
  getResourceTypes() {
6906
- return this.getTypedDataArrayRequester(qr, "/internal/references/resource-type", !0);
7003
+ return this.getTypedDataArrayRequester(Nr, "/internal/references/resource-type", !0);
6907
7004
  }
6908
7005
  /**
6909
7006
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -6915,7 +7012,7 @@ class T extends fe {
6915
7012
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
6916
7013
  */
6917
7014
  getSourcePrimaryInterest() {
6918
- return this.getTypedDataArrayRequester(Sr, "/internal/references/source-primary-interest", !0);
7015
+ return this.getTypedDataArrayRequester(kr, "/internal/references/source-primary-interest", !0);
6919
7016
  }
6920
7017
  /**
6921
7018
  * Выполняет поиск данных о городах по терму в названии.
@@ -6923,7 +7020,7 @@ class T extends fe {
6923
7020
  * @param term Терм поиска.
6924
7021
  */
6925
7022
  searchCity(r) {
6926
- return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
7023
+ return this.getTypedDataArrayRequester($e, `/internal/references/city-with-region-and-country/search?term=${r}`);
6927
7024
  }
6928
7025
  /**
6929
7026
  * Выполняет поиск данных о регионах по терму в названии.
@@ -6939,46 +7036,46 @@ class T extends fe {
6939
7036
  * @param term Терм поиска.
6940
7037
  */
6941
7038
  searchCountry(r) {
6942
- return this.getTypedDataArrayRequester(te, `/internal/references/country/search?term=${r}`);
7039
+ return this.getTypedDataArrayRequester(se, `/internal/references/country/search?term=${r}`);
6943
7040
  }
6944
7041
  /**
6945
7042
  * Возвращает {@link Promise} для получения справочника типов доставки.
6946
7043
  */
6947
7044
  getDeliveryTypes() {
6948
- return this.getTypedDataArrayRequester(F, "/internal/references/delivery-type", !0);
7045
+ return this.getTypedDataArrayRequester(U, "/internal/references/delivery-type", !0);
6949
7046
  }
6950
7047
  /**
6951
7048
  * Возвращает {@link Promise} для получения справочника складов.
6952
7049
  */
6953
7050
  getWarehouses() {
6954
- return this.getTypedDataArrayRequester(we, "/public/references/warehouse", !0);
7051
+ return this.getTypedDataArrayRequester(ve, "/public/references/warehouse", !0);
6955
7052
  }
6956
7053
  /**
6957
7054
  * Возвращает {@link Promise} для получения справочника типов свойств.
6958
7055
  */
6959
7056
  getPropertyTypes() {
6960
- return this.getTypedDataArrayRequester(Dr, "/internal/references/property-type", !0);
7057
+ return this.getTypedDataArrayRequester(Ar, "/internal/references/property-type", !0);
6961
7058
  }
6962
7059
  /**
6963
7060
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
6964
7061
  */
6965
7062
  getPriceCoefficients() {
6966
- return this.getTypedDataArrayRequester(de, "/internal/references/price-coefficient", !0);
7063
+ return this.getTypedDataArrayRequester(Ae, "/internal/references/price-coefficient", !0);
6967
7064
  }
6968
7065
  /**
6969
7066
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
6970
7067
  */
6971
7068
  getProductFileType() {
6972
- return this.getTypedDataArrayRequester(xt, "/public/references/product-file-type", !0);
7069
+ return this.getTypedDataArrayRequester(Ft, "/public/references/product-file-type", !0);
6973
7070
  }
6974
7071
  }
6975
- const d = W("common.references_private", () => {
6976
- const n = y({}), r = y(void 0), e = y(void 0), t = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), ie = y(void 0), ne = y(void 0), E = y(void 0), K = y(void 0), Te = y(void 0), be = y(void 0), Se = y(void 0), l = y(void 0);
7072
+ const A = W("common.references_private", () => {
7073
+ const i = y({}), r = y(void 0), e = y(void 0), t = y(void 0), n = 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), D = y(void 0), oe = y(void 0), ce = y(void 0), E = y(void 0), K = y(void 0), Te = y(void 0), be = y(void 0), Se = y(void 0), l = y(void 0);
6977
7074
  return {
6978
7075
  /**
6979
7076
  * Список загружаемых/загруженных на данный момент значений.
6980
7077
  */
6981
- dataLoaderList: n,
7078
+ dataLoaderList: i,
6982
7079
  /**
6983
7080
  * Справочник каналов первичного интереса.
6984
7081
  */
@@ -6994,7 +7091,7 @@ const d = W("common.references_private", () => {
6994
7091
  /**
6995
7092
  * Справочник типов доставки.
6996
7093
  */
6997
- deliveryTypeReference: i,
7094
+ deliveryTypeReference: n,
6998
7095
  /**
6999
7096
  * Список менеджеров.
7000
7097
  */
@@ -7014,11 +7111,11 @@ const d = W("common.references_private", () => {
7014
7111
  /**
7015
7112
  * Справочник статусов заказов.
7016
7113
  */
7017
- orderStatusReference: m,
7114
+ orderStatusReference: f,
7018
7115
  /**
7019
7116
  * Справочник детализирующих статусов (подстатусов) заказов.
7020
7117
  */
7021
- orderStatusDetailReference: f,
7118
+ orderStatusDetailReference: m,
7022
7119
  /**
7023
7120
  * Справочник типов оплаты заказов.
7024
7121
  */
@@ -7026,11 +7123,11 @@ const d = W("common.references_private", () => {
7026
7123
  /**
7027
7124
  * Справочник групп партнеров.
7028
7125
  */
7029
- partnerGroupReference: ie,
7126
+ partnerGroupReference: oe,
7030
7127
  /**
7031
7128
  * Справочник типов файлов продукктов/категорий.
7032
7129
  */
7033
- productFileTypeReference: ne,
7130
+ productFileTypeReference: ce,
7034
7131
  /**
7035
7132
  * Справочник типов ресурсов.
7036
7133
  */
@@ -7056,99 +7153,99 @@ const d = W("common.references_private", () => {
7056
7153
  */
7057
7154
  priceCoefficientsReference: l
7058
7155
  };
7059
- }), Ss = W("common.references", () => {
7060
- const n = R(() => {
7061
- const l = d();
7156
+ }), _s = W("common.references", () => {
7157
+ const i = P(() => {
7158
+ const l = A();
7062
7159
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
7063
7160
  l.channelPrimaryInterestReference = g;
7064
7161
  }).catch(v)), l.channelPrimaryInterestReference;
7065
- }), r = R(() => {
7066
- const l = d();
7162
+ }), r = P(() => {
7163
+ const l = A();
7067
7164
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
7068
7165
  l.contactPositionsReference = g;
7069
7166
  }).catch(v)), l.contactPositionsReference;
7070
- }), e = R(() => {
7071
- const l = d();
7167
+ }), e = P(() => {
7168
+ const l = A();
7072
7169
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
7073
7170
  l.currencyReference = g;
7074
7171
  }).catch(v)), l.currencyReference;
7075
- }), t = R(() => {
7076
- const l = d();
7172
+ }), t = P(() => {
7173
+ const l = A();
7077
7174
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
7078
7175
  l.opfReference = g;
7079
7176
  }).catch(v)), l.opfReference;
7080
- }), i = R(() => {
7081
- const l = d();
7177
+ }), n = P(() => {
7178
+ const l = A();
7082
7179
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
7083
7180
  l.operatorReference = g;
7084
7181
  }).catch(v)), l.operatorReference;
7085
- }), o = R(() => {
7086
- const l = d();
7182
+ }), o = P(() => {
7183
+ const l = A();
7087
7184
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
7088
7185
  l.orderPaymentStatusReference = g;
7089
7186
  }).catch(v)), l.orderPaymentStatusReference;
7090
- }), c = R(() => {
7091
- const l = d();
7187
+ }), c = P(() => {
7188
+ const l = A();
7092
7189
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
7093
7190
  l.orderStatusReference = g;
7094
7191
  }).catch(v)), l.orderStatusReference;
7095
- }), u = R(() => {
7096
- const l = d();
7192
+ }), u = P(() => {
7193
+ const l = A();
7097
7194
  return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((g) => {
7098
7195
  l.orderStatusDetailReference = g;
7099
7196
  }).catch(v)), l.orderStatusDetailReference;
7100
- }), p = R(() => {
7101
- const l = d();
7197
+ }), p = P(() => {
7198
+ const l = A();
7102
7199
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
7103
7200
  l.paymentTypeReference = g;
7104
7201
  }).catch(v)), l.paymentTypeReference;
7105
- }), m = R(() => {
7106
- const l = d();
7202
+ }), f = P(() => {
7203
+ const l = A();
7107
7204
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
7108
7205
  l.partnerGroupReference = g;
7109
7206
  }).catch(v)), l.partnerGroupReference;
7110
- }), f = R(() => {
7111
- const l = d();
7207
+ }), m = P(() => {
7208
+ const l = A();
7112
7209
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
7113
7210
  l.productFileTypeReference = g;
7114
7211
  }).catch(v)), l.productFileTypeReference;
7115
- }), D = R(() => {
7116
- const l = d();
7212
+ }), D = P(() => {
7213
+ const l = A();
7117
7214
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
7118
7215
  l.resourceTypesReference = g;
7119
7216
  }).catch(v)), l.resourceTypesReference;
7120
- }), ie = R(() => {
7121
- const l = d();
7217
+ }), oe = P(() => {
7218
+ const l = A();
7122
7219
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
7123
7220
  l.salesDirectionsReference = g;
7124
7221
  }).catch(v)), l.salesDirectionsReference;
7125
- }), ne = R(() => {
7126
- const l = d();
7222
+ }), ce = P(() => {
7223
+ const l = A();
7127
7224
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
7128
7225
  l.sourcePrimaryInterestReference = g;
7129
7226
  }).catch(v)), l.sourcePrimaryInterestReference;
7130
- }), E = R(() => {
7131
- const l = d();
7227
+ }), E = P(() => {
7228
+ const l = A();
7132
7229
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
7133
7230
  l.deliveryTypeReference = g;
7134
7231
  }).catch(v)), l.deliveryTypeReference;
7135
- }), K = R(() => {
7136
- const l = d();
7137
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((g) => {
7232
+ }), K = P(() => {
7233
+ const l = A();
7234
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(dt).getManagers().then((g) => {
7138
7235
  l.managersList = g;
7139
7236
  }).catch(v)), l.managersList;
7140
- }), Te = R(() => {
7141
- const l = d();
7237
+ }), Te = P(() => {
7238
+ const l = A();
7142
7239
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
7143
7240
  l.warehousesReference = g;
7144
7241
  }).catch(v)), l.warehousesReference;
7145
- }), be = R(() => {
7146
- const l = d();
7242
+ }), be = P(() => {
7243
+ const l = A();
7147
7244
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
7148
7245
  l.propertyTypesReference = g;
7149
7246
  }).catch(v)), l.propertyTypesReference;
7150
- }), Se = R(() => {
7151
- const l = d();
7247
+ }), Se = P(() => {
7248
+ const l = A();
7152
7249
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
7153
7250
  l.priceCoefficientsReference = g;
7154
7251
  }).catch(v)), l.priceCoefficientsReference;
@@ -7157,7 +7254,7 @@ const d = W("common.references_private", () => {
7157
7254
  /**
7158
7255
  * Справочник каналов первичного интереса.
7159
7256
  */
7160
- channelPrimaryInterestsReference: n,
7257
+ channelPrimaryInterestsReference: i,
7161
7258
  /**
7162
7259
  * Справочник должностей контактных лиц.
7163
7260
  */
@@ -7173,7 +7270,7 @@ const d = W("common.references_private", () => {
7173
7270
  /**
7174
7271
  * Справочник операторов.
7175
7272
  */
7176
- operatorReference: i,
7273
+ operatorReference: n,
7177
7274
  /**
7178
7275
  * Справочник статусов оплаты заказа.
7179
7276
  */
@@ -7193,11 +7290,11 @@ const d = W("common.references_private", () => {
7193
7290
  /**
7194
7291
  * Справочник групп партнеров.
7195
7292
  */
7196
- partnerGroupsReference: m,
7293
+ partnerGroupsReference: f,
7197
7294
  /**
7198
7295
  * Справочник типов файлов продуктов/категорий.
7199
7296
  */
7200
- productFilesTypesReference: f,
7297
+ productFilesTypesReference: m,
7201
7298
  /**
7202
7299
  * Справочник типов ресурсов.
7203
7300
  */
@@ -7205,11 +7302,11 @@ const d = W("common.references_private", () => {
7205
7302
  /**
7206
7303
  * Справочник направлений продаж.
7207
7304
  */
7208
- salesDirectionsReference: ie,
7305
+ salesDirectionsReference: oe,
7209
7306
  /**
7210
7307
  * Справочник каналов первичного интереса.
7211
7308
  */
7212
- sourcePrimaryInterestsReference: ne,
7309
+ sourcePrimaryInterestsReference: ce,
7213
7310
  /**
7214
7311
  * Справочник типов доставки.
7215
7312
  */
@@ -7232,7 +7329,7 @@ const d = W("common.references_private", () => {
7232
7329
  priceCoefficientsReference: Se
7233
7330
  };
7234
7331
  });
7235
- class qt {
7332
+ class Ut {
7236
7333
  /**
7237
7334
  * Инициализирует экземпляр класса {@link MetaTagItem}.
7238
7335
  *
@@ -7250,7 +7347,7 @@ class qt {
7250
7347
  this.name = r.name, this.content = r.content;
7251
7348
  }
7252
7349
  }
7253
- class lr {
7350
+ class ur {
7254
7351
  /**
7255
7352
  * Инициализирует экземпляр класса {@link Seo}.
7256
7353
  *
@@ -7290,10 +7387,10 @@ class lr {
7290
7387
  */
7291
7388
  s(this, "tags");
7292
7389
  var e;
7293
- this.resourceType = new qr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new qt(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
7390
+ this.resourceType = new Nr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Ut(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
7294
7391
  }
7295
7392
  }
7296
- class ks extends h {
7393
+ class Is extends h {
7297
7394
  /**
7298
7395
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
7299
7396
  *
@@ -7301,7 +7398,7 @@ class ks extends h {
7301
7398
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
7302
7399
  */
7303
7400
  getResourceSeoData(r, e) {
7304
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new lr(t.data));
7401
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new ur(t.data));
7305
7402
  }
7306
7403
  /**
7307
7404
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -7312,7 +7409,7 @@ class ks extends h {
7312
7409
  * в случае ошибок в запросах.
7313
7410
  */
7314
7411
  saveResourceSeoData(r, e = {}) {
7315
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new lr(t.data), e);
7412
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new ur(t.data), e);
7316
7413
  }
7317
7414
  /**
7318
7415
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -7324,7 +7421,7 @@ class ks extends h {
7324
7421
  return this.delete(`/internal/seo/${r.slug}/${e}`);
7325
7422
  }
7326
7423
  }
7327
- class Ls extends h {
7424
+ class Os extends h {
7328
7425
  /**
7329
7426
  * Возвращает подсказки по адресам.
7330
7427
  *
@@ -7363,16 +7460,16 @@ class Ls extends h {
7363
7460
  */
7364
7461
  execSuggestionQuery(r, e) {
7365
7462
  return this.get(r, { query: e }).then((t) => {
7366
- const i = [...t];
7463
+ const n = [...t];
7367
7464
  let o = 1;
7368
- return i.forEach((c) => {
7465
+ return n.forEach((c) => {
7369
7466
  c.id = o++;
7370
- }), i;
7467
+ }), n;
7371
7468
  });
7372
7469
  }
7373
7470
  }
7374
- var Nt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Nt || {});
7375
- class Ut extends Rr {
7471
+ var Ht = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(Ht || {});
7472
+ class Mt extends Dr {
7376
7473
  /**
7377
7474
  * Инициализирует экземпляр класса {@link User}.
7378
7475
  *
@@ -7396,10 +7493,10 @@ class Ut extends Rr {
7396
7493
  * Роль ценообразования текущего пользователя.
7397
7494
  */
7398
7495
  s(this, "pricingRole");
7399
- this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new Cr(e.pricingRole) : void 0;
7496
+ this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new Rr(e.pricingRole) : void 0;
7400
7497
  }
7401
7498
  }
7402
- class _s extends h {
7499
+ class xs extends h {
7403
7500
  /**
7404
7501
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
7405
7502
  */
@@ -7415,41 +7512,41 @@ class _s extends h {
7415
7512
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
7416
7513
  }
7417
7514
  }
7418
- class Ft extends h {
7515
+ class Bt extends h {
7419
7516
  /**
7420
7517
  * Возвращает данные о текущем пользователе.
7421
7518
  */
7422
7519
  // eslint-disable-next-line class-methods-use-this
7423
7520
  getCurrentUser() {
7424
- return this.get("/internal/users/info", {}, (r) => new Ut(r.data), !0);
7521
+ return this.get("/internal/users/info", {}, (r) => new Mt(r.data), !0);
7425
7522
  }
7426
7523
  }
7427
- const Ht = W("common.user_state_private", () => {
7428
- const n = y({}), r = y(void 0);
7524
+ const jt = W("common.user_state_private", () => {
7525
+ const i = y({}), r = y(void 0);
7429
7526
  return {
7430
7527
  /**
7431
7528
  * Список загружаемых/загруженных на данный момент значений.
7432
7529
  */
7433
- dataLoaderList: n,
7530
+ dataLoaderList: i,
7434
7531
  /**
7435
7532
  * Данные о текущем пользователе.
7436
7533
  */
7437
7534
  currentUser: r
7438
7535
  };
7439
- }), Is = W("common.user_state", () => ({
7536
+ }), qs = W("common.user_state", () => ({
7440
7537
  /**
7441
7538
  * Данные о текущем пользователе.
7442
7539
  */
7443
- currentUser: R(() => {
7444
- const r = Ht();
7445
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Ft).getCurrentUser().then((e) => {
7540
+ currentUser: P(() => {
7541
+ const r = jt();
7542
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Bt).getCurrentUser().then((e) => {
7446
7543
  r.currentUser = e;
7447
7544
  }).catch(v).finally(() => {
7448
7545
  r.dataLoaderList.currentUser = !1;
7449
7546
  })), r.currentUser;
7450
7547
  })
7451
7548
  }));
7452
- class Os {
7549
+ class Ns {
7453
7550
  /**
7454
7551
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
7455
7552
  *
@@ -7473,168 +7570,171 @@ class Os {
7473
7570
  }
7474
7571
  }
7475
7572
  export {
7476
- Lt as AnyReference,
7477
- ct as AppBaseConfig,
7478
- Fe as BankAccount,
7479
- Ce as BasePaginationProvider,
7480
- gt as CalculationTypeEnum,
7481
- oe as Cart,
7482
- Qt as CartProvider,
7483
- Xt as CatalogProvider,
7484
- yr as CatalogableItem,
7573
+ Ot as AnyReference,
7574
+ lt as AppBaseConfig,
7575
+ Ue as BankAccount,
7576
+ ae as BasePaginationProvider,
7577
+ ft as CalculationTypeEnum,
7578
+ le as Cart,
7579
+ Zt as CartProvider,
7580
+ rs as CatalogProvider,
7581
+ wr as CatalogableItem,
7485
7582
  N as Category,
7583
+ tr as CategoryFilterSetting,
7486
7584
  rr as CategoryPricingRule,
7487
- br as ChannelPrimaryInterest,
7488
- Ts as City,
7489
- Ae as CityWithRegionAndCountry,
7490
- nr as Client,
7491
- at as ClientAdditionalData,
7492
- Re as ClientCategory,
7585
+ Sr as ChannelPrimaryInterest,
7586
+ ks as City,
7587
+ $e as CityWithRegionAndCountry,
7588
+ or as Client,
7589
+ Pt as ClientAdditionalData,
7590
+ Pe as ClientCategory,
7493
7591
  O as ClientDataProvider,
7494
- Zt as ClientPriceProvider,
7495
- es as ClientPriceTemplateProvider,
7496
- M as ClientProduct,
7497
- ss as ClientProductCategoryDataProvider,
7498
- is as ClientProductDataProvider,
7592
+ ts as ClientPriceProvider,
7593
+ ss as ClientPriceTemplateProvider,
7594
+ B as ClientProduct,
7595
+ os as ClientProductCategoryDataProvider,
7596
+ cs as ClientProductDataProvider,
7499
7597
  V as ClientShortInfo,
7500
- yt as ClientsAdditionalDataRequestTypeEnum,
7501
- us as ClientsListFilters,
7502
- ge as CodedIdentity,
7503
- gs as ConfiguratorProvider,
7504
- Pt as ConfiguratorsEnum,
7598
+ Ct as ClientsAdditionalDataRequestTypeEnum,
7599
+ gs as ClientsListFilters,
7600
+ fe as CodedIdentity,
7601
+ ys as ConfiguratorProvider,
7602
+ At as ConfiguratorsEnum,
7505
7603
  He as Contact,
7506
7604
  ar as ContactLinks,
7507
7605
  G as ContactPerson,
7508
- Ct as ContactPersonRelated,
7509
- _t as ContactPosition,
7606
+ Dt as ContactPersonRelated,
7607
+ xt as ContactPosition,
7510
7608
  Ie as ContactRelation,
7511
- Ar as ContragentBase,
7609
+ dr as ContragentBase,
7512
7610
  De as ContragentFactory,
7513
- $r as ContragentIc,
7514
- wt as ContragentPerson,
7515
- vt as ContragentUlNr,
7516
- Tr as ContragentUlR,
7611
+ Tr as ContragentIc,
7612
+ at as ContragentPerson,
7613
+ Rt as ContragentUlNr,
7614
+ br as ContragentUlR,
7517
7615
  ze as CostSourceEnum,
7518
- te as Country,
7616
+ se as Country,
7519
7617
  Ve as CuratedDirection,
7520
7618
  Ee as Curator,
7521
7619
  x as Currency,
7522
- Ls as DataSuggestionProvider,
7523
- ys as DateTimeProvider,
7524
- dr as DeletableNamedIdentity,
7525
- pe as DeliveryAddress,
7526
- F as DeliveryType,
7527
- Et as DetailedJwtPayload,
7528
- st as DeviceTypeResolutionConfig,
7529
- lt as DiscountShortInfo,
7530
- Os as FieldValidationResultData,
7620
+ Os as DataSuggestionProvider,
7621
+ Cs as DateTimeProvider,
7622
+ $r as DeletableNamedIdentity,
7623
+ he as DeliveryAddress,
7624
+ U as DeliveryType,
7625
+ Yt as DetailedJwtPayload,
7626
+ it as DeviceTypeResolutionConfig,
7627
+ ut as DiscountShortInfo,
7628
+ Ns as FieldValidationResultData,
7531
7629
  j as FilterGroup,
7532
- tr as FilterItem,
7630
+ sr as FilterItem,
7533
7631
  Ke as FilterOpEnum,
7534
- fr as GeoCoordinates,
7535
- pt as HiddenCatalogableItem,
7536
- fe as HttpCachedRequester,
7537
- it as HttpParamsConfig,
7632
+ vt as FilterSettings,
7633
+ yr as GeoCoordinates,
7634
+ ht as HiddenCatalogableItem,
7635
+ ye as HttpCachedRequester,
7636
+ nt as HttpParamsConfig,
7538
7637
  h as HttpRequester,
7539
7638
  J as Identity,
7540
- ht as Image,
7541
- B as JwtPayload,
7542
- ae as Manager,
7639
+ gt as Image,
7640
+ M as JwtPayload,
7641
+ Ce as Manager,
7543
7642
  Je as ManagerCommon,
7544
- vs as ManagerDataFactory,
7545
- Dt as ManagerDataProvider,
7546
- qt as MetaTagItem,
7643
+ Rs as ManagerDataFactory,
7644
+ dt as ManagerDataProvider,
7645
+ Ut as MetaTagItem,
7547
7646
  S as NamedIdentity,
7548
7647
  X as Offer,
7549
- _r as OfferShortInfo,
7550
- Cs as OffersDataProvider,
7551
- as as OffersListFilters,
7552
- Or as Operator,
7648
+ Ir as OfferShortInfo,
7649
+ Ds as OffersDataProvider,
7650
+ Ps as OffersListFilters,
7651
+ xr as Operator,
7553
7652
  z as Opf,
7554
- U as OpfEnum,
7653
+ F as OpfEnum,
7555
7654
  b as Order,
7556
- At as OrderAction,
7557
- Ps as OrderEditorData,
7558
- Ir as OrderInfo,
7559
- dt as OrderItem,
7560
- wr as OrderItemBase,
7561
- It as OrderPaymentStatus,
7562
- kr as OrderShortInfo,
7563
- $e as OrderStatus,
7564
- Ot as OrderStatusDetail,
7565
- kt as OrderStatusDetailEnum,
7566
- St as OrderStatusEnum,
7567
- $t as OrderStatusHistoryInfo,
7568
- Ds as OrdersDataProvider,
7569
- Rs as OrdersListFilters,
7655
+ bt as OrderAction,
7656
+ As as OrderEditorData,
7657
+ Or as OrderInfo,
7658
+ Tt as OrderItem,
7659
+ vr as OrderItemBase,
7660
+ qt as OrderPaymentStatus,
7661
+ Lr as OrderShortInfo,
7662
+ de as OrderStatus,
7663
+ Nt as OrderStatusDetail,
7664
+ It as OrderStatusDetailEnum,
7665
+ _t as OrderStatusEnum,
7666
+ St as OrderStatusHistoryInfo,
7667
+ ds as OrdersDataProvider,
7668
+ $s as OrdersListFilters,
7570
7669
  Qe as PaginationFiltersBase,
7571
- se as PartnerGroup,
7572
- xr as PaymentType,
7573
- Pe as PreferencesStorageProvider,
7670
+ ie as PartnerGroup,
7671
+ qr as PaymentType,
7672
+ Re as PreferencesStorageProvider,
7574
7673
  Oe as PriceAnalyze,
7575
- ds as PriceAnalyzeProvider,
7576
- de as PriceCoefficient,
7674
+ Ts as PriceAnalyzeProvider,
7675
+ Ae as PriceCoefficient,
7577
7676
  mr as PriceCoefficientEnum,
7578
- As as PriceHistoryDataProvider,
7579
- Tt as PriceHistoryItem,
7677
+ bs as PriceHistoryDataProvider,
7678
+ kt as PriceHistoryItem,
7580
7679
  Z as PriceTemplate,
7581
7680
  Le as PriceTemplateCategory,
7582
- ce as PriceTemplateClient,
7681
+ ue as PriceTemplateClient,
7583
7682
  Pr as PriceTemplateICatalogableItem,
7584
7683
  _e as PriceTemplateProduct,
7585
- ns as PriceTemplateProvider,
7586
- ue as PricingRole,
7587
- os as PricingRoleProvider,
7588
- Ue as PrimaryCatalogableItem,
7684
+ ls as PriceTemplateProvider,
7685
+ pe as PricingRole,
7686
+ us as PricingRoleProvider,
7687
+ Fe as PrimaryCatalogableItem,
7589
7688
  I as Product,
7590
- rs as ProductCategoryDataProvider,
7591
- ts as ProductDataProvider,
7592
- xt as ProductFileType,
7689
+ is as ProductCategoryDataProvider,
7690
+ ns as ProductDataProvider,
7691
+ Ft as ProductFileType,
7692
+ yt as ProductFilterTypeEnum,
7593
7693
  Ge as ProductPriceCoefficient,
7594
- bt as ProductPriceHistory,
7694
+ Lt as ProductPriceHistory,
7595
7695
  er as ProductUnit,
7596
- cs as PropertiesProvider,
7597
- le as Property,
7598
- Dr as PropertyType,
7696
+ ps as PropertiesProvider,
7697
+ ee as Property,
7698
+ Ar as PropertyType,
7599
7699
  mt as PropertyTypeEnum,
7600
7700
  Y as PropertyValue,
7601
- $s as RecommendationsDataProvider,
7602
- cr as RecommendationsList,
7701
+ Ss as RecommendationsDataProvider,
7702
+ lr as RecommendationsList,
7603
7703
  w as Reference,
7604
- bs as ReferenceDataFactory,
7704
+ Ls as ReferenceDataFactory,
7605
7705
  T as ReferenceDataProvider,
7606
7706
  me as Region,
7607
- qr as ResourceType,
7707
+ Nr as ResourceType,
7608
7708
  q as SalesDirection,
7609
- nt as SentryConfig,
7610
- lr as Seo,
7611
- ks as SeoDataProvider,
7612
- Sr as SourcePrimaryInterest,
7613
- ut as StockCount,
7614
- ms as TableDataPagination,
7615
- Rt as TableDataPaginationRequestParams,
7616
- fs as TableDataSortRequestParams,
7617
- ls as TemplateProductCategoryDataProvider,
7618
- Yt as TemplatesListFilters,
7709
+ ot as SentryConfig,
7710
+ ur as Seo,
7711
+ Is as SeoDataProvider,
7712
+ kr as SourcePrimaryInterest,
7713
+ pt as StockCount,
7714
+ ws as TableDataPagination,
7715
+ $t as TableDataPaginationRequestParams,
7716
+ vs as TableDataSortRequestParams,
7717
+ hs as TemplateProductCategoryDataProvider,
7718
+ es as TemplatesListFilters,
7619
7719
  We as TypedInstanceFactory,
7620
- Lr as UnitsHelper,
7621
- ps as UnknownClientDataProvider,
7622
- gr as UpdatableNamedIdentity,
7623
- Ut as User,
7624
- _s as UserAuthDataProvider,
7625
- Rr as UserCommonInfo,
7626
- Ft as UserDataProvider,
7627
- Cr as UserPricingRole,
7720
+ _r as UnitsHelper,
7721
+ fs as UnknownClientDataProvider,
7722
+ fr as UpdatableNamedIdentity,
7723
+ Mt as User,
7724
+ xs as UserAuthDataProvider,
7725
+ Dr as UserCommonInfo,
7726
+ Bt as UserDataProvider,
7727
+ Rr as UserPricingRole,
7628
7728
  _ as UserShortInfo,
7629
- Nt as UserTypeEnum,
7630
- hs as VersionConfig,
7631
- we as Warehouse,
7632
- ot as WebSocketConfig,
7633
- sr as findCatalogItemByIdRecursive,
7634
- ir as flattenCatalogItems,
7635
- ws as pluralize,
7729
+ Ht as UserTypeEnum,
7730
+ ms as VersionConfig,
7731
+ ve as Warehouse,
7732
+ ct as WebSocketConfig,
7733
+ ir as findCatalogItemByIdRecursive,
7734
+ nr as flattenCatalogItems,
7735
+ as as pluralize,
7636
7736
  ke as useAuthStateStore,
7637
7737
  k as useBaseConfigStateStore,
7638
- Ss as useReferencesStore,
7639
- Is as useUserStateStore
7738
+ _s as useReferencesStore,
7739
+ qs as useUserStateStore
7640
7740
  };