@snabcentr/common-lib 1.74.3 → 1.74.5

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,13 +1,13 @@
1
- var $r = Object.defineProperty;
2
- var ar = (n, r, e) => r in n ? $r(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => ar(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as ir } from "jwt-decode";
5
- import { merge as ye, isUndefined as br, isNil as A, isEmpty as Y, noop as w, mapValues as nr, isArray as Q, every as Sr, split as Ir, toUpper as xr, constant as Lr, isString as C, cloneDeep as kr, toLower as _r, isFunction as Ue, map as Re, forEach as dr, isDate as _e, omitBy as or, isObject as cr } from "lodash-es";
1
+ var ar = Object.defineProperty;
2
+ var br = (n, r, e) => r in n ? ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => br(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as nr } from "jwt-decode";
5
+ import { merge as ye, isUndefined as Sr, isNil as A, isEmpty as Y, noop as w, mapValues as or, isArray as Q, every as Ir, split as xr, toUpper as kr, constant as Lr, isString as C, cloneDeep as dr, toLower as _r, isFunction as Ue, map as Re, forEach as Or, isDate as de, omitBy as cr, isObject as lr } from "lodash-es";
6
6
  import { objectToCamel as Fe, objectToSnake as We } from "ts-case-convert";
7
- import { isAfter as Je, parseISO as v, startOfToday as de, format as O, addSeconds as Or, addBusinessDays as qr, endOfTomorrow as Nr, startOfTomorrow as Ur, endOfYesterday as Fr, startOfYesterday as Mr, endOfToday as jr, endOfDay as Gr, startOfDay as Br } from "date-fns";
7
+ import { isAfter as Je, parseISO as v, startOfToday as _e, format as O, addSeconds as qr, addBusinessDays as Nr, endOfTomorrow as Ur, startOfTomorrow as Fr, endOfYesterday as Mr, startOfYesterday as jr, endOfToday as Gr, endOfDay as Br, startOfDay as Hr } from "date-fns";
8
8
  import { defineStore as te } from "pinia";
9
- import { ref as y, markRaw as Hr, computed as R } from "vue";
10
- import Er from "axios";
9
+ import { ref as y, markRaw as Er, computed as R } from "vue";
10
+ import zr from "axios";
11
11
  class N {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -107,7 +107,7 @@ class N {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = ir(r), s = new N(Fe(e));
110
+ const e = nr(r), s = new N(Fe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
@@ -151,7 +151,7 @@ class Ut extends N {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new N(Fe(ir(e)));
154
+ return new N(Fe(nr(e)));
155
155
  }
156
156
  }
157
157
  const J = class J {
@@ -168,7 +168,7 @@ const J = class J {
168
168
  */
169
169
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
170
170
  static getConfig() {
171
- if (br(J.config))
171
+ if (Sr(J.config))
172
172
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
173
173
  return J.config;
174
174
  }
@@ -210,7 +210,7 @@ class fe {
210
210
  if (e)
211
211
  try {
212
212
  const s = JSON.parse(e);
213
- if (!s.availableFor || Je(v(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
213
+ if (!s.availableFor || Je(v(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
214
214
  if (A(s.data) || Y(s.data))
215
215
  throw new Error("Data is empty");
216
216
  return s.data;
@@ -284,7 +284,7 @@ class fe {
284
284
  const i = localStorage.getItem(s);
285
285
  if (i) {
286
286
  const o = JSON.parse(i);
287
- o.availableFor && !Je(v(o.availableFor) || de(), /* @__PURE__ */ new Date()) && r.push(s);
287
+ o.availableFor && !Je(v(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
288
288
  }
289
289
  } catch {
290
290
  r.push(s);
@@ -321,11 +321,11 @@ const H = te("__auth_state_private", () => {
321
321
  const c = (u = $.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
322
322
  return c ? Promise.resolve(c) : void 0;
323
323
  })()
324
- ), r = y(void 0), e = y(void 0), s = Hr(/* @__PURE__ */ new Map());
324
+ ), r = y(void 0), e = y(void 0), s = Er(/* @__PURE__ */ new Map());
325
325
  function i() {
326
326
  e.value = void 0, A(n.value) || n.value.then((o) => {
327
327
  const c = N.getJwtPayload(o);
328
- e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
328
+ e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
329
329
  }).catch(w);
330
330
  }
331
331
  return {
@@ -376,7 +376,7 @@ const H = te("__auth_state_private", () => {
376
376
  const c = H();
377
377
  !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
378
378
  const g = N.getJwtPayload(f);
379
- c.userPermissions = g.exp * 1e3 > Date.now() ? nr(g.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
379
+ c.userPermissions = g.exp * 1e3 > Date.now() ? or(g.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
380
380
  }).catch(w);
381
381
  const u = Q(o) ? o.join(" && ") : o;
382
382
  if (c.userPermissionsComputedRefs.has(u))
@@ -384,13 +384,13 @@ const H = te("__auth_state_private", () => {
384
384
  const h = R(() => {
385
385
  const f = (g) => {
386
386
  var B;
387
- const b = Ir(g, ".");
387
+ const b = xr(g, ".");
388
388
  if (b.length < 2)
389
389
  return !1;
390
- const [_, d] = b, G = (B = H().userPermissions) == null ? void 0 : B[_];
391
- return Q(G) && G.includes(d);
390
+ const [d, _] = b, G = (B = H().userPermissions) == null ? void 0 : B[d];
391
+ return Q(G) && G.includes(_);
392
392
  };
393
- return Q(o) ? Sr(o, (g) => f(g)) : f(o);
393
+ return Q(o) ? Ir(o, (g) => f(g)) : f(o);
394
394
  });
395
395
  return c.userPermissionsComputedRefs.set(u, h), h;
396
396
  }
@@ -478,7 +478,7 @@ class oe extends a {
478
478
  this.code = (e == null ? void 0 : e.code) ?? "";
479
479
  }
480
480
  }
481
- class lr extends oe {
481
+ class ur extends oe {
482
482
  /**
483
483
  * Инициализирует экземпляр класса {@link CatalogableItem}.
484
484
  *
@@ -497,7 +497,7 @@ class lr extends oe {
497
497
  this.slug = (e == null ? void 0 : e.slug) ?? "";
498
498
  }
499
499
  }
500
- class Oe extends lr {
500
+ class Oe extends ur {
501
501
  /**
502
502
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
503
503
  *
@@ -536,10 +536,10 @@ class he extends Oe {
536
536
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
537
537
  */
538
538
  t(this, "currencyRates");
539
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [xr(s), i])) : void 0;
539
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [kr(s), i])) : void 0;
540
540
  }
541
541
  }
542
- var ur = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ur || {});
542
+ var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
543
543
  class P extends a {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link Reference}.
@@ -564,7 +564,7 @@ class De extends P {
564
564
  * Возвращает значение справочника коэффициента розничной цены.
565
565
  */
566
566
  static getRetailPriceCoefficient() {
567
- return { id: -2, slug: ur.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
567
+ return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
568
568
  }
569
569
  }
570
570
  class Me {
@@ -597,7 +597,7 @@ class Me {
597
597
  this.coefficient = new De(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
598
598
  }
599
599
  }
600
- class pr {
600
+ class hr {
601
601
  /**
602
602
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
603
603
  *
@@ -646,10 +646,10 @@ class Ae extends P {
646
646
  * Координаты склада.
647
647
  */
648
648
  t(this, "coordinates");
649
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new pr(e == null ? void 0 : e.coordinates);
649
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
650
650
  }
651
651
  }
652
- class zr {
652
+ class Wr {
653
653
  /**
654
654
  * Инициализирует экземпляр класса {@link StockCount}.
655
655
  *
@@ -667,7 +667,7 @@ class zr {
667
667
  this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
668
668
  }
669
669
  }
670
- class Wr extends lr {
670
+ class Jr extends ur {
671
671
  /**
672
672
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
673
673
  *
@@ -682,7 +682,7 @@ class Wr extends lr {
682
682
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
683
683
  }
684
684
  }
685
- class Jr {
685
+ class Vr {
686
686
  /**
687
687
  * Инициализирует экземпляр класса {@link Image}.
688
688
  *
@@ -705,7 +705,7 @@ class Jr {
705
705
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
706
706
  }
707
707
  }
708
- class I extends Wr {
708
+ class I extends Jr {
709
709
  /**
710
710
  * Инициализирует экземпляр класса {@link Product}.
711
711
  *
@@ -790,9 +790,9 @@ class I extends Wr {
790
790
  * Список коэффициентов цен на продукт.
791
791
  */
792
792
  t(this, "priceCoefficients");
793
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new zr(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
793
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new Wr(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
794
794
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
795
- s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Oe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Jr(h, $.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
795
+ s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Oe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Vr(h, $.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
796
796
  }
797
797
  /**
798
798
  * Возвращает признак, что это измеряемый товар.
@@ -815,7 +815,7 @@ class I extends Wr {
815
815
  return this.retailCostRub ?? this.costRub;
816
816
  }
817
817
  }
818
- class Vr extends j {
818
+ class Kr extends j {
819
819
  /**
820
820
  * Инициализирует экземпляр класса {@link CartItemBase}.
821
821
  *
@@ -867,10 +867,10 @@ class Vr extends j {
867
867
  * Признак того, что позиция является дополнительной продажей.
868
868
  */
869
869
  t(this, "isAdditionalSale");
870
- this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && kr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
870
+ this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && dr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
871
871
  }
872
872
  }
873
- class Kr extends Vr {
873
+ class Qr extends Kr {
874
874
  /**
875
875
  * Инициализирует экземпляр класса {@link CartItem}.
876
876
  *
@@ -939,7 +939,7 @@ class me {
939
939
  * Список итоговых сумм по направлениям продаж.
940
940
  */
941
941
  t(this, "directionsSum");
942
- this.items = r.items.map((e) => new Kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
942
+ this.items = r.items.map((e) => new Qr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
943
943
  }
944
944
  }
945
945
  class je {
@@ -1027,7 +1027,7 @@ const S = class S {
1027
1027
  // eslint-disable-next-line class-methods-use-this
1028
1028
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1029
1029
  const r = $.getConfig().version;
1030
- this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Er.create({
1030
+ this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = zr.create({
1031
1031
  headers: {
1032
1032
  "APP-VERSION": `${r.name} (${r.version}, ${O(r.date, $.getConfig().dateFormats.uiDate)})`,
1033
1033
  Accept: "application/json",
@@ -1279,7 +1279,7 @@ class Ft extends p {
1279
1279
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1280
1280
  }
1281
1281
  }
1282
- var Qr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Qr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Yr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Yr || {});
1282
+ var Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Xr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Xr || {});
1283
1283
  class z extends he {
1284
1284
  /**
1285
1285
  * Инициализирует экземпляр класса {@link Category}.
@@ -1300,7 +1300,7 @@ class z extends he {
1300
1300
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1301
1301
  }
1302
1302
  }
1303
- class hr extends a {
1303
+ class gr extends a {
1304
1304
  /**
1305
1305
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1306
1306
  *
@@ -1315,7 +1315,7 @@ class hr extends a {
1315
1315
  this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1316
1316
  }
1317
1317
  }
1318
- class Xr extends hr {
1318
+ class Zr extends gr {
1319
1319
  /**
1320
1320
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1321
1321
  *
@@ -1345,7 +1345,7 @@ class U extends a {
1345
1345
  this.type = e == null ? void 0 : e.type;
1346
1346
  }
1347
1347
  }
1348
- class Zr extends a {
1348
+ class et extends a {
1349
1349
  /**
1350
1350
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1351
1351
  *
@@ -1384,7 +1384,7 @@ class Zr extends a {
1384
1384
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1385
1385
  }
1386
1386
  }
1387
- class W extends hr {
1387
+ class W extends gr {
1388
1388
  /**
1389
1389
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1390
1390
  *
@@ -1439,10 +1439,10 @@ class Z extends I {
1439
1439
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1440
1440
  */
1441
1441
  t(this, "isFavorite");
1442
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Zr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1442
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new et(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1443
1443
  }
1444
1444
  }
1445
- class gr {
1445
+ class mr {
1446
1446
  /**
1447
1447
  * Инициализирует экземпляр класса {@link ContactLinks}.
1448
1448
  *
@@ -1490,12 +1490,12 @@ class ce extends a {
1490
1490
  * @inheritDoc
1491
1491
  */
1492
1492
  t(this, "isRegionalDirector");
1493
- this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new gr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1493
+ this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1494
1494
  }
1495
1495
  }
1496
1496
  class Be extends P {
1497
1497
  }
1498
- class et extends a {
1498
+ class rt extends a {
1499
1499
  /**
1500
1500
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1501
1501
  *
@@ -1555,10 +1555,10 @@ class Te extends ce {
1555
1555
  * Список направлений кураторства.
1556
1556
  */
1557
1557
  t(this, "curatedDirections");
1558
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new et(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
1558
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new rt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
1559
1559
  }
1560
1560
  }
1561
- class rt extends he {
1561
+ class tt extends he {
1562
1562
  /**
1563
1563
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1564
1564
  *
@@ -1589,7 +1589,7 @@ class rt extends he {
1589
1589
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Te(e.manager) : void 0;
1590
1590
  }
1591
1591
  }
1592
- class we extends rt {
1592
+ class we extends tt {
1593
1593
  /**
1594
1594
  * Инициализирует экземпляр класса {@link ClientCategory}.
1595
1595
  *
@@ -1609,7 +1609,7 @@ class we extends rt {
1609
1609
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Z(o));
1610
1610
  }
1611
1611
  }
1612
- class mr {
1612
+ class fr {
1613
1613
  /**
1614
1614
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1615
1615
  *
@@ -1627,7 +1627,7 @@ class mr {
1627
1627
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1628
1628
  }
1629
1629
  }
1630
- class Se extends mr {
1630
+ class Se extends fr {
1631
1631
  /**
1632
1632
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1633
1633
  *
@@ -1662,7 +1662,7 @@ class He extends a {
1662
1662
  * @inheritDoc
1663
1663
  */
1664
1664
  t(this, "curatedDirection");
1665
- this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1665
+ this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1666
1666
  }
1667
1667
  }
1668
1668
  class ee extends P {
@@ -1697,7 +1697,7 @@ class Ee extends P {
1697
1697
  e && (this.region = new le(e.region));
1698
1698
  }
1699
1699
  }
1700
- class fr extends a {
1700
+ class yr extends a {
1701
1701
  /**
1702
1702
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1703
1703
  *
@@ -1736,7 +1736,7 @@ class fr extends a {
1736
1736
  this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1737
1737
  }
1738
1738
  }
1739
- class ge extends fr {
1739
+ class ge extends yr {
1740
1740
  /**
1741
1741
  * Инициализирует экземпляр класса {@link Client}.
1742
1742
  *
@@ -1812,7 +1812,7 @@ class se extends j {
1812
1812
  this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1813
1813
  }
1814
1814
  }
1815
- class Ie extends mr {
1815
+ class Ie extends fr {
1816
1816
  /**
1817
1817
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1818
1818
  *
@@ -1827,7 +1827,7 @@ class Ie extends mr {
1827
1827
  this.product = new I(e == null ? void 0 : e.product);
1828
1828
  }
1829
1829
  }
1830
- class yr extends P {
1830
+ class wr extends P {
1831
1831
  }
1832
1832
  class ie extends a {
1833
1833
  /**
@@ -1849,7 +1849,7 @@ class ie extends a {
1849
1849
  * Дополнительные метаданные свойства.
1850
1850
  */
1851
1851
  t(this, "metadata");
1852
- this.type = new yr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1852
+ this.type = new wr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1853
1853
  }
1854
1854
  }
1855
1855
  class E {
@@ -1871,7 +1871,7 @@ class E {
1871
1871
  this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1872
1872
  }
1873
1873
  }
1874
- class k {
1874
+ class L {
1875
1875
  /**
1876
1876
  * Инициализирует экземпляр класса {@link DatePeriod}.
1877
1877
  *
@@ -1911,12 +1911,12 @@ class Mt {
1911
1911
  /**
1912
1912
  * Период создания.
1913
1913
  */
1914
- t(this, "createdAt", new k());
1914
+ t(this, "createdAt", new L());
1915
1915
  /**
1916
1916
  * Период изменения.
1917
1917
  */
1918
- t(this, "updatedAt", new k());
1919
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new k(r == null ? void 0 : r.createdAt), this.updatedAt = new k(r == null ? void 0 : r.updatedAt);
1918
+ t(this, "updatedAt", new L());
1919
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.updatedAt = new L(r == null ? void 0 : r.updatedAt);
1920
1920
  }
1921
1921
  /**
1922
1922
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2010,7 +2010,7 @@ class Ke {
2010
2010
  this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new De(r == null ? void 0 : r.minCoefficient);
2011
2011
  }
2012
2012
  }
2013
- class tt {
2013
+ class st {
2014
2014
  /**
2015
2015
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
2016
2016
  *
@@ -2032,7 +2032,7 @@ class tt {
2032
2032
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
2033
2033
  }
2034
2034
  }
2035
- class st {
2035
+ class it {
2036
2036
  /**
2037
2037
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
2038
2038
  *
@@ -2054,7 +2054,7 @@ class st {
2054
2054
  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;
2055
2055
  }
2056
2056
  }
2057
- class it {
2057
+ class nt {
2058
2058
  /**
2059
2059
  * Инициализирует экземпляр класса {@link SentryConfig}.
2060
2060
  *
@@ -2099,7 +2099,7 @@ class it {
2099
2099
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
2100
2100
  }
2101
2101
  }
2102
- class nt {
2102
+ class ot {
2103
2103
  /**
2104
2104
  * Инициализирует экземпляр класса {@link VersionConfig}.
2105
2105
  *
@@ -2121,7 +2121,7 @@ class nt {
2121
2121
  this.date = C(r == null ? void 0 : r.date) ? v(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
2122
2122
  }
2123
2123
  }
2124
- class ot {
2124
+ class ct {
2125
2125
  /**
2126
2126
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
2127
2127
  *
@@ -2208,10 +2208,10 @@ class jt {
2208
2208
  */
2209
2209
  t(this, "dateFormats");
2210
2210
  var e, s, i;
2211
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new st(r == null ? void 0 : r.http), this.deviceTypeByResolution = new tt(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new it({
2211
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new it(r == null ? void 0 : r.http), this.deviceTypeByResolution = new st(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new nt({
2212
2212
  environment: this.environment,
2213
2213
  ...r == null ? void 0 : r.sentry
2214
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new nt(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ot(r.websocket) : void 0, this.dateFormats = {
2214
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new ot(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ct(r.websocket) : void 0, this.dateFormats = {
2215
2215
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2216
2216
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2217
2217
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -2613,7 +2613,7 @@ class Et extends p {
2613
2613
  getCategoryProductsCoefficients(r) {
2614
2614
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2615
2615
  const { data: s } = e;
2616
- return dr(s, (i) => i.map((o) => new Me(o))), s;
2616
+ return Or(s, (i) => i.map((o) => new Me(o))), s;
2617
2617
  });
2618
2618
  }
2619
2619
  /**
@@ -2797,7 +2797,7 @@ class Qe {
2797
2797
  field: this.field,
2798
2798
  op: this.op
2799
2799
  };
2800
- return r.value = _e(this.value) ? O(this.value, $.getConfig().dateFormats.api) : this.value, r;
2800
+ return r.value = de(this.value) ? O(this.value, $.getConfig().dateFormats.api) : this.value, r;
2801
2801
  }
2802
2802
  }
2803
2803
  class ue {
@@ -3541,14 +3541,14 @@ function Xe(n) {
3541
3541
  }
3542
3542
  }), r;
3543
3543
  }
3544
- var ct = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ct || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3545
- class lt extends P {
3544
+ var lt = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(lt || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3545
+ class ut extends P {
3546
3546
  }
3547
- class wr extends P {
3547
+ class Cr extends P {
3548
3548
  }
3549
3549
  class Yt extends P {
3550
3550
  }
3551
- class ut extends P {
3551
+ class pt extends P {
3552
3552
  }
3553
3553
  class Ce extends a {
3554
3554
  /**
@@ -3582,20 +3582,20 @@ class F extends P {
3582
3582
  });
3583
3583
  }
3584
3584
  }
3585
- class pt extends P {
3586
- }
3587
3585
  class ht extends P {
3588
3586
  }
3589
- class re extends P {
3590
- }
3591
3587
  class gt extends P {
3592
3588
  }
3589
+ class re extends P {
3590
+ }
3593
3591
  class mt extends P {
3594
3592
  }
3595
- class Cr extends P {
3593
+ class ft extends P {
3596
3594
  }
3597
3595
  class vr extends P {
3598
3596
  }
3597
+ class Pr extends P {
3598
+ }
3599
3599
  class qe extends j {
3600
3600
  /**
3601
3601
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3681,7 +3681,7 @@ class M extends Ne {
3681
3681
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3682
3682
  }
3683
3683
  }
3684
- class Pr extends a {
3684
+ class Rr extends a {
3685
3685
  /**
3686
3686
  * Инициализирует экземпляр класса {@link ContragentBase}.
3687
3687
  *
@@ -3754,7 +3754,7 @@ class Pr extends a {
3754
3754
  }
3755
3755
  }
3756
3756
  }
3757
- class ft extends Pr {
3757
+ class yt extends Rr {
3758
3758
  /**
3759
3759
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3760
3760
  *
@@ -3764,7 +3764,7 @@ class ft extends Pr {
3764
3764
  super(r);
3765
3765
  }
3766
3766
  }
3767
- class Rr extends Pr {
3767
+ class Dr extends Rr {
3768
3768
  /**
3769
3769
  * Инициализирует экземпляр класса {@link ContragentIc}.
3770
3770
  *
@@ -3807,7 +3807,7 @@ class Rr extends Pr {
3807
3807
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3808
3808
  }
3809
3809
  }
3810
- class Dr extends Rr {
3810
+ class Ar extends Dr {
3811
3811
  /**
3812
3812
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3813
3813
  *
@@ -3822,7 +3822,7 @@ class Dr extends Rr {
3822
3822
  e && (this.kpp = e.kpp ?? "");
3823
3823
  }
3824
3824
  }
3825
- class yt extends Dr {
3825
+ class wt extends Ar {
3826
3826
  /**
3827
3827
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3828
3828
  *
@@ -3854,13 +3854,13 @@ class ve {
3854
3854
  static createInstance(r) {
3855
3855
  switch (r.opf.slug) {
3856
3856
  case q.Ic:
3857
- return new Rr(r);
3858
- case q.UlR:
3859
3857
  return new Dr(r);
3858
+ case q.UlR:
3859
+ return new Ar(r);
3860
3860
  case q.UlNr:
3861
- return new yt(r);
3861
+ return new wt(r);
3862
3862
  default:
3863
- return new ft(r);
3863
+ return new yt(r);
3864
3864
  }
3865
3865
  }
3866
3866
  }
@@ -3879,7 +3879,7 @@ class xe extends j {
3879
3879
  this.isPrimary = e.isPrimary;
3880
3880
  }
3881
3881
  }
3882
- class wt extends M {
3882
+ class Ct extends M {
3883
3883
  /**
3884
3884
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3885
3885
  *
@@ -3907,7 +3907,7 @@ class wt extends M {
3907
3907
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new xe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new xe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new xe(s))));
3908
3908
  }
3909
3909
  }
3910
- class Pe extends Xr {
3910
+ class Pe extends Zr {
3911
3911
  /**
3912
3912
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3913
3913
  *
@@ -3944,7 +3944,7 @@ class Pe extends Xr {
3944
3944
  * Признак того, что указанный адрес является адресом транспортной компании.
3945
3945
  */
3946
3946
  t(this, "isTransportCompanyAddress");
3947
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new pr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3947
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3948
3948
  }
3949
3949
  }
3950
3950
  class Ze extends ge {
@@ -4005,7 +4005,7 @@ class Ze extends ge {
4005
4005
  * @inheritDoc
4006
4006
  */
4007
4007
  t(this, "extraData");
4008
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new wr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new vr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4008
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4009
4009
  }
4010
4010
  }
4011
4011
  class Xt {
@@ -4058,11 +4058,11 @@ class Xt {
4058
4058
  /**
4059
4059
  * @inheritDoc
4060
4060
  */
4061
- t(this, "createdAt", new k());
4061
+ t(this, "createdAt", new L());
4062
4062
  /**
4063
4063
  * @inheritDoc
4064
4064
  */
4065
- t(this, "lastLoginDate", new k());
4065
+ t(this, "lastLoginDate", new L());
4066
4066
  /**
4067
4067
  * @inheritDoc
4068
4068
  */
@@ -4112,8 +4112,8 @@ class Xt {
4112
4112
  */
4113
4113
  t(this, "isExcludedFromMsCallsToClients");
4114
4114
  var e, s, i, o, c, u, h, f;
4115
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Ee(g)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Te(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new He(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new x(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new re(g)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
4116
- createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
4115
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Ee(g)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.lastLoginDate = new L(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Te(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new He(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new x(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new re(g)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
4116
+ createdAt: new L((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
4117
4117
  creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
4118
4118
  isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
4119
4119
  }, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
@@ -4184,7 +4184,7 @@ class Xt {
4184
4184
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
4185
4185
  }
4186
4186
  }
4187
- class Ar extends j {
4187
+ class Tr extends j {
4188
4188
  /**
4189
4189
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4190
4190
  *
@@ -4207,7 +4207,7 @@ class Ar extends j {
4207
4207
  this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4208
4208
  }
4209
4209
  }
4210
- class Ct extends a {
4210
+ class vt extends a {
4211
4211
  /**
4212
4212
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4213
4213
  *
@@ -4244,10 +4244,10 @@ class Ct extends a {
4244
4244
  * @inheritDoc
4245
4245
  */
4246
4246
  t(this, "curators");
4247
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new M(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ar(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new x(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ce(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new He(u))) ?? void 0;
4247
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new M(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Tr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new x(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ce(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new He(u))) ?? void 0;
4248
4248
  }
4249
4249
  }
4250
- class vt {
4250
+ class Pt {
4251
4251
  /**
4252
4252
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4253
4253
  *
@@ -4265,7 +4265,7 @@ class vt {
4265
4265
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4266
4266
  }
4267
4267
  }
4268
- class Zt extends vt {
4268
+ class Zt extends Pt {
4269
4269
  /**
4270
4270
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4271
4271
  *
@@ -4314,7 +4314,7 @@ class es {
4314
4314
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4315
4315
  }
4316
4316
  }
4317
- class L extends $e {
4317
+ class k extends $e {
4318
4318
  /**
4319
4319
  * Преобразует данные о клиенте в данные требуемые для запроса.
4320
4320
  *
@@ -4344,7 +4344,7 @@ class L extends $e {
4344
4344
  * @param contragent Данные о контрагенте клиента.
4345
4345
  */
4346
4346
  static transformContragentClientDataToRequest(r) {
4347
- var c, u, h, f, g, b, _, d;
4347
+ var c, u, h, f, g, b, d, _;
4348
4348
  let e;
4349
4349
  const s = r, i = r, o = r;
4350
4350
  switch (r.opf.slug) {
@@ -4409,8 +4409,8 @@ class L extends $e {
4409
4409
  opf: r.opf.slug,
4410
4410
  name: r.name,
4411
4411
  alternative_name: r.alternativeName,
4412
- partner_group_id: (_ = r.partnerGroup) == null ? void 0 : _.id,
4413
- manager_id: (d = r.manager) == null ? void 0 : d.id,
4412
+ partner_group_id: (d = r.partnerGroup) == null ? void 0 : d.id,
4413
+ manager_id: (_ = r.manager) == null ? void 0 : _.id,
4414
4414
  comment: r.comment
4415
4415
  };
4416
4416
  break;
@@ -4501,7 +4501,7 @@ class L extends $e {
4501
4501
  const s = r.map((i) => i.id);
4502
4502
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4503
4503
  let o = [];
4504
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Ct(c))), o;
4504
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
4505
4505
  });
4506
4506
  }
4507
4507
  /**
@@ -4513,7 +4513,7 @@ class L extends $e {
4513
4513
  getAllClientContacts(r) {
4514
4514
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4515
4515
  let s = [];
4516
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new wt(i))), s;
4516
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Ct(i))), s;
4517
4517
  });
4518
4518
  }
4519
4519
  /**
@@ -4524,7 +4524,7 @@ class L extends $e {
4524
4524
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4525
4525
  */
4526
4526
  createClientCommonData(r, e = {}) {
4527
- return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
4527
+ return this.post("/internal/clients", k.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
4528
4528
  }
4529
4529
  /**
4530
4530
  * Обновляет данные указанного клиента.
@@ -4534,7 +4534,7 @@ class L extends $e {
4534
4534
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4535
4535
  */
4536
4536
  updateClientCommonData(r, e = {}) {
4537
- return this.patch(`/internal/clients/${r.id}`, L.transformClientDataToRequest(r), void 0, e);
4537
+ return this.patch(`/internal/clients/${r.id}`, k.transformClientDataToRequest(r), void 0, e);
4538
4538
  }
4539
4539
  /**
4540
4540
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4664,7 +4664,7 @@ class L extends $e {
4664
4664
  createContragentClientData(r, e, s = {}) {
4665
4665
  return this.post(
4666
4666
  `/internal/clients/${r}/contragents`,
4667
- L.transformContragentClientDataToRequest(e),
4667
+ k.transformContragentClientDataToRequest(e),
4668
4668
  (i) => ve.createInstance(i.data),
4669
4669
  s
4670
4670
  );
@@ -4680,7 +4680,7 @@ class L extends $e {
4680
4680
  updateContragentClientData(r, e, s = {}) {
4681
4681
  return this.patch(
4682
4682
  `/internal/clients/${r}/contragents/${e.id}`,
4683
- L.transformContragentClientDataToRequest(e),
4683
+ k.transformContragentClientDataToRequest(e),
4684
4684
  (i) => ve.createInstance(i.data),
4685
4685
  s
4686
4686
  );
@@ -4706,7 +4706,7 @@ class L extends $e {
4706
4706
  createClientDeliveryAddress(r, e, s = {}) {
4707
4707
  return this.post(
4708
4708
  `/internal/clients/${r}/delivery-addresses`,
4709
- L.transformClientDeliveryAddressToRequest(e),
4709
+ k.transformClientDeliveryAddressToRequest(e),
4710
4710
  (i) => new Pe(i.data),
4711
4711
  s
4712
4712
  );
@@ -4722,7 +4722,7 @@ class L extends $e {
4722
4722
  updateClientDeliveryAddress(r, e, s = {}) {
4723
4723
  return this.patch(
4724
4724
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4725
- L.transformClientDeliveryAddressToRequest(e),
4725
+ k.transformClientDeliveryAddressToRequest(e),
4726
4726
  (i) => new Pe(i.data),
4727
4727
  s
4728
4728
  );
@@ -4749,7 +4749,7 @@ class L extends $e {
4749
4749
  createContragentBankAccount(r, e, s, i = {}) {
4750
4750
  return this.post(
4751
4751
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4752
- L.transformClientContragentBankAccountToRequest(s),
4752
+ k.transformClientContragentBankAccountToRequest(s),
4753
4753
  (o) => new qe(o.data),
4754
4754
  i
4755
4755
  );
@@ -4766,7 +4766,7 @@ class L extends $e {
4766
4766
  updateContragentBankAccount(r, e, s, i = {}) {
4767
4767
  return this.patch(
4768
4768
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4769
- L.transformClientContragentBankAccountToRequest(s),
4769
+ k.transformClientContragentBankAccountToRequest(s),
4770
4770
  (o) => new qe(o.data),
4771
4771
  i
4772
4772
  );
@@ -5021,7 +5021,7 @@ const V = class V extends p {
5021
5021
  */
5022
5022
  cacheResponse(e, s) {
5023
5023
  V.responseDataCache.set(e, {
5024
- validTo: Or(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5024
+ validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5025
5025
  val: s
5026
5026
  });
5027
5027
  }
@@ -5067,17 +5067,19 @@ class ts extends p {
5067
5067
  * Возвращает настройки указанного конфигуратора для указанной категории.
5068
5068
  *
5069
5069
  * @param category Данные о категории.
5070
+ * @param clientId Идентификатор клиента.
5070
5071
  *
5071
5072
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_settings
5072
5073
  */
5073
- getConfiguratorSettings(r) {
5074
- var e;
5075
- return this.get(`internal/catalog/categories/${r.id}/configurators/${(e = r.properties) == null ? void 0 : e.configurator}/settings`);
5074
+ getConfiguratorSettings(r, e) {
5075
+ var s;
5076
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/settings?client_id=${e}`);
5076
5077
  }
5077
5078
  /**
5078
5079
  * Возвращает данные о продукте, который соответствует указанной в запросе конфигурации для указанного конфигуратора.
5079
5080
  *
5080
5081
  * @param category Данные о категории.
5082
+ * @param clientId Идентификатор клиента.
5081
5083
  * @param params Параметры конфигуратора для поиска товара.
5082
5084
  * @param validationFieldResultData Список полей, для которых необходимо
5083
5085
  * установить данные об ошибках валидации
@@ -5085,21 +5087,22 @@ class ts extends p {
5085
5087
  *
5086
5088
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_products_get
5087
5089
  */
5088
- searchProduct(r, e, s = {}) {
5089
- var o;
5090
- const i = this.get(
5091
- `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
5092
- { params: e },
5093
- (c) => new I(c.data)
5090
+ searchProduct(r, e, s, i = {}) {
5091
+ var c;
5092
+ const o = this.get(
5093
+ `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5094
+ { params: s, client_id: e },
5095
+ (u) => new I(u.data)
5094
5096
  );
5095
- return i.catch((c) => {
5096
- this.errorResponseHandler(c, s);
5097
- }), i;
5097
+ return o.catch((u) => {
5098
+ this.errorResponseHandler(u, i);
5099
+ }), o;
5098
5100
  }
5099
5101
  /**
5100
5102
  * Создает пользовательский шаблон конфигуратора.
5101
5103
  *
5102
5104
  * @param category Данные о категории.
5105
+ * @param clientId Идентификатор клиента.
5103
5106
  * @param newTemplate Параметры конфигуратора для поиска товара.
5104
5107
  * @param validationFieldResultData Список полей, для которых необходимо
5105
5108
  * установить данные об ошибках валидации
@@ -5108,29 +5111,30 @@ class ts extends p {
5108
5111
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_template_create
5109
5112
  */
5110
5113
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5111
- createTemplate(r, e, s = {}) {
5112
- var i;
5114
+ createTemplate(r, e, s, i = {}) {
5115
+ var o;
5113
5116
  return this.post(
5114
- `internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template`,
5115
- { ...e },
5117
+ `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/template?client_id=${e}`,
5118
+ { ...s },
5116
5119
  // eslint-disable-next-line lodash/prefer-noop, @typescript-eslint/no-empty-function
5117
5120
  () => {
5118
5121
  },
5119
- s
5122
+ i
5120
5123
  );
5121
5124
  }
5122
5125
  /**
5123
5126
  * Удаляет пользовательский шаблон конфигуратора.
5124
5127
  *
5125
5128
  * @param category Данные о категории.
5129
+ * @param clientId Идентификатор клиента.
5126
5130
  * @param templateId Идентификатор записи шаблона.
5127
5131
  *
5128
5132
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_template_delete
5129
5133
  */
5130
5134
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5131
- removeTemplate(r, e) {
5132
- var s;
5133
- return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
5135
+ removeTemplate(r, e, s) {
5136
+ var i;
5137
+ return this.delete(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template/${s}?client_id=${e}`);
5134
5138
  }
5135
5139
  }
5136
5140
  class ss {
@@ -5138,13 +5142,13 @@ class ss {
5138
5142
  * Возвращает диапазон дат по умолчанию.
5139
5143
  */
5140
5144
  static defaultDateRanges() {
5141
- const r = qr(/* @__PURE__ */ new Date(), 1);
5145
+ const r = Nr(/* @__PURE__ */ new Date(), 1);
5142
5146
  return {
5143
5147
  // 'Следующий рабочий день' - это значение по-умолчанию
5144
- nextWorkingDay: { label: "Следующий рабочий день", from: Br(r), to: Gr(r) },
5145
- today: { label: "Сегодня", from: de(), to: jr() },
5146
- yesterday: { label: "Вчера", from: Mr(), to: Fr() },
5147
- tomorrow: { label: "Завтра", from: Ur(), to: Nr() }
5148
+ nextWorkingDay: { label: "Следующий рабочий день", from: Hr(r), to: Br(r) },
5149
+ today: { label: "Сегодня", from: _e(), to: Gr() },
5150
+ yesterday: { label: "Вчера", from: jr(), to: Mr() },
5151
+ tomorrow: { label: "Завтра", from: Fr(), to: Ur() }
5148
5152
  };
5149
5153
  }
5150
5154
  }
@@ -5205,7 +5209,7 @@ class is {
5205
5209
  return r.id === 0 && r.guid === "-undefined-";
5206
5210
  }
5207
5211
  }
5208
- class Pt extends pe {
5212
+ class Rt extends pe {
5209
5213
  /**
5210
5214
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5211
5215
  */
@@ -5217,7 +5221,7 @@ class Pt extends pe {
5217
5221
  return this.cacheResponse(r, i), i;
5218
5222
  }
5219
5223
  }
5220
- class Tr extends Ar {
5224
+ class $r extends Tr {
5221
5225
  /**
5222
5226
  * Инициализирует экземпляр класса {@link OrderInfo}.
5223
5227
  *
@@ -5278,7 +5282,7 @@ class Tr extends Ar {
5278
5282
  }, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
5279
5283
  }
5280
5284
  }
5281
- class Rt extends j {
5285
+ class Dt extends j {
5282
5286
  /**
5283
5287
  * Инициализирует экземпляр класса {@link OrderProduct}.
5284
5288
  *
@@ -5361,7 +5365,7 @@ class Rt extends j {
5361
5365
  this.product = new Z(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
5362
5366
  }
5363
5367
  }
5364
- class Dt extends Tr {
5368
+ class rr extends $r {
5365
5369
  /**
5366
5370
  * Инициализирует экземпляр класса {@link Order}.
5367
5371
  *
@@ -5401,7 +5405,7 @@ class Dt extends Tr {
5401
5405
  * Признак, что разрешена передача заказа в работу без оплаты.
5402
5406
  */
5403
5407
  t(this, "isAllowProcessingWithoutPayment");
5404
- this.products = (e.products ?? []).map((s) => new Rt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5408
+ this.products = (e.products ?? []).map((s) => new Dt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5405
5409
  }
5406
5410
  }
5407
5411
  class ns extends $e {
@@ -5417,7 +5421,7 @@ class ns extends $e {
5417
5421
  getOrders(r, e, s) {
5418
5422
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5419
5423
  const o = { ...i.data };
5420
- return o.data = o.data.map((c) => new Tr(c)), o;
5424
+ return o.data = o.data.map((c) => new $r(c)), o;
5421
5425
  });
5422
5426
  }
5423
5427
  /**
@@ -5435,10 +5439,40 @@ class ns extends $e {
5435
5439
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5436
5440
  */
5437
5441
  getOrder(r) {
5438
- return this.get(`/internal/orders/${r}`, {}, (e) => new Dt(e.data));
5442
+ return this.get(`/internal/orders/${r}`, {}, (e) => new rr(e.data));
5443
+ }
5444
+ /**
5445
+ * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
5446
+ *
5447
+ * @param orderId Идентификатор заказа, в который необходимо добавить продукт.
5448
+ * @param cartItem Данные о товаре, который необходимо добавить в заказ.
5449
+ * @param validationFieldResultData Список полей, для которых необходимо
5450
+ * установить данные об ошибках валидации
5451
+ * в случае ошибок в запросах.
5452
+ *
5453
+ * @see /doc/api/internal#/Заказы/api_internal_orders_product_add
5454
+ */
5455
+ addOrderProduct(r, e, s = {}) {
5456
+ return this.post(
5457
+ `/internal/orders/${r}/products`,
5458
+ {
5459
+ id: e.configurator && e.category.id,
5460
+ productId: e.product.id,
5461
+ quantity: e.quantity,
5462
+ height: e.height,
5463
+ length: e.length,
5464
+ width: e.width,
5465
+ configurator: e.configurator,
5466
+ marker: e.marker,
5467
+ isAdditionalSale: e.isAdditionalSale,
5468
+ ...e.configuratorParams
5469
+ },
5470
+ (i) => new rr(i.data),
5471
+ s
5472
+ );
5439
5473
  }
5440
5474
  }
5441
- class Le {
5475
+ class ke {
5442
5476
  /**
5443
5477
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5444
5478
  *
@@ -5468,9 +5502,9 @@ class Le {
5468
5502
  this.client = new ge(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ge.Product;
5469
5503
  }
5470
5504
  }
5471
- const ke = (n) => {
5505
+ const Le = (n) => {
5472
5506
  var r, e, s, i, o;
5473
- return n ? or(
5507
+ return n ? cr(
5474
5508
  {
5475
5509
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5476
5510
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5479,9 +5513,9 @@ const ke = (n) => {
5479
5513
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5480
5514
  hideNotActive: n.hideNotActive
5481
5515
  },
5482
- (c) => A(c) || (Q(c) || cr(c)) && Y(c)
5516
+ (c) => A(c) || (Q(c) || lr(c)) && Y(c)
5483
5517
  ) : {};
5484
- }, rr = (n) => {
5518
+ }, tr = (n) => {
5485
5519
  const r = {};
5486
5520
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
5487
5521
  };
@@ -5499,10 +5533,10 @@ class os extends p {
5499
5533
  return this.get(
5500
5534
  `/internal/price/products/${r}/analyze`,
5501
5535
  {
5502
- ...rr(e),
5503
- filters: ke(s)
5536
+ ...tr(e),
5537
+ filters: Le(s)
5504
5538
  },
5505
- (i) => i.data.map((o) => new Le(o))
5539
+ (i) => i.data.map((o) => new ke(o))
5506
5540
  );
5507
5541
  }
5508
5542
  /**
@@ -5518,10 +5552,10 @@ class os extends p {
5518
5552
  return this.get(
5519
5553
  `/internal/price/categories/${r}/analyze`,
5520
5554
  {
5521
- ...rr(e),
5522
- filters: ke(s)
5555
+ ...tr(e),
5556
+ filters: Le(s)
5523
5557
  },
5524
- (i) => i.data.map((o) => new Le(o))
5558
+ (i) => i.data.map((o) => new ke(o))
5525
5559
  );
5526
5560
  }
5527
5561
  /**
@@ -5540,9 +5574,9 @@ class os extends p {
5540
5574
  `/internal/price/categories/${r}/analyze/square`,
5541
5575
  {
5542
5576
  ...e,
5543
- filters: ke(s)
5577
+ filters: Le(s)
5544
5578
  },
5545
- (i) => i.data.map((o) => new Le(o))
5579
+ (i) => i.data.map((o) => new ke(o))
5546
5580
  );
5547
5581
  }
5548
5582
  }
@@ -5621,21 +5655,21 @@ class cs extends p {
5621
5655
  */
5622
5656
  getProductPriceHistory(r) {
5623
5657
  var o, c, u, h, f;
5624
- const e = $.getConfig().dateFormats.api, s = or(
5658
+ const e = $.getConfig().dateFormats.api, s = cr(
5625
5659
  ye(r, {
5626
5660
  costDate: {
5627
- from: _e((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5628
- to: _e((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5661
+ from: de((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5662
+ to: de((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
5629
5663
  }
5630
5664
  }),
5631
- (g) => A(g) || (Q(g) || cr(g)) && Y(g)
5665
+ (g) => A(g) || (Q(g) || lr(g)) && Y(g)
5632
5666
  ), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
5633
5667
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
5634
5668
  new Tt(ye(g[0], { history: g }))
5635
5669
  ]);
5636
5670
  }
5637
5671
  }
5638
- class tr {
5672
+ class sr {
5639
5673
  /**
5640
5674
  * Инициализирует экземпляр класса {@link RecommendationsList}.
5641
5675
  *
@@ -5661,7 +5695,7 @@ class ls extends p {
5661
5695
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
5662
5696
  */
5663
5697
  getProductCategoryRecommendations(r) {
5664
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new tr(e.data));
5698
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
5665
5699
  }
5666
5700
  /**
5667
5701
  * Возвращает данные о рекомендациях указанного продукта.
@@ -5670,7 +5704,7 @@ class ls extends p {
5670
5704
  * @see /docs/api#/operations/api_internal_recommendations_product_get
5671
5705
  */
5672
5706
  getProductRecommendations(r) {
5673
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new tr(e.data));
5707
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
5674
5708
  }
5675
5709
  /**
5676
5710
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -5708,20 +5742,20 @@ class T extends pe {
5708
5742
  * и использовать в случае аналогичных запросов.
5709
5743
  */
5710
5744
  getReference(r, e = !1) {
5711
- return this.getTypedDataArrayRequester(lt, `/internal/references/${r}`, e);
5745
+ return this.getTypedDataArrayRequester(ut, `/internal/references/${r}`, e);
5712
5746
  }
5713
5747
  /**
5714
5748
  * Возвращает {@link Promise} для получения справочника данных о канале
5715
5749
  * первичного интереса.
5716
5750
  */
5717
5751
  getChannelPrimaryInterest() {
5718
- return this.getTypedDataArrayRequester(wr, "/internal/references/channel-primary-interest", !0);
5752
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
5719
5753
  }
5720
5754
  /**
5721
5755
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5722
5756
  */
5723
5757
  getContactPositions() {
5724
- return this.getTypedDataArrayRequester(ut, "/internal/references/contact-position", !0);
5758
+ return this.getTypedDataArrayRequester(pt, "/internal/references/contact-position", !0);
5725
5759
  }
5726
5760
  /**
5727
5761
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -5752,25 +5786,25 @@ class T extends pe {
5752
5786
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5753
5787
  */
5754
5788
  getOrderPaymentStatuses() {
5755
- return this.getTypedDataArrayRequester(pt, "/public/references/order-payment-status", !0);
5789
+ return this.getTypedDataArrayRequester(ht, "/public/references/order-payment-status", !0);
5756
5790
  }
5757
5791
  /**
5758
5792
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5759
5793
  */
5760
5794
  getOrderStatuses() {
5761
- return this.getTypedDataArrayRequester(ht, "/public/references/order-status", !0);
5795
+ return this.getTypedDataArrayRequester(gt, "/public/references/order-status", !0);
5762
5796
  }
5763
5797
  /**
5764
5798
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5765
5799
  */
5766
5800
  getPaymentTypes() {
5767
- return this.getTypedDataArrayRequester(gt, "/public/references/payment-type", !0);
5801
+ return this.getTypedDataArrayRequester(mt, "/public/references/payment-type", !0);
5768
5802
  }
5769
5803
  /**
5770
5804
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5771
5805
  */
5772
5806
  getResourceTypes() {
5773
- return this.getTypedDataArrayRequester(Cr, "/internal/references/resource-type", !0);
5807
+ return this.getTypedDataArrayRequester(vr, "/internal/references/resource-type", !0);
5774
5808
  }
5775
5809
  /**
5776
5810
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -5782,7 +5816,7 @@ class T extends pe {
5782
5816
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5783
5817
  */
5784
5818
  getSourcePrimaryInterest() {
5785
- return this.getTypedDataArrayRequester(vr, "/internal/references/source-primary-interest", !0);
5819
+ return this.getTypedDataArrayRequester(Pr, "/internal/references/source-primary-interest", !0);
5786
5820
  }
5787
5821
  /**
5788
5822
  * Выполняет поиск данных о городах по терму в названии.
@@ -5824,7 +5858,7 @@ class T extends pe {
5824
5858
  * Возвращает {@link Promise} для получения справочника типов свойств.
5825
5859
  */
5826
5860
  getPropertyTypes() {
5827
- return this.getTypedDataArrayRequester(yr, "/internal/references/property-type", !0);
5861
+ return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
5828
5862
  }
5829
5863
  /**
5830
5864
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -5836,11 +5870,11 @@ class T extends pe {
5836
5870
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5837
5871
  */
5838
5872
  getProductFileType() {
5839
- return this.getTypedDataArrayRequester(mt, "/public/references/product-file-type", !0);
5873
+ return this.getTypedDataArrayRequester(ft, "/public/references/product-file-type", !0);
5840
5874
  }
5841
5875
  }
5842
5876
  const D = te("__references_private", () => {
5843
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), b = y(void 0), _ = y(void 0), d = y(void 0), G = y(void 0), B = y(void 0), ae = y(void 0), l = y(void 0);
5877
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), b = y(void 0), d = y(void 0), _ = y(void 0), G = y(void 0), B = y(void 0), ae = y(void 0), l = y(void 0);
5844
5878
  return {
5845
5879
  /**
5846
5880
  * Список загружаемых/загруженных на данный момент значений.
@@ -5893,11 +5927,11 @@ const D = te("__references_private", () => {
5893
5927
  /**
5894
5928
  * Справочник типов ресурсов.
5895
5929
  */
5896
- resourceTypesReference: _,
5930
+ resourceTypesReference: d,
5897
5931
  /**
5898
5932
  * Справочник направлений продаж.
5899
5933
  */
5900
- salesDirectionsReference: d,
5934
+ salesDirectionsReference: _,
5901
5935
  /**
5902
5936
  * Справочник источников первичного интереса.
5903
5937
  */
@@ -5976,14 +6010,14 @@ const D = te("__references_private", () => {
5976
6010
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
5977
6011
  l.sourcePrimaryInterestReference = m;
5978
6012
  }).catch(w)), l.sourcePrimaryInterestReference;
5979
- }), _ = R(() => {
6013
+ }), d = R(() => {
5980
6014
  const l = D();
5981
6015
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
5982
6016
  l.deliveryTypeReference = m;
5983
6017
  }).catch(w)), l.deliveryTypeReference;
5984
- }), d = R(() => {
6018
+ }), _ = R(() => {
5985
6019
  const l = D();
5986
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Pt).getManagers().then((m) => {
6020
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Rt).getManagers().then((m) => {
5987
6021
  l.managersList = m;
5988
6022
  }).catch(w)), l.managersList;
5989
6023
  }), G = R(() => {
@@ -6054,11 +6088,11 @@ const D = te("__references_private", () => {
6054
6088
  /**
6055
6089
  * Справочник типов доставки.
6056
6090
  */
6057
- deliveryTypeReference: _,
6091
+ deliveryTypeReference: d,
6058
6092
  /**
6059
6093
  * Список менеджеров.
6060
6094
  */
6061
- managersList: d,
6095
+ managersList: _,
6062
6096
  /**
6063
6097
  * Справочник складов.
6064
6098
  */
@@ -6091,7 +6125,7 @@ class $t {
6091
6125
  this.name = r.name, this.content = r.content;
6092
6126
  }
6093
6127
  }
6094
- class sr {
6128
+ class ir {
6095
6129
  /**
6096
6130
  * Инициализирует экземпляр класса {@link Seo}.
6097
6131
  *
@@ -6127,7 +6161,7 @@ class sr {
6127
6161
  */
6128
6162
  t(this, "meta");
6129
6163
  var e;
6130
- this.resourceType = new Cr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new $t(s))) ?? [];
6164
+ this.resourceType = new vr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new $t(s))) ?? [];
6131
6165
  }
6132
6166
  }
6133
6167
  class ps extends p {
@@ -6138,7 +6172,7 @@ class ps extends p {
6138
6172
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6139
6173
  */
6140
6174
  getResourceSeoData(r, e) {
6141
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new sr(s.data));
6175
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
6142
6176
  }
6143
6177
  /**
6144
6178
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6149,7 +6183,7 @@ class ps extends p {
6149
6183
  * в случае ошибок в запросах.
6150
6184
  */
6151
6185
  saveResourceSeoData(r, e = {}) {
6152
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new sr(s.data), e);
6186
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
6153
6187
  }
6154
6188
  /**
6155
6189
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6209,7 +6243,7 @@ class hs extends p {
6209
6243
  }
6210
6244
  }
6211
6245
  var at = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(at || {});
6212
- class bt extends fr {
6246
+ class bt extends yr {
6213
6247
  /**
6214
6248
  * Инициализирует экземпляр класса {@link User}.
6215
6249
  *
@@ -6306,49 +6340,49 @@ class fs {
6306
6340
  }
6307
6341
  }
6308
6342
  export {
6309
- lt as AnyReference,
6343
+ ut as AnyReference,
6310
6344
  jt as AppBaseConfig,
6311
6345
  $ as AppConfigProvider,
6312
6346
  qe as BankAccount,
6313
6347
  $e as BasePaginationProvider,
6314
- Qr as CalculationTypeEnum,
6348
+ Yr as CalculationTypeEnum,
6315
6349
  me as Cart,
6316
- Kr as CartItem,
6317
- Vr as CartItemBase,
6350
+ Qr as CartItem,
6351
+ Kr as CartItemBase,
6318
6352
  Ft as CartProvider,
6319
6353
  Gt as CatalogProvider,
6320
- lr as CatalogableItem,
6354
+ ur as CatalogableItem,
6321
6355
  z as Category,
6322
6356
  Ke as CategoryPricingRule,
6323
- wr as ChannelPrimaryInterest,
6357
+ Cr as ChannelPrimaryInterest,
6324
6358
  Yt as City,
6325
6359
  Ee as CityWithRegionAndCountry,
6326
6360
  Ze as Client,
6327
- Ct as ClientAdditionalData,
6361
+ vt as ClientAdditionalData,
6328
6362
  we as ClientCategory,
6329
- L as ClientDataProvider,
6363
+ k as ClientDataProvider,
6330
6364
  Bt as ClientPriceProvider,
6331
6365
  Ht as ClientPriceTemplateProvider,
6332
6366
  Z as ClientProduct,
6333
6367
  Wt as ClientProductCategoryDataProvider,
6334
6368
  Jt as ClientProductDataProvider,
6335
6369
  ge as ClientShortInfo,
6336
- ct as ClientsAdditionalDataRequestTypeEnum,
6370
+ lt as ClientsAdditionalDataRequestTypeEnum,
6337
6371
  Xt as ClientsListFilters,
6338
6372
  oe as CodedIdentity,
6339
6373
  ts as ConfiguratorProvider,
6340
6374
  Ne as Contact,
6341
- gr as ContactLinks,
6375
+ mr as ContactLinks,
6342
6376
  M as ContactPerson,
6343
- wt as ContactPersonRelated,
6344
- ut as ContactPosition,
6377
+ Ct as ContactPersonRelated,
6378
+ pt as ContactPosition,
6345
6379
  xe as ContactRelation,
6346
- Pr as ContragentBase,
6380
+ Rr as ContragentBase,
6347
6381
  ve as ContragentFactory,
6348
- Rr as ContragentIc,
6349
- ft as ContragentPerson,
6350
- yt as ContragentUlNr,
6351
- Dr as ContragentUlR,
6382
+ Dr as ContragentIc,
6383
+ yt as ContragentPerson,
6384
+ wt as ContragentUlNr,
6385
+ Ar as ContragentUlR,
6352
6386
  Ge as CostSourceEnum,
6353
6387
  ee as Country,
6354
6388
  Be as CuratedDirection,
@@ -6356,55 +6390,55 @@ export {
6356
6390
  Ce as Currency,
6357
6391
  hs as DataSuggestionProvider,
6358
6392
  Zt as DataTablePagination,
6359
- vt as DataTablePaginationRequestParams,
6393
+ Pt as DataTablePaginationRequestParams,
6360
6394
  es as DataTableSortRequestParams,
6361
6395
  ss as DateTimeProvider,
6362
- Xr as DeletableNamedIdentity,
6396
+ Zr as DeletableNamedIdentity,
6363
6397
  Pe as DeliveryAddress,
6364
6398
  X as DeliveryType,
6365
6399
  Ut as DetailedJwtPayload,
6366
- tt as DeviceTypeResolutionConfig,
6367
- Zr as DiscountShortInfo,
6400
+ st as DeviceTypeResolutionConfig,
6401
+ et as DiscountShortInfo,
6368
6402
  fs as FieldValidationResultData,
6369
6403
  ue as FilterGroup,
6370
6404
  Qe as FilterItem,
6371
6405
  ze as FilterOpEnum,
6372
- pr as GeoCoordinates,
6373
- Wr as HiddenCatalogableItem,
6406
+ hr as GeoCoordinates,
6407
+ Jr as HiddenCatalogableItem,
6374
6408
  pe as HttpCachedRequester,
6375
- st as HttpParamsConfig,
6409
+ it as HttpParamsConfig,
6376
6410
  p as HttpRequester,
6377
6411
  j as Identity,
6378
- Jr as Image,
6412
+ Vr as Image,
6379
6413
  N as JwtPayload,
6380
6414
  Te as Manager,
6381
6415
  ce as ManagerCommon,
6382
6416
  is as ManagerDataFactory,
6383
- Pt as ManagerDataProvider,
6417
+ Rt as ManagerDataProvider,
6384
6418
  $t as MetaTagItem,
6385
6419
  a as NamedIdentity,
6386
6420
  F as Opf,
6387
6421
  q as OpfEnum,
6388
- Dt as Order,
6389
- Tr as OrderInfo,
6390
- pt as OrderPaymentStatus,
6391
- Rt as OrderProduct,
6392
- Ar as OrderShortInfo,
6393
- ht as OrderStatus,
6422
+ rr as Order,
6423
+ $r as OrderInfo,
6424
+ ht as OrderPaymentStatus,
6425
+ Dt as OrderProduct,
6426
+ Tr as OrderShortInfo,
6427
+ gt as OrderStatus,
6394
6428
  ns as OrdersDataProvider,
6395
6429
  re as PartnerGroup,
6396
- gt as PaymentType,
6430
+ mt as PaymentType,
6397
6431
  fe as PreferencesStorageProvider,
6398
- Le as PriceAnalyze,
6432
+ ke as PriceAnalyze,
6399
6433
  os as PriceAnalyzeProvider,
6400
6434
  De as PriceCoefficient,
6401
- ur as PriceCoefficientEnum,
6435
+ pr as PriceCoefficientEnum,
6402
6436
  cs as PriceHistoryDataProvider,
6403
6437
  At as PriceHistoryItem,
6404
6438
  W as PriceTemplate,
6405
6439
  Se as PriceTemplateCategory,
6406
6440
  se as PriceTemplateClient,
6407
- mr as PriceTemplateICatalogableItem,
6441
+ fr as PriceTemplateICatalogableItem,
6408
6442
  Ie as PriceTemplateProduct,
6409
6443
  Vt as PriceTemplateProvider,
6410
6444
  ne as PricingRole,
@@ -6413,41 +6447,41 @@ export {
6413
6447
  I as Product,
6414
6448
  Et as ProductCategoryDataProvider,
6415
6449
  zt as ProductDataProvider,
6416
- mt as ProductFileType,
6450
+ ft as ProductFileType,
6417
6451
  Me as ProductPriceCoefficient,
6418
6452
  Tt as ProductPriceHistory,
6419
6453
  Qt as PropertiesProvider,
6420
6454
  ie as Property,
6421
- yr as PropertyType,
6422
- Yr as PropertyTypeEnum,
6455
+ wr as PropertyType,
6456
+ Xr as PropertyTypeEnum,
6423
6457
  E as PropertyValue,
6424
6458
  ls as RecommendationsDataProvider,
6425
- tr as RecommendationsList,
6459
+ sr as RecommendationsList,
6426
6460
  P as Reference,
6427
6461
  T as ReferenceDataProvider,
6428
6462
  le as Region,
6429
- Cr as ResourceType,
6463
+ vr as ResourceType,
6430
6464
  x as SalesDirection,
6431
- it as SentryConfig,
6432
- sr as Seo,
6465
+ nt as SentryConfig,
6466
+ ir as Seo,
6433
6467
  ps as SeoDataProvider,
6434
- vr as SourcePrimaryInterest,
6435
- zr as StockCount,
6468
+ Pr as SourcePrimaryInterest,
6469
+ Wr as StockCount,
6436
6470
  Mt as TemplatesListFilters,
6437
6471
  je as TypedInstanceFactory,
6438
6472
  er as UnitsHelper,
6439
6473
  rs as UnknownClientDataProvider,
6440
- hr as UpdatableNamedIdentity,
6474
+ gr as UpdatableNamedIdentity,
6441
6475
  bt as User,
6442
6476
  gs as UserAuthDataProvider,
6443
- fr as UserCommonInfo,
6477
+ yr as UserCommonInfo,
6444
6478
  St as UserDataProvider,
6445
- et as UserPricingRole,
6479
+ rt as UserPricingRole,
6446
6480
  U as UserShortInfo,
6447
6481
  at as UserTypeEnum,
6448
- nt as VersionConfig,
6482
+ ot as VersionConfig,
6449
6483
  Ae as Warehouse,
6450
- ot as WebSocketConfig,
6484
+ ct as WebSocketConfig,
6451
6485
  Ye as findCatalogItemByIdRecursive,
6452
6486
  Xe as flattenCatalogItems,
6453
6487
  be as useAuthStateStore,