@snabcentr/common-lib 3.12.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var Yt = Object.defineProperty;
2
- var Vt = (i, r, e) => r in i ? Yt(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var s = (i, r, e) => Vt(i, typeof r != "symbol" ? r + "" : r, e);
1
+ var jt = Object.defineProperty;
2
+ var Yt = (i, r, e) => r in i ? jt(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var s = (i, r, e) => Yt(i, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as yt } from "jwt-decode";
5
- import { merge as Ne, isNil as m, isEmpty as Q, noop as P, mapValues as at, isArray as V, every as Qt, split as Jt, isString as I, startsWith as wt, endsWith as Kt, includes as Xt, isFunction as Er, map as R, isObject as er, isDate as rr, isError as Yr, assign as Vr, toLower as Zt, isPlainObject as es, isUndefined as Be, constant as rs, toUpper as ts, cloneDeep as ss, forEach as is, some as Qr, round as Ct, omitBy as vt } from "lodash-es";
5
+ import { merge as Ne, isNil as m, isEmpty as Q, noop as R, mapValues as at, isArray as V, every as Vt, split as Qt, isString as I, startsWith as wt, endsWith as Jt, includes as Kt, isFunction as Er, map as P, isObject as er, isDate as rr, isError as Yr, assign as Vr, toLower as Xt, isPlainObject as Zt, isUndefined as Be, constant as es, toUpper as rs, cloneDeep as ts, forEach as ss, some as Qr, round as is, omitBy as Ct } from "lodash-es";
6
6
  import { objectToCamel as Ur, objectToSnake as ns } from "ts-case-convert";
7
7
  import { defineStore as pe } from "pinia";
8
8
  import { ref as C, markRaw as os, computed as b } from "vue";
9
- import { isAfter as Jr, parseISO as _, startOfToday as Ee, isValid as Kr, format as $, endOfMonth as x, addMonths as O, differenceInCalendarMonths as cs, startOfMonth as H, getDate as Xr, getDaysInMonth as ls, endOfDay as B, startOfDay as te, setDate as us, startOfWeek as se, addWeeks as Sr, differenceInCalendarDays as je, addDays as ie, subDays as Ye, addBusinessDays as ps, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as hs, startOfTomorrow as gs, endOfYesterday as fs, startOfYesterday as ms, endOfToday as ys, startOfQuarter as Oe, endOfQuarter as Ge, addYears as gr, addQuarters as fr, subYears as mr, subQuarters as yr, subMonths as ar, subWeeks as Zr, addSeconds as as } from "date-fns";
9
+ import { isAfter as Jr, parseISO as _, startOfToday as Ee, isValid as Kr, format as S, endOfMonth as x, addMonths as O, differenceInCalendarMonths as cs, startOfMonth as H, getDate as Xr, getDaysInMonth as ls, endOfDay as B, startOfDay as te, setDate as us, startOfWeek as se, addWeeks as Sr, differenceInCalendarDays as je, addDays as ie, subDays as Ye, addBusinessDays as ps, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as hs, startOfTomorrow as gs, endOfYesterday as fs, startOfYesterday as ms, endOfToday as ys, startOfQuarter as Oe, endOfQuarter as Ge, addYears as gr, addQuarters as fr, subYears as mr, subQuarters as yr, subMonths as ar, subWeeks as Zr, addSeconds as as } from "date-fns";
10
10
  import ws, { CanceledError as Cs } from "axios";
11
11
  class be {
12
12
  /**
@@ -111,7 +111,7 @@ class be {
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class Dt extends be {
114
+ class vt extends be {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,7 +151,7 @@ class Dt extends be {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = yt(e), n = new Dt(Ur(t));
154
+ const t = yt(e), n = new vt(Ur(t));
155
155
  return n.resourceAccess = t.resource_access, n;
156
156
  }
157
157
  }
@@ -199,7 +199,7 @@ class Ds {
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 Ps {
202
+ class Rs {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -244,7 +244,7 @@ class Ps {
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class Rs {
247
+ class Ps {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -331,10 +331,10 @@ class Ts {
331
331
  */
332
332
  s(this, "numberPrecision");
333
333
  var e, t, n, o;
334
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ds(r == null ? void 0 : r.http), this.deviceTypeByResolution = new vs(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Ps({
334
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ds(r == null ? void 0 : r.http), this.deviceTypeByResolution = new vs(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Rs({
335
335
  environment: this.environment,
336
336
  ...r == null ? void 0 : r.sentry
337
- }), 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 Rs(r.websocket) : void 0, this.dateFormats = {
337
+ }), 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 Ps(r.websocket) : void 0, this.dateFormats = {
338
338
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
339
339
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
340
340
  uiDateWithTime: ((n = r == null ? void 0 : r.dateFormats) == null ? void 0 : n.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -343,7 +343,7 @@ class Ts {
343
343
  };
344
344
  }
345
345
  }
346
- const S = pe("common.config", () => {
346
+ const k = pe("common.config", () => {
347
347
  const i = C(new Ts());
348
348
  return {
349
349
  /**
@@ -494,7 +494,7 @@ const we = pe("common.auth_private", () => {
494
494
  );
495
495
  if (o)
496
496
  return Promise.resolve(o);
497
- const c = (u = S().config.devMode) == null ? void 0 : u.initAuthBearerToken;
497
+ const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
498
498
  return c ? Promise.resolve(c) : void 0;
499
499
  })()
500
500
  ), r = C(void 0), e = C(void 0), t = os(/* @__PURE__ */ new Map());
@@ -502,7 +502,7 @@ const we = pe("common.auth_private", () => {
502
502
  e.value = void 0, m(i.value) || i.value.then((o) => {
503
503
  const c = be.getJwtPayload(o);
504
504
  e.value = c.exp * 1e3 > Date.now() ? at(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
505
- }).catch(P);
505
+ }).catch(R);
506
506
  }
507
507
  return {
508
508
  /**
@@ -533,7 +533,7 @@ const we = pe("common.auth_private", () => {
533
533
  const c = o.jwtTokenUpdater();
534
534
  o.jwtToken = c, c.then((u) => {
535
535
  o.jwtToken = Promise.resolve(u), Ve.saveActualDataToStorage("sc.token", u, et(u)), o.recalculateUserPermissions();
536
- }).catch(P);
536
+ }).catch(R);
537
537
  }
538
538
  return o.jwtToken;
539
539
  });
@@ -553,20 +553,20 @@ const we = pe("common.auth_private", () => {
553
553
  !m(c.jwtToken) && m(c.userPermissions) && c.jwtToken.then((g) => {
554
554
  const a = be.getJwtPayload(g);
555
555
  c.userPermissions = a.exp * 1e3 > Date.now() ? at(a.resourceAccess, (T) => (T == null ? void 0 : T.roles) ?? []) : void 0;
556
- }).catch(P);
556
+ }).catch(R);
557
557
  const u = V(o) ? o.join(" && ") : o;
558
558
  if (c.userPermissionsComputedRefs.has(u))
559
559
  return c.userPermissionsComputedRefs.get(u);
560
560
  const p = b(() => {
561
561
  const g = (a) => {
562
562
  var ye;
563
- const T = Jt(a, ".");
563
+ const T = Qt(a, ".");
564
564
  if (T.length < 2)
565
565
  return !1;
566
566
  const [Ae, Se] = T, me = (ye = we().userPermissions) == null ? void 0 : ye[Ae];
567
567
  return V(me) && me.includes(Se);
568
568
  };
569
- return V(o) ? Qt(o, (a) => g(a)) : g(o);
569
+ return V(o) ? Vt(o, (a) => g(a)) : g(o);
570
570
  });
571
571
  return c.userPermissionsComputedRefs.set(u, p), p;
572
572
  }
@@ -669,7 +669,7 @@ class $r extends re {
669
669
  }
670
670
  }
671
671
  var Je = /* @__PURE__ */ ((i) => (i.Draft = "draft", i.Published = "published", i.Scheduled = "scheduled", i))(Je || {});
672
- class k {
672
+ class $ {
673
673
  /**
674
674
  * Преобразует значение даты из данных ответа в дату.
675
675
  * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
@@ -688,7 +688,7 @@ class k {
688
688
  * @param date Дата.
689
689
  */
690
690
  static toApiFormat(r) {
691
- return m(r) || !Kr(r) ? null : $(r, S().config.dateFormats.api);
691
+ return m(r) || !Kr(r) ? null : S(r, k().config.dateFormats.api);
692
692
  }
693
693
  /**
694
694
  * Возвращает период с датами начала и окончания в формате API.
@@ -696,7 +696,7 @@ class k {
696
696
  * @param period Период.
697
697
  */
698
698
  static periodToApiFormat(r) {
699
- return { from: k.toApiFormat(r.from), to: k.toApiFormat(r.to) };
699
+ return { from: $.toApiFormat(r.from), to: $.toApiFormat(r.to) };
700
700
  }
701
701
  }
702
702
  class ir extends re {
@@ -712,7 +712,7 @@ class ir extends re {
712
712
  * Дата и время создания записи. Если не задана в данных, используется текущий момент.
713
713
  */
714
714
  s(this, "createdAt");
715
- this.createdAt = k.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
715
+ this.createdAt = $.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
716
716
  }
717
717
  }
718
718
  class Ue extends ir {
@@ -755,7 +755,7 @@ class Ue extends ir {
755
755
  * @param slug Символьное обозначение статьи.
756
756
  */
757
757
  static getSlugError(e) {
758
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : wt(e, "-") || Kt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Xt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
758
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : wt(e, "-") || Jt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Kt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
759
759
  }
760
760
  /**
761
761
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -851,7 +851,7 @@ class D {
851
851
  this.from = I(r == null ? void 0 : r.from) ? _(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = I(r == null ? void 0 : r.to) ? _(r.to) : (r == null ? void 0 : r.to) ?? null;
852
852
  }
853
853
  }
854
- class Ci extends de {
854
+ class wi extends de {
855
855
  /**
856
856
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
857
857
  *
@@ -956,7 +956,7 @@ class U {
956
956
  static instanceListInitializer(r, e) {
957
957
  if (!V(e))
958
958
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
959
- return R(e, (t) => U.instanceInitializer(r, t));
959
+ return P(e, (t) => U.instanceInitializer(r, t));
960
960
  }
961
961
  }
962
962
  const w = class w {
@@ -971,7 +971,7 @@ const w = class w {
971
971
  /**
972
972
  * Базовый URL путь для выполнения запросов.
973
973
  */
974
- s(this, "baseUrl", `${S().config.http.portalApiUrl}/api`);
974
+ s(this, "baseUrl", `${k().config.http.portalApiUrl}/api`);
975
975
  /**
976
976
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
977
977
  */
@@ -998,7 +998,7 @@ const w = class w {
998
998
  * @param request Данные запроса.
999
999
  */
1000
1000
  // eslint-disable-next-line class-methods-use-this
1001
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Zt(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
1001
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Xt(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
1002
1002
  /**
1003
1003
  * Перехватчик ошибок ответов на запрос.
1004
1004
  *
@@ -1323,7 +1323,7 @@ s(w, "instances", {}), /**
1323
1323
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1324
1324
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1325
1325
  */
1326
- s(w, "defaultErrorsResponseHandler", P), /**
1326
+ s(w, "defaultErrorsResponseHandler", R), /**
1327
1327
  * Базовый хук для запросов.
1328
1328
  */
1329
1329
  s(w, "defaultRequestHook"), /**
@@ -1359,17 +1359,17 @@ class rt {
1359
1359
  * @returns Примитивное представление фильтра.
1360
1360
  */
1361
1361
  toPrimitive() {
1362
- const r = S().config.dateFormats.api, e = {
1362
+ const r = k().config.dateFormats.api, e = {
1363
1363
  field: this.field,
1364
1364
  op: this.op
1365
1365
  };
1366
1366
  if (rr(this.value))
1367
- e.value = $(this.value, r);
1368
- else if (es(this.value)) {
1367
+ e.value = S(this.value, r);
1368
+ else if (Zt(this.value)) {
1369
1369
  const t = this.value;
1370
1370
  e.value = {
1371
- from: t.from ? $(t.from, r) : null,
1372
- to: t.to ? $(t.to, r) : null
1371
+ from: t.from ? S(t.from, r) : null,
1372
+ to: t.to ? S(t.to, r) : null
1373
1373
  };
1374
1374
  } else
1375
1375
  e.value = this.value;
@@ -1471,8 +1471,8 @@ class kr extends M {
1471
1471
  static preparePostSaveData(r) {
1472
1472
  const e = {};
1473
1473
  if (Be(r.title) || (e.title = r.title), Be(r.slug) || (e.slug = r.slug), Be(r.content) || (e.content = r.content), !Be(r.publishedAt)) {
1474
- const t = S().config.dateFormats.api;
1475
- e.publishedAt = m(r.publishedAt) ? null : $(r.publishedAt, t);
1474
+ const t = k().config.dateFormats.api;
1475
+ e.publishedAt = m(r.publishedAt) ? null : S(r.publishedAt, t);
1476
1476
  }
1477
1477
  return e;
1478
1478
  }
@@ -1640,7 +1640,7 @@ class nr extends N {
1640
1640
  * Дата и время последнего изменения.
1641
1641
  */
1642
1642
  s(this, "updatedAt");
1643
- this.createdAt = k.parse(e == null ? void 0 : e.createdAt), this.updatedAt = k.parse(e == null ? void 0 : e.updatedAt);
1643
+ this.createdAt = $.parse(e == null ? void 0 : e.createdAt), this.updatedAt = $.parse(e == null ? void 0 : e.updatedAt);
1644
1644
  }
1645
1645
  }
1646
1646
  class or extends nr {
@@ -1655,7 +1655,7 @@ class or extends nr {
1655
1655
  * Дата и время последнего удаления.
1656
1656
  */
1657
1657
  s(this, "deletedAt");
1658
- this.deletedAt = k.parse(e == null ? void 0 : e.deletedAt);
1658
+ this.deletedAt = $.parse(e == null ? void 0 : e.deletedAt);
1659
1659
  }
1660
1660
  }
1661
1661
  class q extends N {
@@ -1709,7 +1709,7 @@ class Mr extends or {
1709
1709
  * Краткие данные о пользователе.
1710
1710
  */
1711
1711
  s(this, "owner");
1712
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = k.parse(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);
1712
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = $.parse(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);
1713
1713
  }
1714
1714
  }
1715
1715
  class ve extends nr {
@@ -1731,7 +1731,7 @@ class ve extends nr {
1731
1731
  this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1732
1732
  }
1733
1733
  }
1734
- var Pt = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(Pt || {});
1734
+ var Dt = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(Dt || {});
1735
1735
  class v extends N {
1736
1736
  /**
1737
1737
  * Инициализирует экземпляр класса {@link Reference}.
@@ -1758,11 +1758,11 @@ class he extends v {
1758
1758
  static getRetailPriceCoefficient() {
1759
1759
  const r = new he({
1760
1760
  id: -2,
1761
- slug: Pt.Retail,
1761
+ slug: Dt.Retail,
1762
1762
  name: "Розн. цена",
1763
1763
  guid: ""
1764
1764
  });
1765
- return r.isNewRec = rs(!0), r;
1765
+ return r.isNewRec = es(!0), r;
1766
1766
  }
1767
1767
  }
1768
1768
  class Hr {
@@ -1934,7 +1934,7 @@ class Fe extends N {
1934
1934
  this.code = (e == null ? void 0 : e.code) ?? "";
1935
1935
  }
1936
1936
  }
1937
- class Tt extends Fe {
1937
+ class Pt extends Fe {
1938
1938
  /**
1939
1939
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1940
1940
  *
@@ -1953,7 +1953,7 @@ class Tt extends Fe {
1953
1953
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1954
1954
  }
1955
1955
  }
1956
- class ds extends Tt {
1956
+ class ds extends Pt {
1957
1957
  /**
1958
1958
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1959
1959
  *
@@ -1991,7 +1991,7 @@ class As {
1991
1991
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1992
1992
  }
1993
1993
  }
1994
- class Or extends Tt {
1994
+ class Or extends Pt {
1995
1995
  /**
1996
1996
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1997
1997
  *
@@ -2085,7 +2085,7 @@ class E extends ds {
2085
2085
  s(this, "priceCoefficients");
2086
2086
  this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new tt(e.unit) : new tt(), 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 = I(e == null ? void 0 : e.costDate) ? _(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((p) => new bs(p))) ?? [], this.type = "product";
2087
2087
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
2088
- t && (this.category = new Or({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Or(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new As(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 Hr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2088
+ t && (this.category = new Or({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Or(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new As(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 Hr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2089
2089
  }
2090
2090
  /**
2091
2091
  * Возвращает признак, что это измеряемый товар.
@@ -2107,7 +2107,7 @@ class E extends ds {
2107
2107
  }
2108
2108
  }
2109
2109
  var Br = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Br || {});
2110
- class Re extends E {
2110
+ class Pe extends E {
2111
2111
  /**
2112
2112
  * Инициализирует экземпляр класса {@link ClientProduct}.
2113
2113
  *
@@ -2178,10 +2178,10 @@ class ge extends Or {
2178
2178
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2179
2179
  */
2180
2180
  s(this, "currencyRates");
2181
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, n]) => [ts(t), n])) : void 0;
2181
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, n]) => [rs(t), n])) : void 0;
2182
2182
  }
2183
2183
  }
2184
- class bt extends re {
2184
+ class Tt extends re {
2185
2185
  /**
2186
2186
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2187
2187
  *
@@ -2257,10 +2257,10 @@ class bt extends re {
2257
2257
  * @inheritDoc
2258
2258
  */
2259
2259
  s(this, "replacementId");
2260
- this.product = new Re(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 && ss(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;
2260
+ this.product = new Pe(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 && ts(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;
2261
2261
  }
2262
2262
  }
2263
- let Gr = class extends bt {
2263
+ let Gr = class extends Tt {
2264
2264
  /**
2265
2265
  * Инициализирует экземпляр класса {@link OrderItem}.
2266
2266
  *
@@ -2329,7 +2329,7 @@ class Le {
2329
2329
  this.items = r.items.map((e) => new Gr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2330
2330
  }
2331
2331
  }
2332
- class Di extends h {
2332
+ class vi extends h {
2333
2333
  /**
2334
2334
  * Возвращает содержимое корзины указанного клиента.
2335
2335
  *
@@ -2443,7 +2443,7 @@ class Di extends h {
2443
2443
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2444
2444
  }
2445
2445
  }
2446
- var Ss = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(Ss || {}), $s = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))($s || {}), dt = /* @__PURE__ */ ((i) => (i.Checkbox = "checkbox", i.Range = "range", i.Toggle = "toggle", i))(dt || {});
2446
+ var Ss = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(Ss || {}), $s = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))($s || {}), bt = /* @__PURE__ */ ((i) => (i.Checkbox = "checkbox", i.Range = "range", i.Toggle = "toggle", i))(bt || {});
2447
2447
  class Y extends ge {
2448
2448
  /**
2449
2449
  * Инициализирует экземпляр класса {@link Category}.
@@ -2464,7 +2464,7 @@ class Y extends ge {
2464
2464
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new E(o));
2465
2465
  }
2466
2466
  }
2467
- class At {
2467
+ class dt {
2468
2468
  /**
2469
2469
  * Инициализирует экземпляр класса {@link ContactLinks}.
2470
2470
  *
@@ -2512,12 +2512,12 @@ class zr extends nr {
2512
2512
  * @inheritDoc
2513
2513
  */
2514
2514
  s(this, "isRegionalDirector");
2515
- 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 At(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2515
+ 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 dt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2516
2516
  }
2517
2517
  }
2518
2518
  class Wr extends v {
2519
2519
  }
2520
- class St extends N {
2520
+ class At extends N {
2521
2521
  /**
2522
2522
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2523
2523
  *
@@ -2608,7 +2608,7 @@ class Z extends zr {
2608
2608
  * Дата и время последнего входа в систему.
2609
2609
  */
2610
2610
  s(this, "lastLoginAt");
2611
- 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 St(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Wr(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (n = e == null ? void 0 : e.managerRegions) == null ? void 0 : n.map((c) => new cr(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2611
+ 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 At(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Wr(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (n = e == null ? void 0 : e.managerRegions) == null ? void 0 : n.map((c) => new cr(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2612
2612
  }
2613
2613
  }
2614
2614
  class ks extends ge {
@@ -2659,10 +2659,10 @@ class tr extends ks {
2659
2659
  * Список продуктов категории.
2660
2660
  */
2661
2661
  s(this, "products");
2662
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new tr(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new Re(o));
2662
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new tr(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new Pe(o));
2663
2663
  }
2664
2664
  }
2665
- class $t {
2665
+ class St {
2666
2666
  /**
2667
2667
  * Инициализирует экземпляр класса {@link PriceCatalogableItem}.
2668
2668
  *
@@ -2680,7 +2680,7 @@ class $t {
2680
2680
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new he(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2681
2681
  }
2682
2682
  }
2683
- class kt extends $t {
2683
+ class $t extends St {
2684
2684
  /**
2685
2685
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2686
2686
  *
@@ -2690,7 +2690,7 @@ class kt extends $t {
2690
2690
  super(r);
2691
2691
  }
2692
2692
  }
2693
- class Cr extends kt {
2693
+ class Cr extends $t {
2694
2694
  /**
2695
2695
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2696
2696
  *
@@ -2725,7 +2725,7 @@ class jr extends N {
2725
2725
  * @inheritDoc
2726
2726
  */
2727
2727
  s(this, "curatedDirection");
2728
- this.photo = e.photo, this.contacts = new At(e.contacts), this.curatedDirection = new Wr(e.curatedDirection);
2728
+ this.photo = e.photo, this.contacts = new dt(e.contacts), this.curatedDirection = new Wr(e.curatedDirection);
2729
2729
  }
2730
2730
  }
2731
2731
  class Te extends v {
@@ -2760,7 +2760,7 @@ class ee extends v {
2760
2760
  e && (this.region = new oe(e.region));
2761
2761
  }
2762
2762
  }
2763
- class Ot extends nr {
2763
+ class kt extends nr {
2764
2764
  /**
2765
2765
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2766
2766
  *
@@ -2795,7 +2795,7 @@ class Ot extends nr {
2795
2795
  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 = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2796
2796
  }
2797
2797
  }
2798
- class fe extends Ot {
2798
+ class fe extends kt {
2799
2799
  /**
2800
2800
  * Инициализирует экземпляр класса {@link Client}.
2801
2801
  *
@@ -2857,7 +2857,7 @@ class Os extends ir {
2857
2857
  * Дата и время удаления записи.
2858
2858
  */
2859
2859
  s(this, "deletedAt");
2860
- this.deletedAt = k.parse(e == null ? void 0 : e.deletedAt);
2860
+ this.deletedAt = $.parse(e == null ? void 0 : e.deletedAt);
2861
2861
  }
2862
2862
  }
2863
2863
  class xe extends Os {
@@ -2879,7 +2879,7 @@ class xe extends Os {
2879
2879
  this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new ve(e == null ? void 0 : e.priceTemplate);
2880
2880
  }
2881
2881
  }
2882
- class vr extends kt {
2882
+ class vr extends $t {
2883
2883
  /**
2884
2884
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2885
2885
  *
@@ -2894,7 +2894,7 @@ class vr extends kt {
2894
2894
  this.product = new E(e == null ? void 0 : e.product);
2895
2895
  }
2896
2896
  }
2897
- class Lt extends v {
2897
+ class Ot extends v {
2898
2898
  }
2899
2899
  class De extends N {
2900
2900
  /**
@@ -2920,7 +2920,7 @@ class De extends N {
2920
2920
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2921
2921
  */
2922
2922
  s(this, "isFilterable");
2923
- this.type = new Lt(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;
2923
+ this.type = new Ot(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;
2924
2924
  }
2925
2925
  }
2926
2926
  class Ce {
@@ -2942,7 +2942,7 @@ class Ce {
2942
2942
  this.property = new De(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2943
2943
  }
2944
2944
  }
2945
- class Pi {
2945
+ class Di {
2946
2946
  /**
2947
2947
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2948
2948
  *
@@ -3011,7 +3011,7 @@ class Pi {
3011
3011
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
3012
3012
  }
3013
3013
  }
3014
- class xt extends $t {
3014
+ class Lt extends St {
3015
3015
  /**
3016
3016
  * Инициализирует экземпляр класса {@link ClientPriceCatalogableItem}.
3017
3017
  *
@@ -3027,10 +3027,10 @@ class xt extends $t {
3027
3027
  * Дата и время создания записи.
3028
3028
  */
3029
3029
  s(this, "createdAt");
3030
- this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = k.parse(e == null ? void 0 : e.createdAt);
3030
+ this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = $.parse(e == null ? void 0 : e.createdAt);
3031
3031
  }
3032
3032
  }
3033
- class Dr extends xt {
3033
+ class Dr extends Lt {
3034
3034
  /**
3035
3035
  * Инициализирует экземпляр класса {@link ClientPriceProduct}.
3036
3036
  *
@@ -3045,7 +3045,7 @@ class Dr extends xt {
3045
3045
  this.product = new E(e == null ? void 0 : e.product);
3046
3046
  }
3047
3047
  }
3048
- class st extends xt {
3048
+ class st extends Lt {
3049
3049
  /**
3050
3050
  * Инициализирует экземпляр класса {@link ClientPriceCategory}.
3051
3051
  *
@@ -3233,7 +3233,7 @@ class Is {
3233
3233
  */
3234
3234
  s(this, "max");
3235
3235
  var e;
3236
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? dt.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 xs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3236
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? bt.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 xs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3237
3237
  }
3238
3238
  }
3239
3239
  class Ri extends h {
@@ -3263,11 +3263,11 @@ class Ri extends h {
3263
3263
  */
3264
3264
  // eslint-disable-next-line class-methods-use-this
3265
3265
  getPriceExportLink(r = "csv", e = !1, t = void 0, n = void 0) {
3266
- let c = `${S().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3266
+ let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3267
3267
  return t && (c += `&category_id=${t}`), n && (c += `&client_id=${n}`), c;
3268
3268
  }
3269
3269
  }
3270
- class Ti extends h {
3270
+ class Pi extends h {
3271
3271
  /**
3272
3272
  * Импортирует цены клиента из CSV файла.
3273
3273
  *
@@ -3536,7 +3536,7 @@ class Ti extends h {
3536
3536
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3537
3537
  }
3538
3538
  }
3539
- class bi extends h {
3539
+ class Ti extends h {
3540
3540
  /**
3541
3541
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3542
3542
  *
@@ -3567,12 +3567,12 @@ class bi extends h {
3567
3567
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3568
3568
  */
3569
3569
  attachTemplate(r, e, t) {
3570
- const n = S().config.dateFormats.api;
3570
+ const n = k().config.dateFormats.api;
3571
3571
  return this.post(
3572
3572
  `/internal/clients/${r}/price/templates/${e}`,
3573
3573
  t && {
3574
- startAt: t.startAt && $(t.startAt, n),
3575
- endAt: t.endAt && $(t.endAt, n)
3574
+ startAt: t.startAt && S(t.startAt, n),
3575
+ endAt: t.endAt && S(t.endAt, n)
3576
3576
  },
3577
3577
  (o) => new xe(o.data),
3578
3578
  {},
@@ -3601,12 +3601,12 @@ class bi extends h {
3601
3601
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3602
3602
  */
3603
3603
  changeTemplate(r, e, t, n) {
3604
- const o = S().config.dateFormats.api;
3604
+ const o = k().config.dateFormats.api;
3605
3605
  return this.patch(
3606
3606
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3607
3607
  n && {
3608
- startAt: n.startAt && $(n.startAt, o),
3609
- endAt: n.endAt && $(n.endAt, o)
3608
+ startAt: n.startAt && S(n.startAt, o),
3609
+ endAt: n.endAt && S(n.endAt, o)
3610
3610
  },
3611
3611
  (c) => new xe(c.data)
3612
3612
  );
@@ -3624,7 +3624,7 @@ class bi extends h {
3624
3624
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3625
3625
  }
3626
3626
  }
3627
- class di extends h {
3627
+ class bi extends h {
3628
3628
  /**
3629
3629
  * Возвращает список данных о корневых категориях.
3630
3630
  *
@@ -3680,7 +3680,7 @@ class di extends h {
3680
3680
  showHidden: t,
3681
3681
  withPriceCoefficients: e
3682
3682
  },
3683
- (n) => R(n.data, (o) => new E(o))
3683
+ (n) => P(n.data, (o) => new E(o))
3684
3684
  );
3685
3685
  }
3686
3686
  /**
@@ -3693,7 +3693,7 @@ class di extends h {
3693
3693
  getCategoryProductsCoefficients(r) {
3694
3694
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3695
3695
  const { data: t } = e;
3696
- return is(t, (n) => n.map((o) => new Hr(o))), t;
3696
+ return ss(t, (n) => n.map((o) => new Hr(o))), t;
3697
3697
  });
3698
3698
  }
3699
3699
  /**
@@ -3712,7 +3712,7 @@ class di extends h {
3712
3712
  });
3713
3713
  }
3714
3714
  }
3715
- class Ai extends M {
3715
+ class di extends M {
3716
3716
  /**
3717
3717
  * Возвращает данные об указанном продукте.
3718
3718
  *
@@ -3743,7 +3743,7 @@ class Ai extends M {
3743
3743
  return this.get(
3744
3744
  `/internal/catalog/products/${r}/coefficients`,
3745
3745
  {},
3746
- (e) => R(e.data, (t) => new Hr(t))
3746
+ (e) => P(e.data, (t) => new Hr(t))
3747
3747
  );
3748
3748
  }
3749
3749
  /**
@@ -3756,9 +3756,9 @@ class Ai extends M {
3756
3756
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3757
3757
  */
3758
3758
  getNewProducts(r, e, t = !0) {
3759
- const n = S().config.dateFormats.api;
3759
+ const n = k().config.dateFormats.api;
3760
3760
  return this.getTypedPaginated(E, "/internal/catalog/products/new", void 0, void 0, e, {
3761
- period: { from: $(r, n) },
3761
+ period: { from: S(r, n) },
3762
3762
  withPriceCoefficients: t
3763
3763
  });
3764
3764
  }
@@ -3778,7 +3778,7 @@ class Ai extends M {
3778
3778
  });
3779
3779
  }
3780
3780
  }
3781
- class Si extends h {
3781
+ class Ai extends h {
3782
3782
  /**
3783
3783
  * Возвращает список данных о корневых категориях указанного клиента.
3784
3784
  *
@@ -3832,11 +3832,11 @@ class Si extends h {
3832
3832
  showHidden: n,
3833
3833
  withPriceCoefficients: t
3834
3834
  },
3835
- (o) => R(o.data, (c) => new Re(c))
3835
+ (o) => P(o.data, (c) => new Pe(c))
3836
3836
  );
3837
3837
  }
3838
3838
  }
3839
- class $i extends M {
3839
+ class Si extends M {
3840
3840
  /**
3841
3841
  * Возвращает данные об указанном продукте для указанного клиента.
3842
3842
  *
@@ -3853,7 +3853,7 @@ class $i extends M {
3853
3853
  clientId: e,
3854
3854
  withPriceCoefficients: t
3855
3855
  },
3856
- (n) => new Re(n.data)
3856
+ (n) => new Pe(n.data)
3857
3857
  );
3858
3858
  }
3859
3859
  /**
@@ -3867,15 +3867,15 @@ class $i extends M {
3867
3867
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3868
3868
  */
3869
3869
  getNewProducts(r, e, t, n = !0) {
3870
- const o = S().config.dateFormats.api;
3871
- return this.getTypedPaginated(Re, "/internal/catalog/products/new", void 0, void 0, t, {
3870
+ const o = k().config.dateFormats.api;
3871
+ return this.getTypedPaginated(Pe, "/internal/catalog/products/new", void 0, void 0, t, {
3872
3872
  clientId: r,
3873
- period: { from: $(e, o) },
3873
+ period: { from: S(e, o) },
3874
3874
  withPriceCoefficients: n
3875
3875
  });
3876
3876
  }
3877
3877
  }
3878
- class ki extends M {
3878
+ class $i extends M {
3879
3879
  /**
3880
3880
  * Возвращает список шаблонов прайс-листа.
3881
3881
  *
@@ -4064,7 +4064,7 @@ class ki extends M {
4064
4064
  return this.getTypedList(xe, `/internal/price/templates/${r}/clients`);
4065
4065
  }
4066
4066
  }
4067
- class Oi extends h {
4067
+ class ki extends h {
4068
4068
  /**
4069
4069
  * Возвращает список ролей ценообразования.
4070
4070
  *
@@ -4140,7 +4140,7 @@ class Oi extends h {
4140
4140
  );
4141
4141
  }
4142
4142
  }
4143
- class Li extends M {
4143
+ class Oi extends M {
4144
4144
  /**
4145
4145
  * Возвращает пагинированный список свойств.
4146
4146
  *
@@ -4557,7 +4557,7 @@ class Li extends M {
4557
4557
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4558
4558
  }
4559
4559
  }
4560
- class xi extends h {
4560
+ class Li extends h {
4561
4561
  /**
4562
4562
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4563
4563
  *
@@ -4611,7 +4611,7 @@ class xi extends h {
4611
4611
  showHidden: n,
4612
4612
  withPriceCoefficients: t
4613
4613
  },
4614
- (o) => R(o.data, (c) => new E(c))
4614
+ (o) => P(o.data, (c) => new E(c))
4615
4615
  );
4616
4616
  }
4617
4617
  }
@@ -4738,7 +4738,7 @@ class le extends v {
4738
4738
  }
4739
4739
  class ue extends v {
4740
4740
  }
4741
- class It extends or {
4741
+ class xt extends or {
4742
4742
  /**
4743
4743
  * Инициализирует экземпляр класса {@link ContragentBase}.
4744
4744
  *
@@ -4795,7 +4795,7 @@ class It extends or {
4795
4795
  }
4796
4796
  }
4797
4797
  }
4798
- class qs extends It {
4798
+ class qs extends xt {
4799
4799
  /**
4800
4800
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4801
4801
  *
@@ -4805,7 +4805,7 @@ class qs extends It {
4805
4805
  super(r);
4806
4806
  }
4807
4807
  }
4808
- class _t extends It {
4808
+ class It extends xt {
4809
4809
  /**
4810
4810
  * Инициализирует экземпляр класса {@link ContragentIc}.
4811
4811
  *
@@ -4852,7 +4852,7 @@ class _t extends It {
4852
4852
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.ogrn = e.ogrn ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
4853
4853
  }
4854
4854
  }
4855
- class qt extends _t {
4855
+ class _t extends It {
4856
4856
  /**
4857
4857
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4858
4858
  *
@@ -4867,7 +4867,7 @@ class qt extends _t {
4867
4867
  e && (this.kpp = e.kpp ?? "");
4868
4868
  }
4869
4869
  }
4870
- class Ns extends qt {
4870
+ class Ns extends _t {
4871
4871
  /**
4872
4872
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4873
4873
  *
@@ -4899,9 +4899,9 @@ class sr {
4899
4899
  static createInstance(r) {
4900
4900
  switch (r.opf.slug) {
4901
4901
  case K.Ic:
4902
- return new _t(r);
4902
+ return new It(r);
4903
4903
  case K.UlR:
4904
- return new qt(r);
4904
+ return new _t(r);
4905
4905
  case K.UlNr:
4906
4906
  return new Ns(r);
4907
4907
  default:
@@ -4949,9 +4949,9 @@ class qe extends or {
4949
4949
  this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Rt(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new ce(n))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4950
4950
  }
4951
4951
  }
4952
- class Nt extends v {
4952
+ class qt extends v {
4953
4953
  }
4954
- class Et extends v {
4954
+ class Nt extends v {
4955
4955
  }
4956
4956
  class lt extends fe {
4957
4957
  /**
@@ -5003,10 +5003,10 @@ class lt extends fe {
5003
5003
  * @inheritDoc
5004
5004
  */
5005
5005
  s(this, "extraData");
5006
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => sr.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ue(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new ce(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new Nt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Et(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
5006
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => sr.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ue(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new ce(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new qt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Nt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
5007
5007
  }
5008
5008
  }
5009
- class Ii extends de {
5009
+ class xi extends de {
5010
5010
  /**
5011
5011
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
5012
5012
  *
@@ -5187,7 +5187,7 @@ class Ii extends de {
5187
5187
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
5188
5188
  }
5189
5189
  }
5190
- class Ut extends ir {
5190
+ class Et extends ir {
5191
5191
  /**
5192
5192
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
5193
5193
  *
@@ -5239,10 +5239,10 @@ class Es extends N {
5239
5239
  * @inheritDoc
5240
5240
  */
5241
5241
  s(this, "curators");
5242
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new ce(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ut(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ue(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(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 zr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new jr(u))) ?? void 0;
5242
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new ce(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Et(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ue(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(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 zr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new jr(u))) ?? void 0;
5243
5243
  }
5244
5244
  }
5245
- class Pr extends re {
5245
+ class Rr extends re {
5246
5246
  /**
5247
5247
  * Инициализирует экземпляр класса {@link ContactRelation}.
5248
5248
  *
@@ -5282,7 +5282,7 @@ class Us extends ce {
5282
5282
  */
5283
5283
  addresses: []
5284
5284
  });
5285
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Pr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Pr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Pr(t))));
5285
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Rr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Rr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Rr(t))));
5286
5286
  }
5287
5287
  }
5288
5288
  class W extends M {
@@ -5970,7 +5970,7 @@ class W extends M {
5970
5970
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5971
5971
  }
5972
5972
  }
5973
- class _i extends h {
5973
+ class Ii extends h {
5974
5974
  /**
5975
5975
  * Выполняет проверку занят ли указанный номер телефона.
5976
5976
  *
@@ -5984,7 +5984,7 @@ class _i extends h {
5984
5984
  });
5985
5985
  }
5986
5986
  }
5987
- class qi {
5987
+ class _i {
5988
5988
  /**
5989
5989
  * Инициализирует экземпляр класса {@link VersionConfig}.
5990
5990
  *
@@ -6007,7 +6007,7 @@ class qi {
6007
6007
  }
6008
6008
  }
6009
6009
  var Fs = /* @__PURE__ */ ((i) => (i.Kozyrek = "kozyrek", i.Mosquitto = "mosquitto", i.Strip = "strip", i.MetalForDoors = "metal_for_doors", i.Sandwich = "sandwich", i.SandwichM2 = "sandwich_m2", i))(Fs || {});
6010
- class Ni extends h {
6010
+ class qi extends h {
6011
6011
  /**
6012
6012
  * Возвращает настройки указанного конфигуратора для указанной категории.
6013
6013
  *
@@ -6117,7 +6117,7 @@ class Ms {
6117
6117
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
6118
6118
  }
6119
6119
  }
6120
- class Ei extends Ms {
6120
+ class Ni extends Ms {
6121
6121
  /**
6122
6122
  * Инициализирует экземпляр класса {@link TableDataPagination}.
6123
6123
  *
@@ -6148,7 +6148,7 @@ class Ei extends Ms {
6148
6148
  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;
6149
6149
  }
6150
6150
  }
6151
- class Ui {
6151
+ class Ei {
6152
6152
  /**
6153
6153
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
6154
6154
  *
@@ -6259,14 +6259,14 @@ class y {
6259
6259
  return [g, a];
6260
6260
  }
6261
6261
  }
6262
- function Fi(i) {
6263
- return $(Ye(Ee(), i), "yyyy-MM-dd");
6262
+ function Ui(i) {
6263
+ return S(Ye(Ee(), i), "yyyy-MM-dd");
6264
6264
  }
6265
6265
  function Hs(i, r) {
6266
6266
  const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(i));
6267
6267
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6268
6268
  }
6269
- function Mi(i) {
6269
+ function Fi(i) {
6270
6270
  const r = _(i), e = je(Ee(), r);
6271
6271
  switch (!0) {
6272
6272
  case e === 0:
@@ -6279,7 +6279,7 @@ function Mi(i) {
6279
6279
  return `${e} ${Hs(e, ["день", "дня", "дней"])} назад`;
6280
6280
  }
6281
6281
  }
6282
- class Hi {
6282
+ class Mi {
6283
6283
  /**
6284
6284
  * Возвращает предустановленные диапазоны дат.
6285
6285
  *
@@ -6422,7 +6422,7 @@ class Hi {
6422
6422
  };
6423
6423
  }
6424
6424
  }
6425
- const Bi = [
6425
+ const Hi = [
6426
6426
  { key: "day", label: "День" },
6427
6427
  { key: "week", label: "Неделя" },
6428
6428
  { key: "decade", label: "Декада" },
@@ -6431,7 +6431,7 @@ const Bi = [
6431
6431
  { key: "halfYear", label: "Полугодие" },
6432
6432
  { key: "year", label: "Год" },
6433
6433
  { key: "other", label: "Прочее" }
6434
- ], Gi = [
6434
+ ], Bi = [
6435
6435
  { key: "fromBeginning", label: "С начала периода" },
6436
6436
  { key: "tillEnd", label: "До конца периода" },
6437
6437
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
@@ -6500,7 +6500,7 @@ class Bs {
6500
6500
  * @inheritDoc
6501
6501
  */
6502
6502
  s(this, "lastOrderDate");
6503
- this.salesDirections = R((r == null ? void 0 : r.salesDirections) ?? [], (e) => new F(e)), this.partnerGroups = R((r == null ? void 0 : r.partnerGroups) ?? [], (e) => new ue(e)), this.managers = R((r == null ? void 0 : r.managers) ?? [], (e) => new q(e)), this.additionalClients = R((r == null ? void 0 : r.additionalClients) ?? [], (e) => new Ir(e)), this.fixedClients = R((r == null ? void 0 : r.fixedClients) ?? [], (e) => new Ir(e)), this.regions = R((r == null ? void 0 : r.regions) ?? [], (e) => new oe(e)), this.cities = R((r == null ? void 0 : r.cities) ?? [], (e) => new ee(e)), this.lastLoginDate = new D(r == null ? void 0 : r.lastLoginDate), this.lastOrderDate = new D(r == null ? void 0 : r.lastOrderDate);
6503
+ this.salesDirections = P((r == null ? void 0 : r.salesDirections) ?? [], (e) => new F(e)), this.partnerGroups = P((r == null ? void 0 : r.partnerGroups) ?? [], (e) => new ue(e)), this.managers = P((r == null ? void 0 : r.managers) ?? [], (e) => new q(e)), this.additionalClients = P((r == null ? void 0 : r.additionalClients) ?? [], (e) => new Ir(e)), this.fixedClients = P((r == null ? void 0 : r.fixedClients) ?? [], (e) => new Ir(e)), this.regions = P((r == null ? void 0 : r.regions) ?? [], (e) => new oe(e)), this.cities = P((r == null ? void 0 : r.cities) ?? [], (e) => new ee(e)), this.lastLoginDate = new D(r == null ? void 0 : r.lastLoginDate), this.lastOrderDate = new D(r == null ? void 0 : r.lastOrderDate);
6504
6504
  }
6505
6505
  /**
6506
6506
  * Возвращает признак того, что задано хотя бы одно условие отбора клиентов.
@@ -6525,30 +6525,19 @@ class Bs {
6525
6525
  */
6526
6526
  toSaveData() {
6527
6527
  return {
6528
- salesDirections: R(this.salesDirections, "id"),
6529
- partnerGroups: R(this.partnerGroups, "id"),
6530
- managers: R(this.managers, "id"),
6531
- additionalClients: R(this.additionalClients, "id"),
6532
- regions: R(this.regions, "id"),
6533
- cities: R(this.cities, "id"),
6528
+ salesDirections: P(this.salesDirections, "id"),
6529
+ partnerGroups: P(this.partnerGroups, "id"),
6530
+ managers: P(this.managers, "id"),
6531
+ additionalClients: P(this.additionalClients, "id"),
6532
+ regions: P(this.regions, "id"),
6533
+ cities: P(this.cities, "id"),
6534
6534
  lastLoginDate: new D(this.lastLoginDate),
6535
6535
  lastOrderDate: new D(this.lastOrderDate)
6536
6536
  };
6537
6537
  }
6538
6538
  }
6539
- class Gs {
6540
- /**
6541
- * Возвращает коэффициент стоимости товара от розничной цены для указанного процента скидки
6542
- * с точностью коэффициента из настроек приложения.
6543
- *
6544
- * @param percent Процент скидки (10 для скидки 10 %).
6545
- */
6546
- static percentToCostCoefficient(r) {
6547
- return Ct((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6548
- }
6549
- }
6550
6539
  var Ke = /* @__PURE__ */ ((i) => (i.Active = "active", i.Scheduled = "scheduled", i.Completed = "completed", i))(Ke || {});
6551
- class zs {
6540
+ class Gs {
6552
6541
  /**
6553
6542
  * Возвращает состояние скидки на указанный момент по датам начала и окончания действия.
6554
6543
  *
@@ -6559,7 +6548,7 @@ class zs {
6559
6548
  return r.deletedAt && r.deletedAt.getTime() <= e.getTime() ? Ke.Completed : r.publishedAt && r.publishedAt.getTime() > e.getTime() ? Ke.Scheduled : Ke.Active;
6560
6549
  }
6561
6550
  }
6562
- class Rr extends Mr {
6551
+ class Pr extends Mr {
6563
6552
  /**
6564
6553
  * Инициализирует экземпляр класса {@link Discount}.
6565
6554
  *
@@ -6595,7 +6584,7 @@ class Rr extends Mr {
6595
6584
  * @inheritDoc
6596
6585
  */
6597
6586
  s(this, "countDiscountedClients");
6598
- this.conditions = new Bs(e == null ? void 0 : e.conditions), this.products = R((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = R((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
6587
+ this.conditions = new Bs(e == null ? void 0 : e.conditions), this.products = P((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = P((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
6599
6588
  }
6600
6589
  /**
6601
6590
  * Возвращает состояние скидки на указанный момент.
@@ -6603,7 +6592,7 @@ class Rr extends Mr {
6603
6592
  * @param now Момент, на который определяется состояние.
6604
6593
  */
6605
6594
  getState(e = /* @__PURE__ */ new Date()) {
6606
- return zs.resolve(this, e);
6595
+ return Gs.resolve(this, e);
6607
6596
  }
6608
6597
  /**
6609
6598
  * Переносит счётчики цен, товаров и клиентов из указанной скидки, не затрагивая остальные данные.
@@ -6625,13 +6614,13 @@ class Rr extends Mr {
6625
6614
  toSaveData() {
6626
6615
  return {
6627
6616
  name: this.name,
6628
- costCoefficient: Gs.percentToCostCoefficient(this.percent),
6617
+ percent: this.percent,
6629
6618
  isLowPriceAllowed: this.isLowPriceAllowed,
6630
6619
  publishedAt: this.publishedAt ?? null,
6631
6620
  deletedAt: this.deletedAt ?? null,
6632
6621
  description: this.description ?? "",
6633
- products: R(this.products, "id"),
6634
- productCategories: R(this.productCategories, "id"),
6622
+ products: P(this.products, "id"),
6623
+ productCategories: P(this.productCategories, "id"),
6635
6624
  conditions: this.conditions.toSaveData()
6636
6625
  };
6637
6626
  }
@@ -6684,7 +6673,7 @@ class ut {
6684
6673
  return this.additionalClientsCondition || this.fixedClientsCondition || this.partnerGroupsCondition || this.managersCondition || this.citiesCondition || this.regionsCondition || this.salesDirectionsCondition;
6685
6674
  }
6686
6675
  }
6687
- class zi extends de {
6676
+ class Gi extends de {
6688
6677
  /**
6689
6678
  * Инициализирует экземпляр класса {@link DiscountsListFilters}.
6690
6679
  *
@@ -6732,12 +6721,12 @@ class _r extends M {
6732
6721
  static prepareSaveData(r, e) {
6733
6722
  return {
6734
6723
  ...r,
6735
- publishedAt: k.toApiFormat(r.publishedAt),
6736
- deletedAt: k.toApiFormat(r.deletedAt),
6724
+ publishedAt: $.toApiFormat(r.publishedAt),
6725
+ deletedAt: $.toApiFormat(r.deletedAt),
6737
6726
  conditions: {
6738
6727
  ...r.conditions,
6739
- lastLoginDate: k.periodToApiFormat(r.conditions.lastLoginDate),
6740
- lastOrderDate: k.periodToApiFormat(r.conditions.lastOrderDate),
6728
+ lastLoginDate: $.periodToApiFormat(r.conditions.lastLoginDate),
6729
+ lastOrderDate: $.periodToApiFormat(r.conditions.lastOrderDate),
6741
6730
  updateFixedClients: e
6742
6731
  }
6743
6732
  };
@@ -6763,7 +6752,7 @@ class _r extends M {
6763
6752
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_get
6764
6753
  */
6765
6754
  getDiscount(r) {
6766
- return this.get(`/internal/price/discounts/${r}`, {}, (e) => new Rr(e.data));
6755
+ return this.get(`/internal/price/discounts/${r}`, {}, (e) => new Pr(e.data));
6767
6756
  }
6768
6757
  /**
6769
6758
  * Создаёт новую скидку.
@@ -6773,7 +6762,7 @@ class _r extends M {
6773
6762
  * @param validationFieldResultData Список полей, для которых необходимо
6774
6763
  * установить данные об ошибках валидации
6775
6764
  * в случае ошибок в запросах.
6776
- * Ошибка размера скидки приходит по ключу `costCoefficient`.
6765
+ * Ошибка размера скидки приходит по ключу `percent`.
6777
6766
  *
6778
6767
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_create
6779
6768
  */
@@ -6781,7 +6770,7 @@ class _r extends M {
6781
6770
  return this.post(
6782
6771
  "/internal/price/discounts",
6783
6772
  _r.prepareSaveData(r, e),
6784
- (n) => new Rr(n.data),
6773
+ (n) => new Pr(n.data),
6785
6774
  t
6786
6775
  );
6787
6776
  }
@@ -6794,7 +6783,7 @@ class _r extends M {
6794
6783
  * @param validationFieldResultData Список полей, для которых необходимо
6795
6784
  * установить данные об ошибках валидации
6796
6785
  * в случае ошибок в запросах.
6797
- * Ошибка размера скидки приходит по ключу `costCoefficient`.
6786
+ * Ошибка размера скидки приходит по ключу `percent`.
6798
6787
  *
6799
6788
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_change
6800
6789
  */
@@ -6802,7 +6791,7 @@ class _r extends M {
6802
6791
  return this.patch(
6803
6792
  `/internal/price/discounts/${r}`,
6804
6793
  _r.prepareSaveData(e, t),
6805
- (o) => new Rr(o.data),
6794
+ (o) => new Pr(o.data),
6806
6795
  n
6807
6796
  );
6808
6797
  }
@@ -6874,7 +6863,7 @@ class We extends re {
6874
6863
  * @inheritDoc
6875
6864
  */
6876
6865
  s(this, "groups");
6877
- this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = R((e == null ? void 0 : e.groups) ?? [], (t) => new Xe(t));
6866
+ this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = P((e == null ? void 0 : e.groups) ?? [], (t) => new Xe(t));
6878
6867
  }
6879
6868
  /**
6880
6869
  * Возвращает данные вопроса для отправки на портал.
@@ -6883,11 +6872,11 @@ class We extends re {
6883
6872
  return {
6884
6873
  question: this.question,
6885
6874
  answer: this.answer,
6886
- groups: R(this.groups, "id")
6875
+ groups: P(this.groups, "id")
6887
6876
  };
6888
6877
  }
6889
6878
  }
6890
- class Wi extends M {
6879
+ class zi extends M {
6891
6880
  /**
6892
6881
  * Возвращает список часто задаваемых вопросов.
6893
6882
  *
@@ -6992,11 +6981,11 @@ class Wi extends M {
6992
6981
  return this.delete(`/internal/faq/groups/${r}`);
6993
6982
  }
6994
6983
  }
6995
- function ji(i) {
6996
- const r = Ct(i * 100);
6984
+ function Wi(i) {
6985
+ const r = is(i * 100);
6997
6986
  return `${r >= 0 ? "+" : ""}${r}%`;
6998
6987
  }
6999
- class Ft {
6988
+ class Ut {
7000
6989
  /**
7001
6990
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
7002
6991
  *
@@ -7012,7 +7001,7 @@ class Ft {
7012
7001
  */
7013
7002
  static getProductMultiplicity(r) {
7014
7003
  var e, t;
7015
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Ft.productIsMeasurable(r) ? r.properties.minCount : 1;
7004
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Ut.productIsMeasurable(r) ? r.properties.minCount : 1;
7016
7005
  }
7017
7006
  /**
7018
7007
  * Возвращает кратность длины для указанного товара.
@@ -7024,7 +7013,7 @@ class Ft {
7024
7013
  return ((e = r.properties) == null ? void 0 : e.lengthStep) != null ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((n = r.properties) == null ? void 0 : n.minCount) != null ? r.properties.minCount : 0.01;
7025
7014
  }
7026
7015
  }
7027
- const Pe = class Pe extends h {
7016
+ const Re = class Re extends h {
7028
7017
  /**
7029
7018
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
7030
7019
  */
@@ -7034,7 +7023,7 @@ const Pe = class Pe extends h {
7034
7023
  * Время кэширования данных ответов на запросы (секунд).
7035
7024
  */
7036
7025
  s(this, "responseDataCacheTimeout");
7037
- this.responseDataCacheTimeout = S().config.http.responseDataCacheTimeout;
7026
+ this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
7038
7027
  }
7039
7028
  /**
7040
7029
  * Возвращает кэшированные данные.
@@ -7044,7 +7033,7 @@ const Pe = class Pe extends h {
7044
7033
  */
7045
7034
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
7046
7035
  static getCachedResponse(e) {
7047
- const t = Pe.responseDataCache.get(e);
7036
+ const t = Re.responseDataCache.get(e);
7048
7037
  if (t && t.validTo > /* @__PURE__ */ new Date())
7049
7038
  return t.val;
7050
7039
  }
@@ -7055,7 +7044,7 @@ const Pe = class Pe extends h {
7055
7044
  * @param data Данные для кэширования.
7056
7045
  */
7057
7046
  cacheResponse(e, t) {
7058
- Pe.responseDataCache.set(e, {
7047
+ Re.responseDataCache.set(e, {
7059
7048
  validTo: as(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
7060
7049
  val: t
7061
7050
  });
@@ -7072,16 +7061,16 @@ const Pe = class Pe extends h {
7072
7061
  */
7073
7062
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
7074
7063
  getTypedDataArrayRequester(e, t, n = !1, o = {}, c = void 0) {
7075
- const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = n ? Pe.getCachedResponse(u) : void 0;
7064
+ const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = n ? Re.getCachedResponse(u) : void 0;
7076
7065
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (n && g && this.cacheResponse(u, g), g));
7077
7066
  }
7078
7067
  };
7079
7068
  /**
7080
7069
  * Кэш результатов запросов.
7081
7070
  */
7082
- s(Pe, "responseDataCache", /* @__PURE__ */ new Map());
7083
- let Me = Pe;
7084
- class Yi {
7071
+ s(Re, "responseDataCache", /* @__PURE__ */ new Map());
7072
+ let Me = Re;
7073
+ class ji {
7085
7074
  /**
7086
7075
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
7087
7076
  */
@@ -7097,7 +7086,7 @@ class Yi {
7097
7086
  return r.id === 0 && r.guid === "-undefined-";
7098
7087
  }
7099
7088
  }
7100
- class Mt extends Me {
7089
+ class Ft extends Me {
7101
7090
  /**
7102
7091
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
7103
7092
  */
@@ -7120,7 +7109,7 @@ class Mt extends Me {
7120
7109
  }
7121
7110
  }
7122
7111
  var _e = /* @__PURE__ */ ((i) => (i.Processing = "processing", i.Completed = "completed", i.Error = "error", i.NeedsActualization = "needs_actualization", i))(_e || {});
7123
- class Ws {
7112
+ class zs {
7124
7113
  /**
7125
7114
  * Инициализирует экземпляр класса {@link OfferActualization}.
7126
7115
  *
@@ -7143,7 +7132,7 @@ class Ws {
7143
7132
  * @inheritDoc
7144
7133
  */
7145
7134
  s(this, "error");
7146
- this.status = (r == null ? void 0 : r.status) ?? _e.Processing, this.actualizedAt = k.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = k.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
7135
+ this.status = (r == null ? void 0 : r.status) ?? _e.Processing, this.actualizedAt = $.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = $.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
7147
7136
  }
7148
7137
  /**
7149
7138
  * @inheritDoc
@@ -7176,7 +7165,7 @@ class Ws {
7176
7165
  return this.status === _e.Completed && !this.isOutdatedAt(r);
7177
7166
  }
7178
7167
  }
7179
- class Ht extends ir {
7168
+ class Mt extends ir {
7180
7169
  /**
7181
7170
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
7182
7171
  *
@@ -7208,10 +7197,10 @@ class Ht extends ir {
7208
7197
  * @inheritDoc
7209
7198
  */
7210
7199
  s(this, "file");
7211
- this.name = e == null ? void 0 : e.name, this.client = new fe(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 Ws(e.actualization), this.file = e == null ? void 0 : e.file;
7200
+ this.name = e == null ? void 0 : e.name, this.client = new fe(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 zs(e.actualization), this.file = e == null ? void 0 : e.file;
7212
7201
  }
7213
7202
  }
7214
- class js extends Gr {
7203
+ class Ws extends Gr {
7215
7204
  /**
7216
7205
  * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
7217
7206
  *
@@ -7250,7 +7239,7 @@ class js extends Gr {
7250
7239
  return !this.isProductStub && !this.isIgnored && Q(this.lineError);
7251
7240
  }
7252
7241
  }
7253
- class G extends Ht {
7242
+ class G extends Mt {
7254
7243
  /**
7255
7244
  * Инициализирует экземпляр класса {@link Offer}.
7256
7245
  *
@@ -7267,11 +7256,11 @@ class G extends Ht {
7267
7256
  */
7268
7257
  s(this, "products");
7269
7258
  this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
7270
- (t) => e.isProfstroy ? new js(t) : new Gr(t)
7259
+ (t) => e.isProfstroy ? new Ws(t) : new Gr(t)
7271
7260
  );
7272
7261
  }
7273
7262
  }
7274
- class Vi extends de {
7263
+ class Yi extends de {
7275
7264
  /**
7276
7265
  * Инициализирует экземпляр класса {@link OffersListFilters}.
7277
7266
  *
@@ -7314,7 +7303,7 @@ class Vi extends de {
7314
7303
  }
7315
7304
  class lr extends v {
7316
7305
  }
7317
- class Bt extends Ut {
7306
+ class Ht extends Et {
7318
7307
  /**
7319
7308
  * Инициализирует экземпляр класса {@link OrderInfo}.
7320
7309
  *
@@ -7387,7 +7376,7 @@ class Bt extends Ut {
7387
7376
  }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new lr(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 = I(e == null ? void 0 : e.attachedAt) ? _(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;
7388
7377
  }
7389
7378
  }
7390
- class Ys extends bt {
7379
+ class js extends Tt {
7391
7380
  /**
7392
7381
  * Инициализирует экземпляр класса {@link OrderItem}.
7393
7382
  *
@@ -7444,10 +7433,10 @@ class Ys extends bt {
7444
7433
  * Продукт, которым заменена текущая запись.
7445
7434
  */
7446
7435
  s(this, "replacement");
7447
- this.product = new Re(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 = V(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"));
7436
+ this.product = new Pe(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 = V(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"));
7448
7437
  }
7449
7438
  }
7450
- class L extends Bt {
7439
+ class L extends Ht {
7451
7440
  /**
7452
7441
  * Инициализирует экземпляр класса {@link Order}.
7453
7442
  *
@@ -7515,11 +7504,11 @@ class L extends Bt {
7515
7504
  this.products = (e.products ?? []).map((n) => {
7516
7505
  var c;
7517
7506
  const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
7518
- return new Ys(n, o);
7507
+ return new js(n, o);
7519
7508
  }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? sr.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((n) => new lr(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
7520
7509
  }
7521
7510
  }
7522
- class Qi extends M {
7511
+ class Vi extends M {
7523
7512
  /**
7524
7513
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
7525
7514
  *
@@ -7531,7 +7520,7 @@ class Qi extends M {
7531
7520
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
7532
7521
  */
7533
7522
  getOffers(r, e, t, n) {
7534
- return this.getTypedPaginated(Ht, "/internal/orders/offers", r, e, t, {}, void 0, n);
7523
+ return this.getTypedPaginated(Mt, "/internal/orders/offers", r, e, t, {}, void 0, n);
7535
7524
  }
7536
7525
  /**
7537
7526
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -7635,12 +7624,12 @@ class Qi extends M {
7635
7624
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
7636
7625
  */
7637
7626
  createOrderFromDraft(r, e, t, n = {}) {
7638
- const o = S().config.dateFormats.api;
7627
+ const o = k().config.dateFormats.api;
7639
7628
  return this.post(
7640
7629
  `/internal/orders/offers/${r}/create-order`,
7641
7630
  {
7642
7631
  ...e,
7643
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, o) : void 0,
7632
+ deliveryDate: e.deliveryDate ? S(e.deliveryDate, o) : void 0,
7644
7633
  items: t != null && t.length ? t : void 0
7645
7634
  },
7646
7635
  (c) => U.instanceListInitializer(L, c.data),
@@ -7755,7 +7744,7 @@ class Qi extends M {
7755
7744
  return this.post(`/internal/orders/offers/${r}/send`, e);
7756
7745
  }
7757
7746
  }
7758
- class Ji {
7747
+ class Qi {
7759
7748
  /**
7760
7749
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
7761
7750
  *
@@ -7774,8 +7763,8 @@ class Ji {
7774
7763
  return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
7775
7764
  }
7776
7765
  }
7777
- var Vs = /* @__PURE__ */ ((i) => (i.View = "view", i.Share = "share", i.EditTags = "edit_tags", i.SaveOrderIgnoredProducts = "save_order_ignored_products", i.ChangeStatus = "change_status", i.ChangeProducts = "change_products", i.ChangeOrderParameters = "change_order_parameters", i.Recalculate = "recalculate", i.AttachOrder = "attach_order", i.DetachOrder = "detach_order", i.ChangeAttachedOperator = "change_attached_operator", i.SendOnlinePaymentLink = "send_online_payment_link", i.ConfirmOnlineFullPayment = "confirm_online_full_payment", i.MergeOrders = "merge_orders", i.GetHistory = "get_history", i.CloneOrder = "clone_order", i.DeleteAttachedFile = "delete_attached_file", i))(Vs || {});
7778
- class Ki {
7766
+ var Ys = /* @__PURE__ */ ((i) => (i.View = "view", i.Share = "share", i.EditTags = "edit_tags", i.SaveOrderIgnoredProducts = "save_order_ignored_products", i.ChangeStatus = "change_status", i.ChangeProducts = "change_products", i.ChangeOrderParameters = "change_order_parameters", i.Recalculate = "recalculate", i.AttachOrder = "attach_order", i.DetachOrder = "detach_order", i.ChangeAttachedOperator = "change_attached_operator", i.SendOnlinePaymentLink = "send_online_payment_link", i.ConfirmOnlineFullPayment = "confirm_online_full_payment", i.MergeOrders = "merge_orders", i.GetHistory = "get_history", i.CloneOrder = "clone_order", i.DeleteAttachedFile = "delete_attached_file", i))(Ys || {});
7767
+ class Ji {
7779
7768
  /**
7780
7769
  * Инициализирует экземпляр класса {@link OrderEditorData}.
7781
7770
  *
@@ -7842,11 +7831,11 @@ class Ki {
7842
7831
  this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
7843
7832
  }
7844
7833
  }
7845
- class Gt extends v {
7834
+ class Bt extends v {
7846
7835
  }
7847
- class zt extends v {
7836
+ class Gt extends v {
7848
7837
  }
7849
- class Xi extends de {
7838
+ class Ki extends de {
7850
7839
  /**
7851
7840
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7852
7841
  *
@@ -7947,7 +7936,7 @@ class Xi extends de {
7947
7936
  * @inheritDoc
7948
7937
  */
7949
7938
  s(this, "onlyMyRegions");
7950
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Gt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new ee(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 D(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 X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new zt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7939
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Bt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new ee(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 D(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 X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Gt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7951
7940
  }
7952
7941
  /**
7953
7942
  * @inheritDoc
@@ -7998,7 +7987,7 @@ class Xi extends de {
7998
7987
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
7999
7988
  }
8000
7989
  }
8001
- class Qs {
7990
+ class Vs {
8002
7991
  /**
8003
7992
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
8004
7993
  *
@@ -8024,7 +8013,7 @@ class Qs {
8024
8013
  this.user = new q(r == null ? void 0 : r.user), this.status = new lr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = I(r == null ? void 0 : r.createdAt) ? _(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
8025
8014
  }
8026
8015
  }
8027
- class Zi extends M {
8016
+ class Xi extends M {
8028
8017
  /**
8029
8018
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
8030
8019
  *
@@ -8036,7 +8025,7 @@ class Zi extends M {
8036
8025
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
8037
8026
  */
8038
8027
  getOrders(r, e, t, n) {
8039
- return this.getTypedPaginated(Bt, "/internal/orders", r, e, t, {}, void 0, n);
8028
+ return this.getTypedPaginated(Ht, "/internal/orders", r, e, t, {}, void 0, n);
8040
8029
  }
8041
8030
  /**
8042
8031
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -8091,12 +8080,12 @@ class Zi extends M {
8091
8080
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
8092
8081
  */
8093
8082
  createClientOrder(r, e, t, n = {}) {
8094
- const o = S().config.dateFormats.api;
8083
+ const o = k().config.dateFormats.api;
8095
8084
  return this.post(
8096
8085
  `/internal/clients/${r}/orders`,
8097
8086
  {
8098
8087
  ...e,
8099
- deliveryDate: $(e.deliveryDate, o),
8088
+ deliveryDate: S(e.deliveryDate, o),
8100
8089
  items: t != null && t.length ? t : void 0
8101
8090
  },
8102
8091
  (c) => U.instanceListInitializer(L, c.data),
@@ -8166,12 +8155,12 @@ class Zi extends M {
8166
8155
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
8167
8156
  */
8168
8157
  updateOrder(r, e, t = {}) {
8169
- const n = S().config.dateFormats.api;
8158
+ const n = k().config.dateFormats.api;
8170
8159
  return this.patch(
8171
8160
  `/internal/orders/${r}`,
8172
8161
  {
8173
8162
  ...e,
8174
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, n) : void 0
8163
+ deliveryDate: e.deliveryDate ? S(e.deliveryDate, n) : void 0
8175
8164
  },
8176
8165
  (o) => new L(o.data),
8177
8166
  t
@@ -8250,7 +8239,7 @@ class Zi extends M {
8250
8239
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
8251
8240
  */
8252
8241
  getOrderStatusHistory(r) {
8253
- return this.getTypedList(Qs, `/internal/orders/${r}/history`);
8242
+ return this.getTypedList(Vs, `/internal/orders/${r}/history`);
8254
8243
  }
8255
8244
  /**
8256
8245
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -8379,11 +8368,11 @@ class Zi extends M {
8379
8368
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
8380
8369
  */
8381
8370
  getDeliveryCost(r, e, t, n) {
8382
- const o = S().config.dateFormats.api;
8371
+ const o = k().config.dateFormats.api;
8383
8372
  return this.get(
8384
8373
  `/internal/orders/delivery/${r}/cost`,
8385
8374
  {
8386
- date: $(e, o),
8375
+ date: S(e, o),
8387
8376
  warehouse_id: t
8388
8377
  },
8389
8378
  (c) => c.data,
@@ -8392,7 +8381,7 @@ class Zi extends M {
8392
8381
  );
8393
8382
  }
8394
8383
  }
8395
- const en = Symbol("currentOrder");
8384
+ const Zi = Symbol("currentOrder");
8396
8385
  class Tr {
8397
8386
  /**
8398
8387
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
@@ -8425,7 +8414,7 @@ class Tr {
8425
8414
  }
8426
8415
  const br = (i) => {
8427
8416
  var r, e, t, n, o;
8428
- return i ? vt(
8417
+ return i ? Ct(
8429
8418
  {
8430
8419
  cities: (r = i.cities) == null ? void 0 : r.map((c) => c.id),
8431
8420
  clients: (e = i.clients) == null ? void 0 : e.map((c) => c.id),
@@ -8440,7 +8429,7 @@ const br = (i) => {
8440
8429
  const r = {};
8441
8430
  return i.from && (i.from.coefficient || i.from.value) && (r.from = {}, i.from.coefficient && (r.from.priceCoefficientId = i.from.coefficient.id), i.from.value && (r.from.increasePercent = i.from.value)), i.to && (i.to.coefficient || i.to.value) && (r.to = {}, i.to.coefficient && (r.to.priceCoefficientId = i.to.coefficient.id), i.to.value && (r.to.increasePercent = i.to.value)), r;
8442
8431
  };
8443
- class rn extends h {
8432
+ class en extends h {
8444
8433
  /**
8445
8434
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
8446
8435
  *
@@ -8501,7 +8490,7 @@ class rn extends h {
8501
8490
  );
8502
8491
  }
8503
8492
  }
8504
- class Js {
8493
+ class Qs {
8505
8494
  /**
8506
8495
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
8507
8496
  *
@@ -8551,7 +8540,7 @@ class Js {
8551
8540
  this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = I(r.costDate) ? _(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Fe(r.product) : void 0, this.client = r.client ? new 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;
8552
8541
  }
8553
8542
  }
8554
- class Ks extends Fe {
8543
+ class Js extends Fe {
8555
8544
  /**
8556
8545
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
8557
8546
  *
@@ -8563,10 +8552,10 @@ class Ks extends Fe {
8563
8552
  * @inheritDoc
8564
8553
  */
8565
8554
  s(this, "history");
8566
- this.history = R(e.history, (t) => new Js(t));
8555
+ this.history = P(e.history, (t) => new Qs(t));
8567
8556
  }
8568
8557
  }
8569
- class tn extends h {
8558
+ class rn extends h {
8570
8559
  /**
8571
8560
  * Возвращает данные об истории изменения цен.
8572
8561
  *
@@ -8576,17 +8565,17 @@ class tn extends h {
8576
8565
  */
8577
8566
  getProductPriceHistory(r) {
8578
8567
  var o, c, u, p, g;
8579
- const e = S().config.dateFormats.api, t = vt(
8568
+ const e = k().config.dateFormats.api, t = Ct(
8580
8569
  Ne(r, {
8581
8570
  costDate: {
8582
- from: rr((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
8583
- to: rr((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
8571
+ from: rr((o = r.costDate) == null ? void 0 : o.from) ? S(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
8572
+ to: rr((u = r.costDate) == null ? void 0 : u.to) ? S(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
8584
8573
  }
8585
8574
  }),
8586
8575
  (a) => m(a) || (V(a) || er(a)) && Q(a)
8587
8576
  ), n = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
8588
8577
  return delete t.product, this.get(`/internal/price/products/${n}/history`, t).then((a) => [
8589
- new Ks(Ne(a[0], { history: a }))
8578
+ new Js(Ne(a[0], { history: a }))
8590
8579
  ]);
8591
8580
  }
8592
8581
  }
@@ -8608,7 +8597,7 @@ class ht {
8608
8597
  r != null && r.products && (this.products = r.products.map((e) => new Fe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Fe(e)));
8609
8598
  }
8610
8599
  }
8611
- class sn extends h {
8600
+ class tn extends h {
8612
8601
  /**
8613
8602
  * Возвращает данные о рекомендациях указанной категории продуктов.
8614
8603
  *
@@ -8654,10 +8643,10 @@ class sn extends h {
8654
8643
  });
8655
8644
  }
8656
8645
  }
8657
- var Xs = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(Xs || {}), Zs = /* @__PURE__ */ ((i) => (i.CanceledBy1c = "canceled_by1c", i.CanceledByClient = "canceled_by_client", i.FinishedNotApproved = "finished_not_approved", i.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", i.WillWaiting = "will_waiting", i))(Zs || {});
8658
- class ei extends v {
8646
+ var Ks = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(Ks || {}), Xs = /* @__PURE__ */ ((i) => (i.CanceledBy1c = "canceled_by1c", i.CanceledByClient = "canceled_by_client", i.FinishedNotApproved = "finished_not_approved", i.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", i.WillWaiting = "will_waiting", i))(Xs || {});
8647
+ class Zs extends v {
8659
8648
  }
8660
- class ri extends v {
8649
+ class ei extends v {
8661
8650
  }
8662
8651
  class gt extends v {
8663
8652
  /**
@@ -8675,15 +8664,15 @@ class gt extends v {
8675
8664
  this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((n) => new cr(n))) ?? [];
8676
8665
  }
8677
8666
  }
8667
+ class ri extends v {
8668
+ }
8678
8669
  class ti extends v {
8679
8670
  }
8680
8671
  class si extends v {
8681
8672
  }
8682
8673
  class ii extends v {
8683
8674
  }
8684
- class ni extends v {
8685
- }
8686
- class nn {
8675
+ class sn {
8687
8676
  /**
8688
8677
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
8689
8678
  *
@@ -8702,7 +8691,7 @@ class nn {
8702
8691
  return r.id === 0 && r.slug === "-undefined-";
8703
8692
  }
8704
8693
  }
8705
- class Wt extends v {
8694
+ class zt extends v {
8706
8695
  }
8707
8696
  const j = class j extends Me {
8708
8697
  /**
@@ -8722,20 +8711,20 @@ const j = class j extends Me {
8722
8711
  * и использовать в случае аналогичных запросов.
8723
8712
  */
8724
8713
  getReference(r, e = !1) {
8725
- return this.getTypedDataArrayRequester(ei, `/internal/references/${r}`, e);
8714
+ return this.getTypedDataArrayRequester(Zs, `/internal/references/${r}`, e);
8726
8715
  }
8727
8716
  /**
8728
8717
  * Возвращает {@link Promise} для получения справочника данных о канале
8729
8718
  * первичного интереса.
8730
8719
  */
8731
8720
  getChannelPrimaryInterest() {
8732
- return this.getTypedDataArrayRequester(Nt, "/internal/references/channel-primary-interest", !0);
8721
+ return this.getTypedDataArrayRequester(qt, "/internal/references/channel-primary-interest", !0);
8733
8722
  }
8734
8723
  /**
8735
8724
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
8736
8725
  */
8737
8726
  getContactPositions() {
8738
- return this.getTypedDataArrayRequester(ti, "/internal/references/contact-position", !0);
8727
+ return this.getTypedDataArrayRequester(ri, "/internal/references/contact-position", !0);
8739
8728
  }
8740
8729
  /**
8741
8730
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -8766,13 +8755,13 @@ const j = class j extends Me {
8766
8755
  * Возвращает {@link Promise} для получения справочника операторов.
8767
8756
  */
8768
8757
  getOperators() {
8769
- return this.getTypedDataArrayRequester(Gt, "/internal/references/operator", !0);
8758
+ return this.getTypedDataArrayRequester(Bt, "/internal/references/operator", !0);
8770
8759
  }
8771
8760
  /**
8772
8761
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
8773
8762
  */
8774
8763
  getOrderPaymentStatuses() {
8775
- return this.getTypedDataArrayRequester(si, "/public/references/order-payment-status", !0);
8764
+ return this.getTypedDataArrayRequester(ti, "/public/references/order-payment-status", !0);
8776
8765
  }
8777
8766
  /**
8778
8767
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
@@ -8784,19 +8773,19 @@ const j = class j extends Me {
8784
8773
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
8785
8774
  */
8786
8775
  getOrderStatusDetails() {
8787
- return this.getTypedDataArrayRequester(ii, "/internal/references/order-status-detail", !0);
8776
+ return this.getTypedDataArrayRequester(si, "/internal/references/order-status-detail", !0);
8788
8777
  }
8789
8778
  /**
8790
8779
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
8791
8780
  */
8792
8781
  getPaymentTypes() {
8793
- return this.getTypedDataArrayRequester(zt, "/public/references/payment-type", !0);
8782
+ return this.getTypedDataArrayRequester(Gt, "/public/references/payment-type", !0);
8794
8783
  }
8795
8784
  /**
8796
8785
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
8797
8786
  */
8798
8787
  getResourceTypes() {
8799
- return this.getTypedDataArrayRequester(Wt, "/internal/references/resource-type", !0);
8788
+ return this.getTypedDataArrayRequester(zt, "/internal/references/resource-type", !0);
8800
8789
  }
8801
8790
  /**
8802
8791
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -8808,7 +8797,7 @@ const j = class j extends Me {
8808
8797
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
8809
8798
  */
8810
8799
  getSourcePrimaryInterest() {
8811
- return this.getTypedDataArrayRequester(Et, "/internal/references/source-primary-interest", !0);
8800
+ return this.getTypedDataArrayRequester(Nt, "/internal/references/source-primary-interest", !0);
8812
8801
  }
8813
8802
  /**
8814
8803
  * Выполняет поиск данных о городах по терму в названии.
@@ -8846,7 +8835,7 @@ const j = class j extends Me {
8846
8835
  * @param regionId Идентификатор региона.
8847
8836
  */
8848
8837
  getCitiesByRegion(r) {
8849
- return this.getTypedDataArrayRequester(ri, "/internal/references/city", !1, { params: { regionId: r } }).then(
8838
+ return this.getTypedDataArrayRequester(ei, "/internal/references/city", !1, { params: { regionId: r } }).then(
8850
8839
  (e) => j.withoutUnknownLocation(e)
8851
8840
  );
8852
8841
  }
@@ -8914,7 +8903,7 @@ const j = class j extends Me {
8914
8903
  * Возвращает {@link Promise} для получения справочника типов свойств.
8915
8904
  */
8916
8905
  getPropertyTypes() {
8917
- return this.getTypedDataArrayRequester(Lt, "/internal/references/property-type", !0);
8906
+ return this.getTypedDataArrayRequester(Ot, "/internal/references/property-type", !0);
8918
8907
  }
8919
8908
  /**
8920
8909
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -8926,7 +8915,7 @@ const j = class j extends Me {
8926
8915
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
8927
8916
  */
8928
8917
  getProductFileType() {
8929
- return this.getTypedDataArrayRequester(ni, "/public/references/product-file-type", !0);
8918
+ return this.getTypedDataArrayRequester(ii, "/public/references/product-file-type", !0);
8930
8919
  }
8931
8920
  };
8932
8921
  /**
@@ -9019,102 +9008,102 @@ const A = pe("common.references_private", () => {
9019
9008
  */
9020
9009
  priceCoefficientsReference: l
9021
9010
  };
9022
- }), on = pe("common.references", () => {
9011
+ }), nn = pe("common.references", () => {
9023
9012
  const i = b(() => {
9024
9013
  const l = A();
9025
9014
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
9026
9015
  l.channelPrimaryInterestReference = f;
9027
- }).catch(P)), l.channelPrimaryInterestReference;
9016
+ }).catch(R)), l.channelPrimaryInterestReference;
9028
9017
  }), r = b(() => {
9029
9018
  const l = A();
9030
9019
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
9031
9020
  l.contactPositionsReference = f;
9032
- }).catch(P)), l.contactPositionsReference;
9021
+ }).catch(R)), l.contactPositionsReference;
9033
9022
  }), e = b(() => {
9034
9023
  const l = A();
9035
9024
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
9036
9025
  l.currencyReference = f;
9037
- }).catch(P)), l.currencyReference;
9026
+ }).catch(R)), l.currencyReference;
9038
9027
  }), t = b(() => {
9039
9028
  const l = A();
9040
9029
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
9041
9030
  l.opfReference = f;
9042
- }).catch(P)), l.opfReference;
9031
+ }).catch(R)), l.opfReference;
9043
9032
  }), n = b(() => {
9044
9033
  const l = A();
9045
9034
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
9046
9035
  l.operatorReference = f;
9047
- }).catch(P)), l.operatorReference;
9036
+ }).catch(R)), l.operatorReference;
9048
9037
  }), o = b(() => {
9049
9038
  const l = A();
9050
9039
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
9051
9040
  l.orderPaymentStatusReference = f;
9052
- }).catch(P)), l.orderPaymentStatusReference;
9041
+ }).catch(R)), l.orderPaymentStatusReference;
9053
9042
  }), c = b(() => {
9054
9043
  const l = A();
9055
9044
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
9056
9045
  l.orderStatusReference = f;
9057
- }).catch(P)), l.orderStatusReference;
9046
+ }).catch(R)), l.orderStatusReference;
9058
9047
  }), u = b(() => {
9059
9048
  const l = A();
9060
9049
  return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
9061
9050
  l.orderStatusDetailReference = f;
9062
- }).catch(P)), l.orderStatusDetailReference;
9051
+ }).catch(R)), l.orderStatusDetailReference;
9063
9052
  }), p = b(() => {
9064
9053
  const l = A();
9065
9054
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
9066
9055
  l.paymentTypeReference = f;
9067
- }).catch(P)), l.paymentTypeReference;
9056
+ }).catch(R)), l.paymentTypeReference;
9068
9057
  }), g = b(() => {
9069
9058
  const l = A();
9070
9059
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
9071
9060
  l.partnerGroupReference = f;
9072
- }).catch(P)), l.partnerGroupReference;
9061
+ }).catch(R)), l.partnerGroupReference;
9073
9062
  }), a = b(() => {
9074
9063
  const l = A();
9075
9064
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
9076
9065
  l.productFileTypeReference = f;
9077
- }).catch(P)), l.productFileTypeReference;
9066
+ }).catch(R)), l.productFileTypeReference;
9078
9067
  }), T = b(() => {
9079
9068
  const l = A();
9080
9069
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
9081
9070
  l.resourceTypesReference = f;
9082
- }).catch(P)), l.resourceTypesReference;
9071
+ }).catch(R)), l.resourceTypesReference;
9083
9072
  }), Ae = b(() => {
9084
9073
  const l = A();
9085
9074
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
9086
9075
  l.salesDirectionsReference = f;
9087
- }).catch(P)), l.salesDirectionsReference;
9076
+ }).catch(R)), l.salesDirectionsReference;
9088
9077
  }), Se = b(() => {
9089
9078
  const l = A();
9090
9079
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
9091
9080
  l.sourcePrimaryInterestReference = f;
9092
- }).catch(P)), l.sourcePrimaryInterestReference;
9081
+ }).catch(R)), l.sourcePrimaryInterestReference;
9093
9082
  }), me = b(() => {
9094
9083
  const l = A();
9095
9084
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
9096
9085
  l.deliveryTypeReference = f;
9097
- }).catch(P)), l.deliveryTypeReference;
9086
+ }).catch(R)), l.deliveryTypeReference;
9098
9087
  }), ye = b(() => {
9099
9088
  const l = A();
9100
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Mt).getManagers().then((f) => {
9089
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ft).getManagers().then((f) => {
9101
9090
  l.managersList = f;
9102
- }).catch(P)), l.managersList;
9091
+ }).catch(R)), l.managersList;
9103
9092
  }), ur = b(() => {
9104
9093
  const l = A();
9105
9094
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
9106
9095
  l.warehousesReference = f;
9107
- }).catch(P)), l.warehousesReference;
9096
+ }).catch(R)), l.warehousesReference;
9108
9097
  }), pr = b(() => {
9109
9098
  const l = A();
9110
9099
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
9111
9100
  l.propertyTypesReference = f;
9112
- }).catch(P)), l.propertyTypesReference;
9101
+ }).catch(R)), l.propertyTypesReference;
9113
9102
  }), hr = b(() => {
9114
9103
  const l = A();
9115
9104
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
9116
9105
  l.priceCoefficientsReference = f;
9117
- }).catch(P)), l.priceCoefficientsReference;
9106
+ }).catch(R)), l.priceCoefficientsReference;
9118
9107
  });
9119
9108
  return {
9120
9109
  /**
@@ -9195,7 +9184,7 @@ const A = pe("common.references_private", () => {
9195
9184
  priceCoefficientsReference: hr
9196
9185
  };
9197
9186
  });
9198
- class oi {
9187
+ class ni {
9199
9188
  /**
9200
9189
  * Инициализирует экземпляр класса {@link MetaTagItem}.
9201
9190
  *
@@ -9253,10 +9242,10 @@ class ft {
9253
9242
  */
9254
9243
  s(this, "tags");
9255
9244
  var e;
9256
- this.resourceType = new Wt(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 oi(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
9245
+ this.resourceType = new zt(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 ni(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
9257
9246
  }
9258
9247
  }
9259
- class cn extends h {
9248
+ class on extends h {
9260
9249
  /**
9261
9250
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
9262
9251
  *
@@ -9287,7 +9276,7 @@ class cn extends h {
9287
9276
  return this.delete(`/internal/seo/${r.slug}/${e}`);
9288
9277
  }
9289
9278
  }
9290
- class ci extends re {
9279
+ class oi extends re {
9291
9280
  /**
9292
9281
  * Инициализирует экземпляр класса {@link SearchProductStatistic}.
9293
9282
  *
@@ -9307,10 +9296,10 @@ class ci extends re {
9307
9296
  * @inheritDoc
9308
9297
  */
9309
9298
  s(this, "lastSearchedAt");
9310
- this.text = (e == null ? void 0 : e.text) ?? "", this.searchCount = (e == null ? void 0 : e.searchCount) ?? 0, this.lastSearchedAt = k.parse(e == null ? void 0 : e.lastSearchedAt);
9299
+ this.text = (e == null ? void 0 : e.text) ?? "", this.searchCount = (e == null ? void 0 : e.searchCount) ?? 0, this.lastSearchedAt = $.parse(e == null ? void 0 : e.lastSearchedAt);
9311
9300
  }
9312
9301
  }
9313
- class ln extends h {
9302
+ class cn extends h {
9314
9303
  /**
9315
9304
  * Возвращает список поисковых запросов товаров, последний поиск по которым был в указанном периоде.
9316
9305
  *
@@ -9320,7 +9309,7 @@ class ln extends h {
9320
9309
  * @see /doc/api/internal#/operations/api_internal_statistics_search_products_get_list
9321
9310
  */
9322
9311
  getSearchProductsStatistics(r, e) {
9323
- return this.getTypedList(ci, "/internal/statistics/search/products", { date: k.periodToApiFormat(r) }, !1, e);
9312
+ return this.getTypedList(oi, "/internal/statistics/search/products", { date: $.periodToApiFormat(r) }, !1, e);
9324
9313
  }
9325
9314
  /**
9326
9315
  * Удаляет поисковый запрос товаров из статистики.
@@ -9357,7 +9346,7 @@ class dr {
9357
9346
  this.showFeedback = !!r, this.feedback = r, this.validationStatus = e;
9358
9347
  }
9359
9348
  }
9360
- class un {
9349
+ class ln {
9361
9350
  /**
9362
9351
  * Возвращает признак, что адрес с указанной полнотой нельзя сохранять.
9363
9352
  *
@@ -9387,7 +9376,7 @@ class un {
9387
9376
  }
9388
9377
  }
9389
9378
  }
9390
- class pn extends h {
9379
+ class un extends h {
9391
9380
  /**
9392
9381
  * Возвращает подсказки по адресам.
9393
9382
  *
@@ -9434,8 +9423,8 @@ class pn extends h {
9434
9423
  });
9435
9424
  }
9436
9425
  }
9437
- var jt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.ExternalSeo = "external_seo", i.Guest = "guest", i))(jt || {});
9438
- class li extends Ot {
9426
+ var Wt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.ExternalSeo = "external_seo", i.Guest = "guest", i))(Wt || {});
9427
+ class ci extends kt {
9439
9428
  /**
9440
9429
  * Инициализирует экземпляр класса {@link User}.
9441
9430
  *
@@ -9459,15 +9448,15 @@ class li extends Ot {
9459
9448
  * Роль ценообразования текущего пользователя.
9460
9449
  */
9461
9450
  s(this, "pricingRole");
9462
- 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 St(e.pricingRole) : void 0;
9451
+ 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 At(e.pricingRole) : void 0;
9463
9452
  }
9464
9453
  }
9465
- class hn extends h {
9454
+ class pn extends h {
9466
9455
  /**
9467
9456
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
9468
9457
  */
9469
9458
  constructor() {
9470
- super(), this.baseUrl = `${S().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
9459
+ super(), this.baseUrl = `${k().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
9471
9460
  }
9472
9461
  /**
9473
9462
  * Функция для получения обновленных токенов доступа.
@@ -9478,13 +9467,13 @@ class hn extends h {
9478
9467
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
9479
9468
  }
9480
9469
  }
9481
- class ui extends h {
9470
+ class li extends h {
9482
9471
  /**
9483
9472
  * Возвращает данные о текущем пользователе.
9484
9473
  */
9485
9474
  // eslint-disable-next-line class-methods-use-this
9486
9475
  getCurrentUser() {
9487
- return this.get("/internal/users/info", {}, (r) => new li(r.data), !0);
9476
+ return this.get("/internal/users/info", {}, (r) => new ci(r.data), !0);
9488
9477
  }
9489
9478
  }
9490
9479
  const qr = pe("common.user_private", () => {
@@ -9506,18 +9495,18 @@ const qr = pe("common.user_private", () => {
9506
9495
  });
9507
9496
  function mt(i) {
9508
9497
  const r = qr();
9509
- (i == null ? void 0 : i.type) !== jt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Mt).getManager(i.id).then((e) => {
9498
+ (i == null ? void 0 : i.type) !== Wt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Ft).getManager(i.id).then((e) => {
9510
9499
  r.currentManager = e;
9511
- }).catch(P).finally(() => {
9500
+ }).catch(R).finally(() => {
9512
9501
  r.dataLoaderList.currentManager = !1;
9513
9502
  }));
9514
9503
  }
9515
- const gn = pe("common.user", () => {
9504
+ const hn = pe("common.user", () => {
9516
9505
  const i = b(() => {
9517
9506
  const e = qr();
9518
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(ui).getCurrentUser().then((t) => {
9507
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(li).getCurrentUser().then((t) => {
9519
9508
  e.currentUser = t, mt(t);
9520
- }).catch(P).finally(() => {
9509
+ }).catch(R).finally(() => {
9521
9510
  e.dataLoaderList.currentUser = !1;
9522
9511
  })), e.currentUser;
9523
9512
  }), r = b(() => (mt(i.value), qr().currentManager));
@@ -9570,7 +9559,7 @@ class Ar extends cr {
9570
9559
  this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ee(o))) ?? [], this.users = ((n = e == null ? void 0 : e.users) == null ? void 0 : n.map((o) => new Nr(o))) ?? [];
9571
9560
  }
9572
9561
  }
9573
- class fn extends de {
9562
+ class gn extends de {
9574
9563
  /**
9575
9564
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
9576
9565
  *
@@ -9606,7 +9595,7 @@ class fn extends de {
9606
9595
  return this;
9607
9596
  }
9608
9597
  }
9609
- class mn extends M {
9598
+ class fn extends M {
9610
9599
  /**
9611
9600
  * Возвращает список регионов пользователей.
9612
9601
  *
@@ -9707,8 +9696,8 @@ class mn extends M {
9707
9696
  }
9708
9697
  export {
9709
9698
  Ze as AddressQualityEnum,
9710
- un as AddressQualityHelper,
9711
- ei as AnyReference,
9699
+ ln as AddressQualityHelper,
9700
+ Zs as AnyReference,
9712
9701
  Ts as AppBaseConfig,
9713
9702
  Lr as BankAccount,
9714
9703
  M as BasePaginationProvider,
@@ -9717,81 +9706,80 @@ export {
9717
9706
  Qe as BlogPostMediaTypeEnum,
9718
9707
  Je as BlogPostPublicationStatusEnum,
9719
9708
  Ue as BlogPostShortInfo,
9720
- Ci as BlogPostsListFilters,
9709
+ wi as BlogPostsListFilters,
9721
9710
  kr as BlogProvider,
9722
9711
  Ss as CalculationTypeEnum,
9723
9712
  y as CalendarHelper,
9724
9713
  Le as Cart,
9725
- Di as CartProvider,
9714
+ vi as CartProvider,
9726
9715
  Ri as CatalogProvider,
9727
- Tt as CatalogableItem,
9716
+ Pt as CatalogableItem,
9728
9717
  Y as Category,
9729
9718
  Is as CategoryFilter,
9730
9719
  nt as CategoryFilterSetting,
9731
9720
  xs as CategoryFilterValue,
9732
9721
  it as CategoryPricingRule,
9733
- Nt as ChannelPrimaryInterest,
9734
- ri as City,
9722
+ qt as ChannelPrimaryInterest,
9723
+ ei as City,
9735
9724
  ee as CityWithRegionAndCountry,
9736
9725
  gt as CityWithUserRegion,
9737
9726
  lt as Client,
9738
9727
  Es as ClientAdditionalData,
9739
9728
  tr as ClientCategory,
9740
9729
  W as ClientDataProvider,
9741
- xt as ClientPriceCatalogableItem,
9730
+ Lt as ClientPriceCatalogableItem,
9742
9731
  st as ClientPriceCategory,
9743
9732
  Dr as ClientPriceProduct,
9744
- Ti as ClientPriceProvider,
9745
- bi as ClientPriceTemplateProvider,
9746
- Re as ClientProduct,
9747
- Si as ClientProductCategoryDataProvider,
9748
- $i as ClientProductDataProvider,
9733
+ Pi as ClientPriceProvider,
9734
+ Ti as ClientPriceTemplateProvider,
9735
+ Pe as ClientProduct,
9736
+ Ai as ClientProductCategoryDataProvider,
9737
+ Si as ClientProductDataProvider,
9749
9738
  fe as ClientShortInfo,
9750
9739
  _s as ClientsAdditionalDataRequestTypeEnum,
9751
- Ii as ClientsListFilters,
9740
+ xi as ClientsListFilters,
9752
9741
  Fe as CodedIdentity,
9753
- Ni as ConfiguratorProvider,
9742
+ qi as ConfiguratorProvider,
9754
9743
  Fs as ConfiguratorsEnum,
9755
9744
  xr as Contact,
9756
- At as ContactLinks,
9745
+ dt as ContactLinks,
9757
9746
  ce as ContactPerson,
9758
9747
  Us as ContactPersonRelated,
9759
- ti as ContactPosition,
9760
- Pr as ContactRelation,
9761
- It as ContragentBase,
9748
+ ri as ContactPosition,
9749
+ Rr as ContactRelation,
9750
+ xt as ContragentBase,
9762
9751
  sr as ContragentFactory,
9763
- _t as ContragentIc,
9752
+ It as ContragentIc,
9764
9753
  qs as ContragentPerson,
9765
9754
  Ns as ContragentUlNr,
9766
- qt as ContragentUlR,
9755
+ _t as ContragentUlR,
9767
9756
  Br as CostSourceEnum,
9768
9757
  Te as Country,
9769
9758
  ir as CreatableIdentity,
9770
9759
  Wr as CuratedDirection,
9771
9760
  jr as Curator,
9772
9761
  J as Currency,
9773
- pn as DataSuggestionProvider,
9774
- k as DateHelper,
9775
- Hi as DateTimeProvider,
9762
+ un as DataSuggestionProvider,
9763
+ $ as DateHelper,
9764
+ Mi as DateTimeProvider,
9776
9765
  Os as DeletableIdentity,
9777
9766
  or as DeletableNamedIdentity,
9778
9767
  qe as DeliveryAddress,
9779
9768
  X as DeliveryType,
9780
- Dt as DetailedJwtPayload,
9769
+ vt as DetailedJwtPayload,
9781
9770
  vs as DeviceTypeResolutionConfig,
9782
- Rr as Discount,
9771
+ Pr as Discount,
9783
9772
  Ir as DiscountClient,
9784
9773
  ut as DiscountClientEligibility,
9785
9774
  Bs as DiscountConditions,
9786
- Gs as DiscountHelper,
9787
9775
  _r as DiscountProvider,
9788
9776
  Mr as DiscountShortInfo,
9789
9777
  Ke as DiscountStateEnum,
9790
- zs as DiscountStateHelper,
9791
- zi as DiscountsListFilters,
9778
+ Gs as DiscountStateHelper,
9779
+ Gi as DiscountsListFilters,
9792
9780
  We as Faq,
9793
9781
  Xe as FaqGroup,
9794
- Wi as FaqProvider,
9782
+ zi as FaqProvider,
9795
9783
  dr as FieldValidationResultData,
9796
9784
  ne as FilterGroup,
9797
9785
  rt as FilterItem,
@@ -9808,119 +9796,119 @@ export {
9808
9796
  be as JwtPayload,
9809
9797
  Z as Manager,
9810
9798
  zr as ManagerCommon,
9811
- Yi as ManagerDataFactory,
9812
- Mt as ManagerDataProvider,
9813
- oi as MetaTagItem,
9799
+ ji as ManagerDataFactory,
9800
+ Ft as ManagerDataProvider,
9801
+ ni as MetaTagItem,
9814
9802
  N as NamedIdentity,
9815
9803
  G as Offer,
9816
- Ws as OfferActualization,
9804
+ zs as OfferActualization,
9817
9805
  _e as OfferActualizationStatus,
9818
- Ji as OfferHelper,
9819
- Ht as OfferShortInfo,
9820
- Qi as OffersDataProvider,
9821
- Vi as OffersListFilters,
9822
- Gt as Operator,
9806
+ Qi as OfferHelper,
9807
+ Mt as OfferShortInfo,
9808
+ Vi as OffersDataProvider,
9809
+ Yi as OffersListFilters,
9810
+ Bt as Operator,
9823
9811
  le as Opf,
9824
9812
  K as OpfEnum,
9825
9813
  L as Order,
9826
- Vs as OrderAction,
9827
- Ki as OrderEditorData,
9828
- Bt as OrderInfo,
9829
- Ys as OrderItem,
9830
- bt as OrderItemBase,
9831
- si as OrderPaymentStatus,
9832
- Ut as OrderShortInfo,
9814
+ Ys as OrderAction,
9815
+ Ji as OrderEditorData,
9816
+ Ht as OrderInfo,
9817
+ js as OrderItem,
9818
+ Tt as OrderItemBase,
9819
+ ti as OrderPaymentStatus,
9820
+ Et as OrderShortInfo,
9833
9821
  lr as OrderStatus,
9834
- ii as OrderStatusDetail,
9835
- Zs as OrderStatusDetailEnum,
9836
- Xs as OrderStatusEnum,
9837
- Qs as OrderStatusHistoryInfo,
9838
- Zi as OrdersDataProvider,
9839
- Xi as OrdersListFilters,
9822
+ si as OrderStatusDetail,
9823
+ Xs as OrderStatusDetailEnum,
9824
+ Ks as OrderStatusEnum,
9825
+ Vs as OrderStatusHistoryInfo,
9826
+ Xi as OrdersDataProvider,
9827
+ Ki as OrdersListFilters,
9840
9828
  de as PaginationFiltersBase,
9841
9829
  ue as PartnerGroup,
9842
- zt as PaymentType,
9830
+ Gt as PaymentType,
9843
9831
  Ve as PreferencesStorageProvider,
9844
9832
  Tr as PriceAnalyze,
9845
- rn as PriceAnalyzeProvider,
9846
- $t as PriceCatalogableItem,
9833
+ en as PriceAnalyzeProvider,
9834
+ St as PriceCatalogableItem,
9847
9835
  he as PriceCoefficient,
9848
- Pt as PriceCoefficientEnum,
9849
- tn as PriceHistoryDataProvider,
9850
- Js as PriceHistoryItem,
9836
+ Dt as PriceCoefficientEnum,
9837
+ rn as PriceHistoryDataProvider,
9838
+ Qs as PriceHistoryItem,
9851
9839
  ve as PriceTemplate,
9852
9840
  Cr as PriceTemplateCategory,
9853
9841
  xe as PriceTemplateClient,
9854
- kt as PriceTemplateICatalogableItem,
9842
+ $t as PriceTemplateICatalogableItem,
9855
9843
  vr as PriceTemplateProduct,
9856
- ki as PriceTemplateProvider,
9844
+ $i as PriceTemplateProvider,
9857
9845
  Ie as PricingRole,
9858
- Oi as PricingRoleProvider,
9846
+ ki as PricingRoleProvider,
9859
9847
  Or as PrimaryCatalogableItem,
9860
9848
  E as Product,
9861
- di as ProductCategoryDataProvider,
9862
- Ai as ProductDataProvider,
9863
- ni as ProductFileType,
9864
- dt as ProductFilterTypeEnum,
9849
+ bi as ProductCategoryDataProvider,
9850
+ di as ProductDataProvider,
9851
+ ii as ProductFileType,
9852
+ bt as ProductFilterTypeEnum,
9865
9853
  Hr as ProductPriceCoefficient,
9866
- Ks as ProductPriceHistory,
9854
+ Js as ProductPriceHistory,
9867
9855
  tt as ProductUnit,
9868
- js as ProfstroyOfferItem,
9869
- Li as PropertiesProvider,
9856
+ Ws as ProfstroyOfferItem,
9857
+ Oi as PropertiesProvider,
9870
9858
  De as Property,
9871
- Lt as PropertyType,
9859
+ Ot as PropertyType,
9872
9860
  $s as PropertyTypeEnum,
9873
9861
  Ce as PropertyValue,
9874
- sn as RecommendationsDataProvider,
9862
+ tn as RecommendationsDataProvider,
9875
9863
  ht as RecommendationsList,
9876
9864
  v as Reference,
9877
- nn as ReferenceDataFactory,
9865
+ sn as ReferenceDataFactory,
9878
9866
  d as ReferenceDataProvider,
9879
9867
  oe as Region,
9880
- Wt as ResourceType,
9881
- Bi as STANDARD_PERIOD_GROUPS,
9882
- Gi as STANDARD_PERIOD_SECTIONS,
9868
+ zt as ResourceType,
9869
+ Hi as STANDARD_PERIOD_GROUPS,
9870
+ Bi as STANDARD_PERIOD_SECTIONS,
9883
9871
  F as SalesDirection,
9884
- ci as SearchProductStatistic,
9885
- Ps as SentryConfig,
9872
+ oi as SearchProductStatistic,
9873
+ Rs as SentryConfig,
9886
9874
  ft as Seo,
9887
- cn as SeoDataProvider,
9888
- Et as SourcePrimaryInterest,
9889
- ln as StatisticsProvider,
9875
+ on as SeoDataProvider,
9876
+ Nt as SourcePrimaryInterest,
9877
+ cn as StatisticsProvider,
9890
9878
  bs as StockCount,
9891
- Ei as TableDataPagination,
9879
+ Ni as TableDataPagination,
9892
9880
  Ms as TableDataPaginationRequestParams,
9893
- Ui as TableDataSortRequestParams,
9894
- xi as TemplateProductCategoryDataProvider,
9895
- Pi as TemplatesListFilters,
9881
+ Ei as TableDataSortRequestParams,
9882
+ Li as TemplateProductCategoryDataProvider,
9883
+ Di as TemplatesListFilters,
9896
9884
  U as TypedInstanceFactory,
9897
- Ft as UnitsHelper,
9898
- _i as UnknownClientDataProvider,
9885
+ Ut as UnitsHelper,
9886
+ Ii as UnknownClientDataProvider,
9899
9887
  nr as UpdatableNamedIdentity,
9900
- li as User,
9901
- hn as UserAuthDataProvider,
9902
- Ot as UserCommonInfo,
9903
- ui as UserDataProvider,
9904
- St as UserPricingRole,
9888
+ ci as User,
9889
+ pn as UserAuthDataProvider,
9890
+ kt as UserCommonInfo,
9891
+ li as UserDataProvider,
9892
+ At as UserPricingRole,
9905
9893
  Ar as UserRegion,
9906
9894
  Nr as UserRegionEmployee,
9907
- mn as UserRegionProvider,
9895
+ fn as UserRegionProvider,
9908
9896
  cr as UserRegionShortInfo,
9909
- fn as UserRegionsListFilters,
9897
+ gn as UserRegionsListFilters,
9910
9898
  q as UserShortInfo,
9911
- jt as UserTypeEnum,
9912
- qi as VersionConfig,
9899
+ Wt as UserTypeEnum,
9900
+ _i as VersionConfig,
9913
9901
  He as Warehouse,
9914
- Rs as WebSocketConfig,
9915
- en as currentOrderInjectionKey,
9916
- Fi as daysAgoIso,
9902
+ Ps as WebSocketConfig,
9903
+ Zi as currentOrderInjectionKey,
9904
+ Ui as daysAgoIso,
9917
9905
  ot as findCatalogItemByIdRecursive,
9918
9906
  ct as flattenCatalogItems,
9919
- ji as formatPercentChange,
9920
- Mi as formatRelativeDate,
9907
+ Wi as formatPercentChange,
9908
+ Fi as formatRelativeDate,
9921
9909
  Hs as pluralize,
9922
9910
  ze as useAuthStore,
9923
- S as useBaseConfigStore,
9924
- on as useReferencesStore,
9925
- gn as useUserStore
9911
+ k as useBaseConfigStore,
9912
+ nn as useReferencesStore,
9913
+ hn as useUserStore
9926
9914
  };