@snabcentr/common-lib 1.44.0 → 1.45.1

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.
@@ -4,6 +4,6 @@
4
4
  "name": "public-api",
5
5
  "src": "src/public-api.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-ukPb6cgmkEnU6lnD7zMDjbUiqWKTRI9Lt9EHhX2/JIZ6FRv2kIRwc3fFBJsSeCGY"
7
+ "integrity": "sha384-KAt3Ci+bzQlQfBniKbXVr1evjmkwbz6AjzwQc8GAmd4YSIkheYroJXRF5ujXUybn"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 1.44.0 (2025-04-25)
1
+ ## 1.45.1 (2025-04-28)
2
2
 
3
- ### added (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#11455: Добавлена HTTP конфигурация для media-сервера](web_soft/libs/ts/snabcentr-common-lib@fd8f7411bc6090e3d19e8bf50afc89fe8677b6c0) ([merge request](web_soft/libs/ts/snabcentr-common-lib!70))
5
+ - [#11455: Исправлена ошибка сохранения изображения категории](web_soft/libs/ts/snabcentr-common-lib@23f363a9a05bc373e8250213b8a8c52c5db9848b) ([merge request](web_soft/libs/ts/snabcentr-common-lib!72))
6
6
 
@@ -6,7 +6,7 @@ import { format as rr, addSeconds as sr, parseISO as N, isAfter as tr, startOfTo
6
6
  import gr from "axios";
7
7
  import { objectToSnake as be, objectToCamel as mr } from "ts-case-convert";
8
8
  import { defineStore as oe } from "pinia";
9
- import { ref as w, computed as C } from "vue";
9
+ import { ref as y, computed as w } from "vue";
10
10
  class K {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
@@ -378,10 +378,7 @@ class x extends yr {
378
378
  s(this, "priceCoefficients");
379
379
  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 = 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((g) => new fr(g))) ?? [], this.type = "product";
380
380
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
381
- t && (this.category = new fe({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new fe(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => {
382
- var y;
383
- return new wr(g, (y = O.getConfig().urls) == null ? void 0 : y.mediaServer);
384
- })) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((g) => new De(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
381
+ t && (this.category = new fe({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new fe(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new wr(g, O.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((g) => new De(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
385
382
  }
386
383
  /**
387
384
  * Возвращает признак, что это измеряемый товар.
@@ -1219,7 +1216,7 @@ class ue extends x {
1219
1216
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ne.Product, this.discount = e != null && e.discount ? new Sr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new _r(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;
1220
1217
  }
1221
1218
  }
1222
- class Lr {
1219
+ class ar {
1223
1220
  /**
1224
1221
  * Инициализирует экземпляр класса {@link ContactLinks}.
1225
1222
  *
@@ -1263,7 +1260,7 @@ class ee extends P {
1263
1260
  * Признак того, что менеджер является основным для клиента.
1264
1261
  */
1265
1262
  s(this, "isDefault");
1266
- e && (this.salesDirection = new T(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Lr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1263
+ e && (this.salesDirection = new T(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new ar(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1267
1264
  }
1268
1265
  }
1269
1266
  class pe extends ee {
@@ -1297,7 +1294,7 @@ class pe extends ee {
1297
1294
  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;
1298
1295
  }
1299
1296
  }
1300
- class ar extends ce {
1297
+ class Lr extends ce {
1301
1298
  /**
1302
1299
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1303
1300
  *
@@ -1328,7 +1325,7 @@ class ar extends ce {
1328
1325
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new pe(e.manager) : void 0;
1329
1326
  }
1330
1327
  }
1331
- class re extends ar {
1328
+ class re extends Lr {
1332
1329
  /**
1333
1330
  * Инициализирует экземпляр класса {@link ClientCategory}.
1334
1331
  *
@@ -2169,8 +2166,8 @@ class Ae extends p {
2169
2166
  page: (n == null ? void 0 : n.page) ?? 1,
2170
2167
  per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
2171
2168
  };
2172
- return e && (u.filters = JSON.stringify(e)), Xe(t) || (Ze(t) ? t : [t]).forEach((g, y) => {
2173
- u[`sort[${y}][field]`] = g.field, u[`sort[${y}][direction]`] = g.direction;
2169
+ return e && (u.filters = JSON.stringify(e)), Xe(t) || (Ze(t) ? t : [t]).forEach((g, C) => {
2170
+ u[`sort[${C}][field]`] = g.field, u[`sort[${C}][direction]`] = g.direction;
2174
2171
  }), this.get(r, u, o, l);
2175
2172
  }
2176
2173
  }
@@ -2542,7 +2539,7 @@ class fs extends Ae {
2542
2539
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_image_save
2543
2540
  */
2544
2541
  updateCategoryImage(r, e) {
2545
- return this.post(`/internal/catalog/categories/${r}/image`, e);
2542
+ return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
2546
2543
  }
2547
2544
  }
2548
2545
  class ys extends p {
@@ -3145,7 +3142,7 @@ class ws {
3145
3142
  }, this.lastLoginDate = {
3146
3143
  from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
3147
3144
  to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
3148
- }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((y) => new pe(y)) : [], this.salesDirection = new T(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new V(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new ve(r == null ? void 0 : r.contact), this.lastOrder = {
3145
+ }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((C) => new pe(C)) : [], this.salesDirection = new T(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new V(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new ve(r == null ? void 0 : r.contact), this.lastOrder = {
3149
3146
  createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
3150
3147
  creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
3151
3148
  isApproved: (g = r == null ? void 0 : r.lastOrder) == null ? void 0 : g.isApproved
@@ -3255,7 +3252,7 @@ class ze extends We {
3255
3252
  * @param data Данные для первоначальной инициализации.
3256
3253
  */
3257
3254
  constructor(e) {
3258
- var t, n, o, l, u, g, y, A;
3255
+ var t, n, o, l, u, g, C, A;
3259
3256
  super(e);
3260
3257
  /**
3261
3258
  * Краткие данные о клиенте.
@@ -3304,7 +3301,7 @@ class ze extends We {
3304
3301
  }, this.delivery = {
3305
3302
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
3306
3303
  date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? j(e == null ? void 0 : e.delivery.date, "dd.MM.yyyy", /* @__PURE__ */ new Date()) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
3307
- address: (y = e == null ? void 0 : e.delivery) != null && y.address ? new ie(e.delivery.address) : void 0,
3304
+ address: (C = e == null ? void 0 : e.delivery) != null && C.address ? new ie(e.delivery.address) : void 0,
3308
3305
  warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new le(e.delivery.warehouse) : void 0
3309
3306
  }, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new T(e == null ? void 0 : e.salesDirection), this.pendingAt = D(e == null ? void 0 : e.pendingAt) ? j(e == null ? void 0 : e.pendingAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.pendingAt) ?? /* @__PURE__ */ new Date(), this.processedAt = D(e == null ? void 0 : e.processedAt) ? j(e == null ? void 0 : e.processedAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.processedAt) ?? /* @__PURE__ */ new Date(), this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
3310
3307
  }
@@ -3769,7 +3766,7 @@ class Ds extends Ae {
3769
3766
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
3770
3767
  */
3771
3768
  createContragentClientData(r, e, t = {}) {
3772
- var g, y, A, S, _, L, a, I;
3769
+ var g, C, A, S, _, a, L, I;
3773
3770
  let n;
3774
3771
  const o = e, l = e, u = e;
3775
3772
  switch (e.opf.slug) {
@@ -3779,7 +3776,7 @@ class Ds extends Ae {
3779
3776
  name: o.name,
3780
3777
  alternative_name: o.alternativeName,
3781
3778
  partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
3782
- manager_id: (y = o.manager) == null ? void 0 : y.id,
3779
+ manager_id: (C = o.manager) == null ? void 0 : C.id,
3783
3780
  comment: o.comment,
3784
3781
  inn: o.inn,
3785
3782
  okpo: o.okpo,
@@ -3816,7 +3813,7 @@ class Ds extends Ae {
3816
3813
  name: u.name,
3817
3814
  alternative_name: u.alternativeName,
3818
3815
  partner_group_id: (_ = u.partnerGroup) == null ? void 0 : _.id,
3819
- manager_id: (L = u.manager) == null ? void 0 : L.id,
3816
+ manager_id: (a = u.manager) == null ? void 0 : a.id,
3820
3817
  comment: u.comment,
3821
3818
  inn: u.inn,
3822
3819
  kpp: u.kpp,
@@ -3837,7 +3834,7 @@ class Ds extends Ae {
3837
3834
  opf: e.opf.slug,
3838
3835
  name: e.name,
3839
3836
  alternative_name: e.alternativeName,
3840
- partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
3837
+ partner_group_id: (L = e.partnerGroup) == null ? void 0 : L.id,
3841
3838
  manager_id: (I = e.manager) == null ? void 0 : I.id,
3842
3839
  comment: e.comment
3843
3840
  };
@@ -3861,7 +3858,7 @@ class Ds extends Ae {
3861
3858
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
3862
3859
  */
3863
3860
  updateContragentClientData(r, e, t = {}) {
3864
- var g, y, A, S, _, L, a, I;
3861
+ var g, C, A, S, _, a, L, I;
3865
3862
  let n;
3866
3863
  const o = e, l = e, u = e;
3867
3864
  switch (e.opf.slug) {
@@ -3871,7 +3868,7 @@ class Ds extends Ae {
3871
3868
  name: o.name,
3872
3869
  alternative_name: o.alternativeName,
3873
3870
  partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
3874
- manager_id: (y = o.manager) == null ? void 0 : y.id,
3871
+ manager_id: (C = o.manager) == null ? void 0 : C.id,
3875
3872
  comment: o.comment,
3876
3873
  inn: o.inn,
3877
3874
  okpo: o.okpo,
@@ -3908,7 +3905,7 @@ class Ds extends Ae {
3908
3905
  name: u.name,
3909
3906
  alternative_name: u.alternativeName,
3910
3907
  partner_group_id: (_ = u.partnerGroup) == null ? void 0 : _.id,
3911
- manager_id: (L = u.manager) == null ? void 0 : L.id,
3908
+ manager_id: (a = u.manager) == null ? void 0 : a.id,
3912
3909
  comment: u.comment,
3913
3910
  inn: u.inn,
3914
3911
  kpp: u.kpp,
@@ -3929,7 +3926,7 @@ class Ds extends Ae {
3929
3926
  opf: e.opf.slug,
3930
3927
  name: e.name,
3931
3928
  alternative_name: e.alternativeName,
3932
- partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
3929
+ partner_group_id: (L = e.partnerGroup) == null ? void 0 : L.id,
3933
3930
  manager_id: (I = e.manager) == null ? void 0 : I.id,
3934
3931
  comment: e.comment
3935
3932
  };
@@ -4445,7 +4442,7 @@ const z = class z {
4445
4442
  * Список единиц измерения линейной величины.
4446
4443
  */
4447
4444
  s(z, "linearValues", ["пог.м.", "м.", "м2"]);
4448
- let Le = z;
4445
+ let ae = z;
4449
4446
  class bs {
4450
4447
  /**
4451
4448
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
@@ -4492,7 +4489,7 @@ class Jr {
4492
4489
  this.name = r.name, this.content = r.content;
4493
4490
  }
4494
4491
  }
4495
- class ae {
4492
+ class Le {
4496
4493
  /**
4497
4494
  * Инициализирует экземпляр класса {@link Seo}.
4498
4495
  *
@@ -4539,7 +4536,7 @@ class Ts extends p {
4539
4536
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
4540
4537
  */
4541
4538
  getResourceSeoData(r, e) {
4542
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new ae(t.data));
4539
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Le(t.data));
4543
4540
  }
4544
4541
  /**
4545
4542
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -4550,7 +4547,7 @@ class Ts extends p {
4550
4547
  * в случае ошибок в запросах.
4551
4548
  */
4552
4549
  saveResourceSeoData(r, e = {}) {
4553
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new ae(t.data), e);
4550
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Le(t.data), e);
4554
4551
  }
4555
4552
  /**
4556
4553
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -4563,7 +4560,7 @@ class Ts extends p {
4563
4560
  }
4564
4561
  }
4565
4562
  const v = oe("__references_private", () => {
4566
- const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), g = w(void 0), y = w(void 0), A = w(void 0), S = w(void 0), _ = w(void 0), L = w(void 0), a = w(void 0), I = w(void 0), d = w(void 0), c = w(void 0);
4563
+ const i = y({}), r = y(void 0), e = y(void 0), t = y(void 0), n = y(void 0), o = y(void 0), l = y(void 0), u = y(void 0), g = y(void 0), C = y(void 0), A = y(void 0), S = y(void 0), _ = y(void 0), a = y(void 0), L = y(void 0), I = y(void 0), d = y(void 0), c = y(void 0);
4567
4564
  return {
4568
4565
  /**
4569
4566
  * Список загружаемых/загруженных на данный момент значений.
@@ -4604,7 +4601,7 @@ const v = oe("__references_private", () => {
4604
4601
  /**
4605
4602
  * Справочник типов оплаты заказов.
4606
4603
  */
4607
- paymentTypeReference: y,
4604
+ paymentTypeReference: C,
4608
4605
  /**
4609
4606
  * Справочник групп партнеров.
4610
4607
  */
@@ -4620,11 +4617,11 @@ const v = oe("__references_private", () => {
4620
4617
  /**
4621
4618
  * Справочник направлений продаж.
4622
4619
  */
4623
- salesDirectionsReference: L,
4620
+ salesDirectionsReference: a,
4624
4621
  /**
4625
4622
  * Справочник источников первичного интереса.
4626
4623
  */
4627
- sourcePrimaryInterestReference: a,
4624
+ sourcePrimaryInterestReference: L,
4628
4625
  /**
4629
4626
  * Справочник складов.
4630
4627
  */
@@ -4639,87 +4636,87 @@ const v = oe("__references_private", () => {
4639
4636
  priceCoefficientsReference: c
4640
4637
  };
4641
4638
  }), Ss = oe("references", () => {
4642
- const i = C(() => {
4639
+ const i = w(() => {
4643
4640
  const c = v();
4644
4641
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(R).getChannelPrimaryInterest().then((h) => {
4645
4642
  c.channelPrimaryInterestReference = h;
4646
4643
  }).catch(m)), c.channelPrimaryInterestReference;
4647
- }), r = C(() => {
4644
+ }), r = w(() => {
4648
4645
  const c = v();
4649
4646
  return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, p.getInstance(R).getContactPositions().then((h) => {
4650
4647
  c.contactPositionsReference = h;
4651
4648
  }).catch(m)), c.contactPositionsReference;
4652
- }), e = C(() => {
4649
+ }), e = w(() => {
4653
4650
  const c = v();
4654
4651
  return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, p.getInstance(R).getCurrency().then((h) => {
4655
4652
  c.currencyReference = h;
4656
4653
  }).catch(m)), c.currencyReference;
4657
- }), t = C(() => {
4654
+ }), t = w(() => {
4658
4655
  const c = v();
4659
4656
  return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, p.getInstance(R).getOpf().then((h) => {
4660
4657
  c.opfReference = h;
4661
4658
  }).catch(m)), c.opfReference;
4662
- }), n = C(() => {
4659
+ }), n = w(() => {
4663
4660
  const c = v();
4664
4661
  return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(R).getOrderPaymentStatuses().then((h) => {
4665
4662
  c.orderPaymentStatusReference = h;
4666
4663
  }).catch(m)), c.orderPaymentStatusReference;
4667
- }), o = C(() => {
4664
+ }), o = w(() => {
4668
4665
  const c = v();
4669
4666
  return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, p.getInstance(R).getOrderStatuses().then((h) => {
4670
4667
  c.orderStatusReference = h;
4671
4668
  }).catch(m)), c.orderStatusReference;
4672
- }), l = C(() => {
4669
+ }), l = w(() => {
4673
4670
  const c = v();
4674
4671
  return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, p.getInstance(R).getPaymentTypes().then((h) => {
4675
4672
  c.paymentTypeReference = h;
4676
4673
  }).catch(m)), c.paymentTypeReference;
4677
- }), u = C(() => {
4674
+ }), u = w(() => {
4678
4675
  const c = v();
4679
4676
  return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, p.getInstance(R).getPartnerGroup().then((h) => {
4680
4677
  c.partnerGroupReference = h;
4681
4678
  }).catch(m)), c.partnerGroupReference;
4682
- }), g = C(() => {
4679
+ }), g = w(() => {
4683
4680
  const c = v();
4684
4681
  return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, p.getInstance(R).getProductFileType().then((h) => {
4685
4682
  c.productFileTypeReference = h;
4686
4683
  }).catch(m)), c.productFileTypeReference;
4687
- }), y = C(() => {
4684
+ }), C = w(() => {
4688
4685
  const c = v();
4689
4686
  return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, p.getInstance(R).getResourceTypes().then((h) => {
4690
4687
  c.resourceTypesReference = h;
4691
4688
  }).catch(m)), c.resourceTypesReference;
4692
- }), A = C(() => {
4689
+ }), A = w(() => {
4693
4690
  const c = v();
4694
4691
  return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, p.getInstance(R).getSalesDirections().then((h) => {
4695
4692
  c.salesDirectionsReference = h;
4696
4693
  }).catch(m)), c.salesDirectionsReference;
4697
- }), S = C(() => {
4694
+ }), S = w(() => {
4698
4695
  const c = v();
4699
4696
  return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(R).getSourcePrimaryInterest().then((h) => {
4700
4697
  c.sourcePrimaryInterestReference = h;
4701
4698
  }).catch(m)), c.sourcePrimaryInterestReference;
4702
- }), _ = C(() => {
4699
+ }), _ = w(() => {
4703
4700
  const c = v();
4704
4701
  return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, p.getInstance(R).getDeliveryTypes().then((h) => {
4705
4702
  c.deliveryTypeReference = h;
4706
4703
  }).catch(m)), c.deliveryTypeReference;
4707
- }), L = C(() => {
4704
+ }), a = w(() => {
4708
4705
  const c = v();
4709
4706
  return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, p.getInstance(Kr).getManagers().then((h) => {
4710
4707
  c.managersList = h;
4711
4708
  }).catch(m)), c.managersList;
4712
- }), a = C(() => {
4709
+ }), L = w(() => {
4713
4710
  const c = v();
4714
4711
  return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, p.getInstance(R).getWarehouses().then((h) => {
4715
4712
  c.warehousesReference = h;
4716
4713
  }).catch(m)), c.warehousesReference;
4717
- }), I = C(() => {
4714
+ }), I = w(() => {
4718
4715
  const c = v();
4719
4716
  return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, p.getInstance(R).getPropertyTypes().then((h) => {
4720
4717
  c.propertyTypesReference = h;
4721
4718
  }).catch(m)), c.propertyTypesReference;
4722
- }), d = C(() => {
4719
+ }), d = w(() => {
4723
4720
  const c = v();
4724
4721
  return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(R).getPriceCoefficients().then((h) => {
4725
4722
  c.priceCoefficientsReference = h;
@@ -4765,7 +4762,7 @@ const v = oe("__references_private", () => {
4765
4762
  /**
4766
4763
  * Справочник типов ресурсов.
4767
4764
  */
4768
- resourceTypesReference: y,
4765
+ resourceTypesReference: C,
4769
4766
  /**
4770
4767
  * Справочник направлений продаж.
4771
4768
  */
@@ -4781,11 +4778,11 @@ const v = oe("__references_private", () => {
4781
4778
  /**
4782
4779
  * Список менеджеров.
4783
4780
  */
4784
- managersList: L,
4781
+ managersList: a,
4785
4782
  /**
4786
4783
  * Справочник складов.
4787
4784
  */
4788
- warehousesReference: a,
4785
+ warehousesReference: L,
4789
4786
  /**
4790
4787
  * Справочник типов свойств.
4791
4788
  */
@@ -4796,7 +4793,7 @@ const v = oe("__references_private", () => {
4796
4793
  priceCoefficientsReference: d
4797
4794
  };
4798
4795
  }), Qr = oe("__user_state_private", () => {
4799
- const i = w({}), r = w(void 0);
4796
+ const i = y({}), r = y(void 0);
4800
4797
  return {
4801
4798
  /**
4802
4799
  * Список загружаемых/загруженных на данный момент значений.
@@ -4811,14 +4808,14 @@ const v = oe("__references_private", () => {
4811
4808
  /**
4812
4809
  * Данные о текущем пользователе.
4813
4810
  */
4814
- currentUser: C(() => {
4811
+ currentUser: w(() => {
4815
4812
  const r = Qr();
4816
4813
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Gr).getCurrentUser().then((e) => {
4817
4814
  r.currentUser = e;
4818
4815
  }).catch(m).finally(m)), r.currentUser;
4819
4816
  })
4820
4817
  }));
4821
- class Ls extends p {
4818
+ class as extends p {
4822
4819
  /**
4823
4820
  * Возвращает подсказки по адресам.
4824
4821
  *
@@ -4865,7 +4862,7 @@ class Ls extends p {
4865
4862
  });
4866
4863
  }
4867
4864
  }
4868
- class as {
4865
+ class Ls {
4869
4866
  /**
4870
4867
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
4871
4868
  *
@@ -4917,7 +4914,7 @@ export {
4917
4914
  ws as ClientsListFilters,
4918
4915
  As as ConfiguratorProvider,
4919
4916
  ve as Contact,
4920
- Lr as ContactLinks,
4917
+ ar as ContactLinks,
4921
4918
  H as ContactPerson,
4922
4919
  Wr as ContactPersonRelated,
4923
4920
  xr as ContactPosition,
@@ -4931,7 +4928,7 @@ export {
4931
4928
  Ne as CostSourceEnum,
4932
4929
  E as Country,
4933
4930
  te as Currency,
4934
- Ls as DataSuggestionProvider,
4931
+ as as DataSuggestionProvider,
4935
4932
  vs as DataTablePagination,
4936
4933
  Er as DataTablePaginationRequestParams,
4937
4934
  Rs as DataTableSortRequestParams,
@@ -4941,7 +4938,7 @@ export {
4941
4938
  V as DeliveryType,
4942
4939
  Rr as DeviceTypeResolutionConfig,
4943
4940
  Sr as DiscountShortInfo,
4944
- as as FieldValidationResultData,
4941
+ Ls as FieldValidationResultData,
4945
4942
  je as FilterOpEnum,
4946
4943
  ke as GeoCoordinates,
4947
4944
  yr as HiddenCatalogableItem,
@@ -4993,12 +4990,12 @@ export {
4993
4990
  qe as ResourceType,
4994
4991
  T as SalesDirection,
4995
4992
  Pr as SentryConfig,
4996
- ae as Seo,
4993
+ Le as Seo,
4997
4994
  Ts as SeoDataProvider,
4998
4995
  Ge as SourcePrimaryInterest,
4999
4996
  fr as StockCount,
5000
4997
  Pe as TypedInstanceFactory,
5001
- Le as UnitsHelper,
4998
+ ae as UnitsHelper,
5002
4999
  Ps as UnknownClientDataProvider,
5003
5000
  Oe as UpdatableNamedIdentity,
5004
5001
  qr as User,