@snabcentr/common-lib 3.4.0 → 3.5.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 (107) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +2 -2
  3. package/dist/sc-common-lib.js +1072 -942
  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/blog/classes/blog-post-short-info.d.ts +2 -6
  8. package/dist/src/blog/classes/blog-post-short-info.d.ts.map +1 -1
  9. package/dist/src/blog/interfaces/i-blog-post-short-info.d.ts +2 -7
  10. package/dist/src/blog/interfaces/i-blog-post-short-info.d.ts.map +1 -1
  11. package/dist/src/catalog/classes/client-price-catalogable-item.d.ts +23 -0
  12. package/dist/src/catalog/classes/client-price-catalogable-item.d.ts.map +1 -0
  13. package/dist/src/catalog/classes/client-price-category.d.ts +19 -0
  14. package/dist/src/catalog/classes/client-price-category.d.ts.map +1 -0
  15. package/dist/src/catalog/classes/client-price-product.d.ts +19 -0
  16. package/dist/src/catalog/classes/client-price-product.d.ts.map +1 -0
  17. package/dist/src/catalog/classes/client-product.d.ts +9 -0
  18. package/dist/src/catalog/classes/client-product.d.ts.map +1 -1
  19. package/dist/src/catalog/classes/discount-short-info.d.ts +2 -6
  20. package/dist/src/catalog/classes/discount-short-info.d.ts.map +1 -1
  21. package/dist/src/catalog/classes/index.d.ts +4 -0
  22. package/dist/src/catalog/classes/index.d.ts.map +1 -1
  23. package/dist/src/catalog/classes/price-catalogable-item.d.ts +22 -0
  24. package/dist/src/catalog/classes/price-catalogable-item.d.ts.map +1 -0
  25. package/dist/src/catalog/classes/price-template-catalogable-item.d.ts +2 -10
  26. package/dist/src/catalog/classes/price-template-catalogable-item.d.ts.map +1 -1
  27. package/dist/src/catalog/classes/price-template-client.d.ts +2 -10
  28. package/dist/src/catalog/classes/price-template-client.d.ts.map +1 -1
  29. package/dist/src/catalog/classes/price-template.d.ts +0 -4
  30. package/dist/src/catalog/classes/price-template.d.ts.map +1 -1
  31. package/dist/src/catalog/interfaces/i-client-price-catalogable-item.d.ts +13 -0
  32. package/dist/src/catalog/interfaces/i-client-price-catalogable-item.d.ts.map +1 -0
  33. package/dist/src/catalog/interfaces/i-client-price-category.d.ts +12 -0
  34. package/dist/src/catalog/interfaces/i-client-price-category.d.ts.map +1 -0
  35. package/dist/src/catalog/interfaces/i-client-price-product.d.ts +12 -0
  36. package/dist/src/catalog/interfaces/i-client-price-product.d.ts.map +1 -0
  37. package/dist/src/catalog/interfaces/i-client-product.d.ts +9 -0
  38. package/dist/src/catalog/interfaces/i-client-product.d.ts.map +1 -1
  39. package/dist/src/catalog/interfaces/i-discount-short-info.d.ts +2 -3
  40. package/dist/src/catalog/interfaces/i-discount-short-info.d.ts.map +1 -1
  41. package/dist/src/catalog/interfaces/i-price-catalogable-item.d.ts +17 -0
  42. package/dist/src/catalog/interfaces/i-price-catalogable-item.d.ts.map +1 -0
  43. package/dist/src/catalog/interfaces/i-price-template-catalogable-item.d.ts +3 -12
  44. package/dist/src/catalog/interfaces/i-price-template-catalogable-item.d.ts.map +1 -1
  45. package/dist/src/catalog/interfaces/i-price-template-client.d.ts +2 -3
  46. package/dist/src/catalog/interfaces/i-price-template-client.d.ts.map +1 -1
  47. package/dist/src/catalog/interfaces/i-price-template.d.ts +0 -4
  48. package/dist/src/catalog/interfaces/i-price-template.d.ts.map +1 -1
  49. package/dist/src/catalog/interfaces/index.d.ts +4 -0
  50. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  51. package/dist/src/catalog/providers/client-price-provider.d.ts +57 -10
  52. package/dist/src/catalog/providers/client-price-provider.d.ts.map +1 -1
  53. package/dist/src/clients/classes/contragent/contragent-base.d.ts +0 -4
  54. package/dist/src/clients/classes/contragent/contragent-base.d.ts.map +1 -1
  55. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts +1 -2
  56. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts.map +1 -1
  57. package/dist/src/clients/interfaces/i-client-short-info.d.ts +1 -2
  58. package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
  59. package/dist/src/contacts/classes/contact-person.d.ts +0 -8
  60. package/dist/src/contacts/classes/contact-person.d.ts.map +1 -1
  61. package/dist/src/contacts/classes/contact.d.ts +2 -2
  62. package/dist/src/contacts/classes/contact.d.ts.map +1 -1
  63. package/dist/src/contacts/interfaces/i-contact-person.d.ts +1 -3
  64. package/dist/src/contacts/interfaces/i-contact-person.d.ts.map +1 -1
  65. package/dist/src/contacts/interfaces/i-contact.d.ts +2 -2
  66. package/dist/src/contacts/interfaces/i-contact.d.ts.map +1 -1
  67. package/dist/src/managers/classes/manager-common.d.ts +2 -2
  68. package/dist/src/managers/classes/manager-common.d.ts.map +1 -1
  69. package/dist/src/managers/classes/manager.d.ts +0 -4
  70. package/dist/src/managers/classes/manager.d.ts.map +1 -1
  71. package/dist/src/managers/interfaces/i-manager-common.d.ts +2 -2
  72. package/dist/src/managers/interfaces/i-manager-common.d.ts.map +1 -1
  73. package/dist/src/managers/interfaces/i-manager.d.ts +0 -4
  74. package/dist/src/managers/interfaces/i-manager.d.ts.map +1 -1
  75. package/dist/src/offers/classes/offer-short-info.d.ts +2 -6
  76. package/dist/src/offers/classes/offer-short-info.d.ts.map +1 -1
  77. package/dist/src/offers/interfaces/i-offer-short-info.d.ts +2 -6
  78. package/dist/src/offers/interfaces/i-offer-short-info.d.ts.map +1 -1
  79. package/dist/src/orders/classes/order-short-info.d.ts +2 -6
  80. package/dist/src/orders/classes/order-short-info.d.ts.map +1 -1
  81. package/dist/src/orders/interfaces/i-order-short-info.d.ts +2 -6
  82. package/dist/src/orders/interfaces/i-order-short-info.d.ts.map +1 -1
  83. package/dist/src/orders/interfaces/i-order-status-history-info.d.ts +2 -1
  84. package/dist/src/orders/interfaces/i-order-status-history-info.d.ts.map +1 -1
  85. package/dist/src/system/classes/creatable-identity.d.ts +19 -0
  86. package/dist/src/system/classes/creatable-identity.d.ts.map +1 -0
  87. package/dist/src/system/classes/deletable-identity.d.ts +19 -0
  88. package/dist/src/system/classes/deletable-identity.d.ts.map +1 -0
  89. package/dist/src/system/classes/deletable-named-identity.d.ts +1 -1
  90. package/dist/src/system/classes/deletable-named-identity.d.ts.map +1 -1
  91. package/dist/src/system/classes/index.d.ts +2 -0
  92. package/dist/src/system/classes/index.d.ts.map +1 -1
  93. package/dist/src/system/classes/updatable-named-identity.d.ts +6 -2
  94. package/dist/src/system/classes/updatable-named-identity.d.ts.map +1 -1
  95. package/dist/src/system/interfaces/i-creatable-identity.d.ts +8 -0
  96. package/dist/src/system/interfaces/i-creatable-identity.d.ts.map +1 -0
  97. package/dist/src/system/interfaces/i-deletable-identity.d.ts +8 -0
  98. package/dist/src/system/interfaces/i-deletable-identity.d.ts.map +1 -0
  99. package/dist/src/system/interfaces/i-updatable-named-identity.d.ts +3 -2
  100. package/dist/src/system/interfaces/i-updatable-named-identity.d.ts.map +1 -1
  101. package/dist/src/system/interfaces/index.d.ts +2 -0
  102. package/dist/src/system/interfaces/index.d.ts.map +1 -1
  103. package/dist/src/user/classes/user-common-info.d.ts +2 -6
  104. package/dist/src/user/classes/user-common-info.d.ts.map +1 -1
  105. package/dist/src/user/interfaces/i-user-common-info.d.ts +2 -6
  106. package/dist/src/user/interfaces/i-user-common-info.d.ts.map +1 -1
  107. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- var St = Object.defineProperty;
2
- var $t = (n, r, e) => r in n ? St(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => $t(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as Kr } from "jwt-decode";
5
- import { merge as xe, isNil as a, isEmpty as ee, noop as C, mapValues as Xr, isArray as z, every as kt, split as Lt, startsWith as Ot, endsWith as It, includes as xt, isString as D, isFunction as br, map as De, isObject as Ar, isError as xr, toLower as _t, isDate as gr, isPlainObject as qt, isUndefined as Fe, constant as Nt, toUpper as Ut, cloneDeep as Ft, forEach as Mt, omitBy as Zr } from "lodash-es";
6
- import { objectToCamel as Tr, objectToSnake as _r } from "ts-case-convert";
7
- import { defineStore as ie } from "pinia";
8
- import { ref as w, markRaw as Ht, computed as A } from "vue";
9
- import { isAfter as qr, parseISO as R, startOfToday as fr, format as L, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Bt, startOfMonth as U, getDate as Nr, getDaysInMonth as Wt, endOfDay as W, startOfDay as he, setDate as zt, startOfWeek as X, addWeeks as mr, differenceInCalendarDays as Ke, addDays as Z, isValid as jt, addBusinessDays as Gt, startOfYear as le, endOfYear as Te, endOfWeek as de, endOfTomorrow as Yt, startOfTomorrow as Et, endOfYesterday as Qt, startOfYesterday as Vt, endOfToday as Jt, startOfQuarter as Se, endOfQuarter as Me, subDays as Xe, addYears as Ze, addQuarters as er, subYears as rr, subQuarters as tr, subMonths as sr, subWeeks as Ur, addSeconds as Kt } from "date-fns";
10
- import Xt, { CanceledError as Zt } from "axios";
11
- class Re {
1
+ var It = Object.defineProperty;
2
+ var xt = (n, r, e) => r in n ? It(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => xt(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as tt } from "jwt-decode";
5
+ import { merge as xe, isNil as a, isEmpty as Z, noop as C, mapValues as st, isArray as z, every as _t, split as qt, isString as O, startsWith as Nt, endsWith as Ut, includes as Ft, isFunction as Sr, map as De, isObject as $r, isError as Ur, toLower as Mt, isDate as vr, isPlainObject as Ht, isUndefined as He, constant as Bt, toUpper as Wt, cloneDeep as zt, forEach as Et, omitBy as it } from "lodash-es";
6
+ import { objectToCamel as kr, objectToSnake as Fr } from "ts-case-convert";
7
+ import { defineStore as se } from "pinia";
8
+ import { ref as v, markRaw as jt, computed as R } from "vue";
9
+ import { isAfter as Mr, parseISO as I, startOfToday as wr, isValid as Gt, format as $, endOfMonth as L, addMonths as A, differenceInCalendarMonths as Yt, startOfMonth as U, getDate as Hr, getDaysInMonth as Qt, endOfDay as W, startOfDay as he, setDate as Vt, startOfWeek as K, addWeeks as Cr, differenceInCalendarDays as rr, addDays as X, addBusinessDays as Jt, startOfYear as le, endOfYear as de, endOfWeek as Ae, endOfTomorrow as Kt, startOfTomorrow as Xt, endOfYesterday as Zt, startOfYesterday as es, endOfToday as rs, startOfQuarter as Se, endOfQuarter as Be, subDays as tr, addYears as sr, addQuarters as ir, subYears as nr, subQuarters as or, subMonths as cr, subWeeks as Br, addSeconds as ts } from "date-fns";
10
+ import ss, { CanceledError as is } from "axios";
11
+ class Pe {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -107,11 +107,11 @@ class Re {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = Kr(r), t = new Re(Tr(e));
110
+ const e = tt(r), t = new Pe(kr(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class et extends Re {
114
+ class nt extends Pe {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,11 +151,11 @@ class et extends Re {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = Kr(e), i = new et(Tr(t));
154
+ const t = tt(e), i = new nt(kr(t));
155
155
  return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class es {
158
+ class ns {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -177,7 +177,7 @@ class es {
177
177
  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;
178
178
  }
179
179
  }
180
- class rs {
180
+ class os {
181
181
  /**
182
182
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
183
183
  *
@@ -199,7 +199,7 @@ class rs {
199
199
  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;
200
200
  }
201
201
  }
202
- class ts {
202
+ class cs {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -244,7 +244,7 @@ class ts {
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class ss {
247
+ class ls {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -283,7 +283,7 @@ class ss {
283
283
  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"];
284
284
  }
285
285
  }
286
- class is {
286
+ class us {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -327,18 +327,18 @@ class is {
327
327
  */
328
328
  s(this, "dateFormats");
329
329
  var e, t, i;
330
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new rs(r == null ? void 0 : r.http), this.deviceTypeByResolution = new es(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ts({
330
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new os(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ns(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new cs({
331
331
  environment: this.environment,
332
332
  ...r == null ? void 0 : r.sentry
333
- }), 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 ss(r.websocket) : void 0, this.dateFormats = {
333
+ }), 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 ls(r.websocket) : void 0, this.dateFormats = {
334
334
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
335
335
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
336
336
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
337
337
  };
338
338
  }
339
339
  }
340
- const k = ie("common.config", () => {
341
- const n = w(new is());
340
+ const S = se("common.config", () => {
341
+ const n = v(new us());
342
342
  return {
343
343
  /**
344
344
  * Конфигурационные данные приложения.
@@ -360,7 +360,7 @@ const k = ie("common.config", () => {
360
360
  }
361
361
  };
362
362
  });
363
- class He {
363
+ class We {
364
364
  /**
365
365
  * Возвращает актуальные и не просроченные данные из хранилища.
366
366
  *
@@ -379,8 +379,8 @@ class He {
379
379
  if (e)
380
380
  try {
381
381
  const t = JSON.parse(e);
382
- if (!t.availableFor || qr(R(t.availableFor) || fr(), /* @__PURE__ */ new Date())) {
383
- if (a(t.data) || ee(t.data))
382
+ if (!t.availableFor || Mr(I(t.availableFor) || wr(), /* @__PURE__ */ new Date())) {
383
+ if (a(t.data) || Z(t.data))
384
384
  throw new Error("Data is empty");
385
385
  return t.data;
386
386
  }
@@ -403,7 +403,7 @@ class He {
403
403
  static saveActualDataToStorage(r, e, t) {
404
404
  if (this.isLocalStorageAvailable())
405
405
  try {
406
- if (a(e) || ee(e))
406
+ if (a(e) || Z(e))
407
407
  throw new Error("Data is empty");
408
408
  const i = JSON.stringify({
409
409
  availableFor: t,
@@ -454,7 +454,7 @@ class He {
454
454
  const i = localStorage.getItem(t);
455
455
  if (i) {
456
456
  const o = JSON.parse(i);
457
- o.availableFor && !qr(R(o.availableFor) || fr(), /* @__PURE__ */ new Date()) && r.push(t);
457
+ o.availableFor && !Mr(I(o.availableFor) || wr(), /* @__PURE__ */ new Date()) && r.push(t);
458
458
  }
459
459
  } catch {
460
460
  r.push(t);
@@ -470,32 +470,32 @@ class He {
470
470
  }
471
471
  }
472
472
  }
473
- function Fr(n) {
473
+ function Wr(n) {
474
474
  try {
475
- const r = Re.getJwtPayload(n);
475
+ const r = Pe.getJwtPayload(n);
476
476
  return new Date(r.exp * 1e3);
477
477
  } catch {
478
478
  return;
479
479
  }
480
480
  }
481
- const ue = ie("common.auth_state_private", () => {
482
- const n = w(
481
+ const ue = se("common.auth_state_private", () => {
482
+ const n = v(
483
483
  (() => {
484
484
  var u;
485
- const o = He.getActualDataFromStorage(
485
+ const o = We.getActualDataFromStorage(
486
486
  "sc.token"
487
487
  /* JwtToken */
488
488
  );
489
489
  if (o)
490
490
  return Promise.resolve(o);
491
- const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
491
+ const c = (u = S().config.devMode) == null ? void 0 : u.initAuthBearerToken;
492
492
  return c ? Promise.resolve(c) : void 0;
493
493
  })()
494
- ), r = w(void 0), e = w(void 0), t = Ht(/* @__PURE__ */ new Map());
494
+ ), r = v(void 0), e = v(void 0), t = jt(/* @__PURE__ */ new Map());
495
495
  function i() {
496
496
  e.value = void 0, a(n.value) || n.value.then((o) => {
497
- const c = Re.getJwtPayload(o);
498
- e.value = c.exp * 1e3 > Date.now() ? Xr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
+ const c = Pe.getJwtPayload(o);
498
+ e.value = c.exp * 1e3 > Date.now() ? st(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
499
  }).catch(C);
500
500
  }
501
501
  return {
@@ -520,13 +520,13 @@ const ue = ie("common.auth_state_private", () => {
520
520
  */
521
521
  recalculateUserPermissions: i
522
522
  };
523
- }), ir = ie("common.auth_state", () => {
524
- const n = A(() => {
523
+ }), lr = se("common.auth_state", () => {
524
+ const n = R(() => {
525
525
  const o = ue();
526
526
  if (a(o.jwtToken) && !a(o.jwtTokenUpdater)) {
527
527
  const c = o.jwtTokenUpdater();
528
528
  o.jwtToken = c, c.then((u) => {
529
- o.jwtToken = Promise.resolve(u), He.saveActualDataToStorage("sc.token", u, Fr(u)), o.recalculateUserPermissions();
529
+ o.jwtToken = Promise.resolve(u), We.saveActualDataToStorage("sc.token", u, Wr(u)), o.recalculateUserPermissions();
530
530
  }).catch(C);
531
531
  }
532
532
  return o.jwtToken;
@@ -536,31 +536,31 @@ const ue = ie("common.auth_state_private", () => {
536
536
  }
537
537
  function e(o) {
538
538
  const c = ue();
539
- c.jwtToken = Promise.resolve(o), He.saveActualDataToStorage("sc.token", o, Fr(o)), c.recalculateUserPermissions();
539
+ c.jwtToken = Promise.resolve(o), We.saveActualDataToStorage("sc.token", o, Wr(o)), c.recalculateUserPermissions();
540
540
  }
541
541
  function t() {
542
542
  const o = ue();
543
- o.jwtToken = void 0, o.userPermissions = void 0, He.saveActualDataToStorage("sc.token", void 0);
543
+ o.jwtToken = void 0, o.userPermissions = void 0, We.saveActualDataToStorage("sc.token", void 0);
544
544
  }
545
545
  function i(o) {
546
546
  const c = ue();
547
547
  !a(c.jwtToken) && a(c.userPermissions) && c.jwtToken.then((g) => {
548
- const y = Re.getJwtPayload(g);
549
- c.userPermissions = y.exp * 1e3 > Date.now() ? Xr(y.resourceAccess, (P) => (P == null ? void 0 : P.roles) ?? []) : void 0;
548
+ const y = Pe.getJwtPayload(g);
549
+ c.userPermissions = y.exp * 1e3 > Date.now() ? st(y.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
550
550
  }).catch(C);
551
551
  const u = z(o) ? o.join(" && ") : o;
552
552
  if (c.userPermissionsComputedRefs.has(u))
553
553
  return c.userPermissionsComputedRefs.get(u);
554
- const p = A(() => {
554
+ const p = R(() => {
555
555
  const g = (y) => {
556
556
  var ce;
557
- const P = Lt(y, ".");
558
- if (P.length < 2)
557
+ const D = qt(y, ".");
558
+ if (D.length < 2)
559
559
  return !1;
560
- const [be, Ae] = P, oe = (ce = ue().userPermissions) == null ? void 0 : ce[be];
561
- return z(oe) && oe.includes(Ae);
560
+ const [be, Te] = D, oe = (ce = ue().userPermissions) == null ? void 0 : ce[be];
561
+ return z(oe) && oe.includes(Te);
562
562
  };
563
- return z(o) ? kt(o, (y) => g(y)) : g(o);
563
+ return z(o) ? _t(o, (y) => g(y)) : g(o);
564
564
  });
565
565
  return c.userPermissionsComputedRefs.set(u, p), p;
566
566
  }
@@ -593,8 +593,8 @@ const ue = ie("common.auth_state_private", () => {
593
593
  hasUserPermission: i
594
594
  };
595
595
  });
596
- var Be = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Be || {});
597
- class G {
596
+ var ze = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(ze || {});
597
+ class Re {
598
598
  /**
599
599
  * Инициализирует экземпляр класса {@link Identity}.
600
600
  *
@@ -619,7 +619,7 @@ class G {
619
619
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : a(this.id);
620
620
  }
621
621
  }
622
- class yr extends G {
622
+ class Dr extends Re {
623
623
  /**
624
624
  * Инициализирует экземпляр класса {@link BlogPostMediaFile}.
625
625
  *
@@ -647,23 +647,53 @@ class yr extends G {
647
647
  * @inheritDoc
648
648
  */
649
649
  s(this, "urlWebp");
650
- this.mediaType = (e == null ? void 0 : e.mediaType) ?? Be.Image, this.isCover = (e == null ? void 0 : e.isCover) ?? !1, this.isUnused = (e == null ? void 0 : e.isUnused) ?? !1, this.url = (e == null ? void 0 : e.url) ?? "", this.urlWebp = e == null ? void 0 : e.urlWebp;
650
+ this.mediaType = (e == null ? void 0 : e.mediaType) ?? ze.Image, this.isCover = (e == null ? void 0 : e.isCover) ?? !1, this.isUnused = (e == null ? void 0 : e.isUnused) ?? !1, this.url = (e == null ? void 0 : e.url) ?? "", this.urlWebp = e == null ? void 0 : e.urlWebp;
651
651
  }
652
652
  /**
653
653
  * Возвращает признак того, что медиафайл является изображением.
654
654
  */
655
655
  isImage() {
656
- return this.mediaType === Be.Image;
656
+ return this.mediaType === ze.Image;
657
657
  }
658
658
  /**
659
659
  * Возвращает признак того, что медиафайл является видео.
660
660
  */
661
661
  isVideo() {
662
- return this.mediaType === Be.Video;
662
+ return this.mediaType === ze.Video;
663
663
  }
664
664
  }
665
- var We = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(We || {});
666
- class ye extends G {
665
+ var Ee = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Ee || {});
666
+ class Q {
667
+ /**
668
+ * Преобразует значение даты из данных ответа в дату.
669
+ * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
670
+ *
671
+ * @param value Значение даты: дата, строка в формате ISO или пустое значение.
672
+ */
673
+ static parse(r) {
674
+ if (a(r))
675
+ return;
676
+ const e = O(r) ? I(r) : r;
677
+ return Gt(e) ? e : void 0;
678
+ }
679
+ }
680
+ class Ye extends Re {
681
+ /**
682
+ * Инициализирует экземпляр класса {@link CreatableIdentity}.
683
+ *
684
+ * @param data Данные для первоначальной инициализации.
685
+ * @param defaultIdValue Значение идентификатора по-умолчанию, если оно не определено в данных.
686
+ */
687
+ constructor(e, t) {
688
+ super(e, t);
689
+ /**
690
+ * Дата и время создания записи. Если не задана в данных, используется текущий момент.
691
+ */
692
+ s(this, "createdAt");
693
+ this.createdAt = Q.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
694
+ }
695
+ }
696
+ class _e extends Ye {
667
697
  /**
668
698
  * Инициализирует экземпляр класса {@link BlogPostShortInfo}.
669
699
  *
@@ -683,11 +713,7 @@ class ye extends G {
683
713
  * @inheritDoc
684
714
  */
685
715
  s(this, "publishedAt");
686
- /**
687
- * @inheritDoc
688
- */
689
- s(this, "createdAt");
690
- this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = ye.parseDate(e == null ? void 0 : e.publishedAt), this.createdAt = ye.parseDate(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
716
+ this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = _e.parseDate(e == null ? void 0 : e.publishedAt);
691
717
  }
692
718
  /**
693
719
  * Возвращает состояние публикации статьи по дате её публикации.
@@ -695,7 +721,7 @@ class ye extends G {
695
721
  * @param publishedAt Дата и время публикации статьи.
696
722
  */
697
723
  static resolvePublicationStatus(e) {
698
- return a(e) ? We.Draft : e.getTime() > Date.now() ? We.Scheduled : We.Published;
724
+ return a(e) ? Ee.Draft : e.getTime() > Date.now() ? Ee.Scheduled : Ee.Published;
699
725
  }
700
726
  /**
701
727
  * Возвращает описание ошибки символьного обозначения статьи либо пустую строку,
@@ -707,7 +733,7 @@ class ye extends G {
707
733
  * @param slug Символьное обозначение статьи.
708
734
  */
709
735
  static getSlugError(e) {
710
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Ot(e, "-") || It(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : xt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
736
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Nt(e, "-") || Ut(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Ft(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
711
737
  }
712
738
  /**
713
739
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -715,16 +741,16 @@ class ye extends G {
715
741
  * @param value Значение даты.
716
742
  */
717
743
  static parseDate(e) {
718
- return a(e) ? null : D(e) ? R(e) : e;
744
+ return a(e) ? null : O(e) ? I(e) : e;
719
745
  }
720
746
  /**
721
747
  * Возвращает состояние публикации статьи.
722
748
  */
723
749
  getPublicationStatus() {
724
- return ye.resolvePublicationStatus(this.publishedAt);
750
+ return _e.resolvePublicationStatus(this.publishedAt);
725
751
  }
726
752
  }
727
- class nr extends ye {
753
+ class ur extends _e {
728
754
  /**
729
755
  * Инициализирует экземпляр класса {@link BlogPost}.
730
756
  *
@@ -740,7 +766,7 @@ class nr extends ye {
740
766
  * @inheritDoc
741
767
  */
742
768
  s(this, "media");
743
- this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new yr(t));
769
+ this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new Dr(t));
744
770
  }
745
771
  /**
746
772
  * Возвращает данные статьи для отправки на портал.
@@ -771,7 +797,7 @@ class nr extends ye {
771
797
  return this.media.filter((e) => e.isUnused);
772
798
  }
773
799
  }
774
- class Ne {
800
+ class Ue {
775
801
  /**
776
802
  * Возвращает очищенное значение фильтров, содержащие
777
803
  * только актуальные данные.
@@ -781,11 +807,11 @@ class Ne {
781
807
  return Object.keys(this).forEach((e) => {
782
808
  const t = this[e];
783
809
  a(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
784
- D(t) && t.trim().length === 0 || br(t.isNewRec) && t.isNewRec() || (r[e] = t);
810
+ O(t) && t.trim().length === 0 || Sr(t.isNewRec) && t.isNewRec() || (r[e] = t);
785
811
  }), r;
786
812
  }
787
813
  }
788
- class T {
814
+ class b {
789
815
  /**
790
816
  * Инициализирует экземпляр класса {@link DatePeriod}.
791
817
  *
@@ -800,10 +826,10 @@ class T {
800
826
  * Окончание периода.
801
827
  */
802
828
  s(this, "to");
803
- this.from = D(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = D(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
829
+ this.from = O(r == null ? void 0 : r.from) ? I(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = O(r == null ? void 0 : r.to) ? I(r.to) : (r == null ? void 0 : r.to) ?? null;
804
830
  }
805
831
  }
806
- class Qs extends Ne {
832
+ class ei extends Ue {
807
833
  /**
808
834
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
809
835
  *
@@ -839,7 +865,7 @@ class Qs extends Ne {
839
865
  * @inheritDoc
840
866
  */
841
867
  s(this, "createdAt");
842
- this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new T(e == null ? void 0 : e.publishedAt), this.createdAt = new T(e == null ? void 0 : e.createdAt);
868
+ this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new b(e == null ? void 0 : e.publishedAt), this.createdAt = new b(e == null ? void 0 : e.createdAt);
843
869
  }
844
870
  /**
845
871
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -878,7 +904,7 @@ class Qs extends Ne {
878
904
  return !((t = e == null ? void 0 : e.publishedAt) != null && t.from) && !((i = e == null ? void 0 : e.publishedAt) != null && i.to) && delete e.publishedAt, !((o = e == null ? void 0 : e.createdAt) != null && o.from) && !((c = e == null ? void 0 : e.createdAt) != null && c.to) && delete e.createdAt, e;
879
905
  }
880
906
  }
881
- class _ {
907
+ class x {
882
908
  /**
883
909
  * Инициализирует экземпляр указанного класса.
884
910
  *
@@ -907,10 +933,10 @@ class _ {
907
933
  static instanceListInitializer(r, e) {
908
934
  if (!z(e))
909
935
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
910
- return De(e, (t) => _.instanceInitializer(r, t));
936
+ return De(e, (t) => x.instanceInitializer(r, t));
911
937
  }
912
938
  }
913
- const b = class b {
939
+ const P = class P {
914
940
  /**
915
941
  * Инициализирует экземпляр класса {@link HttpRequester}.
916
942
  */
@@ -922,7 +948,7 @@ const b = class b {
922
948
  /**
923
949
  * Базовый URL путь для выполнения запросов.
924
950
  */
925
- s(this, "baseUrl", `${k().config.http.portalApiUrl}/api`);
951
+ s(this, "baseUrl", `${S().config.http.portalApiUrl}/api`);
926
952
  /**
927
953
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
928
954
  *
@@ -949,7 +975,7 @@ const b = class b {
949
975
  // eslint-disable-next-line class-methods-use-this
950
976
  s(this, "authRequestInterceptor", async (r) => {
951
977
  let e;
952
- return a(ir().jwtToken) || (e = await ir().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
978
+ return a(lr().jwtToken) || (e = await lr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
953
979
  });
954
980
  /**
955
981
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -957,14 +983,14 @@ const b = class b {
957
983
  * @param request Данные запроса.
958
984
  */
959
985
  // eslint-disable-next-line class-methods-use-this
960
- s(this, "userRequestHooksInterceptor", async (r) => b.requestHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
986
+ s(this, "userRequestHooksInterceptor", async (r) => P.requestHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
961
987
  /**
962
988
  * Перехватчик запроса для преобразования данных запроса.
963
989
  *
964
990
  * @param request Данные запроса.
965
991
  */
966
992
  // eslint-disable-next-line class-methods-use-this
967
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = _r(r.params)), ["put", "patch", "post"].includes(_t(r.method)) && r.data && (r.data = _r(r.data))), r));
993
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Fr(r.params)), ["put", "patch", "post"].includes(Mt(r.method)) && r.data && (r.data = Fr(r.data))), r));
968
994
  /**
969
995
  * Перехватчик ошибок ответов на запрос.
970
996
  *
@@ -973,7 +999,7 @@ const b = class b {
973
999
  s(this, "authErrorsResponseInterceptors", (r) => {
974
1000
  var t;
975
1001
  const e = r.rawError ? (t = r.rawError) == null ? void 0 : t.config : void 0;
976
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ir().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1002
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (lr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
977
1003
  });
978
1004
  /**
979
1005
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -984,7 +1010,7 @@ const b = class b {
984
1010
  s(this, "canceledResponseInterceptor", (r) => {
985
1011
  const e = r.rawError ?? r;
986
1012
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
987
- throw new Zt("Request canceled");
1013
+ throw new is("Request canceled");
988
1014
  return Promise.reject(r);
989
1015
  });
990
1016
  /**
@@ -993,15 +1019,15 @@ const b = class b {
993
1019
  * @param response Данные ответа на запрос.
994
1020
  */
995
1021
  // eslint-disable-next-line class-methods-use-this
996
- s(this, "userResponseHooksInterceptor", async (r) => b.responseHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
1022
+ s(this, "userResponseHooksInterceptor", async (r) => P.responseHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
997
1023
  /**
998
1024
  * Перехватчик ответа для преобразования данных ответа на запрос.
999
1025
  *
1000
1026
  * @param response Данные ответа на запрос.
1001
1027
  */
1002
1028
  // eslint-disable-next-line class-methods-use-this
1003
- s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Tr(r.data)), r));
1004
- this.errorResponseHandler = b.defaultErrorsResponseHandler, this.httpClient = Xt.create({
1029
+ s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = kr(r.data)), r));
1030
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = ss.create({
1005
1031
  headers: {
1006
1032
  Accept: "application/json",
1007
1033
  "Content-Type": "application/json"
@@ -1011,7 +1037,7 @@ const b = class b {
1011
1037
  (r) => Promise.reject(r)
1012
1038
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1013
1039
  (r) => r,
1014
- (r) => b.convertHttpErrorResponse(r)
1040
+ (r) => P.convertHttpErrorResponse(r)
1015
1041
  ), this.interceptorIds.response.canceledResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.canceledResponseInterceptor), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1016
1042
  this.dataConverterResponseInterceptor,
1017
1043
  (r) => Promise.reject(r)
@@ -1023,7 +1049,7 @@ const b = class b {
1023
1049
  * @param handler Ссылка на функцию-обработчик ошибок.
1024
1050
  */
1025
1051
  static setDefaultErrorsResponseHandler(r) {
1026
- b.defaultErrorsResponseHandler = r;
1052
+ P.defaultErrorsResponseHandler = r;
1027
1053
  }
1028
1054
  /**
1029
1055
  * Регистрирует хук, который будет вызываться перед выполнением каждого HTTP запроса.
@@ -1031,7 +1057,7 @@ const b = class b {
1031
1057
  * @param hook Функция-хук для обработки запроса.
1032
1058
  */
1033
1059
  static addRequestHook(r) {
1034
- b.requestHooks.includes(r) || b.requestHooks.push(r);
1060
+ P.requestHooks.includes(r) || P.requestHooks.push(r);
1035
1061
  }
1036
1062
  /**
1037
1063
  * Удаляет зарегистрированный хук запроса.
@@ -1039,8 +1065,8 @@ const b = class b {
1039
1065
  * @param hook Функция-хук для удаления.
1040
1066
  */
1041
1067
  static removeRequestHook(r) {
1042
- const e = b.requestHooks.indexOf(r);
1043
- e !== -1 && b.requestHooks.splice(e, 1);
1068
+ const e = P.requestHooks.indexOf(r);
1069
+ e !== -1 && P.requestHooks.splice(e, 1);
1044
1070
  }
1045
1071
  /**
1046
1072
  * Регистрирует хук, который будет вызываться после получения ответа на каждый HTTP запрос.
@@ -1048,7 +1074,7 @@ const b = class b {
1048
1074
  * @param hook Функция-хук для обработки ответа.
1049
1075
  */
1050
1076
  static addResponseHook(r) {
1051
- b.responseHooks.includes(r) || b.responseHooks.push(r);
1077
+ P.responseHooks.includes(r) || P.responseHooks.push(r);
1052
1078
  }
1053
1079
  /**
1054
1080
  * Удаляет зарегистрированный хук ответа.
@@ -1056,8 +1082,8 @@ const b = class b {
1056
1082
  * @param hook Функция-хук для удаления.
1057
1083
  */
1058
1084
  static removeResponseHook(r) {
1059
- const e = b.responseHooks.indexOf(r);
1060
- e !== -1 && b.responseHooks.splice(e, 1);
1085
+ const e = P.responseHooks.indexOf(r);
1086
+ e !== -1 && P.responseHooks.splice(e, 1);
1061
1087
  }
1062
1088
  /**
1063
1089
  * Возвращает экземпляр объекта текущего класса.
@@ -1065,7 +1091,7 @@ const b = class b {
1065
1091
  * @param type Тип данных, которыми оперирует метод.
1066
1092
  */
1067
1093
  static getInstance(r) {
1068
- return Object.prototype.hasOwnProperty.call(b.instances, r.name) || (b.instances[r.name] = _.simpleInstanceInitializer(r)), b.instances[r.name];
1094
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = x.simpleInstanceInitializer(r)), P.instances[r.name];
1069
1095
  }
1070
1096
  /**
1071
1097
  * Приводит данные об ошибке к форме ошибки HTTP запроса.
@@ -1076,12 +1102,12 @@ const b = class b {
1076
1102
  * @param error Данные об ошибке.
1077
1103
  */
1078
1104
  static toHttpResponseError(r) {
1079
- return Ar(r) && "status" in r ? r : {
1105
+ return $r(r) && "status" in r ? r : {
1080
1106
  status: 0,
1081
1107
  statusText: "Invalid response data",
1082
- message: xr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1108
+ message: Ur(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1083
1109
  headers: {},
1084
- rawError: xr(r) ? r : new Error(String(r))
1110
+ rawError: Ur(r) ? r : new Error(String(r))
1085
1111
  };
1086
1112
  }
1087
1113
  /**
@@ -1116,7 +1142,7 @@ const b = class b {
1116
1142
  request(r, e = void 0, t = {}, i = !1) {
1117
1143
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1118
1144
  return o.catch((c) => {
1119
- (c == null ? void 0 : c.name) !== "CanceledError" && this.errorResponseHandler(b.toHttpResponseError(c), t, i);
1145
+ (c == null ? void 0 : c.name) !== "CanceledError" && this.errorResponseHandler(P.toHttpResponseError(c), t, i);
1120
1146
  }), o;
1121
1147
  }
1122
1148
  /**
@@ -1145,7 +1171,7 @@ const b = class b {
1145
1171
  return this.get(
1146
1172
  e,
1147
1173
  t,
1148
- (c) => _.instanceListInitializer(r, c.data),
1174
+ (c) => x.instanceListInitializer(r, c.data),
1149
1175
  i,
1150
1176
  o
1151
1177
  );
@@ -1200,23 +1226,23 @@ const b = class b {
1200
1226
  * Экземпляр объекта текущего класса.
1201
1227
  */
1202
1228
  // eslint-disable-next-line no-use-before-define
1203
- s(b, "instances", {}), /**
1229
+ s(P, "instances", {}), /**
1204
1230
  * Базовый обработчик ошибок выполнения запросов.
1205
1231
  *
1206
1232
  * @param error Данные об ошибке.
1207
1233
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1208
1234
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1209
1235
  */
1210
- s(b, "defaultErrorsResponseHandler", C), /**
1236
+ s(P, "defaultErrorsResponseHandler", C), /**
1211
1237
  * Список зарегистрированных хуков для запросов.
1212
1238
  */
1213
- s(b, "requestHooks", []), /**
1239
+ s(P, "requestHooks", []), /**
1214
1240
  * Список зарегистрированных хуков для ответов.
1215
1241
  */
1216
- s(b, "responseHooks", []);
1217
- let h = b;
1218
- var dr = /* @__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))(dr || {});
1219
- class Mr {
1242
+ s(P, "responseHooks", []);
1243
+ let h = P;
1244
+ var Lr = /* @__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))(Lr || {});
1245
+ class zr {
1220
1246
  /**
1221
1247
  * Инициализирует экземпляр класса {@link FilterItem}.
1222
1248
  *
@@ -1235,7 +1261,7 @@ class Mr {
1235
1261
  * Значение с которым сравнивается поле.
1236
1262
  */
1237
1263
  s(this, "value");
1238
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? dr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1264
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Lr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1239
1265
  }
1240
1266
  /**
1241
1267
  * Преобразует фильтр в примитивное представление для API.
@@ -1243,24 +1269,24 @@ class Mr {
1243
1269
  * @returns Примитивное представление фильтра.
1244
1270
  */
1245
1271
  toPrimitive() {
1246
- const r = k().config.dateFormats.api, e = {
1272
+ const r = S().config.dateFormats.api, e = {
1247
1273
  field: this.field,
1248
1274
  op: this.op
1249
1275
  };
1250
- if (gr(this.value))
1251
- e.value = L(this.value, r);
1252
- else if (qt(this.value)) {
1276
+ if (vr(this.value))
1277
+ e.value = $(this.value, r);
1278
+ else if (Ht(this.value)) {
1253
1279
  const t = this.value;
1254
1280
  e.value = {
1255
- from: t.from ? L(t.from, r) : null,
1256
- to: t.to ? L(t.to, r) : null
1281
+ from: t.from ? $(t.from, r) : null,
1282
+ to: t.to ? $(t.to, r) : null
1257
1283
  };
1258
1284
  } else
1259
1285
  e.value = this.value;
1260
1286
  return e;
1261
1287
  }
1262
1288
  }
1263
- class re {
1289
+ class ee {
1264
1290
  /**
1265
1291
  * Инициализирует экземпляр класса {@link FilterGroup}.
1266
1292
  *
@@ -1280,7 +1306,7 @@ class re {
1280
1306
  */
1281
1307
  s(this, "groups");
1282
1308
  var e, t;
1283
- 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 Mr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new re(i))) ?? [];
1309
+ 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 zr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new ee(i))) ?? [];
1284
1310
  }
1285
1311
  /**
1286
1312
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1290,12 +1316,12 @@ class re {
1290
1316
  toPrimitive() {
1291
1317
  return {
1292
1318
  groupOp: this.groupOp,
1293
- filters: this.filters.map((r) => r instanceof Mr && br(r.toPrimitive) ? r.toPrimitive() : r),
1294
- groups: this.groups.map((r) => r instanceof re ? r.toPrimitive() : r)
1319
+ filters: this.filters.map((r) => r instanceof zr && Sr(r.toPrimitive) ? r.toPrimitive() : r),
1320
+ groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
1295
1321
  };
1296
1322
  }
1297
1323
  }
1298
- class Y extends h {
1324
+ class j extends h {
1299
1325
  /**
1300
1326
  * Получает пагинированный список данных.
1301
1327
  *
@@ -1313,7 +1339,7 @@ class Y extends h {
1313
1339
  page: (i == null ? void 0 : i.page) ?? 1,
1314
1340
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
1315
1341
  };
1316
- return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), ee(t) || (g.sort = z(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1342
+ return e && (g.filters = JSON.stringify((e instanceof ee ? e : new ee(e)).toPrimitive())), Z(t) || (g.sort = z(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1317
1343
  }
1318
1344
  /**
1319
1345
  * Получает пагинированный список экземпляров указанного класса.
@@ -1336,14 +1362,14 @@ class Y extends h {
1336
1362
  c,
1337
1363
  (g) => ({
1338
1364
  ...g.data,
1339
- data: _.instanceListInitializer(r, g.data.data)
1365
+ data: x.instanceListInitializer(r, g.data.data)
1340
1366
  }),
1341
1367
  u,
1342
1368
  p
1343
1369
  );
1344
1370
  }
1345
1371
  }
1346
- class ar extends Y {
1372
+ class Pr extends j {
1347
1373
  /**
1348
1374
  * Возвращает данные статьи блога, подготовленные для отправки на портал.
1349
1375
  *
@@ -1354,9 +1380,9 @@ class ar extends Y {
1354
1380
  */
1355
1381
  static preparePostSaveData(r) {
1356
1382
  const e = {};
1357
- if (Fe(r.title) || (e.title = r.title), Fe(r.slug) || (e.slug = r.slug), Fe(r.content) || (e.content = r.content), !Fe(r.publishedAt)) {
1358
- const t = k().config.dateFormats.api;
1359
- e.publishedAt = a(r.publishedAt) ? null : L(r.publishedAt, t);
1383
+ if (He(r.title) || (e.title = r.title), He(r.slug) || (e.slug = r.slug), He(r.content) || (e.content = r.content), !He(r.publishedAt)) {
1384
+ const t = S().config.dateFormats.api;
1385
+ e.publishedAt = a(r.publishedAt) ? null : $(r.publishedAt, t);
1360
1386
  }
1361
1387
  return e;
1362
1388
  }
@@ -1376,7 +1402,7 @@ class ar extends Y {
1376
1402
  return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1377
1403
  ...i.data,
1378
1404
  // eslint-disable-next-line lodash/prefer-lodash-method
1379
- data: i.data.data.map((o) => new ye(o))
1405
+ data: i.data.data.map((o) => new _e(o))
1380
1406
  }));
1381
1407
  }
1382
1408
  /**
@@ -1387,7 +1413,7 @@ class ar extends Y {
1387
1413
  * @see /doc/api/internal#/operations/api_internal_blog_get
1388
1414
  */
1389
1415
  getPost(r) {
1390
- return this.get(`/internal/blog/${r}`, {}, (e) => new nr(e.data));
1416
+ return this.get(`/internal/blog/${r}`, {}, (e) => new ur(e.data));
1391
1417
  }
1392
1418
  /**
1393
1419
  * Создаёт новую статью блога.
@@ -1400,7 +1426,7 @@ class ar extends Y {
1400
1426
  * @see /doc/api/internal#/operations/api_internal_blog_create
1401
1427
  */
1402
1428
  createPost(r, e = {}) {
1403
- return this.post("/internal/blog", ar.preparePostSaveData(r), (t) => new nr(t.data), e);
1429
+ return this.post("/internal/blog", Pr.preparePostSaveData(r), (t) => new ur(t.data), e);
1404
1430
  }
1405
1431
  /**
1406
1432
  * Изменяет данные о статье блога.
@@ -1414,7 +1440,7 @@ class ar extends Y {
1414
1440
  * @see /doc/api/internal#/operations/api_internal_blog_update
1415
1441
  */
1416
1442
  updatePost(r, e, t = {}) {
1417
- return this.patch(`/internal/blog/${r}`, ar.preparePostSaveData(e), (i) => new nr(i.data), t);
1443
+ return this.patch(`/internal/blog/${r}`, Pr.preparePostSaveData(e), (i) => new ur(i.data), t);
1418
1444
  }
1419
1445
  /**
1420
1446
  * Удаляет статью блога.
@@ -1449,7 +1475,7 @@ class ar extends Y {
1449
1475
  i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1450
1476
  }
1451
1477
  },
1452
- (c) => new yr(c.data),
1478
+ (c) => new Dr(c.data),
1453
1479
  o
1454
1480
  );
1455
1481
  }
@@ -1469,7 +1495,7 @@ class ar extends Y {
1469
1495
  return this.patch(
1470
1496
  `/internal/blog/${r}/media/${e}`,
1471
1497
  { isCover: t },
1472
- (o) => new yr(o.data),
1498
+ (o) => new Dr(o.data),
1473
1499
  i
1474
1500
  );
1475
1501
  }
@@ -1487,7 +1513,7 @@ class ar extends Y {
1487
1513
  return this.delete(`/internal/blog/${r}/media/${e}`);
1488
1514
  }
1489
1515
  }
1490
- class O extends G {
1516
+ class N extends Re {
1491
1517
  /**
1492
1518
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1493
1519
  *
@@ -1502,7 +1528,41 @@ class O extends G {
1502
1528
  this.name = (e == null ? void 0 : e.name) ?? "";
1503
1529
  }
1504
1530
  }
1505
- class q extends O {
1531
+ class Qe extends N {
1532
+ /**
1533
+ * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1534
+ *
1535
+ * @param data Данные для первоначальной инициализации.
1536
+ */
1537
+ constructor(e) {
1538
+ super(e);
1539
+ /**
1540
+ * Дата и время создания записи.
1541
+ */
1542
+ s(this, "createdAt");
1543
+ /**
1544
+ * Дата и время последнего изменения.
1545
+ */
1546
+ s(this, "updatedAt");
1547
+ this.createdAt = Q.parse(e == null ? void 0 : e.createdAt), this.updatedAt = Q.parse(e == null ? void 0 : e.updatedAt);
1548
+ }
1549
+ }
1550
+ class Ve extends Qe {
1551
+ /**
1552
+ * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1553
+ *
1554
+ * @param data Данные для первоначальной инициализации.
1555
+ */
1556
+ constructor(e) {
1557
+ super(e);
1558
+ /**
1559
+ * Дата и время последнего удаления.
1560
+ */
1561
+ s(this, "deletedAt");
1562
+ this.deletedAt = Q.parse(e == null ? void 0 : e.deletedAt);
1563
+ }
1564
+ }
1565
+ class _ extends N {
1506
1566
  /**
1507
1567
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1508
1568
  *
@@ -1521,7 +1581,7 @@ class q extends O {
1521
1581
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1522
1582
  }
1523
1583
  }
1524
- class ns extends O {
1584
+ class ps extends Ve {
1525
1585
  /**
1526
1586
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1527
1587
  *
@@ -1553,29 +1613,10 @@ class ns extends O {
1553
1613
  * Краткие данные о пользователе.
1554
1614
  */
1555
1615
  s(this, "owner");
1556
- /**
1557
- * Дата и время удаления.
1558
- */
1559
- s(this, "deletedAt");
1560
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = D(e == null ? void 0 : e.publishedAt) ? R(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1561
- }
1562
- }
1563
- class rt extends O {
1564
- /**
1565
- * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1566
- *
1567
- * @param data Данные для первоначальной инициализации.
1568
- */
1569
- constructor(e) {
1570
- super(e);
1571
- /**
1572
- * Дата и время последнего изменения.
1573
- */
1574
- s(this, "updatedAt");
1575
- this.updatedAt = D(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1616
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = O(e == null ? void 0 : e.publishedAt) ? I(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);
1576
1617
  }
1577
1618
  }
1578
- class ge extends rt {
1619
+ class ge extends Qe {
1579
1620
  /**
1580
1621
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1581
1622
  *
@@ -1587,19 +1628,15 @@ class ge extends rt {
1587
1628
  * Описание шаблона прайс-листа.
1588
1629
  */
1589
1630
  s(this, "description");
1590
- /**
1591
- * Дата и время создания шаблона.
1592
- */
1593
- s(this, "createdAt");
1594
1631
  /**
1595
1632
  * Данные о пользователе, создавшем шаблон прайс-листа.
1596
1633
  */
1597
1634
  s(this, "owner");
1598
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1635
+ this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new _(e.owner) : void 0;
1599
1636
  }
1600
1637
  }
1601
- var tt = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tt || {});
1602
- class v extends O {
1638
+ var ot = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ot || {});
1639
+ class w extends N {
1603
1640
  /**
1604
1641
  * Инициализирует экземпляр класса {@link Reference}.
1605
1642
  *
@@ -1618,15 +1655,15 @@ class v extends O {
1618
1655
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
1619
1656
  }
1620
1657
  }
1621
- class Ge extends v {
1658
+ class Fe extends w {
1622
1659
  /**
1623
1660
  * Возвращает значение справочника коэффициента розничной цены.
1624
1661
  */
1625
1662
  static getRetailPriceCoefficient() {
1626
- return { id: -2, slug: tt.Retail, name: "Розн. цена", guid: "", isNewRec: Nt(!0) };
1663
+ return { id: -2, slug: ot.Retail, name: "Розн. цена", guid: "", isNewRec: Bt(!0) };
1627
1664
  }
1628
1665
  }
1629
- class Sr {
1666
+ class Or {
1630
1667
  /**
1631
1668
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1632
1669
  *
@@ -1653,10 +1690,10 @@ class Sr {
1653
1690
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
1654
1691
  */
1655
1692
  s(this, "readOnly");
1656
- this.coefficient = new Ge(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;
1693
+ this.coefficient = new Fe(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;
1657
1694
  }
1658
1695
  }
1659
- class st {
1696
+ class ct {
1660
1697
  /**
1661
1698
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1662
1699
  *
@@ -1674,9 +1711,9 @@ class st {
1674
1711
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1675
1712
  }
1676
1713
  }
1677
- class V extends v {
1714
+ class V extends w {
1678
1715
  }
1679
- class Ue extends v {
1716
+ class Me extends w {
1680
1717
  /**
1681
1718
  * Инициализирует экземпляр класса {@link Warehouse}.
1682
1719
  *
@@ -1705,10 +1742,10 @@ class Ue extends v {
1705
1742
  * Координаты склада.
1706
1743
  */
1707
1744
  s(this, "coordinates");
1708
- 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 V(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new st(e == null ? void 0 : e.coordinates);
1745
+ 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 V(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ct(e == null ? void 0 : e.coordinates);
1709
1746
  }
1710
1747
  }
1711
- class os {
1748
+ class hs {
1712
1749
  /**
1713
1750
  * Инициализирует экземпляр класса {@link StockCount}.
1714
1751
  *
@@ -1723,10 +1760,10 @@ class os {
1723
1760
  * Количество остатков товара на складе.
1724
1761
  */
1725
1762
  s(this, "count");
1726
- this.warehouse = new Ue(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1763
+ this.warehouse = new Me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1727
1764
  }
1728
1765
  }
1729
- class j extends O {
1766
+ class E extends N {
1730
1767
  /**
1731
1768
  * Инициализирует экземпляр класса {@link Currency}.
1732
1769
  *
@@ -1753,7 +1790,7 @@ class j extends O {
1753
1790
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1754
1791
  }
1755
1792
  }
1756
- class Hr extends O {
1793
+ class Er extends N {
1757
1794
  /**
1758
1795
  * Инициализирует экземпляр класса {@link ProductUnit}.
1759
1796
  *
@@ -1780,7 +1817,7 @@ class Hr extends O {
1780
1817
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1781
1818
  }
1782
1819
  }
1783
- class _e extends O {
1820
+ class qe extends N {
1784
1821
  /**
1785
1822
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1786
1823
  *
@@ -1795,7 +1832,7 @@ class _e extends O {
1795
1832
  this.code = (e == null ? void 0 : e.code) ?? "";
1796
1833
  }
1797
1834
  }
1798
- class it extends _e {
1835
+ class lt extends qe {
1799
1836
  /**
1800
1837
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1801
1838
  *
@@ -1814,7 +1851,7 @@ class it extends _e {
1814
1851
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1815
1852
  }
1816
1853
  }
1817
- class cs extends it {
1854
+ class gs extends lt {
1818
1855
  /**
1819
1856
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1820
1857
  *
@@ -1829,7 +1866,7 @@ class cs extends it {
1829
1866
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1830
1867
  }
1831
1868
  }
1832
- class ls {
1869
+ class fs {
1833
1870
  /**
1834
1871
  * Инициализирует экземпляр класса {@link Image}.
1835
1872
  *
@@ -1852,7 +1889,7 @@ class ls {
1852
1889
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1853
1890
  }
1854
1891
  }
1855
- class wr extends it {
1892
+ class Rr extends lt {
1856
1893
  /**
1857
1894
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1858
1895
  *
@@ -1867,7 +1904,7 @@ class wr extends it {
1867
1904
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1868
1905
  }
1869
1906
  }
1870
- class N extends cs {
1907
+ class q extends gs {
1871
1908
  /**
1872
1909
  * Инициализирует экземпляр класса {@link Product}.
1873
1910
  *
@@ -1944,9 +1981,9 @@ class N extends cs {
1944
1981
  * Список коэффициентов цен на продукт.
1945
1982
  */
1946
1983
  s(this, "priceCoefficients");
1947
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Hr(e.unit) : new Hr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = D(e == null ? void 0 : e.costDate) ? R(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 os(p))) ?? [], this.type = "product";
1984
+ 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 E(e.currency) : new E(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = O(e == null ? void 0 : e.costDate) ? I(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 hs(p))) ?? [], this.type = "product";
1948
1985
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1949
- t && (this.category = new wr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new wr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ls(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 Sr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1986
+ t && (this.category = new Rr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Rr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new fs(p, S().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 Or(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1950
1987
  }
1951
1988
  /**
1952
1989
  * Возвращает признак, что это измеряемый товар.
@@ -1967,8 +2004,8 @@ class N extends cs {
1967
2004
  return this.retailCostRub ?? this.costRub;
1968
2005
  }
1969
2006
  }
1970
- var $r = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))($r || {});
1971
- class J extends N {
2007
+ var Ir = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ir || {});
2008
+ class ye extends q {
1972
2009
  /**
1973
2010
  * Инициализирует экземпляр класса {@link ClientProduct}.
1974
2011
  *
@@ -1992,6 +2029,14 @@ class J extends N {
1992
2029
  * Данные о шаблоне прайс-листа.
1993
2030
  */
1994
2031
  s(this, "priceTemplate");
2032
+ /**
2033
+ * Коэффициент цены, от значения которого рассчитана итоговая цена (для источников «клиентская цена» и «шаблон»).
2034
+ */
2035
+ s(this, "priceCoefficient");
2036
+ /**
2037
+ * Процент, прибавленный к значению коэффициента цены при расчёте итоговой цены.
2038
+ */
2039
+ s(this, "increasePercent");
1995
2040
  /**
1996
2041
  * Признак того, что указанный продукт входит в список ранее заказанных клиентом продуктов.
1997
2042
  */
@@ -2004,10 +2049,10 @@ class J extends N {
2004
2049
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2005
2050
  */
2006
2051
  s(this, "isFavorite");
2007
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? $r.Product, this.discount = e != null && e.discount ? new ns(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ge(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;
2052
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ir.Product, this.discount = e != null && e.discount ? new ps(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ge(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new Fe(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2008
2053
  }
2009
2054
  }
2010
- class Pe extends wr {
2055
+ class ie extends Rr {
2011
2056
  /**
2012
2057
  * Инициализирует экземпляр класса {@link BaseCategory}.
2013
2058
  *
@@ -2031,10 +2076,10 @@ class Pe extends wr {
2031
2076
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2032
2077
  */
2033
2078
  s(this, "currencyRates");
2034
- 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]) => [Ut(t), i])) : void 0;
2079
+ 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]) => [Wt(t), i])) : void 0;
2035
2080
  }
2036
2081
  }
2037
- class nt extends G {
2082
+ class ut extends Re {
2038
2083
  /**
2039
2084
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2040
2085
  *
@@ -2110,10 +2155,10 @@ class nt extends G {
2110
2155
  * @inheritDoc
2111
2156
  */
2112
2157
  s(this, "replacementId");
2113
- this.product = new J(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Pe(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ft(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2158
+ this.product = new ye(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.currency = e.currency ? new E(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && zt(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;
2114
2159
  }
2115
2160
  }
2116
- let kr = class extends nt {
2161
+ let xr = class extends ut {
2117
2162
  /**
2118
2163
  * Инициализирует экземпляр класса {@link OrderItem}.
2119
2164
  *
@@ -2157,7 +2202,7 @@ let kr = class extends nt {
2157
2202
  * @inheritDoc
2158
2203
  */
2159
2204
  s(this, "currency");
2160
- 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 = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new j(e.currency);
2205
+ 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 = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new E(e.currency);
2161
2206
  }
2162
2207
  };
2163
2208
  class $e {
@@ -2179,10 +2224,10 @@ class $e {
2179
2224
  * @inheritDoc
2180
2225
  */
2181
2226
  s(this, "directionsSum");
2182
- this.items = r.items.map((e) => new kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2227
+ this.items = r.items.map((e) => new xr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2183
2228
  }
2184
2229
  }
2185
- class Js extends h {
2230
+ class ti extends h {
2186
2231
  /**
2187
2232
  * Возвращает содержимое корзины указанного клиента.
2188
2233
  *
@@ -2296,8 +2341,8 @@ class Js extends h {
2296
2341
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2297
2342
  }
2298
2343
  }
2299
- var us = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(us || {}), ps = /* @__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))(ps || {}), ot = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(ot || {});
2300
- class E extends Pe {
2344
+ var ms = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ms || {}), ys = /* @__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))(ys || {}), pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(pt || {});
2345
+ class G extends ie {
2301
2346
  /**
2302
2347
  * Инициализирует экземпляр класса {@link Category}.
2303
2348
  *
@@ -2314,10 +2359,10 @@ class E extends Pe {
2314
2359
  * Список продуктов категории.
2315
2360
  */
2316
2361
  s(this, "products");
2317
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new E(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new N(o));
2362
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new G(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new q(o));
2318
2363
  }
2319
2364
  }
2320
- class ct {
2365
+ class ht {
2321
2366
  /**
2322
2367
  * Инициализирует экземпляр класса {@link ContactLinks}.
2323
2368
  *
@@ -2335,9 +2380,9 @@ class ct {
2335
2380
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2336
2381
  }
2337
2382
  }
2338
- class F extends v {
2383
+ class F extends w {
2339
2384
  }
2340
- class Lr extends O {
2385
+ class _r extends Qe {
2341
2386
  /**
2342
2387
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2343
2388
  *
@@ -2365,12 +2410,12 @@ class Lr extends O {
2365
2410
  * @inheritDoc
2366
2411
  */
2367
2412
  s(this, "isRegionalDirector");
2368
- this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ct(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2413
+ this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ht(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2369
2414
  }
2370
2415
  }
2371
- class Or extends v {
2416
+ class qr extends w {
2372
2417
  }
2373
- class lt extends O {
2418
+ class gt extends N {
2374
2419
  /**
2375
2420
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2376
2421
  *
@@ -2393,7 +2438,7 @@ class lt extends O {
2393
2438
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2394
2439
  }
2395
2440
  }
2396
- class Ye extends O {
2441
+ class Je extends N {
2397
2442
  /**
2398
2443
  * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
2399
2444
  *
@@ -2408,7 +2453,7 @@ class Ye extends O {
2408
2453
  this.abbr = (e == null ? void 0 : e.abbr) ?? "";
2409
2454
  }
2410
2455
  }
2411
- class K extends Lr {
2456
+ class J extends _r {
2412
2457
  /**
2413
2458
  * Инициализирует экземпляр класса {@link Manager}.
2414
2459
  *
@@ -2429,10 +2474,6 @@ class K extends Lr {
2429
2474
  * Признак того, что менеджер может работать с рекламациями.
2430
2475
  */
2431
2476
  s(this, "canDoReclamations");
2432
- /**
2433
- * Дата регистрации.
2434
- */
2435
- s(this, "createdAt");
2436
2477
  /**
2437
2478
  * Идентификатор супервайзера.
2438
2479
  */
@@ -2465,10 +2506,10 @@ class K extends Lr {
2465
2506
  * Дата и время последнего входа в систему.
2466
2507
  */
2467
2508
  s(this, "lastLoginAt");
2468
- 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 = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new lt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Or(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Ye(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new K(c)), this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2509
+ 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.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new gt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new qr(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Je(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new J(c)), this.lastLoginAt = O(e == null ? void 0 : e.lastLoginAt) ? I(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2469
2510
  }
2470
2511
  }
2471
- class hs extends Pe {
2512
+ class as extends ie {
2472
2513
  /**
2473
2514
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2474
2515
  *
@@ -2496,10 +2537,10 @@ class hs extends Pe {
2496
2537
  * Данные о менеджере за которым закреплена категория.
2497
2538
  */
2498
2539
  s(this, "manager");
2499
- 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 K(e.manager) : void 0;
2540
+ 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 J(e.manager) : void 0;
2500
2541
  }
2501
2542
  }
2502
- class ze extends hs {
2543
+ class je extends as {
2503
2544
  /**
2504
2545
  * Инициализирует экземпляр класса {@link ClientCategory}.
2505
2546
  *
@@ -2516,28 +2557,38 @@ class ze extends hs {
2516
2557
  * Список продуктов категории.
2517
2558
  */
2518
2559
  s(this, "products");
2519
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new ze(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
2560
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new je(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new ye(o));
2520
2561
  }
2521
2562
  }
2522
- class ut {
2563
+ class ft {
2523
2564
  /**
2524
- * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2565
+ * Инициализирует экземпляр класса {@link PriceCatalogableItem}.
2525
2566
  *
2526
2567
  * @param data Данные для первоначальной инициализации.
2527
2568
  */
2528
2569
  constructor(r) {
2529
2570
  /**
2530
- * Коэффициент цены.
2571
+ * Коэффициент цены, от значения которого производится расчёт.
2531
2572
  */
2532
2573
  s(this, "priceCoefficient");
2533
2574
  /**
2534
2575
  * Процент, который прибавляется к значению выбранного коэффициента.
2535
2576
  */
2536
2577
  s(this, "increasePercent");
2537
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ge(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2578
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2579
+ }
2580
+ }
2581
+ class mt extends ft {
2582
+ /**
2583
+ * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2584
+ *
2585
+ * @param data Данные для первоначальной инициализации.
2586
+ */
2587
+ constructor(r) {
2588
+ super(r);
2538
2589
  }
2539
2590
  }
2540
- class or extends ut {
2591
+ class pr extends mt {
2541
2592
  /**
2542
2593
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2543
2594
  *
@@ -2549,10 +2600,10 @@ class or extends ut {
2549
2600
  * Базовые данные о продукте.
2550
2601
  */
2551
2602
  s(this, "productCategory");
2552
- this.productCategory = new Pe(e == null ? void 0 : e.productCategory);
2603
+ this.productCategory = new ie(e == null ? void 0 : e.productCategory);
2553
2604
  }
2554
2605
  }
2555
- class Ir extends O {
2606
+ class Nr extends N {
2556
2607
  /**
2557
2608
  * Инициализирует экземпляр класса {@link Curator}.
2558
2609
  *
@@ -2572,12 +2623,12 @@ class Ir extends O {
2572
2623
  * @inheritDoc
2573
2624
  */
2574
2625
  s(this, "curatedDirection");
2575
- this.photo = e.photo, this.contacts = new ct(e.contacts), this.curatedDirection = new Or(e.curatedDirection);
2626
+ this.photo = e.photo, this.contacts = new ht(e.contacts), this.curatedDirection = new qr(e.curatedDirection);
2576
2627
  }
2577
2628
  }
2578
- class ae extends v {
2629
+ class ae extends w {
2579
2630
  }
2580
- class we extends v {
2631
+ class ve extends w {
2581
2632
  /**
2582
2633
  * Инициализирует экземпляр класса {@link Region}.
2583
2634
  *
@@ -2592,7 +2643,7 @@ class we extends v {
2592
2643
  e && (this.country = new ae(e.country));
2593
2644
  }
2594
2645
  }
2595
- class ve extends v {
2646
+ class we extends w {
2596
2647
  /**
2597
2648
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2598
2649
  *
@@ -2603,11 +2654,11 @@ class ve extends v {
2603
2654
  /**
2604
2655
  * Данные о регионе, в котором расположен город.
2605
2656
  */
2606
- s(this, "region", new we());
2607
- e && (this.region = new we(e.region));
2657
+ s(this, "region", new ve());
2658
+ e && (this.region = new ve(e.region));
2608
2659
  }
2609
2660
  }
2610
- class pt extends O {
2661
+ class yt extends Qe {
2611
2662
  /**
2612
2663
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2613
2664
  *
@@ -2631,10 +2682,6 @@ class pt extends O {
2631
2682
  * Направление продаж.
2632
2683
  */
2633
2684
  s(this, "salesDirection");
2634
- /**
2635
- * Дата и время регистрации пользователя.
2636
- */
2637
- s(this, "createdAt");
2638
2685
  /**
2639
2686
  * Дата и время последней аутентификации пользователя.
2640
2687
  */
@@ -2643,10 +2690,10 @@ class pt extends O {
2643
2690
  * Признак активности учетной записи пользователя.
2644
2691
  */
2645
2692
  s(this, "isActive");
2646
- 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 F(e.salesDirection) : void 0, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2693
+ 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 F(e.salesDirection) : void 0, this.lastLoginAt = O(e == null ? void 0 : e.lastLoginAt) ? I(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2647
2694
  }
2648
2695
  }
2649
- class ne extends pt {
2696
+ class ne extends yt {
2650
2697
  /**
2651
2698
  * Инициализирует экземпляр класса {@link Client}.
2652
2699
  *
@@ -2692,10 +2739,26 @@ class ne extends pt {
2692
2739
  * @inheritDoc
2693
2740
  */
2694
2741
  s(this, "curators");
2695
- this.salesDirection = new F(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 ve(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 Lr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Ir(o))) ?? void 0;
2742
+ this.salesDirection = new F(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 we(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 _r(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Nr(o))) ?? void 0;
2743
+ }
2744
+ }
2745
+ class vs extends Ye {
2746
+ /**
2747
+ * Инициализирует экземпляр класса {@link DeletableIdentity}.
2748
+ *
2749
+ * @param data Данные для первоначальной инициализации.
2750
+ * @param defaultIdValue Значение идентификатора по-умолчанию, если оно не определено в данных.
2751
+ */
2752
+ constructor(e, t) {
2753
+ super(e, t);
2754
+ /**
2755
+ * Дата и время удаления записи.
2756
+ */
2757
+ s(this, "deletedAt");
2758
+ this.deletedAt = Q.parse(e == null ? void 0 : e.deletedAt);
2696
2759
  }
2697
2760
  }
2698
- class ke extends G {
2761
+ class ke extends vs {
2699
2762
  /**
2700
2763
  * Инициализирует новый экземпляр класса.
2701
2764
  *
@@ -2703,14 +2766,6 @@ class ke extends G {
2703
2766
  */
2704
2767
  constructor(e) {
2705
2768
  super(e);
2706
- /**
2707
- * Дата и время начала действия шаблона.
2708
- */
2709
- s(this, "createdAt");
2710
- /**
2711
- * Дата и время окончания действия шаблона.
2712
- */
2713
- s(this, "deletedAt");
2714
2769
  /**
2715
2770
  * Данные о клиенте.
2716
2771
  */
@@ -2719,10 +2774,10 @@ class ke extends G {
2719
2774
  * Данные шаблона прайс-листа.
2720
2775
  */
2721
2776
  s(this, "priceTemplate");
2722
- this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new ge(e == null ? void 0 : e.priceTemplate);
2777
+ this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new ge(e == null ? void 0 : e.priceTemplate);
2723
2778
  }
2724
2779
  }
2725
- class cr extends ut {
2780
+ class hr extends mt {
2726
2781
  /**
2727
2782
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2728
2783
  *
@@ -2734,12 +2789,12 @@ class cr extends ut {
2734
2789
  * Базовые данные о продукте.
2735
2790
  */
2736
2791
  s(this, "product");
2737
- this.product = new N(e == null ? void 0 : e.product);
2792
+ this.product = new q(e == null ? void 0 : e.product);
2738
2793
  }
2739
2794
  }
2740
- class ht extends v {
2795
+ class at extends w {
2741
2796
  }
2742
- class fe extends O {
2797
+ class fe extends N {
2743
2798
  /**
2744
2799
  * Инициализирует экземпляр класса {@link Property}.
2745
2800
  *
@@ -2763,7 +2818,7 @@ class fe extends O {
2763
2818
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2764
2819
  */
2765
2820
  s(this, "isFilterable");
2766
- this.type = new ht(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;
2821
+ this.type = new at(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;
2767
2822
  }
2768
2823
  }
2769
2824
  class pe {
@@ -2785,7 +2840,7 @@ class pe {
2785
2840
  this.property = new fe(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2786
2841
  }
2787
2842
  }
2788
- class Ks {
2843
+ class si {
2789
2844
  /**
2790
2845
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2791
2846
  *
@@ -2811,12 +2866,12 @@ class Ks {
2811
2866
  /**
2812
2867
  * Период создания.
2813
2868
  */
2814
- s(this, "createdAt", new T());
2869
+ s(this, "createdAt", new b());
2815
2870
  /**
2816
2871
  * Период изменения.
2817
2872
  */
2818
- s(this, "updatedAt", new T());
2819
- 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);
2873
+ s(this, "updatedAt", new b());
2874
+ 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 b(r == null ? void 0 : r.createdAt), this.updatedAt = new b(r == null ? void 0 : r.updatedAt);
2820
2875
  }
2821
2876
  /**
2822
2877
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2850,11 +2905,60 @@ class Ks {
2850
2905
  return Object.keys(this).forEach((c) => {
2851
2906
  const u = this[c];
2852
2907
  // eslint-disable-next-line prettier/prettier
2853
- a(u) || D(u) && u.trim().length === 0 || br(u.isNewRec) && u.isNewRec() || (r[c] = u);
2908
+ a(u) || O(u) && u.trim().length === 0 || Sr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2854
2909
  }), !((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;
2855
2910
  }
2856
2911
  }
2857
- class Le extends O {
2912
+ class vt extends ft {
2913
+ /**
2914
+ * Инициализирует экземпляр класса {@link ClientPriceCatalogableItem}.
2915
+ *
2916
+ * @param data Данные для первоначальной инициализации.
2917
+ */
2918
+ constructor(e) {
2919
+ super(e);
2920
+ /**
2921
+ * Данные о пользователе, установившем цену.
2922
+ */
2923
+ s(this, "executor");
2924
+ /**
2925
+ * Дата и время создания записи.
2926
+ */
2927
+ s(this, "createdAt");
2928
+ this.executor = e != null && e.executor ? new _(e.executor) : void 0, this.createdAt = Q.parse(e == null ? void 0 : e.createdAt);
2929
+ }
2930
+ }
2931
+ class gr extends vt {
2932
+ /**
2933
+ * Инициализирует экземпляр класса {@link ClientPriceProduct}.
2934
+ *
2935
+ * @param data Данные для первоначальной инициализации.
2936
+ */
2937
+ constructor(e) {
2938
+ super(e);
2939
+ /**
2940
+ * Базовые данные о продукте.
2941
+ */
2942
+ s(this, "product");
2943
+ this.product = new q(e == null ? void 0 : e.product);
2944
+ }
2945
+ }
2946
+ class jr extends vt {
2947
+ /**
2948
+ * Инициализирует экземпляр класса {@link ClientPriceCategory}.
2949
+ *
2950
+ * @param data Данные для первоначальной инициализации.
2951
+ */
2952
+ constructor(e) {
2953
+ super(e);
2954
+ /**
2955
+ * Базовые данные о категории.
2956
+ */
2957
+ s(this, "productCategory");
2958
+ this.productCategory = new ie(e == null ? void 0 : e.productCategory);
2959
+ }
2960
+ }
2961
+ class Le extends N {
2858
2962
  /**
2859
2963
  * Инициализирует экземпляр класса {@link PricingRole}.
2860
2964
  *
@@ -2889,7 +2993,7 @@ class Le extends O {
2889
2993
  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;
2890
2994
  }
2891
2995
  }
2892
- class Br {
2996
+ class Gr {
2893
2997
  /**
2894
2998
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2895
2999
  *
@@ -2908,10 +3012,10 @@ class Br {
2908
3012
  * Минимальный коэффициент цены.
2909
3013
  */
2910
3014
  s(this, "minCoefficient");
2911
- this.role = new Le(r == null ? void 0 : r.role), this.category = new Pe(r == null ? void 0 : r.category), this.minCoefficient = new Ge(r == null ? void 0 : r.minCoefficient);
3015
+ this.role = new Le(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new Fe(r == null ? void 0 : r.minCoefficient);
2912
3016
  }
2913
3017
  }
2914
- class gs {
3018
+ class ws {
2915
3019
  /**
2916
3020
  * Инициализирует экземпляр класса {@link FilterSettings}.
2917
3021
  *
@@ -2944,7 +3048,7 @@ class gs {
2944
3048
  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;
2945
3049
  }
2946
3050
  }
2947
- class Wr {
3051
+ class Yr {
2948
3052
  /**
2949
3053
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2950
3054
  *
@@ -2963,10 +3067,10 @@ class Wr {
2963
3067
  * @inheritDoc
2964
3068
  */
2965
3069
  s(this, "settings");
2966
- this.category = new Pe(r == null ? void 0 : r.category), this.property = new fe(r == null ? void 0 : r.property), this.settings = new gs(r == null ? void 0 : r.settings);
3070
+ this.category = new ie(r == null ? void 0 : r.category), this.property = new fe(r == null ? void 0 : r.property), this.settings = new ws(r == null ? void 0 : r.settings);
2967
3071
  }
2968
3072
  }
2969
- class fs {
3073
+ class Cs {
2970
3074
  /**
2971
3075
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
2972
3076
  *
@@ -2984,7 +3088,7 @@ class fs {
2984
3088
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
2985
3089
  }
2986
3090
  }
2987
- class ms {
3091
+ class Ds {
2988
3092
  /**
2989
3093
  * Инициализирует экземпляр класса {@link CategoryFilter}.
2990
3094
  *
@@ -3027,10 +3131,10 @@ class ms {
3027
3131
  */
3028
3132
  s(this, "max");
3029
3133
  var e;
3030
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? ot.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new fs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3134
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? pt.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new Cs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3031
3135
  }
3032
3136
  }
3033
- class Xs extends h {
3137
+ class ii extends h {
3034
3138
  /**
3035
3139
  * Возвращает данные о результатах поиска категорий и товаров.
3036
3140
  *
@@ -3057,11 +3161,11 @@ class Xs extends h {
3057
3161
  */
3058
3162
  // eslint-disable-next-line class-methods-use-this
3059
3163
  getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3060
- let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3164
+ let c = `${S().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3061
3165
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3062
3166
  }
3063
3167
  }
3064
- class Zs extends h {
3168
+ class ni extends h {
3065
3169
  /**
3066
3170
  * Импортирует цены клиента из CSV файла.
3067
3171
  *
@@ -3074,31 +3178,79 @@ class Zs extends h {
3074
3178
  return this.post(`/internal/clients/${r}/price/import`, e);
3075
3179
  }
3076
3180
  /**
3077
- * Изменяет стоимость продуктов категории для клиента.
3181
+ * Возвращает список цен прайс-листа клиента, установленных на категории.
3182
+ *
3183
+ * @param clientId Идентификатор клиента.
3184
+ *
3185
+ * @see /doc/api/internal#/operations/api_internal_client_price_categories_get_list
3186
+ */
3187
+ getCategoryPrices(r) {
3188
+ return this.getTypedList(jr, `/internal/clients/${r}/price/categories`);
3189
+ }
3190
+ /**
3191
+ * Возвращает цену прайс-листа клиента, установленную на категорию.
3192
+ *
3193
+ * @param clientId Идентификатор клиента.
3194
+ * @param categoryId Идентификатор категории товаров.
3195
+ *
3196
+ * @see /doc/api/internal#/operations/api_internal_client_price_categories_get
3197
+ */
3198
+ getCategoryPrice(r, e) {
3199
+ return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new jr(t.data));
3200
+ }
3201
+ /**
3202
+ * Устанавливает цену прайс-листа клиента на категорию.
3078
3203
  *
3079
3204
  * @param clientId Идентификатор клиента.
3080
3205
  * @param categoryId Идентификатор категории товаров.
3081
3206
  * @param data Данные для изменения цены.
3207
+ * @param recursively Признак того, что цену необходимо установить рекурсивно для всех дочерних категорий.
3082
3208
  *
3083
- * @see /doc/api/internal#/operations/api_internal_client_price_category_update
3209
+ * @see /doc/api/internal#/operations/api_internal_client_price_categories_update
3084
3210
  */
3085
- updateCategoryPrices(r, e, t) {
3086
- var i;
3087
- return this.patch(`/internal/clients/${r}/price/categories/${e}`, {
3088
- price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3089
- increase_percent: t.value
3211
+ updateCategoryPrices(r, e, t, i = !1) {
3212
+ var o;
3213
+ return this.request({
3214
+ method: "PATCH",
3215
+ url: `/internal/clients/${r}/price/categories/${e}`,
3216
+ data: {
3217
+ price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3218
+ increase_percent: t.value
3219
+ },
3220
+ params: i ? { recursively: !0 } : {}
3090
3221
  });
3091
3222
  }
3092
3223
  /**
3093
- * Удаляет клиентские цены на продукты категории.
3224
+ * Удаляет цену прайс-листа клиента, установленную на категорию.
3094
3225
  *
3095
3226
  * @param clientId Идентификатор клиента.
3096
3227
  * @param categoryId Идентификатор категории товаров.
3228
+ * @param recursively Признак того, что цену необходимо удалить рекурсивно для всех дочерних категорий.
3097
3229
  *
3098
3230
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_remove
3099
3231
  */
3100
- removeCategoryPrices(r, e) {
3101
- return this.delete(`/internal/clients/${r}/price/categories/${e}`);
3232
+ removeCategoryPrices(r, e, t = !1) {
3233
+ return this.request({
3234
+ method: "DELETE",
3235
+ url: `/internal/clients/${r}/price/categories/${e}`,
3236
+ params: t ? { recursively: !0 } : {}
3237
+ });
3238
+ }
3239
+ /**
3240
+ * Удаляет цены прайс-листа клиента, установленные на продукты категории.
3241
+ *
3242
+ * @param clientId Идентификатор клиента.
3243
+ * @param categoryId Идентификатор категории товаров.
3244
+ * @param recursively Признак того, что цены необходимо удалить рекурсивно для продуктов всех дочерних категорий.
3245
+ *
3246
+ * @see /doc/api/internal#/operations/api_internal_client_price_categories_remove_product_client_prices
3247
+ */
3248
+ removeCategoryProductsPrices(r, e, t = !1) {
3249
+ return this.request({
3250
+ method: "DELETE",
3251
+ url: `/internal/clients/${r}/price/categories/${e}/products`,
3252
+ params: t ? { recursively: !0 } : {}
3253
+ });
3102
3254
  }
3103
3255
  /**
3104
3256
  * Добавляет указанную категорию товаров в список категорий для дополнительных продаж.
@@ -3169,7 +3321,28 @@ class Zs extends h {
3169
3321
  return this.delete(`/internal/clients/${r}/price/categories/${e}/manager`);
3170
3322
  }
3171
3323
  /**
3172
- * Изменяет стоимость продукта для клиента.
3324
+ * Возвращает список цен прайс-листа клиента, установленных на продукты.
3325
+ *
3326
+ * @param clientId Идентификатор клиента.
3327
+ *
3328
+ * @see /doc/api/internal#/operations/api_internal_client_price_products_get_list
3329
+ */
3330
+ getProductPrices(r) {
3331
+ return this.getTypedList(gr, `/internal/clients/${r}/price/products`);
3332
+ }
3333
+ /**
3334
+ * Возвращает цену прайс-листа клиента, установленную на продукт.
3335
+ *
3336
+ * @param clientId Идентификатор клиента.
3337
+ * @param productId Идентификатор продукта.
3338
+ *
3339
+ * @see /doc/api/internal#/operations/api_internal_client_price_products_get
3340
+ */
3341
+ getProductPrice(r, e) {
3342
+ return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new gr(t.data));
3343
+ }
3344
+ /**
3345
+ * Устанавливает цену прайс-листа клиента на продукт.
3173
3346
  *
3174
3347
  * @param clientId Идентификатор клиента.
3175
3348
  * @param productId Идентификатор продукта.
@@ -3185,11 +3358,11 @@ class Zs extends h {
3185
3358
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3186
3359
  increase_percent: t.value
3187
3360
  },
3188
- (o) => new J(o.data)
3361
+ (o) => new gr(o.data)
3189
3362
  );
3190
3363
  }
3191
3364
  /**
3192
- * Удаляет удаляет клиентскую цену на продукт.
3365
+ * Удаляет цену прайс-листа клиента, установленную на продукт.
3193
3366
  *
3194
3367
  * @param clientId Идентификатор клиента.
3195
3368
  * @param productId Идентификатор продукта.
@@ -3197,7 +3370,7 @@ class Zs extends h {
3197
3370
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
3198
3371
  */
3199
3372
  removeProductPrice(r, e) {
3200
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new J(t.data));
3373
+ return this.delete(`/internal/clients/${r}/price/products/${e}`);
3201
3374
  }
3202
3375
  /**
3203
3376
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -3260,7 +3433,7 @@ class Zs extends h {
3260
3433
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3261
3434
  }
3262
3435
  }
3263
- class ei extends h {
3436
+ class oi extends h {
3264
3437
  /**
3265
3438
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3266
3439
  *
@@ -3291,12 +3464,12 @@ class ei extends h {
3291
3464
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3292
3465
  */
3293
3466
  attachTemplate(r, e, t) {
3294
- const i = k().config.dateFormats.api;
3467
+ const i = S().config.dateFormats.api;
3295
3468
  return this.post(
3296
3469
  `/internal/clients/${r}/price/templates/${e}`,
3297
3470
  t && {
3298
- startAt: t.startAt && L(t.startAt, i),
3299
- endAt: t.endAt && L(t.endAt, i)
3471
+ startAt: t.startAt && $(t.startAt, i),
3472
+ endAt: t.endAt && $(t.endAt, i)
3300
3473
  },
3301
3474
  (o) => new ke(o.data),
3302
3475
  {},
@@ -3325,12 +3498,12 @@ class ei extends h {
3325
3498
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3326
3499
  */
3327
3500
  changeTemplate(r, e, t, i) {
3328
- const o = k().config.dateFormats.api;
3501
+ const o = S().config.dateFormats.api;
3329
3502
  return this.patch(
3330
3503
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3331
3504
  i && {
3332
- startAt: i.startAt && L(i.startAt, o),
3333
- endAt: i.endAt && L(i.endAt, o)
3505
+ startAt: i.startAt && $(i.startAt, o),
3506
+ endAt: i.endAt && $(i.endAt, o)
3334
3507
  },
3335
3508
  (c) => new ke(c.data)
3336
3509
  );
@@ -3348,7 +3521,7 @@ class ei extends h {
3348
3521
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3349
3522
  }
3350
3523
  }
3351
- class ri extends h {
3524
+ class ci extends h {
3352
3525
  /**
3353
3526
  * Возвращает список данных о корневых категориях.
3354
3527
  *
@@ -3357,7 +3530,7 @@ class ri extends h {
3357
3530
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3358
3531
  */
3359
3532
  getRootCategoriesList(r = !1) {
3360
- return this.getTypedList(E, "/internal/catalog/categories", {
3533
+ return this.getTypedList(G, "/internal/catalog/categories", {
3361
3534
  showHidden: r
3362
3535
  });
3363
3536
  }
@@ -3377,7 +3550,7 @@ class ri extends h {
3377
3550
  showHidden: e,
3378
3551
  withNestedCategories: t
3379
3552
  },
3380
- (i) => new E(i.data)
3553
+ (i) => new G(i.data)
3381
3554
  );
3382
3555
  }
3383
3556
  /**
@@ -3386,7 +3559,7 @@ class ri extends h {
3386
3559
  * @param categoryID Идентификатор категории продуктов.
3387
3560
  */
3388
3561
  getPublicCategoryData(r) {
3389
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new E(e.data));
3562
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new G(e.data));
3390
3563
  }
3391
3564
  /**
3392
3565
  * Возвращает список продуктов категории.
@@ -3404,7 +3577,7 @@ class ri extends h {
3404
3577
  showHidden: t,
3405
3578
  withPriceCoefficients: e
3406
3579
  },
3407
- (i) => De(i.data, (o) => new N(o))
3580
+ (i) => De(i.data, (o) => new q(o))
3408
3581
  );
3409
3582
  }
3410
3583
  /**
@@ -3417,7 +3590,7 @@ class ri extends h {
3417
3590
  getCategoryProductsCoefficients(r) {
3418
3591
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3419
3592
  const { data: t } = e;
3420
- return Mt(t, (i) => i.map((o) => new Sr(o))), t;
3593
+ return Et(t, (i) => i.map((o) => new Or(o))), t;
3421
3594
  });
3422
3595
  }
3423
3596
  /**
@@ -3429,14 +3602,14 @@ class ri extends h {
3429
3602
  publicSimpleSearch(r, e = 10) {
3430
3603
  return new Promise((t, i) => {
3431
3604
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3432
- t(o.categories.map((c) => new E(c)));
3605
+ t(o.categories.map((c) => new G(c)));
3433
3606
  }).catch((o) => {
3434
3607
  i(o);
3435
3608
  });
3436
3609
  });
3437
3610
  }
3438
3611
  }
3439
- class ti extends Y {
3612
+ class li extends j {
3440
3613
  /**
3441
3614
  * Возвращает данные об указанном продукте.
3442
3615
  *
@@ -3446,7 +3619,7 @@ class ti extends Y {
3446
3619
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
3447
3620
  */
3448
3621
  getProductData(r, e = !1) {
3449
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new N(t.data));
3622
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new q(t.data));
3450
3623
  }
3451
3624
  /**
3452
3625
  * Возвращает публичные данные об указанном продукте.
@@ -3454,7 +3627,7 @@ class ti extends Y {
3454
3627
  * @param productId Идентификатор продукта.
3455
3628
  */
3456
3629
  getPublicProductData(r) {
3457
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new N(e.data));
3630
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new q(e.data));
3458
3631
  }
3459
3632
  /**
3460
3633
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -3467,7 +3640,7 @@ class ti extends Y {
3467
3640
  return this.get(
3468
3641
  `/internal/catalog/products/${r}/coefficients`,
3469
3642
  {},
3470
- (e) => De(e.data, (t) => new Sr(t))
3643
+ (e) => De(e.data, (t) => new Or(t))
3471
3644
  );
3472
3645
  }
3473
3646
  /**
@@ -3480,9 +3653,9 @@ class ti extends Y {
3480
3653
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3481
3654
  */
3482
3655
  getNewProducts(r, e, t = !0) {
3483
- const i = k().config.dateFormats.api;
3484
- return this.getTypedPaginated(N, "/internal/catalog/products/new", void 0, void 0, e, {
3485
- period: { from: L(r, i) },
3656
+ const i = S().config.dateFormats.api;
3657
+ return this.getTypedPaginated(q, "/internal/catalog/products/new", void 0, void 0, e, {
3658
+ period: { from: $(r, i) },
3486
3659
  withPriceCoefficients: t
3487
3660
  });
3488
3661
  }
@@ -3495,14 +3668,14 @@ class ti extends Y {
3495
3668
  publicSimpleSearch(r, e = 10) {
3496
3669
  return new Promise((t, i) => {
3497
3670
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3498
- t(o.products.map((c) => new N(c)));
3671
+ t(o.products.map((c) => new q(c)));
3499
3672
  }).catch((o) => {
3500
3673
  i(o);
3501
3674
  });
3502
3675
  });
3503
3676
  }
3504
3677
  }
3505
- class si extends h {
3678
+ class ui extends h {
3506
3679
  /**
3507
3680
  * Возвращает список данных о корневых категориях указанного клиента.
3508
3681
  *
@@ -3512,7 +3685,7 @@ class si extends h {
3512
3685
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3513
3686
  */
3514
3687
  getRootCategoriesList(r, e = !1) {
3515
- return this.getTypedList(ze, "/internal/catalog/categories", {
3688
+ return this.getTypedList(je, "/internal/catalog/categories", {
3516
3689
  clientId: r,
3517
3690
  showHidden: e
3518
3691
  });
@@ -3535,7 +3708,7 @@ class si extends h {
3535
3708
  showHidden: t,
3536
3709
  withNestedCategories: i
3537
3710
  },
3538
- (o) => new ze(o.data)
3711
+ (o) => new je(o.data)
3539
3712
  );
3540
3713
  }
3541
3714
  /**
@@ -3556,11 +3729,11 @@ class si extends h {
3556
3729
  showHidden: i,
3557
3730
  withPriceCoefficients: t
3558
3731
  },
3559
- (o) => De(o.data, (c) => new J(c))
3732
+ (o) => De(o.data, (c) => new ye(c))
3560
3733
  );
3561
3734
  }
3562
3735
  }
3563
- class ii extends Y {
3736
+ class pi extends j {
3564
3737
  /**
3565
3738
  * Возвращает данные об указанном продукте для указанного клиента.
3566
3739
  *
@@ -3577,7 +3750,7 @@ class ii extends Y {
3577
3750
  clientId: e,
3578
3751
  withPriceCoefficients: t
3579
3752
  },
3580
- (i) => new J(i.data)
3753
+ (i) => new ye(i.data)
3581
3754
  );
3582
3755
  }
3583
3756
  /**
@@ -3591,15 +3764,15 @@ class ii extends Y {
3591
3764
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3592
3765
  */
3593
3766
  getNewProducts(r, e, t, i = !0) {
3594
- const o = k().config.dateFormats.api;
3595
- return this.getTypedPaginated(J, "/internal/catalog/products/new", void 0, void 0, t, {
3767
+ const o = S().config.dateFormats.api;
3768
+ return this.getTypedPaginated(ye, "/internal/catalog/products/new", void 0, void 0, t, {
3596
3769
  clientId: r,
3597
- period: { from: L(e, o) },
3770
+ period: { from: $(e, o) },
3598
3771
  withPriceCoefficients: i
3599
3772
  });
3600
3773
  }
3601
3774
  }
3602
- class ni extends Y {
3775
+ class hi extends j {
3603
3776
  /**
3604
3777
  * Возвращает список шаблонов прайс-листа.
3605
3778
  *
@@ -3665,7 +3838,7 @@ class ni extends Y {
3665
3838
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3666
3839
  */
3667
3840
  getProductTemplatePrices(r) {
3668
- return this.getTypedList(cr, `/internal/price/templates/${r}/products`);
3841
+ return this.getTypedList(hr, `/internal/price/templates/${r}/products`);
3669
3842
  }
3670
3843
  /**
3671
3844
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3676,7 +3849,7 @@ class ni extends Y {
3676
3849
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3677
3850
  */
3678
3851
  getProductTemplatePrice(r, e) {
3679
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new cr(t.data));
3852
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new hr(t.data));
3680
3853
  }
3681
3854
  /**
3682
3855
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3695,7 +3868,7 @@ class ni extends Y {
3695
3868
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3696
3869
  increase_percent: t.value
3697
3870
  },
3698
- (o) => new cr(o.data)
3871
+ (o) => new hr(o.data)
3699
3872
  );
3700
3873
  }
3701
3874
  /**
@@ -3717,7 +3890,7 @@ class ni extends Y {
3717
3890
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
3718
3891
  */
3719
3892
  getCategoryTemplatePrices(r) {
3720
- return this.getTypedList(or, `/internal/price/templates/${r}/categories`);
3893
+ return this.getTypedList(pr, `/internal/price/templates/${r}/categories`);
3721
3894
  }
3722
3895
  /**
3723
3896
  * Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
@@ -3731,7 +3904,7 @@ class ni extends Y {
3731
3904
  return this.get(
3732
3905
  `/internal/price/templates/${r}/categories/${e}`,
3733
3906
  {},
3734
- (t) => new or(t.data)
3907
+ (t) => new pr(t.data)
3735
3908
  );
3736
3909
  }
3737
3910
  /**
@@ -3757,7 +3930,7 @@ class ni extends Y {
3757
3930
  },
3758
3931
  params: i ? { recursively: !0 } : {}
3759
3932
  },
3760
- (c) => new or(c.data)
3933
+ (c) => new pr(c.data)
3761
3934
  );
3762
3935
  }
3763
3936
  /**
@@ -3788,7 +3961,7 @@ class ni extends Y {
3788
3961
  return this.getTypedList(ke, `/internal/price/templates/${r}/clients`);
3789
3962
  }
3790
3963
  }
3791
- class oi extends h {
3964
+ class gi extends h {
3792
3965
  /**
3793
3966
  * Возвращает список ролей ценообразования.
3794
3967
  *
@@ -3846,7 +4019,7 @@ class oi extends h {
3846
4019
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
3847
4020
  */
3848
4021
  getCategoryRules(r) {
3849
- return this.getTypedList(Br, `/internal/price/roles/rules/categories/${r}`);
4022
+ return this.getTypedList(Gr, `/internal/price/roles/rules/categories/${r}`);
3850
4023
  }
3851
4024
  /**
3852
4025
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -3860,11 +4033,11 @@ class oi extends h {
3860
4033
  return this.patch(
3861
4034
  `/internal/price/roles/rules/categories/${r}`,
3862
4035
  e,
3863
- (t) => _.instanceListInitializer(Br, t.data)
4036
+ (t) => x.instanceListInitializer(Gr, t.data)
3864
4037
  );
3865
4038
  }
3866
4039
  }
3867
- class ci extends Y {
4040
+ class fi extends j {
3868
4041
  /**
3869
4042
  * Возвращает пагинированный список свойств.
3870
4043
  *
@@ -4243,7 +4416,7 @@ class ci extends Y {
4243
4416
  return this.get(
4244
4417
  `/internal/catalog/categories/${r}/filters`,
4245
4418
  { recursively: e },
4246
- (t) => t.data.map((i) => new ms(i))
4419
+ (t) => t.data.map((i) => new Ds(i))
4247
4420
  );
4248
4421
  }
4249
4422
  /**
@@ -4253,7 +4426,7 @@ class ci extends Y {
4253
4426
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4254
4427
  */
4255
4428
  getCategoryFilterSettings(r) {
4256
- return this.getTypedList(Wr, `/internal/catalog/categories/${r}/filter-settings`);
4429
+ return this.getTypedList(Yr, `/internal/catalog/categories/${r}/filter-settings`);
4257
4430
  }
4258
4431
  /**
4259
4432
  * Сохраняет настройки фильтра в категории.
@@ -4267,7 +4440,7 @@ class ci extends Y {
4267
4440
  return this.patch(
4268
4441
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4269
4442
  t,
4270
- (i) => new Wr(i.data)
4443
+ (i) => new Yr(i.data)
4271
4444
  );
4272
4445
  }
4273
4446
  /**
@@ -4281,7 +4454,7 @@ class ci extends Y {
4281
4454
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4282
4455
  }
4283
4456
  }
4284
- class li extends h {
4457
+ class mi extends h {
4285
4458
  /**
4286
4459
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4287
4460
  *
@@ -4291,7 +4464,7 @@ class li extends h {
4291
4464
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
4292
4465
  */
4293
4466
  getRootCategoriesList(r, e = !1) {
4294
- return this.getTypedList(E, "/internal/catalog/categories", {
4467
+ return this.getTypedList(G, "/internal/catalog/categories", {
4295
4468
  priceTemplateId: r,
4296
4469
  showHidden: e
4297
4470
  });
@@ -4314,7 +4487,7 @@ class li extends h {
4314
4487
  showHidden: t,
4315
4488
  withNestedCategories: i
4316
4489
  },
4317
- (o) => new E(o.data)
4490
+ (o) => new G(o.data)
4318
4491
  );
4319
4492
  }
4320
4493
  /**
@@ -4335,11 +4508,11 @@ class li extends h {
4335
4508
  showHidden: i,
4336
4509
  withPriceCoefficients: t
4337
4510
  },
4338
- (o) => De(o.data, (c) => new N(c))
4511
+ (o) => De(o.data, (c) => new q(c))
4339
4512
  );
4340
4513
  }
4341
4514
  }
4342
- function zr(n, r, e) {
4515
+ function Qr(n, r, e) {
4343
4516
  let t;
4344
4517
  return n.some((i) => {
4345
4518
  if (i.type === e && i.id === r)
@@ -4348,29 +4521,29 @@ function zr(n, r, e) {
4348
4521
  return !1;
4349
4522
  const o = i;
4350
4523
  if (o.products && o.products.length > 0) {
4351
- const c = zr(o.products, r, e);
4524
+ const c = Qr(o.products, r, e);
4352
4525
  if (c)
4353
4526
  return t = c, !0;
4354
4527
  }
4355
4528
  if (o.categories && o.categories.length > 0) {
4356
- const c = zr(o.categories, r, e);
4529
+ const c = Qr(o.categories, r, e);
4357
4530
  if (c)
4358
4531
  return t = c, !0;
4359
4532
  }
4360
4533
  return !1;
4361
4534
  }), t;
4362
4535
  }
4363
- function jr(n) {
4536
+ function Vr(n) {
4364
4537
  const r = [];
4365
4538
  return n.forEach((e) => {
4366
4539
  if (r.push(e), e.type === "category") {
4367
4540
  const t = e;
4368
- t.products && t.products.length > 0 && r.push(...jr(t.products)), t.categories && t.categories.length > 0 && r.push(...jr(t.categories));
4541
+ t.products && t.products.length > 0 && r.push(...Vr(t.products)), t.categories && t.categories.length > 0 && r.push(...Vr(t.categories));
4369
4542
  }
4370
4543
  }), r;
4371
4544
  }
4372
- var ys = /* @__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))(ys || {}), Q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Q || {});
4373
- class vr extends G {
4545
+ var Ps = /* @__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))(Ps || {}), Y = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Y || {});
4546
+ class br extends Re {
4374
4547
  /**
4375
4548
  * Инициализирует экземпляр класса {@link BankAccount}.
4376
4549
  *
@@ -4397,11 +4570,11 @@ class vr extends G {
4397
4570
  /**
4398
4571
  * Данные о валюте.
4399
4572
  */
4400
- s(this, "currency", new j());
4401
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
4573
+ s(this, "currency", new E());
4574
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new E(e.currency));
4402
4575
  }
4403
4576
  }
4404
- class Cr extends O {
4577
+ class Tr extends Ve {
4405
4578
  /**
4406
4579
  * Инициализирует экземпляр класса {@link Contact}.
4407
4580
  *
@@ -4420,7 +4593,7 @@ class Cr extends O {
4420
4593
  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;
4421
4594
  }
4422
4595
  }
4423
- class te extends Cr {
4596
+ class re extends Tr {
4424
4597
  /**
4425
4598
  * Инициализирует экземпляр класса {@link ContactPerson}.
4426
4599
  *
@@ -4444,48 +4617,25 @@ class te extends Cr {
4444
4617
  * Комментарий к контактному лицу.
4445
4618
  */
4446
4619
  s(this, "comment");
4447
- /**
4448
- * Дата и время последнего изменения.
4449
- */
4450
- s(this, "updatedAt");
4451
- /**
4452
- * Дата и время последнего удаления.
4453
- */
4454
- s(this, "deletedAt");
4455
- 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 = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4620
+ 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;
4456
4621
  }
4457
4622
  }
4458
- class se extends v {
4623
+ class te extends w {
4459
4624
  /**
4460
4625
  * Возвращает сгенерированную запись-описание физического лица.
4461
4626
  */
4462
4627
  static generatePersonItem() {
4463
- return new se({
4628
+ return new te({
4464
4629
  id: 1,
4465
4630
  guid: "",
4466
- slug: Q.Person,
4631
+ slug: Y.Person,
4467
4632
  name: ""
4468
4633
  });
4469
4634
  }
4470
4635
  }
4471
- class Ce extends v {
4472
- }
4473
- class gt extends rt {
4474
- /**
4475
- * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4476
- *
4477
- * @param data Данные для первоначальной инициализации.
4478
- */
4479
- constructor(e) {
4480
- super(e);
4481
- /**
4482
- * Дата и время последнего удаления.
4483
- */
4484
- s(this, "deletedAt");
4485
- this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4486
- }
4636
+ class Ce extends w {
4487
4637
  }
4488
- class ft extends gt {
4638
+ class wt extends Ve {
4489
4639
  /**
4490
4640
  * Инициализирует экземпляр класса {@link ContragentBase}.
4491
4641
  *
@@ -4497,7 +4647,7 @@ class ft extends gt {
4497
4647
  /**
4498
4648
  * Данные об организационно-правовой форме.
4499
4649
  */
4500
- s(this, "opf", se.generatePersonItem());
4650
+ s(this, "opf", te.generatePersonItem());
4501
4651
  /**
4502
4652
  * Группа партнеров (направление деятельности).
4503
4653
  */
@@ -4518,10 +4668,6 @@ class ft extends gt {
4518
4668
  * Альтернативное название контрагента.
4519
4669
  */
4520
4670
  s(this, "alternativeName");
4521
- /**
4522
- * Дата и время создания записи.
4523
- */
4524
- s(this, "createdAt");
4525
4671
  /**
4526
4672
  * Данные пользователя, создавшего запись.
4527
4673
  */
@@ -4531,22 +4677,22 @@ class ft extends gt {
4531
4677
  */
4532
4678
  s(this, "updater");
4533
4679
  if (e) {
4534
- if (this.opf = new se(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Ce(e.partnerGroup)), e.contacts) {
4680
+ if (this.opf = new te(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Ce(e.partnerGroup)), e.contacts) {
4535
4681
  const t = [];
4536
4682
  e.contacts.forEach((i) => {
4537
- t.push(new te(i));
4683
+ t.push(new re(i));
4538
4684
  }), this.contacts = t;
4539
4685
  }
4540
4686
  if (e.bankAccounts) {
4541
4687
  const t = [];
4542
4688
  e.bankAccounts.forEach((i) => {
4543
- t.push(new vr(i));
4689
+ t.push(new br(i));
4544
4690
  }), this.bankAccounts = t;
4545
4691
  }
4546
4692
  }
4547
4693
  }
4548
4694
  }
4549
- class as extends ft {
4695
+ class Rs extends wt {
4550
4696
  /**
4551
4697
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4552
4698
  *
@@ -4556,7 +4702,7 @@ class as extends ft {
4556
4702
  super(r);
4557
4703
  }
4558
4704
  }
4559
- class mt extends ft {
4705
+ class Ct extends wt {
4560
4706
  /**
4561
4707
  * Инициализирует экземпляр класса {@link ContragentIc}.
4562
4708
  *
@@ -4599,7 +4745,7 @@ class mt extends ft {
4599
4745
  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 ?? "");
4600
4746
  }
4601
4747
  }
4602
- class yt extends mt {
4748
+ class Dt extends Ct {
4603
4749
  /**
4604
4750
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4605
4751
  *
@@ -4614,7 +4760,7 @@ class yt extends mt {
4614
4760
  e && (this.kpp = e.kpp ?? "");
4615
4761
  }
4616
4762
  }
4617
- class ws extends yt {
4763
+ class bs extends Dt {
4618
4764
  /**
4619
4765
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4620
4766
  *
@@ -4637,7 +4783,7 @@ class ws extends yt {
4637
4783
  e && (this.registrationCountry = new ae(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4638
4784
  }
4639
4785
  }
4640
- class je {
4786
+ class Ge {
4641
4787
  /**
4642
4788
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4643
4789
  *
@@ -4645,18 +4791,18 @@ class je {
4645
4791
  */
4646
4792
  static createInstance(r) {
4647
4793
  switch (r.opf.slug) {
4648
- case Q.Ic:
4649
- return new mt(r);
4650
- case Q.UlR:
4651
- return new yt(r);
4652
- case Q.UlNr:
4653
- return new ws(r);
4794
+ case Y.Ic:
4795
+ return new Ct(r);
4796
+ case Y.UlR:
4797
+ return new Dt(r);
4798
+ case Y.UlNr:
4799
+ return new bs(r);
4654
4800
  default:
4655
- return new as(r);
4801
+ return new Rs(r);
4656
4802
  }
4657
4803
  }
4658
4804
  }
4659
- class Ie extends gt {
4805
+ class Ie extends Ve {
4660
4806
  /**
4661
4807
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4662
4808
  *
@@ -4693,14 +4839,14 @@ class Ie extends gt {
4693
4839
  * Признак того, что указанный адрес является адресом транспортной компании.
4694
4840
  */
4695
4841
  s(this, "isTransportCompanyAddress");
4696
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new st(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new te(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;
4842
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ct(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new re(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;
4697
4843
  }
4698
4844
  }
4699
- class at extends v {
4845
+ class Pt extends w {
4700
4846
  }
4701
- class wt extends v {
4847
+ class Rt extends w {
4702
4848
  }
4703
- class Gr extends ne {
4849
+ class Jr extends ne {
4704
4850
  /**
4705
4851
  * Инициализирует экземпляр класса {@link Client}.
4706
4852
  *
@@ -4750,10 +4896,10 @@ class Gr extends ne {
4750
4896
  * @inheritDoc
4751
4897
  */
4752
4898
  s(this, "extraData");
4753
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => je.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 te(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ie(u))) ?? [], this.channelPrimaryInterest = new at(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new wt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new V(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ue(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4899
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Ge.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 re(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ie(u))) ?? [], this.channelPrimaryInterest = new Pt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Rt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new V(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4754
4900
  }
4755
4901
  }
4756
- class ui extends Ne {
4902
+ class yi extends Ue {
4757
4903
  /**
4758
4904
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4759
4905
  *
@@ -4809,11 +4955,11 @@ class ui extends Ne {
4809
4955
  /**
4810
4956
  * @inheritDoc
4811
4957
  */
4812
- s(this, "createdAt", new T());
4958
+ s(this, "createdAt", new b());
4813
4959
  /**
4814
4960
  * @inheritDoc
4815
4961
  */
4816
- s(this, "lastLoginDate", new T());
4962
+ s(this, "lastLoginDate", new b());
4817
4963
  /**
4818
4964
  * @inheritDoc
4819
4965
  */
@@ -4865,12 +5011,12 @@ class ui extends Ne {
4865
5011
  /**
4866
5012
  * @inheritDoc
4867
5013
  */
4868
- s(this, "noOrdersPeriod", new T());
4869
- this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, 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((P) => new ve(P)), this.region = new we(e == null ? void 0 : e.region), this.country = new ae(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((P) => new K(P))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((P) => new Ir(P))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((P) => new F(P)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new se(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new V(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((P) => new Ce(P)), this.contact = new Cr(e == null ? void 0 : e.contact), this.lastOrder = {
4870
- createdAt: new T((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
5014
+ s(this, "noOrdersPeriod", new b());
5015
+ this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, 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 we(D)), this.region = new ve(e == null ? void 0 : e.region), this.country = new ae(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 b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(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 J(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 Nr(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new F(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new te(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new V(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new Ce(D)), this.contact = new Tr(e == null ? void 0 : e.contact), this.lastOrder = {
5016
+ createdAt: new b((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4871
5017
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4872
5018
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
4873
- }, this.noOrdersPeriod = new T(e == null ? void 0 : e.noOrdersPeriod);
5019
+ }, this.noOrdersPeriod = new b(e == null ? void 0 : e.noOrdersPeriod);
4874
5020
  }
4875
5021
  /**
4876
5022
  * @inheritDoc
@@ -4881,7 +5027,7 @@ class ui extends Ne {
4881
5027
  this.cities = [];
4882
5028
  break;
4883
5029
  case "region":
4884
- this.region = new we();
5030
+ this.region = new ve();
4885
5031
  break;
4886
5032
  case "isActive":
4887
5033
  this.isActive = !0;
@@ -4908,7 +5054,7 @@ class ui extends Ne {
4908
5054
  this.salesDirections = [];
4909
5055
  break;
4910
5056
  case "contragentType":
4911
- this.contragentType = new se();
5057
+ this.contragentType = new te();
4912
5058
  break;
4913
5059
  case "preferredDeliveryType":
4914
5060
  this.preferredDeliveryType = new V();
@@ -4917,7 +5063,7 @@ class ui extends Ne {
4917
5063
  this.partnerGroups = [];
4918
5064
  break;
4919
5065
  case "contact":
4920
- this.contact = new Cr();
5066
+ this.contact = new Tr();
4921
5067
  break;
4922
5068
  default:
4923
5069
  this[e] = void 0;
@@ -4934,7 +5080,7 @@ class ui extends Ne {
4934
5080
  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;
4935
5081
  }
4936
5082
  }
4937
- class vt extends G {
5083
+ class bt extends Ye {
4938
5084
  /**
4939
5085
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4940
5086
  *
@@ -4942,18 +5088,14 @@ class vt extends G {
4942
5088
  */
4943
5089
  constructor(e) {
4944
5090
  super(e);
4945
- /**
4946
- * @inheritDoc
4947
- */
4948
- s(this, "createdAt");
4949
5091
  /**
4950
5092
  * @inheritDoc
4951
5093
  */
4952
5094
  s(this, "creator");
4953
- this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
5095
+ this.creator = new _(e == null ? void 0 : e.creator);
4954
5096
  }
4955
5097
  }
4956
- class vs extends O {
5098
+ class Ts extends N {
4957
5099
  /**
4958
5100
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4959
5101
  *
@@ -4990,10 +5132,10 @@ class vs extends O {
4990
5132
  * @inheritDoc
4991
5133
  */
4992
5134
  s(this, "curators");
4993
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new te(u))) ?? void 0, this.lastOrder = e.lastOrder ? new vt(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 V(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Lr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ir(u))) ?? void 0;
5135
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new re(u))) ?? void 0, this.lastOrder = e.lastOrder ? new bt(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 V(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new _r(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Nr(u))) ?? void 0;
4994
5136
  }
4995
5137
  }
4996
- class lr extends G {
5138
+ class fr extends Re {
4997
5139
  /**
4998
5140
  * Инициализирует экземпляр класса {@link ContactRelation}.
4999
5141
  *
@@ -5008,7 +5150,7 @@ class lr extends G {
5008
5150
  this.isPrimary = e.isPrimary;
5009
5151
  }
5010
5152
  }
5011
- class Cs extends te {
5153
+ class ds extends re {
5012
5154
  /**
5013
5155
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5014
5156
  *
@@ -5033,10 +5175,10 @@ class Cs extends te {
5033
5175
  */
5034
5176
  addresses: []
5035
5177
  });
5036
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new lr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new lr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new lr(t))));
5178
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new fr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new fr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new fr(t))));
5037
5179
  }
5038
5180
  }
5039
- class H extends Y {
5181
+ class H extends j {
5040
5182
  /**
5041
5183
  * Преобразует данные о клиенте в данные требуемые для запроса.
5042
5184
  *
@@ -5068,7 +5210,7 @@ class H extends Y {
5068
5210
  let e;
5069
5211
  const t = r, i = r, o = r;
5070
5212
  switch (r.opf.slug) {
5071
- case Q.Ic:
5213
+ case Y.Ic:
5072
5214
  e = {
5073
5215
  opf: t.opf.slug,
5074
5216
  name: t.name,
@@ -5085,7 +5227,7 @@ class H extends Y {
5085
5227
  actual_address: t.actualAddress
5086
5228
  };
5087
5229
  break;
5088
- case Q.UlR:
5230
+ case Y.UlR:
5089
5231
  e = {
5090
5232
  opf: i.opf.slug,
5091
5233
  name: i.name,
@@ -5103,7 +5245,7 @@ class H extends Y {
5103
5245
  actual_address: i.actualAddress
5104
5246
  };
5105
5247
  break;
5106
- case Q.UlNr:
5248
+ case Y.UlNr:
5107
5249
  e = {
5108
5250
  opf: o.opf.slug,
5109
5251
  name: o.name,
@@ -5175,7 +5317,7 @@ class H extends Y {
5175
5317
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5176
5318
  */
5177
5319
  getClient(r) {
5178
- return this.get(`/internal/clients/${r}`, {}, (e) => new Gr(e.data));
5320
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Jr(e.data));
5179
5321
  }
5180
5322
  /**
5181
5323
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5211,7 +5353,7 @@ class H extends Y {
5211
5353
  return this.getClientsList({
5212
5354
  groupOp: "and",
5213
5355
  groups: [],
5214
- filters: [{ field: "phone", op: dr.Contains, value: r }]
5356
+ filters: [{ field: "phone", op: Lr.Contains, value: r }]
5215
5357
  });
5216
5358
  }
5217
5359
  /**
@@ -5226,7 +5368,7 @@ class H extends Y {
5226
5368
  return this.post(
5227
5369
  "/internal/clients/additional-data",
5228
5370
  { clients: t, requested_data_types: e },
5229
- (i) => _.instanceListInitializer(vs, i.data)
5371
+ (i) => x.instanceListInitializer(Ts, i.data)
5230
5372
  );
5231
5373
  }
5232
5374
  /**
@@ -5236,7 +5378,7 @@ class H extends Y {
5236
5378
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5237
5379
  */
5238
5380
  getAllClientContacts(r) {
5239
- return this.getTypedList(Cs, `/internal/clients/${r}/contacts/all`);
5381
+ return this.getTypedList(ds, `/internal/clients/${r}/contacts/all`);
5240
5382
  }
5241
5383
  /**
5242
5384
  * Создаёт нового клиента на основе указанных данных.
@@ -5246,7 +5388,7 @@ class H extends Y {
5246
5388
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5247
5389
  */
5248
5390
  createClientCommonData(r, e = {}) {
5249
- return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Gr(t.data), e);
5391
+ return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Jr(t.data), e);
5250
5392
  }
5251
5393
  /**
5252
5394
  * Обновляет данные указанного клиента.
@@ -5386,7 +5528,7 @@ class H extends Y {
5386
5528
  return this.post(
5387
5529
  `/internal/clients/${r}/contragents`,
5388
5530
  H.transformContragentClientDataToRequest(e),
5389
- (i) => je.createInstance(i.data),
5531
+ (i) => Ge.createInstance(i.data),
5390
5532
  t
5391
5533
  );
5392
5534
  }
@@ -5402,7 +5544,7 @@ class H extends Y {
5402
5544
  return this.patch(
5403
5545
  `/internal/clients/${r}/contragents/${e.id}`,
5404
5546
  H.transformContragentClientDataToRequest(e),
5405
- (i) => je.createInstance(i.data),
5547
+ (i) => Ge.createInstance(i.data),
5406
5548
  t
5407
5549
  );
5408
5550
  }
@@ -5480,7 +5622,7 @@ class H extends Y {
5480
5622
  return this.post(
5481
5623
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5482
5624
  H.transformClientContragentBankAccountToRequest(t),
5483
- (o) => new vr(o.data),
5625
+ (o) => new br(o.data),
5484
5626
  i
5485
5627
  );
5486
5628
  }
@@ -5497,7 +5639,7 @@ class H extends Y {
5497
5639
  return this.patch(
5498
5640
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5499
5641
  H.transformClientContragentBankAccountToRequest(t),
5500
- (o) => new vr(o.data),
5642
+ (o) => new br(o.data),
5501
5643
  i
5502
5644
  );
5503
5645
  }
@@ -5553,7 +5695,7 @@ class H extends Y {
5553
5695
  comment: e.comment,
5554
5696
  not_disturb: e.notDisturb
5555
5697
  },
5556
- (i) => new te(i.data),
5698
+ (i) => new re(i.data),
5557
5699
  t
5558
5700
  );
5559
5701
  }
@@ -5690,7 +5832,7 @@ class H extends Y {
5690
5832
  comment: e.comment,
5691
5833
  ...t
5692
5834
  };
5693
- 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 te(p.data), i);
5835
+ 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 re(p.data), i);
5694
5836
  }
5695
5837
  /**
5696
5838
  * Устанавливает признак основного контактного лица.
@@ -5719,7 +5861,7 @@ class H extends Y {
5719
5861
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5720
5862
  }
5721
5863
  }
5722
- class pi extends h {
5864
+ class ai extends h {
5723
5865
  /**
5724
5866
  * Выполняет проверку занят ли указанный номер телефона.
5725
5867
  *
@@ -5733,7 +5875,7 @@ class pi extends h {
5733
5875
  });
5734
5876
  }
5735
5877
  }
5736
- class hi {
5878
+ class vi {
5737
5879
  /**
5738
5880
  * Инициализирует экземпляр класса {@link VersionConfig}.
5739
5881
  *
@@ -5752,11 +5894,11 @@ class hi {
5752
5894
  * Текущая версия приложения.
5753
5895
  */
5754
5896
  s(this, "version");
5755
- this.date = D(r == null ? void 0 : r.date) ? R(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";
5897
+ this.date = O(r == null ? void 0 : r.date) ? I(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";
5756
5898
  }
5757
5899
  }
5758
- var Ds = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Ds || {});
5759
- class gi extends h {
5900
+ var As = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(As || {});
5901
+ class wi extends h {
5760
5902
  /**
5761
5903
  * Возвращает настройки указанного конфигуратора для указанной категории.
5762
5904
  *
@@ -5786,7 +5928,7 @@ class gi extends h {
5786
5928
  const o = this.get(
5787
5929
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5788
5930
  { params: t, client_id: e },
5789
- (u) => new N(u.data)
5931
+ (u) => new q(u.data)
5790
5932
  );
5791
5933
  return o.catch((u) => {
5792
5934
  this.errorResponseHandler(u, i);
@@ -5847,7 +5989,7 @@ class gi extends h {
5847
5989
  });
5848
5990
  }
5849
5991
  }
5850
- class Rs {
5992
+ class Ss {
5851
5993
  /**
5852
5994
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5853
5995
  *
@@ -5865,7 +6007,7 @@ class Rs {
5865
6007
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5866
6008
  }
5867
6009
  }
5868
- class fi extends Rs {
6010
+ class Ci extends Ss {
5869
6011
  /**
5870
6012
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5871
6013
  *
@@ -5896,7 +6038,7 @@ class fi extends Rs {
5896
6038
  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;
5897
6039
  }
5898
6040
  }
5899
- class mi {
6041
+ class Di {
5900
6042
  /**
5901
6043
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5902
6044
  *
@@ -5948,7 +6090,7 @@ class m {
5948
6090
  * @param date Дата.
5949
6091
  */
5950
6092
  static endOfHalfYear(r) {
5951
- return x(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
6093
+ return L(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
5952
6094
  }
5953
6095
  /**
5954
6096
  * Возвращает дату, сдвинутую на указанное число полугодий.
@@ -5957,7 +6099,7 @@ class m {
5957
6099
  * @param amount Смещение в полугодиях, может быть отрицательным.
5958
6100
  */
5959
6101
  static addHalfYears(r, e) {
5960
- return $(r, e * 6);
6102
+ return A(r, e * 6);
5961
6103
  }
5962
6104
  /**
5963
6105
  * Возвращает интервал «сдвинутый период до такой же даты»: от начала сдвинутого периода до конца дня
@@ -5969,8 +6111,8 @@ class m {
5969
6111
  * @param date Опорная дата.
5970
6112
  */
5971
6113
  static intervalTillSameDate(r, e, t) {
5972
- const i = Bt(U(t), U(r)), o = U($(e, i)), c = Math.min(Nr(t), Wt(o));
5973
- return { from: he(e), to: W(zt(o, c)) };
6114
+ const i = Yt(U(t), U(r)), o = U(A(e, i)), c = Math.min(Hr(t), Qt(o));
6115
+ return { from: he(e), to: W(Vt(o, c)) };
5974
6116
  }
5975
6117
  /**
5976
6118
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -5979,8 +6121,8 @@ class m {
5979
6121
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
5980
6122
  */
5981
6123
  static weekTillSameWeekday(r, e) {
5982
- const t = X(mr(r, e), { weekStartsOn: 1 }), i = Ke(r, X(r, { weekStartsOn: 1 }));
5983
- return { from: t, to: W(Z(t, i)) };
6124
+ const t = K(Cr(r, e), { weekStartsOn: 1 }), i = rr(r, K(r, { weekStartsOn: 1 }));
6125
+ return { from: t, to: W(X(t, i)) };
5984
6126
  }
5985
6127
  /**
5986
6128
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -5990,8 +6132,8 @@ class m {
5990
6132
  * @param shift Смещение в декадах, может быть отрицательным.
5991
6133
  */
5992
6134
  static decadeTillSameDayNumber(r, e) {
5993
- const [t] = m.shiftedDecadeBounds(r, 0), i = Ke(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Ke(c, o) + 1;
5994
- return { from: o, to: W(Z(o, Math.min(i, u) - 1)) };
6135
+ const [t] = m.shiftedDecadeBounds(r, 0), i = rr(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = rr(c, o) + 1;
6136
+ return { from: o, to: W(X(o, Math.min(i, u) - 1)) };
5995
6137
  }
5996
6138
  /**
5997
6139
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6000,52 +6142,38 @@ class m {
6000
6142
  * @param shift Смещение в декадах, может быть отрицательным.
6001
6143
  */
6002
6144
  static shiftedDecadeBounds(r, e) {
6003
- const t = Nr(r);
6145
+ const t = Hr(r);
6004
6146
  let i = 2;
6005
6147
  t <= 10 ? i = 0 : t <= 20 && (i = 1);
6006
- const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), g = Z(p, u * 10), y = u === 2 ? x(p) : W(Z(g, 9));
6148
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U(A(r, c)), g = X(p, u * 10), y = u === 2 ? L(p) : W(X(g, 9));
6007
6149
  return [g, y];
6008
6150
  }
6009
6151
  }
6010
- class Dr {
6011
- /**
6012
- * Преобразует значение даты из данных ответа в дату.
6013
- * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
6014
- *
6015
- * @param value Значение даты: дата, строка в формате ISO или пустое значение.
6016
- */
6017
- static parse(r) {
6018
- if (a(r))
6019
- return;
6020
- const e = D(r) ? R(r) : r;
6021
- return jt(e) ? e : void 0;
6022
- }
6023
- }
6024
- class yi {
6152
+ class Pi {
6025
6153
  /**
6026
6154
  * Возвращает предустановленные диапазоны дат.
6027
6155
  *
6028
6156
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6029
6157
  */
6030
6158
  static defaultDateRanges(r) {
6031
- const e = Gt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = le(r === void 0 ? t : new Date(r, 0, 1)), o = Te(i);
6159
+ const e = Jt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = le(r === void 0 ? t : new Date(r, 0, 1)), o = de(i);
6032
6160
  return {
6033
6161
  // 'Следующий рабочий день' - это значение по-умолчанию
6034
6162
  nextWorkingDay: { label: "Следующий рабочий день", from: he(e), to: W(e) },
6035
- today: { label: "Сегодня", from: fr(), to: Jt() },
6036
- yesterday: { label: "Вчера", from: Vt(), to: Qt() },
6037
- tomorrow: { label: "Завтра", from: Et(), to: Yt() },
6038
- currentWeek: { label: "Неделя", from: X(t, { weekStartsOn: 1 }), to: de(t, { weekStartsOn: 1 }) },
6039
- currentMonth: { label: "Месяц", from: U(t), to: x(t) },
6040
- oneMonth: { label: "1 месяц", from: i, to: x(i) },
6041
- threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
6042
- nineMonths: { label: "9 месяцев", from: i, to: x($(i, 8)) },
6043
- firstQuarter: { label: "I квартал", from: i, to: x($(i, 2)) },
6044
- secondQuarter: { label: "II квартал", from: $(i, 3), to: x($(i, 5)) },
6045
- thirdQuarter: { label: "III квартал", from: $(i, 6), to: x($(i, 8)) },
6046
- fourthQuarter: { label: "IV квартал", from: $(i, 9), to: x($(i, 11)) },
6047
- firstHalfYear: { label: "I полугодие", from: i, to: x($(i, 5)) },
6048
- secondHalfYear: { label: "II полугодие", from: $(i, 6), to: o },
6163
+ today: { label: "Сегодня", from: wr(), to: rs() },
6164
+ yesterday: { label: "Вчера", from: es(), to: Zt() },
6165
+ tomorrow: { label: "Завтра", from: Xt(), to: Kt() },
6166
+ currentWeek: { label: "Неделя", from: K(t, { weekStartsOn: 1 }), to: Ae(t, { weekStartsOn: 1 }) },
6167
+ currentMonth: { label: "Месяц", from: U(t), to: L(t) },
6168
+ oneMonth: { label: "1 месяц", from: i, to: L(i) },
6169
+ threeMonths: { label: "3 месяца", from: i, to: L(A(i, 2)) },
6170
+ nineMonths: { label: "9 месяцев", from: i, to: L(A(i, 8)) },
6171
+ firstQuarter: { label: "I квартал", from: i, to: L(A(i, 2)) },
6172
+ secondQuarter: { label: "II квартал", from: A(i, 3), to: L(A(i, 5)) },
6173
+ thirdQuarter: { label: "III квартал", from: A(i, 6), to: L(A(i, 8)) },
6174
+ fourthQuarter: { label: "IV квартал", from: A(i, 9), to: L(A(i, 11)) },
6175
+ firstHalfYear: { label: "I полугодие", from: i, to: L(A(i, 5)) },
6176
+ secondHalfYear: { label: "II полугодие", from: A(i, 6), to: o },
6049
6177
  currentYear: { label: "12 месяцев", from: i, to: o }
6050
6178
  };
6051
6179
  }
@@ -6057,23 +6185,23 @@ class yi {
6057
6185
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6058
6186
  */
6059
6187
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
6060
- const e = { weekStartsOn: 1 }, t = he(r), i = W(r), o = m.decadeInterval(r), c = U(r), u = Se(r), p = m.startOfHalfYear(r), g = le(r), y = m.addHalfYears(r, -1), P = m.addHalfYears(r, 1);
6188
+ const e = { weekStartsOn: 1 }, t = he(r), i = W(r), o = m.decadeInterval(r), c = U(r), u = Se(r), p = m.startOfHalfYear(r), g = le(r), y = m.addHalfYears(r, -1), D = m.addHalfYears(r, 1);
6061
6189
  return {
6062
- yesterday: { label: "Вчера", group: "day", from: he(Xe(r, 1)), to: W(Xe(r, 1)) },
6190
+ yesterday: { label: "Вчера", group: "day", from: he(tr(r, 1)), to: W(tr(r, 1)) },
6063
6191
  today: { label: "Сегодня", group: "day", from: t, to: i },
6064
- tomorrow: { label: "Завтра", group: "day", from: he(Z(r, 1)), to: W(Z(r, 1)) },
6065
- lastWeek: { label: "Прошлая неделя", group: "week", from: X(Ur(r, 1), e), to: de(Ur(r, 1), e) },
6066
- thisWeek: { label: "Эта неделя", group: "week", from: X(r, e), to: de(r, e) },
6067
- nextWeek: { label: "Следующая неделя", group: "week", from: X(mr(r, 1), e), to: de(mr(r, 1), e) },
6192
+ tomorrow: { label: "Завтра", group: "day", from: he(X(r, 1)), to: W(X(r, 1)) },
6193
+ lastWeek: { label: "Прошлая неделя", group: "week", from: K(Br(r, 1), e), to: Ae(Br(r, 1), e) },
6194
+ thisWeek: { label: "Эта неделя", group: "week", from: K(r, e), to: Ae(r, e) },
6195
+ nextWeek: { label: "Следующая неделя", group: "week", from: K(Cr(r, 1), e), to: Ae(Cr(r, 1), e) },
6068
6196
  lastTenDays: { label: "Прошлая декада", group: "decade", ...m.shiftDecadeInterval(r, -1) },
6069
6197
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6070
6198
  nextTenDays: { label: "Следующая декада", group: "decade", ...m.shiftDecadeInterval(r, 1) },
6071
- lastMonth: { label: "Прошлый месяц", group: "month", from: U(sr(r, 1)), to: x(sr(r, 1)) },
6072
- thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6073
- nextMonth: { label: "Следующий месяц", group: "month", from: U($(r, 1)), to: x($(r, 1)) },
6074
- lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(tr(r, 1)), to: Me(tr(r, 1)) },
6075
- thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Me(r) },
6076
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(er(r, 1)), to: Me(er(r, 1)) },
6199
+ lastMonth: { label: "Прошлый месяц", group: "month", from: U(cr(r, 1)), to: L(cr(r, 1)) },
6200
+ thisMonth: { label: "Этот месяц", group: "month", from: c, to: L(r) },
6201
+ nextMonth: { label: "Следующий месяц", group: "month", from: U(A(r, 1)), to: L(A(r, 1)) },
6202
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(or(r, 1)), to: Be(or(r, 1)) },
6203
+ thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Be(r) },
6204
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(ir(r, 1)), to: Be(ir(r, 1)) },
6077
6205
  lastHalfYear: {
6078
6206
  label: "Прошлое полугодие",
6079
6207
  group: "halfYear",
@@ -6081,22 +6209,22 @@ class yi {
6081
6209
  to: m.endOfHalfYear(y)
6082
6210
  },
6083
6211
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: m.endOfHalfYear(r) },
6084
- nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(P), to: m.endOfHalfYear(P) },
6085
- lastYear: { label: "Прошлый год", group: "year", from: le(rr(r, 1)), to: Te(rr(r, 1)) },
6086
- thisYear: { label: "Этот год", group: "year", from: g, to: Te(r) },
6087
- nextYear: { label: "Следующий год", group: "year", from: le(Ze(r, 1)), to: Te(Ze(r, 1)) },
6088
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: X(r, e), to: i },
6212
+ nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(D), to: m.endOfHalfYear(D) },
6213
+ lastYear: { label: "Прошлый год", group: "year", from: le(nr(r, 1)), to: de(nr(r, 1)) },
6214
+ thisYear: { label: "Этот год", group: "year", from: g, to: de(r) },
6215
+ nextYear: { label: "Следующий год", group: "year", from: le(sr(r, 1)), to: de(sr(r, 1)) },
6216
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: K(r, e), to: i },
6089
6217
  fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6090
6218
  fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6091
6219
  fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6092
6220
  fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6093
6221
  fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6094
- tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: de(r, e) },
6222
+ tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: Ae(r, e) },
6095
6223
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6096
- tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
6097
- tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Me(r) },
6224
+ tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: L(r) },
6225
+ tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Be(r) },
6098
6226
  tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: t, to: m.endOfHalfYear(r) },
6099
- tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Te(r) },
6227
+ tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: de(r) },
6100
6228
  lastWeekTillSameWeekDay: { label: "Прошлая неделя, до такого же дня недели", group: "other", section: "lastTillSame", ...m.weekTillSameWeekday(r, -1) },
6101
6229
  lastTenDaysTillSameDayNumber: {
6102
6230
  label: "Прошлая декада, до такого же номера дня",
@@ -6108,13 +6236,13 @@ class yi {
6108
6236
  label: "Прошлый месяц, до такой же даты",
6109
6237
  group: "other",
6110
6238
  section: "lastTillSame",
6111
- ...m.intervalTillSameDate(c, U(sr(r, 1)), r)
6239
+ ...m.intervalTillSameDate(c, U(cr(r, 1)), r)
6112
6240
  },
6113
6241
  lastQuarterTillSameDate: {
6114
6242
  label: "Прошлый квартал, до такой же даты",
6115
6243
  group: "other",
6116
6244
  section: "lastTillSame",
6117
- ...m.intervalTillSameDate(u, Se(tr(r, 1)), r)
6245
+ ...m.intervalTillSameDate(u, Se(or(r, 1)), r)
6118
6246
  },
6119
6247
  lastHalfYearTillSameDate: {
6120
6248
  label: "Прошлое полугодие, до такой же даты",
@@ -6126,7 +6254,7 @@ class yi {
6126
6254
  label: "Прошлый год, до такой же даты",
6127
6255
  group: "other",
6128
6256
  section: "lastTillSame",
6129
- ...m.intervalTillSameDate(g, le(rr(r, 1)), r)
6257
+ ...m.intervalTillSameDate(g, le(nr(r, 1)), r)
6130
6258
  },
6131
6259
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6132
6260
  nextTenDaysTillSameDayNumber: {
@@ -6139,32 +6267,32 @@ class yi {
6139
6267
  label: "Следующий месяц, до такой же даты",
6140
6268
  group: "other",
6141
6269
  section: "nextTillSame",
6142
- ...m.intervalTillSameDate(c, U($(r, 1)), r)
6270
+ ...m.intervalTillSameDate(c, U(A(r, 1)), r)
6143
6271
  },
6144
6272
  nextQuarterTillSameDate: {
6145
6273
  label: "Следующий квартал, до такой же даты",
6146
6274
  group: "other",
6147
6275
  section: "nextTillSame",
6148
- ...m.intervalTillSameDate(u, Se(er(r, 1)), r)
6276
+ ...m.intervalTillSameDate(u, Se(ir(r, 1)), r)
6149
6277
  },
6150
6278
  nextHalfYearTillSameDate: {
6151
6279
  label: "Следующее полугодие, до такой же даты",
6152
6280
  group: "other",
6153
6281
  section: "nextTillSame",
6154
- ...m.intervalTillSameDate(p, m.startOfHalfYear(P), r)
6282
+ ...m.intervalTillSameDate(p, m.startOfHalfYear(D), r)
6155
6283
  },
6156
6284
  nextYearTillSameDate: {
6157
6285
  label: "Следующий год, до такой же даты",
6158
6286
  group: "other",
6159
6287
  section: "nextTillSame",
6160
- ...m.intervalTillSameDate(g, le(Ze(r, 1)), r)
6288
+ ...m.intervalTillSameDate(g, le(sr(r, 1)), r)
6161
6289
  },
6162
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: he(Xe(r, 6)), to: i },
6163
- next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: W(Z(r, 6)) }
6290
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: he(tr(r, 6)), to: i },
6291
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: W(X(r, 6)) }
6164
6292
  };
6165
6293
  }
6166
6294
  }
6167
- const ai = [
6295
+ const Ri = [
6168
6296
  { key: "day", label: "День" },
6169
6297
  { key: "week", label: "Неделя" },
6170
6298
  { key: "decade", label: "Декада" },
@@ -6173,14 +6301,14 @@ const ai = [
6173
6301
  { key: "halfYear", label: "Полугодие" },
6174
6302
  { key: "year", label: "Год" },
6175
6303
  { key: "other", label: "Прочее" }
6176
- ], wi = [
6304
+ ], bi = [
6177
6305
  { key: "fromBeginning", label: "С начала периода" },
6178
6306
  { key: "tillEnd", label: "До конца периода" },
6179
6307
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
6180
6308
  { key: "nextTillSame", label: "Следующие, до такой же даты" },
6181
6309
  { key: "rollingDays", label: "7 дней" }
6182
6310
  ];
6183
- class Ct {
6311
+ class Tt {
6184
6312
  /**
6185
6313
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6186
6314
  *
@@ -6196,7 +6324,7 @@ class Ct {
6196
6324
  */
6197
6325
  static getProductMultiplicity(r) {
6198
6326
  var e, t;
6199
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Ct.productIsMeasurable(r) ? r.properties.minCount : 1;
6327
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Tt.productIsMeasurable(r) ? r.properties.minCount : 1;
6200
6328
  }
6201
6329
  /**
6202
6330
  * Возвращает кратность длины для указанного товара.
@@ -6218,7 +6346,7 @@ const me = class me extends h {
6218
6346
  * Время кэширования данных ответов на запросы (секунд).
6219
6347
  */
6220
6348
  s(this, "responseDataCacheTimeout");
6221
- this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
6349
+ this.responseDataCacheTimeout = S().config.http.responseDataCacheTimeout;
6222
6350
  }
6223
6351
  /**
6224
6352
  * Возвращает кэшированные данные.
@@ -6240,7 +6368,7 @@ const me = class me extends h {
6240
6368
  */
6241
6369
  cacheResponse(e, t) {
6242
6370
  me.responseDataCache.set(e, {
6243
- validTo: Kt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6371
+ validTo: ts(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6244
6372
  val: t
6245
6373
  });
6246
6374
  }
@@ -6256,7 +6384,7 @@ const me = class me extends h {
6256
6384
  */
6257
6385
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6258
6386
  getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
6259
- const u = t + (ee(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? me.getCachedResponse(u) : void 0;
6387
+ const u = t + (Z(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? me.getCachedResponse(u) : void 0;
6260
6388
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6261
6389
  }
6262
6390
  };
@@ -6264,17 +6392,17 @@ const me = class me extends h {
6264
6392
  * Кэш результатов запросов.
6265
6393
  */
6266
6394
  s(me, "responseDataCache", /* @__PURE__ */ new Map());
6267
- let qe = me;
6268
- function vi(n, r) {
6395
+ let Ne = me;
6396
+ function Ti(n, r) {
6269
6397
  const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6270
6398
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6271
6399
  }
6272
- class Ci {
6400
+ class di {
6273
6401
  /**
6274
6402
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6275
6403
  */
6276
6404
  static generateUndefinedManagerInstance() {
6277
- return new K({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6405
+ return new J({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6278
6406
  }
6279
6407
  /**
6280
6408
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -6285,15 +6413,15 @@ class Ci {
6285
6413
  return r.id === 0 && r.guid === "-undefined-";
6286
6414
  }
6287
6415
  }
6288
- class Dt extends qe {
6416
+ class dt extends Ne {
6289
6417
  /**
6290
6418
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6291
6419
  */
6292
6420
  async getManagers() {
6293
- const r = "/internal/managers", e = qe.getCachedResponse(r);
6421
+ const r = "/internal/managers", e = Ne.getCachedResponse(r);
6294
6422
  if (e)
6295
6423
  return e;
6296
- const t = await this.get(r), i = _.instanceListInitializer(K, t.data);
6424
+ const t = await this.get(r), i = x.instanceListInitializer(J, t.data);
6297
6425
  return this.cacheResponse(r, i), i;
6298
6426
  }
6299
6427
  /**
@@ -6304,11 +6432,11 @@ class Dt extends qe {
6304
6432
  * @see /doc/api/internal#/operations/api_internal_managers_get
6305
6433
  */
6306
6434
  getManager(r) {
6307
- return this.get(`/internal/managers/${r}`, {}, (e) => new K(e.data));
6435
+ return this.get(`/internal/managers/${r}`, {}, (e) => new J(e.data));
6308
6436
  }
6309
6437
  }
6310
6438
  var Oe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Oe || {});
6311
- class Ps {
6439
+ class $s {
6312
6440
  /**
6313
6441
  * Инициализирует экземпляр класса {@link OfferActualization}.
6314
6442
  *
@@ -6331,7 +6459,7 @@ class Ps {
6331
6459
  * @inheritDoc
6332
6460
  */
6333
6461
  s(this, "error");
6334
- this.status = (r == null ? void 0 : r.status) ?? Oe.Processing, this.actualizedAt = Dr.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = Dr.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
6462
+ this.status = (r == null ? void 0 : r.status) ?? Oe.Processing, this.actualizedAt = Q.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = Q.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
6335
6463
  }
6336
6464
  /**
6337
6465
  * @inheritDoc
@@ -6364,7 +6492,7 @@ class Ps {
6364
6492
  return this.status === Oe.Completed && !this.isOutdatedAt(r);
6365
6493
  }
6366
6494
  }
6367
- class Rt extends G {
6495
+ class At extends Ye {
6368
6496
  /**
6369
6497
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6370
6498
  *
@@ -6376,10 +6504,6 @@ class Rt extends G {
6376
6504
  * @inheritDoc
6377
6505
  */
6378
6506
  s(this, "name");
6379
- /**
6380
- * @inheritDoc
6381
- */
6382
- s(this, "createdAt");
6383
6507
  /**
6384
6508
  * @inheritDoc
6385
6509
  */
@@ -6400,10 +6524,10 @@ class Rt extends G {
6400
6524
  * @inheritDoc
6401
6525
  */
6402
6526
  s(this, "file");
6403
- this.name = e == null ? void 0 : e.name, this.createdAt = Dr.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new ne(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new Ps(e.actualization), this.file = e == null ? void 0 : e.file;
6527
+ this.name = e == null ? void 0 : e.name, this.client = new ne(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new $s(e.actualization), this.file = e == null ? void 0 : e.file;
6404
6528
  }
6405
6529
  }
6406
- class bs extends kr {
6530
+ class ks extends xr {
6407
6531
  /**
6408
6532
  * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
6409
6533
  *
@@ -6439,10 +6563,10 @@ class bs extends kr {
6439
6563
  * @inheritDoc
6440
6564
  */
6441
6565
  get isOrderable() {
6442
- return !this.isProductStub && !this.isIgnored && ee(this.lineError);
6566
+ return !this.isProductStub && !this.isIgnored && Z(this.lineError);
6443
6567
  }
6444
6568
  }
6445
- class M extends Rt {
6569
+ class M extends At {
6446
6570
  /**
6447
6571
  * Инициализирует экземпляр класса {@link Offer}.
6448
6572
  *
@@ -6459,11 +6583,11 @@ class M extends Rt {
6459
6583
  */
6460
6584
  s(this, "products");
6461
6585
  this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
6462
- (t) => e.isProfstroy ? new bs(t) : new kr(t)
6586
+ (t) => e.isProfstroy ? new ks(t) : new xr(t)
6463
6587
  );
6464
6588
  }
6465
6589
  }
6466
- class Di extends Ne {
6590
+ class Ai extends Ue {
6467
6591
  /**
6468
6592
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6469
6593
  *
@@ -6486,8 +6610,8 @@ class Di extends Ne {
6486
6610
  /**
6487
6611
  * @inheritDoc
6488
6612
  */
6489
- s(this, "createdAt", new T());
6490
- 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);
6613
+ s(this, "createdAt", new b());
6614
+ 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 b(e == null ? void 0 : e.createdAt);
6491
6615
  }
6492
6616
  /**
6493
6617
  * @inheritDoc
@@ -6504,9 +6628,9 @@ class Di extends Ne {
6504
6628
  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;
6505
6629
  }
6506
6630
  }
6507
- class Ee extends v {
6631
+ class Ke extends w {
6508
6632
  }
6509
- class Pt extends vt {
6633
+ class St extends bt {
6510
6634
  /**
6511
6635
  * Инициализирует экземпляр класса {@link OrderInfo}.
6512
6636
  *
@@ -6573,13 +6697,13 @@ class Pt extends vt {
6573
6697
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
6574
6698
  }, this.delivery = {
6575
6699
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
6576
- date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6700
+ date: O((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? I(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6577
6701
  address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Ie(e.delivery.address) : void 0,
6578
- warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Ue(e.delivery.warehouse) : void 0
6579
- }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Ee(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new v(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = D(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !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;
6702
+ warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Me(e.delivery.warehouse) : void 0
6703
+ }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Ke(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = O(e == null ? void 0 : e.attachedAt) ? I(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !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;
6580
6704
  }
6581
6705
  }
6582
- class As extends nt {
6706
+ class Ls extends ut {
6583
6707
  /**
6584
6708
  * Инициализирует экземпляр класса {@link OrderItem}.
6585
6709
  *
@@ -6636,10 +6760,10 @@ class As extends nt {
6636
6760
  * Продукт, которым заменена текущая запись.
6637
6761
  */
6638
6762
  s(this, "replacement");
6639
- this.product = new J(e.product), this.currency = new j(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 = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6763
+ this.product = new ye(e.product), this.currency = new E(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 = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6640
6764
  }
6641
6765
  }
6642
- class I extends Pt {
6766
+ class k extends St {
6643
6767
  /**
6644
6768
  * Инициализирует экземпляр класса {@link Order}.
6645
6769
  *
@@ -6703,11 +6827,11 @@ class I extends Pt {
6703
6827
  this.products = (e.products ?? []).map((i) => {
6704
6828
  var c;
6705
6829
  const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
6706
- return new As(i, o);
6707
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? je.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new v(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new Ee(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6830
+ return new Ls(i, o);
6831
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ge.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 Ke(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6708
6832
  }
6709
6833
  }
6710
- class Ri extends Y {
6834
+ class Si extends j {
6711
6835
  /**
6712
6836
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6713
6837
  *
@@ -6719,7 +6843,7 @@ class Ri extends Y {
6719
6843
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
6720
6844
  */
6721
6845
  getOffers(r, e, t, i = void 0) {
6722
- return this.getTypedPaginated(Rt, "/internal/orders/offers", r, e, t, {}, void 0, i);
6846
+ return this.getTypedPaginated(At, "/internal/orders/offers", r, e, t, {}, void 0, i);
6723
6847
  }
6724
6848
  /**
6725
6849
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -6823,15 +6947,15 @@ class Ri extends Y {
6823
6947
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
6824
6948
  */
6825
6949
  createOrderFromDraft(r, e, t, i = {}) {
6826
- const o = k().config.dateFormats.api;
6950
+ const o = S().config.dateFormats.api;
6827
6951
  return this.post(
6828
6952
  `/internal/orders/offers/${r}/create-order`,
6829
6953
  {
6830
6954
  ...e,
6831
- deliveryDate: e.deliveryDate ? L(e.deliveryDate, o) : void 0,
6955
+ deliveryDate: e.deliveryDate ? $(e.deliveryDate, o) : void 0,
6832
6956
  items: t != null && t.length ? t : void 0
6833
6957
  },
6834
- (c) => _.instanceListInitializer(I, c.data),
6958
+ (c) => x.instanceListInitializer(k, c.data),
6835
6959
  i
6836
6960
  );
6837
6961
  }
@@ -6943,7 +7067,7 @@ class Ri extends Y {
6943
7067
  return this.post(`/internal/orders/offers/${r}/send`, e);
6944
7068
  }
6945
7069
  }
6946
- class Pi {
7070
+ class $i {
6947
7071
  /**
6948
7072
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
6949
7073
  *
@@ -6962,8 +7086,8 @@ class Pi {
6962
7086
  return !a(r) && r.isProfstroy === !0 && !a(r.actualization);
6963
7087
  }
6964
7088
  }
6965
- var Ts = /* @__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))(Ts || {});
6966
- class bi {
7089
+ var Os = /* @__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))(Os || {});
7090
+ class ki {
6967
7091
  /**
6968
7092
  * Инициализирует экземпляр класса {@link OrderEditorData}.
6969
7093
  *
@@ -7030,11 +7154,11 @@ class bi {
7030
7154
  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;
7031
7155
  }
7032
7156
  }
7033
- class bt extends v {
7157
+ class $t extends w {
7034
7158
  }
7035
- class At extends v {
7159
+ class kt extends w {
7036
7160
  }
7037
- class Ai extends Ne {
7161
+ class Li extends Ue {
7038
7162
  /**
7039
7163
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7040
7164
  *
@@ -7062,7 +7186,7 @@ class Ai extends Ne {
7062
7186
  /**
7063
7187
  * @inheritDoc
7064
7188
  */
7065
- s(this, "createdAt", new T());
7189
+ s(this, "createdAt", new b());
7066
7190
  /**
7067
7191
  * @inheritDoc
7068
7192
  */
@@ -7070,7 +7194,7 @@ class Ai extends Ne {
7070
7194
  /**
7071
7195
  * @inheritDoc
7072
7196
  */
7073
- s(this, "deliveryDate", new T());
7197
+ s(this, "deliveryDate", new b());
7074
7198
  /**
7075
7199
  * @inheritDoc
7076
7200
  */
@@ -7098,7 +7222,7 @@ class Ai extends Ne {
7098
7222
  /**
7099
7223
  * @inheritDoc
7100
7224
  */
7101
- s(this, "attachedAt", new T());
7225
+ s(this, "attachedAt", new b());
7102
7226
  /**
7103
7227
  * @inheritDoc
7104
7228
  */
@@ -7135,7 +7259,7 @@ class Ai extends Ne {
7135
7259
  * @inheritDoc
7136
7260
  */
7137
7261
  s(this, "onlyMyRegions");
7138
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new K(u) : new bt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new ne(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 q(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 ve(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 F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new V(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new At(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Ue(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7262
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new J(u) : new $t(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new ne(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new b(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 we(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 b(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new V(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new kt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7139
7263
  }
7140
7264
  /**
7141
7265
  * @inheritDoc
@@ -7186,7 +7310,7 @@ class Ai extends Ne {
7186
7310
  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;
7187
7311
  }
7188
7312
  }
7189
- class ds {
7313
+ class Is {
7190
7314
  /**
7191
7315
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7192
7316
  *
@@ -7209,10 +7333,10 @@ class ds {
7209
7333
  * @inheritDoc
7210
7334
  */
7211
7335
  s(this, "createdAt");
7212
- this.user = new q(r == null ? void 0 : r.user), this.status = new Ee(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = D(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7336
+ this.user = new _(r == null ? void 0 : r.user), this.status = new Ke(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = O(r == null ? void 0 : r.createdAt) ? I(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7213
7337
  }
7214
7338
  }
7215
- class Ti extends Y {
7339
+ class Oi extends j {
7216
7340
  /**
7217
7341
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7218
7342
  *
@@ -7224,7 +7348,7 @@ class Ti extends Y {
7224
7348
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7225
7349
  */
7226
7350
  getOrders(r, e, t, i = void 0) {
7227
- return this.getTypedPaginated(Pt, "/internal/orders", r, e, t, {}, void 0, i);
7351
+ return this.getTypedPaginated(St, "/internal/orders", r, e, t, {}, void 0, i);
7228
7352
  }
7229
7353
  /**
7230
7354
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -7237,7 +7361,7 @@ class Ti extends Y {
7237
7361
  getOrdersCount(r, e = void 0) {
7238
7362
  return this.get(
7239
7363
  "/internal/orders/count",
7240
- r ? { filters: JSON.stringify((r instanceof re ? r : new re(r)).toPrimitive()) } : {},
7364
+ r ? { filters: JSON.stringify((r instanceof ee ? r : new ee(r)).toPrimitive()) } : {},
7241
7365
  void 0,
7242
7366
  void 0,
7243
7367
  e
@@ -7260,7 +7384,7 @@ class Ti extends Y {
7260
7384
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
7261
7385
  */
7262
7386
  getOrder(r) {
7263
- return this.get(`/internal/orders/${r}`, {}, (e) => new I(e.data));
7387
+ return this.get(`/internal/orders/${r}`, {}, (e) => new k(e.data));
7264
7388
  }
7265
7389
  /**
7266
7390
  * Создаёт заказы клиента из содержимого корзины текущего пользователя.
@@ -7279,15 +7403,15 @@ class Ti extends Y {
7279
7403
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
7280
7404
  */
7281
7405
  createClientOrder(r, e, t, i = {}) {
7282
- const o = k().config.dateFormats.api;
7406
+ const o = S().config.dateFormats.api;
7283
7407
  return this.post(
7284
7408
  `/internal/clients/${r}/orders`,
7285
7409
  {
7286
7410
  ...e,
7287
- deliveryDate: L(e.deliveryDate, o),
7411
+ deliveryDate: $(e.deliveryDate, o),
7288
7412
  items: t != null && t.length ? t : void 0
7289
7413
  },
7290
- (c) => _.instanceListInitializer(I, c.data),
7414
+ (c) => x.instanceListInitializer(k, c.data),
7291
7415
  i
7292
7416
  );
7293
7417
  }
@@ -7299,7 +7423,7 @@ class Ti extends Y {
7299
7423
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
7300
7424
  */
7301
7425
  attachOrder(r) {
7302
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new I(e.data));
7426
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new k(e.data));
7303
7427
  }
7304
7428
  /**
7305
7429
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -7309,7 +7433,7 @@ class Ti extends Y {
7309
7433
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
7310
7434
  */
7311
7435
  detachOrder(r) {
7312
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new I(e.data));
7436
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new k(e.data));
7313
7437
  }
7314
7438
  /**
7315
7439
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -7320,7 +7444,7 @@ class Ti extends Y {
7320
7444
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
7321
7445
  */
7322
7446
  mergeOrders(r, e) {
7323
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new I(t.data));
7447
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new k(t.data));
7324
7448
  }
7325
7449
  /**
7326
7450
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -7330,7 +7454,7 @@ class Ti extends Y {
7330
7454
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
7331
7455
  */
7332
7456
  recalculateOrder(r) {
7333
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new I(e.data));
7457
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new k(e.data));
7334
7458
  }
7335
7459
  /**
7336
7460
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -7354,14 +7478,14 @@ class Ti extends Y {
7354
7478
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
7355
7479
  */
7356
7480
  updateOrder(r, e, t = {}) {
7357
- const i = k().config.dateFormats.api;
7481
+ const i = S().config.dateFormats.api;
7358
7482
  return this.patch(
7359
7483
  `/internal/orders/${r}`,
7360
7484
  {
7361
7485
  ...e,
7362
- deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
7486
+ deliveryDate: e.deliveryDate ? $(e.deliveryDate, i) : void 0
7363
7487
  },
7364
- (o) => new I(o.data),
7488
+ (o) => new k(o.data),
7365
7489
  t
7366
7490
  );
7367
7491
  }
@@ -7391,7 +7515,7 @@ class Ti extends Y {
7391
7515
  is_additional_sale: e.isAdditionalSale,
7392
7516
  ...e.configuratorParams
7393
7517
  },
7394
- (i) => new I(i.data),
7518
+ (i) => new k(i.data),
7395
7519
  t
7396
7520
  );
7397
7521
  }
@@ -7414,7 +7538,7 @@ class Ti extends Y {
7414
7538
  status: e,
7415
7539
  statusDetail: t
7416
7540
  },
7417
- (o) => new I(o.data),
7541
+ (o) => new k(o.data),
7418
7542
  i
7419
7543
  );
7420
7544
  }
@@ -7428,7 +7552,7 @@ class Ti extends Y {
7428
7552
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
7429
7553
  */
7430
7554
  changeOrderStatusDetail(r, e) {
7431
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new I(t.data));
7555
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new k(t.data));
7432
7556
  }
7433
7557
  /**
7434
7558
  * Возвращает историю изменения статусов заказа.
@@ -7438,7 +7562,7 @@ class Ti extends Y {
7438
7562
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7439
7563
  */
7440
7564
  getOrderStatusHistory(r) {
7441
- return this.getTypedList(ds, `/internal/orders/${r}/history`);
7565
+ return this.getTypedList(Is, `/internal/orders/${r}/history`);
7442
7566
  }
7443
7567
  /**
7444
7568
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7482,7 +7606,7 @@ class Ti extends Y {
7482
7606
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
7483
7607
  */
7484
7608
  changeAttachedOperator(r, e) {
7485
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new I(t.data));
7609
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new k(t.data));
7486
7610
  }
7487
7611
  /**
7488
7612
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -7492,7 +7616,7 @@ class Ti extends Y {
7492
7616
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
7493
7617
  */
7494
7618
  deleteOrderAttachedFile(r) {
7495
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new I(e.data));
7619
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new k(e.data));
7496
7620
  }
7497
7621
  /**
7498
7622
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -7503,7 +7627,7 @@ class Ti extends Y {
7503
7627
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
7504
7628
  */
7505
7629
  deleteOrderProduct(r, e) {
7506
- return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new I(t.data));
7630
+ return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new k(t.data));
7507
7631
  }
7508
7632
  /**
7509
7633
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -7532,7 +7656,7 @@ class Ti extends Y {
7532
7656
  is_additional_sale: t.isAdditionalSale,
7533
7657
  ...t.configuratorParams
7534
7658
  },
7535
- (o) => new I(o.data),
7659
+ (o) => new k(o.data),
7536
7660
  i
7537
7661
  );
7538
7662
  }
@@ -7567,11 +7691,11 @@ class Ti extends Y {
7567
7691
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
7568
7692
  */
7569
7693
  getDeliveryCost(r, e, t, i = void 0) {
7570
- const o = k().config.dateFormats.api;
7694
+ const o = S().config.dateFormats.api;
7571
7695
  return this.get(
7572
7696
  `/internal/orders/delivery/${r}/cost`,
7573
7697
  {
7574
- date: L(e, o),
7698
+ date: $(e, o),
7575
7699
  warehouse_id: t
7576
7700
  },
7577
7701
  (c) => c.data,
@@ -7580,8 +7704,8 @@ class Ti extends Y {
7580
7704
  );
7581
7705
  }
7582
7706
  }
7583
- const di = Symbol("currentOrder");
7584
- class ur {
7707
+ const Ii = Symbol("currentOrder");
7708
+ class mr {
7585
7709
  /**
7586
7710
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
7587
7711
  *
@@ -7608,12 +7732,12 @@ class ur {
7608
7732
  * Источник клиентской цены.
7609
7733
  */
7610
7734
  s(this, "source");
7611
- this.client = new ne(r == null ? void 0 : r.client), this.product = new N(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) ?? $r.Product;
7735
+ this.client = new ne(r == null ? void 0 : r.client), this.product = new q(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) ?? Ir.Product;
7612
7736
  }
7613
7737
  }
7614
- const pr = (n) => {
7738
+ const yr = (n) => {
7615
7739
  var r, e, t, i, o;
7616
- return n ? Zr(
7740
+ return n ? it(
7617
7741
  {
7618
7742
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
7619
7743
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -7622,13 +7746,13 @@ const pr = (n) => {
7622
7746
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
7623
7747
  hideNotActive: n.hideNotActive
7624
7748
  },
7625
- (c) => a(c) || (z(c) || Ar(c)) && ee(c)
7749
+ (c) => a(c) || (z(c) || $r(c)) && Z(c)
7626
7750
  ) : {};
7627
- }, Yr = (n) => {
7751
+ }, Kr = (n) => {
7628
7752
  const r = {};
7629
7753
  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;
7630
7754
  };
7631
- class Si extends h {
7755
+ class xi extends h {
7632
7756
  /**
7633
7757
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7634
7758
  *
@@ -7642,10 +7766,10 @@ class Si extends h {
7642
7766
  return this.get(
7643
7767
  `/internal/price/products/${r}/analyze`,
7644
7768
  {
7645
- ...Yr(e),
7646
- filters: pr(t)
7769
+ ...Kr(e),
7770
+ filters: yr(t)
7647
7771
  },
7648
- (i) => _.instanceListInitializer(ur, i.data)
7772
+ (i) => x.instanceListInitializer(mr, i.data)
7649
7773
  );
7650
7774
  }
7651
7775
  /**
@@ -7661,10 +7785,10 @@ class Si extends h {
7661
7785
  return this.get(
7662
7786
  `/internal/price/categories/${r}/analyze`,
7663
7787
  {
7664
- ...Yr(e),
7665
- filters: pr(t)
7788
+ ...Kr(e),
7789
+ filters: yr(t)
7666
7790
  },
7667
- (i) => _.instanceListInitializer(ur, i.data)
7791
+ (i) => x.instanceListInitializer(mr, i.data)
7668
7792
  );
7669
7793
  }
7670
7794
  /**
@@ -7683,13 +7807,13 @@ class Si extends h {
7683
7807
  `/internal/price/categories/${r}/analyze/square`,
7684
7808
  {
7685
7809
  ...e,
7686
- filters: pr(t)
7810
+ filters: yr(t)
7687
7811
  },
7688
- (i) => _.instanceListInitializer(ur, i.data)
7812
+ (i) => x.instanceListInitializer(mr, i.data)
7689
7813
  );
7690
7814
  }
7691
7815
  }
7692
- class Ss {
7816
+ class xs {
7693
7817
  /**
7694
7818
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7695
7819
  *
@@ -7736,10 +7860,10 @@ class Ss {
7736
7860
  * @inheritDoc
7737
7861
  */
7738
7862
  s(this, "currency");
7739
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = D(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new _e(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
7863
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = O(r.costDate) ? I(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new qe(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 E(r.currency) : void 0;
7740
7864
  }
7741
7865
  }
7742
- class $s extends _e {
7866
+ class _s extends qe {
7743
7867
  /**
7744
7868
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7745
7869
  *
@@ -7751,10 +7875,10 @@ class $s extends _e {
7751
7875
  * @inheritDoc
7752
7876
  */
7753
7877
  s(this, "history");
7754
- this.history = De(e.history, (t) => new Ss(t));
7878
+ this.history = De(e.history, (t) => new xs(t));
7755
7879
  }
7756
7880
  }
7757
- class $i extends h {
7881
+ class _i extends h {
7758
7882
  /**
7759
7883
  * Возвращает данные об истории изменения цен.
7760
7884
  *
@@ -7764,21 +7888,21 @@ class $i extends h {
7764
7888
  */
7765
7889
  getProductPriceHistory(r) {
7766
7890
  var o, c, u, p, g;
7767
- const e = k().config.dateFormats.api, t = Zr(
7891
+ const e = S().config.dateFormats.api, t = it(
7768
7892
  xe(r, {
7769
7893
  costDate: {
7770
- from: gr((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7771
- to: gr((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7894
+ from: vr((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7895
+ to: vr((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7772
7896
  }
7773
7897
  }),
7774
- (y) => a(y) || (z(y) || Ar(y)) && ee(y)
7898
+ (y) => a(y) || (z(y) || $r(y)) && Z(y)
7775
7899
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7776
7900
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7777
- new $s(xe(y[0], { history: y }))
7901
+ new _s(xe(y[0], { history: y }))
7778
7902
  ]);
7779
7903
  }
7780
7904
  }
7781
- class Er {
7905
+ class Xr {
7782
7906
  /**
7783
7907
  * Инициализирует экземпляр класса {@link RecommendationsList}.
7784
7908
  *
@@ -7793,10 +7917,10 @@ class Er {
7793
7917
  * Список рекомендованных категорий продуктов.
7794
7918
  */
7795
7919
  s(this, "productCategories", []);
7796
- r != null && r.products && (this.products = r.products.map((e) => new _e(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new _e(e)));
7920
+ r != null && r.products && (this.products = r.products.map((e) => new qe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new qe(e)));
7797
7921
  }
7798
7922
  }
7799
- class ki extends h {
7923
+ class qi extends h {
7800
7924
  /**
7801
7925
  * Возвращает данные о рекомендациях указанной категории продуктов.
7802
7926
  *
@@ -7804,7 +7928,7 @@ class ki extends h {
7804
7928
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
7805
7929
  */
7806
7930
  getProductCategoryRecommendations(r) {
7807
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Er(e.data));
7931
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Xr(e.data));
7808
7932
  }
7809
7933
  /**
7810
7934
  * Возвращает данные о рекомендациях указанного продукта.
@@ -7813,7 +7937,7 @@ class ki extends h {
7813
7937
  * @see /docs/api#/operations/api_internal_recommendations_product_get
7814
7938
  */
7815
7939
  getProductRecommendations(r) {
7816
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Er(e.data));
7940
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Xr(e.data));
7817
7941
  }
7818
7942
  /**
7819
7943
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -7842,12 +7966,12 @@ class ki extends h {
7842
7966
  });
7843
7967
  }
7844
7968
  }
7845
- var ks = /* @__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))(ks || {}), Ls = /* @__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))(Ls || {});
7846
- class Os extends v {
7969
+ var qs = /* @__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))(qs || {}), Ns = /* @__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))(Ns || {});
7970
+ class Us extends w {
7847
7971
  }
7848
- class Is extends v {
7972
+ class Fs extends w {
7849
7973
  }
7850
- class Qr extends v {
7974
+ class Zr extends w {
7851
7975
  /**
7852
7976
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
7853
7977
  *
@@ -7860,18 +7984,18 @@ class Qr extends v {
7860
7984
  * @inheritDoc
7861
7985
  */
7862
7986
  s(this, "userRegions");
7863
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ye(i))) ?? [];
7987
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Je(i))) ?? [];
7864
7988
  }
7865
7989
  }
7866
- class xs extends v {
7990
+ class Ms extends w {
7867
7991
  }
7868
- class _s extends v {
7992
+ class Hs extends w {
7869
7993
  }
7870
- class qs extends v {
7994
+ class Bs extends w {
7871
7995
  }
7872
- class Ns extends v {
7996
+ class Ws extends w {
7873
7997
  }
7874
- class Li {
7998
+ class Ni {
7875
7999
  /**
7876
8000
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
7877
8001
  *
@@ -7890,9 +8014,9 @@ class Li {
7890
8014
  return r.id === 0 && r.slug === "-undefined-";
7891
8015
  }
7892
8016
  }
7893
- class Tt extends v {
8017
+ class Lt extends w {
7894
8018
  }
7895
- const B = class B extends qe {
8019
+ const B = class B extends Ne {
7896
8020
  /**
7897
8021
  * Исключает из списка записей справочника местоположений служебную запись
7898
8022
  * неизвестного региона или города.
@@ -7910,32 +8034,32 @@ const B = class B extends qe {
7910
8034
  * и использовать в случае аналогичных запросов.
7911
8035
  */
7912
8036
  getReference(r, e = !1) {
7913
- return this.getTypedDataArrayRequester(Os, `/internal/references/${r}`, e);
8037
+ return this.getTypedDataArrayRequester(Us, `/internal/references/${r}`, e);
7914
8038
  }
7915
8039
  /**
7916
8040
  * Возвращает {@link Promise} для получения справочника данных о канале
7917
8041
  * первичного интереса.
7918
8042
  */
7919
8043
  getChannelPrimaryInterest() {
7920
- return this.getTypedDataArrayRequester(at, "/internal/references/channel-primary-interest", !0);
8044
+ return this.getTypedDataArrayRequester(Pt, "/internal/references/channel-primary-interest", !0);
7921
8045
  }
7922
8046
  /**
7923
8047
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
7924
8048
  */
7925
8049
  getContactPositions() {
7926
- return this.getTypedDataArrayRequester(xs, "/internal/references/contact-position", !0);
8050
+ return this.getTypedDataArrayRequester(Ms, "/internal/references/contact-position", !0);
7927
8051
  }
7928
8052
  /**
7929
8053
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
7930
8054
  */
7931
8055
  getCuratedDirection() {
7932
- return this.getTypedDataArrayRequester(Or, "/internal/references/curated-direction", !0);
8056
+ return this.getTypedDataArrayRequester(qr, "/internal/references/curated-direction", !0);
7933
8057
  }
7934
8058
  /**
7935
8059
  * Возвращает {@link Promise} для получения справочника списка валют.
7936
8060
  */
7937
8061
  getCurrency() {
7938
- return this.getTypedDataArrayRequester(j, "/public/references/currency", !0);
8062
+ return this.getTypedDataArrayRequester(E, "/public/references/currency", !0);
7939
8063
  }
7940
8064
  /**
7941
8065
  * Возвращает {@link Promise} для получения справочника данных
@@ -7948,43 +8072,43 @@ const B = class B extends qe {
7948
8072
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
7949
8073
  */
7950
8074
  getOpf() {
7951
- return this.getTypedDataArrayRequester(se, "/public/references/opf", !0);
8075
+ return this.getTypedDataArrayRequester(te, "/public/references/opf", !0);
7952
8076
  }
7953
8077
  /**
7954
8078
  * Возвращает {@link Promise} для получения справочника операторов.
7955
8079
  */
7956
8080
  getOperators() {
7957
- return this.getTypedDataArrayRequester(bt, "/internal/references/operator", !0);
8081
+ return this.getTypedDataArrayRequester($t, "/internal/references/operator", !0);
7958
8082
  }
7959
8083
  /**
7960
8084
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
7961
8085
  */
7962
8086
  getOrderPaymentStatuses() {
7963
- return this.getTypedDataArrayRequester(_s, "/public/references/order-payment-status", !0);
8087
+ return this.getTypedDataArrayRequester(Hs, "/public/references/order-payment-status", !0);
7964
8088
  }
7965
8089
  /**
7966
8090
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
7967
8091
  */
7968
8092
  getOrderStatuses() {
7969
- return this.getTypedDataArrayRequester(Ee, "/internal/references/order-status", !0);
8093
+ return this.getTypedDataArrayRequester(Ke, "/internal/references/order-status", !0);
7970
8094
  }
7971
8095
  /**
7972
8096
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
7973
8097
  */
7974
8098
  getOrderStatusDetails() {
7975
- return this.getTypedDataArrayRequester(qs, "/internal/references/order-status-detail", !0);
8099
+ return this.getTypedDataArrayRequester(Bs, "/internal/references/order-status-detail", !0);
7976
8100
  }
7977
8101
  /**
7978
8102
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
7979
8103
  */
7980
8104
  getPaymentTypes() {
7981
- return this.getTypedDataArrayRequester(At, "/public/references/payment-type", !0);
8105
+ return this.getTypedDataArrayRequester(kt, "/public/references/payment-type", !0);
7982
8106
  }
7983
8107
  /**
7984
8108
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
7985
8109
  */
7986
8110
  getResourceTypes() {
7987
- return this.getTypedDataArrayRequester(Tt, "/internal/references/resource-type", !0);
8111
+ return this.getTypedDataArrayRequester(Lt, "/internal/references/resource-type", !0);
7988
8112
  }
7989
8113
  /**
7990
8114
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -7996,7 +8120,7 @@ const B = class B extends qe {
7996
8120
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
7997
8121
  */
7998
8122
  getSourcePrimaryInterest() {
7999
- return this.getTypedDataArrayRequester(wt, "/internal/references/source-primary-interest", !0);
8123
+ return this.getTypedDataArrayRequester(Rt, "/internal/references/source-primary-interest", !0);
8000
8124
  }
8001
8125
  /**
8002
8126
  * Выполняет поиск данных о городах по терму в названии.
@@ -8004,7 +8128,7 @@ const B = class B extends qe {
8004
8128
  * @param term Терм поиска.
8005
8129
  */
8006
8130
  searchCity(r) {
8007
- return this.getTypedDataArrayRequester(ve, `/internal/references/city-with-region-and-country/search?term=${r}`);
8131
+ return this.getTypedDataArrayRequester(we, `/internal/references/city-with-region-and-country/search?term=${r}`);
8008
8132
  }
8009
8133
  /**
8010
8134
  * Выполняет поиск данных о регионах по терму в названии.
@@ -8012,7 +8136,7 @@ const B = class B extends qe {
8012
8136
  * @param term Терм поиска.
8013
8137
  */
8014
8138
  searchRegion(r) {
8015
- return this.getTypedDataArrayRequester(we, `/internal/references/region-with-country/search?term=${r}`);
8139
+ return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
8016
8140
  }
8017
8141
  /**
8018
8142
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -8022,7 +8146,7 @@ const B = class B extends qe {
8022
8146
  * @param countryId Идентификатор страны.
8023
8147
  */
8024
8148
  getRegionsByCountry(r) {
8025
- return this.getTypedDataArrayRequester(we, "/internal/references/region", !1, { params: { countryId: r } }).then(
8149
+ return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
8026
8150
  (e) => B.withoutUnknownLocation(e)
8027
8151
  );
8028
8152
  }
@@ -8034,7 +8158,7 @@ const B = class B extends qe {
8034
8158
  * @param regionId Идентификатор региона.
8035
8159
  */
8036
8160
  getCitiesByRegion(r) {
8037
- return this.getTypedDataArrayRequester(Is, "/internal/references/city", !1, { params: { regionId: r } }).then(
8161
+ return this.getTypedDataArrayRequester(Fs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8038
8162
  (e) => B.withoutUnknownLocation(e)
8039
8163
  );
8040
8164
  }
@@ -8045,7 +8169,7 @@ const B = class B extends qe {
8045
8169
  * @param regionId Идентификатор региона.
8046
8170
  */
8047
8171
  getCitiesWithUserRegionByRegion(r) {
8048
- return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8172
+ return this.getTypedDataArrayRequester(Zr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8049
8173
  (e) => B.withoutUnknownLocation(e)
8050
8174
  );
8051
8175
  }
@@ -8059,7 +8183,7 @@ const B = class B extends qe {
8059
8183
  */
8060
8184
  searchCityWithRegion(r, e, t = void 0) {
8061
8185
  return this.getTypedDataArrayRequester(
8062
- ve,
8186
+ we,
8063
8187
  "/internal/references/city-with-region/search",
8064
8188
  !1,
8065
8189
  { term: r, ...e ? { params: { countryId: e } } : {} },
@@ -8074,7 +8198,7 @@ const B = class B extends qe {
8074
8198
  * @param signal Сигнал отмены запроса.
8075
8199
  */
8076
8200
  searchCityWithUserRegion(r, e = void 0) {
8077
- return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8201
+ return this.getTypedDataArrayRequester(Zr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8078
8202
  (t) => B.withoutUnknownLocation(t)
8079
8203
  );
8080
8204
  }
@@ -8096,25 +8220,25 @@ const B = class B extends qe {
8096
8220
  * Возвращает {@link Promise} для получения справочника складов.
8097
8221
  */
8098
8222
  getWarehouses() {
8099
- return this.getTypedDataArrayRequester(Ue, "/public/references/warehouse", !0);
8223
+ return this.getTypedDataArrayRequester(Me, "/public/references/warehouse", !0);
8100
8224
  }
8101
8225
  /**
8102
8226
  * Возвращает {@link Promise} для получения справочника типов свойств.
8103
8227
  */
8104
8228
  getPropertyTypes() {
8105
- return this.getTypedDataArrayRequester(ht, "/internal/references/property-type", !0);
8229
+ return this.getTypedDataArrayRequester(at, "/internal/references/property-type", !0);
8106
8230
  }
8107
8231
  /**
8108
8232
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
8109
8233
  */
8110
8234
  getPriceCoefficients() {
8111
- return this.getTypedDataArrayRequester(Ge, "/internal/references/price-coefficient", !0);
8235
+ return this.getTypedDataArrayRequester(Fe, "/internal/references/price-coefficient", !0);
8112
8236
  }
8113
8237
  /**
8114
8238
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
8115
8239
  */
8116
8240
  getProductFileType() {
8117
- return this.getTypedDataArrayRequester(Ns, "/public/references/product-file-type", !0);
8241
+ return this.getTypedDataArrayRequester(Ws, "/public/references/product-file-type", !0);
8118
8242
  }
8119
8243
  };
8120
8244
  /**
@@ -8122,9 +8246,9 @@ const B = class B extends qe {
8122
8246
  * обозначающих неизвестное местоположение.
8123
8247
  */
8124
8248
  s(B, "unknownLocationId", 1);
8125
- let d = B;
8126
- const S = ie("common.references_private", () => {
8127
- 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), g = w(void 0), y = w(void 0), P = w(void 0), be = w(void 0), Ae = w(void 0), oe = w(void 0), ce = w(void 0), Qe = w(void 0), Ve = w(void 0), Je = w(void 0), l = w(void 0);
8249
+ let T = B;
8250
+ const d = se("common.references_private", () => {
8251
+ const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), y = v(void 0), D = v(void 0), be = v(void 0), Te = v(void 0), oe = v(void 0), ce = v(void 0), Xe = v(void 0), Ze = v(void 0), er = v(void 0), l = v(void 0);
8128
8252
  return {
8129
8253
  /**
8130
8254
  * Список загружаемых/загруженных на данный момент значений.
@@ -8173,7 +8297,7 @@ const S = ie("common.references_private", () => {
8173
8297
  /**
8174
8298
  * Справочник типов оплаты заказов.
8175
8299
  */
8176
- paymentTypeReference: P,
8300
+ paymentTypeReference: D,
8177
8301
  /**
8178
8302
  * Справочник групп партнеров.
8179
8303
  */
@@ -8181,7 +8305,7 @@ const S = ie("common.references_private", () => {
8181
8305
  /**
8182
8306
  * Справочник типов файлов продукктов/категорий.
8183
8307
  */
8184
- productFileTypeReference: Ae,
8308
+ productFileTypeReference: Te,
8185
8309
  /**
8186
8310
  * Справочник типов ресурсов.
8187
8311
  */
@@ -8193,114 +8317,114 @@ const S = ie("common.references_private", () => {
8193
8317
  /**
8194
8318
  * Справочник источников первичного интереса.
8195
8319
  */
8196
- sourcePrimaryInterestReference: Qe,
8320
+ sourcePrimaryInterestReference: Xe,
8197
8321
  /**
8198
8322
  * Справочник складов.
8199
8323
  */
8200
- warehousesReference: Ve,
8324
+ warehousesReference: Ze,
8201
8325
  /**
8202
8326
  * Справочник типов свойств.
8203
8327
  */
8204
- propertyTypesReference: Je,
8328
+ propertyTypesReference: er,
8205
8329
  /**
8206
8330
  * Справочник коэффициентов цен.
8207
8331
  */
8208
8332
  priceCoefficientsReference: l
8209
8333
  };
8210
- }), Oi = ie("common.references", () => {
8211
- const n = A(() => {
8212
- const l = S();
8213
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8334
+ }), Ui = se("common.references", () => {
8335
+ const n = R(() => {
8336
+ const l = d();
8337
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((f) => {
8214
8338
  l.channelPrimaryInterestReference = f;
8215
8339
  }).catch(C)), l.channelPrimaryInterestReference;
8216
- }), r = A(() => {
8217
- const l = S();
8218
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
8340
+ }), r = R(() => {
8341
+ const l = d();
8342
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((f) => {
8219
8343
  l.contactPositionsReference = f;
8220
8344
  }).catch(C)), l.contactPositionsReference;
8221
- }), e = A(() => {
8222
- const l = S();
8223
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
8345
+ }), e = R(() => {
8346
+ const l = d();
8347
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((f) => {
8224
8348
  l.currencyReference = f;
8225
8349
  }).catch(C)), l.currencyReference;
8226
- }), t = A(() => {
8227
- const l = S();
8228
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8350
+ }), t = R(() => {
8351
+ const l = d();
8352
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((f) => {
8229
8353
  l.opfReference = f;
8230
8354
  }).catch(C)), l.opfReference;
8231
- }), i = A(() => {
8232
- const l = S();
8233
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
8355
+ }), i = R(() => {
8356
+ const l = d();
8357
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((f) => {
8234
8358
  l.operatorReference = f;
8235
8359
  }).catch(C)), l.operatorReference;
8236
- }), o = A(() => {
8237
- const l = S();
8238
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
8360
+ }), o = R(() => {
8361
+ const l = d();
8362
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((f) => {
8239
8363
  l.orderPaymentStatusReference = f;
8240
8364
  }).catch(C)), l.orderPaymentStatusReference;
8241
- }), c = A(() => {
8242
- const l = S();
8243
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
8365
+ }), c = R(() => {
8366
+ const l = d();
8367
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((f) => {
8244
8368
  l.orderStatusReference = f;
8245
8369
  }).catch(C)), l.orderStatusReference;
8246
- }), u = A(() => {
8247
- const l = S();
8248
- return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
8370
+ }), u = R(() => {
8371
+ const l = d();
8372
+ return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((f) => {
8249
8373
  l.orderStatusDetailReference = f;
8250
8374
  }).catch(C)), l.orderStatusDetailReference;
8251
- }), p = A(() => {
8252
- const l = S();
8253
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
8375
+ }), p = R(() => {
8376
+ const l = d();
8377
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((f) => {
8254
8378
  l.paymentTypeReference = f;
8255
8379
  }).catch(C)), l.paymentTypeReference;
8256
- }), g = A(() => {
8257
- const l = S();
8258
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
8380
+ }), g = R(() => {
8381
+ const l = d();
8382
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((f) => {
8259
8383
  l.partnerGroupReference = f;
8260
8384
  }).catch(C)), l.partnerGroupReference;
8261
- }), y = A(() => {
8262
- const l = S();
8263
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8385
+ }), y = R(() => {
8386
+ const l = d();
8387
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((f) => {
8264
8388
  l.productFileTypeReference = f;
8265
8389
  }).catch(C)), l.productFileTypeReference;
8266
- }), P = A(() => {
8267
- const l = S();
8268
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8390
+ }), D = R(() => {
8391
+ const l = d();
8392
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((f) => {
8269
8393
  l.resourceTypesReference = f;
8270
8394
  }).catch(C)), l.resourceTypesReference;
8271
- }), be = A(() => {
8272
- const l = S();
8273
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8395
+ }), be = R(() => {
8396
+ const l = d();
8397
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((f) => {
8274
8398
  l.salesDirectionsReference = f;
8275
8399
  }).catch(C)), l.salesDirectionsReference;
8276
- }), Ae = A(() => {
8277
- const l = S();
8278
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8400
+ }), Te = R(() => {
8401
+ const l = d();
8402
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((f) => {
8279
8403
  l.sourcePrimaryInterestReference = f;
8280
8404
  }).catch(C)), l.sourcePrimaryInterestReference;
8281
- }), oe = A(() => {
8282
- const l = S();
8283
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8405
+ }), oe = R(() => {
8406
+ const l = d();
8407
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((f) => {
8284
8408
  l.deliveryTypeReference = f;
8285
8409
  }).catch(C)), l.deliveryTypeReference;
8286
- }), ce = A(() => {
8287
- const l = S();
8288
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((f) => {
8410
+ }), ce = R(() => {
8411
+ const l = d();
8412
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(dt).getManagers().then((f) => {
8289
8413
  l.managersList = f;
8290
8414
  }).catch(C)), l.managersList;
8291
- }), Qe = A(() => {
8292
- const l = S();
8293
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8415
+ }), Xe = R(() => {
8416
+ const l = d();
8417
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((f) => {
8294
8418
  l.warehousesReference = f;
8295
8419
  }).catch(C)), l.warehousesReference;
8296
- }), Ve = A(() => {
8297
- const l = S();
8298
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8420
+ }), Ze = R(() => {
8421
+ const l = d();
8422
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((f) => {
8299
8423
  l.propertyTypesReference = f;
8300
8424
  }).catch(C)), l.propertyTypesReference;
8301
- }), Je = A(() => {
8302
- const l = S();
8303
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8425
+ }), er = R(() => {
8426
+ const l = d();
8427
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((f) => {
8304
8428
  l.priceCoefficientsReference = f;
8305
8429
  }).catch(C)), l.priceCoefficientsReference;
8306
8430
  });
@@ -8352,7 +8476,7 @@ const S = ie("common.references_private", () => {
8352
8476
  /**
8353
8477
  * Справочник типов ресурсов.
8354
8478
  */
8355
- resourceTypesReference: P,
8479
+ resourceTypesReference: D,
8356
8480
  /**
8357
8481
  * Справочник направлений продаж.
8358
8482
  */
@@ -8360,7 +8484,7 @@ const S = ie("common.references_private", () => {
8360
8484
  /**
8361
8485
  * Справочник каналов первичного интереса.
8362
8486
  */
8363
- sourcePrimaryInterestsReference: Ae,
8487
+ sourcePrimaryInterestsReference: Te,
8364
8488
  /**
8365
8489
  * Справочник типов доставки.
8366
8490
  */
@@ -8372,18 +8496,18 @@ const S = ie("common.references_private", () => {
8372
8496
  /**
8373
8497
  * Справочник складов.
8374
8498
  */
8375
- warehousesReference: Qe,
8499
+ warehousesReference: Xe,
8376
8500
  /**
8377
8501
  * Справочник типов свойств.
8378
8502
  */
8379
- propertyTypesReference: Ve,
8503
+ propertyTypesReference: Ze,
8380
8504
  /**
8381
8505
  * Справочник коэффициентов цен.
8382
8506
  */
8383
- priceCoefficientsReference: Je
8507
+ priceCoefficientsReference: er
8384
8508
  };
8385
8509
  });
8386
- class Us {
8510
+ class zs {
8387
8511
  /**
8388
8512
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8389
8513
  *
@@ -8401,7 +8525,7 @@ class Us {
8401
8525
  this.name = r.name, this.content = r.content;
8402
8526
  }
8403
8527
  }
8404
- class Vr {
8528
+ class et {
8405
8529
  /**
8406
8530
  * Инициализирует экземпляр класса {@link Seo}.
8407
8531
  *
@@ -8441,10 +8565,10 @@ class Vr {
8441
8565
  */
8442
8566
  s(this, "tags");
8443
8567
  var e;
8444
- this.resourceType = new Tt(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 Us(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8568
+ this.resourceType = new Lt(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 zs(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8445
8569
  }
8446
8570
  }
8447
- class Ii extends h {
8571
+ class Fi extends h {
8448
8572
  /**
8449
8573
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8450
8574
  *
@@ -8452,7 +8576,7 @@ class Ii extends h {
8452
8576
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
8453
8577
  */
8454
8578
  getResourceSeoData(r, e) {
8455
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Vr(t.data));
8579
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new et(t.data));
8456
8580
  }
8457
8581
  /**
8458
8582
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -8463,7 +8587,7 @@ class Ii extends h {
8463
8587
  * в случае ошибок в запросах.
8464
8588
  */
8465
8589
  saveResourceSeoData(r, e = {}) {
8466
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Vr(t.data), e);
8590
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new et(t.data), e);
8467
8591
  }
8468
8592
  /**
8469
8593
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -8475,7 +8599,7 @@ class Ii extends h {
8475
8599
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8476
8600
  }
8477
8601
  }
8478
- class xi extends h {
8602
+ class Mi extends h {
8479
8603
  /**
8480
8604
  * Возвращает подсказки по адресам.
8481
8605
  *
@@ -8522,8 +8646,8 @@ class xi extends h {
8522
8646
  });
8523
8647
  }
8524
8648
  }
8525
- var dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(dt || {});
8526
- class Fs extends pt {
8649
+ var Ot = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Ot || {});
8650
+ class Es extends yt {
8527
8651
  /**
8528
8652
  * Инициализирует экземпляр класса {@link User}.
8529
8653
  *
@@ -8547,15 +8671,15 @@ class Fs extends pt {
8547
8671
  * Роль ценообразования текущего пользователя.
8548
8672
  */
8549
8673
  s(this, "pricingRole");
8550
- 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 lt(e.pricingRole) : void 0;
8674
+ 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 gt(e.pricingRole) : void 0;
8551
8675
  }
8552
8676
  }
8553
- class _i extends h {
8677
+ class Hi extends h {
8554
8678
  /**
8555
8679
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8556
8680
  */
8557
8681
  constructor() {
8558
- super(), this.baseUrl = `${k().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8682
+ super(), this.baseUrl = `${S().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8559
8683
  }
8560
8684
  /**
8561
8685
  * Функция для получения обновленных токенов доступа.
@@ -8566,17 +8690,17 @@ class _i extends h {
8566
8690
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8567
8691
  }
8568
8692
  }
8569
- class Ms extends h {
8693
+ class js extends h {
8570
8694
  /**
8571
8695
  * Возвращает данные о текущем пользователе.
8572
8696
  */
8573
8697
  // eslint-disable-next-line class-methods-use-this
8574
8698
  getCurrentUser() {
8575
- return this.get("/internal/users/info", {}, (r) => new Fs(r.data), !0);
8699
+ return this.get("/internal/users/info", {}, (r) => new Es(r.data), !0);
8576
8700
  }
8577
8701
  }
8578
- const Rr = ie("common.user_state_private", () => {
8579
- const n = w({}), r = w(void 0), e = w(void 0);
8702
+ const dr = se("common.user_state_private", () => {
8703
+ const n = v({}), r = v(void 0), e = v(void 0);
8580
8704
  return {
8581
8705
  /**
8582
8706
  * Список загружаемых/загруженных на данный момент значений.
@@ -8592,23 +8716,23 @@ const Rr = ie("common.user_state_private", () => {
8592
8716
  currentManager: e
8593
8717
  };
8594
8718
  });
8595
- function Jr(n) {
8596
- const r = Rr();
8597
- (n == null ? void 0 : n.type) !== dt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Dt).getManager(n.id).then((e) => {
8719
+ function rt(n) {
8720
+ const r = dr();
8721
+ (n == null ? void 0 : n.type) !== Ot.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(dt).getManager(n.id).then((e) => {
8598
8722
  r.currentManager = e;
8599
8723
  }).catch(C).finally(() => {
8600
8724
  r.dataLoaderList.currentManager = !1;
8601
8725
  }));
8602
8726
  }
8603
- const qi = ie("common.user_state", () => {
8604
- const n = A(() => {
8605
- const e = Rr();
8606
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(Ms).getCurrentUser().then((t) => {
8607
- e.currentUser = t, Jr(t);
8727
+ const Bi = se("common.user_state", () => {
8728
+ const n = R(() => {
8729
+ const e = dr();
8730
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(js).getCurrentUser().then((t) => {
8731
+ e.currentUser = t, rt(t);
8608
8732
  }).catch(C).finally(() => {
8609
8733
  e.dataLoaderList.currentUser = !1;
8610
8734
  })), e.currentUser;
8611
- }), r = A(() => (Jr(n.value), Rr().currentManager));
8735
+ }), r = R(() => (rt(n.value), dr().currentManager));
8612
8736
  return {
8613
8737
  /**
8614
8738
  * Данные о текущем пользователе.
@@ -8620,7 +8744,7 @@ const qi = ie("common.user_state", () => {
8620
8744
  currentManager: r
8621
8745
  };
8622
8746
  });
8623
- class Pr {
8747
+ class Ar {
8624
8748
  /**
8625
8749
  * Инициализирует экземпляр класса {@link UserRegionEmployee}.
8626
8750
  *
@@ -8635,10 +8759,10 @@ class Pr {
8635
8759
  * @inheritDoc
8636
8760
  */
8637
8761
  s(this, "salesDirection");
8638
- this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8762
+ this.user = new _(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8639
8763
  }
8640
8764
  }
8641
- class hr extends Ye {
8765
+ class ar extends Je {
8642
8766
  /**
8643
8767
  * Инициализирует экземпляр класса {@link UserRegion}.
8644
8768
  *
@@ -8655,10 +8779,10 @@ class hr extends Ye {
8655
8779
  * @inheritDoc
8656
8780
  */
8657
8781
  s(this, "users");
8658
- this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ve(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Pr(o))) ?? [];
8782
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new we(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Ar(o))) ?? [];
8659
8783
  }
8660
8784
  }
8661
- class Ni extends Ne {
8785
+ class Wi extends Ue {
8662
8786
  /**
8663
8787
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8664
8788
  *
@@ -8694,7 +8818,7 @@ class Ni extends Ne {
8694
8818
  return this;
8695
8819
  }
8696
8820
  }
8697
- class Ui extends Y {
8821
+ class zi extends j {
8698
8822
  /**
8699
8823
  * Возвращает список регионов пользователей.
8700
8824
  *
@@ -8705,7 +8829,7 @@ class Ui extends Y {
8705
8829
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
8706
8830
  */
8707
8831
  getRegionsList(r, e, t) {
8708
- return this.getTypedPaginated(Ye, "/internal/users/regions", r, e, t);
8832
+ return this.getTypedPaginated(Je, "/internal/users/regions", r, e, t);
8709
8833
  }
8710
8834
  /**
8711
8835
  * Возвращает полные данные о регионе пользователей.
@@ -8715,7 +8839,7 @@ class Ui extends Y {
8715
8839
  * @see /doc/api/internal#/operations/api_internal_user_region_get
8716
8840
  */
8717
8841
  getRegion(r) {
8718
- return this.get(`/internal/users/regions/${r}`, {}, (e) => new hr(e.data));
8842
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new ar(e.data));
8719
8843
  }
8720
8844
  /**
8721
8845
  * Создаёт новый регион пользователей.
@@ -8728,7 +8852,7 @@ class Ui extends Y {
8728
8852
  * @see /doc/api/internal#/operations/api_internal_user_region_create
8729
8853
  */
8730
8854
  createRegion(r, e = {}) {
8731
- return this.post("/internal/users/regions", r, (t) => new hr(t.data), e);
8855
+ return this.post("/internal/users/regions", r, (t) => new ar(t.data), e);
8732
8856
  }
8733
8857
  /**
8734
8858
  * Изменяет данные о регионе пользователей.
@@ -8742,7 +8866,7 @@ class Ui extends Y {
8742
8866
  * @see /doc/api/internal#/operations/api_internal_user_region_change
8743
8867
  */
8744
8868
  updateRegion(r, e, t = {}) {
8745
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new hr(i.data), t);
8869
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new ar(i.data), t);
8746
8870
  }
8747
8871
  /**
8748
8872
  * Удаляет регион пользователей.
@@ -8762,7 +8886,7 @@ class Ui extends Y {
8762
8886
  * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
8763
8887
  */
8764
8888
  getRegionEmployees(r) {
8765
- return this.getTypedList(Pr, `/internal/users/regions/${r}/users`);
8889
+ return this.getTypedList(Ar, `/internal/users/regions/${r}/users`);
8766
8890
  }
8767
8891
  /**
8768
8892
  * Закрепляет сотрудника за регионом по указанному направлению продаж.
@@ -8774,7 +8898,7 @@ class Ui extends Y {
8774
8898
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
8775
8899
  */
8776
8900
  attachRegionEmployee(r, e, t) {
8777
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Pr(i.data));
8901
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Ar(i.data));
8778
8902
  }
8779
8903
  /**
8780
8904
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -8793,7 +8917,7 @@ class Ui extends Y {
8793
8917
  });
8794
8918
  }
8795
8919
  }
8796
- class Fi {
8920
+ class Ei {
8797
8921
  /**
8798
8922
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8799
8923
  *
@@ -8817,195 +8941,201 @@ class Fi {
8817
8941
  }
8818
8942
  }
8819
8943
  export {
8820
- Os as AnyReference,
8821
- is as AppBaseConfig,
8822
- vr as BankAccount,
8823
- Y as BasePaginationProvider,
8824
- nr as BlogPost,
8825
- yr as BlogPostMediaFile,
8826
- Be as BlogPostMediaTypeEnum,
8827
- We as BlogPostPublicationStatusEnum,
8828
- ye as BlogPostShortInfo,
8829
- Qs as BlogPostsListFilters,
8830
- ar as BlogProvider,
8831
- us as CalculationTypeEnum,
8944
+ Us as AnyReference,
8945
+ us as AppBaseConfig,
8946
+ br as BankAccount,
8947
+ j as BasePaginationProvider,
8948
+ ur as BlogPost,
8949
+ Dr as BlogPostMediaFile,
8950
+ ze as BlogPostMediaTypeEnum,
8951
+ Ee as BlogPostPublicationStatusEnum,
8952
+ _e as BlogPostShortInfo,
8953
+ ei as BlogPostsListFilters,
8954
+ Pr as BlogProvider,
8955
+ ms as CalculationTypeEnum,
8832
8956
  m as CalendarHelper,
8833
8957
  $e as Cart,
8834
- Js as CartProvider,
8835
- Xs as CatalogProvider,
8836
- it as CatalogableItem,
8837
- E as Category,
8838
- ms as CategoryFilter,
8839
- Wr as CategoryFilterSetting,
8840
- fs as CategoryFilterValue,
8841
- Br as CategoryPricingRule,
8842
- at as ChannelPrimaryInterest,
8843
- Is as City,
8844
- ve as CityWithRegionAndCountry,
8845
- Qr as CityWithUserRegion,
8846
- Gr as Client,
8847
- vs as ClientAdditionalData,
8848
- ze as ClientCategory,
8958
+ ti as CartProvider,
8959
+ ii as CatalogProvider,
8960
+ lt as CatalogableItem,
8961
+ G as Category,
8962
+ Ds as CategoryFilter,
8963
+ Yr as CategoryFilterSetting,
8964
+ Cs as CategoryFilterValue,
8965
+ Gr as CategoryPricingRule,
8966
+ Pt as ChannelPrimaryInterest,
8967
+ Fs as City,
8968
+ we as CityWithRegionAndCountry,
8969
+ Zr as CityWithUserRegion,
8970
+ Jr as Client,
8971
+ Ts as ClientAdditionalData,
8972
+ je as ClientCategory,
8849
8973
  H as ClientDataProvider,
8850
- Zs as ClientPriceProvider,
8851
- ei as ClientPriceTemplateProvider,
8852
- J as ClientProduct,
8853
- si as ClientProductCategoryDataProvider,
8854
- ii as ClientProductDataProvider,
8974
+ vt as ClientPriceCatalogableItem,
8975
+ jr as ClientPriceCategory,
8976
+ gr as ClientPriceProduct,
8977
+ ni as ClientPriceProvider,
8978
+ oi as ClientPriceTemplateProvider,
8979
+ ye as ClientProduct,
8980
+ ui as ClientProductCategoryDataProvider,
8981
+ pi as ClientProductDataProvider,
8855
8982
  ne as ClientShortInfo,
8856
- ys as ClientsAdditionalDataRequestTypeEnum,
8857
- ui as ClientsListFilters,
8858
- _e as CodedIdentity,
8859
- gi as ConfiguratorProvider,
8860
- Ds as ConfiguratorsEnum,
8861
- Cr as Contact,
8862
- ct as ContactLinks,
8863
- te as ContactPerson,
8864
- Cs as ContactPersonRelated,
8865
- xs as ContactPosition,
8866
- lr as ContactRelation,
8867
- ft as ContragentBase,
8868
- je as ContragentFactory,
8869
- mt as ContragentIc,
8870
- as as ContragentPerson,
8871
- ws as ContragentUlNr,
8872
- yt as ContragentUlR,
8873
- $r as CostSourceEnum,
8983
+ Ps as ClientsAdditionalDataRequestTypeEnum,
8984
+ yi as ClientsListFilters,
8985
+ qe as CodedIdentity,
8986
+ wi as ConfiguratorProvider,
8987
+ As as ConfiguratorsEnum,
8988
+ Tr as Contact,
8989
+ ht as ContactLinks,
8990
+ re as ContactPerson,
8991
+ ds as ContactPersonRelated,
8992
+ Ms as ContactPosition,
8993
+ fr as ContactRelation,
8994
+ wt as ContragentBase,
8995
+ Ge as ContragentFactory,
8996
+ Ct as ContragentIc,
8997
+ Rs as ContragentPerson,
8998
+ bs as ContragentUlNr,
8999
+ Dt as ContragentUlR,
9000
+ Ir as CostSourceEnum,
8874
9001
  ae as Country,
8875
- Or as CuratedDirection,
8876
- Ir as Curator,
8877
- j as Currency,
8878
- xi as DataSuggestionProvider,
8879
- Dr as DateHelper,
8880
- yi as DateTimeProvider,
8881
- gt as DeletableNamedIdentity,
9002
+ Ye as CreatableIdentity,
9003
+ qr as CuratedDirection,
9004
+ Nr as Curator,
9005
+ E as Currency,
9006
+ Mi as DataSuggestionProvider,
9007
+ Q as DateHelper,
9008
+ Pi as DateTimeProvider,
9009
+ vs as DeletableIdentity,
9010
+ Ve as DeletableNamedIdentity,
8882
9011
  Ie as DeliveryAddress,
8883
9012
  V as DeliveryType,
8884
- et as DetailedJwtPayload,
8885
- es as DeviceTypeResolutionConfig,
8886
- ns as DiscountShortInfo,
8887
- Fi as FieldValidationResultData,
8888
- re as FilterGroup,
8889
- Mr as FilterItem,
8890
- dr as FilterOpEnum,
8891
- gs as FilterSettings,
8892
- st as GeoCoordinates,
8893
- cs as HiddenCatalogableItem,
8894
- qe as HttpCachedRequester,
8895
- rs as HttpParamsConfig,
9013
+ nt as DetailedJwtPayload,
9014
+ ns as DeviceTypeResolutionConfig,
9015
+ ps as DiscountShortInfo,
9016
+ Ei as FieldValidationResultData,
9017
+ ee as FilterGroup,
9018
+ zr as FilterItem,
9019
+ Lr as FilterOpEnum,
9020
+ ws as FilterSettings,
9021
+ ct as GeoCoordinates,
9022
+ gs as HiddenCatalogableItem,
9023
+ Ne as HttpCachedRequester,
9024
+ os as HttpParamsConfig,
8896
9025
  h as HttpRequester,
8897
- G as Identity,
8898
- ls as Image,
8899
- Re as JwtPayload,
8900
- K as Manager,
8901
- Lr as ManagerCommon,
8902
- Ci as ManagerDataFactory,
8903
- Dt as ManagerDataProvider,
8904
- Us as MetaTagItem,
8905
- O as NamedIdentity,
9026
+ Re as Identity,
9027
+ fs as Image,
9028
+ Pe as JwtPayload,
9029
+ J as Manager,
9030
+ _r as ManagerCommon,
9031
+ di as ManagerDataFactory,
9032
+ dt as ManagerDataProvider,
9033
+ zs as MetaTagItem,
9034
+ N as NamedIdentity,
8906
9035
  M as Offer,
8907
- Ps as OfferActualization,
9036
+ $s as OfferActualization,
8908
9037
  Oe as OfferActualizationStatus,
8909
- Pi as OfferHelper,
8910
- Rt as OfferShortInfo,
8911
- Ri as OffersDataProvider,
8912
- Di as OffersListFilters,
8913
- bt as Operator,
8914
- se as Opf,
8915
- Q as OpfEnum,
8916
- I as Order,
8917
- Ts as OrderAction,
8918
- bi as OrderEditorData,
8919
- Pt as OrderInfo,
8920
- As as OrderItem,
8921
- nt as OrderItemBase,
8922
- _s as OrderPaymentStatus,
8923
- vt as OrderShortInfo,
8924
- Ee as OrderStatus,
8925
- qs as OrderStatusDetail,
8926
- Ls as OrderStatusDetailEnum,
8927
- ks as OrderStatusEnum,
8928
- ds as OrderStatusHistoryInfo,
8929
- Ti as OrdersDataProvider,
8930
- Ai as OrdersListFilters,
8931
- Ne as PaginationFiltersBase,
9038
+ $i as OfferHelper,
9039
+ At as OfferShortInfo,
9040
+ Si as OffersDataProvider,
9041
+ Ai as OffersListFilters,
9042
+ $t as Operator,
9043
+ te as Opf,
9044
+ Y as OpfEnum,
9045
+ k as Order,
9046
+ Os as OrderAction,
9047
+ ki as OrderEditorData,
9048
+ St as OrderInfo,
9049
+ Ls as OrderItem,
9050
+ ut as OrderItemBase,
9051
+ Hs as OrderPaymentStatus,
9052
+ bt as OrderShortInfo,
9053
+ Ke as OrderStatus,
9054
+ Bs as OrderStatusDetail,
9055
+ Ns as OrderStatusDetailEnum,
9056
+ qs as OrderStatusEnum,
9057
+ Is as OrderStatusHistoryInfo,
9058
+ Oi as OrdersDataProvider,
9059
+ Li as OrdersListFilters,
9060
+ Ue as PaginationFiltersBase,
8932
9061
  Ce as PartnerGroup,
8933
- At as PaymentType,
8934
- He as PreferencesStorageProvider,
8935
- ur as PriceAnalyze,
8936
- Si as PriceAnalyzeProvider,
8937
- Ge as PriceCoefficient,
8938
- tt as PriceCoefficientEnum,
8939
- $i as PriceHistoryDataProvider,
8940
- Ss as PriceHistoryItem,
9062
+ kt as PaymentType,
9063
+ We as PreferencesStorageProvider,
9064
+ mr as PriceAnalyze,
9065
+ xi as PriceAnalyzeProvider,
9066
+ ft as PriceCatalogableItem,
9067
+ Fe as PriceCoefficient,
9068
+ ot as PriceCoefficientEnum,
9069
+ _i as PriceHistoryDataProvider,
9070
+ xs as PriceHistoryItem,
8941
9071
  ge as PriceTemplate,
8942
- or as PriceTemplateCategory,
9072
+ pr as PriceTemplateCategory,
8943
9073
  ke as PriceTemplateClient,
8944
- ut as PriceTemplateICatalogableItem,
8945
- cr as PriceTemplateProduct,
8946
- ni as PriceTemplateProvider,
9074
+ mt as PriceTemplateICatalogableItem,
9075
+ hr as PriceTemplateProduct,
9076
+ hi as PriceTemplateProvider,
8947
9077
  Le as PricingRole,
8948
- oi as PricingRoleProvider,
8949
- wr as PrimaryCatalogableItem,
8950
- N as Product,
8951
- ri as ProductCategoryDataProvider,
8952
- ti as ProductDataProvider,
8953
- Ns as ProductFileType,
8954
- ot as ProductFilterTypeEnum,
8955
- Sr as ProductPriceCoefficient,
8956
- $s as ProductPriceHistory,
8957
- Hr as ProductUnit,
8958
- bs as ProfstroyOfferItem,
8959
- ci as PropertiesProvider,
9078
+ gi as PricingRoleProvider,
9079
+ Rr as PrimaryCatalogableItem,
9080
+ q as Product,
9081
+ ci as ProductCategoryDataProvider,
9082
+ li as ProductDataProvider,
9083
+ Ws as ProductFileType,
9084
+ pt as ProductFilterTypeEnum,
9085
+ Or as ProductPriceCoefficient,
9086
+ _s as ProductPriceHistory,
9087
+ Er as ProductUnit,
9088
+ ks as ProfstroyOfferItem,
9089
+ fi as PropertiesProvider,
8960
9090
  fe as Property,
8961
- ht as PropertyType,
8962
- ps as PropertyTypeEnum,
9091
+ at as PropertyType,
9092
+ ys as PropertyTypeEnum,
8963
9093
  pe as PropertyValue,
8964
- ki as RecommendationsDataProvider,
8965
- Er as RecommendationsList,
8966
- v as Reference,
8967
- Li as ReferenceDataFactory,
8968
- d as ReferenceDataProvider,
8969
- we as Region,
8970
- Tt as ResourceType,
8971
- ai as STANDARD_PERIOD_GROUPS,
8972
- wi as STANDARD_PERIOD_SECTIONS,
9094
+ qi as RecommendationsDataProvider,
9095
+ Xr as RecommendationsList,
9096
+ w as Reference,
9097
+ Ni as ReferenceDataFactory,
9098
+ T as ReferenceDataProvider,
9099
+ ve as Region,
9100
+ Lt as ResourceType,
9101
+ Ri as STANDARD_PERIOD_GROUPS,
9102
+ bi as STANDARD_PERIOD_SECTIONS,
8973
9103
  F as SalesDirection,
8974
- ts as SentryConfig,
8975
- Vr as Seo,
8976
- Ii as SeoDataProvider,
8977
- wt as SourcePrimaryInterest,
8978
- os as StockCount,
8979
- fi as TableDataPagination,
8980
- Rs as TableDataPaginationRequestParams,
8981
- mi as TableDataSortRequestParams,
8982
- li as TemplateProductCategoryDataProvider,
8983
- Ks as TemplatesListFilters,
8984
- _ as TypedInstanceFactory,
8985
- Ct as UnitsHelper,
8986
- pi as UnknownClientDataProvider,
8987
- rt as UpdatableNamedIdentity,
8988
- Fs as User,
8989
- _i as UserAuthDataProvider,
8990
- pt as UserCommonInfo,
8991
- Ms as UserDataProvider,
8992
- lt as UserPricingRole,
8993
- hr as UserRegion,
8994
- Pr as UserRegionEmployee,
8995
- Ui as UserRegionProvider,
8996
- Ye as UserRegionShortInfo,
8997
- Ni as UserRegionsListFilters,
8998
- q as UserShortInfo,
8999
- dt as UserTypeEnum,
9000
- hi as VersionConfig,
9001
- Ue as Warehouse,
9002
- ss as WebSocketConfig,
9003
- di as currentOrderInjectionKey,
9004
- zr as findCatalogItemByIdRecursive,
9005
- jr as flattenCatalogItems,
9006
- vi as pluralize,
9007
- ir as useAuthStateStore,
9008
- k as useBaseConfigStateStore,
9009
- Oi as useReferencesStore,
9010
- qi as useUserStateStore
9104
+ cs as SentryConfig,
9105
+ et as Seo,
9106
+ Fi as SeoDataProvider,
9107
+ Rt as SourcePrimaryInterest,
9108
+ hs as StockCount,
9109
+ Ci as TableDataPagination,
9110
+ Ss as TableDataPaginationRequestParams,
9111
+ Di as TableDataSortRequestParams,
9112
+ mi as TemplateProductCategoryDataProvider,
9113
+ si as TemplatesListFilters,
9114
+ x as TypedInstanceFactory,
9115
+ Tt as UnitsHelper,
9116
+ ai as UnknownClientDataProvider,
9117
+ Qe as UpdatableNamedIdentity,
9118
+ Es as User,
9119
+ Hi as UserAuthDataProvider,
9120
+ yt as UserCommonInfo,
9121
+ js as UserDataProvider,
9122
+ gt as UserPricingRole,
9123
+ ar as UserRegion,
9124
+ Ar as UserRegionEmployee,
9125
+ zi as UserRegionProvider,
9126
+ Je as UserRegionShortInfo,
9127
+ Wi as UserRegionsListFilters,
9128
+ _ as UserShortInfo,
9129
+ Ot as UserTypeEnum,
9130
+ vi as VersionConfig,
9131
+ Me as Warehouse,
9132
+ ls as WebSocketConfig,
9133
+ Ii as currentOrderInjectionKey,
9134
+ Qr as findCatalogItemByIdRecursive,
9135
+ Vr as flattenCatalogItems,
9136
+ Ti as pluralize,
9137
+ lr as useAuthStateStore,
9138
+ S as useBaseConfigStateStore,
9139
+ Ui as useReferencesStore,
9140
+ Bi as useUserStateStore
9011
9141
  };