@snabcentr/common-lib 2.13.2 → 2.15.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 (77) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +1 -1
  3. package/dist/sc-common-lib.js +1136 -735
  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/dist/src/http/classes/http-cached-requester.d.ts +2 -1
  32. package/dist/src/http/classes/http-cached-requester.d.ts.map +1 -1
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/references/classes/city-with-user-region.d.ts +19 -0
  36. package/dist/src/references/classes/city-with-user-region.d.ts.map +1 -0
  37. package/dist/src/references/classes/index.d.ts +1 -0
  38. package/dist/src/references/classes/index.d.ts.map +1 -1
  39. package/dist/src/references/interfaces/i-city-with-user-region.d.ts +12 -0
  40. package/dist/src/references/interfaces/i-city-with-user-region.d.ts.map +1 -0
  41. package/dist/src/references/interfaces/index.d.ts +1 -0
  42. package/dist/src/references/interfaces/index.d.ts.map +1 -1
  43. package/dist/src/references/providers/reference-data-provider.d.ts +54 -0
  44. package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
  45. package/dist/src/user/classes/user-short-info.d.ts +4 -0
  46. package/dist/src/user/classes/user-short-info.d.ts.map +1 -1
  47. package/dist/src/user/interfaces/i-user-short-info.d.ts +4 -0
  48. package/dist/src/user/interfaces/i-user-short-info.d.ts.map +1 -1
  49. package/dist/src/user-regions/classes/index.d.ts +5 -0
  50. package/dist/src/user-regions/classes/index.d.ts.map +1 -0
  51. package/dist/src/user-regions/classes/user-region-employee.d.ts +23 -0
  52. package/dist/src/user-regions/classes/user-region-employee.d.ts.map +1 -0
  53. package/dist/src/user-regions/classes/user-region-short-info.d.ts +18 -0
  54. package/dist/src/user-regions/classes/user-region-short-info.d.ts.map +1 -0
  55. package/dist/src/user-regions/classes/user-region.d.ts +24 -0
  56. package/dist/src/user-regions/classes/user-region.d.ts.map +1 -0
  57. package/dist/src/user-regions/classes/user-regions-list-filters.d.ts +30 -0
  58. package/dist/src/user-regions/classes/user-regions-list-filters.d.ts.map +1 -0
  59. package/dist/src/user-regions/index.d.ts +4 -0
  60. package/dist/src/user-regions/index.d.ts.map +1 -0
  61. package/dist/src/user-regions/interfaces/i-user-region-employee.d.ts +16 -0
  62. package/dist/src/user-regions/interfaces/i-user-region-employee.d.ts.map +1 -0
  63. package/dist/src/user-regions/interfaces/i-user-region-save-data.d.ts +18 -0
  64. package/dist/src/user-regions/interfaces/i-user-region-save-data.d.ts.map +1 -0
  65. package/dist/src/user-regions/interfaces/i-user-region-short-info.d.ts +11 -0
  66. package/dist/src/user-regions/interfaces/i-user-region-short-info.d.ts.map +1 -0
  67. package/dist/src/user-regions/interfaces/i-user-region.d.ts +17 -0
  68. package/dist/src/user-regions/interfaces/i-user-region.d.ts.map +1 -0
  69. package/dist/src/user-regions/interfaces/i-user-regions-list-filters.d.ts +19 -0
  70. package/dist/src/user-regions/interfaces/i-user-regions-list-filters.d.ts.map +1 -0
  71. package/dist/src/user-regions/interfaces/index.d.ts +6 -0
  72. package/dist/src/user-regions/interfaces/index.d.ts.map +1 -0
  73. package/dist/src/user-regions/providers/index.d.ts +2 -0
  74. package/dist/src/user-regions/providers/index.d.ts.map +1 -0
  75. package/dist/src/user-regions/providers/user-region-provider.d.ts +93 -0
  76. package/dist/src/user-regions/providers/user-region-provider.d.ts.map +1 -0
  77. 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";
6
- import { objectToCamel as je, objectToSnake as Ye } from "ts-case-convert";
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 {
1
+ var jr = Object.defineProperty;
2
+ var Gr = (n, r, e) => r in n ? jr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => Gr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as yr } from "jwt-decode";
5
+ import { merge as we, isNil as d, isEmpty as se, noop as v, mapValues as wr, isArray as B, every as Wr, split as zr, isString as C, constant as Jr, toUpper as Er, cloneDeep as Vr, toLower as Kr, isFunction as We, map as ae, forEach as Qr, isDate as Fe, isObject as ze, omitBy as vr } from "lodash-es";
6
+ import { objectToCamel as Je, objectToSnake as rr } from "ts-case-convert";
7
+ import { defineStore as J } from "pinia";
8
+ import { ref as w, markRaw as Yr, computed as D } from "vue";
9
+ import { isAfter as tr, parseISO as a, startOfToday as He, format as L, addBusinessDays as Xr, endOfTomorrow as Zr, startOfTomorrow as et, endOfYesterday as rt, startOfYesterday as tt, endOfToday as st, endOfDay as it, startOfDay as nt, addSeconds as ot } from "date-fns";
10
+ import ct, { CanceledError as lt } 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
+ we(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 = yr(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 ss 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
+ we(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(yr(e)));
155
155
  }
156
156
  }
157
- class st {
157
+ class ut {
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 pt {
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 ht {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -243,7 +243,7 @@ class nt {
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class ot {
246
+ class gt {
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 mt {
286
286
  /**
287
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
288
288
  *
@@ -326,18 +326,18 @@ class ct {
326
326
  */
327
327
  s(this, "dateFormats");
328
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({
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new pt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ut(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ht({
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 gt(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
335
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
336
336
  };
337
337
  }
338
338
  }
339
- const k = W("common.config", () => {
340
- const n = y(new ct());
339
+ const k = J("common.config", () => {
340
+ const n = w(new mt());
341
341
  return {
342
342
  /**
343
343
  * Конфигурационные данные приложения.
@@ -355,11 +355,11 @@ const k = W("common.config", () => {
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (t) => {
358
- n.value = he(n.value, t);
358
+ n.value = we(n.value, t);
359
359
  }
360
360
  };
361
361
  });
362
- class Pe {
362
+ class De {
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 || tr(a(t.availableFor) || He(), /* @__PURE__ */ new Date())) {
382
+ if (d(t.data) || se(t.data))
383
383
  throw new Error("Data is empty");
384
384
  return t.data;
385
385
  }
@@ -401,7 +401,7 @@ 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) || se(e))
405
405
  throw new Error("Data is empty");
406
406
  const i = JSON.stringify({
407
407
  availableFor: t,
@@ -452,7 +452,7 @@ class Pe {
452
452
  const i = localStorage.getItem(t);
453
453
  if (i) {
454
454
  const o = JSON.parse(i);
455
- o.availableFor && !Xe(C(o.availableFor) || Ne(), /* @__PURE__ */ new Date()) && r.push(t);
455
+ o.availableFor && !tr(a(o.availableFor) || He(), /* @__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 sr(n) {
472
472
  try {
473
- const r = B.getJwtPayload(n);
473
+ const r = M.getJwtPayload(n);
474
474
  return new Date(r.exp * 1e3);
475
475
  } catch {
476
476
  return;
477
477
  }
478
478
  }
479
- const Q = W("common.auth_state_private", () => {
480
- const n = y(
479
+ const Y = J("common.auth_state_private", () => {
480
+ const n = w(
481
481
  (() => {
482
482
  var u;
483
- const o = Pe.getActualDataFromStorage(
483
+ const o = De.getActualDataFromStorage(
484
484
  "sc.token"
485
485
  /* JwtToken */
486
486
  );
@@ -489,11 +489,11 @@ 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());
492
+ ), r = w(void 0), e = w(void 0), t = Yr(/* @__PURE__ */ new Map());
493
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;
494
+ e.value = void 0, d(n.value) || n.value.then((o) => {
495
+ const c = M.getJwtPayload(o);
496
+ e.value = c.exp * 1e3 > Date.now() ? wr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(v);
498
498
  }
499
499
  return {
@@ -518,47 +518,47 @@ const Q = W("common.auth_state_private", () => {
518
518
  */
519
519
  recalculateUserPermissions: i
520
520
  };
521
- }), ke = W("common.auth_state", () => {
522
- const n = R(() => {
523
- const o = Q();
524
- if ($(o.jwtToken) && !$(o.jwtTokenUpdater)) {
521
+ }), Ie = J("common.auth_state", () => {
522
+ const n = D(() => {
523
+ const o = Y();
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), De.saveActualDataToStorage("sc.token", u, sr(u)), o.recalculateUserPermissions();
528
528
  }).catch(v);
529
529
  }
530
530
  return o.jwtToken;
531
531
  });
532
532
  function r(o) {
533
- Q().jwtTokenUpdater = o;
533
+ Y().jwtTokenUpdater = o;
534
534
  }
535
535
  function e(o) {
536
- const c = Q();
537
- c.jwtToken = Promise.resolve(o), Pe.saveActualDataToStorage("sc.token", o, Ze(o)), c.recalculateUserPermissions();
536
+ const c = Y();
537
+ c.jwtToken = Promise.resolve(o), De.saveActualDataToStorage("sc.token", o, sr(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function t() {
540
- const o = Q();
541
- o.jwtToken = void 0, o.userPermissions = void 0, Pe.saveActualDataToStorage("sc.token", void 0);
540
+ const o = Y();
541
+ o.jwtToken = void 0, o.userPermissions = void 0, De.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
543
  function i(o) {
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;
544
+ const c = Y();
545
+ !d(c.jwtToken) && d(c.userPermissions) && c.jwtToken.then((m) => {
546
+ const f = M.getJwtPayload(m);
547
+ c.userPermissions = f.exp * 1e3 > Date.now() ? wr(f.resourceAccess, (R) => (R == null ? void 0 : R.roles) ?? []) : void 0;
548
548
  }).catch(v);
549
- const u = H(o) ? o.join(" && ") : o;
549
+ const u = B(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
- const p = R(() => {
552
+ const p = D(() => {
553
553
  const m = (f) => {
554
- var K;
555
- const D = Hr(f, ".");
556
- if (D.length < 2)
554
+ var Q;
555
+ const R = zr(f, ".");
556
+ if (R.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 [pe, he] = R, K = (Q = Y().userPermissions) == null ? void 0 : Q[pe];
559
+ return B(K) && K.includes(he);
560
560
  };
561
- return H(o) ? Fr(o, (f) => m(f)) : m(o);
561
+ return B(o) ? Wr(o, (f) => m(f)) : m(o);
562
562
  });
563
563
  return c.userPermissionsComputedRefs.set(u, p), p;
564
564
  }
@@ -591,7 +591,7 @@ const Q = W("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class J {
594
+ class E {
595
595
  /**
596
596
  * Инициализирует экземпляр класса {@link Identity}.
597
597
  *
@@ -607,16 +607,16 @@ 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
- class S extends J {
619
+ class b extends E {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,7 +631,7 @@ class S extends J {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class _ extends S {
634
+ class I extends b {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link UserShortInfo}.
637
637
  *
@@ -643,10 +643,14 @@ class _ extends S {
643
643
  * Тип пользователя.
644
644
  */
645
645
  s(this, "type");
646
- this.type = e == null ? void 0 : e.type;
646
+ /**
647
+ * @inheritDoc
648
+ */
649
+ s(this, "isActive");
650
+ this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
647
651
  }
648
652
  }
649
- class lt extends S {
653
+ class ft extends b {
650
654
  /**
651
655
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
652
656
  *
@@ -682,10 +686,10 @@ class lt extends S {
682
686
  * Дата и время удаления.
683
687
  */
684
688
  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;
689
+ 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 I(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
690
  }
687
691
  }
688
- class gr extends S {
692
+ class Cr extends b {
689
693
  /**
690
694
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
691
695
  *
@@ -697,10 +701,10 @@ class gr extends S {
697
701
  * Дата и время последнего изменения.
698
702
  */
699
703
  s(this, "updatedAt");
700
- this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
704
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? a(e.updatedAt) : e == null ? void 0 : e.updatedAt;
701
705
  }
702
706
  }
703
- class Z extends gr {
707
+ class ee extends Cr {
704
708
  /**
705
709
  * Инициализирует экземпляр класса {@link PriceTemplate}.
706
710
  *
@@ -720,11 +724,11 @@ class Z extends gr {
720
724
  * Данные о пользователе, создавшем шаблон прайс-листа.
721
725
  */
722
726
  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;
727
+ 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 I(e.owner) : void 0;
724
728
  }
725
729
  }
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 || {});
727
- class w extends S {
730
+ var ar = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ar || {});
731
+ class y extends b {
728
732
  /**
729
733
  * Инициализирует экземпляр класса {@link Reference}.
730
734
  *
@@ -743,15 +747,15 @@ class w extends S {
743
747
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
744
748
  }
745
749
  }
746
- class de extends w {
750
+ class Te extends y {
747
751
  /**
748
752
  * Возвращает значение справочника коэффициента розничной цены.
749
753
  */
750
754
  static getRetailPriceCoefficient() {
751
- return { id: -2, slug: mr.Retail, name: "Розн. цена", guid: "", isNewRec: Br(!0) };
755
+ return { id: -2, slug: ar.Retail, name: "Розн. цена", guid: "", isNewRec: Jr(!0) };
752
756
  }
753
757
  }
754
- class Ge {
758
+ class Ee {
755
759
  /**
756
760
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
757
761
  *
@@ -778,10 +782,10 @@ class Ge {
778
782
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
779
783
  */
780
784
  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;
785
+ this.coefficient = new Te(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
786
  }
783
787
  }
784
- class fr {
788
+ class Rr {
785
789
  /**
786
790
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
787
791
  *
@@ -799,9 +803,9 @@ class fr {
799
803
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
800
804
  }
801
805
  }
802
- class F extends w {
806
+ class H extends y {
803
807
  }
804
- class we extends w {
808
+ class Re extends y {
805
809
  /**
806
810
  * Инициализирует экземпляр класса {@link Warehouse}.
807
811
  *
@@ -830,10 +834,10 @@ class we extends w {
830
834
  * Координаты склада.
831
835
  */
832
836
  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);
837
+ 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 H(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Rr(e == null ? void 0 : e.coordinates);
834
838
  }
835
839
  }
836
- class ut {
840
+ class yt {
837
841
  /**
838
842
  * Инициализирует экземпляр класса {@link StockCount}.
839
843
  *
@@ -848,10 +852,10 @@ class ut {
848
852
  * Количество остатков товара на складе.
849
853
  */
850
854
  s(this, "count");
851
- this.warehouse = new we(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
855
+ this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
852
856
  }
853
857
  }
854
- class x extends S {
858
+ class N extends b {
855
859
  /**
856
860
  * Инициализирует экземпляр класса {@link Currency}.
857
861
  *
@@ -878,7 +882,7 @@ class x extends S {
878
882
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
879
883
  }
880
884
  }
881
- class er extends S {
885
+ class ir extends b {
882
886
  /**
883
887
  * Инициализирует экземпляр класса {@link ProductUnit}.
884
888
  *
@@ -905,7 +909,7 @@ class er extends S {
905
909
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
906
910
  }
907
911
  }
908
- class ge extends S {
912
+ class ve extends b {
909
913
  /**
910
914
  * Инициализирует экземпляр класса {@link NamedIdentity}.
911
915
  *
@@ -920,7 +924,7 @@ class ge extends S {
920
924
  this.code = (e == null ? void 0 : e.code) ?? "";
921
925
  }
922
926
  }
923
- class yr extends ge {
927
+ class Pr extends ve {
924
928
  /**
925
929
  * Инициализирует экземпляр класса {@link CatalogableItem}.
926
930
  *
@@ -939,7 +943,7 @@ class yr extends ge {
939
943
  this.slug = (e == null ? void 0 : e.slug) ?? "";
940
944
  }
941
945
  }
942
- class pt extends yr {
946
+ class wt extends Pr {
943
947
  /**
944
948
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
945
949
  *
@@ -954,7 +958,7 @@ class pt extends yr {
954
958
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
955
959
  }
956
960
  }
957
- class ht {
961
+ class vt {
958
962
  /**
959
963
  * Инициализирует экземпляр класса {@link Image}.
960
964
  *
@@ -977,7 +981,7 @@ class ht {
977
981
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
978
982
  }
979
983
  }
980
- class Ue extends yr {
984
+ class Be extends Pr {
981
985
  /**
982
986
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
983
987
  *
@@ -992,7 +996,7 @@ class Ue extends yr {
992
996
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
993
997
  }
994
998
  }
995
- class I extends pt {
999
+ class _ extends wt {
996
1000
  /**
997
1001
  * Инициализирует экземпляр класса {@link Product}.
998
1002
  *
@@ -1069,9 +1073,9 @@ class I extends pt {
1069
1073
  * Список коэффициентов цен на продукт.
1070
1074
  */
1071
1075
  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";
1076
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new ir(e.unit) : new ir(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new N(e.currency) : new N(), 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 = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new yt(p))) ?? [], this.type = "product";
1073
1077
  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);
1078
+ t && (this.category = new Be({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Be(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new vt(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 Ee(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1075
1079
  }
1076
1080
  /**
1077
1081
  * Возвращает признак, что это измеряемый товар.
@@ -1092,8 +1096,8 @@ class I extends pt {
1092
1096
  return this.retailCostRub ?? this.costRub;
1093
1097
  }
1094
1098
  }
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 {
1099
+ var Ve = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ve || {});
1100
+ class j extends _ {
1097
1101
  /**
1098
1102
  * Инициализирует экземпляр класса {@link ClientProduct}.
1099
1103
  *
@@ -1129,10 +1133,10 @@ class M extends I {
1129
1133
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1130
1134
  */
1131
1135
  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;
1136
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ve.Product, this.discount = e != null && e.discount ? new ft(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ee(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
1137
  }
1134
1138
  }
1135
- class ve extends Ue {
1139
+ class le extends Be {
1136
1140
  /**
1137
1141
  * Инициализирует экземпляр класса {@link BaseCategory}.
1138
1142
  *
@@ -1156,10 +1160,10 @@ class ve extends Ue {
1156
1160
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
1157
1161
  */
1158
1162
  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;
1163
+ 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]) => [Er(t), i])) : void 0;
1160
1164
  }
1161
1165
  }
1162
- class wr extends J {
1166
+ class Dr extends E {
1163
1167
  /**
1164
1168
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1165
1169
  *
@@ -1235,10 +1239,10 @@ class wr extends J {
1235
1239
  * @inheritDoc
1236
1240
  */
1237
1241
  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;
1242
+ this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new le(), this.currency = e.currency ? new N(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Vr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new I(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1239
1243
  }
1240
1244
  }
1241
- let vr = class extends wr {
1245
+ let Ar = class extends Dr {
1242
1246
  /**
1243
1247
  * Инициализирует экземпляр класса {@link OrderItem}.
1244
1248
  *
@@ -1282,10 +1286,10 @@ let vr = class extends wr {
1282
1286
  * @inheritDoc
1283
1287
  */
1284
1288
  s(this, "currency");
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);
1289
+ 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 = B(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new N(e.currency);
1286
1290
  }
1287
1291
  };
1288
- class oe {
1292
+ class ge {
1289
1293
  /**
1290
1294
  * Инициализирует экземпляр класса {@link Cart}.
1291
1295
  *
@@ -1304,10 +1308,10 @@ class oe {
1304
1308
  * @inheritDoc
1305
1309
  */
1306
1310
  s(this, "directionsSum");
1307
- this.items = r.items.map((e) => new vr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1311
+ this.items = r.items.map((e) => new Ar(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1308
1312
  }
1309
1313
  }
1310
- class We {
1314
+ class Ke {
1311
1315
  /**
1312
1316
  * Инициализирует экземпляр указанного класса.
1313
1317
  *
@@ -1365,7 +1369,7 @@ const P = class P {
1365
1369
  // eslint-disable-next-line class-methods-use-this
1366
1370
  s(this, "authRequestInterceptor", async (r) => {
1367
1371
  let e;
1368
- return $(ke().jwtToken) || (e = await ke().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1372
+ return d(Ie().jwtToken) || (e = await Ie().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1369
1373
  });
1370
1374
  /**
1371
1375
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -1380,7 +1384,7 @@ const P = class P {
1380
1384
  * @param request Данные запроса.
1381
1385
  */
1382
1386
  // 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));
1387
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = rr(r.params)), ["put", "patch", "post"].includes(Kr(r.method)) && r.data && (r.data = rr(r.data))), r));
1384
1388
  /**
1385
1389
  * Перехватчик ошибок ответов на запрос.
1386
1390
  *
@@ -1389,7 +1393,7 @@ const P = class P {
1389
1393
  s(this, "authErrorsResponseInterceptors", (r) => {
1390
1394
  var t;
1391
1395
  const e = r.rawError ? (t = r.rawError) == null ? void 0 : t.config : void 0;
1392
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ke().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1396
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Ie().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1393
1397
  });
1394
1398
  /**
1395
1399
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -1400,7 +1404,7 @@ const P = class P {
1400
1404
  s(this, "canceledResponseInterceptor", (r) => {
1401
1405
  const e = r.rawError ?? r;
1402
1406
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1403
- throw new tt("Request canceled");
1407
+ throw new lt("Request canceled");
1404
1408
  return Promise.reject(r);
1405
1409
  });
1406
1410
  /**
@@ -1416,8 +1420,8 @@ const P = class P {
1416
1420
  * @param response Данные ответа на запрос.
1417
1421
  */
1418
1422
  // eslint-disable-next-line class-methods-use-this
1419
- s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = je(r.data)), r));
1420
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = rt.create({
1423
+ s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Je(r.data)), r));
1424
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = ct.create({
1421
1425
  headers: {
1422
1426
  Accept: "application/json",
1423
1427
  "Content-Type": "application/json"
@@ -1481,7 +1485,7 @@ const P = class P {
1481
1485
  * @param type Тип данных, которыми оперирует метод.
1482
1486
  */
1483
1487
  static getInstance(r) {
1484
- return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = We.simpleInstanceInitializer(r)), P.instances[r.name];
1488
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = Ke.simpleInstanceInitializer(r)), P.instances[r.name];
1485
1489
  }
1486
1490
  /**
1487
1491
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1490,8 +1494,8 @@ const P = class P {
1490
1494
  */
1491
1495
  static convertHttpErrorResponse(r) {
1492
1496
  var e, t;
1493
- if ($(r) || !$(r.request) || !$(r.response)) {
1494
- const i = $(r) ? {} : r == null ? void 0 : r.response;
1497
+ if (d(r) || !d(r.request) || !d(r.response)) {
1498
+ const i = d(r) ? {} : r == null ? void 0 : r.response;
1495
1499
  return Promise.reject({
1496
1500
  status: (i == null ? void 0 : i.status) ?? 0,
1497
1501
  statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
@@ -1595,7 +1599,7 @@ s(P, "requestHooks", []), /**
1595
1599
  */
1596
1600
  s(P, "responseHooks", []);
1597
1601
  let h = P;
1598
- class Qt extends h {
1602
+ class ns extends h {
1599
1603
  /**
1600
1604
  * Возвращает содержимое корзины указанного клиента.
1601
1605
  *
@@ -1604,7 +1608,7 @@ class Qt extends h {
1604
1608
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1605
1609
  */
1606
1610
  getCart(r) {
1607
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new oe(e.data));
1611
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ge(e.data));
1608
1612
  }
1609
1613
  /**
1610
1614
  * Удаляет всё содержимое корзины.
@@ -1642,7 +1646,7 @@ class Qt extends h {
1642
1646
  is_additional_sale: e.isAdditionalSale,
1643
1647
  ...e.configuratorParams
1644
1648
  },
1645
- (i) => new oe(i.data),
1649
+ (i) => new ge(i.data),
1646
1650
  t
1647
1651
  );
1648
1652
  }
@@ -1672,7 +1676,7 @@ class Qt extends h {
1672
1676
  is_additional_sale: e.isAdditionalSale,
1673
1677
  ...e.configuratorParams
1674
1678
  },
1675
- (i) => new oe(i.data),
1679
+ (i) => new ge(i.data),
1676
1680
  t
1677
1681
  );
1678
1682
  }
@@ -1685,7 +1689,7 @@ class Qt extends h {
1685
1689
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_delete_item
1686
1690
  */
1687
1691
  deleteCartItem(r, e) {
1688
- return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new oe(t.data));
1692
+ return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new ge(t.data));
1689
1693
  }
1690
1694
  /**
1691
1695
  * Добавляет продукты в корзину из файла CSV.
@@ -1696,7 +1700,7 @@ class Qt extends h {
1696
1700
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1697
1701
  */
1698
1702
  addCartItemFromCSV(r, e) {
1699
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new oe(t.data));
1703
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new ge(t.data));
1700
1704
  }
1701
1705
  /**
1702
1706
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1709,8 +1713,8 @@ class Qt extends h {
1709
1713
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1710
1714
  }
1711
1715
  }
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 {
1716
+ var Ct = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ct || {}), at = /* @__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))(at || {}), Rt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(Rt || {});
1717
+ class U extends le {
1714
1718
  /**
1715
1719
  * Инициализирует экземпляр класса {@link Category}.
1716
1720
  *
@@ -1727,10 +1731,10 @@ class N extends ve {
1727
1731
  * Список продуктов категории.
1728
1732
  */
1729
1733
  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));
1734
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new U(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
1731
1735
  }
1732
1736
  }
1733
- class ar {
1737
+ class $r {
1734
1738
  /**
1735
1739
  * Инициализирует экземпляр класса {@link ContactLinks}.
1736
1740
  *
@@ -1748,9 +1752,9 @@ class ar {
1748
1752
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1749
1753
  }
1750
1754
  }
1751
- class q extends w {
1755
+ class x extends y {
1752
1756
  }
1753
- class Je extends S {
1757
+ class Qe extends b {
1754
1758
  /**
1755
1759
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1756
1760
  *
@@ -1778,12 +1782,12 @@ class Je extends S {
1778
1782
  * @inheritDoc
1779
1783
  */
1780
1784
  s(this, "isRegionalDirector");
1781
- this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ar(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1785
+ this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new $r(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1782
1786
  }
1783
1787
  }
1784
- class Ve extends w {
1788
+ class Ye extends y {
1785
1789
  }
1786
- class Cr extends S {
1790
+ class Tr extends b {
1787
1791
  /**
1788
1792
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1789
1793
  *
@@ -1806,7 +1810,7 @@ class Cr extends S {
1806
1810
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1807
1811
  }
1808
1812
  }
1809
- class ae extends Je {
1813
+ class Pe extends Qe {
1810
1814
  /**
1811
1815
  * Инициализирует экземпляр класса {@link Manager}.
1812
1816
  *
@@ -1843,10 +1847,10 @@ class ae extends Je {
1843
1847
  * Список направлений кураторства.
1844
1848
  */
1845
1849
  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))) ?? [];
1850
+ 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 Tr(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new Ye(i))) ?? [];
1847
1851
  }
1848
1852
  }
1849
- class ft extends ve {
1853
+ class Pt extends le {
1850
1854
  /**
1851
1855
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1852
1856
  *
@@ -1874,10 +1878,10 @@ class ft extends ve {
1874
1878
  * Данные о менеджере за которым закреплена категория.
1875
1879
  */
1876
1880
  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;
1881
+ 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 Pe(e.manager) : void 0;
1878
1882
  }
1879
1883
  }
1880
- class Re extends ft {
1884
+ class Ae extends Pt {
1881
1885
  /**
1882
1886
  * Инициализирует экземпляр класса {@link ClientCategory}.
1883
1887
  *
@@ -1894,10 +1898,10 @@ class Re extends ft {
1894
1898
  * Список продуктов категории.
1895
1899
  */
1896
1900
  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));
1901
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Ae(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
1898
1902
  }
1899
1903
  }
1900
- class Pr {
1904
+ class dr {
1901
1905
  /**
1902
1906
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1903
1907
  *
@@ -1912,10 +1916,10 @@ class Pr {
1912
1916
  * Процент, который прибавляется к значению выбранного коэффициента.
1913
1917
  */
1914
1918
  s(this, "increasePercent");
1915
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new de(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1919
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Te(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1916
1920
  }
1917
1921
  }
1918
- class Le extends Pr {
1922
+ class _e extends dr {
1919
1923
  /**
1920
1924
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1921
1925
  *
@@ -1927,10 +1931,10 @@ class Le extends Pr {
1927
1931
  * Базовые данные о продукте.
1928
1932
  */
1929
1933
  s(this, "productCategory");
1930
- this.productCategory = new ve(e == null ? void 0 : e.productCategory);
1934
+ this.productCategory = new le(e == null ? void 0 : e.productCategory);
1931
1935
  }
1932
1936
  }
1933
- class Ee extends S {
1937
+ class Xe extends b {
1934
1938
  /**
1935
1939
  * Инициализирует экземпляр класса {@link Curator}.
1936
1940
  *
@@ -1950,12 +1954,12 @@ class Ee extends S {
1950
1954
  * @inheritDoc
1951
1955
  */
1952
1956
  s(this, "curatedDirection");
1953
- this.photo = e.photo, this.contacts = new ar(e.contacts), this.curatedDirection = new Ve(e.curatedDirection);
1957
+ this.photo = e.photo, this.contacts = new $r(e.contacts), this.curatedDirection = new Ye(e.curatedDirection);
1954
1958
  }
1955
1959
  }
1956
- class te extends w {
1960
+ class ie extends y {
1957
1961
  }
1958
- class me extends w {
1962
+ class ne extends y {
1959
1963
  /**
1960
1964
  * Инициализирует экземпляр класса {@link Region}.
1961
1965
  *
@@ -1966,11 +1970,11 @@ class me extends w {
1966
1970
  /**
1967
1971
  * Данные о стране, в которой расположен регион.
1968
1972
  */
1969
- s(this, "country", new te());
1970
- e && (this.country = new te(e.country));
1973
+ s(this, "country", new ie());
1974
+ e && (this.country = new ie(e.country));
1971
1975
  }
1972
1976
  }
1973
- class Ae extends w {
1977
+ class oe extends y {
1974
1978
  /**
1975
1979
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1976
1980
  *
@@ -1981,11 +1985,11 @@ class Ae extends w {
1981
1985
  /**
1982
1986
  * Данные о регионе, в котором расположен город.
1983
1987
  */
1984
- s(this, "region", new me());
1985
- e && (this.region = new me(e.region));
1988
+ s(this, "region", new ne());
1989
+ e && (this.region = new ne(e.region));
1986
1990
  }
1987
1991
  }
1988
- class Rr extends S {
1992
+ class br extends b {
1989
1993
  /**
1990
1994
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1991
1995
  *
@@ -2021,10 +2025,10 @@ class Rr extends S {
2021
2025
  * Признак активности учетной записи пользователя.
2022
2026
  */
2023
2027
  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;
2028
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? 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
2029
  }
2026
2030
  }
2027
- class V extends Rr {
2031
+ class V extends br {
2028
2032
  /**
2029
2033
  * Инициализирует экземпляр класса {@link Client}.
2030
2034
  *
@@ -2070,10 +2074,10 @@ class V extends Rr {
2070
2074
  * @inheritDoc
2071
2075
  */
2072
2076
  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;
2077
+ this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new oe(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 Qe(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Xe(o))) ?? void 0;
2074
2078
  }
2075
2079
  }
2076
- class ce extends J {
2080
+ class me extends E {
2077
2081
  /**
2078
2082
  * Инициализирует новый экземпляр класса.
2079
2083
  *
@@ -2097,10 +2101,10 @@ class ce extends J {
2097
2101
  * Данные шаблона прайс-листа.
2098
2102
  */
2099
2103
  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);
2104
+ 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 ee(e == null ? void 0 : e.priceTemplate);
2101
2105
  }
2102
2106
  }
2103
- class _e extends Pr {
2107
+ class xe extends dr {
2104
2108
  /**
2105
2109
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2106
2110
  *
@@ -2112,12 +2116,12 @@ class _e extends Pr {
2112
2116
  * Базовые данные о продукте.
2113
2117
  */
2114
2118
  s(this, "product");
2115
- this.product = new I(e == null ? void 0 : e.product);
2119
+ this.product = new _(e == null ? void 0 : e.product);
2116
2120
  }
2117
2121
  }
2118
- class Dr extends w {
2122
+ class Sr extends y {
2119
2123
  }
2120
- class le extends S {
2124
+ class re extends b {
2121
2125
  /**
2122
2126
  * Инициализирует экземпляр класса {@link Property}.
2123
2127
  *
@@ -2137,10 +2141,14 @@ class le extends S {
2137
2141
  * Дополнительные метаданные свойства.
2138
2142
  */
2139
2143
  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;
2144
+ /**
2145
+ * Признак того, что по свойству может производиться фильтрация в каталоге.
2146
+ */
2147
+ s(this, "isFilterable");
2148
+ this.type = new Sr(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
2149
  }
2142
2150
  }
2143
- class Y {
2151
+ class X {
2144
2152
  /**
2145
2153
  * Инициализирует экземпляр класса {@link PropertyValue}.
2146
2154
  *
@@ -2156,10 +2164,10 @@ class Y {
2156
2164
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2157
2165
  */
2158
2166
  s(this, "value");
2159
- this.property = new le(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2167
+ this.property = new re(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2160
2168
  }
2161
2169
  }
2162
- class A {
2170
+ class T {
2163
2171
  /**
2164
2172
  * Инициализирует экземпляр класса {@link DatePeriod}.
2165
2173
  *
@@ -2174,10 +2182,10 @@ class A {
2174
2182
  * Окончание периода.
2175
2183
  */
2176
2184
  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;
2185
+ 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
2186
  }
2179
2187
  }
2180
- class Yt {
2188
+ class os {
2181
2189
  /**
2182
2190
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2183
2191
  *
@@ -2203,12 +2211,12 @@ class Yt {
2203
2211
  /**
2204
2212
  * Период создания.
2205
2213
  */
2206
- s(this, "createdAt", new A());
2214
+ s(this, "createdAt", new T());
2207
2215
  /**
2208
2216
  * Период изменения.
2209
2217
  */
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);
2218
+ s(this, "updatedAt", new T());
2219
+ 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 T(r == null ? void 0 : r.createdAt), this.updatedAt = new T(r == null ? void 0 : r.updatedAt);
2212
2220
  }
2213
2221
  /**
2214
2222
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2242,11 +2250,11 @@ class Yt {
2242
2250
  return Object.keys(this).forEach((c) => {
2243
2251
  const u = this[c];
2244
2252
  // eslint-disable-next-line prettier/prettier
2245
- $(u) || a(u) && u.trim().length === 0 || Be(u.isNewRec) && u.isNewRec() || (r[c] = u);
2253
+ d(u) || C(u) && u.trim().length === 0 || We(u.isNewRec) && u.isNewRec() || (r[c] = u);
2246
2254
  }), !((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;
2247
2255
  }
2248
2256
  }
2249
- class ue extends S {
2257
+ class fe extends b {
2250
2258
  /**
2251
2259
  * Инициализирует экземпляр класса {@link PricingRole}.
2252
2260
  *
@@ -2281,7 +2289,7 @@ class ue extends S {
2281
2289
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2282
2290
  }
2283
2291
  }
2284
- class rr {
2292
+ class nr {
2285
2293
  /**
2286
2294
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2287
2295
  *
@@ -2300,10 +2308,65 @@ class rr {
2300
2308
  * Минимальный коэффициент цены.
2301
2309
  */
2302
2310
  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);
2311
+ this.role = new fe(r == null ? void 0 : r.role), this.category = new le(r == null ? void 0 : r.category), this.minCoefficient = new Te(r == null ? void 0 : r.minCoefficient);
2312
+ }
2313
+ }
2314
+ class Dt {
2315
+ /**
2316
+ * Инициализирует экземпляр класса {@link FilterSettings}.
2317
+ *
2318
+ * Значения по умолчанию заданы намеренно: API не возвращает поля, значения которых совпадают
2319
+ * с настройками по умолчанию, поэтому отсутствующее поле означает значение по умолчанию.
2320
+ *
2321
+ * @param data Данные для первоначальной инициализации.
2322
+ */
2323
+ constructor(r) {
2324
+ /**
2325
+ * @inheritDoc
2326
+ */
2327
+ s(this, "isFake");
2328
+ /**
2329
+ * @inheritDoc
2330
+ */
2331
+ s(this, "isHidden");
2332
+ /**
2333
+ * @inheritDoc
2334
+ */
2335
+ s(this, "isMultiple");
2336
+ /**
2337
+ * @inheritDoc
2338
+ */
2339
+ s(this, "type");
2340
+ /**
2341
+ * @inheritDoc
2342
+ */
2343
+ s(this, "ord");
2344
+ 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
2345
  }
2305
2346
  }
2306
- class Xt extends h {
2347
+ class or {
2348
+ /**
2349
+ * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2350
+ *
2351
+ * @param data Данные для первоначальной инициализации.
2352
+ */
2353
+ constructor(r) {
2354
+ /**
2355
+ * @inheritDoc
2356
+ */
2357
+ s(this, "category");
2358
+ /**
2359
+ * @inheritDoc
2360
+ */
2361
+ s(this, "property");
2362
+ /**
2363
+ * @inheritDoc
2364
+ */
2365
+ s(this, "settings");
2366
+ this.category = new le(r == null ? void 0 : r.category), this.property = new re(r == null ? void 0 : r.property), this.settings = new Dt(r == null ? void 0 : r.settings);
2367
+ }
2368
+ }
2369
+ class cs extends h {
2307
2370
  /**
2308
2371
  * Возвращает данные о результатах поиска категорий и товаров.
2309
2372
  *
@@ -2334,7 +2397,7 @@ class Xt extends h {
2334
2397
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
2335
2398
  }
2336
2399
  }
2337
- class Zt extends h {
2400
+ class ls extends h {
2338
2401
  /**
2339
2402
  * Импортирует цены клиента из CSV файла.
2340
2403
  *
@@ -2458,7 +2521,7 @@ class Zt extends h {
2458
2521
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
2459
2522
  increase_percent: t.value
2460
2523
  },
2461
- (o) => new M(o.data)
2524
+ (o) => new j(o.data)
2462
2525
  );
2463
2526
  }
2464
2527
  /**
@@ -2470,7 +2533,7 @@ class Zt extends h {
2470
2533
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2471
2534
  */
2472
2535
  removeProductPrice(r, e) {
2473
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new M(t.data));
2536
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new j(t.data));
2474
2537
  }
2475
2538
  /**
2476
2539
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2533,7 +2596,7 @@ class Zt extends h {
2533
2596
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2534
2597
  }
2535
2598
  }
2536
- class es extends h {
2599
+ class us extends h {
2537
2600
  /**
2538
2601
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2539
2602
  *
@@ -2545,7 +2608,7 @@ class es extends h {
2545
2608
  return this.get(
2546
2609
  `/internal/clients/${r}/price/templates`,
2547
2610
  {},
2548
- (e) => e.data.map((t) => new ce(t))
2611
+ (e) => e.data.map((t) => new me(t))
2549
2612
  );
2550
2613
  }
2551
2614
  /**
@@ -2556,7 +2619,7 @@ class es extends h {
2556
2619
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2557
2620
  */
2558
2621
  getActiveTemplate(r) {
2559
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ce(e.data), !0);
2622
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new me(e.data), !0);
2560
2623
  }
2561
2624
  /**
2562
2625
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2575,7 +2638,7 @@ class es extends h {
2575
2638
  startAt: t.startAt && L(t.startAt, i),
2576
2639
  endAt: t.endAt && L(t.endAt, i)
2577
2640
  },
2578
- (o) => new ce(o.data),
2641
+ (o) => new me(o.data),
2579
2642
  {},
2580
2643
  !0
2581
2644
  );
@@ -2609,7 +2672,7 @@ class es extends h {
2609
2672
  startAt: i.startAt && L(i.startAt, o),
2610
2673
  endAt: i.endAt && L(i.endAt, o)
2611
2674
  },
2612
- (c) => new ce(c.data)
2675
+ (c) => new me(c.data)
2613
2676
  );
2614
2677
  }
2615
2678
  /**
@@ -2625,7 +2688,7 @@ class es extends h {
2625
2688
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
2626
2689
  }
2627
2690
  }
2628
- class rs extends h {
2691
+ class ps extends h {
2629
2692
  /**
2630
2693
  * Возвращает список данных о корневых категориях.
2631
2694
  *
@@ -2639,7 +2702,7 @@ class rs extends h {
2639
2702
  {
2640
2703
  showHidden: r
2641
2704
  },
2642
- (e) => e.data.map((t) => new N(t))
2705
+ (e) => e.data.map((t) => new U(t))
2643
2706
  );
2644
2707
  }
2645
2708
  /**
@@ -2658,7 +2721,7 @@ class rs extends h {
2658
2721
  showHidden: e,
2659
2722
  withNestedCategories: t
2660
2723
  },
2661
- (i) => new N(i.data)
2724
+ (i) => new U(i.data)
2662
2725
  );
2663
2726
  }
2664
2727
  /**
@@ -2667,7 +2730,7 @@ class rs extends h {
2667
2730
  * @param categoryID Идентификатор категории продуктов.
2668
2731
  */
2669
2732
  getPublicCategoryData(r) {
2670
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new N(e.data));
2733
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new U(e.data));
2671
2734
  }
2672
2735
  /**
2673
2736
  * Возвращает список продуктов категории.
@@ -2685,7 +2748,7 @@ class rs extends h {
2685
2748
  showHidden: t,
2686
2749
  withPriceCoefficients: e
2687
2750
  },
2688
- (i) => ye(i.data, (o) => new I(o))
2751
+ (i) => ae(i.data, (o) => new _(o))
2689
2752
  );
2690
2753
  }
2691
2754
  /**
@@ -2698,7 +2761,7 @@ class rs extends h {
2698
2761
  getCategoryProductsCoefficients(r) {
2699
2762
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2700
2763
  const { data: t } = e;
2701
- return zr(t, (i) => i.map((o) => new Ge(o))), t;
2764
+ return Qr(t, (i) => i.map((o) => new Ee(o))), t;
2702
2765
  });
2703
2766
  }
2704
2767
  /**
@@ -2710,14 +2773,14 @@ class rs extends h {
2710
2773
  publicSimpleSearch(r, e = 10) {
2711
2774
  return new Promise((t, i) => {
2712
2775
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2713
- t(o.categories.map((c) => new N(c)));
2776
+ t(o.categories.map((c) => new U(c)));
2714
2777
  }).catch((o) => {
2715
2778
  i(o);
2716
2779
  });
2717
2780
  });
2718
2781
  }
2719
2782
  }
2720
- class ts extends h {
2783
+ class hs extends h {
2721
2784
  /**
2722
2785
  * Возвращает данные об указанном продукте.
2723
2786
  *
@@ -2727,7 +2790,7 @@ class ts extends h {
2727
2790
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2728
2791
  */
2729
2792
  getProductData(r, e = !1) {
2730
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new I(t.data));
2793
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new _(t.data));
2731
2794
  }
2732
2795
  /**
2733
2796
  * Возвращает публичные данные об указанном продукте.
@@ -2735,7 +2798,7 @@ class ts extends h {
2735
2798
  * @param productId Идентификатор продукта.
2736
2799
  */
2737
2800
  getPublicProductData(r) {
2738
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2801
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new _(e.data));
2739
2802
  }
2740
2803
  /**
2741
2804
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2748,7 +2811,7 @@ class ts extends h {
2748
2811
  return this.get(
2749
2812
  `/internal/catalog/products/${r}/coefficients`,
2750
2813
  {},
2751
- (e) => ye(e.data, (t) => new Ge(t))
2814
+ (e) => ae(e.data, (t) => new Ee(t))
2752
2815
  );
2753
2816
  }
2754
2817
  /**
@@ -2760,14 +2823,14 @@ class ts extends h {
2760
2823
  publicSimpleSearch(r, e = 10) {
2761
2824
  return new Promise((t, i) => {
2762
2825
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2763
- t(o.products.map((c) => new I(c)));
2826
+ t(o.products.map((c) => new _(c)));
2764
2827
  }).catch((o) => {
2765
2828
  i(o);
2766
2829
  });
2767
2830
  });
2768
2831
  }
2769
2832
  }
2770
- class ss extends h {
2833
+ class gs extends h {
2771
2834
  /**
2772
2835
  * Возвращает список данных о корневых категориях указанного клиента.
2773
2836
  *
@@ -2783,7 +2846,7 @@ class ss extends h {
2783
2846
  clientId: r,
2784
2847
  showHidden: e
2785
2848
  },
2786
- (t) => t.data.map((i) => new Re(i))
2849
+ (t) => t.data.map((i) => new Ae(i))
2787
2850
  );
2788
2851
  }
2789
2852
  /**
@@ -2804,7 +2867,7 @@ class ss extends h {
2804
2867
  showHidden: t,
2805
2868
  withNestedCategories: i
2806
2869
  },
2807
- (o) => new Re(o.data)
2870
+ (o) => new Ae(o.data)
2808
2871
  );
2809
2872
  }
2810
2873
  /**
@@ -2825,11 +2888,11 @@ class ss extends h {
2825
2888
  showHidden: i,
2826
2889
  withPriceCoefficients: t
2827
2890
  },
2828
- (o) => ye(o.data, (c) => new M(c))
2891
+ (o) => ae(o.data, (c) => new j(c))
2829
2892
  );
2830
2893
  }
2831
2894
  }
2832
- class is extends h {
2895
+ class ms extends h {
2833
2896
  /**
2834
2897
  * Возвращает данные об указанном продукте для указанного клиента.
2835
2898
  *
@@ -2846,12 +2909,12 @@ class is extends h {
2846
2909
  clientId: e,
2847
2910
  withPriceCoefficients: t
2848
2911
  },
2849
- (i) => new M(i.data)
2912
+ (i) => new j(i.data)
2850
2913
  );
2851
2914
  }
2852
2915
  }
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 {
2916
+ var Ze = /* @__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))(Ze || {});
2917
+ class cr {
2855
2918
  /**
2856
2919
  * Инициализирует экземпляр класса {@link FilterItem}.
2857
2920
  *
@@ -2870,7 +2933,7 @@ class tr {
2870
2933
  * Значение с которым сравнивается поле.
2871
2934
  */
2872
2935
  s(this, "value");
2873
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ke.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2936
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ze.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2874
2937
  }
2875
2938
  /**
2876
2939
  * Преобразует фильтр в примитивное представление для API.
@@ -2882,13 +2945,13 @@ class tr {
2882
2945
  field: this.field,
2883
2946
  op: this.op
2884
2947
  };
2885
- return qe(this.value) ? e.value = L(this.value, r) : Me(this.value) ? e.value = {
2948
+ return Fe(this.value) ? e.value = L(this.value, r) : ze(this.value) ? e.value = {
2886
2949
  from: this.value.from ? L(this.value.from, r) : null,
2887
2950
  to: this.value.to ? L(this.value.to, r) : null
2888
2951
  } : e.value = this.value, e;
2889
2952
  }
2890
2953
  }
2891
- class j {
2954
+ class G {
2892
2955
  /**
2893
2956
  * Инициализирует экземпляр класса {@link FilterGroup}.
2894
2957
  *
@@ -2908,7 +2971,7 @@ class j {
2908
2971
  */
2909
2972
  s(this, "groups");
2910
2973
  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))) ?? [];
2974
+ 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 cr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new G(i))) ?? [];
2912
2975
  }
2913
2976
  /**
2914
2977
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2918,12 +2981,12 @@ class j {
2918
2981
  toPrimitive() {
2919
2982
  return {
2920
2983
  groupOp: this.groupOp,
2921
- filters: this.filters.map((r) => r instanceof tr && Be(r.toPrimitive) ? r.toPrimitive() : r),
2922
- groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
2984
+ filters: this.filters.map((r) => r instanceof cr && We(r.toPrimitive) ? r.toPrimitive() : r),
2985
+ groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
2923
2986
  };
2924
2987
  }
2925
2988
  }
2926
- class Ce extends h {
2989
+ class ue extends h {
2927
2990
  /**
2928
2991
  * Получает пагинированный список данных.
2929
2992
  *
@@ -2941,10 +3004,10 @@ class Ce extends h {
2941
3004
  page: (i == null ? void 0 : i.page) ?? 1,
2942
3005
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2943
3006
  };
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);
3007
+ return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), se(t) || (m.sort = B(t) ? t : [t]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
2945
3008
  }
2946
3009
  }
2947
- class ns extends Ce {
3010
+ class fs extends ue {
2948
3011
  /**
2949
3012
  * Возвращает список шаблонов прайс-листа.
2950
3013
  *
@@ -2957,7 +3020,7 @@ class ns extends Ce {
2957
3020
  getTemplateList(r, e, t) {
2958
3021
  return this.getPaginated("/internal/price/templates", r, e, t, {}, (i) => {
2959
3022
  const o = { ...i.data };
2960
- return o.data = o.data.map((c) => new Z(c)), o;
3023
+ return o.data = o.data.map((c) => new ee(c)), o;
2961
3024
  });
2962
3025
  }
2963
3026
  /**
@@ -2970,7 +3033,7 @@ class ns extends Ce {
2970
3033
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2971
3034
  */
2972
3035
  createTemplate(r, e = {}) {
2973
- return this.post("/internal/price/templates", r, (t) => new Z(t.data), e);
3036
+ return this.post("/internal/price/templates", r, (t) => new ee(t.data), e);
2974
3037
  }
2975
3038
  /**
2976
3039
  * Возвращает данные о шаблоне прайс-листа.
@@ -2980,7 +3043,7 @@ class ns extends Ce {
2980
3043
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
2981
3044
  */
2982
3045
  getTemplate(r) {
2983
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new Z(e.data));
3046
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new ee(e.data));
2984
3047
  }
2985
3048
  /**
2986
3049
  * Изменяет данные о шаблоне прайс-листа.
@@ -2993,7 +3056,7 @@ class ns extends Ce {
2993
3056
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2994
3057
  */
2995
3058
  updateTemplate(r, e, t = {}) {
2996
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new Z(i.data), t);
3059
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new ee(i.data), t);
2997
3060
  }
2998
3061
  /**
2999
3062
  * Удаляет данные о шаблоне прайс-листа.
@@ -3016,7 +3079,7 @@ class ns extends Ce {
3016
3079
  return this.get(
3017
3080
  `/internal/price/templates/${r}/products`,
3018
3081
  {},
3019
- (e) => e.data.map((t) => new _e(t))
3082
+ (e) => e.data.map((t) => new xe(t))
3020
3083
  );
3021
3084
  }
3022
3085
  /**
@@ -3028,7 +3091,7 @@ class ns extends Ce {
3028
3091
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3029
3092
  */
3030
3093
  getProductTemplatePrice(r, e) {
3031
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new _e(t.data));
3094
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new xe(t.data));
3032
3095
  }
3033
3096
  /**
3034
3097
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3047,7 +3110,7 @@ class ns extends Ce {
3047
3110
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3048
3111
  increase_percent: t.value
3049
3112
  },
3050
- (o) => new _e(o.data)
3113
+ (o) => new xe(o.data)
3051
3114
  );
3052
3115
  }
3053
3116
  /**
@@ -3072,7 +3135,7 @@ class ns extends Ce {
3072
3135
  return this.get(
3073
3136
  `/internal/price/templates/${r}/categories`,
3074
3137
  {},
3075
- (e) => e.data.map((t) => new Le(t))
3138
+ (e) => e.data.map((t) => new _e(t))
3076
3139
  );
3077
3140
  }
3078
3141
  /**
@@ -3087,7 +3150,7 @@ class ns extends Ce {
3087
3150
  return this.get(
3088
3151
  `/internal/price/templates/${r}/categories/${e}`,
3089
3152
  {},
3090
- (t) => new Le(t.data)
3153
+ (t) => new _e(t.data)
3091
3154
  );
3092
3155
  }
3093
3156
  /**
@@ -3113,7 +3176,7 @@ class ns extends Ce {
3113
3176
  },
3114
3177
  params: i ? { recursively: !0 } : {}
3115
3178
  },
3116
- (c) => new Le(c.data)
3179
+ (c) => new _e(c.data)
3117
3180
  );
3118
3181
  }
3119
3182
  /**
@@ -3144,18 +3207,18 @@ class ns extends Ce {
3144
3207
  return this.get(
3145
3208
  `/internal/price/templates/${r}/clients`,
3146
3209
  {},
3147
- (e) => e.data.map((t) => new ce(t))
3210
+ (e) => e.data.map((t) => new me(t))
3148
3211
  );
3149
3212
  }
3150
3213
  }
3151
- class os extends h {
3214
+ class ys extends h {
3152
3215
  /**
3153
3216
  * Возвращает список ролей ценообразования.
3154
3217
  *
3155
3218
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3156
3219
  */
3157
3220
  getRoles() {
3158
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ue(e)));
3221
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new fe(e)));
3159
3222
  }
3160
3223
  /**
3161
3224
  * Добавляет новую роль ценообразования.
@@ -3165,7 +3228,7 @@ class os extends h {
3165
3228
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3166
3229
  */
3167
3230
  createRole(r) {
3168
- return this.post("/internal/price/roles", r, (e) => new ue(e.data));
3231
+ return this.post("/internal/price/roles", r, (e) => new fe(e.data));
3169
3232
  }
3170
3233
  /**
3171
3234
  * Возвращает данные роли ценообразования.
@@ -3175,7 +3238,7 @@ class os extends h {
3175
3238
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3176
3239
  */
3177
3240
  getRole(r) {
3178
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ue(e.data));
3241
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new fe(e.data));
3179
3242
  }
3180
3243
  /**
3181
3244
  * Обновляет данные роли ценообразования.
@@ -3186,7 +3249,7 @@ class os extends h {
3186
3249
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3187
3250
  */
3188
3251
  updateRole(r, e) {
3189
- return this.patch(`/internal/price/roles/${r}`, e, (t) => new ue(t.data));
3252
+ return this.patch(`/internal/price/roles/${r}`, e, (t) => new fe(t.data));
3190
3253
  }
3191
3254
  /**
3192
3255
  * Удаляет роль ценообразования.
@@ -3209,7 +3272,7 @@ class os extends h {
3209
3272
  return this.get(
3210
3273
  `/internal/price/roles/rules/categories/${r}`,
3211
3274
  {},
3212
- (e) => e.data.map((t) => new rr(t))
3275
+ (e) => e.data.map((t) => new nr(t))
3213
3276
  );
3214
3277
  }
3215
3278
  /**
@@ -3224,11 +3287,11 @@ class os extends h {
3224
3287
  return this.patch(
3225
3288
  `/internal/price/roles/rules/categories/${r}`,
3226
3289
  e,
3227
- (t) => t.data.map((i) => new rr(i))
3290
+ (t) => t.data.map((i) => new nr(i))
3228
3291
  );
3229
3292
  }
3230
3293
  }
3231
- class cs extends Ce {
3294
+ class ws extends ue {
3232
3295
  /**
3233
3296
  * Возвращает пагинированный список свойств.
3234
3297
  *
@@ -3241,7 +3304,7 @@ class cs extends Ce {
3241
3304
  getProperties(r, e, t) {
3242
3305
  return this.getPaginated("/internal/catalog/properties", r, e, t, {}, (i) => {
3243
3306
  const o = { ...i.data };
3244
- return o.data = o.data.map((c) => new le(c)), o;
3307
+ return o.data = o.data.map((c) => new re(c)), o;
3245
3308
  });
3246
3309
  }
3247
3310
  /**
@@ -3258,7 +3321,7 @@ class cs extends Ce {
3258
3321
  ...t,
3259
3322
  type: e
3260
3323
  },
3261
- (i) => new le(i.data)
3324
+ (i) => new re(i.data)
3262
3325
  );
3263
3326
  }
3264
3327
  /**
@@ -3268,7 +3331,7 @@ class cs extends Ce {
3268
3331
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3269
3332
  */
3270
3333
  getProperty(r) {
3271
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new le(e.data));
3334
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new re(e.data));
3272
3335
  }
3273
3336
  /**
3274
3337
  * Обновляет существующее свойство.
@@ -3285,7 +3348,7 @@ class cs extends Ce {
3285
3348
  ...i,
3286
3349
  type: t
3287
3350
  },
3288
- (o) => new le(o.data)
3351
+ (o) => new re(o.data)
3289
3352
  );
3290
3353
  }
3291
3354
  /**
@@ -3304,7 +3367,7 @@ class cs extends Ce {
3304
3367
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3305
3368
  */
3306
3369
  getProductProperties(r) {
3307
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new Y(t)));
3370
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new X(t)));
3308
3371
  }
3309
3372
  /**
3310
3373
  * Возвращает значение свойства продукта.
@@ -3314,7 +3377,7 @@ class cs extends Ce {
3314
3377
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3315
3378
  */
3316
3379
  getProductProperty(r, e) {
3317
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new Y(t.data));
3380
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new X(t.data));
3318
3381
  }
3319
3382
  /**
3320
3383
  * Обновляет значение свойства продукта.
@@ -3325,7 +3388,7 @@ class cs extends Ce {
3325
3388
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3326
3389
  */
3327
3390
  updateProductProperty(r, e, t) {
3328
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new Y(i.data));
3391
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new X(i.data));
3329
3392
  }
3330
3393
  /**
3331
3394
  * Удаляет значение свойства продукта.
@@ -3450,7 +3513,7 @@ class cs extends Ce {
3450
3513
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3451
3514
  */
3452
3515
  getCategoryProperties(r) {
3453
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new Y(t)));
3516
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new X(t)));
3454
3517
  }
3455
3518
  /**
3456
3519
  * Возвращает значение свойства категории.
@@ -3460,7 +3523,7 @@ class cs extends Ce {
3460
3523
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3461
3524
  */
3462
3525
  getCategoryProperty(r, e) {
3463
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new Y(t.data));
3526
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new X(t.data));
3464
3527
  }
3465
3528
  /**
3466
3529
  * Обновляет значение свойства категории.
@@ -3471,7 +3534,7 @@ class cs extends Ce {
3471
3534
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3472
3535
  */
3473
3536
  updateCategoryProperty(r, e, t) {
3474
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new Y(i.data));
3537
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new X(i.data));
3475
3538
  }
3476
3539
  /**
3477
3540
  * Удаляет значение свойства категории.
@@ -3599,8 +3662,46 @@ class cs extends Ce {
3599
3662
  updateCategoryImage(r, e) {
3600
3663
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3601
3664
  }
3665
+ /**
3666
+ * Возвращает список настроенных фильтров категории.
3667
+ *
3668
+ * @param categoryId Идентификатор категории.
3669
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
3670
+ */
3671
+ getCategoryFilterSettings(r) {
3672
+ return this.get(
3673
+ `/internal/catalog/categories/${r}/filter-settings`,
3674
+ {},
3675
+ (e) => e.data.map((t) => new or(t))
3676
+ );
3677
+ }
3678
+ /**
3679
+ * Сохраняет настройки фильтра в категории.
3680
+ *
3681
+ * @param categoryId Идентификатор категории.
3682
+ * @param propertyId Идентификатор свойства.
3683
+ * @param settingsData Данные настроек фильтра.
3684
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_save
3685
+ */
3686
+ saveCategoryFilterSetting(r, e, t) {
3687
+ return this.patch(
3688
+ `/internal/catalog/categories/${r}/filter-settings/${e}`,
3689
+ t,
3690
+ (i) => new or(i.data)
3691
+ );
3692
+ }
3693
+ /**
3694
+ * Удаляет настройки фильтра в категории, возвращая фильтру настройки по умолчанию.
3695
+ *
3696
+ * @param categoryId Идентификатор категории.
3697
+ * @param propertyId Идентификатор свойства.
3698
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_delete
3699
+ */
3700
+ deleteCategoryFilterSetting(r, e) {
3701
+ return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
3702
+ }
3602
3703
  }
3603
- class ls extends h {
3704
+ class vs extends h {
3604
3705
  /**
3605
3706
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3606
3707
  *
@@ -3616,7 +3717,7 @@ class ls extends h {
3616
3717
  priceTemplateId: r,
3617
3718
  showHidden: e
3618
3719
  },
3619
- (t) => t.data.map((i) => new N(i))
3720
+ (t) => t.data.map((i) => new U(i))
3620
3721
  );
3621
3722
  }
3622
3723
  /**
@@ -3637,7 +3738,7 @@ class ls extends h {
3637
3738
  showHidden: t,
3638
3739
  withNestedCategories: i
3639
3740
  },
3640
- (o) => new N(o.data)
3741
+ (o) => new U(o.data)
3641
3742
  );
3642
3743
  }
3643
3744
  /**
@@ -3658,11 +3759,11 @@ class ls extends h {
3658
3759
  showHidden: i,
3659
3760
  withPriceCoefficients: t
3660
3761
  },
3661
- (o) => ye(o.data, (c) => new I(c))
3762
+ (o) => ae(o.data, (c) => new _(c))
3662
3763
  );
3663
3764
  }
3664
3765
  }
3665
- function sr(n, r, e) {
3766
+ function lr(n, r, e) {
3666
3767
  let t;
3667
3768
  return n.some((i) => {
3668
3769
  if (i.type === e && i.id === r)
@@ -3671,29 +3772,29 @@ function sr(n, r, e) {
3671
3772
  return !1;
3672
3773
  const o = i;
3673
3774
  if (o.products && o.products.length > 0) {
3674
- const c = sr(o.products, r, e);
3775
+ const c = lr(o.products, r, e);
3675
3776
  if (c)
3676
3777
  return t = c, !0;
3677
3778
  }
3678
3779
  if (o.categories && o.categories.length > 0) {
3679
- const c = sr(o.categories, r, e);
3780
+ const c = lr(o.categories, r, e);
3680
3781
  if (c)
3681
3782
  return t = c, !0;
3682
3783
  }
3683
3784
  return !1;
3684
3785
  }), t;
3685
3786
  }
3686
- function ir(n) {
3787
+ function ur(n) {
3687
3788
  const r = [];
3688
3789
  return n.forEach((e) => {
3689
3790
  if (r.push(e), e.type === "category") {
3690
3791
  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));
3792
+ t.products && t.products.length > 0 && r.push(...ur(t.products)), t.categories && t.categories.length > 0 && r.push(...ur(t.categories));
3692
3793
  }
3693
3794
  }), r;
3694
3795
  }
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 {
3796
+ var At = /* @__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))(At || {}), F = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(F || {});
3797
+ class Me extends E {
3697
3798
  /**
3698
3799
  * Инициализирует экземпляр класса {@link BankAccount}.
3699
3800
  *
@@ -3720,11 +3821,11 @@ class Fe extends J {
3720
3821
  /**
3721
3822
  * Данные о валюте.
3722
3823
  */
3723
- s(this, "currency", new x());
3724
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new x(e.currency));
3824
+ s(this, "currency", new N());
3825
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new N(e.currency));
3725
3826
  }
3726
3827
  }
3727
- class He extends S {
3828
+ class je extends b {
3728
3829
  /**
3729
3830
  * Инициализирует экземпляр класса {@link Contact}.
3730
3831
  *
@@ -3743,7 +3844,7 @@ class He extends S {
3743
3844
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3744
3845
  }
3745
3846
  }
3746
- class G extends He {
3847
+ class W extends je {
3747
3848
  /**
3748
3849
  * Инициализирует экземпляр класса {@link ContactPerson}.
3749
3850
  *
@@ -3775,10 +3876,10 @@ class G extends He {
3775
3876
  * Дата и время последнего удаления.
3776
3877
  */
3777
3878
  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;
3879
+ 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
3880
  }
3780
3881
  }
3781
- class z extends w {
3882
+ class z extends y {
3782
3883
  /**
3783
3884
  * Возвращает сгенерированную запись-описание физического лица.
3784
3885
  */
@@ -3786,14 +3887,14 @@ class z extends w {
3786
3887
  return new z({
3787
3888
  id: 1,
3788
3889
  guid: "",
3789
- slug: U.Person,
3890
+ slug: F.Person,
3790
3891
  name: ""
3791
3892
  });
3792
3893
  }
3793
3894
  }
3794
- class se extends w {
3895
+ class ce extends y {
3795
3896
  }
3796
- class dr extends gr {
3897
+ class kr extends Cr {
3797
3898
  /**
3798
3899
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
3799
3900
  *
@@ -3805,10 +3906,10 @@ class dr extends gr {
3805
3906
  * Дата и время последнего удаления.
3806
3907
  */
3807
3908
  s(this, "deletedAt");
3808
- this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3909
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3809
3910
  }
3810
3911
  }
3811
- class Ar extends dr {
3912
+ class Lr extends kr {
3812
3913
  /**
3813
3914
  * Инициализирует экземпляр класса {@link ContragentBase}.
3814
3915
  *
@@ -3824,7 +3925,7 @@ class Ar extends dr {
3824
3925
  /**
3825
3926
  * Группа партнеров (направление деятельности).
3826
3927
  */
3827
- s(this, "partnerGroup", new se());
3928
+ s(this, "partnerGroup", new ce());
3828
3929
  /**
3829
3930
  * Список контактных лиц контрагента.
3830
3931
  */
@@ -3854,22 +3955,22 @@ class Ar extends dr {
3854
3955
  */
3855
3956
  s(this, "updater");
3856
3957
  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) {
3958
+ 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 I(e.creator) : void 0, this.updater = e.updater ? new I(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ce(e.partnerGroup)), e.contacts) {
3858
3959
  const t = [];
3859
3960
  e.contacts.forEach((i) => {
3860
- t.push(new G(i));
3961
+ t.push(new W(i));
3861
3962
  }), this.contacts = t;
3862
3963
  }
3863
3964
  if (e.bankAccounts) {
3864
3965
  const t = [];
3865
3966
  e.bankAccounts.forEach((i) => {
3866
- t.push(new Fe(i));
3967
+ t.push(new Me(i));
3867
3968
  }), this.bankAccounts = t;
3868
3969
  }
3869
3970
  }
3870
3971
  }
3871
3972
  }
3872
- class wt extends Ar {
3973
+ class $t extends Lr {
3873
3974
  /**
3874
3975
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3875
3976
  *
@@ -3879,7 +3980,7 @@ class wt extends Ar {
3879
3980
  super(r);
3880
3981
  }
3881
3982
  }
3882
- class $r extends Ar {
3983
+ class Ir extends Lr {
3883
3984
  /**
3884
3985
  * Инициализирует экземпляр класса {@link ContragentIc}.
3885
3986
  *
@@ -3922,7 +4023,7 @@ class $r extends Ar {
3922
4023
  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
4024
  }
3924
4025
  }
3925
- class Tr extends $r {
4026
+ class _r extends Ir {
3926
4027
  /**
3927
4028
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3928
4029
  *
@@ -3937,7 +4038,7 @@ class Tr extends $r {
3937
4038
  e && (this.kpp = e.kpp ?? "");
3938
4039
  }
3939
4040
  }
3940
- class vt extends Tr {
4041
+ class Tt extends _r {
3941
4042
  /**
3942
4043
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3943
4044
  *
@@ -3948,7 +4049,7 @@ class vt extends Tr {
3948
4049
  /**
3949
4050
  * Страна регистрации юридического лица нерезидента.
3950
4051
  */
3951
- s(this, "registrationCountry", new te());
4052
+ s(this, "registrationCountry", new ie());
3952
4053
  /**
3953
4054
  * Регистрационный номер юридического лица нерезидента.
3954
4055
  */
@@ -3957,10 +4058,10 @@ class vt extends Tr {
3957
4058
  * Налоговый номер юридического лица нерезидента.
3958
4059
  */
3959
4060
  s(this, "taxNumber", "");
3960
- e && (this.registrationCountry = new te(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4061
+ e && (this.registrationCountry = new ie(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3961
4062
  }
3962
4063
  }
3963
- class De {
4064
+ class $e {
3964
4065
  /**
3965
4066
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3966
4067
  *
@@ -3968,18 +4069,18 @@ class De {
3968
4069
  */
3969
4070
  static createInstance(r) {
3970
4071
  switch (r.opf.slug) {
3971
- case U.Ic:
3972
- return new $r(r);
3973
- case U.UlR:
3974
- return new Tr(r);
3975
- case U.UlNr:
3976
- return new vt(r);
4072
+ case F.Ic:
4073
+ return new Ir(r);
4074
+ case F.UlR:
4075
+ return new _r(r);
4076
+ case F.UlNr:
4077
+ return new Tt(r);
3977
4078
  default:
3978
- return new wt(r);
4079
+ return new $t(r);
3979
4080
  }
3980
4081
  }
3981
4082
  }
3982
- class pe extends dr {
4083
+ class ye extends kr {
3983
4084
  /**
3984
4085
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3985
4086
  *
@@ -4016,14 +4117,14 @@ class pe extends dr {
4016
4117
  * Признак того, что указанный адрес является адресом транспортной компании.
4017
4118
  */
4018
4119
  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;
4120
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Rr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new W(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;
4020
4121
  }
4021
4122
  }
4022
- class br extends w {
4123
+ class xr extends y {
4023
4124
  }
4024
- class Sr extends w {
4125
+ class Or extends y {
4025
4126
  }
4026
- class nr extends V {
4127
+ class pr extends V {
4027
4128
  /**
4028
4129
  * Инициализирует экземпляр класса {@link Client}.
4029
4130
  *
@@ -4073,10 +4174,10 @@ class nr extends V {
4073
4174
  * @inheritDoc
4074
4175
  */
4075
4176
  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) ?? {};
4177
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => $e.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new W(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ye(u))) ?? [], this.channelPrimaryInterest = new xr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Or(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new H(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4077
4178
  }
4078
4179
  }
4079
- class Qe {
4180
+ class de {
4080
4181
  /**
4081
4182
  * Возвращает очищенное значение фильтров, содержащие
4082
4183
  * только актуальные данные.
@@ -4085,12 +4186,12 @@ class Qe {
4085
4186
  const r = {};
4086
4187
  return Object.keys(this).forEach((e) => {
4087
4188
  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);
4189
+ d(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4190
+ C(t) && t.trim().length === 0 || We(t.isNewRec) && t.isNewRec() || (r[e] = t);
4090
4191
  }), r;
4091
4192
  }
4092
4193
  }
4093
- class us extends Qe {
4194
+ class Cs extends de {
4094
4195
  /**
4095
4196
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4096
4197
  *
@@ -4142,11 +4243,11 @@ class us extends Qe {
4142
4243
  /**
4143
4244
  * @inheritDoc
4144
4245
  */
4145
- s(this, "createdAt", new A());
4246
+ s(this, "createdAt", new T());
4146
4247
  /**
4147
4248
  * @inheritDoc
4148
4249
  */
4149
- s(this, "lastLoginDate", new A());
4250
+ s(this, "lastLoginDate", new T());
4150
4251
  /**
4151
4252
  * @inheritDoc
4152
4253
  */
@@ -4198,12 +4299,12 @@ class us extends Qe {
4198
4299
  /**
4199
4300
  * @inheritDoc
4200
4301
  */
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),
4302
+ s(this, "noOrdersPeriod", new T());
4303
+ 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((R) => new oe(R)), this.region = new ne(e == null ? void 0 : e.region), this.country = new ie(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 T(e == null ? void 0 : e.createdAt), this.lastLoginDate = new T(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((R) => new Pe(R))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((R) => new Xe(R))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((R) => new x(R)), 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 H(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((R) => new ce(R)), this.contact = new je(e == null ? void 0 : e.contact), this.lastOrder = {
4304
+ createdAt: new T((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4204
4305
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4205
4306
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4206
- }, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
4307
+ }, this.noOrdersPeriod = new T(e == null ? void 0 : e.noOrdersPeriod);
4207
4308
  }
4208
4309
  /**
4209
4310
  * @inheritDoc
@@ -4214,7 +4315,7 @@ class us extends Qe {
4214
4315
  this.cities = [];
4215
4316
  break;
4216
4317
  case "region":
4217
- this.region = new me();
4318
+ this.region = new ne();
4218
4319
  break;
4219
4320
  case "isActive":
4220
4321
  this.isActive = !0;
@@ -4244,13 +4345,13 @@ class us extends Qe {
4244
4345
  this.contragentType = new z();
4245
4346
  break;
4246
4347
  case "preferredDeliveryType":
4247
- this.preferredDeliveryType = new F();
4348
+ this.preferredDeliveryType = new H();
4248
4349
  break;
4249
4350
  case "partnerGroups":
4250
4351
  this.partnerGroups = [];
4251
4352
  break;
4252
4353
  case "contact":
4253
- this.contact = new He();
4354
+ this.contact = new je();
4254
4355
  break;
4255
4356
  default:
4256
4357
  this[e] = void 0;
@@ -4267,7 +4368,7 @@ class us extends Qe {
4267
4368
  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;
4268
4369
  }
4269
4370
  }
4270
- class kr extends J {
4371
+ class qr extends E {
4271
4372
  /**
4272
4373
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4273
4374
  *
@@ -4283,10 +4384,10 @@ class kr extends J {
4283
4384
  * @inheritDoc
4284
4385
  */
4285
4386
  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);
4387
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new I(e == null ? void 0 : e.creator);
4287
4388
  }
4288
4389
  }
4289
- class at extends S {
4390
+ class dt extends b {
4290
4391
  /**
4291
4392
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4292
4393
  *
@@ -4323,10 +4424,10 @@ class at extends S {
4323
4424
  * @inheritDoc
4324
4425
  */
4325
4426
  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;
4427
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new W(u))) ?? void 0, this.lastOrder = e.lastOrder ? new qr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new H(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new x(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Qe(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Xe(u))) ?? void 0;
4327
4428
  }
4328
4429
  }
4329
- class Ie extends J {
4430
+ class Oe extends E {
4330
4431
  /**
4331
4432
  * Инициализирует экземпляр класса {@link ContactRelation}.
4332
4433
  *
@@ -4341,7 +4442,7 @@ class Ie extends J {
4341
4442
  this.isPrimary = e.isPrimary;
4342
4443
  }
4343
4444
  }
4344
- class Ct extends G {
4445
+ class bt extends W {
4345
4446
  /**
4346
4447
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4347
4448
  *
@@ -4366,10 +4467,10 @@ class Ct extends G {
4366
4467
  */
4367
4468
  addresses: []
4368
4469
  });
4369
- 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))));
4470
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Oe(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Oe(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Oe(t))));
4370
4471
  }
4371
4472
  }
4372
- class O extends Ce {
4473
+ class O extends ue {
4373
4474
  /**
4374
4475
  * Преобразует данные о клиенте в данные требуемые для запроса.
4375
4476
  *
@@ -4401,7 +4502,7 @@ class O extends Ce {
4401
4502
  let e;
4402
4503
  const t = r, i = r, o = r;
4403
4504
  switch (r.opf.slug) {
4404
- case U.Ic:
4505
+ case F.Ic:
4405
4506
  e = {
4406
4507
  opf: t.opf.slug,
4407
4508
  name: t.name,
@@ -4418,7 +4519,7 @@ class O extends Ce {
4418
4519
  actual_address: t.actualAddress
4419
4520
  };
4420
4521
  break;
4421
- case U.UlR:
4522
+ case F.UlR:
4422
4523
  e = {
4423
4524
  opf: i.opf.slug,
4424
4525
  name: i.name,
@@ -4436,7 +4537,7 @@ class O extends Ce {
4436
4537
  actual_address: i.actualAddress
4437
4538
  };
4438
4539
  break;
4439
- case U.UlNr:
4540
+ case F.UlNr:
4440
4541
  e = {
4441
4542
  opf: o.opf.slug,
4442
4543
  name: o.name,
@@ -4508,7 +4609,7 @@ class O extends Ce {
4508
4609
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4509
4610
  */
4510
4611
  getClient(r) {
4511
- return this.get(`/internal/clients/${r}`, {}, (e) => new nr(e.data));
4612
+ return this.get(`/internal/clients/${r}`, {}, (e) => new pr(e.data));
4512
4613
  }
4513
4614
  /**
4514
4615
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4556,7 +4657,7 @@ class O extends Ce {
4556
4657
  return this.getClientsList({
4557
4658
  groupOp: "and",
4558
4659
  groups: [],
4559
- filters: [{ field: "phone", op: Ke.Contains, value: r }]
4660
+ filters: [{ field: "phone", op: Ze.Contains, value: r }]
4560
4661
  });
4561
4662
  }
4562
4663
  /**
@@ -4570,7 +4671,7 @@ class O extends Ce {
4570
4671
  const t = r.map((i) => i.id);
4571
4672
  return this.post("/internal/clients/additional-data", { clients: t, requested_data_types: e }, (i) => {
4572
4673
  let o = [];
4573
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new at(c))), o;
4674
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new dt(c))), o;
4574
4675
  });
4575
4676
  }
4576
4677
  /**
@@ -4582,7 +4683,7 @@ class O extends Ce {
4582
4683
  getAllClientContacts(r) {
4583
4684
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4584
4685
  let t = [];
4585
- return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new Ct(i))), t;
4686
+ return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new bt(i))), t;
4586
4687
  });
4587
4688
  }
4588
4689
  /**
@@ -4593,7 +4694,7 @@ class O extends Ce {
4593
4694
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4594
4695
  */
4595
4696
  createClientCommonData(r, e = {}) {
4596
- return this.post("/internal/clients", O.transformClientDataToRequest(r), (t) => new nr(t.data), e);
4697
+ return this.post("/internal/clients", O.transformClientDataToRequest(r), (t) => new pr(t.data), e);
4597
4698
  }
4598
4699
  /**
4599
4700
  * Обновляет данные указанного клиента.
@@ -4733,7 +4834,7 @@ class O extends Ce {
4733
4834
  return this.post(
4734
4835
  `/internal/clients/${r}/contragents`,
4735
4836
  O.transformContragentClientDataToRequest(e),
4736
- (i) => De.createInstance(i.data),
4837
+ (i) => $e.createInstance(i.data),
4737
4838
  t
4738
4839
  );
4739
4840
  }
@@ -4749,7 +4850,7 @@ class O extends Ce {
4749
4850
  return this.patch(
4750
4851
  `/internal/clients/${r}/contragents/${e.id}`,
4751
4852
  O.transformContragentClientDataToRequest(e),
4752
- (i) => De.createInstance(i.data),
4853
+ (i) => $e.createInstance(i.data),
4753
4854
  t
4754
4855
  );
4755
4856
  }
@@ -4773,7 +4874,7 @@ class O extends Ce {
4773
4874
  return this.get(
4774
4875
  `/internal/clients/${r}/delivery-addresses`,
4775
4876
  {},
4776
- (e) => e.data.map((t) => new pe(t))
4877
+ (e) => e.data.map((t) => new ye(t))
4777
4878
  );
4778
4879
  }
4779
4880
  /**
@@ -4788,7 +4889,7 @@ class O extends Ce {
4788
4889
  return this.post(
4789
4890
  `/internal/clients/${r}/delivery-addresses`,
4790
4891
  O.transformClientDeliveryAddressToRequest(e),
4791
- (i) => new pe(i.data),
4892
+ (i) => new ye(i.data),
4792
4893
  t
4793
4894
  );
4794
4895
  }
@@ -4804,7 +4905,7 @@ class O extends Ce {
4804
4905
  return this.patch(
4805
4906
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4806
4907
  O.transformClientDeliveryAddressToRequest(e),
4807
- (i) => new pe(i.data),
4908
+ (i) => new ye(i.data),
4808
4909
  t
4809
4910
  );
4810
4911
  }
@@ -4831,7 +4932,7 @@ class O extends Ce {
4831
4932
  return this.post(
4832
4933
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4833
4934
  O.transformClientContragentBankAccountToRequest(t),
4834
- (o) => new Fe(o.data),
4935
+ (o) => new Me(o.data),
4835
4936
  i
4836
4937
  );
4837
4938
  }
@@ -4848,7 +4949,7 @@ class O extends Ce {
4848
4949
  return this.patch(
4849
4950
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
4850
4951
  O.transformClientContragentBankAccountToRequest(t),
4851
- (o) => new Fe(o.data),
4952
+ (o) => new Me(o.data),
4852
4953
  i
4853
4954
  );
4854
4955
  }
@@ -4904,7 +5005,7 @@ class O extends Ce {
4904
5005
  comment: e.comment,
4905
5006
  not_disturb: e.notDisturb
4906
5007
  },
4907
- (i) => new G(i.data),
5008
+ (i) => new W(i.data),
4908
5009
  t
4909
5010
  );
4910
5011
  }
@@ -5041,7 +5142,7 @@ class O extends Ce {
5041
5142
  comment: e.comment,
5042
5143
  ...t
5043
5144
  };
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);
5145
+ 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 W(p.data), i);
5045
5146
  }
5046
5147
  /**
5047
5148
  * Устанавливает признак основного контактного лица.
@@ -5070,7 +5171,7 @@ class O extends Ce {
5070
5171
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5071
5172
  }
5072
5173
  }
5073
- class ps extends h {
5174
+ class as extends h {
5074
5175
  /**
5075
5176
  * Выполняет проверку занят ли указанный номер телефона.
5076
5177
  *
@@ -5084,7 +5185,7 @@ class ps extends h {
5084
5185
  });
5085
5186
  }
5086
5187
  }
5087
- class hs {
5188
+ class Rs {
5088
5189
  /**
5089
5190
  * Инициализирует экземпляр класса {@link VersionConfig}.
5090
5191
  *
@@ -5103,11 +5204,11 @@ class hs {
5103
5204
  * Текущая версия приложения.
5104
5205
  */
5105
5206
  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";
5207
+ 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
5208
  }
5108
5209
  }
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 {
5210
+ var St = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(St || {});
5211
+ class Ps extends h {
5111
5212
  /**
5112
5213
  * Возвращает настройки указанного конфигуратора для указанной категории.
5113
5214
  *
@@ -5137,7 +5238,7 @@ class gs extends h {
5137
5238
  const o = this.get(
5138
5239
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5139
5240
  { params: t, client_id: e },
5140
- (u) => new I(u.data)
5241
+ (u) => new _(u.data)
5141
5242
  );
5142
5243
  return o.catch((u) => {
5143
5244
  this.errorResponseHandler(u, i);
@@ -5198,7 +5299,7 @@ class gs extends h {
5198
5299
  });
5199
5300
  }
5200
5301
  }
5201
- class Rt {
5302
+ class kt {
5202
5303
  /**
5203
5304
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5204
5305
  *
@@ -5216,7 +5317,7 @@ class Rt {
5216
5317
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5217
5318
  }
5218
5319
  }
5219
- class ms extends Rt {
5320
+ class Ds extends kt {
5220
5321
  /**
5221
5322
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5222
5323
  *
@@ -5247,7 +5348,7 @@ class ms extends Rt {
5247
5348
  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
5349
  }
5249
5350
  }
5250
- class fs {
5351
+ class As {
5251
5352
  /**
5252
5353
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5253
5354
  *
@@ -5265,22 +5366,22 @@ class fs {
5265
5366
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
5266
5367
  }
5267
5368
  }
5268
- class ys {
5369
+ class $s {
5269
5370
  /**
5270
5371
  * Возвращает диапазон дат по умолчанию.
5271
5372
  */
5272
5373
  static defaultDateRanges() {
5273
- const r = Jr(/* @__PURE__ */ new Date(), 1);
5374
+ const r = Xr(/* @__PURE__ */ new Date(), 1);
5274
5375
  return {
5275
5376
  // 'Следующий рабочий день' - это значение по-умолчанию
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() }
5377
+ nextWorkingDay: { label: "Следующий рабочий день", from: nt(r), to: it(r) },
5378
+ today: { label: "Сегодня", from: He(), to: st() },
5379
+ yesterday: { label: "Вчера", from: tt(), to: rt() },
5380
+ tomorrow: { label: "Завтра", from: et(), to: Zr() }
5280
5381
  };
5281
5382
  }
5282
5383
  }
5283
- class Lr {
5384
+ class Nr {
5284
5385
  /**
5285
5386
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5286
5387
  *
@@ -5296,7 +5397,7 @@ class Lr {
5296
5397
  */
5297
5398
  static getProductMultiplicity(r) {
5298
5399
  var e, t;
5299
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !Lr.productIsMeasurable(r) ? r.properties.minCount : 1;
5400
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !Nr.productIsMeasurable(r) ? r.properties.minCount : 1;
5300
5401
  }
5301
5402
  /**
5302
5403
  * Возвращает кратность длины для указанного товара.
@@ -5308,7 +5409,7 @@ class Lr {
5308
5409
  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;
5309
5410
  }
5310
5411
  }
5311
- const ee = class ee extends h {
5412
+ const te = class te extends h {
5312
5413
  /**
5313
5414
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5314
5415
  */
@@ -5328,7 +5429,7 @@ const ee = class ee extends h {
5328
5429
  */
5329
5430
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5330
5431
  static getCachedResponse(e) {
5331
- const t = ee.responseDataCache.get(e);
5432
+ const t = te.responseDataCache.get(e);
5332
5433
  if (t && t.validTo > /* @__PURE__ */ new Date())
5333
5434
  return t.val;
5334
5435
  }
@@ -5339,8 +5440,8 @@ const ee = class ee extends h {
5339
5440
  * @param data Данные для кэширования.
5340
5441
  */
5341
5442
  cacheResponse(e, t) {
5342
- ee.responseDataCache.set(e, {
5343
- validTo: et(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5443
+ te.responseDataCache.set(e, {
5444
+ validTo: ot(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5344
5445
  val: t
5345
5446
  });
5346
5447
  }
@@ -5352,31 +5453,32 @@ const ee = class ee extends h {
5352
5453
  * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5353
5454
  * и использовать в случае аналогичных запросов.
5354
5455
  * @param params Дополнительные параметры запроса.
5456
+ * @param signal Сигнал отмены запроса.
5355
5457
  */
5356
5458
  // 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;
5359
- 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;
5459
+ getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
5460
+ const u = t + (se(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? te.getCachedResponse(u) : void 0;
5461
+ return p ? Promise.resolve(p) : this.get(t, o, void 0, !1, c).then((m) => {
5462
+ const f = m.map((R) => Ke.instanceInitializer(e, R));
5463
+ return i && f && this.cacheResponse(t, f), f;
5362
5464
  });
5363
5465
  }
5364
5466
  };
5365
5467
  /**
5366
5468
  * Кэш результатов запросов.
5367
5469
  */
5368
- s(ee, "responseDataCache", /* @__PURE__ */ new Map());
5369
- let fe = ee;
5370
- function ws(n, r) {
5470
+ s(te, "responseDataCache", /* @__PURE__ */ new Map());
5471
+ let Ce = te;
5472
+ function Ts(n, r) {
5371
5473
  const e = [2, 0, 1, 1, 1, 2];
5372
5474
  return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
5373
5475
  }
5374
- class vs {
5476
+ class ds {
5375
5477
  /**
5376
5478
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5377
5479
  */
5378
5480
  static generateUndefinedManagerInstance() {
5379
- return new ae({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5481
+ return new Pe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5380
5482
  }
5381
5483
  /**
5382
5484
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5387,19 +5489,19 @@ class vs {
5387
5489
  return r.id === 0 && r.guid === "-undefined-";
5388
5490
  }
5389
5491
  }
5390
- class Dt extends fe {
5492
+ class Lt extends Ce {
5391
5493
  /**
5392
5494
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5393
5495
  */
5394
5496
  async getManagers() {
5395
- const r = "/internal/managers", e = fe.getCachedResponse(r);
5497
+ const r = "/internal/managers", e = Ce.getCachedResponse(r);
5396
5498
  if (e)
5397
5499
  return e;
5398
- const i = (await this.get(r)).data.map((o) => We.instanceInitializer(ae, o));
5500
+ const i = (await this.get(r)).data.map((o) => Ke.instanceInitializer(Pe, o));
5399
5501
  return this.cacheResponse(r, i), i;
5400
5502
  }
5401
5503
  }
5402
- class _r extends J {
5504
+ class Ur extends E {
5403
5505
  /**
5404
5506
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
5405
5507
  *
@@ -5423,10 +5525,10 @@ class _r extends J {
5423
5525
  * @inheritDoc
5424
5526
  */
5425
5527
  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;
5528
+ 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
5529
  }
5428
5530
  }
5429
- class X extends _r {
5531
+ class Z extends Ur {
5430
5532
  /**
5431
5533
  * Инициализирует экземпляр класса {@link Offer}.
5432
5534
  *
@@ -5442,10 +5544,10 @@ class X extends _r {
5442
5544
  * @inheritDoc
5443
5545
  */
5444
5546
  s(this, "products");
5445
- this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new vr(t));
5547
+ this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new Ar(t));
5446
5548
  }
5447
5549
  }
5448
- class as extends Qe {
5550
+ class bs extends de {
5449
5551
  /**
5450
5552
  * Инициализирует экземпляр класса {@link OffersListFilters}.
5451
5553
  *
@@ -5468,8 +5570,8 @@ class as extends Qe {
5468
5570
  /**
5469
5571
  * @inheritDoc
5470
5572
  */
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);
5573
+ s(this, "createdAt", new T());
5574
+ 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 T(e == null ? void 0 : e.createdAt);
5473
5575
  }
5474
5576
  /**
5475
5577
  * @inheritDoc
@@ -5486,9 +5588,9 @@ class as extends Qe {
5486
5588
  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;
5487
5589
  }
5488
5590
  }
5489
- class $e extends w {
5591
+ class be extends y {
5490
5592
  }
5491
- class Ir extends kr {
5593
+ class Fr extends qr {
5492
5594
  /**
5493
5595
  * Инициализирует экземпляр класса {@link OrderInfo}.
5494
5596
  *
@@ -5551,13 +5653,13 @@ class Ir extends kr {
5551
5653
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5552
5654
  }, this.delivery = {
5553
5655
  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;
5656
+ 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(),
5657
+ address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new ye(e.delivery.address) : void 0,
5658
+ warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new Re(e.delivery.warehouse) : void 0
5659
+ }, this.attachedUser = e != null && e.attachedUser ? new I(e == null ? void 0 : e.attachedUser) : void 0, this.status = new be(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new y(e.statusDetail) : void 0, this.salesDirection = new x(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
5660
  }
5559
5661
  }
5560
- class dt extends wr {
5662
+ class It extends Dr {
5561
5663
  /**
5562
5664
  * Инициализирует экземпляр класса {@link OrderItem}.
5563
5665
  *
@@ -5614,10 +5716,10 @@ class dt extends wr {
5614
5716
  * Продукт, которым заменена текущая запись.
5615
5717
  */
5616
5718
  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"));
5719
+ this.product = new j(e.product), this.currency = new N(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
5720
  }
5619
5721
  }
5620
- class b extends Ir {
5722
+ class S extends Fr {
5621
5723
  /**
5622
5724
  * Инициализирует экземпляр класса {@link Order}.
5623
5725
  *
@@ -5681,11 +5783,11 @@ class b extends Ir {
5681
5783
  this.products = (e.products ?? []).map((i) => {
5682
5784
  var c;
5683
5785
  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;
5786
+ return new It(i, o);
5787
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? $e.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new y(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new be(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
5686
5788
  }
5687
5789
  }
5688
- class Cs extends Ce {
5790
+ class Ss extends ue {
5689
5791
  /**
5690
5792
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
5691
5793
  *
@@ -5705,7 +5807,7 @@ class Cs extends Ce {
5705
5807
  {},
5706
5808
  (o) => {
5707
5809
  const c = { ...o.data };
5708
- return c.data = c.data.map((u) => new _r(u)), c;
5810
+ return c.data = c.data.map((u) => new Ur(u)), c;
5709
5811
  },
5710
5812
  void 0,
5711
5813
  i
@@ -5728,7 +5830,7 @@ class Cs extends Ce {
5728
5830
  name: e,
5729
5831
  items: t != null && t.length ? t : void 0
5730
5832
  },
5731
- (i) => new X(i.data)
5833
+ (i) => new Z(i.data)
5732
5834
  );
5733
5835
  }
5734
5836
  /**
@@ -5739,7 +5841,7 @@ class Cs extends Ce {
5739
5841
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get
5740
5842
  */
5741
5843
  getOffer(r) {
5742
- return this.get(`/internal/orders/offers/${r}`, {}, (e) => new X(e.data));
5844
+ return this.get(`/internal/orders/offers/${r}`, {}, (e) => new Z(e.data));
5743
5845
  }
5744
5846
  /**
5745
5847
  * Обновляет данные заказа-черновика и возвращает обновлённые данные.
@@ -5750,7 +5852,7 @@ class Cs extends Ce {
5750
5852
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_change
5751
5853
  */
5752
5854
  updateOffer(r, e) {
5753
- return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new X(t.data));
5855
+ return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new Z(t.data));
5754
5856
  }
5755
5857
  /**
5756
5858
  * Удаляет заказ-черновик.
@@ -5784,7 +5886,7 @@ class Cs extends Ce {
5784
5886
  deliveryDate: e.deliveryDate ? L(e.deliveryDate, o) : void 0,
5785
5887
  items: t != null && t.length ? t : void 0
5786
5888
  },
5787
- (c) => c.data.map((u) => new b(u)),
5889
+ (c) => c.data.map((u) => new S(u)),
5788
5890
  i
5789
5891
  );
5790
5892
  }
@@ -5813,7 +5915,7 @@ class Cs extends Ce {
5813
5915
  is_additional_sale: e.isAdditionalSale,
5814
5916
  ...e.configuratorParams
5815
5917
  },
5816
- (i) => new X(i.data),
5918
+ (i) => new Z(i.data),
5817
5919
  t
5818
5920
  );
5819
5921
  }
@@ -5842,7 +5944,7 @@ class Cs extends Ce {
5842
5944
  marker: t.marker,
5843
5945
  ...t.configuratorParams
5844
5946
  },
5845
- (o) => new X(o.data),
5947
+ (o) => new Z(o.data),
5846
5948
  i
5847
5949
  );
5848
5950
  }
@@ -5855,7 +5957,7 @@ class Cs extends Ce {
5855
5957
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_delete
5856
5958
  */
5857
5959
  deleteOfferProduct(r, e) {
5858
- return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new X(t.data));
5960
+ return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new Z(t.data));
5859
5961
  }
5860
5962
  /**
5861
5963
  * Возвращает содержимое печатной формы заказа-черновика в формате HTML.
@@ -5895,8 +5997,8 @@ class Cs extends Ce {
5895
5997
  return this.post(`/internal/orders/offers/${r}/send`, e);
5896
5998
  }
5897
5999
  }
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 {
6000
+ var _t = /* @__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))(_t || {});
6001
+ class ks {
5900
6002
  /**
5901
6003
  * Инициализирует экземпляр класса {@link OrderEditorData}.
5902
6004
  *
@@ -5963,11 +6065,11 @@ class Ps {
5963
6065
  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;
5964
6066
  }
5965
6067
  }
5966
- class Or extends w {
6068
+ class Hr extends y {
5967
6069
  }
5968
- class xr extends w {
6070
+ class Br extends y {
5969
6071
  }
5970
- class Rs extends Qe {
6072
+ class Ls extends de {
5971
6073
  /**
5972
6074
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5973
6075
  *
@@ -5995,7 +6097,7 @@ class Rs extends Qe {
5995
6097
  /**
5996
6098
  * @inheritDoc
5997
6099
  */
5998
- s(this, "createdAt", new A());
6100
+ s(this, "createdAt", new T());
5999
6101
  /**
6000
6102
  * @inheritDoc
6001
6103
  */
@@ -6003,7 +6105,7 @@ class Rs extends Qe {
6003
6105
  /**
6004
6106
  * @inheritDoc
6005
6107
  */
6006
- s(this, "deliveryDate", new A());
6108
+ s(this, "deliveryDate", new T());
6007
6109
  /**
6008
6110
  * @inheritDoc
6009
6111
  */
@@ -6031,7 +6133,7 @@ class Rs extends Qe {
6031
6133
  /**
6032
6134
  * @inheritDoc
6033
6135
  */
6034
- s(this, "attachedAt", new A());
6136
+ s(this, "attachedAt", new T());
6035
6137
  /**
6036
6138
  * @inheritDoc
6037
6139
  */
@@ -6068,7 +6170,7 @@ class Rs extends Qe {
6068
6170
  * @inheritDoc
6069
6171
  */
6070
6172
  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;
6173
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Pe(u) : new Hr(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 T(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new I(e.creator) : void 0, this.deliveryDate = new T(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 oe(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 T(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new x(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new H(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Br(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Re(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6072
6174
  }
6073
6175
  /**
6074
6176
  * @inheritDoc
@@ -6085,7 +6187,7 @@ class Rs extends Qe {
6085
6187
  this.deliveryDate.from = null, this.deliveryDate.to = null;
6086
6188
  break;
6087
6189
  case "deliveryType":
6088
- this.deliveryType = new F();
6190
+ this.deliveryType = new H();
6089
6191
  break;
6090
6192
  case "clientCities":
6091
6193
  this.clientCities = [];
@@ -6117,7 +6219,7 @@ class Rs extends Qe {
6117
6219
  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;
6118
6220
  }
6119
6221
  }
6120
- class $t {
6222
+ class xt {
6121
6223
  /**
6122
6224
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6123
6225
  *
@@ -6140,10 +6242,10 @@ class $t {
6140
6242
  * @inheritDoc
6141
6243
  */
6142
6244
  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();
6245
+ this.user = new I(r == null ? void 0 : r.user), this.status = new be(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new y(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
6246
  }
6145
6247
  }
6146
- class Ds extends Ce {
6248
+ class Is extends ue {
6147
6249
  /**
6148
6250
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
6149
6251
  *
@@ -6163,7 +6265,7 @@ class Ds extends Ce {
6163
6265
  {},
6164
6266
  (o) => {
6165
6267
  const c = { ...o.data };
6166
- return c.data = c.data.map((u) => new Ir(u)), c;
6268
+ return c.data = c.data.map((u) => new Fr(u)), c;
6167
6269
  },
6168
6270
  void 0,
6169
6271
  i
@@ -6180,7 +6282,7 @@ class Ds extends Ce {
6180
6282
  getOrdersCount(r, e = void 0) {
6181
6283
  return this.get(
6182
6284
  "/internal/orders/count",
6183
- r ? { filters: JSON.stringify((r instanceof j ? r : new j(r)).toPrimitive()) } : {},
6285
+ r ? { filters: JSON.stringify((r instanceof G ? r : new G(r)).toPrimitive()) } : {},
6184
6286
  void 0,
6185
6287
  void 0,
6186
6288
  e
@@ -6203,7 +6305,7 @@ class Ds extends Ce {
6203
6305
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
6204
6306
  */
6205
6307
  getOrder(r) {
6206
- return this.get(`/internal/orders/${r}`, {}, (e) => new b(e.data));
6308
+ return this.get(`/internal/orders/${r}`, {}, (e) => new S(e.data));
6207
6309
  }
6208
6310
  /**
6209
6311
  * Создаёт новый заказ клиента из содержимого корзины текущего пользователя.
@@ -6229,7 +6331,7 @@ class Ds extends Ce {
6229
6331
  deliveryDate: L(t.deliveryDate, c),
6230
6332
  items: i != null && i.length ? i : void 0
6231
6333
  },
6232
- (u) => u.data.map((p) => new b(p)),
6334
+ (u) => u.data.map((p) => new S(p)),
6233
6335
  o
6234
6336
  );
6235
6337
  }
@@ -6241,7 +6343,7 @@ class Ds extends Ce {
6241
6343
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
6242
6344
  */
6243
6345
  attachOrder(r) {
6244
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new b(e.data));
6346
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new S(e.data));
6245
6347
  }
6246
6348
  /**
6247
6349
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -6251,7 +6353,7 @@ class Ds extends Ce {
6251
6353
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
6252
6354
  */
6253
6355
  detachOrder(r) {
6254
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new b(e.data));
6356
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new S(e.data));
6255
6357
  }
6256
6358
  /**
6257
6359
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -6262,7 +6364,7 @@ class Ds extends Ce {
6262
6364
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
6263
6365
  */
6264
6366
  mergeOrders(r, e) {
6265
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new b(t.data));
6367
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new S(t.data));
6266
6368
  }
6267
6369
  /**
6268
6370
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -6272,7 +6374,7 @@ class Ds extends Ce {
6272
6374
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
6273
6375
  */
6274
6376
  recalculateOrder(r) {
6275
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new b(e.data));
6377
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new S(e.data));
6276
6378
  }
6277
6379
  /**
6278
6380
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -6303,7 +6405,7 @@ class Ds extends Ce {
6303
6405
  ...e,
6304
6406
  deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
6305
6407
  },
6306
- (o) => new b(o.data),
6408
+ (o) => new S(o.data),
6307
6409
  t
6308
6410
  );
6309
6411
  }
@@ -6333,7 +6435,7 @@ class Ds extends Ce {
6333
6435
  is_additional_sale: e.isAdditionalSale,
6334
6436
  ...e.configuratorParams
6335
6437
  },
6336
- (i) => new b(i.data),
6438
+ (i) => new S(i.data),
6337
6439
  t
6338
6440
  );
6339
6441
  }
@@ -6356,7 +6458,7 @@ class Ds extends Ce {
6356
6458
  status: e,
6357
6459
  statusDetail: t
6358
6460
  },
6359
- (o) => new b(o.data),
6461
+ (o) => new S(o.data),
6360
6462
  i
6361
6463
  );
6362
6464
  }
@@ -6370,7 +6472,7 @@ class Ds extends Ce {
6370
6472
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
6371
6473
  */
6372
6474
  changeOrderStatusDetail(r, e) {
6373
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new b(t.data));
6475
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new S(t.data));
6374
6476
  }
6375
6477
  /**
6376
6478
  * Возвращает историю изменения статусов заказа.
@@ -6383,7 +6485,7 @@ class Ds extends Ce {
6383
6485
  return this.get(
6384
6486
  `/internal/orders/${r}/history`,
6385
6487
  {},
6386
- (e) => e.data.map((t) => new $t(t))
6488
+ (e) => e.data.map((t) => new xt(t))
6387
6489
  );
6388
6490
  }
6389
6491
  /**
@@ -6428,7 +6530,7 @@ class Ds extends Ce {
6428
6530
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
6429
6531
  */
6430
6532
  changeAttachedOperator(r, e) {
6431
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new b(t.data));
6533
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new S(t.data));
6432
6534
  }
6433
6535
  /**
6434
6536
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -6438,7 +6540,7 @@ class Ds extends Ce {
6438
6540
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
6439
6541
  */
6440
6542
  deleteOrderAttachedFile(r) {
6441
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new b(e.data));
6543
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new S(e.data));
6442
6544
  }
6443
6545
  /**
6444
6546
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -6449,7 +6551,7 @@ class Ds extends Ce {
6449
6551
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
6450
6552
  */
6451
6553
  deleteOrderProduct(r, e) {
6452
- return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new b(t.data));
6554
+ return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new S(t.data));
6453
6555
  }
6454
6556
  /**
6455
6557
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -6477,7 +6579,7 @@ class Ds extends Ce {
6477
6579
  marker: t.marker,
6478
6580
  ...t.configuratorParams
6479
6581
  },
6480
- (o) => new b(o.data),
6582
+ (o) => new S(o.data),
6481
6583
  i
6482
6584
  );
6483
6585
  }
@@ -6525,7 +6627,7 @@ class Ds extends Ce {
6525
6627
  );
6526
6628
  }
6527
6629
  }
6528
- class Oe {
6630
+ class qe {
6529
6631
  /**
6530
6632
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
6531
6633
  *
@@ -6552,12 +6654,12 @@ class Oe {
6552
6654
  * Источник клиентской цены.
6553
6655
  */
6554
6656
  s(this, "source");
6555
- 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;
6657
+ this.client = new V(r == null ? void 0 : r.client), this.product = new _(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) ?? Ve.Product;
6556
6658
  }
6557
6659
  }
6558
- const xe = (n) => {
6660
+ const Ne = (n) => {
6559
6661
  var r, e, t, i, o;
6560
- return n ? hr(
6662
+ return n ? vr(
6561
6663
  {
6562
6664
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
6563
6665
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -6566,13 +6668,13 @@ const xe = (n) => {
6566
6668
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
6567
6669
  hideNotActive: n.hideNotActive
6568
6670
  },
6569
- (c) => $(c) || (H(c) || Me(c)) && re(c)
6671
+ (c) => d(c) || (B(c) || ze(c)) && se(c)
6570
6672
  ) : {};
6571
- }, or = (n) => {
6673
+ }, hr = (n) => {
6572
6674
  const r = {};
6573
6675
  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;
6574
6676
  };
6575
- class ds extends h {
6677
+ class _s extends h {
6576
6678
  /**
6577
6679
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6578
6680
  *
@@ -6586,10 +6688,10 @@ class ds extends h {
6586
6688
  return this.get(
6587
6689
  `/internal/price/products/${r}/analyze`,
6588
6690
  {
6589
- ...or(e),
6590
- filters: xe(t)
6691
+ ...hr(e),
6692
+ filters: Ne(t)
6591
6693
  },
6592
- (i) => i.data.map((o) => new Oe(o))
6694
+ (i) => i.data.map((o) => new qe(o))
6593
6695
  );
6594
6696
  }
6595
6697
  /**
@@ -6605,10 +6707,10 @@ class ds extends h {
6605
6707
  return this.get(
6606
6708
  `/internal/price/categories/${r}/analyze`,
6607
6709
  {
6608
- ...or(e),
6609
- filters: xe(t)
6710
+ ...hr(e),
6711
+ filters: Ne(t)
6610
6712
  },
6611
- (i) => i.data.map((o) => new Oe(o))
6713
+ (i) => i.data.map((o) => new qe(o))
6612
6714
  );
6613
6715
  }
6614
6716
  /**
@@ -6627,13 +6729,13 @@ class ds extends h {
6627
6729
  `/internal/price/categories/${r}/analyze/square`,
6628
6730
  {
6629
6731
  ...e,
6630
- filters: xe(t)
6732
+ filters: Ne(t)
6631
6733
  },
6632
- (i) => i.data.map((o) => new Oe(o))
6734
+ (i) => i.data.map((o) => new qe(o))
6633
6735
  );
6634
6736
  }
6635
6737
  }
6636
- class Tt {
6738
+ class Ot {
6637
6739
  /**
6638
6740
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
6639
6741
  *
@@ -6680,10 +6782,10 @@ class Tt {
6680
6782
  * @inheritDoc
6681
6783
  */
6682
6784
  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;
6785
+ 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 ve(r.product) : void 0, this.client = r.client ? new I(r.client) : void 0, this.executor = r.executor ? new I(r.executor) : void 0, this.currency = r.currency ? new N(r.currency) : void 0;
6684
6786
  }
6685
6787
  }
6686
- class bt extends ge {
6788
+ class qt extends ve {
6687
6789
  /**
6688
6790
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6689
6791
  *
@@ -6695,10 +6797,10 @@ class bt extends ge {
6695
6797
  * @inheritDoc
6696
6798
  */
6697
6799
  s(this, "history");
6698
- this.history = ye(e.history, (t) => new Tt(t));
6800
+ this.history = ae(e.history, (t) => new Ot(t));
6699
6801
  }
6700
6802
  }
6701
- class As extends h {
6803
+ class xs extends h {
6702
6804
  /**
6703
6805
  * Возвращает данные об истории изменения цен.
6704
6806
  *
@@ -6708,21 +6810,21 @@ class As extends h {
6708
6810
  */
6709
6811
  getProductPriceHistory(r) {
6710
6812
  var o, c, u, p, m;
6711
- const e = k().config.dateFormats.api, t = hr(
6712
- he(r, {
6813
+ const e = k().config.dateFormats.api, t = vr(
6814
+ we(r, {
6713
6815
  costDate: {
6714
- from: qe((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6715
- to: qe((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6816
+ from: Fe((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6817
+ to: Fe((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6716
6818
  }
6717
6819
  }),
6718
- (f) => $(f) || (H(f) || Me(f)) && re(f)
6820
+ (f) => d(f) || (B(f) || ze(f)) && se(f)
6719
6821
  ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6720
6822
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((f) => [
6721
- new bt(he(f[0], { history: f }))
6823
+ new qt(we(f[0], { history: f }))
6722
6824
  ]);
6723
6825
  }
6724
6826
  }
6725
- class cr {
6827
+ class gr {
6726
6828
  /**
6727
6829
  * Инициализирует экземпляр класса {@link RecommendationsList}.
6728
6830
  *
@@ -6737,10 +6839,10 @@ class cr {
6737
6839
  * Список рекомендованных категорий продуктов.
6738
6840
  */
6739
6841
  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)));
6842
+ r != null && r.products && (this.products = r.products.map((e) => new ve(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ve(e)));
6741
6843
  }
6742
6844
  }
6743
- class $s extends h {
6845
+ class Os extends h {
6744
6846
  /**
6745
6847
  * Возвращает данные о рекомендациях указанной категории продуктов.
6746
6848
  *
@@ -6748,7 +6850,7 @@ class $s extends h {
6748
6850
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
6749
6851
  */
6750
6852
  getProductCategoryRecommendations(r) {
6751
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new cr(e.data));
6853
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new gr(e.data));
6752
6854
  }
6753
6855
  /**
6754
6856
  * Возвращает данные о рекомендациях указанного продукта.
@@ -6757,7 +6859,7 @@ class $s extends h {
6757
6859
  * @see /docs/api#/operations/api_internal_recommendations_product_get
6758
6860
  */
6759
6861
  getProductRecommendations(r) {
6760
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new cr(e.data));
6862
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new gr(e.data));
6761
6863
  }
6762
6864
  /**
6763
6865
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -6786,20 +6888,51 @@ class $s extends h {
6786
6888
  });
6787
6889
  }
6788
6890
  }
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 {
6891
+ var Nt = /* @__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))(Nt || {}), Ut = /* @__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))(Ut || {});
6892
+ class Ft extends y {
6893
+ }
6894
+ class Ht extends y {
6895
+ }
6896
+ class er extends b {
6897
+ /**
6898
+ * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
6899
+ *
6900
+ * @param data Данные для первоначальной инициализации.
6901
+ */
6902
+ constructor(e) {
6903
+ super(e);
6904
+ /**
6905
+ * @inheritDoc
6906
+ */
6907
+ s(this, "abbr");
6908
+ this.abbr = (e == null ? void 0 : e.abbr) ?? "";
6909
+ }
6791
6910
  }
6792
- class Ts extends w {
6911
+ class mr extends y {
6912
+ /**
6913
+ * Инициализирует экземпляр класса {@link CityWithUserRegion}.
6914
+ *
6915
+ * @param data Данные для первоначальной инициализации.
6916
+ */
6917
+ constructor(e) {
6918
+ var t;
6919
+ super(e);
6920
+ /**
6921
+ * @inheritDoc
6922
+ */
6923
+ s(this, "userRegions");
6924
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new er(i))) ?? [];
6925
+ }
6793
6926
  }
6794
- class _t extends w {
6927
+ class Bt extends y {
6795
6928
  }
6796
- class It extends w {
6929
+ class Mt extends y {
6797
6930
  }
6798
- class Ot extends w {
6931
+ class jt extends y {
6799
6932
  }
6800
- class xt extends w {
6933
+ class Gt extends y {
6801
6934
  }
6802
- class bs {
6935
+ class qs {
6803
6936
  /**
6804
6937
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
6805
6938
  *
@@ -6818,9 +6951,18 @@ class bs {
6818
6951
  return r.id === 0 && r.slug === "-undefined-";
6819
6952
  }
6820
6953
  }
6821
- class qr extends w {
6954
+ class Mr extends y {
6822
6955
  }
6823
- class T extends fe {
6956
+ const q = class q extends Ce {
6957
+ /**
6958
+ * Исключает из списка записей справочника местоположений служебную запись
6959
+ * неизвестного региона или города.
6960
+ *
6961
+ * @param locations Записи справочника местоположений.
6962
+ */
6963
+ static withoutUnknownLocation(r) {
6964
+ return r.filter((e) => e.id !== q.unknownLocationId);
6965
+ }
6824
6966
  /**
6825
6967
  * Возвращает {@link Promise} для получения данных указанного справочника.
6826
6968
  *
@@ -6829,39 +6971,39 @@ class T extends fe {
6829
6971
  * и использовать в случае аналогичных запросов.
6830
6972
  */
6831
6973
  getReference(r, e = !1) {
6832
- return this.getTypedDataArrayRequester(Lt, `/internal/references/${r}`, e);
6974
+ return this.getTypedDataArrayRequester(Ft, `/internal/references/${r}`, e);
6833
6975
  }
6834
6976
  /**
6835
6977
  * Возвращает {@link Promise} для получения справочника данных о канале
6836
6978
  * первичного интереса.
6837
6979
  */
6838
6980
  getChannelPrimaryInterest() {
6839
- return this.getTypedDataArrayRequester(br, "/internal/references/channel-primary-interest", !0);
6981
+ return this.getTypedDataArrayRequester(xr, "/internal/references/channel-primary-interest", !0);
6840
6982
  }
6841
6983
  /**
6842
6984
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
6843
6985
  */
6844
6986
  getContactPositions() {
6845
- return this.getTypedDataArrayRequester(_t, "/internal/references/contact-position", !0);
6987
+ return this.getTypedDataArrayRequester(Bt, "/internal/references/contact-position", !0);
6846
6988
  }
6847
6989
  /**
6848
6990
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
6849
6991
  */
6850
6992
  getCuratedDirection() {
6851
- return this.getTypedDataArrayRequester(Ve, "/internal/references/curated-direction", !0);
6993
+ return this.getTypedDataArrayRequester(Ye, "/internal/references/curated-direction", !0);
6852
6994
  }
6853
6995
  /**
6854
6996
  * Возвращает {@link Promise} для получения справочника списка валют.
6855
6997
  */
6856
6998
  getCurrency() {
6857
- return this.getTypedDataArrayRequester(x, "/public/references/currency", !0);
6999
+ return this.getTypedDataArrayRequester(N, "/public/references/currency", !0);
6858
7000
  }
6859
7001
  /**
6860
7002
  * Возвращает {@link Promise} для получения справочника данных
6861
7003
  * групп партнеров (направлений деятельности).
6862
7004
  */
6863
7005
  getPartnerGroup() {
6864
- return this.getTypedDataArrayRequester(se, "/internal/references/partner-group", !0);
7006
+ return this.getTypedDataArrayRequester(ce, "/internal/references/partner-group", !0);
6865
7007
  }
6866
7008
  /**
6867
7009
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
@@ -6873,49 +7015,49 @@ class T extends fe {
6873
7015
  * Возвращает {@link Promise} для получения справочника операторов.
6874
7016
  */
6875
7017
  getOperators() {
6876
- return this.getTypedDataArrayRequester(Or, "/internal/references/operator", !0);
7018
+ return this.getTypedDataArrayRequester(Hr, "/internal/references/operator", !0);
6877
7019
  }
6878
7020
  /**
6879
7021
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
6880
7022
  */
6881
7023
  getOrderPaymentStatuses() {
6882
- return this.getTypedDataArrayRequester(It, "/public/references/order-payment-status", !0);
7024
+ return this.getTypedDataArrayRequester(Mt, "/public/references/order-payment-status", !0);
6883
7025
  }
6884
7026
  /**
6885
7027
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
6886
7028
  */
6887
7029
  getOrderStatuses() {
6888
- return this.getTypedDataArrayRequester($e, "/internal/references/order-status", !0);
7030
+ return this.getTypedDataArrayRequester(be, "/internal/references/order-status", !0);
6889
7031
  }
6890
7032
  /**
6891
7033
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
6892
7034
  */
6893
7035
  getOrderStatusDetails() {
6894
- return this.getTypedDataArrayRequester(Ot, "/internal/references/order-status-detail", !0);
7036
+ return this.getTypedDataArrayRequester(jt, "/internal/references/order-status-detail", !0);
6895
7037
  }
6896
7038
  /**
6897
7039
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
6898
7040
  */
6899
7041
  getPaymentTypes() {
6900
- return this.getTypedDataArrayRequester(xr, "/public/references/payment-type", !0);
7042
+ return this.getTypedDataArrayRequester(Br, "/public/references/payment-type", !0);
6901
7043
  }
6902
7044
  /**
6903
7045
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
6904
7046
  */
6905
7047
  getResourceTypes() {
6906
- return this.getTypedDataArrayRequester(qr, "/internal/references/resource-type", !0);
7048
+ return this.getTypedDataArrayRequester(Mr, "/internal/references/resource-type", !0);
6907
7049
  }
6908
7050
  /**
6909
7051
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
6910
7052
  */
6911
7053
  getSalesDirections() {
6912
- return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
7054
+ return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
6913
7055
  }
6914
7056
  /**
6915
7057
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
6916
7058
  */
6917
7059
  getSourcePrimaryInterest() {
6918
- return this.getTypedDataArrayRequester(Sr, "/internal/references/source-primary-interest", !0);
7060
+ return this.getTypedDataArrayRequester(Or, "/internal/references/source-primary-interest", !0);
6919
7061
  }
6920
7062
  /**
6921
7063
  * Выполняет поиск данных о городах по терму в названии.
@@ -6923,7 +7065,7 @@ class T extends fe {
6923
7065
  * @param term Терм поиска.
6924
7066
  */
6925
7067
  searchCity(r) {
6926
- return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
7068
+ return this.getTypedDataArrayRequester(oe, `/internal/references/city-with-region-and-country/search?term=${r}`);
6927
7069
  }
6928
7070
  /**
6929
7071
  * Выполняет поиск данных о регионах по терму в названии.
@@ -6931,7 +7073,71 @@ class T extends fe {
6931
7073
  * @param term Терм поиска.
6932
7074
  */
6933
7075
  searchRegion(r) {
6934
- return this.getTypedDataArrayRequester(me, `/internal/references/region-with-country/search?term=${r}`);
7076
+ return this.getTypedDataArrayRequester(ne, `/internal/references/region-with-country/search?term=${r}`);
7077
+ }
7078
+ /**
7079
+ * Возвращает {@link Promise} для получения справочника регионов указанной страны.
7080
+ *
7081
+ * Служебная запись справочника, обозначающая неизвестный регион, из результата исключается.
7082
+ *
7083
+ * @param countryId Идентификатор страны.
7084
+ */
7085
+ getRegionsByCountry(r) {
7086
+ return this.getTypedDataArrayRequester(ne, "/internal/references/region", !1, { params: { countryId: r } }).then(
7087
+ (e) => q.withoutUnknownLocation(e)
7088
+ );
7089
+ }
7090
+ /**
7091
+ * Возвращает {@link Promise} для получения справочника городов указанного региона.
7092
+ *
7093
+ * Служебная запись справочника, обозначающая неизвестный город, из результата исключается.
7094
+ *
7095
+ * @param regionId Идентификатор региона.
7096
+ */
7097
+ getCitiesByRegion(r) {
7098
+ return this.getTypedDataArrayRequester(Ht, "/internal/references/city", !1, { params: { regionId: r } }).then(
7099
+ (e) => q.withoutUnknownLocation(e)
7100
+ );
7101
+ }
7102
+ /**
7103
+ * Возвращает {@link Promise} для получения городов указанного региона,
7104
+ * которые уже привязаны к регионам пользователей.
7105
+ *
7106
+ * @param regionId Идентификатор региона.
7107
+ */
7108
+ getCitiesWithUserRegionByRegion(r) {
7109
+ return this.getTypedDataArrayRequester(mr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
7110
+ (e) => q.withoutUnknownLocation(e)
7111
+ );
7112
+ }
7113
+ /**
7114
+ * Выполняет поиск данных о городах по терму в названии с данными о регионе,
7115
+ * в котором расположен город.
7116
+ *
7117
+ * @param term Терм поиска.
7118
+ * @param countryId Идентификатор страны, городами которой необходимо ограничить поиск.
7119
+ * @param signal Сигнал отмены запроса.
7120
+ */
7121
+ searchCityWithRegion(r, e, t = void 0) {
7122
+ return this.getTypedDataArrayRequester(
7123
+ oe,
7124
+ "/internal/references/city-with-region/search",
7125
+ !1,
7126
+ { term: r, ...e ? { params: { countryId: e } } : {} },
7127
+ t
7128
+ ).then((i) => q.withoutUnknownLocation(i));
7129
+ }
7130
+ /**
7131
+ * Выполняет поиск данных о городах по терму в названии с данными
7132
+ * о регионах пользователей, к которым привязан город.
7133
+ *
7134
+ * @param term Терм поиска.
7135
+ * @param signal Сигнал отмены запроса.
7136
+ */
7137
+ searchCityWithUserRegion(r, e = void 0) {
7138
+ return this.getTypedDataArrayRequester(mr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
7139
+ (t) => q.withoutUnknownLocation(t)
7140
+ );
6935
7141
  }
6936
7142
  /**
6937
7143
  * Выполняет поиск данных о странах по терму в названии.
@@ -6939,41 +7145,47 @@ class T extends fe {
6939
7145
  * @param term Терм поиска.
6940
7146
  */
6941
7147
  searchCountry(r) {
6942
- return this.getTypedDataArrayRequester(te, `/internal/references/country/search?term=${r}`);
7148
+ return this.getTypedDataArrayRequester(ie, `/internal/references/country/search?term=${r}`);
6943
7149
  }
6944
7150
  /**
6945
7151
  * Возвращает {@link Promise} для получения справочника типов доставки.
6946
7152
  */
6947
7153
  getDeliveryTypes() {
6948
- return this.getTypedDataArrayRequester(F, "/internal/references/delivery-type", !0);
7154
+ return this.getTypedDataArrayRequester(H, "/internal/references/delivery-type", !0);
6949
7155
  }
6950
7156
  /**
6951
7157
  * Возвращает {@link Promise} для получения справочника складов.
6952
7158
  */
6953
7159
  getWarehouses() {
6954
- return this.getTypedDataArrayRequester(we, "/public/references/warehouse", !0);
7160
+ return this.getTypedDataArrayRequester(Re, "/public/references/warehouse", !0);
6955
7161
  }
6956
7162
  /**
6957
7163
  * Возвращает {@link Promise} для получения справочника типов свойств.
6958
7164
  */
6959
7165
  getPropertyTypes() {
6960
- return this.getTypedDataArrayRequester(Dr, "/internal/references/property-type", !0);
7166
+ return this.getTypedDataArrayRequester(Sr, "/internal/references/property-type", !0);
6961
7167
  }
6962
7168
  /**
6963
7169
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
6964
7170
  */
6965
7171
  getPriceCoefficients() {
6966
- return this.getTypedDataArrayRequester(de, "/internal/references/price-coefficient", !0);
7172
+ return this.getTypedDataArrayRequester(Te, "/internal/references/price-coefficient", !0);
6967
7173
  }
6968
7174
  /**
6969
7175
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
6970
7176
  */
6971
7177
  getProductFileType() {
6972
- return this.getTypedDataArrayRequester(xt, "/public/references/product-file-type", !0);
7178
+ return this.getTypedDataArrayRequester(Gt, "/public/references/product-file-type", !0);
6973
7179
  }
6974
- }
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);
7180
+ };
7181
+ /**
7182
+ * Идентификатор служебных записей справочников регионов и городов,
7183
+ * обозначающих неизвестное местоположение.
7184
+ */
7185
+ s(q, "unknownLocationId", 1);
7186
+ let A = q;
7187
+ const $ = J("common.references_private", () => {
7188
+ const n = w({}), r = w(void 0), e = w(void 0), t = w(void 0), i = w(void 0), o = w(void 0), c = w(void 0), u = w(void 0), p = w(void 0), m = w(void 0), f = w(void 0), R = w(void 0), pe = w(void 0), he = w(void 0), K = w(void 0), Q = w(void 0), Se = w(void 0), ke = w(void 0), Le = w(void 0), l = w(void 0);
6977
7189
  return {
6978
7190
  /**
6979
7191
  * Список загружаемых/загруженных на данный момент значений.
@@ -7022,134 +7234,134 @@ const d = W("common.references_private", () => {
7022
7234
  /**
7023
7235
  * Справочник типов оплаты заказов.
7024
7236
  */
7025
- paymentTypeReference: D,
7237
+ paymentTypeReference: R,
7026
7238
  /**
7027
7239
  * Справочник групп партнеров.
7028
7240
  */
7029
- partnerGroupReference: ie,
7241
+ partnerGroupReference: pe,
7030
7242
  /**
7031
7243
  * Справочник типов файлов продукктов/категорий.
7032
7244
  */
7033
- productFileTypeReference: ne,
7245
+ productFileTypeReference: he,
7034
7246
  /**
7035
7247
  * Справочник типов ресурсов.
7036
7248
  */
7037
- resourceTypesReference: E,
7249
+ resourceTypesReference: K,
7038
7250
  /**
7039
7251
  * Справочник направлений продаж.
7040
7252
  */
7041
- salesDirectionsReference: K,
7253
+ salesDirectionsReference: Q,
7042
7254
  /**
7043
7255
  * Справочник источников первичного интереса.
7044
7256
  */
7045
- sourcePrimaryInterestReference: Te,
7257
+ sourcePrimaryInterestReference: Se,
7046
7258
  /**
7047
7259
  * Справочник складов.
7048
7260
  */
7049
- warehousesReference: be,
7261
+ warehousesReference: ke,
7050
7262
  /**
7051
7263
  * Справочник типов свойств.
7052
7264
  */
7053
- propertyTypesReference: Se,
7265
+ propertyTypesReference: Le,
7054
7266
  /**
7055
7267
  * Справочник коэффициентов цен.
7056
7268
  */
7057
7269
  priceCoefficientsReference: l
7058
7270
  };
7059
- }), Ss = W("common.references", () => {
7060
- const n = R(() => {
7061
- const l = d();
7062
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
7271
+ }), Ns = J("common.references", () => {
7272
+ const n = D(() => {
7273
+ const l = $();
7274
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
7063
7275
  l.channelPrimaryInterestReference = g;
7064
7276
  }).catch(v)), l.channelPrimaryInterestReference;
7065
- }), r = R(() => {
7066
- const l = d();
7067
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
7277
+ }), r = D(() => {
7278
+ const l = $();
7279
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
7068
7280
  l.contactPositionsReference = g;
7069
7281
  }).catch(v)), l.contactPositionsReference;
7070
- }), e = R(() => {
7071
- const l = d();
7072
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
7282
+ }), e = D(() => {
7283
+ const l = $();
7284
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
7073
7285
  l.currencyReference = g;
7074
7286
  }).catch(v)), l.currencyReference;
7075
- }), t = R(() => {
7076
- const l = d();
7077
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
7287
+ }), t = D(() => {
7288
+ const l = $();
7289
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
7078
7290
  l.opfReference = g;
7079
7291
  }).catch(v)), l.opfReference;
7080
- }), i = R(() => {
7081
- const l = d();
7082
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
7292
+ }), i = D(() => {
7293
+ const l = $();
7294
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(A).getOperators().then((g) => {
7083
7295
  l.operatorReference = g;
7084
7296
  }).catch(v)), l.operatorReference;
7085
- }), o = R(() => {
7086
- const l = d();
7087
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
7297
+ }), o = D(() => {
7298
+ const l = $();
7299
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
7088
7300
  l.orderPaymentStatusReference = g;
7089
7301
  }).catch(v)), l.orderPaymentStatusReference;
7090
- }), c = R(() => {
7091
- const l = d();
7092
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
7302
+ }), c = D(() => {
7303
+ const l = $();
7304
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
7093
7305
  l.orderStatusReference = g;
7094
7306
  }).catch(v)), l.orderStatusReference;
7095
- }), u = R(() => {
7096
- const l = d();
7097
- return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((g) => {
7307
+ }), u = D(() => {
7308
+ const l = $();
7309
+ return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(A).getOrderStatusDetails().then((g) => {
7098
7310
  l.orderStatusDetailReference = g;
7099
7311
  }).catch(v)), l.orderStatusDetailReference;
7100
- }), p = R(() => {
7101
- const l = d();
7102
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
7312
+ }), p = D(() => {
7313
+ const l = $();
7314
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
7103
7315
  l.paymentTypeReference = g;
7104
7316
  }).catch(v)), l.paymentTypeReference;
7105
- }), m = R(() => {
7106
- const l = d();
7107
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
7317
+ }), m = D(() => {
7318
+ const l = $();
7319
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
7108
7320
  l.partnerGroupReference = g;
7109
7321
  }).catch(v)), l.partnerGroupReference;
7110
- }), f = R(() => {
7111
- const l = d();
7112
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
7322
+ }), f = D(() => {
7323
+ const l = $();
7324
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
7113
7325
  l.productFileTypeReference = g;
7114
7326
  }).catch(v)), l.productFileTypeReference;
7115
- }), D = R(() => {
7116
- const l = d();
7117
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
7327
+ }), R = D(() => {
7328
+ const l = $();
7329
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
7118
7330
  l.resourceTypesReference = g;
7119
7331
  }).catch(v)), l.resourceTypesReference;
7120
- }), ie = R(() => {
7121
- const l = d();
7122
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
7332
+ }), pe = D(() => {
7333
+ const l = $();
7334
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
7123
7335
  l.salesDirectionsReference = g;
7124
7336
  }).catch(v)), l.salesDirectionsReference;
7125
- }), ne = R(() => {
7126
- const l = d();
7127
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
7337
+ }), he = D(() => {
7338
+ const l = $();
7339
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
7128
7340
  l.sourcePrimaryInterestReference = g;
7129
7341
  }).catch(v)), l.sourcePrimaryInterestReference;
7130
- }), E = R(() => {
7131
- const l = d();
7132
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
7342
+ }), K = D(() => {
7343
+ const l = $();
7344
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
7133
7345
  l.deliveryTypeReference = g;
7134
7346
  }).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) => {
7347
+ }), Q = D(() => {
7348
+ const l = $();
7349
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Lt).getManagers().then((g) => {
7138
7350
  l.managersList = g;
7139
7351
  }).catch(v)), l.managersList;
7140
- }), Te = R(() => {
7141
- const l = d();
7142
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
7352
+ }), Se = D(() => {
7353
+ const l = $();
7354
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
7143
7355
  l.warehousesReference = g;
7144
7356
  }).catch(v)), l.warehousesReference;
7145
- }), be = R(() => {
7146
- const l = d();
7147
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
7357
+ }), ke = D(() => {
7358
+ const l = $();
7359
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
7148
7360
  l.propertyTypesReference = g;
7149
7361
  }).catch(v)), l.propertyTypesReference;
7150
- }), Se = R(() => {
7151
- const l = d();
7152
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
7362
+ }), Le = D(() => {
7363
+ const l = $();
7364
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
7153
7365
  l.priceCoefficientsReference = g;
7154
7366
  }).catch(v)), l.priceCoefficientsReference;
7155
7367
  });
@@ -7201,38 +7413,38 @@ const d = W("common.references_private", () => {
7201
7413
  /**
7202
7414
  * Справочник типов ресурсов.
7203
7415
  */
7204
- resourceTypesReference: D,
7416
+ resourceTypesReference: R,
7205
7417
  /**
7206
7418
  * Справочник направлений продаж.
7207
7419
  */
7208
- salesDirectionsReference: ie,
7420
+ salesDirectionsReference: pe,
7209
7421
  /**
7210
7422
  * Справочник каналов первичного интереса.
7211
7423
  */
7212
- sourcePrimaryInterestsReference: ne,
7424
+ sourcePrimaryInterestsReference: he,
7213
7425
  /**
7214
7426
  * Справочник типов доставки.
7215
7427
  */
7216
- deliveryTypeReference: E,
7428
+ deliveryTypeReference: K,
7217
7429
  /**
7218
7430
  * Список менеджеров.
7219
7431
  */
7220
- managersList: K,
7432
+ managersList: Q,
7221
7433
  /**
7222
7434
  * Справочник складов.
7223
7435
  */
7224
- warehousesReference: Te,
7436
+ warehousesReference: Se,
7225
7437
  /**
7226
7438
  * Справочник типов свойств.
7227
7439
  */
7228
- propertyTypesReference: be,
7440
+ propertyTypesReference: ke,
7229
7441
  /**
7230
7442
  * Справочник коэффициентов цен.
7231
7443
  */
7232
- priceCoefficientsReference: Se
7444
+ priceCoefficientsReference: Le
7233
7445
  };
7234
7446
  });
7235
- class qt {
7447
+ class Wt {
7236
7448
  /**
7237
7449
  * Инициализирует экземпляр класса {@link MetaTagItem}.
7238
7450
  *
@@ -7250,7 +7462,7 @@ class qt {
7250
7462
  this.name = r.name, this.content = r.content;
7251
7463
  }
7252
7464
  }
7253
- class lr {
7465
+ class fr {
7254
7466
  /**
7255
7467
  * Инициализирует экземпляр класса {@link Seo}.
7256
7468
  *
@@ -7290,10 +7502,10 @@ class lr {
7290
7502
  */
7291
7503
  s(this, "tags");
7292
7504
  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;
7505
+ this.resourceType = new Mr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Wt(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
7294
7506
  }
7295
7507
  }
7296
- class ks extends h {
7508
+ class Us extends h {
7297
7509
  /**
7298
7510
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
7299
7511
  *
@@ -7301,7 +7513,7 @@ class ks extends h {
7301
7513
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
7302
7514
  */
7303
7515
  getResourceSeoData(r, e) {
7304
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new lr(t.data));
7516
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new fr(t.data));
7305
7517
  }
7306
7518
  /**
7307
7519
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -7312,7 +7524,7 @@ class ks extends h {
7312
7524
  * в случае ошибок в запросах.
7313
7525
  */
7314
7526
  saveResourceSeoData(r, e = {}) {
7315
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new lr(t.data), e);
7527
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new fr(t.data), e);
7316
7528
  }
7317
7529
  /**
7318
7530
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -7324,7 +7536,7 @@ class ks extends h {
7324
7536
  return this.delete(`/internal/seo/${r.slug}/${e}`);
7325
7537
  }
7326
7538
  }
7327
- class Ls extends h {
7539
+ class Fs extends h {
7328
7540
  /**
7329
7541
  * Возвращает подсказки по адресам.
7330
7542
  *
@@ -7371,8 +7583,8 @@ class Ls extends h {
7371
7583
  });
7372
7584
  }
7373
7585
  }
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 {
7586
+ var zt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(zt || {});
7587
+ class Jt extends br {
7376
7588
  /**
7377
7589
  * Инициализирует экземпляр класса {@link User}.
7378
7590
  *
@@ -7396,10 +7608,10 @@ class Ut extends Rr {
7396
7608
  * Роль ценообразования текущего пользователя.
7397
7609
  */
7398
7610
  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;
7611
+ 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 Tr(e.pricingRole) : void 0;
7400
7612
  }
7401
7613
  }
7402
- class _s extends h {
7614
+ class Hs extends h {
7403
7615
  /**
7404
7616
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
7405
7617
  */
@@ -7415,17 +7627,17 @@ class _s extends h {
7415
7627
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
7416
7628
  }
7417
7629
  }
7418
- class Ft extends h {
7630
+ class Et extends h {
7419
7631
  /**
7420
7632
  * Возвращает данные о текущем пользователе.
7421
7633
  */
7422
7634
  // eslint-disable-next-line class-methods-use-this
7423
7635
  getCurrentUser() {
7424
- return this.get("/internal/users/info", {}, (r) => new Ut(r.data), !0);
7636
+ return this.get("/internal/users/info", {}, (r) => new Jt(r.data), !0);
7425
7637
  }
7426
7638
  }
7427
- const Ht = W("common.user_state_private", () => {
7428
- const n = y({}), r = y(void 0);
7639
+ const Vt = J("common.user_state_private", () => {
7640
+ const n = w({}), r = w(void 0);
7429
7641
  return {
7430
7642
  /**
7431
7643
  * Список загружаемых/загруженных на данный момент значений.
@@ -7436,20 +7648,200 @@ const Ht = W("common.user_state_private", () => {
7436
7648
  */
7437
7649
  currentUser: r
7438
7650
  };
7439
- }), Is = W("common.user_state", () => ({
7651
+ }), Bs = J("common.user_state", () => ({
7440
7652
  /**
7441
7653
  * Данные о текущем пользователе.
7442
7654
  */
7443
- currentUser: R(() => {
7444
- const r = Ht();
7445
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Ft).getCurrentUser().then((e) => {
7655
+ currentUser: D(() => {
7656
+ const r = Vt();
7657
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Et).getCurrentUser().then((e) => {
7446
7658
  r.currentUser = e;
7447
7659
  }).catch(v).finally(() => {
7448
7660
  r.dataLoaderList.currentUser = !1;
7449
7661
  })), r.currentUser;
7450
7662
  })
7451
7663
  }));
7452
- class Os {
7664
+ class Ge {
7665
+ /**
7666
+ * Инициализирует экземпляр класса {@link UserRegionEmployee}.
7667
+ *
7668
+ * @param data Данные для первоначальной инициализации.
7669
+ */
7670
+ constructor(r) {
7671
+ /**
7672
+ * @inheritDoc
7673
+ */
7674
+ s(this, "user");
7675
+ /**
7676
+ * @inheritDoc
7677
+ */
7678
+ s(this, "salesDirection");
7679
+ this.user = new I(r == null ? void 0 : r.user), this.salesDirection = new x(r == null ? void 0 : r.salesDirection);
7680
+ }
7681
+ }
7682
+ class Ue extends er {
7683
+ /**
7684
+ * Инициализирует экземпляр класса {@link UserRegion}.
7685
+ *
7686
+ * @param data Данные для первоначальной инициализации.
7687
+ */
7688
+ constructor(e) {
7689
+ var t, i;
7690
+ super(e);
7691
+ /**
7692
+ * @inheritDoc
7693
+ */
7694
+ s(this, "cities");
7695
+ /**
7696
+ * @inheritDoc
7697
+ */
7698
+ s(this, "users");
7699
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new oe(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Ge(o))) ?? [];
7700
+ }
7701
+ }
7702
+ class Ms extends de {
7703
+ /**
7704
+ * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
7705
+ *
7706
+ * @param data Данные для первоначальной инициализации.
7707
+ */
7708
+ constructor(e) {
7709
+ super();
7710
+ /**
7711
+ * @inheritDoc
7712
+ */
7713
+ s(this, "id");
7714
+ /**
7715
+ * @inheritDoc
7716
+ */
7717
+ s(this, "name");
7718
+ /**
7719
+ * @inheritDoc
7720
+ */
7721
+ s(this, "abbr");
7722
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.abbr = e == null ? void 0 : e.abbr;
7723
+ }
7724
+ /**
7725
+ * @inheritDoc
7726
+ */
7727
+ resetFilterValue(e) {
7728
+ switch (e) {
7729
+ case "id":
7730
+ case "name":
7731
+ case "abbr":
7732
+ this[e] = void 0;
7733
+ break;
7734
+ }
7735
+ return this;
7736
+ }
7737
+ }
7738
+ class js extends ue {
7739
+ /**
7740
+ * Возвращает список регионов пользователей.
7741
+ *
7742
+ * @param filters Параметры фильтрации данных.
7743
+ * @param sortParams Параметры сортировки.
7744
+ * @param paginationParams Параметры пагинации.
7745
+ *
7746
+ * @see /doc/api/internal#/operations/api_internal_user_region_get_list
7747
+ */
7748
+ getRegionsList(r, e, t) {
7749
+ return this.getPaginated("/internal/users/regions", r, e, t, {}, (i) => {
7750
+ const o = { ...i.data };
7751
+ return o.data = o.data.map((c) => new er(c)), o;
7752
+ });
7753
+ }
7754
+ /**
7755
+ * Возвращает полные данные о регионе пользователей.
7756
+ *
7757
+ * @param regionId Идентификатор региона.
7758
+ *
7759
+ * @see /doc/api/internal#/operations/api_internal_user_region_get
7760
+ */
7761
+ getRegion(r) {
7762
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new Ue(e.data));
7763
+ }
7764
+ /**
7765
+ * Создаёт новый регион пользователей.
7766
+ *
7767
+ * @param data Данные для создания региона.
7768
+ * @param validationFieldResultData Список полей, для которых необходимо
7769
+ * установить данные об ошибках валидации
7770
+ * в случае ошибок в запросах.
7771
+ *
7772
+ * @see /doc/api/internal#/operations/api_internal_user_region_create
7773
+ */
7774
+ createRegion(r, e = {}) {
7775
+ return this.post("/internal/users/regions", r, (t) => new Ue(t.data), e);
7776
+ }
7777
+ /**
7778
+ * Изменяет данные о регионе пользователей.
7779
+ *
7780
+ * @param regionId Идентификатор региона.
7781
+ * @param data Данные для изменения региона.
7782
+ * @param validationFieldResultData Список полей, для которых необходимо
7783
+ * установить данные об ошибках валидации
7784
+ * в случае ошибок в запросах.
7785
+ *
7786
+ * @see /doc/api/internal#/operations/api_internal_user_region_change
7787
+ */
7788
+ updateRegion(r, e, t = {}) {
7789
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new Ue(i.data), t);
7790
+ }
7791
+ /**
7792
+ * Удаляет регион пользователей.
7793
+ *
7794
+ * @param regionId Идентификатор региона.
7795
+ *
7796
+ * @see /doc/api/internal#/operations/api_internal_user_region_delete
7797
+ */
7798
+ removeRegion(r) {
7799
+ return this.delete(`/internal/users/regions/${r}`);
7800
+ }
7801
+ /**
7802
+ * Возвращает список сотрудников, закреплённых за регионом.
7803
+ *
7804
+ * @param regionId Идентификатор региона.
7805
+ *
7806
+ * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
7807
+ */
7808
+ getRegionEmployees(r) {
7809
+ return this.get(
7810
+ `/internal/users/regions/${r}/users`,
7811
+ {},
7812
+ (e) => e.data.map((t) => new Ge(t))
7813
+ );
7814
+ }
7815
+ /**
7816
+ * Закрепляет сотрудника за регионом по указанному направлению продаж.
7817
+ *
7818
+ * @param regionId Идентификатор региона.
7819
+ * @param userId Идентификатор сотрудника.
7820
+ * @param salesDirectionId Идентификатор направления продаж.
7821
+ *
7822
+ * @see /doc/api/internal#/operations/api_internal_user_region_user_add
7823
+ */
7824
+ attachRegionEmployee(r, e, t) {
7825
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Ge(i.data));
7826
+ }
7827
+ /**
7828
+ * Открепляет сотрудника от региона по указанному направлению продаж.
7829
+ *
7830
+ * @param regionId Идентификатор региона.
7831
+ * @param userId Идентификатор сотрудника.
7832
+ * @param salesDirectionId Идентификатор направления продаж.
7833
+ *
7834
+ * @see /doc/api/internal#/operations/api_internal_user_region_user_delete
7835
+ */
7836
+ detachRegionEmployee(r, e, t) {
7837
+ return this.request({
7838
+ method: "DELETE",
7839
+ url: `/internal/users/regions/${r}/users/${e}`,
7840
+ params: { sales_direction_id: t }
7841
+ });
7842
+ }
7843
+ }
7844
+ class Gs {
7453
7845
  /**
7454
7846
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
7455
7847
  *
@@ -7473,168 +7865,177 @@ class Os {
7473
7865
  }
7474
7866
  }
7475
7867
  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,
7485
- N as Category,
7486
- 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,
7868
+ Ft as AnyReference,
7869
+ mt as AppBaseConfig,
7870
+ Me as BankAccount,
7871
+ ue as BasePaginationProvider,
7872
+ Ct as CalculationTypeEnum,
7873
+ ge as Cart,
7874
+ ns as CartProvider,
7875
+ cs as CatalogProvider,
7876
+ Pr as CatalogableItem,
7877
+ U as Category,
7878
+ or as CategoryFilterSetting,
7879
+ nr as CategoryPricingRule,
7880
+ xr as ChannelPrimaryInterest,
7881
+ Ht as City,
7882
+ oe as CityWithRegionAndCountry,
7883
+ mr as CityWithUserRegion,
7884
+ pr as Client,
7885
+ dt as ClientAdditionalData,
7886
+ Ae as ClientCategory,
7493
7887
  O as ClientDataProvider,
7494
- Zt as ClientPriceProvider,
7495
- es as ClientPriceTemplateProvider,
7496
- M as ClientProduct,
7497
- ss as ClientProductCategoryDataProvider,
7498
- is as ClientProductDataProvider,
7888
+ ls as ClientPriceProvider,
7889
+ us as ClientPriceTemplateProvider,
7890
+ j as ClientProduct,
7891
+ gs as ClientProductCategoryDataProvider,
7892
+ ms as ClientProductDataProvider,
7499
7893
  V as ClientShortInfo,
7500
- yt as ClientsAdditionalDataRequestTypeEnum,
7501
- us as ClientsListFilters,
7502
- ge as CodedIdentity,
7503
- gs as ConfiguratorProvider,
7504
- Pt as ConfiguratorsEnum,
7505
- He as Contact,
7506
- ar as ContactLinks,
7507
- G as ContactPerson,
7508
- Ct as ContactPersonRelated,
7509
- _t as ContactPosition,
7510
- Ie as ContactRelation,
7511
- Ar as ContragentBase,
7512
- De as ContragentFactory,
7513
- $r as ContragentIc,
7514
- wt as ContragentPerson,
7515
- vt as ContragentUlNr,
7516
- Tr as ContragentUlR,
7517
- ze as CostSourceEnum,
7518
- te as Country,
7519
- Ve as CuratedDirection,
7520
- Ee as Curator,
7521
- 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,
7531
- j as FilterGroup,
7532
- tr as FilterItem,
7533
- Ke as FilterOpEnum,
7534
- fr as GeoCoordinates,
7535
- pt as HiddenCatalogableItem,
7536
- fe as HttpCachedRequester,
7537
- it as HttpParamsConfig,
7894
+ At as ClientsAdditionalDataRequestTypeEnum,
7895
+ Cs as ClientsListFilters,
7896
+ ve as CodedIdentity,
7897
+ Ps as ConfiguratorProvider,
7898
+ St as ConfiguratorsEnum,
7899
+ je as Contact,
7900
+ $r as ContactLinks,
7901
+ W as ContactPerson,
7902
+ bt as ContactPersonRelated,
7903
+ Bt as ContactPosition,
7904
+ Oe as ContactRelation,
7905
+ Lr as ContragentBase,
7906
+ $e as ContragentFactory,
7907
+ Ir as ContragentIc,
7908
+ $t as ContragentPerson,
7909
+ Tt as ContragentUlNr,
7910
+ _r as ContragentUlR,
7911
+ Ve as CostSourceEnum,
7912
+ ie as Country,
7913
+ Ye as CuratedDirection,
7914
+ Xe as Curator,
7915
+ N as Currency,
7916
+ Fs as DataSuggestionProvider,
7917
+ $s as DateTimeProvider,
7918
+ kr as DeletableNamedIdentity,
7919
+ ye as DeliveryAddress,
7920
+ H as DeliveryType,
7921
+ ss as DetailedJwtPayload,
7922
+ ut as DeviceTypeResolutionConfig,
7923
+ ft as DiscountShortInfo,
7924
+ Gs as FieldValidationResultData,
7925
+ G as FilterGroup,
7926
+ cr as FilterItem,
7927
+ Ze as FilterOpEnum,
7928
+ Dt as FilterSettings,
7929
+ Rr as GeoCoordinates,
7930
+ wt as HiddenCatalogableItem,
7931
+ Ce as HttpCachedRequester,
7932
+ pt as HttpParamsConfig,
7538
7933
  h as HttpRequester,
7539
- J as Identity,
7540
- ht as Image,
7541
- B as JwtPayload,
7542
- ae as Manager,
7543
- Je as ManagerCommon,
7544
- vs as ManagerDataFactory,
7545
- Dt as ManagerDataProvider,
7546
- qt as MetaTagItem,
7547
- S as NamedIdentity,
7548
- X as Offer,
7549
- _r as OfferShortInfo,
7550
- Cs as OffersDataProvider,
7551
- as as OffersListFilters,
7552
- Or as Operator,
7934
+ E as Identity,
7935
+ vt as Image,
7936
+ M as JwtPayload,
7937
+ Pe as Manager,
7938
+ Qe as ManagerCommon,
7939
+ ds as ManagerDataFactory,
7940
+ Lt as ManagerDataProvider,
7941
+ Wt as MetaTagItem,
7942
+ b as NamedIdentity,
7943
+ Z as Offer,
7944
+ Ur as OfferShortInfo,
7945
+ Ss as OffersDataProvider,
7946
+ bs as OffersListFilters,
7947
+ Hr as Operator,
7553
7948
  z as Opf,
7554
- U as OpfEnum,
7555
- 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,
7570
- Qe as PaginationFiltersBase,
7571
- se as PartnerGroup,
7572
- xr as PaymentType,
7573
- Pe as PreferencesStorageProvider,
7574
- Oe as PriceAnalyze,
7575
- ds as PriceAnalyzeProvider,
7576
- de as PriceCoefficient,
7577
- mr as PriceCoefficientEnum,
7578
- As as PriceHistoryDataProvider,
7579
- Tt as PriceHistoryItem,
7580
- Z as PriceTemplate,
7581
- Le as PriceTemplateCategory,
7582
- ce as PriceTemplateClient,
7583
- Pr as PriceTemplateICatalogableItem,
7584
- _e as PriceTemplateProduct,
7585
- ns as PriceTemplateProvider,
7586
- ue as PricingRole,
7587
- os as PricingRoleProvider,
7588
- Ue as PrimaryCatalogableItem,
7589
- I as Product,
7590
- rs as ProductCategoryDataProvider,
7591
- ts as ProductDataProvider,
7592
- xt as ProductFileType,
7593
- Ge as ProductPriceCoefficient,
7594
- bt as ProductPriceHistory,
7595
- er as ProductUnit,
7596
- cs as PropertiesProvider,
7597
- le as Property,
7598
- Dr as PropertyType,
7599
- mt as PropertyTypeEnum,
7600
- Y as PropertyValue,
7601
- $s as RecommendationsDataProvider,
7602
- cr as RecommendationsList,
7603
- w as Reference,
7604
- bs as ReferenceDataFactory,
7605
- T as ReferenceDataProvider,
7606
- me as Region,
7607
- qr as ResourceType,
7608
- 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,
7619
- 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,
7628
- _ 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,
7636
- ke as useAuthStateStore,
7949
+ F as OpfEnum,
7950
+ S as Order,
7951
+ _t as OrderAction,
7952
+ ks as OrderEditorData,
7953
+ Fr as OrderInfo,
7954
+ It as OrderItem,
7955
+ Dr as OrderItemBase,
7956
+ Mt as OrderPaymentStatus,
7957
+ qr as OrderShortInfo,
7958
+ be as OrderStatus,
7959
+ jt as OrderStatusDetail,
7960
+ Ut as OrderStatusDetailEnum,
7961
+ Nt as OrderStatusEnum,
7962
+ xt as OrderStatusHistoryInfo,
7963
+ Is as OrdersDataProvider,
7964
+ Ls as OrdersListFilters,
7965
+ de as PaginationFiltersBase,
7966
+ ce as PartnerGroup,
7967
+ Br as PaymentType,
7968
+ De as PreferencesStorageProvider,
7969
+ qe as PriceAnalyze,
7970
+ _s as PriceAnalyzeProvider,
7971
+ Te as PriceCoefficient,
7972
+ ar as PriceCoefficientEnum,
7973
+ xs as PriceHistoryDataProvider,
7974
+ Ot as PriceHistoryItem,
7975
+ ee as PriceTemplate,
7976
+ _e as PriceTemplateCategory,
7977
+ me as PriceTemplateClient,
7978
+ dr as PriceTemplateICatalogableItem,
7979
+ xe as PriceTemplateProduct,
7980
+ fs as PriceTemplateProvider,
7981
+ fe as PricingRole,
7982
+ ys as PricingRoleProvider,
7983
+ Be as PrimaryCatalogableItem,
7984
+ _ as Product,
7985
+ ps as ProductCategoryDataProvider,
7986
+ hs as ProductDataProvider,
7987
+ Gt as ProductFileType,
7988
+ Rt as ProductFilterTypeEnum,
7989
+ Ee as ProductPriceCoefficient,
7990
+ qt as ProductPriceHistory,
7991
+ ir as ProductUnit,
7992
+ ws as PropertiesProvider,
7993
+ re as Property,
7994
+ Sr as PropertyType,
7995
+ at as PropertyTypeEnum,
7996
+ X as PropertyValue,
7997
+ Os as RecommendationsDataProvider,
7998
+ gr as RecommendationsList,
7999
+ y as Reference,
8000
+ qs as ReferenceDataFactory,
8001
+ A as ReferenceDataProvider,
8002
+ ne as Region,
8003
+ Mr as ResourceType,
8004
+ x as SalesDirection,
8005
+ ht as SentryConfig,
8006
+ fr as Seo,
8007
+ Us as SeoDataProvider,
8008
+ Or as SourcePrimaryInterest,
8009
+ yt as StockCount,
8010
+ Ds as TableDataPagination,
8011
+ kt as TableDataPaginationRequestParams,
8012
+ As as TableDataSortRequestParams,
8013
+ vs as TemplateProductCategoryDataProvider,
8014
+ os as TemplatesListFilters,
8015
+ Ke as TypedInstanceFactory,
8016
+ Nr as UnitsHelper,
8017
+ as as UnknownClientDataProvider,
8018
+ Cr as UpdatableNamedIdentity,
8019
+ Jt as User,
8020
+ Hs as UserAuthDataProvider,
8021
+ br as UserCommonInfo,
8022
+ Et as UserDataProvider,
8023
+ Tr as UserPricingRole,
8024
+ Ue as UserRegion,
8025
+ Ge as UserRegionEmployee,
8026
+ js as UserRegionProvider,
8027
+ er as UserRegionShortInfo,
8028
+ Ms as UserRegionsListFilters,
8029
+ I as UserShortInfo,
8030
+ zt as UserTypeEnum,
8031
+ Rs as VersionConfig,
8032
+ Re as Warehouse,
8033
+ gt as WebSocketConfig,
8034
+ lr as findCatalogItemByIdRecursive,
8035
+ ur as flattenCatalogItems,
8036
+ Ts as pluralize,
8037
+ Ie as useAuthStateStore,
7637
8038
  k as useBaseConfigStateStore,
7638
- Ss as useReferencesStore,
7639
- Is as useUserStateStore
8039
+ Ns as useReferencesStore,
8040
+ Bs as useUserStateStore
7640
8041
  };