@snabcentr/common-lib 4.6.0-dev → 4.7.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/sc-common-lib.js +655 -564
  3. package/dist/sc-common-lib.js.map +1 -1
  4. package/dist/sc-common-lib.umd.cjs +1 -1
  5. package/dist/sc-common-lib.umd.cjs.map +1 -1
  6. package/dist/src/config/interfaces/i-pagination-config.d.ts +20 -0
  7. package/dist/src/config/interfaces/i-pagination-config.d.ts.map +1 -0
  8. package/dist/src/config/interfaces/index.d.ts +1 -0
  9. package/dist/src/config/interfaces/index.d.ts.map +1 -1
  10. package/dist/src/documents/classes/document-item.d.ts +53 -0
  11. package/dist/src/documents/classes/document-item.d.ts.map +1 -0
  12. package/dist/src/documents/classes/index.d.ts +2 -0
  13. package/dist/src/documents/classes/index.d.ts.map +1 -0
  14. package/dist/src/documents/enums/document-content-type-enum.d.ts +22 -0
  15. package/dist/src/documents/enums/document-content-type-enum.d.ts.map +1 -0
  16. package/dist/src/documents/enums/document-type-enum.d.ts +18 -0
  17. package/dist/src/documents/enums/document-type-enum.d.ts.map +1 -0
  18. package/dist/src/documents/enums/index.d.ts +3 -0
  19. package/dist/src/documents/enums/index.d.ts.map +1 -0
  20. package/dist/src/documents/index.d.ts +5 -0
  21. package/dist/src/documents/index.d.ts.map +1 -0
  22. package/dist/src/documents/interfaces/i-document-item-save-data.d.ts +12 -0
  23. package/dist/src/documents/interfaces/i-document-item-save-data.d.ts.map +1 -0
  24. package/dist/src/documents/interfaces/i-document-item.d.ts +43 -0
  25. package/dist/src/documents/interfaces/i-document-item.d.ts.map +1 -0
  26. package/dist/src/documents/interfaces/index.d.ts +3 -0
  27. package/dist/src/documents/interfaces/index.d.ts.map +1 -0
  28. package/dist/src/documents/providers/document-provider.d.ts +53 -0
  29. package/dist/src/documents/providers/document-provider.d.ts.map +1 -0
  30. package/dist/src/documents/providers/index.d.ts +2 -0
  31. package/dist/src/documents/providers/index.d.ts.map +1 -0
  32. package/dist/src/index.d.ts +1 -0
  33. package/dist/src/index.d.ts.map +1 -1
  34. package/dist/src/pagination/helpers/index.d.ts +2 -0
  35. package/dist/src/pagination/helpers/index.d.ts.map +1 -0
  36. package/dist/src/pagination/helpers/pagination-helper.d.ts +40 -0
  37. package/dist/src/pagination/helpers/pagination-helper.d.ts.map +1 -0
  38. package/dist/src/pagination/index.d.ts +1 -0
  39. package/dist/src/pagination/index.d.ts.map +1 -1
  40. package/dist/src/table-data/classes/table-data-pagination-request-params.d.ts +5 -2
  41. package/dist/src/table-data/classes/table-data-pagination-request-params.d.ts.map +1 -1
  42. package/dist/src/table-data/classes/table-data-pagination.d.ts +6 -3
  43. package/dist/src/table-data/classes/table-data-pagination.d.ts.map +1 -1
  44. package/dist/src/table-data/helpers/index.d.ts +2 -0
  45. package/dist/src/table-data/helpers/index.d.ts.map +1 -0
  46. package/dist/src/table-data/helpers/pagination-settings-helper.d.ts +39 -0
  47. package/dist/src/table-data/helpers/pagination-settings-helper.d.ts.map +1 -0
  48. package/dist/src/table-data/index.d.ts +2 -0
  49. package/dist/src/table-data/index.d.ts.map +1 -1
  50. package/dist/src/table-data/interfaces/i-pagination-preset.d.ts +11 -0
  51. package/dist/src/table-data/interfaces/i-pagination-preset.d.ts.map +1 -0
  52. package/dist/src/table-data/interfaces/i-pagination-settings.d.ts +30 -0
  53. package/dist/src/table-data/interfaces/i-pagination-settings.d.ts.map +1 -0
  54. package/dist/src/table-data/interfaces/index.d.ts +2 -0
  55. package/dist/src/table-data/interfaces/index.d.ts.map +1 -1
  56. package/dist/src/table-data/values/index.d.ts +2 -0
  57. package/dist/src/table-data/values/index.d.ts.map +1 -0
  58. package/dist/src/table-data/values/pagination-default-settings.d.ts +6 -0
  59. package/dist/src/table-data/values/pagination-default-settings.d.ts.map +1 -0
  60. package/package.json +1 -1
@@ -1,27 +1,28 @@
1
- import { BasePaginationProvider as e, ChannelPrimaryInterest as t, CityWithRegionAndCountry as n, ContactLinks as r, Country as i, CuratedDirection as a, Currency as o, DateHelper as s, DeliveryType as c, FieldValidationResultData as ee, FilterGroup as te, FilterOpEnum as ne, GeoCoordinates as re, HttpRequester as l, Identity as u, Manager as d, ManagerCommon as ie, ManagerDataProvider as ae, NamedIdentity as f, Operator as oe, Opf as se, OpfEnum as p, OrderStatus as ce, PartnerGroup as m, PaymentType as le, PriceCoefficient as ue, PropertyType as de, Reference as fe, Region as pe, ResourceType as me, SalesDirection as h, Shop as he, SourcePrimaryInterest as ge, TypedInstanceFactory as g, UpdatableNamedIdentity as _e, User as ve, UserCommonInfo as ye, UserRegionShortInfo as be, Warehouse as xe, useBaseConfigStore as _ } from "@snabcentr/common-core";
2
- import { cloneDeep as Se, endsWith as Ce, forEach as we, includes as Te, isArray as Ee, isDate as De, isEmpty as Oe, isFunction as ke, isNil as v, isObject as Ae, isString as y, isUndefined as je, map as b, merge as Me, omitBy as Ne, round as Pe, some as Fe, startsWith as Ie, toUpper as Le } from "lodash-es";
3
- import { addBusinessDays as Re, addDays as x, addMonths as S, addQuarters as ze, addWeeks as Be, addYears as Ve, differenceInCalendarDays as He, differenceInCalendarMonths as Ue, endOfDay as C, endOfMonth as w, endOfQuarter as We, endOfToday as Ge, endOfTomorrow as Ke, endOfWeek as qe, endOfYear as Je, endOfYesterday as Ye, format as T, getDate as Xe, getDaysInMonth as Ze, parseISO as E, setDate as Qe, startOfDay as D, startOfMonth as O, startOfQuarter as $e, startOfToday as et, startOfTomorrow as tt, startOfWeek as k, startOfYear as A, startOfYesterday as nt, subDays as rt, subMonths as it, subQuarters as at, subWeeks as ot, subYears as st } from "date-fns";
1
+ import { BasePaginationProvider as e, ChannelPrimaryInterest as t, CityWithRegionAndCountry as n, ContactLinks as r, Country as i, CuratedDirection as a, Currency as o, DateHelper as s, DeliveryType as c, FieldValidationResultData as l, FilterGroup as u, FilterOpEnum as ee, GeoCoordinates as te, HttpRequester as d, Identity as f, Manager as p, ManagerCommon as ne, ManagerDataProvider as re, NamedIdentity as m, Operator as ie, Opf as ae, OpfEnum as oe, OrderStatus as se, PartnerGroup as h, PaymentType as ce, PriceCoefficient as le, PropertyType as ue, Reference as de, Region as fe, ResourceType as pe, SalesDirection as g, Shop as me, SourcePrimaryInterest as he, TypedInstanceFactory as _, UpdatableNamedIdentity as ge, User as _e, UserCommonInfo as ve, UserRegionShortInfo as ye, Warehouse as be, useBaseConfigStore as v } from "@snabcentr/common-core";
2
+ import { clamp as xe, cloneDeep as Se, endsWith as Ce, forEach as we, includes as Te, isArray as Ee, isDate as De, isEmpty as y, isFunction as Oe, isNil as b, isObject as ke, isString as x, isUndefined as Ae, map as S, merge as je, omitBy as Me, round as Ne, slice as Pe, some as Fe, startsWith as Ie, toUpper as Le } from "lodash-es";
3
+ import { addBusinessDays as Re, addDays as C, addMonths as w, addQuarters as ze, addWeeks as Be, addYears as Ve, differenceInCalendarDays as He, differenceInCalendarMonths as Ue, endOfDay as T, endOfMonth as E, endOfQuarter as We, endOfToday as Ge, endOfTomorrow as Ke, endOfWeek as qe, endOfYear as Je, endOfYesterday as Ye, format as D, getDate as Xe, getDaysInMonth as Ze, parseISO as O, setDate as Qe, startOfDay as k, startOfMonth as A, startOfQuarter as $e, startOfToday as et, startOfTomorrow as tt, startOfWeek as j, startOfYear as M, startOfYesterday as nt, subDays as rt, subMonths as it, subQuarters as at, subWeeks as ot, subYears as st } from "date-fns";
4
+ import { getActivePinia as ct } from "pinia";
4
5
  export * from "@snabcentr/common-core";
5
6
  //#region src/admins/classes/admin-short-info.ts
6
- var ct = class extends ve {
7
+ var lt = class extends _e {
7
8
  isSuperadmin;
8
9
  constructor(e) {
9
10
  super(e), this.isSuperadmin = e?.isSuperadmin ?? !1;
10
11
  }
11
- }, lt = class extends ct {
12
+ }, ut = class extends lt {
12
13
  showAllCosts;
13
14
  constructor(e) {
14
15
  super(e), this.showAllCosts = e?.showAllCosts;
15
16
  }
16
- }, j = class {
17
+ }, N = class {
17
18
  asClearRaw() {
18
19
  let e = {};
19
20
  return Object.keys(this).forEach((t) => {
20
21
  let n = this[t];
21
- v(n) || y(n) && n.trim().length === 0 || ke(n.isNewRec) && n.isNewRec() || (e[t] = n);
22
+ b(n) || x(n) && n.trim().length === 0 || Oe(n.isNewRec) && n.isNewRec() || (e[t] = n);
22
23
  }), e;
23
24
  }
24
- }, ut = class extends j {
25
+ }, dt = class extends N {
25
26
  name;
26
27
  phone;
27
28
  email;
@@ -40,7 +41,7 @@ var ct = class extends ve {
40
41
  }
41
42
  return this;
42
43
  }
43
- }, dt = class t extends e {
44
+ }, ft = class t extends e {
44
45
  static transformAdminDataToRequest(e) {
45
46
  return {
46
47
  name: e.name,
@@ -54,53 +55,53 @@ var ct = class extends ve {
54
55
  };
55
56
  }
56
57
  getAdminsList(e, t, n, r) {
57
- return this.getTypedPaginated(ct, "/internal/admins", e, t, n, {}, void 0, r);
58
+ return this.getTypedPaginated(lt, "/internal/admins", e, t, n, {}, void 0, r);
58
59
  }
59
60
  getAdmin(e, t = !1) {
60
- return this.get(`/internal/admins/${e}`, {}, (e) => new lt(e.data), t);
61
+ return this.get(`/internal/admins/${e}`, {}, (e) => new ut(e.data), t);
61
62
  }
62
63
  createAdmin(e, n = {}) {
63
- return this.post("/internal/admins", t.transformAdminDataToRequest(e), (e) => new lt(e.data), n);
64
+ return this.post("/internal/admins", t.transformAdminDataToRequest(e), (e) => new ut(e.data), n);
64
65
  }
65
66
  updateAdmin(e, n = {}) {
66
- return this.patch(`/internal/admins/${e.id}`, t.transformAdminDataToRequest(e), (e) => new lt(e.data), n);
67
+ return this.patch(`/internal/admins/${e.id}`, t.transformAdminDataToRequest(e), (e) => new ut(e.data), n);
67
68
  }
68
69
  deleteAdmin(e) {
69
70
  return this.delete(`/internal/admins/${e}`);
70
71
  }
71
- }, ft = /* @__PURE__ */ function(e) {
72
+ }, pt = /* @__PURE__ */ function(e) {
72
73
  return e.Image = "image", e.Video = "video", e;
73
- }({}), pt = class extends u {
74
+ }({}), mt = class extends f {
74
75
  mediaType;
75
76
  isCover;
76
77
  isUnused;
77
78
  url;
78
79
  urlWebp;
79
80
  constructor(e) {
80
- super(e, ""), this.mediaType = e?.mediaType ?? ft.Image, this.isCover = e?.isCover ?? !1, this.isUnused = e?.isUnused ?? !1, this.url = e?.url ?? "", this.urlWebp = e?.urlWebp;
81
+ super(e, ""), this.mediaType = e?.mediaType ?? pt.Image, this.isCover = e?.isCover ?? !1, this.isUnused = e?.isUnused ?? !1, this.url = e?.url ?? "", this.urlWebp = e?.urlWebp;
81
82
  }
82
83
  isImage() {
83
- return this.mediaType === ft.Image;
84
+ return this.mediaType === pt.Image;
84
85
  }
85
86
  isVideo() {
86
- return this.mediaType === ft.Video;
87
+ return this.mediaType === pt.Video;
87
88
  }
88
- }, mt = /* @__PURE__ */ function(e) {
89
+ }, ht = /* @__PURE__ */ function(e) {
89
90
  return e.Draft = "draft", e.Published = "published", e.Scheduled = "scheduled", e;
90
- }({}), M = class extends u {
91
+ }({}), P = class extends f {
91
92
  createdAt;
92
93
  constructor(e, t) {
93
94
  super(e, t), this.createdAt = s.parse(e?.createdAt) ?? /* @__PURE__ */ new Date();
94
95
  }
95
- }, ht = class e extends M {
96
+ }, gt = class e extends P {
96
97
  static resolvePublicationStatus(e) {
97
- return v(e) ? mt.Draft : e.getTime() > Date.now() ? mt.Scheduled : mt.Published;
98
+ return b(e) ? ht.Draft : e.getTime() > Date.now() ? ht.Scheduled : ht.Published;
98
99
  }
99
100
  static getSlugError(e) {
100
101
  return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Ie(e, "-") || Ce(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Te(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
101
102
  }
102
103
  static parseDate(e) {
103
- return v(e) ? null : y(e) ? E(e) : e;
104
+ return b(e) ? null : x(e) ? O(e) : e;
104
105
  }
105
106
  slug;
106
107
  title;
@@ -111,11 +112,11 @@ var ct = class extends ve {
111
112
  getPublicationStatus() {
112
113
  return e.resolvePublicationStatus(this.publishedAt);
113
114
  }
114
- }, gt = class extends ht {
115
+ }, _t = class extends gt {
115
116
  content;
116
117
  media;
117
118
  constructor(e) {
118
- super(e), this.content = e?.content ?? "", this.media = (e?.media ?? []).map((e) => new pt(e));
119
+ super(e), this.content = e?.content ?? "", this.media = (e?.media ?? []).map((e) => new mt(e));
119
120
  }
120
121
  toSaveData(e = !1) {
121
122
  return {
@@ -131,13 +132,13 @@ var ct = class extends ve {
131
132
  getUnusedMedia() {
132
133
  return this.media.filter((e) => e.isUnused);
133
134
  }
134
- }, N = class {
135
+ }, F = class {
135
136
  from;
136
137
  to;
137
138
  constructor(e) {
138
- this.from = y(e?.from) ? E(e.from) : e?.from ?? null, this.to = y(e?.to) ? E(e.to) : e?.to ?? null;
139
+ this.from = x(e?.from) ? O(e.from) : e?.from ?? null, this.to = x(e?.to) ? O(e.to) : e?.to ?? null;
139
140
  }
140
- }, _t = class extends j {
141
+ }, vt = class extends N {
141
142
  id;
142
143
  title;
143
144
  slug;
@@ -146,7 +147,7 @@ var ct = class extends ve {
146
147
  publishedAt;
147
148
  createdAt;
148
149
  constructor(e) {
149
- super(), this.id = e?.id, this.title = e?.title, this.slug = e?.slug, this.content = e?.content, this.publicationStatus = e?.publicationStatus, this.publishedAt = new N(e?.publishedAt), this.createdAt = new N(e?.createdAt);
150
+ super(), this.id = e?.id, this.title = e?.title, this.slug = e?.slug, this.content = e?.content, this.publicationStatus = e?.publicationStatus, this.publishedAt = new F(e?.publishedAt), this.createdAt = new F(e?.createdAt);
150
151
  }
151
152
  resetFilterValue(e) {
152
153
  switch (e) {
@@ -168,29 +169,29 @@ var ct = class extends ve {
168
169
  let e = super.asClearRaw();
169
170
  return !e?.publishedAt?.from && !e?.publishedAt?.to && delete e.publishedAt, !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, e;
170
171
  }
171
- }, vt = class t extends e {
172
+ }, yt = class t extends e {
172
173
  static preparePostSaveData(e) {
173
174
  let t = {};
174
- if (je(e.title) || (t.title = e.title), je(e.slug) || (t.slug = e.slug), je(e.content) || (t.content = e.content), !je(e.publishedAt)) {
175
- let n = _().config.dateFormats.api;
176
- t.publishedAt = v(e.publishedAt) ? null : T(e.publishedAt, n);
175
+ if (Ae(e.title) || (t.title = e.title), Ae(e.slug) || (t.slug = e.slug), Ae(e.content) || (t.content = e.content), !Ae(e.publishedAt)) {
176
+ let n = v().config.dateFormats.api;
177
+ t.publishedAt = b(e.publishedAt) ? null : D(e.publishedAt, n);
177
178
  }
178
179
  return t;
179
180
  }
180
181
  getPostList(e, t, n) {
181
182
  return this.getPaginated("/internal/blog", e, t, n, {}, (e) => ({
182
183
  ...e.data,
183
- data: e.data.data.map((e) => new ht(e))
184
+ data: e.data.data.map((e) => new gt(e))
184
185
  }));
185
186
  }
186
187
  getPost(e) {
187
- return this.get(`/internal/blog/${e}`, {}, (e) => new gt(e.data));
188
+ return this.get(`/internal/blog/${e}`, {}, (e) => new _t(e.data));
188
189
  }
189
190
  createPost(e, n = {}) {
190
- return this.post("/internal/blog", t.preparePostSaveData(e), (e) => new gt(e.data), n);
191
+ return this.post("/internal/blog", t.preparePostSaveData(e), (e) => new _t(e.data), n);
191
192
  }
192
193
  updatePost(e, n, r = {}) {
193
- return this.patch(`/internal/blog/${e}`, t.preparePostSaveData(n), (e) => new gt(e.data), r);
194
+ return this.patch(`/internal/blog/${e}`, t.preparePostSaveData(n), (e) => new _t(e.data), r);
194
195
  }
195
196
  removePost(e) {
196
197
  return this.delete(`/internal/blog/${e}`);
@@ -206,26 +207,26 @@ var ct = class extends ve {
206
207
  onUploadProgress: (e) => {
207
208
  r && r(e.total ? Math.round(e.loaded / e.total * 100) : 0);
208
209
  }
209
- }, (e) => new pt(e.data), i);
210
+ }, (e) => new mt(e.data), i);
210
211
  }
211
212
  updateMedia(e, t, n, r = {}) {
212
- return this.patch(`/internal/blog/${e}/media/${t}`, { isCover: n }, (e) => new pt(e.data), r);
213
+ return this.patch(`/internal/blog/${e}/media/${t}`, { isCover: n }, (e) => new mt(e.data), r);
213
214
  }
214
215
  removeMedia(e, t) {
215
216
  return this.delete(`/internal/blog/${e}/media/${t}`);
216
217
  }
217
- }, P = class extends _e {
218
+ }, bt = class extends ge {
218
219
  deletedAt;
219
220
  constructor(e) {
220
221
  super(e), this.deletedAt = s.parse(e?.deletedAt);
221
222
  }
222
- }, F = class extends f {
223
+ }, I = class extends m {
223
224
  type;
224
225
  isActive;
225
226
  constructor(e) {
226
227
  super(e), this.type = e?.type, this.isActive = e?.isActive ?? !0;
227
228
  }
228
- }, yt = class extends P {
229
+ }, xt = class extends bt {
229
230
  costCoefficient;
230
231
  isLowPriceAllowed;
231
232
  publishedAt;
@@ -233,30 +234,30 @@ var ct = class extends ve {
233
234
  percent;
234
235
  owner;
235
236
  constructor(e) {
236
- super(e), this.costCoefficient = e?.costCoefficient ?? 0, this.isLowPriceAllowed = e?.isLowPriceAllowed ?? !1, this.publishedAt = s.parse(e?.publishedAt), this.description = e?.description ?? void 0, this.percent = e?.percent ?? 0, this.owner = new F(e?.owner);
237
+ super(e), this.costCoefficient = e?.costCoefficient ?? 0, this.isLowPriceAllowed = e?.isLowPriceAllowed ?? !1, this.publishedAt = s.parse(e?.publishedAt), this.description = e?.description ?? void 0, this.percent = e?.percent ?? 0, this.owner = new I(e?.owner);
237
238
  }
238
- }, I = class extends _e {
239
+ }, L = class extends ge {
239
240
  description;
240
241
  owner;
241
242
  constructor(e) {
242
- super(e), this.description = e?.description ?? "", this.owner = e?.owner ? new F(e.owner) : void 0;
243
+ super(e), this.description = e?.description ?? "", this.owner = e?.owner ? new I(e.owner) : void 0;
243
244
  }
244
- }, bt = class {
245
+ }, St = class {
245
246
  coefficient;
246
247
  value;
247
248
  cost;
248
249
  percent;
249
250
  readOnly;
250
251
  constructor(e) {
251
- this.coefficient = new ue(e?.coefficient), this.value = e?.value ?? 0, this.cost = e?.cost ?? 0, this.percent = e?.percent ?? 0, this.readOnly = e?.readOnly ?? !0;
252
+ this.coefficient = new le(e?.coefficient), this.value = e?.value ?? 0, this.cost = e?.cost ?? 0, this.percent = e?.percent ?? 0, this.readOnly = e?.readOnly ?? !0;
252
253
  }
253
- }, xt = class {
254
+ }, Ct = class {
254
255
  warehouse;
255
256
  count;
256
257
  constructor(e) {
257
- this.warehouse = new xe(e?.warehouse), this.count = e?.count ?? 0;
258
+ this.warehouse = new be(e?.warehouse), this.count = e?.count ?? 0;
258
259
  }
259
- }, St = class extends f {
260
+ }, wt = class extends m {
260
261
  slug = "";
261
262
  description;
262
263
  isSquare = !1;
@@ -264,35 +265,35 @@ var ct = class extends ve {
264
265
  constructor(e) {
265
266
  super(e), e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
266
267
  }
267
- }, L = class extends f {
268
+ }, R = class extends m {
268
269
  code = "";
269
270
  constructor(e) {
270
271
  super(e), this.code = e?.code ?? "";
271
272
  }
272
- }, Ct = class extends L {
273
+ }, Tt = class extends R {
273
274
  slug;
274
275
  type;
275
276
  constructor(e) {
276
277
  super(e), this.slug = e?.slug ?? "";
277
278
  }
278
- }, wt = class extends Ct {
279
+ }, Et = class extends Tt {
279
280
  isHidden;
280
281
  constructor(e) {
281
282
  super(e), this.isHidden = e?.isHidden ?? !1;
282
283
  }
283
- }, Tt = class {
284
+ }, Dt = class {
284
285
  image;
285
286
  preview;
286
287
  isDefault;
287
288
  constructor(e, t) {
288
289
  this.image = `${t ?? ""}${e.image}`, this.preview = `${t ?? ""}${e.preview}`, this.isDefault = e.isDefault;
289
290
  }
290
- }, Et = class extends Ct {
291
+ }, Ot = class extends Tt {
291
292
  isPrimary;
292
293
  constructor(e) {
293
294
  super(e), this.isPrimary = e?.isPrimary ?? !1;
294
295
  }
295
- }, R = class extends wt {
296
+ }, z = class extends Et {
296
297
  supplierSku;
297
298
  unit;
298
299
  pack;
@@ -311,12 +312,12 @@ var ct = class extends ve {
311
312
  retailCostRub;
312
313
  priceCoefficients;
313
314
  constructor(e) {
314
- super(e), this.supplierSku = e?.supplierSku, this.unit = e?.unit ? new St(e.unit) : new St(), this.pack = e?.pack, this.minCount = e?.minCount, this.currency = e?.currency ? new o(e.currency) : new o(), this.cost = e?.cost ?? 0, this.costRub = e?.costRub ?? 0, this.costDate = y(e?.costDate) ? E(e.costDate) : e?.costDate, this.onOrder = e?.onOrder ?? !1, this.stockCount = e?.stockCount?.map((e) => new xt(e)) ?? [], this.type = "product";
315
+ super(e), this.supplierSku = e?.supplierSku, this.unit = e?.unit ? new wt(e.unit) : new wt(), this.pack = e?.pack, this.minCount = e?.minCount, this.currency = e?.currency ? new o(e.currency) : new o(), this.cost = e?.cost ?? 0, this.costRub = e?.costRub ?? 0, this.costDate = x(e?.costDate) ? O(e.costDate) : e?.costDate, this.onOrder = e?.onOrder ?? !1, this.stockCount = e?.stockCount?.map((e) => new Ct(e)) ?? [], this.type = "product";
315
316
  let t = e?.category ?? e?.categories?.find((e) => e.isPrimary);
316
- t && (this.category = new Et({
317
+ t && (this.category = new Ot({
317
318
  ...t,
318
319
  isPrimary: !0
319
- }), this.categories = [this.category]), e?.categories && (this.categories = e.categories.map((e) => new Et(e))), this.images = e?.images?.map((e) => new Tt(e, _().config.http.mediaUrl)) ?? [], this.properties = e?.properties ?? {}, this.retailCost = e?.retailCost, this.retailCostRub = e?.retailCostRub, this.priceCoefficients = e?.priceCoefficients?.map((e) => new bt(e)) ?? [], e && "codeNumber" in e && !e.code && (this.code = e?.codeNumber);
320
+ }), this.categories = [this.category]), e?.categories && (this.categories = e.categories.map((e) => new Ot(e))), this.images = e?.images?.map((e) => new Dt(e, v().config.http.mediaUrl)) ?? [], this.properties = e?.properties ?? {}, this.retailCost = e?.retailCost, this.retailCostRub = e?.retailCostRub, this.priceCoefficients = e?.priceCoefficients?.map((e) => new St(e)) ?? [], e && "codeNumber" in e && !e.code && (this.code = e?.codeNumber);
320
321
  }
321
322
  getIsMeasurable() {
322
323
  return this.unit.isLinear || this.unit.isSquare;
@@ -327,9 +328,9 @@ var ct = class extends ve {
327
328
  getRetailCostRub() {
328
329
  return this.retailCostRub ?? this.costRub;
329
330
  }
330
- }, Dt = /* @__PURE__ */ function(e) {
331
+ }, kt = /* @__PURE__ */ function(e) {
331
332
  return e.Discount = "discount", e.PriceTemplate = "price_template", e.ClientPrice = "client_price", e.Product = "product", e;
332
- }({}), z = class extends R {
333
+ }({}), B = class extends z {
333
334
  costCoefficient;
334
335
  costSource;
335
336
  discount;
@@ -340,9 +341,9 @@ var ct = class extends ve {
340
341
  isRequired;
341
342
  isFavorite;
342
343
  constructor(e) {
343
- super(e), this.costCoefficient = e?.costCoefficient ?? 0, this.costSource = e?.costSource ?? Dt.Product, this.discount = e?.discount ? new yt(e.discount) : void 0, this.priceTemplate = e?.priceTemplate ? new I(e.priceTemplate) : void 0, this.priceCoefficient = e?.priceCoefficient ? new ue(e.priceCoefficient) : void 0, this.increasePercent = e?.increasePercent, this.isPreviouslyOrdered = e?.isPreviouslyOrdered, this.isRequired = e?.isRequired, this.isFavorite = e?.isFavorite;
344
+ super(e), this.costCoefficient = e?.costCoefficient ?? 0, this.costSource = e?.costSource ?? kt.Product, this.discount = e?.discount ? new xt(e.discount) : void 0, this.priceTemplate = e?.priceTemplate ? new L(e.priceTemplate) : void 0, this.priceCoefficient = e?.priceCoefficient ? new le(e.priceCoefficient) : void 0, this.increasePercent = e?.increasePercent, this.isPreviouslyOrdered = e?.isPreviouslyOrdered, this.isRequired = e?.isRequired, this.isFavorite = e?.isFavorite;
344
345
  }
345
- }, B = class extends Et {
346
+ }, V = class extends Ot {
346
347
  isHidden;
347
348
  parentCategoryId;
348
349
  properties;
@@ -350,7 +351,7 @@ var ct = class extends ve {
350
351
  constructor(e) {
351
352
  super(e), this.isHidden = e?.isHidden ?? !1, this.parentCategoryId = e?.parentCategoryId, this.properties = e?.properties, this.type = "category", this.currencyRates = e?.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([e, t]) => [Le(e), t])) : void 0;
352
353
  }
353
- }, Ot = class extends u {
354
+ }, At = class extends f {
354
355
  category;
355
356
  product;
356
357
  quantity;
@@ -369,9 +370,9 @@ var ct = class extends ve {
369
370
  originalId;
370
371
  replacementId;
371
372
  constructor(e) {
372
- super(e), this.product = new z(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new B(), this.currency = e.currency ? new o(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Se(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new F(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
373
+ super(e), this.product = new B(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new V(), this.currency = e.currency ? new o(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Se(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new I(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
373
374
  }
374
- }, kt = class extends Ot {
375
+ }, jt = class extends At {
375
376
  cost;
376
377
  costOne;
377
378
  costOneRub;
@@ -384,16 +385,16 @@ var ct = class extends ve {
384
385
  constructor(e) {
385
386
  super(e), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = Ee(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new o(e.currency);
386
387
  }
387
- }, V = class {
388
+ }, H = class {
388
389
  items;
389
390
  resultSum;
390
391
  directionsSum;
391
392
  constructor(e) {
392
- this.items = e.items.map((e) => new kt(e)), this.resultSum = e.resultSum, this.directionsSum = e.directionsSum;
393
+ this.items = e.items.map((e) => new jt(e)), this.resultSum = e.resultSum, this.directionsSum = e.directionsSum;
393
394
  }
394
- }, At = class extends l {
395
+ }, Mt = class extends d {
395
396
  getCart(e) {
396
- return this.get(`internal/clients/${e.id}/cart`, {}, (e) => new V(e.data));
397
+ return this.get(`internal/clients/${e.id}/cart`, {}, (e) => new H(e.data));
397
398
  }
398
399
  deleteCart(e) {
399
400
  return this.delete(`internal/clients/${e.id}/cart`);
@@ -410,7 +411,7 @@ var ct = class extends ve {
410
411
  marker: t.marker,
411
412
  is_additional_sale: t.isAdditionalSale,
412
413
  ...t.configuratorParams
413
- }, (e) => new V(e.data), n);
414
+ }, (e) => new H(e.data), n);
414
415
  }
415
416
  patchCartItem(e, t, n = {}) {
416
417
  return this.patch(`internal/clients/${e.id}/cart/${t.id}`, {
@@ -424,65 +425,65 @@ var ct = class extends ve {
424
425
  marker: t.marker,
425
426
  is_additional_sale: t.isAdditionalSale,
426
427
  ...t.configuratorParams
427
- }, (e) => new V(e.data), n);
428
+ }, (e) => new H(e.data), n);
428
429
  }
429
430
  deleteCartItem(e, t) {
430
- return this.delete(`internal/clients/${e.id}/cart/${t.id}`, (e) => new V(e.data));
431
+ return this.delete(`internal/clients/${e.id}/cart/${t.id}`, (e) => new H(e.data));
431
432
  }
432
433
  addCartItemFromCSV(e, t) {
433
- return this.post(`internal/clients/${e.id}/cart/add-products-from-csv`, t, (e) => new V(e.data));
434
+ return this.post(`internal/clients/${e.id}/cart/add-products-from-csv`, t, (e) => new H(e.data));
434
435
  }
435
436
  getCartItemFromCSVExample(e) {
436
437
  return this.get(`internal/clients/${e.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
437
438
  }
438
- }, jt = /* @__PURE__ */ function(e) {
439
+ }, Nt = /* @__PURE__ */ function(e) {
439
440
  return e.m2Cost = "m2Cost", e.percent = "percent", e.value = "value", e;
440
- }({}), Mt = /* @__PURE__ */ function(e) {
441
+ }({}), Pt = /* @__PURE__ */ function(e) {
441
442
  return e.Checkbox = "checkbox", e.Range = "range", e.Toggle = "toggle", e.Group = "group", e;
442
- }({}), H = class e extends B {
443
+ }({}), U = class e extends V {
443
444
  categories;
444
445
  products;
445
446
  constructor(t) {
446
- super(t), this.categories = t?.categories?.map((t) => new e(t)), this.products = t?.products?.map((e) => new R(e));
447
+ super(t), this.categories = t?.categories?.map((t) => new e(t)), this.products = t?.products?.map((e) => new z(e));
447
448
  }
448
- }, Nt = class extends B {
449
+ }, Ft = class extends V {
449
450
  isDisabled;
450
451
  isRequired;
451
452
  isFavorite;
452
453
  hidingComment;
453
454
  manager;
454
455
  constructor(e) {
455
- super(e), this.isDisabled = e?.isDisabled ?? !1, this.isRequired = e?.isRequired ?? !1, this.isFavorite = e?.isFavorite ?? !1, this.hidingComment = e?.hidingComment, this.manager = e?.manager ? new d(e.manager) : void 0;
456
+ super(e), this.isDisabled = e?.isDisabled ?? !1, this.isRequired = e?.isRequired ?? !1, this.isFavorite = e?.isFavorite ?? !1, this.hidingComment = e?.hidingComment, this.manager = e?.manager ? new p(e.manager) : void 0;
456
457
  }
457
- }, Pt = class e extends Nt {
458
+ }, It = class e extends Ft {
458
459
  categories;
459
460
  products;
460
461
  constructor(t) {
461
- super(t), this.categories = t?.categories?.map((t) => new e(t)), this.products = t?.products?.map((e) => new z(e));
462
+ super(t), this.categories = t?.categories?.map((t) => new e(t)), this.products = t?.products?.map((e) => new B(e));
462
463
  }
463
- }, Ft = class {
464
+ }, Lt = class {
464
465
  priceCoefficient;
465
466
  increasePercent;
466
467
  constructor(e) {
467
- this.priceCoefficient = e?.priceCoefficient && new ue(e.priceCoefficient), this.increasePercent = e?.increasePercent;
468
+ this.priceCoefficient = e?.priceCoefficient && new le(e.priceCoefficient), this.increasePercent = e?.increasePercent;
468
469
  }
469
- }, It = class extends Ft {
470
+ }, Rt = class extends Lt {
470
471
  constructor(e) {
471
472
  super(e);
472
473
  }
473
- }, Lt = class extends It {
474
+ }, zt = class extends Rt {
474
475
  productCategory;
475
476
  constructor(e) {
476
- super(e), this.productCategory = new B(e?.productCategory);
477
+ super(e), this.productCategory = new V(e?.productCategory);
477
478
  }
478
- }, Rt = class extends f {
479
+ }, Bt = class extends m {
479
480
  photo;
480
481
  contacts;
481
482
  curatedDirection;
482
483
  constructor(e) {
483
484
  super(e), this.photo = e.photo, this.contacts = new r(e.contacts), this.curatedDirection = new a(e.curatedDirection);
484
485
  }
485
- }, U = class extends ye {
486
+ }, W = class extends ve {
486
487
  salesDirection;
487
488
  debt;
488
489
  alternativeName;
@@ -493,47 +494,47 @@ var ct = class extends ve {
493
494
  managers;
494
495
  curators;
495
496
  constructor(e) {
496
- super(e), this.salesDirection = new h(e?.salesDirection), this.debt = e?.debt ?? 0, this.alternativeName = e?.alternativeName ?? "", this.city = new n(e?.city), this.comment = e?.comment, this.isPhoneApproved = e?.isPhoneApproved ?? !1, this.isEmailApproved = e?.isEmailApproved ?? !1, this.managers = e?.managers?.map((e) => new ie(e)) ?? [], this.curators = e?.curators?.map((e) => new Rt(e)) ?? void 0;
497
+ super(e), this.salesDirection = new g(e?.salesDirection), this.debt = e?.debt ?? 0, this.alternativeName = e?.alternativeName ?? "", this.city = new n(e?.city), this.comment = e?.comment, this.isPhoneApproved = e?.isPhoneApproved ?? !1, this.isEmailApproved = e?.isEmailApproved ?? !1, this.managers = e?.managers?.map((e) => new ne(e)) ?? [], this.curators = e?.curators?.map((e) => new Bt(e)) ?? void 0;
497
498
  }
498
- }, zt = class extends M {
499
+ }, Vt = class extends P {
499
500
  deletedAt;
500
501
  constructor(e, t) {
501
502
  super(e, t), this.deletedAt = s.parse(e?.deletedAt);
502
503
  }
503
- }, W = class extends zt {
504
+ }, G = class extends Vt {
504
505
  client;
505
506
  priceTemplate;
506
507
  constructor(e) {
507
- super(e), this.client = new U(e?.client), this.priceTemplate = new I(e?.priceTemplate);
508
+ super(e), this.client = new W(e?.client), this.priceTemplate = new L(e?.priceTemplate);
508
509
  }
509
- }, Bt = class extends It {
510
+ }, Ht = class extends Rt {
510
511
  product;
511
512
  constructor(e) {
512
- super(e), this.product = new R(e?.product);
513
+ super(e), this.product = new z(e?.product);
513
514
  }
514
- }, G = class extends f {
515
+ }, K = class extends m {
515
516
  type;
516
517
  description;
517
518
  metadata;
518
519
  isFilterable;
519
520
  constructor(e) {
520
- super(e), this.type = new de(e?.type), this.description = e?.description ?? "", this.metadata = e?.metadata, this.isFilterable = e?.isFilterable;
521
+ super(e), this.type = new ue(e?.type), this.description = e?.description ?? "", this.metadata = e?.metadata, this.isFilterable = e?.isFilterable;
521
522
  }
522
- }, K = class {
523
+ }, q = class {
523
524
  property;
524
525
  value;
525
526
  constructor(e) {
526
- this.property = new G(e?.property), this.value = e?.value ?? "";
527
+ this.property = new K(e?.property), this.value = e?.value ?? "";
527
528
  }
528
- }, Vt = class {
529
+ }, Ut = class {
529
530
  id;
530
531
  name;
531
532
  description;
532
533
  ownerName;
533
- createdAt = new N();
534
- updatedAt = new N();
534
+ createdAt = new F();
535
+ updatedAt = new F();
535
536
  constructor(e) {
536
- this.id = e?.id, this.name = e?.name, this.description = e?.description, this.ownerName = e?.ownerName, this.createdAt = new N(e?.createdAt), this.updatedAt = new N(e?.updatedAt);
537
+ this.id = e?.id, this.name = e?.name, this.description = e?.description, this.ownerName = e?.ownerName, this.createdAt = new F(e?.createdAt), this.updatedAt = new F(e?.updatedAt);
537
538
  }
538
539
  resetFilterValue(e) {
539
540
  switch (e) {
@@ -554,26 +555,26 @@ var ct = class extends ve {
554
555
  let e = {};
555
556
  return Object.keys(this).forEach((t) => {
556
557
  let n = this[t];
557
- v(n) || y(n) && n.trim().length === 0 || ke(n.isNewRec) && n.isNewRec() || (e[t] = n);
558
+ b(n) || x(n) && n.trim().length === 0 || Oe(n.isNewRec) && n.isNewRec() || (e[t] = n);
558
559
  }), !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, !e?.updatedAt?.from && !e?.updatedAt?.to && delete e.updatedAt, e;
559
560
  }
560
- }, Ht = class extends Ft {
561
+ }, Wt = class extends Lt {
561
562
  executor;
562
563
  createdAt;
563
564
  constructor(e) {
564
- super(e), this.executor = e?.executor ? new F(e.executor) : void 0, this.createdAt = s.parse(e?.createdAt);
565
+ super(e), this.executor = e?.executor ? new I(e.executor) : void 0, this.createdAt = s.parse(e?.createdAt);
565
566
  }
566
- }, Ut = class extends Ht {
567
+ }, Gt = class extends Wt {
567
568
  product;
568
569
  constructor(e) {
569
- super(e), this.product = new R(e?.product);
570
+ super(e), this.product = new z(e?.product);
570
571
  }
571
- }, Wt = class extends Ht {
572
+ }, Kt = class extends Wt {
572
573
  productCategory;
573
574
  constructor(e) {
574
- super(e), this.productCategory = new B(e?.productCategory);
575
+ super(e), this.productCategory = new V(e?.productCategory);
575
576
  }
576
- }, q = class extends f {
577
+ }, J = class extends m {
577
578
  description;
578
579
  canChangeLowCost;
579
580
  parentRoleId;
@@ -583,14 +584,14 @@ var ct = class extends ve {
583
584
  constructor(e) {
584
585
  super(e), this.description = e?.description, this.canChangeLowCost = e?.canChangeLowCost ?? !1, this.parentRoleId = e?.parentRoleId;
585
586
  }
586
- }, Gt = class {
587
+ }, qt = class {
587
588
  role;
588
589
  category;
589
590
  minCoefficient;
590
591
  constructor(e) {
591
- this.role = new q(e?.role), this.category = new B(e?.category), this.minCoefficient = new ue(e?.minCoefficient);
592
+ this.role = new J(e?.role), this.category = new V(e?.category), this.minCoefficient = new le(e?.minCoefficient);
592
593
  }
593
- }, Kt = class {
594
+ }, Jt = class {
594
595
  isFake;
595
596
  isHidden;
596
597
  isMultiple;
@@ -600,20 +601,20 @@ var ct = class extends ve {
600
601
  constructor(e) {
601
602
  this.isFake = e?.isFake ?? !1, this.isHidden = e?.isHidden ?? !1, this.isMultiple = e?.isMultiple ?? null, this.type = e?.type ?? null, this.ord = e?.ord ?? 0, this.group = e?.group;
602
603
  }
603
- }, qt = class {
604
+ }, Yt = class {
604
605
  category;
605
606
  property;
606
607
  settings;
607
608
  constructor(e) {
608
- this.category = new B(e?.category), this.property = new G(e?.property), this.settings = new Kt(e?.settings);
609
+ this.category = new V(e?.category), this.property = new K(e?.property), this.settings = new Jt(e?.settings);
609
610
  }
610
- }, Jt = class {
611
+ }, Xt = class {
611
612
  id;
612
613
  label;
613
614
  constructor(e) {
614
615
  this.id = e?.id ?? "", this.label = e?.label ?? "";
615
616
  }
616
- }, Yt = class e {
617
+ }, Zt = class e {
617
618
  id;
618
619
  label;
619
620
  type;
@@ -624,9 +625,9 @@ var ct = class extends ve {
624
625
  max;
625
626
  filters;
626
627
  constructor(t) {
627
- this.id = t?.id ?? "", this.label = t?.label ?? "", this.type = t?.type ?? Mt.Checkbox, this.ord = t?.ord ?? 0, this.isMultiple = t?.isMultiple ?? null, this.values = t?.values?.map((e) => new Jt(e)) ?? [], this.min = t?.min ?? null, this.max = t?.max ?? null, this.filters = t?.filters?.map((t) => new e(t)) ?? [];
628
+ this.id = t?.id ?? "", this.label = t?.label ?? "", this.type = t?.type ?? Pt.Checkbox, this.ord = t?.ord ?? 0, this.isMultiple = t?.isMultiple ?? null, this.values = t?.values?.map((e) => new Xt(e)) ?? [], this.min = t?.min ?? null, this.max = t?.max ?? null, this.filters = t?.filters?.map((t) => new e(t)) ?? [];
628
629
  }
629
- }, Xt = class extends l {
630
+ }, Qt = class extends d {
630
631
  search(e, t = !1) {
631
632
  return this.get("/internal/catalog/search", {
632
633
  term: e,
@@ -634,18 +635,18 @@ var ct = class extends ve {
634
635
  });
635
636
  }
636
637
  getPriceExportLink(e = "csv", t = !1, n = void 0, r = void 0) {
637
- let i = `${_().config.http.portalApiUrl}/api/internal/price/export?format=${e}&show_hidden=${t}`;
638
+ let i = `${v().config.http.portalApiUrl}/api/internal/price/export?format=${e}&show_hidden=${t}`;
638
639
  return n && (i += `&category_id=${n}`), r && (i += `&client_id=${r}`), i;
639
640
  }
640
- }, Zt = class extends l {
641
+ }, $t = class extends d {
641
642
  importPrices(e, t, n = !1) {
642
643
  return this.post(`/internal/clients/${e}/price/import`, t, void 0, {}, n);
643
644
  }
644
645
  getCategoryPrices(e) {
645
- return this.getTypedList(Wt, `/internal/clients/${e}/price/categories`);
646
+ return this.getTypedList(Kt, `/internal/clients/${e}/price/categories`);
646
647
  }
647
648
  getCategoryPrice(e, t) {
648
- return this.get(`/internal/clients/${e}/price/categories/${t}`, {}, (e) => new Wt(e.data));
649
+ return this.get(`/internal/clients/${e}/price/categories/${t}`, {}, (e) => new Kt(e.data));
649
650
  }
650
651
  updateCategoryPrices(e, t, n, r = !1) {
651
652
  return this.request({
@@ -691,16 +692,16 @@ var ct = class extends ve {
691
692
  return this.delete(`/internal/clients/${e}/price/categories/${t}/manager`);
692
693
  }
693
694
  getProductPrices(e) {
694
- return this.getTypedList(Ut, `/internal/clients/${e}/price/products`);
695
+ return this.getTypedList(Gt, `/internal/clients/${e}/price/products`);
695
696
  }
696
697
  getProductPrice(e, t) {
697
- return this.get(`/internal/clients/${e}/price/products/${t}`, {}, (e) => new Ut(e.data));
698
+ return this.get(`/internal/clients/${e}/price/products/${t}`, {}, (e) => new Gt(e.data));
698
699
  }
699
700
  updateProductPrice(e, t, n) {
700
701
  return this.patch(`/internal/clients/${e}/price/products/${t}`, {
701
702
  price_coefficient_id: n.coefficient?.id,
702
703
  increase_percent: n.value
703
- }, (e) => new Ut(e.data));
704
+ }, (e) => new Gt(e.data));
704
705
  }
705
706
  removeProductPrice(e, t) {
706
707
  return this.delete(`/internal/clients/${e}/price/products/${t}`);
@@ -720,96 +721,96 @@ var ct = class extends ve {
720
721
  sendCommercialOffer(e, t) {
721
722
  return this.post(`/internal/clients/${e}/price/commercial-offer/send`, t);
722
723
  }
723
- }, Qt = class extends l {
724
+ }, en = class extends d {
724
725
  getTemplateList(e) {
725
- return this.getTypedList(W, `/internal/clients/${e}/price/templates`);
726
+ return this.getTypedList(G, `/internal/clients/${e}/price/templates`);
726
727
  }
727
728
  getActiveTemplate(e) {
728
- return this.get(`/internal/clients/${e}/price/templates/active`, {}, (e) => new W(e.data), !0);
729
+ return this.get(`/internal/clients/${e}/price/templates/active`, {}, (e) => new G(e.data), !0);
729
730
  }
730
731
  attachTemplate(e, t, n) {
731
- let r = _().config.dateFormats.api;
732
+ let r = v().config.dateFormats.api;
732
733
  return this.post(`/internal/clients/${e}/price/templates/${t}`, n && {
733
- startAt: n.startAt && T(n.startAt, r),
734
- endAt: n.endAt && T(n.endAt, r)
735
- }, (e) => new W(e.data), {}, !0);
734
+ startAt: n.startAt && D(n.startAt, r),
735
+ endAt: n.endAt && D(n.endAt, r)
736
+ }, (e) => new G(e.data), {}, !0);
736
737
  }
737
738
  applyTemplate(e, t) {
738
739
  return this.post(`/internal/clients/${e}/price/templates/${t}/apply`, {}, void 0, {}, !0);
739
740
  }
740
741
  changeTemplate(e, t, n, r) {
741
- let i = _().config.dateFormats.api;
742
+ let i = v().config.dateFormats.api;
742
743
  return this.patch(`/internal/clients/${e}/price/templates/${t}/${n}`, r && {
743
- startAt: r.startAt && T(r.startAt, i),
744
- endAt: r.endAt && T(r.endAt, i)
745
- }, (e) => new W(e.data));
744
+ startAt: r.startAt && D(r.startAt, i),
745
+ endAt: r.endAt && D(r.endAt, i)
746
+ }, (e) => new G(e.data));
746
747
  }
747
748
  detachTemplate(e, t, n) {
748
749
  return this.delete(`/internal/clients/${e}/price/templates/${t}/${n}`);
749
750
  }
750
- }, $t = class extends l {
751
+ }, tn = class extends d {
751
752
  getRootCategoriesList(e = !1) {
752
- return this.getTypedList(H, "/internal/catalog/categories", { showHidden: e });
753
+ return this.getTypedList(U, "/internal/catalog/categories", { showHidden: e });
753
754
  }
754
755
  getCategoryData(e, t = !1, n = !1) {
755
756
  return this.get(`/internal/catalog/categories/${e}`, {
756
757
  showHidden: t,
757
758
  withNestedCategories: n
758
- }, (e) => new H(e.data));
759
+ }, (e) => new U(e.data));
759
760
  }
760
761
  getPublicCategoryData(e) {
761
- return this.get(`/public/catalog/categories/${e}`, {}, (e) => new H(e.data));
762
+ return this.get(`/public/catalog/categories/${e}`, {}, (e) => new U(e.data));
762
763
  }
763
764
  getCategoryProductsList(e, t = !0, n = !1) {
764
765
  return this.get(`/internal/catalog/categories/${e}/products`, {
765
766
  showHidden: n,
766
767
  withPriceCoefficients: t
767
- }, (e) => b(e.data, (e) => new R(e)));
768
+ }, (e) => S(e.data, (e) => new z(e)));
768
769
  }
769
770
  getCategoryProductsCoefficients(e) {
770
771
  return this.get(`/internal/catalog/categories/${e}/products/coefficients`, {}, (e) => {
771
772
  let { data: t } = e;
772
- return we(t, (e) => e.map((e) => new bt(e))), t;
773
+ return we(t, (e) => e.map((e) => new St(e))), t;
773
774
  });
774
775
  }
775
776
  publicSimpleSearch(e, t = 10) {
776
777
  return new Promise((n, r) => {
777
778
  this.get(`/public/catalog/search/simple?limit=${t}&term=${e}`).then((e) => {
778
- n(e.categories.map((e) => new H(e)));
779
+ n(e.categories.map((e) => new U(e)));
779
780
  }).catch((e) => {
780
781
  r(e);
781
782
  });
782
783
  });
783
784
  }
784
- }, en = class extends e {
785
+ }, nn = class extends e {
785
786
  getProductData(e, t = !1) {
786
- return this.get(`/internal/catalog/products/${e}`, { withPriceCoefficients: t }, (e) => new R(e.data));
787
+ return this.get(`/internal/catalog/products/${e}`, { withPriceCoefficients: t }, (e) => new z(e.data));
787
788
  }
788
789
  getPublicProductData(e) {
789
- return this.get(`/public/catalog/products/${e}`, {}, (e) => new R(e.data));
790
+ return this.get(`/public/catalog/products/${e}`, {}, (e) => new z(e.data));
790
791
  }
791
792
  getProductPriceCoefficients(e) {
792
- return this.get(`/internal/catalog/products/${e}/coefficients`, {}, (e) => b(e.data, (e) => new bt(e)));
793
+ return this.get(`/internal/catalog/products/${e}/coefficients`, {}, (e) => S(e.data, (e) => new St(e)));
793
794
  }
794
795
  getNewProducts(e, t, n = !0) {
795
- let r = _().config.dateFormats.api;
796
- return this.getTypedPaginated(R, "/internal/catalog/products/new", void 0, void 0, t, {
797
- period: { from: T(e, r) },
796
+ let r = v().config.dateFormats.api;
797
+ return this.getTypedPaginated(z, "/internal/catalog/products/new", void 0, void 0, t, {
798
+ period: { from: D(e, r) },
798
799
  withPriceCoefficients: n
799
800
  });
800
801
  }
801
802
  publicSimpleSearch(e, t = 10) {
802
803
  return new Promise((n, r) => {
803
804
  this.get(`/public/catalog/search/simple?limit=${t}&term=${e}`).then((e) => {
804
- n(e.products.map((e) => new R(e)));
805
+ n(e.products.map((e) => new z(e)));
805
806
  }).catch((e) => {
806
807
  r(e);
807
808
  });
808
809
  });
809
810
  }
810
- }, tn = class extends l {
811
+ }, rn = class extends d {
811
812
  getRootCategoriesList(e, t = !1) {
812
- return this.getTypedList(Pt, "/internal/catalog/categories", {
813
+ return this.getTypedList(It, "/internal/catalog/categories", {
813
814
  clientId: e,
814
815
  showHidden: t
815
816
  });
@@ -819,66 +820,66 @@ var ct = class extends ve {
819
820
  clientId: e,
820
821
  showHidden: n,
821
822
  withNestedCategories: r
822
- }, (e) => new Pt(e.data));
823
+ }, (e) => new It(e.data));
823
824
  }
824
825
  getCategoryProductsList(e, t, n = !0, r = !1) {
825
826
  return this.get(`/internal/catalog/categories/${t}/products`, {
826
827
  client_id: e,
827
828
  showHidden: r,
828
829
  withPriceCoefficients: n
829
- }, (e) => b(e.data, (e) => new z(e)));
830
+ }, (e) => S(e.data, (e) => new B(e)));
830
831
  }
831
- }, nn = class extends e {
832
+ }, an = class extends e {
832
833
  getProductData(e, t, n = !1) {
833
834
  return this.get(`/internal/catalog/products/${e}`, {
834
835
  clientId: t,
835
836
  withPriceCoefficients: n
836
- }, (e) => new z(e.data));
837
+ }, (e) => new B(e.data));
837
838
  }
838
839
  getNewProducts(e, t, n, r = !0) {
839
- let i = _().config.dateFormats.api;
840
- return this.getTypedPaginated(z, "/internal/catalog/products/new", void 0, void 0, n, {
840
+ let i = v().config.dateFormats.api;
841
+ return this.getTypedPaginated(B, "/internal/catalog/products/new", void 0, void 0, n, {
841
842
  clientId: e,
842
- period: { from: T(t, i) },
843
+ period: { from: D(t, i) },
843
844
  withPriceCoefficients: r
844
845
  });
845
846
  }
846
- }, rn = class extends e {
847
+ }, on = class extends e {
847
848
  getTemplateList(e, t, n) {
848
- return this.getTypedPaginated(I, "/internal/price/templates", e, t, n);
849
+ return this.getTypedPaginated(L, "/internal/price/templates", e, t, n);
849
850
  }
850
851
  createTemplate(e, t = {}) {
851
- return this.post("/internal/price/templates", e, (e) => new I(e.data), t);
852
+ return this.post("/internal/price/templates", e, (e) => new L(e.data), t);
852
853
  }
853
854
  getTemplate(e) {
854
- return this.get(`/internal/price/templates/${e}`, {}, (e) => new I(e.data));
855
+ return this.get(`/internal/price/templates/${e}`, {}, (e) => new L(e.data));
855
856
  }
856
857
  updateTemplate(e, t, n = {}) {
857
- return this.patch(`/internal/price/templates/${e}`, t, (e) => new I(e.data), n);
858
+ return this.patch(`/internal/price/templates/${e}`, t, (e) => new L(e.data), n);
858
859
  }
859
860
  removeTemplate(e) {
860
861
  return this.delete(`/internal/price/templates/${e}`);
861
862
  }
862
863
  getProductTemplatePrices(e) {
863
- return this.getTypedList(Bt, `/internal/price/templates/${e}/products`);
864
+ return this.getTypedList(Ht, `/internal/price/templates/${e}/products`);
864
865
  }
865
866
  getProductTemplatePrice(e, t) {
866
- return this.get(`/internal/price/templates/${e}/products/${t}`, {}, (e) => new Bt(e.data));
867
+ return this.get(`/internal/price/templates/${e}/products/${t}`, {}, (e) => new Ht(e.data));
867
868
  }
868
869
  saveProductTemplatePrice(e, t, n) {
869
870
  return this.post(`/internal/price/templates/${e}/products/${t}`, {
870
871
  price_coefficient_id: n.coefficient?.id,
871
872
  increase_percent: n.value
872
- }, (e) => new Bt(e.data));
873
+ }, (e) => new Ht(e.data));
873
874
  }
874
875
  deleteProductTemplatePrice(e, t) {
875
876
  return this.delete(`/internal/price/templates/${e}/products/${t}`);
876
877
  }
877
878
  getCategoryTemplatePrices(e) {
878
- return this.getTypedList(Lt, `/internal/price/templates/${e}/categories`);
879
+ return this.getTypedList(zt, `/internal/price/templates/${e}/categories`);
879
880
  }
880
881
  getCategoryTemplatePrice(e, t) {
881
- return this.get(`/internal/price/templates/${e}/categories/${t}`, {}, (e) => new Lt(e.data));
882
+ return this.get(`/internal/price/templates/${e}/categories/${t}`, {}, (e) => new zt(e.data));
882
883
  }
883
884
  saveCategoryTemplatePrice(e, t, n, r = !1) {
884
885
  return this.request({
@@ -889,7 +890,7 @@ var ct = class extends ve {
889
890
  increase_percent: n.value
890
891
  },
891
892
  params: r ? { recursively: !0 } : {}
892
- }, (e) => new Lt(e.data));
893
+ }, (e) => new zt(e.data));
893
894
  }
894
895
  deleteCategoryTemplatePrice(e, t, n = !1) {
895
896
  return this.request({
@@ -899,40 +900,40 @@ var ct = class extends ve {
899
900
  });
900
901
  }
901
902
  getTemplateClients(e) {
902
- return this.getTypedList(W, `/internal/price/templates/${e}/clients`);
903
+ return this.getTypedList(G, `/internal/price/templates/${e}/clients`);
903
904
  }
904
- }, an = class extends l {
905
+ }, sn = class extends d {
905
906
  getRoles() {
906
- return this.getTypedList(q, "/internal/price/roles");
907
+ return this.getTypedList(J, "/internal/price/roles");
907
908
  }
908
909
  createRole(e) {
909
- return this.post("/internal/price/roles", e, (e) => new q(e.data));
910
+ return this.post("/internal/price/roles", e, (e) => new J(e.data));
910
911
  }
911
912
  getRole(e) {
912
- return this.get(`/internal/price/roles/${e}`, {}, (e) => new q(e.data));
913
+ return this.get(`/internal/price/roles/${e}`, {}, (e) => new J(e.data));
913
914
  }
914
915
  updateRole(e, t) {
915
- return this.patch(`/internal/price/roles/${e}`, t, (e) => new q(e.data));
916
+ return this.patch(`/internal/price/roles/${e}`, t, (e) => new J(e.data));
916
917
  }
917
918
  deleteRole(e) {
918
919
  return this.delete(`/internal/price/roles/${e}`);
919
920
  }
920
921
  getCategoryRules(e) {
921
- return this.getTypedList(Gt, `/internal/price/roles/rules/categories/${e}`);
922
+ return this.getTypedList(qt, `/internal/price/roles/rules/categories/${e}`);
922
923
  }
923
924
  updateCategoryRules(e, t) {
924
- return this.patch(`/internal/price/roles/rules/categories/${e}`, t, (e) => g.instanceListInitializer(Gt, e.data));
925
+ return this.patch(`/internal/price/roles/rules/categories/${e}`, t, (e) => _.instanceListInitializer(qt, e.data));
925
926
  }
926
- }, on = class extends e {
927
+ }, cn = class extends e {
927
928
  getProperties(e, t, n) {
928
- return this.getTypedPaginated(G, "/internal/catalog/properties", e, t, n);
929
+ return this.getTypedPaginated(K, "/internal/catalog/properties", e, t, n);
929
930
  }
930
931
  getFilterGroups(e) {
931
932
  return this.getProperties({
932
933
  groupOp: "and",
933
934
  filters: [{
934
935
  field: "is_filter_group",
935
- op: ne.Equals,
936
+ op: ee.Equals,
936
937
  value: !0
937
938
  }],
938
939
  groups: []
@@ -943,29 +944,29 @@ var ct = class extends ve {
943
944
  return this.post("/internal/catalog/properties", {
944
945
  ...n,
945
946
  type: t
946
- }, (e) => new G(e.data));
947
+ }, (e) => new K(e.data));
947
948
  }
948
949
  getProperty(e) {
949
- return this.get(`/internal/catalog/properties/${e}`, {}, (e) => new G(e.data));
950
+ return this.get(`/internal/catalog/properties/${e}`, {}, (e) => new K(e.data));
950
951
  }
951
952
  updateProperty(e, t) {
952
953
  let { typeId: n, ...r } = t;
953
954
  return this.patch(`/internal/catalog/properties/${e}`, {
954
955
  ...r,
955
956
  type: n
956
- }, (e) => new G(e.data));
957
+ }, (e) => new K(e.data));
957
958
  }
958
959
  deleteProperty(e) {
959
960
  return this.delete(`/internal/catalog/properties/${e}`);
960
961
  }
961
962
  getProductProperties(e) {
962
- return this.getTypedList(K, `/internal/catalog/products/${e}/properties`);
963
+ return this.getTypedList(q, `/internal/catalog/products/${e}/properties`);
963
964
  }
964
965
  getProductProperty(e, t) {
965
- return this.get(`/internal/catalog/products/${e}/properties/${t}`, {}, (e) => new K(e.data));
966
+ return this.get(`/internal/catalog/products/${e}/properties/${t}`, {}, (e) => new q(e.data));
966
967
  }
967
968
  updateProductProperty(e, t, n) {
968
- return this.patch(`/internal/catalog/products/${e}/properties/${t}`, { value: n }, (e) => new K(e.data));
969
+ return this.patch(`/internal/catalog/products/${e}/properties/${t}`, { value: n }, (e) => new q(e.data));
969
970
  }
970
971
  deleteProductProperty(e, t) {
971
972
  return this.delete(`/internal/catalog/products/${e}/properties/${t}`);
@@ -1004,13 +1005,13 @@ var ct = class extends ve {
1004
1005
  return this.patch(`/internal/catalog/products/${e}/properties/slug`, { slug: t });
1005
1006
  }
1006
1007
  getCategoryProperties(e) {
1007
- return this.getTypedList(K, `/internal/catalog/categories/${e}/properties`);
1008
+ return this.getTypedList(q, `/internal/catalog/categories/${e}/properties`);
1008
1009
  }
1009
1010
  getCategoryProperty(e, t) {
1010
- return this.get(`/internal/catalog/categories/${e}/properties/${t}`, {}, (e) => new K(e.data));
1011
+ return this.get(`/internal/catalog/categories/${e}/properties/${t}`, {}, (e) => new q(e.data));
1011
1012
  }
1012
1013
  updateCategoryProperty(e, t, n) {
1013
- return this.patch(`/internal/catalog/categories/${e}/properties/${t}`, { value: n }, (e) => new K(e.data));
1014
+ return this.patch(`/internal/catalog/categories/${e}/properties/${t}`, { value: n }, (e) => new q(e.data));
1014
1015
  }
1015
1016
  deleteCategoryProperty(e, t) {
1016
1017
  return this.delete(`/internal/catalog/categories/${e}/properties/${t}`);
@@ -1052,20 +1053,20 @@ var ct = class extends ve {
1052
1053
  return this.post(`/internal/catalog/categories/${e}/image`, { image: t });
1053
1054
  }
1054
1055
  getCategoryFilters(e, t = !1) {
1055
- return this.get(`/internal/catalog/categories/${e}/filters`, { recursively: t }, (e) => e.data.map((e) => new Yt(e)));
1056
+ return this.get(`/internal/catalog/categories/${e}/filters`, { recursively: t }, (e) => e.data.map((e) => new Zt(e)));
1056
1057
  }
1057
1058
  getCategoryFilterSettings(e) {
1058
- return this.getTypedList(qt, `/internal/catalog/categories/${e}/filter-settings`);
1059
+ return this.getTypedList(Yt, `/internal/catalog/categories/${e}/filter-settings`);
1059
1060
  }
1060
1061
  saveCategoryFilterSetting(e, t, n) {
1061
- return this.patch(`/internal/catalog/categories/${e}/filter-settings/${t}`, n, (e) => new qt(e.data));
1062
+ return this.patch(`/internal/catalog/categories/${e}/filter-settings/${t}`, n, (e) => new Yt(e.data));
1062
1063
  }
1063
1064
  deleteCategoryFilterSetting(e, t) {
1064
1065
  return this.delete(`/internal/catalog/categories/${e}/filter-settings/${t}`);
1065
1066
  }
1066
- }, sn = class extends l {
1067
+ }, ln = class extends d {
1067
1068
  getRootCategoriesList(e, t = !1) {
1068
- return this.getTypedList(H, "/internal/catalog/categories", {
1069
+ return this.getTypedList(U, "/internal/catalog/categories", {
1069
1070
  priceTemplateId: e,
1070
1071
  showHidden: t
1071
1072
  });
@@ -1075,30 +1076,30 @@ var ct = class extends ve {
1075
1076
  priceTemplateId: e,
1076
1077
  showHidden: n,
1077
1078
  withNestedCategories: r
1078
- }, (e) => new H(e.data));
1079
+ }, (e) => new U(e.data));
1079
1080
  }
1080
1081
  getCategoryProductsList(e, t, n = !0, r = !1) {
1081
1082
  return this.get(`/internal/catalog/categories/${t}/products`, {
1082
1083
  priceTemplateId: e,
1083
1084
  showHidden: r,
1084
1085
  withPriceCoefficients: n
1085
- }, (e) => b(e.data, (e) => new R(e)));
1086
+ }, (e) => S(e.data, (e) => new z(e)));
1086
1087
  }
1087
1088
  };
1088
1089
  //#endregion
1089
1090
  //#region src/catalog/methods/find-catalog-item.ts
1090
- function cn(e, t, n) {
1091
+ function un(e, t, n) {
1091
1092
  let r;
1092
1093
  return e.some((e) => {
1093
1094
  if (e.type === n && e.id === t) return r = e, !0;
1094
1095
  if (e.type === "product") return !1;
1095
1096
  let i = e;
1096
1097
  if (i.products && i.products.length > 0) {
1097
- let e = cn(i.products, t, n);
1098
+ let e = un(i.products, t, n);
1098
1099
  if (e) return r = e, !0;
1099
1100
  }
1100
1101
  if (i.categories && i.categories.length > 0) {
1101
- let e = cn(i.categories, t, n);
1102
+ let e = un(i.categories, t, n);
1102
1103
  if (e) return r = e, !0;
1103
1104
  }
1104
1105
  return !1;
@@ -1106,20 +1107,20 @@ function cn(e, t, n) {
1106
1107
  }
1107
1108
  //#endregion
1108
1109
  //#region src/catalog/methods/flatten-catalog-items.ts
1109
- function ln(e) {
1110
+ function dn(e) {
1110
1111
  let t = [];
1111
1112
  return e.forEach((e) => {
1112
1113
  if (t.push(e), e.type === "category") {
1113
1114
  let n = e;
1114
- n.products && n.products.length > 0 && t.push(...ln(n.products)), n.categories && n.categories.length > 0 && t.push(...ln(n.categories));
1115
+ n.products && n.products.length > 0 && t.push(...dn(n.products)), n.categories && n.categories.length > 0 && t.push(...dn(n.categories));
1115
1116
  }
1116
1117
  }), t;
1117
1118
  }
1118
1119
  //#endregion
1119
1120
  //#region src/clients/enums/clients-additional-data-request-type-enum.ts
1120
- var un = /* @__PURE__ */ function(e) {
1121
+ var fn = /* @__PURE__ */ function(e) {
1121
1122
  return e.LastOrder = "last_order", e.Contacts = "contacts", e.PartnerGroups = "partner_groups", e.PreferredDeliveryType = "preferred_delivery_type", e.SalesDirection = "sales_direction", e.Managers = "managers", e.Curators = "curators", e;
1122
- }({}), dn = class extends u {
1123
+ }({}), pn = class extends f {
1123
1124
  bankName = "";
1124
1125
  bic = "";
1125
1126
  accountNumber = "";
@@ -1128,13 +1129,13 @@ var un = /* @__PURE__ */ function(e) {
1128
1129
  constructor(e) {
1129
1130
  super(e), e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new o(e.currency));
1130
1131
  }
1131
- }, fn = class extends P {
1132
+ }, mn = class extends bt {
1132
1133
  phone;
1133
1134
  email;
1134
1135
  constructor(e) {
1135
1136
  super(e), this.email = e?.email, this.phone = /^\d+$/.test(e?.phone ?? "") ? `+${e?.phone}` : e?.phone;
1136
1137
  }
1137
- }, J = class extends fn {
1138
+ }, Y = class extends mn {
1138
1139
  isPrimary;
1139
1140
  position;
1140
1141
  notDisturb;
@@ -1142,9 +1143,9 @@ var un = /* @__PURE__ */ function(e) {
1142
1143
  constructor(e) {
1143
1144
  super(e), this.isPrimary = e?.isPrimary ?? !1, this.position = e?.position, this.notDisturb = e?.notDisturb ?? !1, this.comment = e?.comment;
1144
1145
  }
1145
- }, pn = class extends P {
1146
- opf = se.generatePersonItem();
1147
- partnerGroup = new m();
1146
+ }, hn = class extends bt {
1147
+ opf = ae.generatePersonItem();
1148
+ partnerGroup = new h();
1148
1149
  contacts = [];
1149
1150
  bankAccounts = [];
1150
1151
  comment;
@@ -1153,25 +1154,25 @@ var un = /* @__PURE__ */ function(e) {
1153
1154
  updater;
1154
1155
  constructor(e) {
1155
1156
  if (super(e), e) {
1156
- if (this.opf = new se(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new F(e.creator) : void 0, this.updater = e.updater ? new F(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new m(e.partnerGroup)), e.contacts) {
1157
+ if (this.opf = new ae(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new I(e.creator) : void 0, this.updater = e.updater ? new I(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new h(e.partnerGroup)), e.contacts) {
1157
1158
  let t = [];
1158
1159
  e.contacts.forEach((e) => {
1159
- t.push(new J(e));
1160
+ t.push(new Y(e));
1160
1161
  }), this.contacts = t;
1161
1162
  }
1162
1163
  if (e.bankAccounts) {
1163
1164
  let t = [];
1164
1165
  e.bankAccounts.forEach((e) => {
1165
- t.push(new dn(e));
1166
+ t.push(new pn(e));
1166
1167
  }), this.bankAccounts = t;
1167
1168
  }
1168
1169
  }
1169
1170
  }
1170
- }, mn = class extends pn {
1171
+ }, gn = class extends hn {
1171
1172
  constructor(e) {
1172
1173
  super(e);
1173
1174
  }
1174
- }, hn = class extends pn {
1175
+ }, _n = class extends hn {
1175
1176
  inn = "";
1176
1177
  okpo = "";
1177
1178
  ogrn = "";
@@ -1184,34 +1185,34 @@ var un = /* @__PURE__ */ function(e) {
1184
1185
  constructor(e) {
1185
1186
  super(e), e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.ogrn = e.ogrn ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
1186
1187
  }
1187
- }, gn = class extends hn {
1188
+ }, vn = class extends _n {
1188
1189
  kpp = "";
1189
1190
  constructor(e) {
1190
1191
  super(e), e && (this.kpp = e.kpp ?? "");
1191
1192
  }
1192
- }, _n = class extends gn {
1193
+ }, yn = class extends vn {
1193
1194
  registrationCountry = new i();
1194
1195
  registrationNumber = "";
1195
1196
  taxNumber = "";
1196
1197
  constructor(e) {
1197
1198
  super(e), e && (this.registrationCountry = new i(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
1198
1199
  }
1199
- }, vn = class {
1200
+ }, bn = class {
1200
1201
  static createInstance(e) {
1201
1202
  switch (e.opf.slug) {
1202
- case p.Ic: return new hn(e);
1203
- case p.UlR: return new gn(e);
1204
- case p.UlNr: return new _n(e);
1205
- default: return new mn(e);
1203
+ case oe.Ic: return new _n(e);
1204
+ case oe.UlR: return new vn(e);
1205
+ case oe.UlNr: return new yn(e);
1206
+ default: return new gn(e);
1206
1207
  }
1207
1208
  }
1208
- }, yn = class extends f {
1209
+ }, xn = class extends m {
1209
1210
  city;
1210
1211
  isActive;
1211
1212
  constructor(e) {
1212
1213
  super(e), this.city = e?.city ? new n(e.city) : void 0, this.isActive = e?.isActive ?? !1;
1213
1214
  }
1214
- }, Y = class extends P {
1215
+ }, Sn = class extends bt {
1215
1216
  address = "";
1216
1217
  coordinates;
1217
1218
  contacts;
@@ -1220,9 +1221,9 @@ var un = /* @__PURE__ */ function(e) {
1220
1221
  isOneTime;
1221
1222
  isTransportCompanyAddress;
1222
1223
  constructor(e) {
1223
- super(e), this.address = e?.address ?? "", this.coordinates = new re(e?.coordinates), this.contacts = e?.contacts?.map((e) => new J(e)) ?? [], this.comment = e?.comment, this.operatingHours = e?.operatingHours, this.isOneTime = e?.isOneTime, this.isTransportCompanyAddress = e?.isTransportCompanyAddress;
1224
+ super(e), this.address = e?.address ?? "", this.coordinates = new te(e?.coordinates), this.contacts = e?.contacts?.map((e) => new Y(e)) ?? [], this.comment = e?.comment, this.operatingHours = e?.operatingHours, this.isOneTime = e?.isOneTime, this.isTransportCompanyAddress = e?.isTransportCompanyAddress;
1224
1225
  }
1225
- }, bn = class extends U {
1226
+ }, Cn = class extends W {
1226
1227
  contragents;
1227
1228
  partnerGroups;
1228
1229
  contacts;
@@ -1234,9 +1235,9 @@ var un = /* @__PURE__ */ function(e) {
1234
1235
  preferredWarehouse;
1235
1236
  extraData;
1236
1237
  constructor(e) {
1237
- super(e), this.contragents = e?.contragents?.map((e) => vn.createInstance(e)) ?? [], this.partnerGroups = e?.partnerGroups?.map((e) => new m(e)) ?? [], this.contacts = e?.contacts?.map((e) => new J(e)) ?? [], this.deliveryAddresses = e?.deliveryAddresses?.map((e) => new Y(e)) ?? [], this.channelPrimaryInterest = new t(e?.channelPrimaryInterest), this.sourcePrimaryInterest = new ge(e?.sourcePrimaryInterest), this.preferredDeliveryType = new c(e?.preferredDeliveryType), this.primaryDemand = e?.primaryDemand, this.preferredWarehouse = e?.preferredWarehouse ? new xe(e.preferredWarehouse) : void 0, this.extraData = e?.extraData ?? {};
1238
+ super(e), this.contragents = e?.contragents?.map((e) => bn.createInstance(e)) ?? [], this.partnerGroups = e?.partnerGroups?.map((e) => new h(e)) ?? [], this.contacts = e?.contacts?.map((e) => new Y(e)) ?? [], this.deliveryAddresses = e?.deliveryAddresses?.map((e) => new Sn(e)) ?? [], this.channelPrimaryInterest = new t(e?.channelPrimaryInterest), this.sourcePrimaryInterest = new he(e?.sourcePrimaryInterest), this.preferredDeliveryType = new c(e?.preferredDeliveryType), this.primaryDemand = e?.primaryDemand, this.preferredWarehouse = e?.preferredWarehouse ? new be(e.preferredWarehouse) : void 0, this.extraData = e?.extraData ?? {};
1238
1239
  }
1239
- }, xn = class extends j {
1240
+ }, wn = class extends N {
1240
1241
  id;
1241
1242
  guid;
1242
1243
  name;
@@ -1248,8 +1249,8 @@ var un = /* @__PURE__ */ function(e) {
1248
1249
  phone;
1249
1250
  email;
1250
1251
  isActive;
1251
- createdAt = new N();
1252
- lastLoginDate = new N();
1252
+ createdAt = new F();
1253
+ lastLoginDate = new F();
1253
1254
  lastLoginDateHasOrder;
1254
1255
  managers;
1255
1256
  includeSubordinateManagers;
@@ -1262,13 +1263,13 @@ var un = /* @__PURE__ */ function(e) {
1262
1263
  partnerGroups;
1263
1264
  contact;
1264
1265
  lastOrder;
1265
- noOrdersPeriod = new N();
1266
+ noOrdersPeriod = new F();
1266
1267
  constructor(e) {
1267
- super(), this.id = e?.id, this.guid = e?.guid, this.name = e?.name, this.alternativeName = e?.alternativeName, this.searchTerm = e?.searchTerm, this.cities = e?.cities?.map((e) => new n(e)), this.region = new pe(e?.region), this.country = new i(e?.country), this.phone = e?.phone, this.email = e?.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e?.isActive : !0, this.createdAt = new N(e?.createdAt), this.lastLoginDate = new N(e?.lastLoginDate), this.lastLoginDateHasOrder = e?.lastLoginDateHasOrder ?? void 0, this.managers = e?.managers?.map((e) => new d(e)) ?? [], this.includeSubordinateManagers = e?.includeSubordinateManagers ?? !0, this.curators = e?.curators?.map((e) => new Rt(e)) ?? [], this.salesDirections = e?.salesDirections?.map((e) => new h(e)), this.contragentInn = e?.contragentInn, this.contragentType = new se(e?.contragentType), this.preferredDeliveryType = e?.preferredDeliveryType ? new c(e?.preferredDeliveryType) : void 0, this.partnerGroups = e?.partnerGroups?.map((e) => new m(e)), this.contact = new fn(e?.contact), this.lastOrder = {
1268
- createdAt: new N(e?.lastOrder?.createdAt),
1268
+ super(), this.id = e?.id, this.guid = e?.guid, this.name = e?.name, this.alternativeName = e?.alternativeName, this.searchTerm = e?.searchTerm, this.cities = e?.cities?.map((e) => new n(e)), this.region = new fe(e?.region), this.country = new i(e?.country), this.phone = e?.phone, this.email = e?.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e?.isActive : !0, this.createdAt = new F(e?.createdAt), this.lastLoginDate = new F(e?.lastLoginDate), this.lastLoginDateHasOrder = e?.lastLoginDateHasOrder ?? void 0, this.managers = e?.managers?.map((e) => new p(e)) ?? [], this.includeSubordinateManagers = e?.includeSubordinateManagers ?? !0, this.curators = e?.curators?.map((e) => new Bt(e)) ?? [], this.salesDirections = e?.salesDirections?.map((e) => new g(e)), this.contragentInn = e?.contragentInn, this.contragentType = new ae(e?.contragentType), this.preferredDeliveryType = e?.preferredDeliveryType ? new c(e?.preferredDeliveryType) : void 0, this.partnerGroups = e?.partnerGroups?.map((e) => new h(e)), this.contact = new mn(e?.contact), this.lastOrder = {
1269
+ createdAt: new F(e?.lastOrder?.createdAt),
1269
1270
  creator: e?.lastOrder?.creator,
1270
1271
  isApproved: e?.lastOrder?.isApproved
1271
- }, this.noOrdersPeriod = new N(e?.noOrdersPeriod);
1272
+ }, this.noOrdersPeriod = new F(e?.noOrdersPeriod);
1272
1273
  }
1273
1274
  resetFilterValue(e) {
1274
1275
  switch (e) {
@@ -1276,7 +1277,7 @@ var un = /* @__PURE__ */ function(e) {
1276
1277
  this.cities = [];
1277
1278
  break;
1278
1279
  case "region":
1279
- this.region = new pe();
1280
+ this.region = new fe();
1280
1281
  break;
1281
1282
  case "isActive":
1282
1283
  this.isActive = !0;
@@ -1303,7 +1304,7 @@ var un = /* @__PURE__ */ function(e) {
1303
1304
  this.salesDirections = [];
1304
1305
  break;
1305
1306
  case "contragentType":
1306
- this.contragentType = new se();
1307
+ this.contragentType = new ae();
1307
1308
  break;
1308
1309
  case "preferredDeliveryType":
1309
1310
  this.preferredDeliveryType = new c();
@@ -1312,7 +1313,7 @@ var un = /* @__PURE__ */ function(e) {
1312
1313
  this.partnerGroups = [];
1313
1314
  break;
1314
1315
  case "contact":
1315
- this.contact = new fn();
1316
+ this.contact = new mn();
1316
1317
  break;
1317
1318
  default: this[e] = void 0;
1318
1319
  }
@@ -1322,12 +1323,12 @@ var un = /* @__PURE__ */ function(e) {
1322
1323
  let e = super.asClearRaw();
1323
1324
  return !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, !e?.lastLoginDate?.from && !e?.lastLoginDate?.to && delete e.lastLoginDate, !e?.noOrdersPeriod?.from && !e?.noOrdersPeriod?.to && delete e.noOrdersPeriod, e;
1324
1325
  }
1325
- }, Sn = class extends M {
1326
+ }, Tn = class extends P {
1326
1327
  creator;
1327
1328
  constructor(e) {
1328
- super(e), this.creator = new F(e?.creator);
1329
+ super(e), this.creator = new I(e?.creator);
1329
1330
  }
1330
- }, Cn = class extends f {
1331
+ }, En = class extends m {
1331
1332
  contacts = [];
1332
1333
  preferredDeliveryType;
1333
1334
  partnerGroups = [];
@@ -1336,23 +1337,23 @@ var un = /* @__PURE__ */ function(e) {
1336
1337
  managers;
1337
1338
  curators;
1338
1339
  constructor(e) {
1339
- super(e), this.contacts = e.contacts?.map((e) => new J(e)) ?? void 0, this.lastOrder = e.lastOrder ? new Sn(e.lastOrder) : void 0, this.partnerGroups = e.partnerGroups?.map((e) => new m(e)) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new c(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new h(e.salesDirection) : void 0, this.managers = e.managers?.map((e) => new ie(e)) ?? void 0, this.curators = e.curators?.map((e) => new Rt(e)) ?? void 0;
1340
+ super(e), this.contacts = e.contacts?.map((e) => new Y(e)) ?? void 0, this.lastOrder = e.lastOrder ? new Tn(e.lastOrder) : void 0, this.partnerGroups = e.partnerGroups?.map((e) => new h(e)) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new c(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new g(e.salesDirection) : void 0, this.managers = e.managers?.map((e) => new ne(e)) ?? void 0, this.curators = e.curators?.map((e) => new Bt(e)) ?? void 0;
1340
1341
  }
1341
- }, wn = class extends u {
1342
+ }, Dn = class extends f {
1342
1343
  isPrimary;
1343
1344
  constructor(e) {
1344
1345
  super(e), this.isPrimary = e.isPrimary;
1345
1346
  }
1346
- }, Tn = class extends J {
1347
+ }, On = class extends Y {
1347
1348
  relations = {
1348
1349
  clients: [],
1349
1350
  contragents: [],
1350
1351
  addresses: []
1351
1352
  };
1352
1353
  constructor(e) {
1353
- super(e), e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((e) => new wn(e))), e.relations.clients && (this.relations.clients = e.relations.clients.map((e) => new wn(e))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((e) => new wn(e))));
1354
+ super(e), e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((e) => new Dn(e))), e.relations.clients && (this.relations.clients = e.relations.clients.map((e) => new Dn(e))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((e) => new Dn(e))));
1354
1355
  }
1355
- }, En = class t extends e {
1356
+ }, kn = class t extends e {
1356
1357
  static transformClientDataToRequest(e) {
1357
1358
  return {
1358
1359
  name: e.name,
@@ -1371,7 +1372,7 @@ var un = /* @__PURE__ */ function(e) {
1371
1372
  static transformContragentClientDataToRequest(e) {
1372
1373
  let t, n = e, r = e, i = e;
1373
1374
  switch (e.opf.slug) {
1374
- case p.Ic:
1375
+ case oe.Ic:
1375
1376
  t = {
1376
1377
  opf: n.opf.slug,
1377
1378
  name: n.name,
@@ -1389,7 +1390,7 @@ var un = /* @__PURE__ */ function(e) {
1389
1390
  actual_address: n.actualAddress
1390
1391
  };
1391
1392
  break;
1392
- case p.UlR:
1393
+ case oe.UlR:
1393
1394
  t = {
1394
1395
  opf: r.opf.slug,
1395
1396
  name: r.name,
@@ -1408,7 +1409,7 @@ var un = /* @__PURE__ */ function(e) {
1408
1409
  actual_address: r.actualAddress
1409
1410
  };
1410
1411
  break;
1411
- case p.UlNr:
1412
+ case oe.UlNr:
1412
1413
  t = {
1413
1414
  opf: i.opf.slug,
1414
1415
  name: i.name,
@@ -1461,10 +1462,10 @@ var un = /* @__PURE__ */ function(e) {
1461
1462
  };
1462
1463
  }
1463
1464
  getClient(e) {
1464
- return this.get(`/internal/clients/${e}`, {}, (e) => new bn(e.data));
1465
+ return this.get(`/internal/clients/${e}`, {}, (e) => new Cn(e.data));
1465
1466
  }
1466
1467
  getClientsList(e, t, n, r, i) {
1467
- return this.getTypedPaginated(U, "/internal/clients", e, t, n, r, void 0, i);
1468
+ return this.getTypedPaginated(W, "/internal/clients", e, t, n, r, void 0, i);
1468
1469
  }
1469
1470
  searchClient(e) {
1470
1471
  return this.getClientsList(void 0, void 0, void 0, { searchTerm: e }).then((e) => e.data);
@@ -1475,7 +1476,7 @@ var un = /* @__PURE__ */ function(e) {
1475
1476
  groups: [],
1476
1477
  filters: [{
1477
1478
  field: "phone",
1478
- op: ne.Contains,
1479
+ op: ee.Contains,
1479
1480
  value: e
1480
1481
  }]
1481
1482
  });
@@ -1485,13 +1486,13 @@ var un = /* @__PURE__ */ function(e) {
1485
1486
  return this.post("/internal/clients/additional-data", {
1486
1487
  clients: n,
1487
1488
  requested_data_types: t
1488
- }, (e) => g.instanceListInitializer(Cn, e.data));
1489
+ }, (e) => _.instanceListInitializer(En, e.data));
1489
1490
  }
1490
1491
  getAllClientContacts(e) {
1491
- return this.getTypedList(Tn, `/internal/clients/${e}/contacts/all`);
1492
+ return this.getTypedList(On, `/internal/clients/${e}/contacts/all`);
1492
1493
  }
1493
1494
  createClientCommonData(e, n = {}) {
1494
- return this.post("/internal/clients", t.transformClientDataToRequest(e), (e) => new bn(e.data), n);
1495
+ return this.post("/internal/clients", t.transformClientDataToRequest(e), (e) => new Cn(e.data), n);
1495
1496
  }
1496
1497
  updateClientCommonData(e, n = {}) {
1497
1498
  return this.patch(`/internal/clients/${e.id}`, t.transformClientDataToRequest(e), void 0, n);
@@ -1533,31 +1534,31 @@ var un = /* @__PURE__ */ function(e) {
1533
1534
  })) });
1534
1535
  }
1535
1536
  createContragentClientData(e, n, r = {}) {
1536
- return this.post(`/internal/clients/${e}/contragents`, t.transformContragentClientDataToRequest(n), (e) => vn.createInstance(e.data), r);
1537
+ return this.post(`/internal/clients/${e}/contragents`, t.transformContragentClientDataToRequest(n), (e) => bn.createInstance(e.data), r);
1537
1538
  }
1538
1539
  updateContragentClientData(e, n, r = {}) {
1539
- return this.patch(`/internal/clients/${e}/contragents/${n.id}`, t.transformContragentClientDataToRequest(n), (e) => vn.createInstance(e.data), r);
1540
+ return this.patch(`/internal/clients/${e}/contragents/${n.id}`, t.transformContragentClientDataToRequest(n), (e) => bn.createInstance(e.data), r);
1540
1541
  }
1541
1542
  deleteClientContragent(e, t) {
1542
1543
  return this.delete(`/internal/clients/${e}/contragents/${t.id}`);
1543
1544
  }
1544
1545
  getClientDeliveryAddresses(e) {
1545
- return this.getTypedList(Y, `/internal/clients/${e}/delivery-addresses`);
1546
+ return this.getTypedList(Sn, `/internal/clients/${e}/delivery-addresses`);
1546
1547
  }
1547
1548
  createClientDeliveryAddress(e, n, r = {}) {
1548
- return this.post(`/internal/clients/${e}/delivery-addresses`, t.transformClientDeliveryAddressToRequest(n), (e) => new Y(e.data), r);
1549
+ return this.post(`/internal/clients/${e}/delivery-addresses`, t.transformClientDeliveryAddressToRequest(n), (e) => new Sn(e.data), r);
1549
1550
  }
1550
1551
  updateClientDeliveryAddress(e, n, r = {}) {
1551
- return this.patch(`/internal/clients/${e}/delivery-addresses/${n.id}`, t.transformClientDeliveryAddressToRequest(n), (e) => new Y(e.data), r);
1552
+ return this.patch(`/internal/clients/${e}/delivery-addresses/${n.id}`, t.transformClientDeliveryAddressToRequest(n), (e) => new Sn(e.data), r);
1552
1553
  }
1553
1554
  deleteClientDeliveryAddress(e, t) {
1554
1555
  return this.delete(`/internal/clients/${e}/delivery-addresses/${t.id}`);
1555
1556
  }
1556
1557
  createContragentBankAccount(e, n, r, i = {}) {
1557
- return this.post(`/internal/clients/${e}/contragents/${n}/bank-accounts`, t.transformClientContragentBankAccountToRequest(r), (e) => new dn(e.data), i);
1558
+ return this.post(`/internal/clients/${e}/contragents/${n}/bank-accounts`, t.transformClientContragentBankAccountToRequest(r), (e) => new pn(e.data), i);
1558
1559
  }
1559
1560
  updateContragentBankAccount(e, n, r, i = {}) {
1560
- return this.patch(`/internal/clients/${e}/contragents/${n}/bank-accounts/${r.id}`, t.transformClientContragentBankAccountToRequest(r), (e) => new dn(e.data), i);
1561
+ return this.patch(`/internal/clients/${e}/contragents/${n}/bank-accounts/${r.id}`, t.transformClientContragentBankAccountToRequest(r), (e) => new pn(e.data), i);
1561
1562
  }
1562
1563
  deleteContragentBankAccount(e, t, n) {
1563
1564
  return this.delete(`/internal/clients/${e}/contragents/${t}/bank-accounts/${n.id}`);
@@ -1577,7 +1578,7 @@ var un = /* @__PURE__ */ function(e) {
1577
1578
  email: t.email,
1578
1579
  comment: t.comment,
1579
1580
  not_disturb: t.notDisturb
1580
- }, (e) => new J(e.data), n);
1581
+ }, (e) => new Y(e.data), n);
1581
1582
  }
1582
1583
  setPrimaryClientContact(e, t) {
1583
1584
  return this.setPrimaryContact(`/internal/clients/${e}/contacts/${t.id}/primary`, t.isPrimary ?? !1);
@@ -1618,7 +1619,7 @@ var un = /* @__PURE__ */ function(e) {
1618
1619
  comment: t.comment,
1619
1620
  ...n
1620
1621
  };
1621
- return t.phone?.length && (i.phone = t.phone), t.email?.length && (i.email = t.email), this.post(`/internal/clients/${e}/contacts`, i, (e) => new J(e.data), r);
1622
+ return t.phone?.length && (i.phone = t.phone), t.email?.length && (i.email = t.email), this.post(`/internal/clients/${e}/contacts`, i, (e) => new Y(e.data), r);
1622
1623
  }
1623
1624
  setPrimaryContact(e, t) {
1624
1625
  return this.patch(e, { is_primary: t });
@@ -1629,7 +1630,7 @@ var un = /* @__PURE__ */ function(e) {
1629
1630
  sendClientEmailConfirmation(e) {
1630
1631
  return this.get(`/internal/clients/${e.id}/verification/email?email=${e.email}`);
1631
1632
  }
1632
- }, Dn = class extends l {
1633
+ }, An = class extends d {
1633
1634
  checkPhoneIsBusy(e) {
1634
1635
  return new Promise((t, n) => {
1635
1636
  this.request({
@@ -1641,16 +1642,16 @@ var un = /* @__PURE__ */ function(e) {
1641
1642
  }).catch(n);
1642
1643
  });
1643
1644
  }
1644
- }, On = class {
1645
+ }, jn = class {
1645
1646
  date;
1646
1647
  name;
1647
1648
  version;
1648
1649
  constructor(e) {
1649
- this.date = y(e?.date) ? E(e.date) : e?.date ?? /* @__PURE__ */ new Date(), this.name = e?.name ?? "", this.version = e?.version ?? "0.0.0";
1650
+ this.date = x(e?.date) ? O(e.date) : e?.date ?? /* @__PURE__ */ new Date(), this.name = e?.name ?? "", this.version = e?.version ?? "0.0.0";
1650
1651
  }
1651
- }, kn = /* @__PURE__ */ function(e) {
1652
+ }, Mn = /* @__PURE__ */ function(e) {
1652
1653
  return e.Kozyrek = "kozyrek", e.Mosquitto = "mosquitto", e.Strip = "strip", e.MetalForDoors = "metal_for_doors", e.Sandwich = "sandwich", e.SandwichM2 = "sandwich_m2", e;
1653
- }({}), An = class extends l {
1654
+ }({}), Nn = class extends d {
1654
1655
  getConfiguratorSettings(e, t) {
1655
1656
  return this.get(`internal/catalog/categories/${e.id}/configurators/${e.properties?.configurator}/settings?client_id=${t}`);
1656
1657
  }
@@ -1662,7 +1663,7 @@ var un = /* @__PURE__ */ function(e) {
1662
1663
  params: n,
1663
1664
  client_id: t
1664
1665
  }
1665
- }, (e) => new R(e.data), r);
1666
+ }, (e) => new z(e.data), r);
1666
1667
  }
1667
1668
  createTemplate(e, t, n, r = {}) {
1668
1669
  return this.post(`internal/catalog/categories/${e.id}/configurators/${e.properties?.configurator}/template?client_id=${t}`, { ...n }, () => {}, r);
@@ -1676,30 +1677,60 @@ var un = /* @__PURE__ */ function(e) {
1676
1677
  ...n
1677
1678
  });
1678
1679
  }
1679
- }, jn = class {
1680
- page = 1;
1681
- pageSize = 50;
1682
- constructor(e) {
1683
- this.page = e?.page ?? 1, this.pageSize = e?.pageSize ?? 50;
1684
- }
1685
- }, Mn = class extends jn {
1686
- itemCount = 0;
1687
- pageCount = 1;
1688
- pageSlot = 5;
1689
- pageSizes = [
1680
+ }, Pn = Object.freeze({
1681
+ pageSize: 50,
1682
+ pageSizes: Object.freeze([
1690
1683
  25,
1691
1684
  50,
1692
1685
  100
1693
- ];
1694
- showSizePicker = !0;
1695
- constructor(e) {
1696
- super(e), this.itemCount = e?.itemCount ?? 0, this.pageCount = e?.pageCount ?? 1, this.pageSlot = e?.pageSlot ?? 5, this.pageSizes = e?.pageSizes ?? [
1697
- 25,
1698
- 50,
1699
- 100
1700
- ], this.showSizePicker = e?.showSizePicker ?? !0;
1686
+ ]),
1687
+ pageSlot: 5,
1688
+ showSizePicker: !0,
1689
+ maxPageSize: 100,
1690
+ maxPages: 10
1691
+ }), Fn = class e {
1692
+ static resolve(t) {
1693
+ let n = e.getConfig(), { name: r, ...i } = t ?? {}, a = {
1694
+ ...Pn,
1695
+ ...Me(n?.defaults, b),
1696
+ ...Me(i, b),
1697
+ ...b(r) ? {} : Me(n?.presets?.[r], b)
1698
+ };
1699
+ return {
1700
+ ...a,
1701
+ pageSize: e.limitPageSize(a.pageSize, a.maxPageSize),
1702
+ pageSizes: e.limitPageSizes(a.pageSizes, a.maxPageSize)
1703
+ };
1704
+ }
1705
+ static limitPageSize(e, t) {
1706
+ return Math.min(e, t);
1707
+ }
1708
+ static limitPageSizes(e, t) {
1709
+ let n = e.filter((e) => e <= t);
1710
+ return (y(n) || n.length < e.length) && !Te(n, t) ? [...n, t] : n;
1701
1711
  }
1702
- }, Nn = class {
1712
+ static getConfig() {
1713
+ if (ct()) return v().getConfig().pagination;
1714
+ }
1715
+ }, In = class {
1716
+ page;
1717
+ pageSize;
1718
+ constructor(e, t) {
1719
+ let n = Fn.resolve(t);
1720
+ this.page = e?.page ?? 1, this.pageSize = Fn.limitPageSize(e?.pageSize ?? n.pageSize, n.maxPageSize);
1721
+ }
1722
+ }, Ln = class extends In {
1723
+ itemCount;
1724
+ pageCount;
1725
+ pageSlot;
1726
+ pageSizes;
1727
+ showSizePicker;
1728
+ constructor(e, t) {
1729
+ super(e, t);
1730
+ let n = Fn.resolve(t);
1731
+ this.itemCount = e?.itemCount ?? 0, this.pageCount = e?.pageCount ?? 1, this.pageSlot = e?.pageSlot ?? n.pageSlot, this.pageSizes = Fn.limitPageSizes(e?.pageSizes ?? n.pageSizes, n.maxPageSize), this.showSizePicker = e?.showSizePicker ?? n.showSizePicker;
1732
+ }
1733
+ }, Rn = class {
1703
1734
  field;
1704
1735
  direction;
1705
1736
  constructor(e) {
@@ -1724,47 +1755,47 @@ var un = /* @__PURE__ */ function(e) {
1724
1755
  return new Date(e.getFullYear(), e.getMonth() < 6 ? 0 : 6, 1);
1725
1756
  }
1726
1757
  static endOfHalfYear(e) {
1727
- return w(new Date(e.getFullYear(), e.getMonth() < 6 ? 5 : 11, 1));
1758
+ return E(new Date(e.getFullYear(), e.getMonth() < 6 ? 5 : 11, 1));
1728
1759
  }
1729
1760
  static addHalfYears(e, t) {
1730
- return S(e, t * 6);
1761
+ return w(e, t * 6);
1731
1762
  }
1732
1763
  static intervalTillSameDate(e, t, n) {
1733
- let r = Ue(O(n), O(e)), i = O(S(t, r)), a = Math.min(Xe(n), Ze(i));
1764
+ let r = Ue(A(n), A(e)), i = A(w(t, r)), a = Math.min(Xe(n), Ze(i));
1734
1765
  return {
1735
- from: D(t),
1736
- to: C(Qe(i, a))
1766
+ from: k(t),
1767
+ to: T(Qe(i, a))
1737
1768
  };
1738
1769
  }
1739
1770
  static weekTillSameWeekday(e, t) {
1740
- let n = k(Be(e, t), { weekStartsOn: 1 }), r = He(e, k(e, { weekStartsOn: 1 }));
1771
+ let n = j(Be(e, t), { weekStartsOn: 1 }), r = He(e, j(e, { weekStartsOn: 1 }));
1741
1772
  return {
1742
1773
  from: n,
1743
- to: C(x(n, r))
1774
+ to: T(C(n, r))
1744
1775
  };
1745
1776
  }
1746
1777
  static decadeTillSameDayNumber(t, n) {
1747
1778
  let [r] = e.shiftedDecadeBounds(t, 0), i = He(t, r) + 1, [a, o] = e.shiftedDecadeBounds(t, n), s = He(o, a) + 1;
1748
1779
  return {
1749
1780
  from: a,
1750
- to: C(x(a, Math.min(i, s) - 1))
1781
+ to: T(C(a, Math.min(i, s) - 1))
1751
1782
  };
1752
1783
  }
1753
1784
  static shiftedDecadeBounds(e, t) {
1754
1785
  let n = Xe(e), r = 2;
1755
1786
  n <= 10 ? r = 0 : n <= 20 && (r = 1);
1756
- let i = r + t, a = Math.floor(i / 3), o = (i % 3 + 3) % 3, s = O(S(e, a)), c = x(s, o * 10);
1757
- return [c, o === 2 ? w(s) : C(x(c, 9))];
1787
+ let i = r + t, a = Math.floor(i / 3), o = (i % 3 + 3) % 3, s = A(w(e, a)), c = C(s, o * 10);
1788
+ return [c, o === 2 ? E(s) : T(C(c, 9))];
1758
1789
  }
1759
1790
  };
1760
1791
  //#endregion
1761
1792
  //#region src/date-time/helpers/days-ago-iso.ts
1762
- function Pn(e) {
1763
- return T(rt(et(), e), "yyyy-MM-dd");
1793
+ function zn(e) {
1794
+ return D(rt(et(), e), "yyyy-MM-dd");
1764
1795
  }
1765
1796
  //#endregion
1766
1797
  //#region src/i18n/helpers/pluralize.ts
1767
- function Fn(e, t) {
1798
+ function Bn(e, t) {
1768
1799
  let n = [
1769
1800
  2,
1770
1801
  0,
@@ -1777,13 +1808,13 @@ function Fn(e, t) {
1777
1808
  }
1778
1809
  //#endregion
1779
1810
  //#region src/date-time/helpers/format-relative-date.ts
1780
- function In(e) {
1781
- let t = E(e), n = He(et(), t);
1811
+ function Vn(e) {
1812
+ let t = O(e), n = He(et(), t);
1782
1813
  switch (!0) {
1783
1814
  case n === 0: return "Сегодня";
1784
1815
  case n === 1: return "Вчера";
1785
1816
  case n < 0: return e;
1786
- default: return `${n} ${Fn(n, [
1817
+ default: return `${n} ${Bn(n, [
1787
1818
  "день",
1788
1819
  "дня",
1789
1820
  "дней"
@@ -1792,14 +1823,14 @@ function In(e) {
1792
1823
  }
1793
1824
  //#endregion
1794
1825
  //#region src/date-time/providers/date-time-provider.ts
1795
- var Ln = class {
1826
+ var Hn = class {
1796
1827
  static defaultDateRanges(e) {
1797
- let t = Re(/* @__PURE__ */ new Date(), 1), n = /* @__PURE__ */ new Date(), r = A(e === void 0 ? n : new Date(e, 0, 1)), i = Je(r);
1828
+ let t = Re(/* @__PURE__ */ new Date(), 1), n = /* @__PURE__ */ new Date(), r = M(e === void 0 ? n : new Date(e, 0, 1)), i = Je(r);
1798
1829
  return {
1799
1830
  nextWorkingDay: {
1800
1831
  label: "Следующий рабочий день",
1801
- from: D(t),
1802
- to: C(t)
1832
+ from: k(t),
1833
+ to: T(t)
1803
1834
  },
1804
1835
  today: {
1805
1836
  label: "Сегодня",
@@ -1818,57 +1849,57 @@ var Ln = class {
1818
1849
  },
1819
1850
  currentWeek: {
1820
1851
  label: "Неделя",
1821
- from: k(n, { weekStartsOn: 1 }),
1852
+ from: j(n, { weekStartsOn: 1 }),
1822
1853
  to: qe(n, { weekStartsOn: 1 })
1823
1854
  },
1824
1855
  currentMonth: {
1825
1856
  label: "Месяц",
1826
- from: O(n),
1827
- to: w(n)
1857
+ from: A(n),
1858
+ to: E(n)
1828
1859
  },
1829
1860
  oneMonth: {
1830
1861
  label: "1 месяц",
1831
1862
  from: r,
1832
- to: w(r)
1863
+ to: E(r)
1833
1864
  },
1834
1865
  threeMonths: {
1835
1866
  label: "3 месяца",
1836
1867
  from: r,
1837
- to: w(S(r, 2))
1868
+ to: E(w(r, 2))
1838
1869
  },
1839
1870
  nineMonths: {
1840
1871
  label: "9 месяцев",
1841
1872
  from: r,
1842
- to: w(S(r, 8))
1873
+ to: E(w(r, 8))
1843
1874
  },
1844
1875
  firstQuarter: {
1845
1876
  label: "I квартал",
1846
1877
  from: r,
1847
- to: w(S(r, 2))
1878
+ to: E(w(r, 2))
1848
1879
  },
1849
1880
  secondQuarter: {
1850
1881
  label: "II квартал",
1851
- from: S(r, 3),
1852
- to: w(S(r, 5))
1882
+ from: w(r, 3),
1883
+ to: E(w(r, 5))
1853
1884
  },
1854
1885
  thirdQuarter: {
1855
1886
  label: "III квартал",
1856
- from: S(r, 6),
1857
- to: w(S(r, 8))
1887
+ from: w(r, 6),
1888
+ to: E(w(r, 8))
1858
1889
  },
1859
1890
  fourthQuarter: {
1860
1891
  label: "IV квартал",
1861
- from: S(r, 9),
1862
- to: w(S(r, 11))
1892
+ from: w(r, 9),
1893
+ to: E(w(r, 11))
1863
1894
  },
1864
1895
  firstHalfYear: {
1865
1896
  label: "I полугодие",
1866
1897
  from: r,
1867
- to: w(S(r, 5))
1898
+ to: E(w(r, 5))
1868
1899
  },
1869
1900
  secondHalfYear: {
1870
1901
  label: "II полугодие",
1871
- from: S(r, 6),
1902
+ from: w(r, 6),
1872
1903
  to: i
1873
1904
  },
1874
1905
  currentYear: {
@@ -1879,13 +1910,13 @@ var Ln = class {
1879
1910
  };
1880
1911
  }
1881
1912
  static standardPeriods(e = /* @__PURE__ */ new Date()) {
1882
- let t = { weekStartsOn: 1 }, n = D(e), r = C(e), i = X.decadeInterval(e), a = O(e), o = $e(e), s = X.startOfHalfYear(e), c = A(e), ee = X.addHalfYears(e, -1), te = X.addHalfYears(e, 1);
1913
+ let t = { weekStartsOn: 1 }, n = k(e), r = T(e), i = X.decadeInterval(e), a = A(e), o = $e(e), s = X.startOfHalfYear(e), c = M(e), l = X.addHalfYears(e, -1), u = X.addHalfYears(e, 1);
1883
1914
  return {
1884
1915
  yesterday: {
1885
1916
  label: "Вчера",
1886
1917
  group: "day",
1887
- from: D(rt(e, 1)),
1888
- to: C(rt(e, 1))
1918
+ from: k(rt(e, 1)),
1919
+ to: T(rt(e, 1))
1889
1920
  },
1890
1921
  today: {
1891
1922
  label: "Сегодня",
@@ -1896,25 +1927,25 @@ var Ln = class {
1896
1927
  tomorrow: {
1897
1928
  label: "Завтра",
1898
1929
  group: "day",
1899
- from: D(x(e, 1)),
1900
- to: C(x(e, 1))
1930
+ from: k(C(e, 1)),
1931
+ to: T(C(e, 1))
1901
1932
  },
1902
1933
  lastWeek: {
1903
1934
  label: "Прошлая неделя",
1904
1935
  group: "week",
1905
- from: k(ot(e, 1), t),
1936
+ from: j(ot(e, 1), t),
1906
1937
  to: qe(ot(e, 1), t)
1907
1938
  },
1908
1939
  thisWeek: {
1909
1940
  label: "Эта неделя",
1910
1941
  group: "week",
1911
- from: k(e, t),
1942
+ from: j(e, t),
1912
1943
  to: qe(e, t)
1913
1944
  },
1914
1945
  nextWeek: {
1915
1946
  label: "Следующая неделя",
1916
1947
  group: "week",
1917
- from: k(Be(e, 1), t),
1948
+ from: j(Be(e, 1), t),
1918
1949
  to: qe(Be(e, 1), t)
1919
1950
  },
1920
1951
  lastTenDays: {
@@ -1935,20 +1966,20 @@ var Ln = class {
1935
1966
  lastMonth: {
1936
1967
  label: "Прошлый месяц",
1937
1968
  group: "month",
1938
- from: O(it(e, 1)),
1939
- to: w(it(e, 1))
1969
+ from: A(it(e, 1)),
1970
+ to: E(it(e, 1))
1940
1971
  },
1941
1972
  thisMonth: {
1942
1973
  label: "Этот месяц",
1943
1974
  group: "month",
1944
1975
  from: a,
1945
- to: w(e)
1976
+ to: E(e)
1946
1977
  },
1947
1978
  nextMonth: {
1948
1979
  label: "Следующий месяц",
1949
1980
  group: "month",
1950
- from: O(S(e, 1)),
1951
- to: w(S(e, 1))
1981
+ from: A(w(e, 1)),
1982
+ to: E(w(e, 1))
1952
1983
  },
1953
1984
  lastQuarter: {
1954
1985
  label: "Прошлый квартал",
@@ -1971,8 +2002,8 @@ var Ln = class {
1971
2002
  lastHalfYear: {
1972
2003
  label: "Прошлое полугодие",
1973
2004
  group: "halfYear",
1974
- from: X.startOfHalfYear(ee),
1975
- to: X.endOfHalfYear(ee)
2005
+ from: X.startOfHalfYear(l),
2006
+ to: X.endOfHalfYear(l)
1976
2007
  },
1977
2008
  thisHalfYear: {
1978
2009
  label: "Это полугодие",
@@ -1983,13 +2014,13 @@ var Ln = class {
1983
2014
  nextHalfYear: {
1984
2015
  label: "Следующее полугодие",
1985
2016
  group: "halfYear",
1986
- from: X.startOfHalfYear(te),
1987
- to: X.endOfHalfYear(te)
2017
+ from: X.startOfHalfYear(u),
2018
+ to: X.endOfHalfYear(u)
1988
2019
  },
1989
2020
  lastYear: {
1990
2021
  label: "Прошлый год",
1991
2022
  group: "year",
1992
- from: A(st(e, 1)),
2023
+ from: M(st(e, 1)),
1993
2024
  to: Je(st(e, 1))
1994
2025
  },
1995
2026
  thisYear: {
@@ -2001,14 +2032,14 @@ var Ln = class {
2001
2032
  nextYear: {
2002
2033
  label: "Следующий год",
2003
2034
  group: "year",
2004
- from: A(Ve(e, 1)),
2035
+ from: M(Ve(e, 1)),
2005
2036
  to: Je(Ve(e, 1))
2006
2037
  },
2007
2038
  fromBeginningOfThisWeek: {
2008
2039
  label: "С начала этой недели",
2009
2040
  group: "other",
2010
2041
  section: "fromBeginning",
2011
- from: k(e, t),
2042
+ from: j(e, t),
2012
2043
  to: r
2013
2044
  },
2014
2045
  fromBeginningOfThisTenDays: {
@@ -2065,7 +2096,7 @@ var Ln = class {
2065
2096
  group: "other",
2066
2097
  section: "tillEnd",
2067
2098
  from: n,
2068
- to: w(e)
2099
+ to: E(e)
2069
2100
  },
2070
2101
  tillEndOfThisQuarter: {
2071
2102
  label: "До конца этого квартала",
@@ -2104,7 +2135,7 @@ var Ln = class {
2104
2135
  label: "Прошлый месяц, до такой же даты",
2105
2136
  group: "other",
2106
2137
  section: "lastTillSame",
2107
- ...X.intervalTillSameDate(a, O(it(e, 1)), e)
2138
+ ...X.intervalTillSameDate(a, A(it(e, 1)), e)
2108
2139
  },
2109
2140
  lastQuarterTillSameDate: {
2110
2141
  label: "Прошлый квартал, до такой же даты",
@@ -2116,13 +2147,13 @@ var Ln = class {
2116
2147
  label: "Прошлое полугодие, до такой же даты",
2117
2148
  group: "other",
2118
2149
  section: "lastTillSame",
2119
- ...X.intervalTillSameDate(s, X.startOfHalfYear(ee), e)
2150
+ ...X.intervalTillSameDate(s, X.startOfHalfYear(l), e)
2120
2151
  },
2121
2152
  lastYearTillSameDate: {
2122
2153
  label: "Прошлый год, до такой же даты",
2123
2154
  group: "other",
2124
2155
  section: "lastTillSame",
2125
- ...X.intervalTillSameDate(c, A(st(e, 1)), e)
2156
+ ...X.intervalTillSameDate(c, M(st(e, 1)), e)
2126
2157
  },
2127
2158
  nextWeekTillSameWeekDay: {
2128
2159
  label: "Следующая неделя, до такого же дня недели",
@@ -2140,7 +2171,7 @@ var Ln = class {
2140
2171
  label: "Следующий месяц, до такой же даты",
2141
2172
  group: "other",
2142
2173
  section: "nextTillSame",
2143
- ...X.intervalTillSameDate(a, O(S(e, 1)), e)
2174
+ ...X.intervalTillSameDate(a, A(w(e, 1)), e)
2144
2175
  },
2145
2176
  nextQuarterTillSameDate: {
2146
2177
  label: "Следующий квартал, до такой же даты",
@@ -2152,19 +2183,19 @@ var Ln = class {
2152
2183
  label: "Следующее полугодие, до такой же даты",
2153
2184
  group: "other",
2154
2185
  section: "nextTillSame",
2155
- ...X.intervalTillSameDate(s, X.startOfHalfYear(te), e)
2186
+ ...X.intervalTillSameDate(s, X.startOfHalfYear(u), e)
2156
2187
  },
2157
2188
  nextYearTillSameDate: {
2158
2189
  label: "Следующий год, до такой же даты",
2159
2190
  group: "other",
2160
2191
  section: "nextTillSame",
2161
- ...X.intervalTillSameDate(c, A(Ve(e, 1)), e)
2192
+ ...X.intervalTillSameDate(c, M(Ve(e, 1)), e)
2162
2193
  },
2163
2194
  last7Days: {
2164
2195
  label: "Последние 7 дней",
2165
2196
  group: "other",
2166
2197
  section: "rollingDays",
2167
- from: D(rt(e, 6)),
2198
+ from: k(rt(e, 6)),
2168
2199
  to: r
2169
2200
  },
2170
2201
  next7Days: {
@@ -2172,11 +2203,11 @@ var Ln = class {
2172
2203
  group: "other",
2173
2204
  section: "rollingDays",
2174
2205
  from: n,
2175
- to: C(x(e, 6))
2206
+ to: T(C(e, 6))
2176
2207
  }
2177
2208
  };
2178
2209
  }
2179
- }, Rn = [
2210
+ }, Un = [
2180
2211
  {
2181
2212
  key: "day",
2182
2213
  label: "День"
@@ -2209,7 +2240,7 @@ var Ln = class {
2209
2240
  key: "other",
2210
2241
  label: "Прочее"
2211
2242
  }
2212
- ], zn = [
2243
+ ], Wn = [
2213
2244
  {
2214
2245
  key: "fromBeginning",
2215
2246
  label: "С начала периода"
@@ -2230,7 +2261,7 @@ var Ln = class {
2230
2261
  key: "rollingDays",
2231
2262
  label: "7 дней"
2232
2263
  }
2233
- ], Bn = class extends yn {}, Vn = class {
2264
+ ], Gn = class extends xn {}, Kn = class {
2234
2265
  salesDirections;
2235
2266
  partnerGroups;
2236
2267
  managers;
@@ -2241,7 +2272,7 @@ var Ln = class {
2241
2272
  lastLoginDate;
2242
2273
  lastOrderDate;
2243
2274
  constructor(e) {
2244
- this.salesDirections = b(e?.salesDirections ?? [], (e) => new h(e)), this.partnerGroups = b(e?.partnerGroups ?? [], (e) => new m(e)), this.managers = b(e?.managers ?? [], (e) => new F(e)), this.additionalClients = b(e?.additionalClients ?? [], (e) => new Bn(e)), this.fixedClients = b(e?.fixedClients ?? [], (e) => new Bn(e)), this.regions = b(e?.regions ?? [], (e) => new pe(e)), this.cities = b(e?.cities ?? [], (e) => new n(e)), this.lastLoginDate = new N(e?.lastLoginDate), this.lastOrderDate = new N(e?.lastOrderDate);
2275
+ this.salesDirections = S(e?.salesDirections ?? [], (e) => new g(e)), this.partnerGroups = S(e?.partnerGroups ?? [], (e) => new h(e)), this.managers = S(e?.managers ?? [], (e) => new I(e)), this.additionalClients = S(e?.additionalClients ?? [], (e) => new Gn(e)), this.fixedClients = S(e?.fixedClients ?? [], (e) => new Gn(e)), this.regions = S(e?.regions ?? [], (e) => new fe(e)), this.cities = S(e?.cities ?? [], (e) => new n(e)), this.lastLoginDate = new F(e?.lastLoginDate), this.lastOrderDate = new F(e?.lastOrderDate);
2245
2276
  }
2246
2277
  hasClientConditions() {
2247
2278
  return Fe([
@@ -2252,33 +2283,33 @@ var Ln = class {
2252
2283
  this.fixedClients,
2253
2284
  this.regions,
2254
2285
  this.cities
2255
- ], (e) => !Oe(e)) || Fe([this.lastLoginDate, this.lastOrderDate], (e) => !!e.from || !!e.to);
2286
+ ], (e) => !y(e)) || Fe([this.lastLoginDate, this.lastOrderDate], (e) => !!e.from || !!e.to);
2256
2287
  }
2257
2288
  setPeriod(e, t) {
2258
- return this[e] = new N({
2259
- from: t?.from ? D(t.from) : null,
2260
- to: t?.to ? C(t.to) : null
2289
+ return this[e] = new F({
2290
+ from: t?.from ? k(t.from) : null,
2291
+ to: t?.to ? T(t.to) : null
2261
2292
  }), this;
2262
2293
  }
2263
2294
  toSaveData() {
2264
2295
  return {
2265
- salesDirections: b(this.salesDirections, "id"),
2266
- partnerGroups: b(this.partnerGroups, "id"),
2267
- managers: b(this.managers, "id"),
2268
- additionalClients: b(this.additionalClients, "id"),
2269
- regions: b(this.regions, "id"),
2270
- cities: b(this.cities, "id"),
2271
- lastLoginDate: new N(this.lastLoginDate),
2272
- lastOrderDate: new N(this.lastOrderDate)
2296
+ salesDirections: S(this.salesDirections, "id"),
2297
+ partnerGroups: S(this.partnerGroups, "id"),
2298
+ managers: S(this.managers, "id"),
2299
+ additionalClients: S(this.additionalClients, "id"),
2300
+ regions: S(this.regions, "id"),
2301
+ cities: S(this.cities, "id"),
2302
+ lastLoginDate: new F(this.lastLoginDate),
2303
+ lastOrderDate: new F(this.lastOrderDate)
2273
2304
  };
2274
2305
  }
2275
- }, Hn = /* @__PURE__ */ function(e) {
2306
+ }, qn = /* @__PURE__ */ function(e) {
2276
2307
  return e.Active = "active", e.Scheduled = "scheduled", e.Completed = "completed", e;
2277
- }({}), Un = class {
2308
+ }({}), Jn = class {
2278
2309
  static resolve(e, t = /* @__PURE__ */ new Date()) {
2279
- return e.deletedAt && e.deletedAt.getTime() <= t.getTime() ? Hn.Completed : e.publishedAt && e.publishedAt.getTime() > t.getTime() ? Hn.Scheduled : Hn.Active;
2310
+ return e.deletedAt && e.deletedAt.getTime() <= t.getTime() ? qn.Completed : e.publishedAt && e.publishedAt.getTime() > t.getTime() ? qn.Scheduled : qn.Active;
2280
2311
  }
2281
- }, Wn = class extends yt {
2312
+ }, Yn = class extends xt {
2282
2313
  conditions;
2283
2314
  products;
2284
2315
  productCategories;
@@ -2287,10 +2318,10 @@ var Ln = class {
2287
2318
  countDiscountedProducts;
2288
2319
  countDiscountedClients;
2289
2320
  constructor(e) {
2290
- super(e), this.conditions = new Vn(e?.conditions), this.products = b(e?.products ?? [], (e) => new R(e)), this.productCategories = b(e?.productCategories ?? [], (e) => new H(e)), this.countDiscountedPrices = e?.countDiscountedPrices ?? 0, this.expectedCountDiscountedPrices = e?.expectedCountDiscountedPrices ?? 0, this.countDiscountedProducts = e?.countDiscountedProducts ?? 0, this.countDiscountedClients = e?.countDiscountedClients ?? 0;
2321
+ super(e), this.conditions = new Kn(e?.conditions), this.products = S(e?.products ?? [], (e) => new z(e)), this.productCategories = S(e?.productCategories ?? [], (e) => new U(e)), this.countDiscountedPrices = e?.countDiscountedPrices ?? 0, this.expectedCountDiscountedPrices = e?.expectedCountDiscountedPrices ?? 0, this.countDiscountedProducts = e?.countDiscountedProducts ?? 0, this.countDiscountedClients = e?.countDiscountedClients ?? 0;
2291
2322
  }
2292
2323
  getState(e = /* @__PURE__ */ new Date()) {
2293
- return Un.resolve(this, e);
2324
+ return Jn.resolve(this, e);
2294
2325
  }
2295
2326
  assignCounters(e) {
2296
2327
  this.countDiscountedPrices = e.countDiscountedPrices, this.expectedCountDiscountedPrices = e.expectedCountDiscountedPrices, this.countDiscountedProducts = e.countDiscountedProducts, this.countDiscountedClients = e.countDiscountedClients;
@@ -2306,12 +2337,12 @@ var Ln = class {
2306
2337
  publishedAt: this.publishedAt ?? null,
2307
2338
  deletedAt: this.deletedAt ?? null,
2308
2339
  description: this.description ?? "",
2309
- products: b(this.products, "id"),
2310
- productCategories: b(this.productCategories, "id"),
2340
+ products: S(this.products, "id"),
2341
+ productCategories: S(this.productCategories, "id"),
2311
2342
  conditions: this.conditions.toSaveData()
2312
2343
  };
2313
2344
  }
2314
- }, Gn = class {
2345
+ }, Xn = class {
2315
2346
  client;
2316
2347
  additionalClientsCondition;
2317
2348
  fixedClientsCondition;
@@ -2321,12 +2352,12 @@ var Ln = class {
2321
2352
  regionsCondition;
2322
2353
  salesDirectionsCondition;
2323
2354
  constructor(e) {
2324
- this.client = new Bn(e?.client), this.additionalClientsCondition = e?.additionalClientsCondition ?? !1, this.fixedClientsCondition = e?.fixedClientsCondition ?? !1, this.partnerGroupsCondition = e?.partnerGroupsCondition ?? !1, this.managersCondition = e?.managersCondition ?? !1, this.citiesCondition = e?.citiesCondition ?? !1, this.regionsCondition = e?.regionsCondition ?? !1, this.salesDirectionsCondition = e?.salesDirectionsCondition ?? !1;
2355
+ this.client = new Gn(e?.client), this.additionalClientsCondition = e?.additionalClientsCondition ?? !1, this.fixedClientsCondition = e?.fixedClientsCondition ?? !1, this.partnerGroupsCondition = e?.partnerGroupsCondition ?? !1, this.managersCondition = e?.managersCondition ?? !1, this.citiesCondition = e?.citiesCondition ?? !1, this.regionsCondition = e?.regionsCondition ?? !1, this.salesDirectionsCondition = e?.salesDirectionsCondition ?? !1;
2325
2356
  }
2326
2357
  isEligible() {
2327
2358
  return this.additionalClientsCondition || this.fixedClientsCondition || this.partnerGroupsCondition || this.managersCondition || this.citiesCondition || this.regionsCondition || this.salesDirectionsCondition;
2328
2359
  }
2329
- }, Kn = class extends j {
2360
+ }, Zn = class extends N {
2330
2361
  id;
2331
2362
  name;
2332
2363
  states;
@@ -2341,7 +2372,7 @@ var Ln = class {
2341
2372
  }
2342
2373
  return this;
2343
2374
  }
2344
- }, qn = class t extends e {
2375
+ }, Qn = class t extends e {
2345
2376
  static prepareSaveData(e, t) {
2346
2377
  return {
2347
2378
  ...e,
@@ -2356,32 +2387,74 @@ var Ln = class {
2356
2387
  };
2357
2388
  }
2358
2389
  getDiscountsList(e, t, n, r) {
2359
- return this.getTypedPaginated(yt, "/internal/price/discounts", e, t, n, {}, void 0, r);
2390
+ return this.getTypedPaginated(xt, "/internal/price/discounts", e, t, n, {}, void 0, r);
2360
2391
  }
2361
2392
  getDiscount(e) {
2362
- return this.get(`/internal/price/discounts/${e}`, {}, (e) => new Wn(e.data));
2393
+ return this.get(`/internal/price/discounts/${e}`, {}, (e) => new Yn(e.data));
2363
2394
  }
2364
2395
  createDiscount(e, n, r = {}) {
2365
- return this.post("/internal/price/discounts", t.prepareSaveData(e, n), (e) => new Wn(e.data), r);
2396
+ return this.post("/internal/price/discounts", t.prepareSaveData(e, n), (e) => new Yn(e.data), r);
2366
2397
  }
2367
2398
  updateDiscount(e, n, r, i = {}) {
2368
- return this.patch(`/internal/price/discounts/${e}`, t.prepareSaveData(n, r), (e) => new Wn(e.data), i);
2399
+ return this.patch(`/internal/price/discounts/${e}`, t.prepareSaveData(n, r), (e) => new Yn(e.data), i);
2369
2400
  }
2370
2401
  removeDiscount(e) {
2371
2402
  return this.delete(`/internal/price/discounts/${e}`);
2372
2403
  }
2373
2404
  getEligibleClients(e) {
2374
- return this.getTypedList(Gn, `/internal/price/discounts/${e}/clients`);
2405
+ return this.getTypedList(Xn, `/internal/price/discounts/${e}/clients`);
2375
2406
  }
2376
2407
  checkClient(e, t) {
2377
- return this.get(`/internal/price/discounts/${e}/clients/${t}/check`, {}, (e) => new Gn(e.data));
2408
+ return this.get(`/internal/price/discounts/${e}/clients/${t}/check`, {}, (e) => new Xn(e.data));
2409
+ }
2410
+ }, $n = /* @__PURE__ */ function(e) {
2411
+ return e.Directory = "dir", e.File = "file", e.Link = "link", e;
2412
+ }({}), er = class extends P {
2413
+ parentId;
2414
+ type;
2415
+ name;
2416
+ description;
2417
+ documentType;
2418
+ extension;
2419
+ url;
2420
+ level;
2421
+ creator;
2422
+ constructor(e) {
2423
+ super(e, -1), this.parentId = e?.parentId ?? void 0, this.type = e?.type ?? $n.File, this.name = e?.name ?? "", this.description = e?.description ?? void 0, this.documentType = e?.documentType ?? void 0, this.extension = e?.extension ?? void 0, this.url = e?.url ?? void 0, this.level = e?.level ?? 0, this.creator = b(e?.creator) ? void 0 : new I(e.creator);
2378
2424
  }
2379
- }, Jn = class extends ve {
2425
+ }, tr = /* @__PURE__ */ function(e) {
2426
+ return e.Youtube = "youtube", e.Document = "document", e.File = "file", e.Image = "image", e;
2427
+ }({}), nr = class e extends d {
2428
+ static transformDocumentDataToRequest(e) {
2429
+ return {
2430
+ parentId: e.parentId,
2431
+ type: e.type,
2432
+ name: e.name,
2433
+ description: e.description,
2434
+ file: e.type === $n.File ? e.file : void 0,
2435
+ link: e.type === $n.Link ? e.url : void 0,
2436
+ documentType: e.type === $n.Link ? e.documentType : void 0
2437
+ };
2438
+ }
2439
+ static transformListParamsToRequest(e, t) {
2440
+ let n = {};
2441
+ return e && (n.filters = JSON.stringify((e instanceof u ? e : new u(e)).toPrimitive())), y(t) || (n.sort = Ee(t) ? t : [t]), n;
2442
+ }
2443
+ getDocumentsList(t, n, r) {
2444
+ return this.getTypedList(er, "/internal/documents", e.transformListParamsToRequest(t, n), !1, r);
2445
+ }
2446
+ createDocument(t, n = {}) {
2447
+ return this.post("/internal/documents", e.transformDocumentDataToRequest(t), (e) => new er(e.data), n);
2448
+ }
2449
+ deleteDocument(e) {
2450
+ return this.delete(`/internal/documents/${e}`);
2451
+ }
2452
+ }, rr = class extends _e {
2380
2453
  showAllCosts;
2381
2454
  constructor(e) {
2382
2455
  super(e), this.showAllCosts = e?.showAllCosts;
2383
2456
  }
2384
- }, Yn = class extends j {
2457
+ }, ir = class extends N {
2385
2458
  name;
2386
2459
  phone;
2387
2460
  email;
@@ -2398,7 +2471,7 @@ var Ln = class {
2398
2471
  }
2399
2472
  return this;
2400
2473
  }
2401
- }, Xn = class t extends e {
2474
+ }, ar = class t extends e {
2402
2475
  static transformExternalSeoDataToRequest(e) {
2403
2476
  return {
2404
2477
  name: e.name,
@@ -2411,62 +2484,62 @@ var Ln = class {
2411
2484
  };
2412
2485
  }
2413
2486
  getExternalSeoList(e, t, n, r) {
2414
- return this.getTypedPaginated(ve, "/internal/external-seo", e, t, n, {}, void 0, r);
2487
+ return this.getTypedPaginated(_e, "/internal/external-seo", e, t, n, {}, void 0, r);
2415
2488
  }
2416
2489
  getExternalSeo(e, t = !1) {
2417
- return this.get(`/internal/external-seo/${e}`, {}, (e) => new Jn(e.data), t);
2490
+ return this.get(`/internal/external-seo/${e}`, {}, (e) => new rr(e.data), t);
2418
2491
  }
2419
2492
  createExternalSeo(e, n = {}) {
2420
- return this.post("/internal/external-seo", t.transformExternalSeoDataToRequest(e), (e) => new Jn(e.data), n);
2493
+ return this.post("/internal/external-seo", t.transformExternalSeoDataToRequest(e), (e) => new rr(e.data), n);
2421
2494
  }
2422
2495
  updateExternalSeo(e, n = {}) {
2423
- return this.patch(`/internal/external-seo/${e.id}`, t.transformExternalSeoDataToRequest(e), (e) => new Jn(e.data), n);
2496
+ return this.patch(`/internal/external-seo/${e.id}`, t.transformExternalSeoDataToRequest(e), (e) => new rr(e.data), n);
2424
2497
  }
2425
2498
  deleteExternalSeo(e) {
2426
2499
  return this.delete(`/internal/external-seo/${e}`);
2427
2500
  }
2428
- }, Zn = class extends f {
2501
+ }, or = class extends m {
2429
2502
  constructor(e) {
2430
2503
  super(e);
2431
2504
  }
2432
- }, Qn = class extends u {
2505
+ }, sr = class extends f {
2433
2506
  question;
2434
2507
  answer;
2435
2508
  groups;
2436
2509
  constructor(e) {
2437
- super(e, -1), this.question = e?.question ?? "", this.answer = e?.answer ?? "", this.groups = b(e?.groups ?? [], (e) => new Zn(e));
2510
+ super(e, -1), this.question = e?.question ?? "", this.answer = e?.answer ?? "", this.groups = S(e?.groups ?? [], (e) => new or(e));
2438
2511
  }
2439
2512
  toSaveData() {
2440
2513
  return {
2441
2514
  question: this.question,
2442
2515
  answer: this.answer,
2443
- groups: b(this.groups, "id")
2516
+ groups: S(this.groups, "id")
2444
2517
  };
2445
2518
  }
2446
- }, $n = class extends e {
2519
+ }, cr = class extends e {
2447
2520
  getFaqList(e, t) {
2448
- return this.getTypedPaginated(Qn, "/internal/faq", void 0, void 0, t, v(e) ? {} : { group: e });
2521
+ return this.getTypedPaginated(sr, "/internal/faq", void 0, void 0, t, b(e) ? {} : { group: e });
2449
2522
  }
2450
2523
  getFaq(e) {
2451
- return this.get(`/internal/faq/${e}`, {}, (e) => new Qn(e.data));
2524
+ return this.get(`/internal/faq/${e}`, {}, (e) => new sr(e.data));
2452
2525
  }
2453
2526
  createFaq(e, t = {}) {
2454
- return this.post("/internal/faq", e, (e) => new Qn(e.data), t);
2527
+ return this.post("/internal/faq", e, (e) => new sr(e.data), t);
2455
2528
  }
2456
2529
  updateFaq(e, t, n = {}) {
2457
- return this.patch(`/internal/faq/${e}`, t, (e) => new Qn(e.data), n);
2530
+ return this.patch(`/internal/faq/${e}`, t, (e) => new sr(e.data), n);
2458
2531
  }
2459
2532
  removeFaq(e) {
2460
2533
  return this.delete(`/internal/faq/${e}`);
2461
2534
  }
2462
2535
  getGroupsList() {
2463
- return this.getTypedList(Zn, "/internal/faq/groups");
2536
+ return this.getTypedList(or, "/internal/faq/groups");
2464
2537
  }
2465
2538
  createGroup(e, t = {}) {
2466
- return this.post("/internal/faq/groups", e, (e) => new Zn(e.data), t);
2539
+ return this.post("/internal/faq/groups", e, (e) => new or(e.data), t);
2467
2540
  }
2468
2541
  updateGroup(e, t, n = {}) {
2469
- return this.patch(`/internal/faq/groups/${e}`, t, (e) => new Zn(e.data), n);
2542
+ return this.patch(`/internal/faq/groups/${e}`, t, (e) => new or(e.data), n);
2470
2543
  }
2471
2544
  removeGroup(e) {
2472
2545
  return this.delete(`/internal/faq/groups/${e}`);
@@ -2474,13 +2547,13 @@ var Ln = class {
2474
2547
  };
2475
2548
  //#endregion
2476
2549
  //#region src/helpers/format-percent-change.ts
2477
- function er(e) {
2478
- let t = Pe(e * 100);
2550
+ function lr(e) {
2551
+ let t = Ne(e * 100);
2479
2552
  return `${t >= 0 ? "+" : ""}${t}%`;
2480
2553
  }
2481
2554
  //#endregion
2482
2555
  //#region src/helpers/units-helper.ts
2483
- var tr = class e {
2556
+ var ur = class e {
2484
2557
  static productIsMeasurable(e) {
2485
2558
  return e.unit.isLinear || e.unit.isSquare;
2486
2559
  }
@@ -2490,9 +2563,9 @@ var tr = class e {
2490
2563
  static getProductLengthMultiplicity(e) {
2491
2564
  return e.properties?.lengthStep == null ? !e.properties?.ignoreMinCountCheck && e.properties?.minCount != null ? e.properties.minCount : .01 : e.properties.lengthStep;
2492
2565
  }
2493
- }, nr = class {
2566
+ }, dr = class {
2494
2567
  static generateUndefinedManagerInstance() {
2495
- return new d({
2568
+ return new p({
2496
2569
  id: 0,
2497
2570
  name: "- Не назначен -",
2498
2571
  isActive: !0,
@@ -2502,7 +2575,7 @@ var tr = class e {
2502
2575
  static isUndefinedManagerInstance(e) {
2503
2576
  return e.id === 0 && e.guid === "-undefined-";
2504
2577
  }
2505
- }, rr = class extends j {
2578
+ }, fr = class extends N {
2506
2579
  name;
2507
2580
  phone;
2508
2581
  email;
@@ -2511,7 +2584,7 @@ var tr = class e {
2511
2584
  isSupervisor;
2512
2585
  canDoReclamations;
2513
2586
  constructor(e) {
2514
- super(), this.name = e?.name, this.phone = e?.phone, this.email = e?.email, this.salesDirections = e?.salesDirections?.map((e) => new h(e)), this.isActive = e?.isActive, this.isSupervisor = e?.isSupervisor, this.canDoReclamations = e?.canDoReclamations;
2587
+ super(), this.name = e?.name, this.phone = e?.phone, this.email = e?.email, this.salesDirections = e?.salesDirections?.map((e) => new g(e)), this.isActive = e?.isActive, this.isSupervisor = e?.isSupervisor, this.canDoReclamations = e?.canDoReclamations;
2515
2588
  }
2516
2589
  resetFilterValue(e) {
2517
2590
  switch (e) {
@@ -2525,7 +2598,7 @@ var tr = class e {
2525
2598
  }
2526
2599
  return this;
2527
2600
  }
2528
- }, ir = class e extends ae {
2601
+ }, pr = class e extends re {
2529
2602
  static transformManagerDataToRequest(e) {
2530
2603
  return {
2531
2604
  name: e.name,
@@ -2539,37 +2612,37 @@ var tr = class e {
2539
2612
  salesDirectionId: e.salesDirection.id,
2540
2613
  pricingRoleId: e.pricingRole?.id,
2541
2614
  showAllCosts: e.showAllCosts ?? !1,
2542
- storeIds: b(e.stores, "id"),
2543
- curatedDirectionIds: b(e.curatedDirections, "id"),
2544
- managerRegionIds: b(e.managerRegions, "id"),
2545
- managerIds: b(e.managers, "id"),
2615
+ storeIds: S(e.stores, "id"),
2616
+ curatedDirectionIds: S(e.curatedDirections, "id"),
2617
+ managerRegionIds: S(e.managerRegions, "id"),
2618
+ managerIds: S(e.managers, "id"),
2546
2619
  photo: e.photoFile
2547
2620
  };
2548
2621
  }
2549
2622
  getManagersList(e, t, n, r) {
2550
- return this.getTypedPaginated(d, "/internal/managers", e, t, n, {}, void 0, r);
2623
+ return this.getTypedPaginated(p, "/internal/managers", e, t, n, {}, void 0, r);
2551
2624
  }
2552
2625
  createManager(t, n = {}) {
2553
- return this.post("/internal/managers", e.transformManagerDataToRequest(t), (e) => new d(e.data), n);
2626
+ return this.post("/internal/managers", e.transformManagerDataToRequest(t), (e) => new p(e.data), n);
2554
2627
  }
2555
2628
  updateManager(t, n = {}) {
2556
- return this.patch(`/internal/managers/${t.id}`, e.transformManagerDataToRequest(t), (e) => new d(e.data), n);
2629
+ return this.patch(`/internal/managers/${t.id}`, e.transformManagerDataToRequest(t), (e) => new p(e.data), n);
2557
2630
  }
2558
2631
  getManagerRegionsList(e, t, n) {
2559
- return this.getTypedPaginated(be, "/internal/managers/regions", e, t, n);
2632
+ return this.getTypedPaginated(ye, "/internal/managers/regions", e, t, n);
2560
2633
  }
2561
- }, ar = /* @__PURE__ */ function(e) {
2634
+ }, mr = /* @__PURE__ */ function(e) {
2562
2635
  return e.Processing = "processing", e.Completed = "completed", e.Error = "error", e.NeedsActualization = "needs_actualization", e;
2563
- }({}), or = class {
2636
+ }({}), hr = class {
2564
2637
  status;
2565
2638
  actualizedAt;
2566
2639
  expiresAt;
2567
2640
  error;
2568
2641
  constructor(e) {
2569
- this.status = e?.status ?? ar.Processing, this.actualizedAt = s.parse(e?.actualizedAt), this.expiresAt = s.parse(e?.expiresAt), this.error = e?.error;
2642
+ this.status = e?.status ?? mr.Processing, this.actualizedAt = s.parse(e?.actualizedAt), this.expiresAt = s.parse(e?.expiresAt), this.error = e?.error;
2570
2643
  }
2571
2644
  get isProcessing() {
2572
- return this.status === ar.Processing;
2645
+ return this.status === mr.Processing;
2573
2646
  }
2574
2647
  get isOutdated() {
2575
2648
  return this.isOutdatedAt(/* @__PURE__ */ new Date());
@@ -2578,12 +2651,12 @@ var tr = class e {
2578
2651
  return this.isOrderAllowedAt(/* @__PURE__ */ new Date());
2579
2652
  }
2580
2653
  isOutdatedAt(e) {
2581
- return this.status !== ar.Completed || v(this.actualizedAt) ? !0 : !v(this.expiresAt) && this.expiresAt.getTime() < e.getTime();
2654
+ return this.status !== mr.Completed || b(this.actualizedAt) ? !0 : !b(this.expiresAt) && this.expiresAt.getTime() < e.getTime();
2582
2655
  }
2583
2656
  isOrderAllowedAt(e) {
2584
- return this.status === ar.Completed && !this.isOutdatedAt(e);
2657
+ return this.status === mr.Completed && !this.isOutdatedAt(e);
2585
2658
  }
2586
- }, sr = class extends M {
2659
+ }, gr = class extends P {
2587
2660
  name;
2588
2661
  client;
2589
2662
  sum;
@@ -2591,9 +2664,9 @@ var tr = class e {
2591
2664
  actualization;
2592
2665
  file;
2593
2666
  constructor(e) {
2594
- super(e), this.name = e?.name, this.client = new U(e?.client), this.sum = e?.sum, this.isProfstroy = e?.isProfstroy, this.actualization = e?.actualization && new or(e.actualization), this.file = e?.file;
2667
+ super(e), this.name = e?.name, this.client = new W(e?.client), this.sum = e?.sum, this.isProfstroy = e?.isProfstroy, this.actualization = e?.actualization && new hr(e.actualization), this.file = e?.file;
2595
2668
  }
2596
- }, cr = class extends kt {
2669
+ }, _r = class extends jt {
2597
2670
  groupName;
2598
2671
  supplierSku;
2599
2672
  isIgnored;
@@ -2602,24 +2675,24 @@ var tr = class e {
2602
2675
  super(e), this.groupName = e.groupName, this.supplierSku = e.supplierSku ?? e.product.supplierSku, this.isIgnored = e.isIgnored, this.lineError = e.lineError;
2603
2676
  }
2604
2677
  get isProductStub() {
2605
- return v(this.product.id);
2678
+ return b(this.product.id);
2606
2679
  }
2607
2680
  get isOrderable() {
2608
- return !this.isProductStub && !this.isIgnored && Oe(this.lineError);
2681
+ return !this.isProductStub && !this.isIgnored && y(this.lineError);
2609
2682
  }
2610
- }, Z = class extends sr {
2683
+ }, Z = class extends gr {
2611
2684
  sum;
2612
2685
  products;
2613
2686
  constructor(e) {
2614
- super(e), this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => e.isProfstroy ? new cr(t) : new kt(t));
2687
+ super(e), this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => e.isProfstroy ? new _r(t) : new jt(t));
2615
2688
  }
2616
- }, lr = class extends j {
2689
+ }, vr = class extends N {
2617
2690
  id;
2618
2691
  clientSearchTerm;
2619
2692
  name;
2620
- createdAt = new N();
2693
+ createdAt = new F();
2621
2694
  constructor(e) {
2622
- super(), this.id = e?.id, this.clientSearchTerm = e?.clientSearchTerm, this.name = e?.name, this.createdAt = new N(e?.createdAt);
2695
+ super(), this.id = e?.id, this.clientSearchTerm = e?.clientSearchTerm, this.name = e?.name, this.createdAt = new F(e?.createdAt);
2623
2696
  }
2624
2697
  resetFilterValue(e) {
2625
2698
  return e === "createdAt" ? (this.createdAt.from = null, this.createdAt.to = null) : this[e] = void 0, this;
@@ -2628,7 +2701,7 @@ var tr = class e {
2628
2701
  let e = super.asClearRaw();
2629
2702
  return !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, e;
2630
2703
  }
2631
- }, ur = class extends Sn {
2704
+ }, yr = class extends Tn {
2632
2705
  client;
2633
2706
  payment;
2634
2707
  delivery;
@@ -2643,20 +2716,20 @@ var tr = class e {
2643
2716
  sum;
2644
2717
  isLargeOrder;
2645
2718
  constructor(e) {
2646
- super(e), this.client = new U(e?.client), this.payment = {
2719
+ super(e), this.client = new W(e?.client), this.payment = {
2647
2720
  type: e?.payment?.type ?? -1,
2648
2721
  status: e?.payment?.status ?? -1,
2649
2722
  onlinePaymentLink: e?.payment?.onlinePaymentLink
2650
2723
  }, this.delivery = {
2651
2724
  type: e?.delivery?.type ?? -1,
2652
- date: y(e?.delivery?.date) ? E(e.delivery.date) : e?.delivery?.date ?? /* @__PURE__ */ new Date(),
2653
- address: e?.delivery?.address ? new Y(e.delivery.address) : void 0,
2654
- warehouse: e?.delivery?.warehouse ? new xe(e.delivery.warehouse) : void 0
2655
- }, this.attachedUser = e?.attachedUser ? new F(e?.attachedUser) : void 0, this.status = new ce(e?.status), this.statusDetail = e?.statusDetail ? new fe(e.statusDetail) : void 0, this.salesDirection = new h(e?.salesDirection);
2725
+ date: x(e?.delivery?.date) ? O(e.delivery.date) : e?.delivery?.date ?? /* @__PURE__ */ new Date(),
2726
+ address: e?.delivery?.address ? new Sn(e.delivery.address) : void 0,
2727
+ warehouse: e?.delivery?.warehouse ? new be(e.delivery.warehouse) : void 0
2728
+ }, this.attachedUser = e?.attachedUser ? new I(e?.attachedUser) : void 0, this.status = new se(e?.status), this.statusDetail = e?.statusDetail ? new de(e.statusDetail) : void 0, this.salesDirection = new g(e?.salesDirection);
2656
2729
  let t = e?.attachedAt;
2657
- this.attachedAt = y(t) ? E(t) : e?.attachedAt, this.isOnOrder = e?.isOnOrder ?? !1, this.isProfstroy = e?.isProfstroy ?? !1, this.isNotInStock = e?.isNotInStock ?? !1, this.sum = e?.sum ?? 0, this.isLargeOrder = e?.isLargeOrder ?? !1;
2730
+ this.attachedAt = x(t) ? O(t) : e?.attachedAt, this.isOnOrder = e?.isOnOrder ?? !1, this.isProfstroy = e?.isProfstroy ?? !1, this.isNotInStock = e?.isNotInStock ?? !1, this.sum = e?.sum ?? 0, this.isLargeOrder = e?.isLargeOrder ?? !1;
2658
2731
  }
2659
- }, dr = class extends Ot {
2732
+ }, br = class extends At {
2660
2733
  product;
2661
2734
  cost;
2662
2735
  costOne;
@@ -2670,9 +2743,9 @@ var tr = class e {
2670
2743
  changedFields = [];
2671
2744
  replacement;
2672
2745
  constructor(e, t) {
2673
- super(e), this.product = new z(e.product), this.currency = new o(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = Ee(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
2746
+ super(e), this.product = new B(e.product), this.currency = new o(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = Ee(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
2674
2747
  }
2675
- }, Q = class extends ur {
2748
+ }, Q = class extends yr {
2676
2749
  products;
2677
2750
  invoices;
2678
2751
  comment;
@@ -2688,11 +2761,11 @@ var tr = class e {
2688
2761
  erpOrderUrl;
2689
2762
  numberDoc;
2690
2763
  constructor(e) {
2691
- super(e), this.products = (e.products ?? []).map((t) => new dr(t, t.replacementId ? e.products?.find((e) => e.id === t.replacementId) : void 0)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? vn.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new fe(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = e.nextStatuses?.map((e) => new ce(e)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
2764
+ super(e), this.products = (e.products ?? []).map((t) => new br(t, t.replacementId ? e.products?.find((e) => e.id === t.replacementId) : void 0)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? bn.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new de(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = e.nextStatuses?.map((e) => new se(e)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
2692
2765
  }
2693
- }, fr = class extends e {
2766
+ }, xr = class extends e {
2694
2767
  getOffers(e, t, n, r) {
2695
- return this.getTypedPaginated(sr, "/internal/orders/offers", e, t, n, {}, void 0, r);
2768
+ return this.getTypedPaginated(gr, "/internal/orders/offers", e, t, n, {}, void 0, r);
2696
2769
  }
2697
2770
  createOfferFromCart(e, t, n) {
2698
2771
  return this.post(`/internal/orders/offers/${e}`, {
@@ -2722,12 +2795,12 @@ var tr = class e {
2722
2795
  return this.delete(`/internal/orders/offers/${e}`);
2723
2796
  }
2724
2797
  createOrderFromDraft(e, t, n, r = {}) {
2725
- let i = _().config.dateFormats.api;
2798
+ let i = v().config.dateFormats.api;
2726
2799
  return this.post(`/internal/orders/offers/${e}/create-order`, {
2727
2800
  ...t,
2728
- deliveryDate: t.deliveryDate ? T(t.deliveryDate, i) : void 0,
2801
+ deliveryDate: t.deliveryDate ? D(t.deliveryDate, i) : void 0,
2729
2802
  items: n?.length ? n : void 0
2730
- }, (e) => g.instanceListInitializer(Q, e.data), r);
2803
+ }, (e) => _.instanceListInitializer(Q, e.data), r);
2731
2804
  }
2732
2805
  addOfferProduct(e, t, n = {}) {
2733
2806
  return this.post(`/internal/orders/offers/${e}/products`, {
@@ -2776,25 +2849,25 @@ var tr = class e {
2776
2849
  sendOffer(e, t) {
2777
2850
  return this.post(`/internal/orders/offers/${e}/send`, t);
2778
2851
  }
2779
- }, pr = class {
2852
+ }, Sr = class {
2780
2853
  static isProfstroy(e) {
2781
2854
  return !!e?.isProfstroy;
2782
2855
  }
2783
2856
  static isProfstroyOffer(e) {
2784
- return !v(e) && e.isProfstroy === !0 && !v(e.actualization);
2857
+ return !b(e) && e.isProfstroy === !0 && !b(e.actualization);
2785
2858
  }
2786
- }, mr = class extends ve {
2859
+ }, Cr = class extends _e {
2787
2860
  isBillingSupervisor;
2788
2861
  constructor(e) {
2789
2862
  super(e), this.isBillingSupervisor = e?.isBillingSupervisor ?? !1;
2790
2863
  }
2791
- }, hr = class extends mr {
2864
+ }, wr = class extends Cr {
2792
2865
  showAllCosts;
2793
2866
  stores;
2794
2867
  constructor(e) {
2795
- super(e), this.showAllCosts = e?.showAllCosts, this.stores = e?.stores?.map((e) => new he(e));
2868
+ super(e), this.showAllCosts = e?.showAllCosts, this.stores = e?.stores?.map((e) => new me(e));
2796
2869
  }
2797
- }, gr = class extends j {
2870
+ }, Tr = class extends N {
2798
2871
  name;
2799
2872
  phone;
2800
2873
  email;
@@ -2803,7 +2876,7 @@ var tr = class e {
2803
2876
  isBillingSupervisor;
2804
2877
  canDoReclamations;
2805
2878
  constructor(e) {
2806
- super(), this.name = e?.name, this.phone = e?.phone, this.email = e?.email, this.salesDirections = e?.salesDirections?.map((e) => new h(e)), this.isActive = e?.isActive, this.isBillingSupervisor = e?.isBillingSupervisor, this.canDoReclamations = e?.canDoReclamations;
2879
+ super(), this.name = e?.name, this.phone = e?.phone, this.email = e?.email, this.salesDirections = e?.salesDirections?.map((e) => new g(e)), this.isActive = e?.isActive, this.isBillingSupervisor = e?.isBillingSupervisor, this.canDoReclamations = e?.canDoReclamations;
2807
2880
  }
2808
2881
  resetFilterValue(e) {
2809
2882
  switch (e) {
@@ -2817,7 +2890,7 @@ var tr = class e {
2817
2890
  }
2818
2891
  return this;
2819
2892
  }
2820
- }, _r = class t extends e {
2893
+ }, Er = class t extends e {
2821
2894
  static transformOperatorDataToRequest(e) {
2822
2895
  return {
2823
2896
  name: e.name,
@@ -2830,25 +2903,25 @@ var tr = class e {
2830
2903
  salesDirectionId: e.salesDirection?.id,
2831
2904
  pricingRoleId: e.pricingRole?.id,
2832
2905
  showAllCosts: e.showAllCosts ?? !1,
2833
- storeIds: b(e.stores, "id"),
2906
+ storeIds: S(e.stores, "id"),
2834
2907
  photo: e.photoFile
2835
2908
  };
2836
2909
  }
2837
2910
  getOperatorsList(e, t, n, r) {
2838
- return this.getTypedPaginated(mr, "/internal/operators", e, t, n, {}, void 0, r);
2911
+ return this.getTypedPaginated(Cr, "/internal/operators", e, t, n, {}, void 0, r);
2839
2912
  }
2840
2913
  getOperator(e, t = !1) {
2841
- return this.get(`/internal/operators/${e}`, {}, (e) => new hr(e.data), t);
2914
+ return this.get(`/internal/operators/${e}`, {}, (e) => new wr(e.data), t);
2842
2915
  }
2843
2916
  createOperator(e, n = {}) {
2844
- return this.post("/internal/operators", t.transformOperatorDataToRequest(e), (e) => new hr(e.data), n);
2917
+ return this.post("/internal/operators", t.transformOperatorDataToRequest(e), (e) => new wr(e.data), n);
2845
2918
  }
2846
2919
  updateOperator(e, n = {}) {
2847
- return this.patch(`/internal/operators/${e.id}`, t.transformOperatorDataToRequest(e), (e) => new hr(e.data), n);
2920
+ return this.patch(`/internal/operators/${e.id}`, t.transformOperatorDataToRequest(e), (e) => new wr(e.data), n);
2848
2921
  }
2849
- }, vr = /* @__PURE__ */ function(e) {
2922
+ }, Dr = /* @__PURE__ */ function(e) {
2850
2923
  return e.View = "view", e.Share = "share", e.EditTags = "edit_tags", e.SaveOrderIgnoredProducts = "save_order_ignored_products", e.ChangeStatus = "change_status", e.ChangeProducts = "change_products", e.ChangeOrderParameters = "change_order_parameters", e.Recalculate = "recalculate", e.AttachOrder = "attach_order", e.DetachOrder = "detach_order", e.ChangeAttachedOperator = "change_attached_operator", e.SendOnlinePaymentLink = "send_online_payment_link", e.ConfirmOnlineFullPayment = "confirm_online_full_payment", e.MergeOrders = "merge_orders", e.GetHistory = "get_history", e.CloneOrder = "clone_order", e.DeleteAttachedFile = "delete_attached_file", e;
2851
- }({}), yr = class {
2924
+ }({}), Or = class {
2852
2925
  paymentType;
2853
2926
  deliveryType;
2854
2927
  contragentId;
@@ -2866,21 +2939,21 @@ var tr = class e {
2866
2939
  constructor(e) {
2867
2940
  this.paymentType = e?.payment.type, this.deliveryType = e?.delivery.type, this.contragentId = e?.contragent?.id, this.deliveryDate = e?.delivery.date ? new Date(e.delivery.date) : void 0, this.addressId = e?.delivery.address?.id, this.warehouseId = e?.delivery.warehouse?.id, this.comment = e?.comment, this.barcode = e?.barcode, this.operatorsComment = e?.operatorsComment, this.operatorsForWarehouseComment = e?.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = e?.isAllowProcessingWithoutPayment;
2868
2941
  }
2869
- }, br = class extends j {
2942
+ }, kr = class extends N {
2870
2943
  attachedUsers;
2871
2944
  clientSearchTerm;
2872
2945
  client;
2873
2946
  contragent;
2874
- createdAt = new N();
2947
+ createdAt = new F();
2875
2948
  creator;
2876
- deliveryDate = new N();
2949
+ deliveryDate = new F();
2877
2950
  deliveryAddressSearch;
2878
2951
  clientCities;
2879
2952
  id;
2880
2953
  isApproved;
2881
2954
  isNotInStock;
2882
2955
  isOnOrder;
2883
- attachedAt = new N();
2956
+ attachedAt = new F();
2884
2957
  salesDirections;
2885
2958
  status;
2886
2959
  statusDetail;
@@ -2892,7 +2965,7 @@ var tr = class e {
2892
2965
  userRegions;
2893
2966
  onlyMyRegions;
2894
2967
  constructor(e) {
2895
- super(), this.attachedUsers = e?.attachedUsers?.map((e) => "isActive" in e ? new d(e) : new oe(e)), this.clientSearchTerm = e?.clientSearchTerm, this.client = e?.client ? new U(e.client) : void 0, this.contragent = e?.contragent, this.createdAt = new N(e?.createdAt), this.creator = e?.creator ? new F(e.creator) : void 0, this.deliveryDate = new N(e?.deliveryDate), this.deliveryAddressSearch = e?.deliveryAddressSearch, this.clientCities = e?.clientCities?.map((e) => new n(e)), this.id = e?.id, this.isApproved = e?.isApproved, this.isNotInStock = e?.isNotInStock, this.isOnOrder = e?.isOnOrder, this.isLargeOrder = e?.isLargeOrder, this.attachedAt = new N(e?.attachedAt), this.salesDirections = e?.salesDirections?.map((e) => new h(e)), this.status = e?.status, this.statusDetail = e?.statusDetail, this.deliveryType = e?.deliveryType ? new c(e.deliveryType) : void 0, this.paymentType = e?.paymentType ? new le(e.paymentType) : void 0, this.warehouses = e?.warehouses?.map((e) => new xe(e)), this.isToProcess = e?.isToProcess, this.userRegions = e?.userRegions?.map((e) => new be(e));
2968
+ super(), this.attachedUsers = e?.attachedUsers?.map((e) => "isActive" in e ? new p(e) : new ie(e)), this.clientSearchTerm = e?.clientSearchTerm, this.client = e?.client ? new W(e.client) : void 0, this.contragent = e?.contragent, this.createdAt = new F(e?.createdAt), this.creator = e?.creator ? new I(e.creator) : void 0, this.deliveryDate = new F(e?.deliveryDate), this.deliveryAddressSearch = e?.deliveryAddressSearch, this.clientCities = e?.clientCities?.map((e) => new n(e)), this.id = e?.id, this.isApproved = e?.isApproved, this.isNotInStock = e?.isNotInStock, this.isOnOrder = e?.isOnOrder, this.isLargeOrder = e?.isLargeOrder, this.attachedAt = new F(e?.attachedAt), this.salesDirections = e?.salesDirections?.map((e) => new g(e)), this.status = e?.status, this.statusDetail = e?.statusDetail, this.deliveryType = e?.deliveryType ? new c(e.deliveryType) : void 0, this.paymentType = e?.paymentType ? new ce(e.paymentType) : void 0, this.warehouses = e?.warehouses?.map((e) => new be(e)), this.isToProcess = e?.isToProcess, this.userRegions = e?.userRegions?.map((e) => new ye(e));
2896
2969
  }
2897
2970
  resetFilterValue(e) {
2898
2971
  switch (e) {
@@ -2936,22 +3009,22 @@ var tr = class e {
2936
3009
  let e = super.asClearRaw();
2937
3010
  return !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, !e?.deliveryDate?.from && !e?.deliveryDate?.to && delete e.deliveryDate, !e?.attachedAt?.from && !e?.attachedAt?.to && delete e.attachedAt, e;
2938
3011
  }
2939
- }, xr = class {
3012
+ }, Ar = class {
2940
3013
  user;
2941
3014
  status;
2942
3015
  statusDetail;
2943
3016
  createdAt;
2944
3017
  constructor(e) {
2945
- this.user = new F(e?.user), this.status = new ce(e?.status), this.statusDetail = e?.statusDetail ? new fe(e.statusDetail) : void 0;
3018
+ this.user = new I(e?.user), this.status = new se(e?.status), this.statusDetail = e?.statusDetail ? new de(e.statusDetail) : void 0;
2946
3019
  let t = e?.createdAt;
2947
- this.createdAt = y(t) ? E(t) : e?.createdAt ?? /* @__PURE__ */ new Date();
3020
+ this.createdAt = x(t) ? O(t) : e?.createdAt ?? /* @__PURE__ */ new Date();
2948
3021
  }
2949
- }, Sr = class extends e {
3022
+ }, jr = class extends e {
2950
3023
  getOrders(e, t, n, r) {
2951
- return this.getTypedPaginated(ur, "/internal/orders", e, t, n, {}, void 0, r);
3024
+ return this.getTypedPaginated(yr, "/internal/orders", e, t, n, {}, void 0, r);
2952
3025
  }
2953
3026
  getOrdersCount(e, t) {
2954
- return this.get("/internal/orders/count", e ? { filters: JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive()) } : {}, void 0, void 0, t).then((e) => e.count);
3027
+ return this.get("/internal/orders/count", e ? { filters: JSON.stringify((e instanceof u ? e : new u(e)).toPrimitive()) } : {}, void 0, void 0, t).then((e) => e.count);
2955
3028
  }
2956
3029
  getClientOrderStatistics(e, t) {
2957
3030
  return this.get(`/internal/clients/${e}/orders/statistics`, t ? { period: t } : {});
@@ -2960,12 +3033,12 @@ var tr = class e {
2960
3033
  return this.get(`/internal/orders/${e}`, {}, (e) => new Q(e.data));
2961
3034
  }
2962
3035
  createClientOrder(e, t, n, r = {}) {
2963
- let i = _().config.dateFormats.api;
3036
+ let i = v().config.dateFormats.api;
2964
3037
  return this.post(`/internal/clients/${e}/orders`, {
2965
3038
  ...t,
2966
- deliveryDate: T(t.deliveryDate, i),
3039
+ deliveryDate: D(t.deliveryDate, i),
2967
3040
  items: n?.length ? n : void 0
2968
- }, (e) => g.instanceListInitializer(Q, e.data), r);
3041
+ }, (e) => _.instanceListInitializer(Q, e.data), r);
2969
3042
  }
2970
3043
  attachOrder(e) {
2971
3044
  return this.patch(`/internal/orders/${e}/attach`, {}, (e) => new Q(e.data));
@@ -2983,10 +3056,10 @@ var tr = class e {
2983
3056
  return this.get(`/internal/orders/${e}/clone`, {});
2984
3057
  }
2985
3058
  updateOrder(e, t, n = {}) {
2986
- let r = _().config.dateFormats.api;
3059
+ let r = v().config.dateFormats.api;
2987
3060
  return this.patch(`/internal/orders/${e}`, {
2988
3061
  ...t,
2989
- deliveryDate: t.deliveryDate ? T(t.deliveryDate, r) : void 0
3062
+ deliveryDate: t.deliveryDate ? D(t.deliveryDate, r) : void 0
2990
3063
  }, (e) => new Q(e.data), n);
2991
3064
  }
2992
3065
  addOrderProduct(e, t, n = {}) {
@@ -3013,7 +3086,7 @@ var tr = class e {
3013
3086
  return this.patch(`/internal/orders/${e}/status`, { statusDetail: t }, (e) => new Q(e.data));
3014
3087
  }
3015
3088
  getOrderStatusHistory(e) {
3016
- return this.getTypedList(xr, `/internal/orders/${e}/history`);
3089
+ return this.getTypedList(Ar, `/internal/orders/${e}/history`);
3017
3090
  }
3018
3091
  getOrderPrintHtml(e, t) {
3019
3092
  return this.get(`/internal/orders/${e}/print/view`, { ...t }, (e) => new Blob([e.data], { type: "text/html" }));
@@ -3054,51 +3127,69 @@ var tr = class e {
3054
3127
  return this.get(`/internal/orders/self-delivery/${e}/nearest-dates`, {}, (e) => e.data, void 0, t);
3055
3128
  }
3056
3129
  getDeliveryCost(e, t, n, r) {
3057
- let i = _().config.dateFormats.api;
3130
+ let i = v().config.dateFormats.api;
3058
3131
  return this.get(`/internal/orders/delivery/${e}/cost`, {
3059
- date: T(t, i),
3132
+ date: D(t, i),
3060
3133
  warehouse_id: n
3061
3134
  }, (e) => e.data, void 0, r);
3062
3135
  }
3063
- }, Cr = Symbol("currentOrder"), wr = class {
3136
+ }, Mr = Symbol("currentOrder"), Nr = class e {
3137
+ static async loadAllPages(e, t) {
3138
+ let { maxPageSize: n, maxPages: r } = Fn.resolve(t), i = /* @__PURE__ */ new Set(), a = (e, t) => [...e, ...t.filter((e) => !i.has(e.id) && (i.add(e.id), !0))], o = async (t, i) => {
3139
+ let s = await e({
3140
+ page: t,
3141
+ pageSize: n
3142
+ }), c = a(i, s.data), l = s.meta?.lastPage;
3143
+ return y(s.data) || t >= r || !Number.isFinite(l) || t >= (l ?? 0) ? c : o(t + 1, c);
3144
+ };
3145
+ return o(1, []);
3146
+ }
3147
+ static clampPage(e, t, n) {
3148
+ return xe(e, 1, Math.max(1, Math.ceil(t / n)));
3149
+ }
3150
+ static getPageItems(t, n, r) {
3151
+ let i = (e.clampPage(n, t.length, r) - 1) * r;
3152
+ return Pe(t, i, i + r);
3153
+ }
3154
+ }, Pr = class {
3064
3155
  client;
3065
3156
  product;
3066
3157
  cost;
3067
3158
  costCoefficient;
3068
3159
  source;
3069
3160
  constructor(e) {
3070
- this.client = new U(e?.client), this.product = new R(e?.product), this.cost = e?.cost ?? 0, this.costCoefficient = e?.costCoefficient ?? 0, this.source = e?.source ?? Dt.Product;
3161
+ this.client = new W(e?.client), this.product = new z(e?.product), this.cost = e?.cost ?? 0, this.costCoefficient = e?.costCoefficient ?? 0, this.source = e?.source ?? kt.Product;
3071
3162
  }
3072
- }, Tr = (e) => e ? Ne({
3163
+ }, Fr = (e) => e ? Me({
3073
3164
  cities: e.cities?.map((e) => e.id),
3074
3165
  clients: e.clients?.map((e) => e.id),
3075
3166
  managers: e.managers?.map((e) => e.id),
3076
3167
  partnerGroups: e.partnerGroups?.map((e) => e.id),
3077
3168
  salesDirections: e.salesDirections?.map((e) => e.id),
3078
3169
  hideNotActive: e.hideNotActive
3079
- }, (e) => v(e) || (Ee(e) || Ae(e)) && Oe(e)) : {}, Er = (e) => {
3170
+ }, (e) => b(e) || (Ee(e) || ke(e)) && y(e)) : {}, Ir = (e) => {
3080
3171
  let t = {};
3081
3172
  return e.from && (e.from.coefficient || e.from.value) && (t.from = {}, e.from.coefficient && (t.from.priceCoefficientId = e.from.coefficient.id), e.from.value && (t.from.increasePercent = e.from.value)), e.to && (e.to.coefficient || e.to.value) && (t.to = {}, e.to.coefficient && (t.to.priceCoefficientId = e.to.coefficient.id), e.to.value && (t.to.increasePercent = e.to.value)), t;
3082
- }, Dr = class extends l {
3173
+ }, Lr = class extends d {
3083
3174
  analyzeProductPrices(e, t, n) {
3084
3175
  return this.get(`/internal/price/products/${e}/analyze`, {
3085
- ...Er(t),
3086
- filters: Tr(n)
3087
- }, (e) => g.instanceListInitializer(wr, e.data));
3176
+ ...Ir(t),
3177
+ filters: Fr(n)
3178
+ }, (e) => _.instanceListInitializer(Pr, e.data));
3088
3179
  }
3089
3180
  analyzeCategoryPrices(e, t, n) {
3090
3181
  return this.get(`/internal/price/categories/${e}/analyze`, {
3091
- ...Er(t),
3092
- filters: Tr(n)
3093
- }, (e) => g.instanceListInitializer(wr, e.data));
3182
+ ...Ir(t),
3183
+ filters: Fr(n)
3184
+ }, (e) => _.instanceListInitializer(Pr, e.data));
3094
3185
  }
3095
3186
  analyzeCategoryPricesBySquare(e, t, n) {
3096
3187
  return this.get(`/internal/price/categories/${e}/analyze/square`, {
3097
3188
  ...t,
3098
- filters: Tr(n)
3099
- }, (e) => g.instanceListInitializer(wr, e.data));
3189
+ filters: Fr(n)
3190
+ }, (e) => _.instanceListInitializer(Pr, e.data));
3100
3191
  }
3101
- }, Or = class {
3192
+ }, Rr = class {
3102
3193
  cost;
3103
3194
  isLowCost;
3104
3195
  isRetail;
@@ -3110,43 +3201,43 @@ var tr = class e {
3110
3201
  executor;
3111
3202
  currency;
3112
3203
  constructor(e) {
3113
- this.cost = e.cost ?? 0, this.isLowCost = e.isLowCost ?? !1, this.isRetail = e.isRetail ?? !1, this.costDate = y(e.costDate) ? E(e.costDate) : e.costDate ?? /* @__PURE__ */ new Date(), this.discountName = e.discountName, this.priceTemplateName = e.priceTemplateName, this.product = e.product ? new L(e.product) : void 0, this.client = e.client ? new F(e.client) : void 0, this.executor = e.executor ? new F(e.executor) : void 0, this.currency = e.currency ? new o(e.currency) : void 0;
3204
+ this.cost = e.cost ?? 0, this.isLowCost = e.isLowCost ?? !1, this.isRetail = e.isRetail ?? !1, this.costDate = x(e.costDate) ? O(e.costDate) : e.costDate ?? /* @__PURE__ */ new Date(), this.discountName = e.discountName, this.priceTemplateName = e.priceTemplateName, this.product = e.product ? new R(e.product) : void 0, this.client = e.client ? new I(e.client) : void 0, this.executor = e.executor ? new I(e.executor) : void 0, this.currency = e.currency ? new o(e.currency) : void 0;
3114
3205
  }
3115
- }, kr = class extends L {
3206
+ }, zr = class extends R {
3116
3207
  history;
3117
3208
  constructor(e) {
3118
- super(e), this.history = b(e.history, (e) => new Or(e));
3209
+ super(e), this.history = S(e.history, (e) => new Rr(e));
3119
3210
  }
3120
- }, Ar = class extends l {
3211
+ }, Br = class extends d {
3121
3212
  getProductPriceHistory(e) {
3122
- let t = _().config.dateFormats.api, n = Ne(Me(e, { costDate: {
3123
- from: De(e.costDate?.from) ? T(e.costDate.from, t) : e.costDate?.from,
3124
- to: De(e.costDate?.to) ? T(e.costDate.to, t) : e.costDate?.to
3125
- } }), (e) => v(e) || (Ee(e) || Ae(e)) && Oe(e)), r = e.product?.[0] ?? 0;
3126
- return delete n.product, this.get(`/internal/price/products/${r}/history`, n).then((e) => [new kr(Me(e[0], { history: e }))]);
3213
+ let t = v().config.dateFormats.api, n = Me(je(e, { costDate: {
3214
+ from: De(e.costDate?.from) ? D(e.costDate.from, t) : e.costDate?.from,
3215
+ to: De(e.costDate?.to) ? D(e.costDate.to, t) : e.costDate?.to
3216
+ } }), (e) => b(e) || (Ee(e) || ke(e)) && y(e)), r = e.product?.[0] ?? 0;
3217
+ return delete n.product, this.get(`/internal/price/products/${r}/history`, n).then((e) => [new zr(je(e[0], { history: e }))]);
3127
3218
  }
3128
- }, jr = class {
3219
+ }, Vr = class {
3129
3220
  createdAt;
3130
3221
  creator;
3131
3222
  files;
3132
3223
  text;
3133
3224
  status;
3134
3225
  constructor(e) {
3135
- this.createdAt = s.parse(e?.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = v(e?.creator) ? void 0 : new F(e.creator), this.files = e?.files ?? [], this.text = e?.text ?? void 0, this.status = e?.status ?? void 0;
3226
+ this.createdAt = s.parse(e?.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = b(e?.creator) ? void 0 : new I(e.creator), this.files = e?.files ?? [], this.text = e?.text ?? void 0, this.status = e?.status ?? void 0;
3136
3227
  }
3137
3228
  isStatusChanged() {
3138
- return !v(this.status);
3229
+ return !b(this.status);
3139
3230
  }
3140
3231
  }, $ = /* @__PURE__ */ function(e) {
3141
3232
  return e[e.Initiated = 1] = "Initiated", e[e.InfoRequired = 2] = "InfoRequired", e[e.Pending = 3] = "Pending", e[e.Completed = 4] = "Completed", e;
3142
- }({}), Mr = class extends M {
3233
+ }({}), Hr = class extends P {
3143
3234
  status;
3144
3235
  closedAt;
3145
3236
  isRead;
3146
3237
  isDeleted;
3147
3238
  client;
3148
3239
  constructor(e) {
3149
- super(e), this.status = e?.status ?? $.Initiated, this.closedAt = s.parse(e?.closedAt), this.isRead = e?.isRead ?? !1, this.isDeleted = e?.isDeleted ?? !1, this.client = new yn(e?.client);
3240
+ super(e), this.status = e?.status ?? $.Initiated, this.closedAt = s.parse(e?.closedAt), this.isRead = e?.isRead ?? !1, this.isDeleted = e?.isDeleted ?? !1, this.client = new xn(e?.client);
3150
3241
  }
3151
3242
  isClosed() {
3152
3243
  return this.status === $.Completed;
@@ -3160,15 +3251,15 @@ var tr = class e {
3160
3251
  getConsiderationDays(e = /* @__PURE__ */ new Date()) {
3161
3252
  return Math.max(He(this.closedAt ?? e, this.createdAt), 0);
3162
3253
  }
3163
- }, Nr = class extends Mr {
3254
+ }, Ur = class extends Hr {
3164
3255
  items;
3165
3256
  constructor(e) {
3166
- super(e), this.items = b(e?.items ?? [], (e) => new jr(e));
3257
+ super(e), this.items = S(e?.items ?? [], (e) => new Vr(e));
3167
3258
  }
3168
3259
  isClientMessage(e) {
3169
3260
  return e.creator?.id === this.client.id;
3170
3261
  }
3171
- }, Pr = class extends j {
3262
+ }, Wr = class extends N {
3172
3263
  id;
3173
3264
  statuses;
3174
3265
  createdAt;
@@ -3181,7 +3272,7 @@ var tr = class e {
3181
3272
  super(), this.id = {
3182
3273
  from: e?.id?.from ?? null,
3183
3274
  to: e?.id?.to ?? null
3184
- }, this.statuses = e?.statuses, this.createdAt = new N(e?.createdAt), this.closedAt = new N(e?.closedAt), this.isRead = e?.isRead, this.isDeleted = e?.isDeleted, this.clientName = e?.clientName, this.cityName = e?.cityName;
3275
+ }, this.statuses = e?.statuses, this.createdAt = new F(e?.createdAt), this.closedAt = new F(e?.closedAt), this.isRead = e?.isRead, this.isDeleted = e?.isDeleted, this.clientName = e?.clientName, this.cityName = e?.cityName;
3185
3276
  }
3186
3277
  resetFilterValue(e) {
3187
3278
  switch (e) {
@@ -3204,7 +3295,7 @@ var tr = class e {
3204
3295
  }
3205
3296
  return this;
3206
3297
  }
3207
- }, Fr = class e {
3298
+ }, Gr = class e {
3208
3299
  static apiCodes = {
3209
3300
  [$.Initiated]: "initiated",
3210
3301
  [$.InfoRequired]: "info_required",
@@ -3215,23 +3306,23 @@ var tr = class e {
3215
3306
  return e.apiCodes[t];
3216
3307
  }
3217
3308
  static toApiCodes(t) {
3218
- return b(t, (t) => e.toApiCode(t));
3309
+ return S(t, (t) => e.toApiCode(t));
3219
3310
  }
3220
- }, Ir = class extends e {
3311
+ }, Kr = class extends e {
3221
3312
  getReclamationsList(e, t, n, r, i = !1) {
3222
- return this.getTypedPaginated(Mr, "/internal/reclamations", e, t, n, {}, i, r);
3313
+ return this.getTypedPaginated(Hr, "/internal/reclamations", e, t, n, {}, i, r);
3223
3314
  }
3224
3315
  getReclamation(e, t, n = !1) {
3225
- return this.get(`/internal/reclamations/${e}`, {}, (e) => new Nr(e.data), n, t);
3316
+ return this.get(`/internal/reclamations/${e}`, {}, (e) => new Ur(e.data), n, t);
3226
3317
  }
3227
3318
  createMessage(e, t, n = {}) {
3228
- return this.post(`/internal/reclamations/${e}/messages`, t, (e) => new Nr(e.data), n);
3319
+ return this.post(`/internal/reclamations/${e}/messages`, t, (e) => new Ur(e.data), n);
3229
3320
  }
3230
3321
  deleteReclamation(e) {
3231
3322
  return this.delete(`/internal/reclamations/${e}`);
3232
3323
  }
3233
3324
  restoreReclamation(e) {
3234
- return this.post(`/internal/reclamations/${e}/restore`, {}, (e) => new Nr(e.data));
3325
+ return this.post(`/internal/reclamations/${e}/restore`, {}, (e) => new Ur(e.data));
3235
3326
  }
3236
3327
  downloadReclamation(e, t = !1) {
3237
3328
  return this.getBlob(`/internal/reclamations/${e}/download`, {}, (e) => new Blob([e.request.response], { type: "application/pdf" }), t);
@@ -3239,18 +3330,18 @@ var tr = class e {
3239
3330
  getUpdates(e, t = !1) {
3240
3331
  return this.get("/internal/reclamations/updates", {}, void 0, t, e);
3241
3332
  }
3242
- }, Lr = class {
3333
+ }, qr = class {
3243
3334
  products = [];
3244
3335
  productCategories = [];
3245
3336
  constructor(e) {
3246
- e?.products && (this.products = e.products.map((e) => new L(e))), e?.productCategories && (this.productCategories = e.productCategories.map((e) => new L(e)));
3337
+ e?.products && (this.products = e.products.map((e) => new R(e))), e?.productCategories && (this.productCategories = e.productCategories.map((e) => new R(e)));
3247
3338
  }
3248
- }, Rr = class extends l {
3339
+ }, Jr = class extends d {
3249
3340
  getProductCategoryRecommendations(e) {
3250
- return this.get(`/internal/catalog/recommendations/categories/${e.id}`, {}, (e) => new Lr(e.data));
3341
+ return this.get(`/internal/catalog/recommendations/categories/${e.id}`, {}, (e) => new qr(e.data));
3251
3342
  }
3252
3343
  getProductRecommendations(e) {
3253
- return this.get(`/internal/catalog/recommendations/products/${e.id}`, {}, (e) => new Lr(e.data));
3344
+ return this.get(`/internal/catalog/recommendations/products/${e.id}`, {}, (e) => new qr(e.data));
3254
3345
  }
3255
3346
  saveProductCategoryRecommendations(e, t) {
3256
3347
  return this.post(`/internal/catalog/recommendations/categories/${e.id}`, {
@@ -3264,7 +3355,7 @@ var tr = class e {
3264
3355
  products: t.products.map((e) => e.id)
3265
3356
  });
3266
3357
  }
3267
- }, zr = class {
3358
+ }, Yr = class {
3268
3359
  static generateUndefinedInstance(e, t = "- Не определён -") {
3269
3360
  return new e({
3270
3361
  id: 0,
@@ -3275,13 +3366,13 @@ var tr = class e {
3275
3366
  static isUndefinedInstance(e) {
3276
3367
  return e.id === 0 && e.slug === "-undefined-";
3277
3368
  }
3278
- }, Br = class {
3369
+ }, Xr = class {
3279
3370
  name;
3280
3371
  content;
3281
3372
  constructor(e) {
3282
3373
  this.name = e.name, this.content = e.content;
3283
3374
  }
3284
- }, Vr = class {
3375
+ }, Zr = class {
3285
3376
  resourceType;
3286
3377
  resourceId;
3287
3378
  h1;
@@ -3291,42 +3382,42 @@ var tr = class e {
3291
3382
  meta;
3292
3383
  tags;
3293
3384
  constructor(e) {
3294
- this.resourceType = new me(e?.resourceType), this.resourceId = e?.resourceId ?? "", this.h1 = e?.h1, this.title = e?.title, this.description = e?.description, this.keywords = e?.keywords, this.meta = e?.meta?.map((e) => new Br(e)) ?? [], this.tags = e?.tags;
3385
+ this.resourceType = new pe(e?.resourceType), this.resourceId = e?.resourceId ?? "", this.h1 = e?.h1, this.title = e?.title, this.description = e?.description, this.keywords = e?.keywords, this.meta = e?.meta?.map((e) => new Xr(e)) ?? [], this.tags = e?.tags;
3295
3386
  }
3296
- }, Hr = class extends l {
3387
+ }, Qr = class extends d {
3297
3388
  getResourceSeoData(e, t) {
3298
- return this.get(`/internal/seo/${e.slug}/${t}`, {}, (e) => new Vr(e.data));
3389
+ return this.get(`/internal/seo/${e.slug}/${t}`, {}, (e) => new Zr(e.data));
3299
3390
  }
3300
3391
  saveResourceSeoData(e, t = {}) {
3301
- return this.post(`/internal/seo/${e.resourceType.slug}/${e.resourceId}`, e, (e) => new Vr(e.data), t);
3392
+ return this.post(`/internal/seo/${e.resourceType.slug}/${e.resourceId}`, e, (e) => new Zr(e.data), t);
3302
3393
  }
3303
3394
  deleteResourceSeoData(e, t) {
3304
3395
  return this.delete(`/internal/seo/${e.slug}/${t}`);
3305
3396
  }
3306
- }, Ur = class extends u {
3397
+ }, $r = class extends f {
3307
3398
  text;
3308
3399
  searchCount;
3309
3400
  lastSearchedAt;
3310
3401
  constructor(e) {
3311
3402
  super(e), this.text = e?.text ?? "", this.searchCount = e?.searchCount ?? 0, this.lastSearchedAt = s.parse(e?.lastSearchedAt);
3312
3403
  }
3313
- }, Wr = class extends l {
3404
+ }, ei = class extends d {
3314
3405
  getSearchProductsStatistics(e, t) {
3315
- return this.getTypedList(Ur, "/internal/statistics/search/products", { date: s.periodToApiFormat(e) }, !1, t);
3406
+ return this.getTypedList($r, "/internal/statistics/search/products", { date: s.periodToApiFormat(e) }, !1, t);
3316
3407
  }
3317
3408
  removeSearchProductStatistic(e) {
3318
3409
  return this.delete(`/internal/statistics/search/products/${e}`);
3319
3410
  }
3320
- }, Gr = /* @__PURE__ */ function(e) {
3411
+ }, ti = /* @__PURE__ */ function(e) {
3321
3412
  return e[e.Undetermined = 0] = "Undetermined", e[e.Complete = 1] = "Complete", e[e.Incomplete = 2] = "Incomplete", e;
3322
- }({}), Kr = class e {
3413
+ }({}), ni = class e {
3323
3414
  static isBlocked(e, t) {
3324
- return t && e === Gr.Incomplete;
3415
+ return t && e === ti.Incomplete;
3325
3416
  }
3326
3417
  static getValidationResult(t, n) {
3327
- return e.isBlocked(t, n) ? new ee("Проверьте адрес и выберите более точный вариант из подсказок", "error") : t === Gr.Incomplete || t === Gr.Undetermined ? new ee("Проверьте правильность адреса", "warning") : void 0;
3418
+ return e.isBlocked(t, n) ? new l("Проверьте адрес и выберите более точный вариант из подсказок", "error") : t === ti.Incomplete || t === ti.Undetermined ? new l("Проверьте правильность адреса", "warning") : void 0;
3328
3419
  }
3329
- }, qr = class extends l {
3420
+ }, ri = class extends d {
3330
3421
  searchAddresses(e) {
3331
3422
  return this.execSuggestionQuery("/public/suggestions/address", e);
3332
3423
  }
@@ -3344,26 +3435,26 @@ var tr = class e {
3344
3435
  }), t;
3345
3436
  });
3346
3437
  }
3347
- }, Jr = class extends l {
3438
+ }, ii = class extends d {
3348
3439
  constructor() {
3349
- super(), this.baseUrl = `${_().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
3440
+ super(), this.baseUrl = `${v().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
3350
3441
  }
3351
3442
  getAccessToken() {
3352
3443
  return this.get("internal/users/current-tokens").then((e) => e.accessToken);
3353
3444
  }
3354
- }, Yr = class {
3445
+ }, ai = class {
3355
3446
  user;
3356
3447
  salesDirection;
3357
3448
  constructor(e) {
3358
- this.user = new F(e?.user), this.salesDirection = new h(e?.salesDirection);
3449
+ this.user = new I(e?.user), this.salesDirection = new g(e?.salesDirection);
3359
3450
  }
3360
- }, Xr = class extends be {
3451
+ }, oi = class extends ye {
3361
3452
  cities;
3362
3453
  users;
3363
3454
  constructor(e) {
3364
- super(e), this.cities = e?.cities?.map((e) => new n(e)) ?? [], this.users = e?.users?.map((e) => new Yr(e)) ?? [];
3455
+ super(e), this.cities = e?.cities?.map((e) => new n(e)) ?? [], this.users = e?.users?.map((e) => new ai(e)) ?? [];
3365
3456
  }
3366
- }, Zr = class extends j {
3457
+ }, si = class extends N {
3367
3458
  id;
3368
3459
  name;
3369
3460
  abbr;
@@ -3378,27 +3469,27 @@ var tr = class e {
3378
3469
  }
3379
3470
  return this;
3380
3471
  }
3381
- }, Qr = class extends e {
3472
+ }, ci = class extends e {
3382
3473
  getRegionsList(e, t, n) {
3383
- return this.getTypedPaginated(be, "/internal/users/regions", e, t, n);
3474
+ return this.getTypedPaginated(ye, "/internal/users/regions", e, t, n);
3384
3475
  }
3385
3476
  getRegion(e) {
3386
- return this.get(`/internal/users/regions/${e}`, {}, (e) => new Xr(e.data));
3477
+ return this.get(`/internal/users/regions/${e}`, {}, (e) => new oi(e.data));
3387
3478
  }
3388
3479
  createRegion(e, t = {}) {
3389
- return this.post("/internal/users/regions", e, (e) => new Xr(e.data), t);
3480
+ return this.post("/internal/users/regions", e, (e) => new oi(e.data), t);
3390
3481
  }
3391
3482
  updateRegion(e, t, n = {}) {
3392
- return this.patch(`/internal/users/regions/${e}`, t, (e) => new Xr(e.data), n);
3483
+ return this.patch(`/internal/users/regions/${e}`, t, (e) => new oi(e.data), n);
3393
3484
  }
3394
3485
  removeRegion(e) {
3395
3486
  return this.delete(`/internal/users/regions/${e}`);
3396
3487
  }
3397
3488
  getRegionEmployees(e) {
3398
- return this.getTypedList(Yr, `/internal/users/regions/${e}/users`);
3489
+ return this.getTypedList(ai, `/internal/users/regions/${e}/users`);
3399
3490
  }
3400
3491
  attachRegionEmployee(e, t, n) {
3401
- return this.post(`/internal/users/regions/${e}/users/${t}`, { salesDirectionId: n }, (e) => new Yr(e.data));
3492
+ return this.post(`/internal/users/regions/${e}/users/${t}`, { salesDirectionId: n }, (e) => new ai(e.data));
3402
3493
  }
3403
3494
  detachRegionEmployee(e, t, n) {
3404
3495
  return this.request({
@@ -3409,4 +3500,4 @@ var tr = class e {
3409
3500
  }
3410
3501
  };
3411
3502
  //#endregion
3412
- export { Gr as AddressQualityEnum, Kr as AddressQualityHelper, lt as AdminFullInfo, dt as AdminProvider, ct as AdminShortInfo, ut as AdminsListFilters, dn as BankAccount, gt as BlogPost, pt as BlogPostMediaFile, ft as BlogPostMediaTypeEnum, mt as BlogPostPublicationStatusEnum, ht as BlogPostShortInfo, _t as BlogPostsListFilters, vt as BlogProvider, jt as CalculationTypeEnum, X as CalendarHelper, V as Cart, At as CartProvider, Xt as CatalogProvider, Ct as CatalogableItem, H as Category, Yt as CategoryFilter, qt as CategoryFilterSetting, Jt as CategoryFilterValue, Gt as CategoryPricingRule, bn as Client, Cn as ClientAdditionalData, yn as ClientBaseInfo, Pt as ClientCategory, En as ClientDataProvider, Ht as ClientPriceCatalogableItem, Wt as ClientPriceCategory, Ut as ClientPriceProduct, Zt as ClientPriceProvider, Qt as ClientPriceTemplateProvider, z as ClientProduct, tn as ClientProductCategoryDataProvider, nn as ClientProductDataProvider, U as ClientShortInfo, un as ClientsAdditionalDataRequestTypeEnum, xn as ClientsListFilters, L as CodedIdentity, An as ConfiguratorProvider, kn as ConfiguratorsEnum, fn as Contact, J as ContactPerson, Tn as ContactPersonRelated, wn as ContactRelation, pn as ContragentBase, vn as ContragentFactory, hn as ContragentIc, mn as ContragentPerson, _n as ContragentUlNr, gn as ContragentUlR, Dt as CostSourceEnum, M as CreatableIdentity, Rt as Curator, qr as DataSuggestionProvider, Ln as DateTimeProvider, zt as DeletableIdentity, P as DeletableNamedIdentity, Y as DeliveryAddress, Wn as Discount, Bn as DiscountClient, Gn as DiscountClientEligibility, Vn as DiscountConditions, qn as DiscountProvider, yt as DiscountShortInfo, Hn as DiscountStateEnum, Un as DiscountStateHelper, Kn as DiscountsListFilters, Jn as ExternalSeoFullInfo, Yn as ExternalSeoListFilters, Xn as ExternalSeoProvider, Qn as Faq, Zn as FaqGroup, $n as FaqProvider, Kt as FilterSettings, wt as HiddenCatalogableItem, Tt as Image, nr as ManagerDataFactory, ir as ManagerProvider, rr as ManagersListFilters, Br as MetaTagItem, Z as Offer, or as OfferActualization, ar as OfferActualizationStatus, pr as OfferHelper, sr as OfferShortInfo, fr as OffersDataProvider, lr as OffersListFilters, hr as OperatorFullInfo, _r as OperatorProvider, mr as OperatorShortInfo, gr as OperatorsListFilters, Q as Order, vr as OrderAction, yr as OrderEditorData, ur as OrderInfo, dr as OrderItem, Ot as OrderItemBase, Sn as OrderShortInfo, xr as OrderStatusHistoryInfo, Sr as OrdersDataProvider, br as OrdersListFilters, j as PaginationFiltersBase, wr as PriceAnalyze, Dr as PriceAnalyzeProvider, Ft as PriceCatalogableItem, Ar as PriceHistoryDataProvider, Or as PriceHistoryItem, I as PriceTemplate, Lt as PriceTemplateCategory, W as PriceTemplateClient, It as PriceTemplateICatalogableItem, Bt as PriceTemplateProduct, rn as PriceTemplateProvider, q as PricingRole, an as PricingRoleProvider, Et as PrimaryCatalogableItem, R as Product, $t as ProductCategoryDataProvider, en as ProductDataProvider, Mt as ProductFilterTypeEnum, bt as ProductPriceCoefficient, kr as ProductPriceHistory, St as ProductUnit, cr as ProfstroyOfferItem, on as PropertiesProvider, G as Property, K as PropertyValue, Nr as Reclamation, jr as ReclamationItem, Ir as ReclamationProvider, Mr as ReclamationShortInfo, $ as ReclamationStatusEnum, Fr as ReclamationStatusHelper, Pr as ReclamationsListFilters, Rr as RecommendationsDataProvider, Lr as RecommendationsList, zr as ReferenceDataFactory, Rn as STANDARD_PERIOD_GROUPS, zn as STANDARD_PERIOD_SECTIONS, Ur as SearchProductStatistic, Vr as Seo, Hr as SeoDataProvider, Wr as StatisticsProvider, xt as StockCount, Mn as TableDataPagination, jn as TableDataPaginationRequestParams, Nn as TableDataSortRequestParams, sn as TemplateProductCategoryDataProvider, Vt as TemplatesListFilters, tr as UnitsHelper, Dn as UnknownClientDataProvider, Jr as UserAuthDataProvider, Xr as UserRegion, Yr as UserRegionEmployee, Qr as UserRegionProvider, Zr as UserRegionsListFilters, F as UserShortInfo, On as VersionConfig, Cr as currentOrderInjectionKey, Pn as daysAgoIso, cn as findCatalogItemByIdRecursive, ln as flattenCatalogItems, er as formatPercentChange, In as formatRelativeDate, Fn as pluralize };
3503
+ export { ti as AddressQualityEnum, ni as AddressQualityHelper, ut as AdminFullInfo, ft as AdminProvider, lt as AdminShortInfo, dt as AdminsListFilters, pn as BankAccount, _t as BlogPost, mt as BlogPostMediaFile, pt as BlogPostMediaTypeEnum, ht as BlogPostPublicationStatusEnum, gt as BlogPostShortInfo, vt as BlogPostsListFilters, yt as BlogProvider, Nt as CalculationTypeEnum, X as CalendarHelper, H as Cart, Mt as CartProvider, Qt as CatalogProvider, Tt as CatalogableItem, U as Category, Zt as CategoryFilter, Yt as CategoryFilterSetting, Xt as CategoryFilterValue, qt as CategoryPricingRule, Cn as Client, En as ClientAdditionalData, xn as ClientBaseInfo, It as ClientCategory, kn as ClientDataProvider, Wt as ClientPriceCatalogableItem, Kt as ClientPriceCategory, Gt as ClientPriceProduct, $t as ClientPriceProvider, en as ClientPriceTemplateProvider, B as ClientProduct, rn as ClientProductCategoryDataProvider, an as ClientProductDataProvider, W as ClientShortInfo, fn as ClientsAdditionalDataRequestTypeEnum, wn as ClientsListFilters, R as CodedIdentity, Nn as ConfiguratorProvider, Mn as ConfiguratorsEnum, mn as Contact, Y as ContactPerson, On as ContactPersonRelated, Dn as ContactRelation, hn as ContragentBase, bn as ContragentFactory, _n as ContragentIc, gn as ContragentPerson, yn as ContragentUlNr, vn as ContragentUlR, kt as CostSourceEnum, P as CreatableIdentity, Bt as Curator, ri as DataSuggestionProvider, Hn as DateTimeProvider, Vt as DeletableIdentity, bt as DeletableNamedIdentity, Sn as DeliveryAddress, Yn as Discount, Gn as DiscountClient, Xn as DiscountClientEligibility, Kn as DiscountConditions, Qn as DiscountProvider, xt as DiscountShortInfo, qn as DiscountStateEnum, Jn as DiscountStateHelper, Zn as DiscountsListFilters, tr as DocumentContentTypeEnum, er as DocumentItem, nr as DocumentProvider, $n as DocumentTypeEnum, rr as ExternalSeoFullInfo, ir as ExternalSeoListFilters, ar as ExternalSeoProvider, sr as Faq, or as FaqGroup, cr as FaqProvider, Jt as FilterSettings, Et as HiddenCatalogableItem, Dt as Image, dr as ManagerDataFactory, pr as ManagerProvider, fr as ManagersListFilters, Xr as MetaTagItem, Z as Offer, hr as OfferActualization, mr as OfferActualizationStatus, Sr as OfferHelper, gr as OfferShortInfo, xr as OffersDataProvider, vr as OffersListFilters, wr as OperatorFullInfo, Er as OperatorProvider, Cr as OperatorShortInfo, Tr as OperatorsListFilters, Q as Order, Dr as OrderAction, Or as OrderEditorData, yr as OrderInfo, br as OrderItem, At as OrderItemBase, Tn as OrderShortInfo, Ar as OrderStatusHistoryInfo, jr as OrdersDataProvider, kr as OrdersListFilters, Pn as PAGINATION_DEFAULT_SETTINGS, N as PaginationFiltersBase, Nr as PaginationHelper, Fn as PaginationSettingsHelper, Pr as PriceAnalyze, Lr as PriceAnalyzeProvider, Lt as PriceCatalogableItem, Br as PriceHistoryDataProvider, Rr as PriceHistoryItem, L as PriceTemplate, zt as PriceTemplateCategory, G as PriceTemplateClient, Rt as PriceTemplateICatalogableItem, Ht as PriceTemplateProduct, on as PriceTemplateProvider, J as PricingRole, sn as PricingRoleProvider, Ot as PrimaryCatalogableItem, z as Product, tn as ProductCategoryDataProvider, nn as ProductDataProvider, Pt as ProductFilterTypeEnum, St as ProductPriceCoefficient, zr as ProductPriceHistory, wt as ProductUnit, _r as ProfstroyOfferItem, cn as PropertiesProvider, K as Property, q as PropertyValue, Ur as Reclamation, Vr as ReclamationItem, Kr as ReclamationProvider, Hr as ReclamationShortInfo, $ as ReclamationStatusEnum, Gr as ReclamationStatusHelper, Wr as ReclamationsListFilters, Jr as RecommendationsDataProvider, qr as RecommendationsList, Yr as ReferenceDataFactory, Un as STANDARD_PERIOD_GROUPS, Wn as STANDARD_PERIOD_SECTIONS, $r as SearchProductStatistic, Zr as Seo, Qr as SeoDataProvider, ei as StatisticsProvider, Ct as StockCount, Ln as TableDataPagination, In as TableDataPaginationRequestParams, Rn as TableDataSortRequestParams, ln as TemplateProductCategoryDataProvider, Ut as TemplatesListFilters, ur as UnitsHelper, An as UnknownClientDataProvider, ii as UserAuthDataProvider, oi as UserRegion, ai as UserRegionEmployee, ci as UserRegionProvider, si as UserRegionsListFilters, I as UserShortInfo, jn as VersionConfig, Mr as currentOrderInjectionKey, zn as daysAgoIso, un as findCatalogItemByIdRecursive, dn as flattenCatalogItems, lr as formatPercentChange, Vn as formatRelativeDate, Bn as pluralize };