@snabcentr/common-lib 1.90.4 → 1.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +2 -2
  3. package/dist/sc-common-lib.js +1364 -1254
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/cart/interfaces/i-base-cart-validation-result.d.ts +2 -1
  8. package/dist/src/cart/interfaces/i-base-cart-validation-result.d.ts.map +1 -1
  9. package/dist/src/cart/providers/cart-provider.d.ts +1 -1
  10. package/dist/src/cart/providers/cart-provider.d.ts.map +1 -1
  11. package/dist/src/catalog/classes/category-filter-setting.d.ts +30 -0
  12. package/dist/src/catalog/classes/category-filter-setting.d.ts.map +1 -0
  13. package/dist/src/catalog/classes/filter-settings.d.ts +37 -0
  14. package/dist/src/catalog/classes/filter-settings.d.ts.map +1 -0
  15. package/dist/src/catalog/classes/index.d.ts +2 -0
  16. package/dist/src/catalog/classes/index.d.ts.map +1 -1
  17. package/dist/src/catalog/classes/price-template.d.ts +1 -1
  18. package/dist/src/catalog/classes/price-template.d.ts.map +1 -1
  19. package/dist/src/catalog/classes/property.d.ts +4 -0
  20. package/dist/src/catalog/classes/property.d.ts.map +1 -1
  21. package/dist/src/catalog/enums/index.d.ts +1 -0
  22. package/dist/src/catalog/enums/index.d.ts.map +1 -1
  23. package/dist/src/catalog/enums/product-filter-type-enum.d.ts +18 -0
  24. package/dist/src/catalog/enums/product-filter-type-enum.d.ts.map +1 -0
  25. package/dist/src/catalog/interfaces/i-category-filter-setting-update-data.d.ts +27 -0
  26. package/dist/src/catalog/interfaces/i-category-filter-setting-update-data.d.ts.map +1 -0
  27. package/dist/src/catalog/interfaces/i-category-filter-setting.d.ts +21 -0
  28. package/dist/src/catalog/interfaces/i-category-filter-setting.d.ts.map +1 -0
  29. package/dist/src/catalog/interfaces/i-discount-short-info.d.ts +1 -1
  30. package/dist/src/catalog/interfaces/i-discount-short-info.d.ts.map +1 -1
  31. package/dist/src/catalog/interfaces/i-filter-settings.d.ts +27 -0
  32. package/dist/src/catalog/interfaces/i-filter-settings.d.ts.map +1 -0
  33. package/dist/src/catalog/interfaces/i-pricing-role-create-data.d.ts +1 -1
  34. package/dist/src/catalog/interfaces/i-pricing-role-create-data.d.ts.map +1 -1
  35. package/dist/src/catalog/interfaces/i-pricing-role.d.ts +1 -1
  36. package/dist/src/catalog/interfaces/i-pricing-role.d.ts.map +1 -1
  37. package/dist/src/catalog/interfaces/i-product-price-coefficient.d.ts +1 -1
  38. package/dist/src/catalog/interfaces/i-product-price-coefficient.d.ts.map +1 -1
  39. package/dist/src/catalog/interfaces/i-property-type.d.ts +1 -1
  40. package/dist/src/catalog/interfaces/i-property-type.d.ts.map +1 -1
  41. package/dist/src/catalog/interfaces/i-property.d.ts +4 -0
  42. package/dist/src/catalog/interfaces/i-property.d.ts.map +1 -1
  43. package/dist/src/catalog/interfaces/index.d.ts +3 -0
  44. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  45. package/dist/src/catalog/methods/flatten-catalog-items.d.ts.map +1 -1
  46. package/dist/src/catalog/providers/client-price-provider.d.ts +5 -1
  47. package/dist/src/catalog/providers/client-price-provider.d.ts.map +1 -1
  48. package/dist/src/catalog/providers/client-price-template-provider.d.ts +2 -1
  49. package/dist/src/catalog/providers/client-price-template-provider.d.ts.map +1 -1
  50. package/dist/src/catalog/providers/price-template-provider.d.ts +10 -3
  51. package/dist/src/catalog/providers/price-template-provider.d.ts.map +1 -1
  52. package/dist/src/catalog/providers/properties-provider.d.ts +37 -5
  53. package/dist/src/catalog/providers/properties-provider.d.ts.map +1 -1
  54. package/dist/src/clients/classes/bank-account.d.ts +3 -3
  55. package/dist/src/clients/classes/bank-account.d.ts.map +1 -1
  56. package/dist/src/clients/classes/clients-list-filters.d.ts +4 -0
  57. package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
  58. package/dist/src/clients/classes/contragent/contragent-person.d.ts +1 -1
  59. package/dist/src/clients/classes/contragent/contragent-person.d.ts.map +1 -1
  60. package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts +2 -2
  61. package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts.map +1 -1
  62. package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts +1 -1
  63. package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts.map +1 -1
  64. package/dist/src/clients/classes/delivery-address.d.ts +3 -3
  65. package/dist/src/clients/classes/delivery-address.d.ts.map +1 -1
  66. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts +6 -3
  67. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts.map +1 -1
  68. package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts +1 -1
  69. package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts.map +1 -1
  70. package/dist/src/clients/interfaces/i-bank-account.d.ts +2 -2
  71. package/dist/src/clients/interfaces/i-bank-account.d.ts.map +1 -1
  72. package/dist/src/clients/interfaces/i-client-short-info.d.ts +3 -2
  73. package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
  74. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +11 -1
  75. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
  76. package/dist/src/clients/interfaces/i-delivery-address.d.ts +3 -3
  77. package/dist/src/clients/interfaces/i-delivery-address.d.ts.map +1 -1
  78. package/dist/src/clients/providers/client-data-provider.d.ts +8 -8
  79. package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
  80. package/dist/src/clients/providers/unknown-client-data-provider.d.ts +1 -1
  81. package/dist/src/clients/providers/unknown-client-data-provider.d.ts.map +1 -1
  82. package/dist/src/configurator/providers/configurator-provider.d.ts.map +1 -1
  83. package/dist/src/contacts/interfaces/i-contact-person.d.ts +2 -1
  84. package/dist/src/contacts/interfaces/i-contact-person.d.ts.map +1 -1
  85. package/dist/src/contacts/interfaces/i-contact-relation.d.ts +1 -1
  86. package/dist/src/contacts/interfaces/i-contact-relation.d.ts.map +1 -1
  87. package/dist/src/contacts/interfaces/i-contact.d.ts +1 -1
  88. package/dist/src/contacts/interfaces/i-contact.d.ts.map +1 -1
  89. package/dist/src/index.d.ts +1 -1
  90. package/dist/src/managers/interfaces/i-manager-common.d.ts +3 -3
  91. package/dist/src/managers/interfaces/i-manager-common.d.ts.map +1 -1
  92. package/dist/src/orders/classes/orders-list-filters.d.ts +2 -1
  93. package/dist/src/orders/classes/orders-list-filters.d.ts.map +1 -1
  94. package/dist/src/orders/interfaces/i-order-short-info.d.ts +2 -2
  95. package/dist/src/orders/interfaces/i-order-short-info.d.ts.map +1 -1
  96. package/dist/src/orders/providers/orders-data-provider.d.ts +4 -4
  97. package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
  98. package/dist/src/pagination/filters/pagination-filters-base.d.ts.map +1 -1
  99. package/dist/src/pagination/providers/base-pagination-provider.d.ts +4 -4
  100. package/dist/src/pagination/providers/base-pagination-provider.d.ts.map +1 -1
  101. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts +1 -1
  102. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts.map +1 -1
  103. package/dist/src/references/classes/currency.d.ts +1 -1
  104. package/dist/src/references/classes/currency.d.ts.map +1 -1
  105. package/dist/src/references/classes/product-unit.d.ts +1 -1
  106. package/dist/src/references/classes/product-unit.d.ts.map +1 -1
  107. package/dist/src/references/interfaces/i-channel-primary-interest.d.ts +1 -1
  108. package/dist/src/references/interfaces/i-channel-primary-interest.d.ts.map +1 -1
  109. package/dist/src/references/interfaces/i-city-with-region-and-country.d.ts +1 -1
  110. package/dist/src/references/interfaces/i-city-with-region-and-country.d.ts.map +1 -1
  111. package/dist/src/references/interfaces/i-city.d.ts +1 -1
  112. package/dist/src/references/interfaces/i-city.d.ts.map +1 -1
  113. package/dist/src/references/interfaces/i-contact-position.d.ts +1 -1
  114. package/dist/src/references/interfaces/i-contact-position.d.ts.map +1 -1
  115. package/dist/src/references/interfaces/i-country.d.ts +1 -1
  116. package/dist/src/references/interfaces/i-country.d.ts.map +1 -1
  117. package/dist/src/references/interfaces/i-curated-direction.d.ts +1 -1
  118. package/dist/src/references/interfaces/i-curated-direction.d.ts.map +1 -1
  119. package/dist/src/references/interfaces/i-currency.d.ts +1 -1
  120. package/dist/src/references/interfaces/i-currency.d.ts.map +1 -1
  121. package/dist/src/references/interfaces/i-delivery-type.d.ts +1 -1
  122. package/dist/src/references/interfaces/i-delivery-type.d.ts.map +1 -1
  123. package/dist/src/references/interfaces/i-operator.d.ts +1 -1
  124. package/dist/src/references/interfaces/i-operator.d.ts.map +1 -1
  125. package/dist/src/references/interfaces/i-opf.d.ts +1 -1
  126. package/dist/src/references/interfaces/i-opf.d.ts.map +1 -1
  127. package/dist/src/references/interfaces/i-order-payment-status.d.ts +1 -1
  128. package/dist/src/references/interfaces/i-order-payment-status.d.ts.map +1 -1
  129. package/dist/src/references/interfaces/i-order-status.d.ts +1 -1
  130. package/dist/src/references/interfaces/i-order-status.d.ts.map +1 -1
  131. package/dist/src/references/interfaces/i-partner-group.d.ts +1 -1
  132. package/dist/src/references/interfaces/i-partner-group.d.ts.map +1 -1
  133. package/dist/src/references/interfaces/i-payment-type.d.ts +1 -1
  134. package/dist/src/references/interfaces/i-payment-type.d.ts.map +1 -1
  135. package/dist/src/references/interfaces/i-product-file-type.d.ts +1 -1
  136. package/dist/src/references/interfaces/i-product-file-type.d.ts.map +1 -1
  137. package/dist/src/references/interfaces/i-product-unit.d.ts +1 -1
  138. package/dist/src/references/interfaces/i-product-unit.d.ts.map +1 -1
  139. package/dist/src/references/interfaces/i-region.d.ts +1 -1
  140. package/dist/src/references/interfaces/i-region.d.ts.map +1 -1
  141. package/dist/src/references/interfaces/i-sales-direction.d.ts +1 -1
  142. package/dist/src/references/interfaces/i-sales-direction.d.ts.map +1 -1
  143. package/dist/src/references/interfaces/i-source-primary-interest.d.ts +1 -1
  144. package/dist/src/references/interfaces/i-source-primary-interest.d.ts.map +1 -1
  145. package/dist/src/seo/providers/seo-data-provider.d.ts +1 -1
  146. package/dist/src/seo/providers/seo-data-provider.d.ts.map +1 -1
  147. package/dist/src/suggestion/interfaces/i-address-suggestion.d.ts +2 -2
  148. package/dist/src/suggestion/interfaces/i-address-suggestion.d.ts.map +1 -1
  149. package/dist/src/suggestion/interfaces/i-bank-suggestion.d.ts +1 -1
  150. package/dist/src/suggestion/interfaces/i-bank-suggestion.d.ts.map +1 -1
  151. package/dist/src/suggestion/interfaces/i-organization-suggestion.d.ts +2 -2
  152. package/dist/src/suggestion/interfaces/i-organization-suggestion.d.ts.map +1 -1
  153. package/dist/src/suggestion/providers/data-suggestion-provider.d.ts +5 -3
  154. package/dist/src/suggestion/providers/data-suggestion-provider.d.ts.map +1 -1
  155. package/dist/src/{data-table → table-data}/classes/filter-group.d.ts.map +1 -1
  156. package/dist/src/{data-table → table-data}/classes/filter-item.d.ts +3 -2
  157. package/dist/src/table-data/classes/filter-item.d.ts.map +1 -0
  158. package/dist/src/table-data/classes/index.d.ts +6 -0
  159. package/dist/src/{data-table → table-data}/classes/index.d.ts.map +1 -1
  160. package/dist/src/{data-table/classes/data-table-pagination-request-params.d.ts → table-data/classes/table-data-pagination-request-params.d.ts} +3 -3
  161. package/dist/src/table-data/classes/table-data-pagination-request-params.d.ts.map +1 -0
  162. package/dist/src/{data-table/classes/data-table-pagination.d.ts → table-data/classes/table-data-pagination.d.ts} +4 -4
  163. package/dist/src/{data-table/classes/data-table-pagination.d.ts.map → table-data/classes/table-data-pagination.d.ts.map} +1 -1
  164. package/dist/src/{data-table/classes/data-table-sort-request-params.d.ts → table-data/classes/table-data-sort-request-params.d.ts} +2 -2
  165. package/dist/src/table-data/classes/table-data-sort-request-params.d.ts.map +1 -0
  166. package/dist/src/{data-table → table-data}/enums/filter-op-enum.d.ts.map +1 -1
  167. package/dist/src/table-data/enums/index.d.ts.map +1 -0
  168. package/dist/src/table-data/index.d.ts.map +1 -0
  169. package/dist/src/table-data/interfaces/i-filter-group.d.ts.map +1 -0
  170. package/dist/src/{data-table → table-data}/interfaces/i-filter-item.d.ts +3 -2
  171. package/dist/src/table-data/interfaces/i-filter-item.d.ts.map +1 -0
  172. package/dist/src/{data-table → table-data}/interfaces/i-pagination-request-params.d.ts.map +1 -1
  173. package/dist/src/{data-table → table-data}/interfaces/i-pagination.d.ts.map +1 -1
  174. package/dist/src/{data-table → table-data}/interfaces/i-sort-request-params.d.ts.map +1 -1
  175. package/dist/src/{data-table → table-data}/interfaces/index.d.ts.map +1 -1
  176. package/dist/src/user/classes/user-short-info.d.ts +2 -2
  177. package/dist/src/user/classes/user-short-info.d.ts.map +1 -1
  178. package/package.json +1 -1
  179. package/dist/src/data-table/classes/data-table-pagination-request-params.d.ts.map +0 -1
  180. package/dist/src/data-table/classes/data-table-sort-request-params.d.ts.map +0 -1
  181. package/dist/src/data-table/classes/filter-item.d.ts.map +0 -1
  182. package/dist/src/data-table/classes/index.d.ts +0 -6
  183. package/dist/src/data-table/enums/index.d.ts.map +0 -1
  184. package/dist/src/data-table/index.d.ts.map +0 -1
  185. package/dist/src/data-table/interfaces/i-filter-group.d.ts.map +0 -1
  186. package/dist/src/data-table/interfaces/i-filter-item.d.ts.map +0 -1
  187. /package/dist/src/{data-table → table-data}/classes/filter-group.d.ts +0 -0
  188. /package/dist/src/{data-table → table-data}/enums/filter-op-enum.d.ts +0 -0
  189. /package/dist/src/{data-table → table-data}/enums/index.d.ts +0 -0
  190. /package/dist/src/{data-table → table-data}/index.d.ts +0 -0
  191. /package/dist/src/{data-table → table-data}/interfaces/i-filter-group.d.ts +0 -0
  192. /package/dist/src/{data-table → table-data}/interfaces/i-pagination-request-params.d.ts +0 -0
  193. /package/dist/src/{data-table → table-data}/interfaces/i-pagination.d.ts +0 -0
  194. /package/dist/src/{data-table → table-data}/interfaces/i-sort-request-params.d.ts +0 -0
  195. /package/dist/src/{data-table → table-data}/interfaces/index.d.ts +0 -0
@@ -1,13 +1,13 @@
1
- var dr = Object.defineProperty;
2
- var xr = (n, r, e) => r in n ? dr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => xr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as ir } from "jwt-decode";
5
- import { merge as ce, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isArray as H, every as ar, split as Or, isString as v, constant as _r, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as Ue, map as he, forEach as Hr, isDate as ae, omitBy as or, isObject as cr } from "lodash-es";
6
- import { objectToCamel as He, objectToSnake as Je } from "ts-case-convert";
1
+ var Or = Object.defineProperty;
2
+ var dr = (n, r, e) => r in n ? Or(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => dr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as or } from "jwt-decode";
5
+ import { merge as le, isNil as T, isEmpty as X, noop as w, mapValues as cr, isArray as H, every as _r, split as qr, isString as v, constant as ar, toUpper as Nr, cloneDeep as Ur, toLower as Hr, isFunction as Ue, map as ge, forEach as Fr, isDate as de, isObject as He, omitBy as lr } from "lodash-es";
6
+ import { objectToCamel as Fe, objectToSnake as Ee } from "ts-case-convert";
7
7
  import { defineStore as z } from "pinia";
8
- import { ref as y, markRaw as Fr, computed as A } from "vue";
9
- import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Mr, addBusinessDays as jr, endOfTomorrow as Gr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr } from "date-fns";
10
- import Kr, { CanceledError as Qr } from "axios";
8
+ import { ref as y, markRaw as Mr, computed as A } from "vue";
9
+ import { isAfter as Ve, parseISO as C, startOfToday as _e, format as O, addBusinessDays as jr, endOfTomorrow as Gr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr, addSeconds as Kr } from "date-fns";
10
+ import Qr, { CanceledError as Yr } from "axios";
11
11
  class F {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -99,7 +99,7 @@ class F {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- ce(this, r);
102
+ le(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class F {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = ir(r), s = new F(He(e));
110
+ const e = or(r), s = new F(Fe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class jt extends F {
114
+ class zt extends F {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class jt extends F {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- ce(this, e);
146
+ le(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,10 +151,10 @@ class jt extends F {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new F(He(ir(e)));
154
+ return new F(Fe(or(e)));
155
155
  }
156
156
  }
157
- class Yr {
157
+ class Xr {
158
158
  /**
159
159
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
160
160
  *
@@ -176,7 +176,7 @@ class Yr {
176
176
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
177
177
  }
178
178
  }
179
- class Xr {
179
+ class Zr {
180
180
  /**
181
181
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
182
182
  *
@@ -198,7 +198,7 @@ class Xr {
198
198
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
199
199
  }
200
200
  }
201
- class Zr {
201
+ class et {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -243,7 +243,7 @@ class Zr {
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class et {
246
+ class rt {
247
247
  /**
248
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
249
249
  *
@@ -282,7 +282,7 @@ class et {
282
282
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
283
283
  }
284
284
  }
285
- class rt {
285
+ class tt {
286
286
  /**
287
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
288
288
  *
@@ -326,10 +326,10 @@ class rt {
326
326
  */
327
327
  t(this, "dateFormats");
328
328
  var e, s, i;
329
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Yr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zr({
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Zr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Xr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new et({
330
330
  environment: this.environment,
331
331
  ...r == null ? void 0 : r.sentry
332
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new et(r.websocket) : void 0, this.dateFormats = {
332
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new rt(r.websocket) : void 0, this.dateFormats = {
333
333
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
334
334
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
335
335
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -337,7 +337,7 @@ class rt {
337
337
  }
338
338
  }
339
339
  const L = z("common.config", () => {
340
- const n = y(new rt());
340
+ const n = y(new tt());
341
341
  return {
342
342
  /**
343
343
  * Конфигурационные данные приложения.
@@ -355,7 +355,7 @@ const L = z("common.config", () => {
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (s) => {
358
- n.value = ce(n.value, s);
358
+ n.value = le(n.value, s);
359
359
  }
360
360
  };
361
361
  });
@@ -378,8 +378,8 @@ class we {
378
378
  if (e)
379
379
  try {
380
380
  const s = JSON.parse(e);
381
- if (!s.availableFor || Ee(C(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
382
- if (T(s.data) || Y(s.data))
381
+ if (!s.availableFor || Ve(C(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
382
+ if (T(s.data) || X(s.data))
383
383
  throw new Error("Data is empty");
384
384
  return s.data;
385
385
  }
@@ -401,7 +401,7 @@ class we {
401
401
  static saveActualDataToStorage(r, e, s) {
402
402
  if (this.isLocalStorageAvailable())
403
403
  try {
404
- if (T(e) || Y(e))
404
+ if (T(e) || X(e))
405
405
  throw new Error("Data is empty");
406
406
  const i = JSON.stringify({
407
407
  availableFor: s,
@@ -452,7 +452,7 @@ class we {
452
452
  const i = localStorage.getItem(s);
453
453
  if (i) {
454
454
  const o = JSON.parse(i);
455
- o.availableFor && !Ee(C(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !Ve(C(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -468,7 +468,7 @@ class we {
468
468
  }
469
469
  }
470
470
  }
471
- function Ve(n) {
471
+ function Ke(n) {
472
472
  try {
473
473
  const r = F.getJwtPayload(n);
474
474
  return new Date(r.exp * 1e3);
@@ -489,11 +489,11 @@ const E = z("common.auth_state_private", () => {
489
489
  const c = (u = L().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
- ), r = y(void 0), e = y(void 0), s = Fr(/* @__PURE__ */ new Map());
492
+ ), r = y(void 0), e = y(void 0), s = Mr(/* @__PURE__ */ new Map());
493
493
  function i() {
494
494
  e.value = void 0, T(n.value) || n.value.then((o) => {
495
495
  const c = F.getJwtPayload(o);
496
- e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
496
+ e.value = c.exp * 1e3 > Date.now() ? cr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
497
  }).catch(w);
498
498
  }
499
499
  return {
@@ -524,7 +524,7 @@ const E = z("common.auth_state_private", () => {
524
524
  if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
527
+ o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
528
528
  }).catch(w);
529
529
  }
530
530
  return o.jwtToken;
@@ -534,7 +534,7 @@ const E = z("common.auth_state_private", () => {
534
534
  }
535
535
  function e(o) {
536
536
  const c = E();
537
- c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
537
+ c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
540
  const o = E();
@@ -544,23 +544,23 @@ const E = z("common.auth_state_private", () => {
544
544
  const c = E();
545
545
  !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((m) => {
546
546
  const f = F.getJwtPayload(m);
547
- c.userPermissions = f.exp * 1e3 > Date.now() ? nr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
547
+ c.userPermissions = f.exp * 1e3 > Date.now() ? cr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
548
  }).catch(w);
549
549
  const u = H(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
- const h = A(() => {
552
+ const p = A(() => {
553
553
  const m = (f) => {
554
554
  var J;
555
- const D = Or(f, ".");
555
+ const D = qr(f, ".");
556
556
  if (D.length < 2)
557
557
  return !1;
558
- const [te, se] = D, W = (J = E().userPermissions) == null ? void 0 : J[te];
559
- return H(W) && W.includes(se);
558
+ const [ie, ne] = D, W = (J = E().userPermissions) == null ? void 0 : J[ie];
559
+ return H(W) && W.includes(ne);
560
560
  };
561
- return H(o) ? ar(o, (f) => m(f)) : m(o);
561
+ return H(o) ? _r(o, (f) => m(f)) : m(o);
562
562
  });
563
- return c.userPermissionsComputedRefs.set(u, h), h;
563
+ return c.userPermissionsComputedRefs.set(u, p), p;
564
564
  }
565
565
  return {
566
566
  /**
@@ -591,7 +591,7 @@ const E = z("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class ee {
594
+ class re {
595
595
  /**
596
596
  * Инициализирует экземпляр класса {@link Identity}.
597
597
  *
@@ -616,7 +616,7 @@ class ee {
616
616
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
617
617
  }
618
618
  }
619
- class k extends ee {
619
+ class k extends re {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,162 +631,7 @@ class k extends ee {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class le extends k {
635
- /**
636
- * Инициализирует экземпляр класса {@link NamedIdentity}.
637
- *
638
- * @param data Данные для первоначальной инициализации.
639
- */
640
- constructor(e) {
641
- super(e);
642
- /**
643
- * @inheritDoc
644
- */
645
- t(this, "code", "");
646
- this.code = (e == null ? void 0 : e.code) ?? "";
647
- }
648
- }
649
- class R extends k {
650
- /**
651
- * Инициализирует экземпляр класса {@link Reference}.
652
- *
653
- * @param data Данные для первоначальной инициализации.
654
- */
655
- constructor(e) {
656
- super(e);
657
- /**
658
- * Краткое название.
659
- */
660
- t(this, "slug");
661
- /**
662
- * Описание.
663
- */
664
- t(this, "description");
665
- this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
666
- }
667
- }
668
- class lr extends k {
669
- /**
670
- * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
671
- *
672
- * @param data Данные для первоначальной инициализации.
673
- */
674
- constructor(e) {
675
- super(e);
676
- /**
677
- * Дата и время последнего изменения.
678
- */
679
- t(this, "updatedAt");
680
- this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
681
- }
682
- }
683
- class tt extends lr {
684
- /**
685
- * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
686
- *
687
- * @param data Данные для первоначальной инициализации.
688
- */
689
- constructor(e) {
690
- super(e);
691
- /**
692
- * Дата и время последнего удаления.
693
- */
694
- t(this, "deletedAt");
695
- this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
696
- }
697
- }
698
- class st {
699
- /**
700
- * Инициализирует экземпляр класса {@link Image}.
701
- *
702
- * @param data Данные для первоначальной инициализации.
703
- * @param mediaServer URL адрес медиа сервера.
704
- */
705
- constructor(r, e) {
706
- /**
707
- * Путь к основному изображению.
708
- */
709
- t(this, "image");
710
- /**
711
- * Путь к предпросмотру изображения.
712
- */
713
- t(this, "preview");
714
- /**
715
- * Признак того, что изображение является основным.
716
- */
717
- t(this, "isDefault");
718
- this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
- }
720
- }
721
- class ur extends le {
722
- /**
723
- * Инициализирует экземпляр класса {@link CatalogableItem}.
724
- *
725
- * @param data Данные для первоначальной инициализации.
726
- */
727
- constructor(e) {
728
- super(e);
729
- /**
730
- * Символьное обозначение.
731
- */
732
- t(this, "slug");
733
- /**
734
- * Тип элемента.
735
- */
736
- t(this, "type");
737
- this.slug = (e == null ? void 0 : e.slug) ?? "";
738
- }
739
- }
740
- class it extends ur {
741
- /**
742
- * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
743
- *
744
- * @param data Данные для первоначальной инициализации.
745
- */
746
- constructor(e) {
747
- super(e);
748
- /**
749
- * Признак того, что категория скрыта.
750
- */
751
- t(this, "isHidden");
752
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
753
- }
754
- }
755
- class _e extends ur {
756
- /**
757
- * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
758
- *
759
- * @param data Данные для первоначальной инициализации.
760
- */
761
- constructor(e) {
762
- super(e);
763
- /**
764
- * Признак того, что категория является основной для продукта.
765
- */
766
- t(this, "isPrimary");
767
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
768
- }
769
- }
770
- class Fe {
771
- /**
772
- * Инициализирует экземпляр указанного класса.
773
- *
774
- * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
775
- */
776
- static simpleInstanceInitializer(r) {
777
- return new r();
778
- }
779
- /**
780
- * Инициализирует экземпляр указанного класса.
781
- *
782
- * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
783
- * @param data Начальные данные для инициализации (параметры конструктора).
784
- */
785
- static instanceInitializer(r, e) {
786
- return new r(e);
787
- }
788
- }
789
- class x extends k {
634
+ class d extends k {
790
635
  /**
791
636
  * Инициализирует экземпляр класса {@link UserShortInfo}.
792
637
  *
@@ -801,7 +646,7 @@ class x extends k {
801
646
  this.type = e == null ? void 0 : e.type;
802
647
  }
803
648
  }
804
- class nt extends k {
649
+ class st extends k {
805
650
  /**
806
651
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
807
652
  *
@@ -837,10 +682,25 @@ class nt extends k {
837
682
  * Дата и время удаления.
838
683
  */
839
684
  t(this, "deletedAt");
840
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = v(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new x(e == null ? void 0 : e.owner), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
685
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = v(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new d(e == null ? void 0 : e.owner), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
686
+ }
687
+ }
688
+ class ur extends k {
689
+ /**
690
+ * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
691
+ *
692
+ * @param data Данные для первоначальной инициализации.
693
+ */
694
+ constructor(e) {
695
+ super(e);
696
+ /**
697
+ * Дата и время последнего изменения.
698
+ */
699
+ t(this, "updatedAt");
700
+ this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
841
701
  }
842
702
  }
843
- class K extends lr {
703
+ class K extends ur {
844
704
  /**
845
705
  * Инициализирует экземпляр класса {@link PriceTemplate}.
846
706
  *
@@ -860,12 +720,31 @@ class K extends lr {
860
720
  }
861
721
  }
862
722
  var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
723
+ class R extends k {
724
+ /**
725
+ * Инициализирует экземпляр класса {@link Reference}.
726
+ *
727
+ * @param data Данные для первоначальной инициализации.
728
+ */
729
+ constructor(e) {
730
+ super(e);
731
+ /**
732
+ * Краткое название.
733
+ */
734
+ t(this, "slug");
735
+ /**
736
+ * Описание.
737
+ */
738
+ t(this, "description");
739
+ this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
740
+ }
741
+ }
863
742
  class Pe extends R {
864
743
  /**
865
744
  * Возвращает значение справочника коэффициента розничной цены.
866
745
  */
867
746
  static getRetailPriceCoefficient() {
868
- return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: _r(!0) };
747
+ return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
869
748
  }
870
749
  }
871
750
  class Me {
@@ -916,9 +795,9 @@ class hr {
916
795
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
917
796
  }
918
797
  }
919
- class N extends R {
798
+ class U extends R {
920
799
  }
921
- class ge extends R {
800
+ class me extends R {
922
801
  /**
923
802
  * Инициализирует экземпляр класса {@link Warehouse}.
924
803
  *
@@ -947,10 +826,10 @@ class ge extends R {
947
826
  * Координаты склада.
948
827
  */
949
828
  t(this, "coordinates");
950
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
829
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new U(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
951
830
  }
952
831
  }
953
- class ot {
832
+ class it {
954
833
  /**
955
834
  * Инициализирует экземпляр класса {@link StockCount}.
956
835
  *
@@ -965,10 +844,10 @@ class ot {
965
844
  * Количество остатков товара на складе.
966
845
  */
967
846
  t(this, "count");
968
- this.warehouse = new ge(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
847
+ this.warehouse = new me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
969
848
  }
970
849
  }
971
- class a extends k {
850
+ class _ extends k {
972
851
  /**
973
852
  * Инициализирует экземпляр класса {@link Currency}.
974
853
  *
@@ -995,7 +874,7 @@ class a extends k {
995
874
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
996
875
  }
997
876
  }
998
- class Ke extends k {
877
+ class Qe extends k {
999
878
  /**
1000
879
  * Инициализирует экземпляр класса {@link ProductUnit}.
1001
880
  *
@@ -1022,49 +901,136 @@ class Ke extends k {
1022
901
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1023
902
  }
1024
903
  }
1025
- class I extends it {
904
+ class ue extends k {
1026
905
  /**
1027
- * Инициализирует экземпляр класса {@link Product}.
906
+ * Инициализирует экземпляр класса {@link NamedIdentity}.
1028
907
  *
1029
908
  * @param data Данные для первоначальной инициализации.
1030
909
  */
1031
910
  constructor(e) {
1032
- var i, o, c, u;
1033
911
  super(e);
1034
912
  /**
1035
- * Артикул производителя/поставщика.
1036
- */
1037
- t(this, "supplierSku");
1038
- /**
1039
- * Единица измерения.
913
+ * @inheritDoc
1040
914
  */
1041
- t(this, "unit");
915
+ t(this, "code", "");
916
+ this.code = (e == null ? void 0 : e.code) ?? "";
917
+ }
918
+ }
919
+ class gr extends ue {
920
+ /**
921
+ * Инициализирует экземпляр класса {@link CatalogableItem}.
922
+ *
923
+ * @param data Данные для первоначальной инициализации.
924
+ */
925
+ constructor(e) {
926
+ super(e);
1042
927
  /**
1043
- * Норма упаковки.
928
+ * Символьное обозначение.
1044
929
  */
1045
- t(this, "pack");
930
+ t(this, "slug");
1046
931
  /**
1047
- * Минимальное количество товара для заказа.
932
+ * Тип элемента.
1048
933
  */
1049
- t(this, "minCount");
934
+ t(this, "type");
935
+ this.slug = (e == null ? void 0 : e.slug) ?? "";
936
+ }
937
+ }
938
+ class nt extends gr {
939
+ /**
940
+ * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
941
+ *
942
+ * @param data Данные для первоначальной инициализации.
943
+ */
944
+ constructor(e) {
945
+ super(e);
1050
946
  /**
1051
- * Валюта товара или услуги.
947
+ * Признак того, что категория скрыта.
1052
948
  */
1053
- t(this, "currency");
949
+ t(this, "isHidden");
950
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
951
+ }
952
+ }
953
+ class ot {
954
+ /**
955
+ * Инициализирует экземпляр класса {@link Image}.
956
+ *
957
+ * @param data Данные для первоначальной инициализации.
958
+ * @param mediaServer URL адрес медиа сервера.
959
+ */
960
+ constructor(r, e) {
1054
961
  /**
1055
- * Стоимость товара или услуги.
962
+ * Путь к основному изображению.
1056
963
  */
1057
- t(this, "cost");
964
+ t(this, "image");
1058
965
  /**
1059
- * Стоимость продукта в рублях.
966
+ * Путь к предпросмотру изображения.
1060
967
  */
1061
- t(this, "costRub");
968
+ t(this, "preview");
1062
969
  /**
1063
- * Дата установки цены.
970
+ * Признак того, что изображение является основным.
1064
971
  */
1065
- t(this, "costDate");
1066
- /**
1067
- * Признак товара "Под заказ".
972
+ t(this, "isDefault");
973
+ this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
974
+ }
975
+ }
976
+ class qe extends gr {
977
+ /**
978
+ * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
979
+ *
980
+ * @param data Данные для первоначальной инициализации.
981
+ */
982
+ constructor(e) {
983
+ super(e);
984
+ /**
985
+ * Признак того, что категория является основной для продукта.
986
+ */
987
+ t(this, "isPrimary");
988
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
989
+ }
990
+ }
991
+ class I extends nt {
992
+ /**
993
+ * Инициализирует экземпляр класса {@link Product}.
994
+ *
995
+ * @param data Данные для первоначальной инициализации.
996
+ */
997
+ constructor(e) {
998
+ var i, o, c, u;
999
+ super(e);
1000
+ /**
1001
+ * Артикул производителя/поставщика.
1002
+ */
1003
+ t(this, "supplierSku");
1004
+ /**
1005
+ * Единица измерения.
1006
+ */
1007
+ t(this, "unit");
1008
+ /**
1009
+ * Норма упаковки.
1010
+ */
1011
+ t(this, "pack");
1012
+ /**
1013
+ * Минимальное количество товара для заказа.
1014
+ */
1015
+ t(this, "minCount");
1016
+ /**
1017
+ * Валюта товара или услуги.
1018
+ */
1019
+ t(this, "currency");
1020
+ /**
1021
+ * Стоимость товара или услуги.
1022
+ */
1023
+ t(this, "cost");
1024
+ /**
1025
+ * Стоимость продукта в рублях.
1026
+ */
1027
+ t(this, "costRub");
1028
+ /**
1029
+ * Дата установки цены.
1030
+ */
1031
+ t(this, "costDate");
1032
+ /**
1033
+ * Признак товара "Под заказ".
1068
1034
  */
1069
1035
  t(this, "onOrder");
1070
1036
  /**
@@ -1099,9 +1065,9 @@ class I extends it {
1099
1065
  * Список коэффициентов цен на продукт.
1100
1066
  */
1101
1067
  t(this, "priceCoefficients");
1102
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new a(e.currency) : new a(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new ot(h))) ?? [], this.type = "product";
1103
- const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1104
- s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, L().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1068
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new _(e.currency) : new _(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new it(p))) ?? [], this.type = "product";
1069
+ const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1070
+ s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new qe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ot(p, L().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1105
1071
  }
1106
1072
  /**
1107
1073
  * Возвращает признак, что это измеряемый товар.
@@ -1159,10 +1125,10 @@ class M extends I {
1159
1125
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1160
1126
  */
1161
1127
  t(this, "isFavorite");
1162
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1128
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new st(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1163
1129
  }
1164
1130
  }
1165
- class me extends _e {
1131
+ class te extends qe {
1166
1132
  /**
1167
1133
  * Инициализирует экземпляр класса {@link BaseCategory}.
1168
1134
  *
@@ -1186,10 +1152,10 @@ class me extends _e {
1186
1152
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
1187
1153
  */
1188
1154
  t(this, "currencyRates");
1189
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [qr(s), i])) : void 0;
1155
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Nr(s), i])) : void 0;
1190
1156
  }
1191
1157
  }
1192
- class gr extends ee {
1158
+ class mr extends re {
1193
1159
  /**
1194
1160
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1195
1161
  *
@@ -1245,10 +1211,10 @@ class gr extends ee {
1245
1211
  * @inheritDoc
1246
1212
  */
1247
1213
  t(this, "creatorUser");
1248
- this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.currency = e.currency ? new a(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new x(e.creatorUser);
1214
+ this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new te(), this.currency = e.currency ? new _(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new d(e.creatorUser);
1249
1215
  }
1250
1216
  }
1251
- let ct = class extends gr {
1217
+ let ct = class extends mr {
1252
1218
  /**
1253
1219
  * Инициализирует экземпляр класса {@link OrderItem}.
1254
1220
  *
@@ -1292,7 +1258,7 @@ let ct = class extends gr {
1292
1258
  * @inheritDoc
1293
1259
  */
1294
1260
  t(this, "currency");
1295
- 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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new a(e.currency);
1261
+ 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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new _(e.currency);
1296
1262
  }
1297
1263
  };
1298
1264
  class ye {
@@ -1317,6 +1283,25 @@ class ye {
1317
1283
  this.items = r.items.map((e) => new ct(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1318
1284
  }
1319
1285
  }
1286
+ class Ge {
1287
+ /**
1288
+ * Инициализирует экземпляр указанного класса.
1289
+ *
1290
+ * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
1291
+ */
1292
+ static simpleInstanceInitializer(r) {
1293
+ return new r();
1294
+ }
1295
+ /**
1296
+ * Инициализирует экземпляр указанного класса.
1297
+ *
1298
+ * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
1299
+ * @param data Начальные данные для инициализации (параметры конструктора).
1300
+ */
1301
+ static instanceInitializer(r, e) {
1302
+ return new r(e);
1303
+ }
1304
+ }
1320
1305
  const P = class P {
1321
1306
  /**
1322
1307
  * Инициализирует экземпляр класса {@link HttpRequester}.
@@ -1371,7 +1356,7 @@ const P = class P {
1371
1356
  * @param request Данные запроса.
1372
1357
  */
1373
1358
  // eslint-disable-next-line class-methods-use-this
1374
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Je(r.params)), ["put", "patch", "post"].includes(Ur(r.method)) && r.data && (r.data = Je(r.data))), r));
1359
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Hr(r.method)) && r.data && (r.data = Ee(r.data))), r));
1375
1360
  /**
1376
1361
  * Перехватчик ошибок ответов на запрос.
1377
1362
  *
@@ -1391,7 +1376,7 @@ const P = class P {
1391
1376
  t(this, "canceledResponseInterceptor", (r) => {
1392
1377
  const e = r.rawError ?? r;
1393
1378
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1394
- throw new Qr("Request canceled");
1379
+ throw new Yr("Request canceled");
1395
1380
  return Promise.reject(r);
1396
1381
  });
1397
1382
  /**
@@ -1407,8 +1392,8 @@ const P = class P {
1407
1392
  * @param response Данные ответа на запрос.
1408
1393
  */
1409
1394
  // eslint-disable-next-line class-methods-use-this
1410
- t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = He(r.data)), r));
1411
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Kr.create({
1395
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1396
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Qr.create({
1412
1397
  headers: {
1413
1398
  Accept: "application/json",
1414
1399
  "Content-Type": "application/json"
@@ -1472,7 +1457,7 @@ const P = class P {
1472
1457
  * @param type Тип данных, которыми оперирует метод.
1473
1458
  */
1474
1459
  static getInstance(r) {
1475
- return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = Fe.simpleInstanceInitializer(r)), P.instances[r.name];
1460
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = Ge.simpleInstanceInitializer(r)), P.instances[r.name];
1476
1461
  }
1477
1462
  /**
1478
1463
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1585,8 +1570,8 @@ t(P, "requestHooks", []), /**
1585
1570
  * Список зарегистрированных хуков для ответов.
1586
1571
  */
1587
1572
  t(P, "responseHooks", []);
1588
- let p = P;
1589
- class Bt extends p {
1573
+ let h = P;
1574
+ class Jt extends h {
1590
1575
  /**
1591
1576
  * Возвращает содержимое корзины указанного клиента.
1592
1577
  *
@@ -1700,8 +1685,8 @@ class Bt extends p {
1700
1685
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1701
1686
  }
1702
1687
  }
1703
- var lt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(lt || {}), ut = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(ut || {});
1704
- class _ extends me {
1688
+ var lt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(lt || {}), ut = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(ut || {}), pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(pt || {});
1689
+ class a extends te {
1705
1690
  /**
1706
1691
  * Инициализирует экземпляр класса {@link Category}.
1707
1692
  *
@@ -1718,10 +1703,10 @@ class _ extends me {
1718
1703
  * Список продуктов категории.
1719
1704
  */
1720
1705
  t(this, "products");
1721
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1706
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new a(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1722
1707
  }
1723
1708
  }
1724
- class mr {
1709
+ class fr {
1725
1710
  /**
1726
1711
  * Инициализирует экземпляр класса {@link ContactLinks}.
1727
1712
  *
@@ -1739,9 +1724,9 @@ class mr {
1739
1724
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1740
1725
  }
1741
1726
  }
1742
- class O extends R {
1727
+ class q extends R {
1743
1728
  }
1744
- class Ge extends k {
1729
+ class Be extends k {
1745
1730
  /**
1746
1731
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1747
1732
  *
@@ -1769,12 +1754,12 @@ class Ge extends k {
1769
1754
  * @inheritDoc
1770
1755
  */
1771
1756
  t(this, "isRegionalDirector");
1772
- this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1757
+ this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new fr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1773
1758
  }
1774
1759
  }
1775
- class Be extends R {
1760
+ class ze extends R {
1776
1761
  }
1777
- class fr extends k {
1762
+ class yr extends k {
1778
1763
  /**
1779
1764
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1780
1765
  *
@@ -1797,7 +1782,7 @@ class fr extends k {
1797
1782
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1798
1783
  }
1799
1784
  }
1800
- class fe extends Ge {
1785
+ class fe extends Be {
1801
1786
  /**
1802
1787
  * Инициализирует экземпляр класса {@link Manager}.
1803
1788
  *
@@ -1834,10 +1819,10 @@ class fe extends Ge {
1834
1819
  * Список направлений кураторства.
1835
1820
  */
1836
1821
  t(this, "curatedDirections");
1837
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new fr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
1822
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new yr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new ze(i))) ?? [];
1838
1823
  }
1839
1824
  }
1840
- class pt extends me {
1825
+ class ht extends te {
1841
1826
  /**
1842
1827
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1843
1828
  *
@@ -1868,7 +1853,7 @@ class pt extends me {
1868
1853
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new fe(e.manager) : void 0;
1869
1854
  }
1870
1855
  }
1871
- class ve extends pt {
1856
+ class ve extends ht {
1872
1857
  /**
1873
1858
  * Инициализирует экземпляр класса {@link ClientCategory}.
1874
1859
  *
@@ -1888,7 +1873,7 @@ class ve extends pt {
1888
1873
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ve(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new M(o));
1889
1874
  }
1890
1875
  }
1891
- class yr {
1876
+ class wr {
1892
1877
  /**
1893
1878
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1894
1879
  *
@@ -1906,7 +1891,7 @@ class yr {
1906
1891
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1907
1892
  }
1908
1893
  }
1909
- class Se extends yr {
1894
+ class Se extends wr {
1910
1895
  /**
1911
1896
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1912
1897
  *
@@ -1918,10 +1903,10 @@ class Se extends yr {
1918
1903
  * Базовые данные о продукте.
1919
1904
  */
1920
1905
  t(this, "productCategory");
1921
- this.productCategory = new me(e == null ? void 0 : e.productCategory);
1906
+ this.productCategory = new te(e == null ? void 0 : e.productCategory);
1922
1907
  }
1923
1908
  }
1924
- class ze extends k {
1909
+ class We extends k {
1925
1910
  /**
1926
1911
  * Инициализирует экземпляр класса {@link Curator}.
1927
1912
  *
@@ -1941,12 +1926,12 @@ class ze extends k {
1941
1926
  * @inheritDoc
1942
1927
  */
1943
1928
  t(this, "curatedDirection");
1944
- this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1929
+ this.photo = e.photo, this.contacts = new fr(e.contacts), this.curatedDirection = new ze(e.curatedDirection);
1945
1930
  }
1946
1931
  }
1947
- class X extends R {
1932
+ class Z extends R {
1948
1933
  }
1949
- class ue extends R {
1934
+ class pe extends R {
1950
1935
  /**
1951
1936
  * Инициализирует экземпляр класса {@link Region}.
1952
1937
  *
@@ -1957,8 +1942,8 @@ class ue extends R {
1957
1942
  /**
1958
1943
  * Данные о стране, в которой расположен регион.
1959
1944
  */
1960
- t(this, "country", new X());
1961
- e && (this.country = new X(e.country));
1945
+ t(this, "country", new Z());
1946
+ e && (this.country = new Z(e.country));
1962
1947
  }
1963
1948
  }
1964
1949
  class Ae extends R {
@@ -1972,11 +1957,11 @@ class Ae extends R {
1972
1957
  /**
1973
1958
  * Данные о регионе, в котором расположен город.
1974
1959
  */
1975
- t(this, "region", new ue());
1976
- e && (this.region = new ue(e.region));
1960
+ t(this, "region", new pe());
1961
+ e && (this.region = new pe(e.region));
1977
1962
  }
1978
1963
  }
1979
- class wr extends k {
1964
+ class vr extends k {
1980
1965
  /**
1981
1966
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1982
1967
  *
@@ -2012,10 +1997,10 @@ class wr extends k {
2012
1997
  * Признак активности учетной записи пользователя.
2013
1998
  */
2014
1999
  t(this, "isActive");
2015
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : void 0, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2000
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : void 0, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2016
2001
  }
2017
2002
  }
2018
- class re extends wr {
2003
+ class se extends vr {
2019
2004
  /**
2020
2005
  * Инициализирует экземпляр класса {@link Client}.
2021
2006
  *
@@ -2061,10 +2046,10 @@ class re extends wr {
2061
2046
  * @inheritDoc
2062
2047
  */
2063
2048
  t(this, "curators");
2064
- this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new ze(o))) ?? void 0;
2049
+ this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Be(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new We(o))) ?? void 0;
2065
2050
  }
2066
2051
  }
2067
- class ie extends ee {
2052
+ class oe extends re {
2068
2053
  /**
2069
2054
  * Инициализирует новый экземпляр класса.
2070
2055
  *
@@ -2088,10 +2073,10 @@ class ie extends ee {
2088
2073
  * Данные шаблона прайс-листа.
2089
2074
  */
2090
2075
  t(this, "priceTemplate");
2091
- this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new re(e == null ? void 0 : e.client), this.priceTemplate = new K(e == null ? void 0 : e.priceTemplate);
2076
+ this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new K(e == null ? void 0 : e.priceTemplate);
2092
2077
  }
2093
2078
  }
2094
- class ke extends yr {
2079
+ class ke extends wr {
2095
2080
  /**
2096
2081
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2097
2082
  *
@@ -2106,9 +2091,9 @@ class ke extends yr {
2106
2091
  this.product = new I(e == null ? void 0 : e.product);
2107
2092
  }
2108
2093
  }
2109
- class vr extends R {
2094
+ class Cr extends R {
2110
2095
  }
2111
- class ne extends k {
2096
+ class Q extends k {
2112
2097
  /**
2113
2098
  * Инициализирует экземпляр класса {@link Property}.
2114
2099
  *
@@ -2128,7 +2113,11 @@ class ne extends k {
2128
2113
  * Дополнительные метаданные свойства.
2129
2114
  */
2130
2115
  t(this, "metadata");
2131
- this.type = new vr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2116
+ /**
2117
+ * Признак того, что по свойству может производиться фильтрация в каталоге.
2118
+ */
2119
+ t(this, "isFilterable");
2120
+ this.type = new Cr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2132
2121
  }
2133
2122
  }
2134
2123
  class V {
@@ -2147,10 +2136,10 @@ class V {
2147
2136
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2148
2137
  */
2149
2138
  t(this, "value");
2150
- this.property = new ne(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2139
+ this.property = new Q(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2151
2140
  }
2152
2141
  }
2153
- class S {
2142
+ class $ {
2154
2143
  /**
2155
2144
  * Инициализирует экземпляр класса {@link DatePeriod}.
2156
2145
  *
@@ -2168,7 +2157,7 @@ class S {
2168
2157
  this.from = v(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = v(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
2169
2158
  }
2170
2159
  }
2171
- class zt {
2160
+ class Et {
2172
2161
  /**
2173
2162
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2174
2163
  *
@@ -2190,12 +2179,12 @@ class zt {
2190
2179
  /**
2191
2180
  * Период создания.
2192
2181
  */
2193
- t(this, "createdAt", new S());
2182
+ t(this, "createdAt", new $());
2194
2183
  /**
2195
2184
  * Период изменения.
2196
2185
  */
2197
- t(this, "updatedAt", new S());
2198
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new S(r == null ? void 0 : r.createdAt), this.updatedAt = new S(r == null ? void 0 : r.updatedAt);
2186
+ t(this, "updatedAt", new $());
2187
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new $(r == null ? void 0 : r.createdAt), this.updatedAt = new $(r == null ? void 0 : r.updatedAt);
2199
2188
  }
2200
2189
  /**
2201
2190
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2232,7 +2221,7 @@ class zt {
2232
2221
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2233
2222
  }
2234
2223
  }
2235
- class oe extends k {
2224
+ class ce extends k {
2236
2225
  /**
2237
2226
  * Инициализирует экземпляр класса {@link PricingRole}.
2238
2227
  *
@@ -2267,7 +2256,7 @@ class oe extends k {
2267
2256
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2268
2257
  }
2269
2258
  }
2270
- class Qe {
2259
+ class Ye {
2271
2260
  /**
2272
2261
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2273
2262
  *
@@ -2286,10 +2275,65 @@ class Qe {
2286
2275
  * Минимальный коэффициент цены.
2287
2276
  */
2288
2277
  t(this, "minCoefficient");
2289
- this.role = new oe(r == null ? void 0 : r.role), this.category = new me(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2278
+ this.role = new ce(r == null ? void 0 : r.role), this.category = new te(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2279
+ }
2280
+ }
2281
+ class gt {
2282
+ /**
2283
+ * Инициализирует экземпляр класса {@link FilterSettings}.
2284
+ *
2285
+ * Значения по умолчанию заданы намеренно: API не возвращает поля, значения которых совпадают
2286
+ * с настройками по умолчанию, поэтому отсутствующее поле означает значение по умолчанию.
2287
+ *
2288
+ * @param data Данные для первоначальной инициализации.
2289
+ */
2290
+ constructor(r) {
2291
+ /**
2292
+ * @inheritDoc
2293
+ */
2294
+ t(this, "isFake");
2295
+ /**
2296
+ * @inheritDoc
2297
+ */
2298
+ t(this, "isHidden");
2299
+ /**
2300
+ * @inheritDoc
2301
+ */
2302
+ t(this, "isMultiple");
2303
+ /**
2304
+ * @inheritDoc
2305
+ */
2306
+ t(this, "type");
2307
+ /**
2308
+ * @inheritDoc
2309
+ */
2310
+ t(this, "ord");
2311
+ this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
2312
+ }
2313
+ }
2314
+ class Xe {
2315
+ /**
2316
+ * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2317
+ *
2318
+ * @param data Данные для первоначальной инициализации.
2319
+ */
2320
+ constructor(r) {
2321
+ /**
2322
+ * @inheritDoc
2323
+ */
2324
+ t(this, "category");
2325
+ /**
2326
+ * @inheritDoc
2327
+ */
2328
+ t(this, "property");
2329
+ /**
2330
+ * @inheritDoc
2331
+ */
2332
+ t(this, "settings");
2333
+ this.category = new te(r == null ? void 0 : r.category), this.property = new Q(r == null ? void 0 : r.property), this.settings = new gt(r == null ? void 0 : r.settings);
2290
2334
  }
2291
2335
  }
2292
- class Wt extends p {
2336
+ class Vt extends h {
2293
2337
  /**
2294
2338
  * Возвращает данные о результатах поиска категорий и товаров.
2295
2339
  *
@@ -2320,7 +2364,7 @@ class Wt extends p {
2320
2364
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2321
2365
  }
2322
2366
  }
2323
- class Jt extends p {
2367
+ class Kt extends h {
2324
2368
  /**
2325
2369
  * Импортирует цены клиента из CSV файла.
2326
2370
  *
@@ -2519,7 +2563,7 @@ class Jt extends p {
2519
2563
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2520
2564
  }
2521
2565
  }
2522
- class Et extends p {
2566
+ class Qt extends h {
2523
2567
  /**
2524
2568
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2525
2569
  *
@@ -2531,7 +2575,7 @@ class Et extends p {
2531
2575
  return this.get(
2532
2576
  `/internal/clients/${r}/price/templates`,
2533
2577
  {},
2534
- (e) => e.data.map((s) => new ie(s))
2578
+ (e) => e.data.map((s) => new oe(s))
2535
2579
  );
2536
2580
  }
2537
2581
  /**
@@ -2542,7 +2586,7 @@ class Et extends p {
2542
2586
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2543
2587
  */
2544
2588
  getActiveTemplate(r) {
2545
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ie(e.data), !0);
2589
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new oe(e.data), !0);
2546
2590
  }
2547
2591
  /**
2548
2592
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2558,10 +2602,10 @@ class Et extends p {
2558
2602
  return this.post(
2559
2603
  `/internal/clients/${r}/price/templates/${e}`,
2560
2604
  s && {
2561
- startAt: s.startAt && U(s.startAt, i),
2562
- endAt: s.endAt && U(s.endAt, i)
2605
+ startAt: s.startAt && O(s.startAt, i),
2606
+ endAt: s.endAt && O(s.endAt, i)
2563
2607
  },
2564
- (o) => new ie(o.data),
2608
+ (o) => new oe(o.data),
2565
2609
  {},
2566
2610
  !0
2567
2611
  );
@@ -2592,10 +2636,10 @@ class Et extends p {
2592
2636
  return this.patch(
2593
2637
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2594
2638
  i && {
2595
- startAt: i.startAt && U(i.startAt, o),
2596
- endAt: i.endAt && U(i.endAt, o)
2639
+ startAt: i.startAt && O(i.startAt, o),
2640
+ endAt: i.endAt && O(i.endAt, o)
2597
2641
  },
2598
- (c) => new ie(c.data)
2642
+ (c) => new oe(c.data)
2599
2643
  );
2600
2644
  }
2601
2645
  /**
@@ -2611,7 +2655,7 @@ class Et extends p {
2611
2655
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2612
2656
  }
2613
2657
  }
2614
- class Vt extends p {
2658
+ class Yt extends h {
2615
2659
  /**
2616
2660
  * Возвращает список данных о корневых категориях.
2617
2661
  *
@@ -2625,7 +2669,7 @@ class Vt extends p {
2625
2669
  {
2626
2670
  showHidden: r
2627
2671
  },
2628
- (e) => e.data.map((s) => new _(s))
2672
+ (e) => e.data.map((s) => new a(s))
2629
2673
  );
2630
2674
  }
2631
2675
  /**
@@ -2644,7 +2688,7 @@ class Vt extends p {
2644
2688
  showHidden: e,
2645
2689
  withNestedCategories: s
2646
2690
  },
2647
- (i) => new _(i.data)
2691
+ (i) => new a(i.data)
2648
2692
  );
2649
2693
  }
2650
2694
  /**
@@ -2653,7 +2697,7 @@ class Vt extends p {
2653
2697
  * @param categoryID Идентификатор категории продуктов.
2654
2698
  */
2655
2699
  getPublicCategoryData(r) {
2656
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new _(e.data));
2700
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new a(e.data));
2657
2701
  }
2658
2702
  /**
2659
2703
  * Возвращает список продуктов категории.
@@ -2671,7 +2715,7 @@ class Vt extends p {
2671
2715
  showHidden: s,
2672
2716
  withPriceCoefficients: e
2673
2717
  },
2674
- (i) => he(i.data, (o) => new I(o))
2718
+ (i) => ge(i.data, (o) => new I(o))
2675
2719
  );
2676
2720
  }
2677
2721
  /**
@@ -2684,7 +2728,7 @@ class Vt extends p {
2684
2728
  getCategoryProductsCoefficients(r) {
2685
2729
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2686
2730
  const { data: s } = e;
2687
- return Hr(s, (i) => i.map((o) => new Me(o))), s;
2731
+ return Fr(s, (i) => i.map((o) => new Me(o))), s;
2688
2732
  });
2689
2733
  }
2690
2734
  /**
@@ -2696,14 +2740,14 @@ class Vt extends p {
2696
2740
  publicSimpleSearch(r, e = 10) {
2697
2741
  return new Promise((s, i) => {
2698
2742
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2699
- s(o.categories.map((c) => new _(c)));
2743
+ s(o.categories.map((c) => new a(c)));
2700
2744
  }).catch((o) => {
2701
2745
  i(o);
2702
2746
  });
2703
2747
  });
2704
2748
  }
2705
2749
  }
2706
- class Kt extends p {
2750
+ class Xt extends h {
2707
2751
  /**
2708
2752
  * Возвращает данные об указанном продукте.
2709
2753
  *
@@ -2734,7 +2778,7 @@ class Kt extends p {
2734
2778
  return this.get(
2735
2779
  `/internal/catalog/products/${r}/coefficients`,
2736
2780
  {},
2737
- (e) => he(e.data, (s) => new Me(s))
2781
+ (e) => ge(e.data, (s) => new Me(s))
2738
2782
  );
2739
2783
  }
2740
2784
  /**
@@ -2753,7 +2797,7 @@ class Kt extends p {
2753
2797
  });
2754
2798
  }
2755
2799
  }
2756
- class Qt extends p {
2800
+ class Zt extends h {
2757
2801
  /**
2758
2802
  * Возвращает список данных о корневых категориях указанного клиента.
2759
2803
  *
@@ -2811,11 +2855,11 @@ class Qt extends p {
2811
2855
  showHidden: i,
2812
2856
  withPriceCoefficients: s
2813
2857
  },
2814
- (o) => he(o.data, (c) => new M(c))
2858
+ (o) => ge(o.data, (c) => new M(c))
2815
2859
  );
2816
2860
  }
2817
2861
  }
2818
- class Yt extends p {
2862
+ class es extends h {
2819
2863
  /**
2820
2864
  * Возвращает данные об указанном продукте для указанного клиента.
2821
2865
  *
@@ -2836,8 +2880,8 @@ class Yt extends p {
2836
2880
  );
2837
2881
  }
2838
2882
  }
2839
- var We = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(We || {});
2840
- class Ye {
2883
+ var Je = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Je || {});
2884
+ class Ze {
2841
2885
  /**
2842
2886
  * Инициализирует экземпляр класса {@link FilterItem}.
2843
2887
  *
@@ -2856,7 +2900,7 @@ class Ye {
2856
2900
  * Значение с которым сравнивается поле.
2857
2901
  */
2858
2902
  t(this, "value");
2859
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? We.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2903
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Je.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2860
2904
  }
2861
2905
  /**
2862
2906
  * Преобразует фильтр в примитивное представление для API.
@@ -2864,11 +2908,14 @@ class Ye {
2864
2908
  * @returns Примитивное представление фильтра.
2865
2909
  */
2866
2910
  toPrimitive() {
2867
- const r = {
2911
+ const r = L().config.dateFormats.api, e = {
2868
2912
  field: this.field,
2869
2913
  op: this.op
2870
2914
  };
2871
- return r.value = ae(this.value) ? U(this.value, L().config.dateFormats.api) : this.value, r;
2915
+ return de(this.value) ? e.value = O(this.value, r) : He(this.value) ? e.value = {
2916
+ from: this.value.from ? O(this.value.from, r) : null,
2917
+ to: this.value.to ? O(this.value.to, r) : null
2918
+ } : e.value = this.value, e;
2872
2919
  }
2873
2920
  }
2874
2921
  class j {
@@ -2891,7 +2938,7 @@ class j {
2891
2938
  */
2892
2939
  t(this, "groups");
2893
2940
  var e, s;
2894
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ye(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new j(i))) ?? [];
2941
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ze(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new j(i))) ?? [];
2895
2942
  }
2896
2943
  /**
2897
2944
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2901,12 +2948,12 @@ class j {
2901
2948
  toPrimitive() {
2902
2949
  return {
2903
2950
  groupOp: this.groupOp,
2904
- filters: this.filters.map((r) => r instanceof Ye && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2951
+ filters: this.filters.map((r) => r instanceof Ze && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2905
2952
  groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
2906
2953
  };
2907
2954
  }
2908
2955
  }
2909
- class De extends p {
2956
+ class De extends h {
2910
2957
  /**
2911
2958
  * Получает пагинированный список данных.
2912
2959
  *
@@ -2919,15 +2966,15 @@ class De extends p {
2919
2966
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2920
2967
  * @param signal Сигнал отмены запроса.
2921
2968
  */
2922
- getPaginated(r, e, s, i, o, c, u, h = void 0) {
2969
+ getPaginated(r, e, s, i, o, c, u, p = void 0) {
2923
2970
  let m = {
2924
2971
  page: (i == null ? void 0 : i.page) ?? 1,
2925
2972
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2926
2973
  };
2927
- return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), Y(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2974
+ return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
2928
2975
  }
2929
2976
  }
2930
- class Xt extends De {
2977
+ class rs extends De {
2931
2978
  /**
2932
2979
  * Возвращает список шаблонов прайс-листа.
2933
2980
  *
@@ -3127,18 +3174,18 @@ class Xt extends De {
3127
3174
  return this.get(
3128
3175
  `/internal/price/templates/${r}/clients`,
3129
3176
  {},
3130
- (e) => e.data.map((s) => new ie(s))
3177
+ (e) => e.data.map((s) => new oe(s))
3131
3178
  );
3132
3179
  }
3133
3180
  }
3134
- class Zt extends p {
3181
+ class ts extends h {
3135
3182
  /**
3136
3183
  * Возвращает список ролей ценообразования.
3137
3184
  *
3138
3185
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3139
3186
  */
3140
3187
  getRoles() {
3141
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new oe(e)));
3188
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ce(e)));
3142
3189
  }
3143
3190
  /**
3144
3191
  * Добавляет новую роль ценообразования.
@@ -3148,7 +3195,7 @@ class Zt extends p {
3148
3195
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3149
3196
  */
3150
3197
  createRole(r) {
3151
- return this.post("/internal/price/roles", r, (e) => new oe(e.data));
3198
+ return this.post("/internal/price/roles", r, (e) => new ce(e.data));
3152
3199
  }
3153
3200
  /**
3154
3201
  * Возвращает данные роли ценообразования.
@@ -3158,7 +3205,7 @@ class Zt extends p {
3158
3205
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3159
3206
  */
3160
3207
  getRole(r) {
3161
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new oe(e.data));
3208
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new ce(e.data));
3162
3209
  }
3163
3210
  /**
3164
3211
  * Обновляет данные роли ценообразования.
@@ -3169,7 +3216,7 @@ class Zt extends p {
3169
3216
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3170
3217
  */
3171
3218
  updateRole(r, e) {
3172
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new oe(s.data));
3219
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new ce(s.data));
3173
3220
  }
3174
3221
  /**
3175
3222
  * Удаляет роль ценообразования.
@@ -3192,7 +3239,7 @@ class Zt extends p {
3192
3239
  return this.get(
3193
3240
  `/internal/price/roles/rules/categories/${r}`,
3194
3241
  {},
3195
- (e) => e.data.map((s) => new Qe(s))
3242
+ (e) => e.data.map((s) => new Ye(s))
3196
3243
  );
3197
3244
  }
3198
3245
  /**
@@ -3207,11 +3254,11 @@ class Zt extends p {
3207
3254
  return this.patch(
3208
3255
  `/internal/price/roles/rules/categories/${r}`,
3209
3256
  e,
3210
- (s) => s.data.map((i) => new Qe(i))
3257
+ (s) => s.data.map((i) => new Ye(i))
3211
3258
  );
3212
3259
  }
3213
3260
  }
3214
- class es extends De {
3261
+ class ss extends De {
3215
3262
  /**
3216
3263
  * Возвращает пагинированный список свойств.
3217
3264
  *
@@ -3224,7 +3271,7 @@ class es extends De {
3224
3271
  getProperties(r, e, s) {
3225
3272
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3226
3273
  const o = { ...i.data };
3227
- return o.data = o.data.map((c) => new ne(c)), o;
3274
+ return o.data = o.data.map((c) => new Q(c)), o;
3228
3275
  });
3229
3276
  }
3230
3277
  /**
@@ -3241,7 +3288,7 @@ class es extends De {
3241
3288
  ...s,
3242
3289
  type: e
3243
3290
  },
3244
- (i) => new ne(i.data)
3291
+ (i) => new Q(i.data)
3245
3292
  );
3246
3293
  }
3247
3294
  /**
@@ -3251,7 +3298,7 @@ class es extends De {
3251
3298
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3252
3299
  */
3253
3300
  getProperty(r) {
3254
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ne(e.data));
3301
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Q(e.data));
3255
3302
  }
3256
3303
  /**
3257
3304
  * Обновляет существующее свойство.
@@ -3268,7 +3315,7 @@ class es extends De {
3268
3315
  ...i,
3269
3316
  type: s
3270
3317
  },
3271
- (o) => new ne(o.data)
3318
+ (o) => new Q(o.data)
3272
3319
  );
3273
3320
  }
3274
3321
  /**
@@ -3582,8 +3629,46 @@ class es extends De {
3582
3629
  updateCategoryImage(r, e) {
3583
3630
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3584
3631
  }
3632
+ /**
3633
+ * Возвращает список настроенных фильтров категории.
3634
+ *
3635
+ * @param categoryId Идентификатор категории.
3636
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
3637
+ */
3638
+ getCategoryFilterSettings(r) {
3639
+ return this.get(
3640
+ `/internal/catalog/categories/${r}/filter-settings`,
3641
+ {},
3642
+ (e) => e.data.map((s) => new Xe(s))
3643
+ );
3644
+ }
3645
+ /**
3646
+ * Сохраняет настройки фильтра в категории.
3647
+ *
3648
+ * @param categoryId Идентификатор категории.
3649
+ * @param propertyId Идентификатор свойства.
3650
+ * @param settingsData Данные настроек фильтра.
3651
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_save
3652
+ */
3653
+ saveCategoryFilterSetting(r, e, s) {
3654
+ return this.patch(
3655
+ `/internal/catalog/categories/${r}/filter-settings/${e}`,
3656
+ s,
3657
+ (i) => new Xe(i.data)
3658
+ );
3659
+ }
3660
+ /**
3661
+ * Удаляет настройки фильтра в категории, возвращая фильтру настройки по умолчанию.
3662
+ *
3663
+ * @param categoryId Идентификатор категории.
3664
+ * @param propertyId Идентификатор свойства.
3665
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_delete
3666
+ */
3667
+ deleteCategoryFilterSetting(r, e) {
3668
+ return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
3669
+ }
3585
3670
  }
3586
- class rs extends p {
3671
+ class is extends h {
3587
3672
  /**
3588
3673
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3589
3674
  *
@@ -3599,7 +3684,7 @@ class rs extends p {
3599
3684
  priceTemplateId: r,
3600
3685
  showHidden: e
3601
3686
  },
3602
- (s) => s.data.map((i) => new _(i))
3687
+ (s) => s.data.map((i) => new a(i))
3603
3688
  );
3604
3689
  }
3605
3690
  /**
@@ -3620,7 +3705,7 @@ class rs extends p {
3620
3705
  showHidden: s,
3621
3706
  withNestedCategories: i
3622
3707
  },
3623
- (o) => new _(o.data)
3708
+ (o) => new a(o.data)
3624
3709
  );
3625
3710
  }
3626
3711
  /**
@@ -3641,11 +3726,11 @@ class rs extends p {
3641
3726
  showHidden: i,
3642
3727
  withPriceCoefficients: s
3643
3728
  },
3644
- (o) => he(o.data, (c) => new I(c))
3729
+ (o) => ge(o.data, (c) => new I(c))
3645
3730
  );
3646
3731
  }
3647
3732
  }
3648
- function Xe(n, r, e) {
3733
+ function er(n, r, e) {
3649
3734
  let s;
3650
3735
  return n.some((i) => {
3651
3736
  if (i.type === e && i.id === r)
@@ -3654,85 +3739,29 @@ function Xe(n, r, e) {
3654
3739
  return !1;
3655
3740
  const o = i;
3656
3741
  if (o.products && o.products.length > 0) {
3657
- const c = Xe(o.products, r, e);
3742
+ const c = er(o.products, r, e);
3658
3743
  if (c)
3659
3744
  return s = c, !0;
3660
3745
  }
3661
3746
  if (o.categories && o.categories.length > 0) {
3662
- const c = Xe(o.categories, r, e);
3747
+ const c = er(o.categories, r, e);
3663
3748
  if (c)
3664
3749
  return s = c, !0;
3665
3750
  }
3666
3751
  return !1;
3667
3752
  }), s;
3668
3753
  }
3669
- function Ze(n) {
3754
+ function rr(n) {
3670
3755
  const r = [];
3671
3756
  return n.forEach((e) => {
3672
3757
  if (r.push(e), e.type === "category") {
3673
3758
  const s = e;
3674
- s.products && s.products.length > 0 && r.push(...Ze(s.products)), s.categories && s.categories.length > 0 && r.push(...Ze(s.categories));
3759
+ s.products && s.products.length > 0 && r.push(...rr(s.products)), s.categories && s.categories.length > 0 && r.push(...rr(s.categories));
3675
3760
  }
3676
3761
  }), r;
3677
3762
  }
3678
- var ht = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ht || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3679
- class gt extends R {
3680
- }
3681
- class Cr extends R {
3682
- }
3683
- class ts extends R {
3684
- }
3685
- class mt extends R {
3686
- }
3687
- class G extends R {
3688
- /**
3689
- * Возвращает сгенерированную запись-описание физического лица.
3690
- */
3691
- static generatePersonItem() {
3692
- return new G({
3693
- id: 1,
3694
- guid: "",
3695
- slug: q.Person,
3696
- name: ""
3697
- });
3698
- }
3699
- }
3700
- class Rr extends R {
3701
- }
3702
- class ft extends R {
3703
- }
3704
- class yt extends R {
3705
- }
3706
- class Z extends R {
3707
- }
3708
- class Pr extends R {
3709
- }
3710
- class wt extends R {
3711
- }
3712
- class ss {
3713
- /**
3714
- * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
3715
- *
3716
- * @param Ctor Конструктор конкретного класса справочника.
3717
- * @param name Название записи.
3718
- */
3719
- static generateUndefinedInstance(r, e = "- Не определён -") {
3720
- return new r({ id: 0, name: e, slug: "-undefined-" });
3721
- }
3722
- /**
3723
- * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённой записи справочника.
3724
- *
3725
- * @param reference Запись для проверки.
3726
- */
3727
- static isUndefinedInstance(r) {
3728
- return r.id === 0 && r.slug === "-undefined-";
3729
- }
3730
- }
3731
- class Ar extends R {
3732
- }
3733
- class Dr extends R {
3734
- }
3735
- class qe extends ee {
3763
+ var mt = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(mt || {}), N = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(N || {});
3764
+ class ae extends re {
3736
3765
  /**
3737
3766
  * Инициализирует экземпляр класса {@link BankAccount}.
3738
3767
  *
@@ -3759,8 +3788,8 @@ class qe extends ee {
3759
3788
  /**
3760
3789
  * Данные о валюте.
3761
3790
  */
3762
- t(this, "currency", new a());
3763
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new a(e.currency));
3791
+ t(this, "currency", new _());
3792
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new _(e.currency));
3764
3793
  }
3765
3794
  }
3766
3795
  class Ne extends k {
@@ -3782,7 +3811,7 @@ class Ne extends k {
3782
3811
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3783
3812
  }
3784
3813
  }
3785
- class B extends Ne {
3814
+ class G extends Ne {
3786
3815
  /**
3787
3816
  * Инициализирует экземпляр класса {@link ContactPerson}.
3788
3817
  *
@@ -3817,7 +3846,22 @@ class B extends Ne {
3817
3846
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3818
3847
  }
3819
3848
  }
3820
- class Tr extends k {
3849
+ class B extends R {
3850
+ /**
3851
+ * Возвращает сгенерированную запись-описание физического лица.
3852
+ */
3853
+ static generatePersonItem() {
3854
+ return new B({
3855
+ id: 1,
3856
+ guid: "",
3857
+ slug: N.Person,
3858
+ name: ""
3859
+ });
3860
+ }
3861
+ }
3862
+ class ee extends R {
3863
+ }
3864
+ class Rr extends k {
3821
3865
  /**
3822
3866
  * Инициализирует экземпляр класса {@link ContragentBase}.
3823
3867
  *
@@ -3829,11 +3873,11 @@ class Tr extends k {
3829
3873
  /**
3830
3874
  * Данные об организационно-правовой форме.
3831
3875
  */
3832
- t(this, "opf", G.generatePersonItem());
3876
+ t(this, "opf", B.generatePersonItem());
3833
3877
  /**
3834
3878
  * Группа партнеров (направление деятельности).
3835
3879
  */
3836
- t(this, "partnerGroup", new Z());
3880
+ t(this, "partnerGroup", new ee());
3837
3881
  /**
3838
3882
  * Список контактных лиц контрагента.
3839
3883
  */
@@ -3867,22 +3911,22 @@ class Tr extends k {
3867
3911
  */
3868
3912
  t(this, "updater");
3869
3913
  if (e) {
3870
- if (this.opf = new G(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new x(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new x(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
3914
+ if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3871
3915
  const s = [];
3872
3916
  e.contacts.forEach((i) => {
3873
- s.push(new B(i));
3917
+ s.push(new G(i));
3874
3918
  }), this.contacts = s;
3875
3919
  }
3876
3920
  if (e.bankAccounts) {
3877
3921
  const s = [];
3878
3922
  e.bankAccounts.forEach((i) => {
3879
- s.push(new qe(i));
3923
+ s.push(new ae(i));
3880
3924
  }), this.bankAccounts = s;
3881
3925
  }
3882
3926
  }
3883
3927
  }
3884
3928
  }
3885
- class vt extends Tr {
3929
+ class ft extends Rr {
3886
3930
  /**
3887
3931
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3888
3932
  *
@@ -3892,7 +3936,7 @@ class vt extends Tr {
3892
3936
  super(r);
3893
3937
  }
3894
3938
  }
3895
- class $r extends Tr {
3939
+ class Pr extends Rr {
3896
3940
  /**
3897
3941
  * Инициализирует экземпляр класса {@link ContragentIc}.
3898
3942
  *
@@ -3935,7 +3979,7 @@ class $r extends Tr {
3935
3979
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3936
3980
  }
3937
3981
  }
3938
- class br extends $r {
3982
+ class Ar extends Pr {
3939
3983
  /**
3940
3984
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3941
3985
  *
@@ -3950,7 +3994,7 @@ class br extends $r {
3950
3994
  e && (this.kpp = e.kpp ?? "");
3951
3995
  }
3952
3996
  }
3953
- class Ct extends br {
3997
+ class yt extends Ar {
3954
3998
  /**
3955
3999
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3956
4000
  *
@@ -3961,7 +4005,7 @@ class Ct extends br {
3961
4005
  /**
3962
4006
  * Страна регистрации юридического лица нерезидента.
3963
4007
  */
3964
- t(this, "registrationCountry", new X());
4008
+ t(this, "registrationCountry", new Z());
3965
4009
  /**
3966
4010
  * Регистрационный номер юридического лица нерезидента.
3967
4011
  */
@@ -3970,7 +4014,7 @@ class Ct extends br {
3970
4014
  * Налоговый номер юридического лица нерезидента.
3971
4015
  */
3972
4016
  t(this, "taxNumber", "");
3973
- e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4017
+ e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3974
4018
  }
3975
4019
  }
3976
4020
  class Ce {
@@ -3981,61 +4025,33 @@ class Ce {
3981
4025
  */
3982
4026
  static createInstance(r) {
3983
4027
  switch (r.opf.slug) {
3984
- case q.Ic:
3985
- return new $r(r);
3986
- case q.UlR:
3987
- return new br(r);
3988
- case q.UlNr:
3989
- return new Ct(r);
4028
+ case N.Ic:
4029
+ return new Pr(r);
4030
+ case N.UlR:
4031
+ return new Ar(r);
4032
+ case N.UlNr:
4033
+ return new yt(r);
3990
4034
  default:
3991
- return new vt(r);
4035
+ return new ft(r);
3992
4036
  }
3993
4037
  }
3994
4038
  }
3995
- class Ie extends ee {
3996
- /**
3997
- * Инициализирует экземпляр класса {@link ContactRelation}.
3998
- *
3999
- * @param data Данные для первоначальной инициализации.
4000
- */
4001
- constructor(e) {
4002
- super(e);
4003
- /**
4004
- * Признак того, что контакт является основным.
4005
- */
4006
- t(this, "isPrimary");
4007
- this.isPrimary = e.isPrimary;
4008
- }
4009
- }
4010
- class Rt extends B {
4039
+ class wt extends ur {
4011
4040
  /**
4012
- * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4041
+ * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4013
4042
  *
4014
4043
  * @param data Данные для первоначальной инициализации.
4015
4044
  */
4016
4045
  constructor(e) {
4017
4046
  super(e);
4018
4047
  /**
4019
- * Список связей контактного лица с сущностями.
4048
+ * Дата и время последнего удаления.
4020
4049
  */
4021
- t(this, "relations", {
4022
- /**
4023
- * Список клиентов, с которыми связано контактное лицо.
4024
- */
4025
- clients: [],
4026
- /**
4027
- * Список контрагентов, с которыми связано контактное лицо.
4028
- */
4029
- contragents: [],
4030
- /**
4031
- * Список адресов доставки, с которыми связано контактное лицо.
4032
- */
4033
- addresses: []
4034
- });
4035
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
4050
+ t(this, "deletedAt");
4051
+ this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4036
4052
  }
4037
4053
  }
4038
- class Re extends tt {
4054
+ class Re extends wt {
4039
4055
  /**
4040
4056
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4041
4057
  *
@@ -4072,10 +4088,14 @@ class Re extends tt {
4072
4088
  * Признак того, что указанный адрес является адресом транспортной компании.
4073
4089
  */
4074
4090
  t(this, "isTransportCompanyAddress");
4075
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new B(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4091
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new G(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4076
4092
  }
4077
4093
  }
4078
- class er extends re {
4094
+ class Dr extends R {
4095
+ }
4096
+ class $r extends R {
4097
+ }
4098
+ class tr extends se {
4079
4099
  /**
4080
4100
  * Инициализирует экземпляр класса {@link Client}.
4081
4101
  *
@@ -4125,10 +4145,10 @@ class er extends re {
4125
4145
  * @inheritDoc
4126
4146
  */
4127
4147
  t(this, "extraData");
4128
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Re(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Dr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ge(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4148
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new G(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Re(u))) ?? [], this.channelPrimaryInterest = new Dr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new $r(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new U(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4129
4149
  }
4130
4150
  }
4131
- class Sr {
4151
+ class Tr {
4132
4152
  /**
4133
4153
  * Возвращает очищенное значение фильтров, содержащие
4134
4154
  * только актуальные данные.
@@ -4142,14 +4162,14 @@ class Sr {
4142
4162
  }), r;
4143
4163
  }
4144
4164
  }
4145
- class is extends Sr {
4165
+ class ns extends Tr {
4146
4166
  /**
4147
4167
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4148
4168
  *
4149
4169
  * @param data Данные для первоначальной инициализации.
4150
4170
  */
4151
4171
  constructor(e) {
4152
- var s, i, o, c, u, h, m, f;
4172
+ var s, i, o, c, u, p, m, f;
4153
4173
  super();
4154
4174
  /**
4155
4175
  * @inheritDoc
@@ -4194,11 +4214,11 @@ class is extends Sr {
4194
4214
  /**
4195
4215
  * @inheritDoc
4196
4216
  */
4197
- t(this, "createdAt", new S());
4217
+ t(this, "createdAt", new $());
4198
4218
  /**
4199
4219
  * @inheritDoc
4200
4220
  */
4201
- t(this, "lastLoginDate", new S());
4221
+ t(this, "lastLoginDate", new $());
4202
4222
  /**
4203
4223
  * @inheritDoc
4204
4224
  */
@@ -4247,11 +4267,15 @@ class is extends Sr {
4247
4267
  * @inheritDoc
4248
4268
  */
4249
4269
  t(this, "lastOrder");
4250
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new X(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new fe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new G(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new Z(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4251
- createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4270
+ /**
4271
+ * @inheritDoc
4272
+ */
4273
+ t(this, "noOrdersPeriod", new $());
4274
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new pe(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new $(e == null ? void 0 : e.createdAt), this.lastLoginDate = new $(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new fe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new U(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4275
+ createdAt: new $((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4252
4276
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4253
4277
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4254
- };
4278
+ }, this.noOrdersPeriod = new $(e == null ? void 0 : e.noOrdersPeriod);
4255
4279
  }
4256
4280
  /**
4257
4281
  * @inheritDoc
@@ -4262,7 +4286,7 @@ class is extends Sr {
4262
4286
  this.cities = [];
4263
4287
  break;
4264
4288
  case "region":
4265
- this.region = new ue();
4289
+ this.region = new pe();
4266
4290
  break;
4267
4291
  case "isActive":
4268
4292
  this.isActive = !0;
@@ -4273,6 +4297,9 @@ class is extends Sr {
4273
4297
  case "lastLoginDate":
4274
4298
  this.lastLoginDate.from = null, this.lastLoginDate.to = null;
4275
4299
  break;
4300
+ case "noOrdersPeriod":
4301
+ this.noOrdersPeriod.from = null, this.noOrdersPeriod.to = null;
4302
+ break;
4276
4303
  case "lastOrder":
4277
4304
  this.lastOrder = {};
4278
4305
  break;
@@ -4286,10 +4313,10 @@ class is extends Sr {
4286
4313
  this.salesDirections = [];
4287
4314
  break;
4288
4315
  case "contragentType":
4289
- this.contragentType = new G();
4316
+ this.contragentType = new B();
4290
4317
  break;
4291
4318
  case "preferredDeliveryType":
4292
- this.preferredDeliveryType = new N();
4319
+ this.preferredDeliveryType = new U();
4293
4320
  break;
4294
4321
  case "partnerGroups":
4295
4322
  this.partnerGroups = [];
@@ -4307,12 +4334,12 @@ class is extends Sr {
4307
4334
  * @inheritDoc
4308
4335
  */
4309
4336
  asClearRaw() {
4310
- var s, i, o, c;
4337
+ var s, i, o, c, u, p;
4311
4338
  const e = super.asClearRaw();
4312
- return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, e;
4339
+ return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4313
4340
  }
4314
4341
  }
4315
- class kr extends ee {
4342
+ class br extends re {
4316
4343
  /**
4317
4344
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4318
4345
  *
@@ -4332,10 +4359,10 @@ class kr extends ee {
4332
4359
  * @inheritDoc
4333
4360
  */
4334
4361
  t(this, "isApproved1c");
4335
- this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new x(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4362
+ this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4336
4363
  }
4337
4364
  }
4338
- class Pt extends k {
4365
+ class vt extends k {
4339
4366
  /**
4340
4367
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4341
4368
  *
@@ -4372,77 +4399,53 @@ class Pt extends k {
4372
4399
  * @inheritDoc
4373
4400
  */
4374
4401
  t(this, "curators");
4375
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
4402
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new G(u))) ?? void 0, this.lastOrder = e.lastOrder ? new br(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new ee(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new U(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Be(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new We(u))) ?? void 0;
4376
4403
  }
4377
4404
  }
4378
- class At {
4405
+ class Ie extends re {
4379
4406
  /**
4380
- * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4407
+ * Инициализирует экземпляр класса {@link ContactRelation}.
4381
4408
  *
4382
4409
  * @param data Данные для первоначальной инициализации.
4383
4410
  */
4384
- constructor(r) {
4411
+ constructor(e) {
4412
+ super(e);
4385
4413
  /**
4386
- * Номер текущей страницы.
4414
+ * Признак того, что контакт является основным.
4387
4415
  */
4388
- t(this, "page", 1);
4389
- /**
4390
- * Количество записей на странице.
4391
- */
4392
- t(this, "pageSize", 50);
4393
- this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4416
+ t(this, "isPrimary");
4417
+ this.isPrimary = e.isPrimary;
4394
4418
  }
4395
4419
  }
4396
- class ns extends At {
4420
+ class Ct extends G {
4397
4421
  /**
4398
- * Инициализирует экземпляр класса {@link DataTablePagination}.
4422
+ * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4399
4423
  *
4400
4424
  * @param data Данные для первоначальной инициализации.
4401
4425
  */
4402
4426
  constructor(e) {
4403
4427
  super(e);
4404
4428
  /**
4405
- * Количество записей в таблице.
4406
- */
4407
- t(this, "itemCount", 0);
4408
- /**
4409
- * Число страниц с данными.
4410
- */
4411
- t(this, "pageCount", 1);
4412
- /**
4413
- * Число отображаемых номеров страниц.
4414
- */
4415
- t(this, "pageSlot", 5);
4416
- /**
4417
- * Значения для выпадающего списка "Количество записей на странице".
4418
- */
4419
- t(this, "pageSizes", [25, 50, 100]);
4420
- /**
4421
- * Признак необходимости отображать список выбора числа отображаемых записей.
4422
- */
4423
- t(this, "showSizePicker", !0);
4424
- this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4425
- }
4426
- }
4427
- class os {
4428
- /**
4429
- * Инициализирует экземпляр класса {@link ISortRequestParams}.
4430
- *
4431
- * @param data Данные для первоначальной инициализации.
4432
- */
4433
- constructor(r) {
4434
- /**
4435
- * Поле по которому необходимо выполнить сортировку
4436
- */
4437
- t(this, "field");
4438
- /**
4439
- * Направление сортировки.
4429
+ * Список связей контактного лица с сущностями.
4440
4430
  */
4441
- t(this, "direction");
4442
- this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4431
+ t(this, "relations", {
4432
+ /**
4433
+ * Список клиентов, с которыми связано контактное лицо.
4434
+ */
4435
+ clients: [],
4436
+ /**
4437
+ * Список контрагентов, с которыми связано контактное лицо.
4438
+ */
4439
+ contragents: [],
4440
+ /**
4441
+ * Список адресов доставки, с которыми связано контактное лицо.
4442
+ */
4443
+ addresses: []
4444
+ });
4445
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
4443
4446
  }
4444
4447
  }
4445
- class d extends De {
4448
+ class x extends De {
4446
4449
  /**
4447
4450
  * Преобразует данные о клиенте в данные требуемые для запроса.
4448
4451
  *
@@ -4470,11 +4473,11 @@ class d extends De {
4470
4473
  * @param contragent Данные о контрагенте клиента.
4471
4474
  */
4472
4475
  static transformContragentClientDataToRequest(r) {
4473
- var c, u, h, m;
4476
+ var c, u, p, m;
4474
4477
  let e;
4475
4478
  const s = r, i = r, o = r;
4476
4479
  switch (r.opf.slug) {
4477
- case q.Ic:
4480
+ case N.Ic:
4478
4481
  e = {
4479
4482
  opf: s.opf.slug,
4480
4483
  name: s.name,
@@ -4491,7 +4494,7 @@ class d extends De {
4491
4494
  actual_address: s.actualAddress
4492
4495
  };
4493
4496
  break;
4494
- case q.UlR:
4497
+ case N.UlR:
4495
4498
  e = {
4496
4499
  opf: i.opf.slug,
4497
4500
  name: i.name,
@@ -4509,12 +4512,12 @@ class d extends De {
4509
4512
  actual_address: i.actualAddress
4510
4513
  };
4511
4514
  break;
4512
- case q.UlNr:
4515
+ case N.UlNr:
4513
4516
  e = {
4514
4517
  opf: o.opf.slug,
4515
4518
  name: o.name,
4516
4519
  alternative_name: o.alternativeName,
4517
- partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
4520
+ partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
4518
4521
  comment: o.comment,
4519
4522
  director_name: o.directorName,
4520
4523
  director_position: o.directorPosition,
@@ -4581,7 +4584,7 @@ class d extends De {
4581
4584
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4582
4585
  */
4583
4586
  getClient(r) {
4584
- return this.get(`/internal/clients/${r}`, {}, (e) => new er(e.data));
4587
+ return this.get(`/internal/clients/${r}`, {}, (e) => new tr(e.data));
4585
4588
  }
4586
4589
  /**
4587
4590
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4603,7 +4606,7 @@ class d extends De {
4603
4606
  i,
4604
4607
  (c) => {
4605
4608
  const u = { ...c.data };
4606
- return u.data = u.data.map((h) => new re(h)), u;
4609
+ return u.data = u.data.map((p) => new se(p)), u;
4607
4610
  },
4608
4611
  void 0,
4609
4612
  o
@@ -4629,7 +4632,7 @@ class d extends De {
4629
4632
  return this.getClientsList({
4630
4633
  groupOp: "and",
4631
4634
  groups: [],
4632
- filters: [{ field: "phone", op: We.Contains, value: r }]
4635
+ filters: [{ field: "phone", op: Je.Contains, value: r }]
4633
4636
  });
4634
4637
  }
4635
4638
  /**
@@ -4643,7 +4646,7 @@ class d extends De {
4643
4646
  const s = r.map((i) => i.id);
4644
4647
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4645
4648
  let o = [];
4646
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Pt(c))), o;
4649
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
4647
4650
  });
4648
4651
  }
4649
4652
  /**
@@ -4655,7 +4658,7 @@ class d extends De {
4655
4658
  getAllClientContacts(r) {
4656
4659
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4657
4660
  let s = [];
4658
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Rt(i))), s;
4661
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Ct(i))), s;
4659
4662
  });
4660
4663
  }
4661
4664
  /**
@@ -4666,7 +4669,7 @@ class d extends De {
4666
4669
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4667
4670
  */
4668
4671
  createClientCommonData(r, e = {}) {
4669
- return this.post("/internal/clients", d.transformClientDataToRequest(r), (s) => new er(s.data), e);
4672
+ return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new tr(s.data), e);
4670
4673
  }
4671
4674
  /**
4672
4675
  * Обновляет данные указанного клиента.
@@ -4676,7 +4679,7 @@ class d extends De {
4676
4679
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4677
4680
  */
4678
4681
  updateClientCommonData(r, e = {}) {
4679
- return this.patch(`/internal/clients/${r.id}`, d.transformClientDataToRequest(r), void 0, e);
4682
+ return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
4680
4683
  }
4681
4684
  /**
4682
4685
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4805,7 +4808,7 @@ class d extends De {
4805
4808
  createContragentClientData(r, e, s = {}) {
4806
4809
  return this.post(
4807
4810
  `/internal/clients/${r}/contragents`,
4808
- d.transformContragentClientDataToRequest(e),
4811
+ x.transformContragentClientDataToRequest(e),
4809
4812
  (i) => Ce.createInstance(i.data),
4810
4813
  s
4811
4814
  );
@@ -4821,7 +4824,7 @@ class d extends De {
4821
4824
  updateContragentClientData(r, e, s = {}) {
4822
4825
  return this.patch(
4823
4826
  `/internal/clients/${r}/contragents/${e.id}`,
4824
- d.transformContragentClientDataToRequest(e),
4827
+ x.transformContragentClientDataToRequest(e),
4825
4828
  (i) => Ce.createInstance(i.data),
4826
4829
  s
4827
4830
  );
@@ -4847,7 +4850,7 @@ class d extends De {
4847
4850
  createClientDeliveryAddress(r, e, s = {}) {
4848
4851
  return this.post(
4849
4852
  `/internal/clients/${r}/delivery-addresses`,
4850
- d.transformClientDeliveryAddressToRequest(e),
4853
+ x.transformClientDeliveryAddressToRequest(e),
4851
4854
  (i) => new Re(i.data),
4852
4855
  s
4853
4856
  );
@@ -4863,7 +4866,7 @@ class d extends De {
4863
4866
  updateClientDeliveryAddress(r, e, s = {}) {
4864
4867
  return this.patch(
4865
4868
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4866
- d.transformClientDeliveryAddressToRequest(e),
4869
+ x.transformClientDeliveryAddressToRequest(e),
4867
4870
  (i) => new Re(i.data),
4868
4871
  s
4869
4872
  );
@@ -4890,8 +4893,8 @@ class d extends De {
4890
4893
  createContragentBankAccount(r, e, s, i = {}) {
4891
4894
  return this.post(
4892
4895
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4893
- d.transformClientContragentBankAccountToRequest(s),
4894
- (o) => new qe(o.data),
4896
+ x.transformClientContragentBankAccountToRequest(s),
4897
+ (o) => new ae(o.data),
4895
4898
  i
4896
4899
  );
4897
4900
  }
@@ -4907,8 +4910,8 @@ class d extends De {
4907
4910
  updateContragentBankAccount(r, e, s, i = {}) {
4908
4911
  return this.patch(
4909
4912
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4910
- d.transformClientContragentBankAccountToRequest(s),
4911
- (o) => new qe(o.data),
4913
+ x.transformClientContragentBankAccountToRequest(s),
4914
+ (o) => new ae(o.data),
4912
4915
  i
4913
4916
  );
4914
4917
  }
@@ -4964,7 +4967,7 @@ class d extends De {
4964
4967
  comment: e.comment,
4965
4968
  not_disturb: e.notDisturb
4966
4969
  },
4967
- (i) => new B(i.data),
4970
+ (i) => new G(i.data),
4968
4971
  s
4969
4972
  );
4970
4973
  }
@@ -5101,7 +5104,7 @@ class d extends De {
5101
5104
  comment: e.comment,
5102
5105
  ...s
5103
5106
  };
5104
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new B(h.data), i);
5107
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new G(p.data), i);
5105
5108
  }
5106
5109
  /**
5107
5110
  * Устанавливает признак основного контактного лица.
@@ -5130,66 +5133,7 @@ class d extends De {
5130
5133
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5131
5134
  }
5132
5135
  }
5133
- const Q = class Q extends p {
5134
- /**
5135
- * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5136
- */
5137
- constructor() {
5138
- super();
5139
- /**
5140
- * Время кэширования данных ответов на запросы (секунд).
5141
- */
5142
- t(this, "responseDataCacheTimeout");
5143
- this.responseDataCacheTimeout = L().config.http.responseDataCacheTimeout;
5144
- }
5145
- /**
5146
- * Возвращает кэшированные данные.
5147
- * Если кэшированные данные отсутствуют, то вернет undefined.
5148
- *
5149
- * @param key Ключ запроса.
5150
- */
5151
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5152
- static getCachedResponse(e) {
5153
- const s = Q.responseDataCache.get(e);
5154
- if (s && s.validTo > /* @__PURE__ */ new Date())
5155
- return s.val;
5156
- }
5157
- /**
5158
- * Сохраняет указанные данные из запроса в кэш результатов.
5159
- *
5160
- * @param url URL запроса.
5161
- * @param data Данные для кэширования.
5162
- */
5163
- cacheResponse(e, s) {
5164
- Q.responseDataCache.set(e, {
5165
- validTo: Mr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5166
- val: s
5167
- });
5168
- }
5169
- /**
5170
- * Возвращает {@link Promise} типизированного результата выполнения запроса.
5171
- *
5172
- * @param type Тип возвращаемых данных.
5173
- * @param url URL запроса для получения данных.
5174
- * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5175
- * и использовать в случае аналогичных запросов.
5176
- * @param params Дополнительные параметры запроса.
5177
- */
5178
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5179
- getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5180
- const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? Q.getCachedResponse(c) : void 0;
5181
- return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5182
- const m = h.map((f) => Fe.instanceInitializer(e, f));
5183
- return i && m && this.cacheResponse(s, m), m;
5184
- });
5185
- }
5186
- };
5187
- /**
5188
- * Кэш результатов запросов.
5189
- */
5190
- t(Q, "responseDataCache", /* @__PURE__ */ new Map());
5191
- let pe = Q;
5192
- class cs extends p {
5136
+ class os extends h {
5193
5137
  /**
5194
5138
  * Выполняет проверку занят ли указанный номер телефона.
5195
5139
  *
@@ -5203,7 +5147,7 @@ class cs extends p {
5203
5147
  });
5204
5148
  }
5205
5149
  }
5206
- class ls {
5150
+ class cs {
5207
5151
  /**
5208
5152
  * Инициализирует экземпляр класса {@link VersionConfig}.
5209
5153
  *
@@ -5225,8 +5169,8 @@ class ls {
5225
5169
  this.date = v(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5226
5170
  }
5227
5171
  }
5228
- var Dt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Dt || {});
5229
- class us extends p {
5172
+ var Rt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Rt || {});
5173
+ class ls extends h {
5230
5174
  /**
5231
5175
  * Возвращает настройки указанного конфигуратора для указанной категории.
5232
5176
  *
@@ -5317,7 +5261,74 @@ class us extends p {
5317
5261
  });
5318
5262
  }
5319
5263
  }
5264
+ class Pt {
5265
+ /**
5266
+ * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5267
+ *
5268
+ * @param data Данные для первоначальной инициализации.
5269
+ */
5270
+ constructor(r) {
5271
+ /**
5272
+ * Номер текущей страницы.
5273
+ */
5274
+ t(this, "page", 1);
5275
+ /**
5276
+ * Количество записей на странице.
5277
+ */
5278
+ t(this, "pageSize", 50);
5279
+ this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5280
+ }
5281
+ }
5282
+ class us extends Pt {
5283
+ /**
5284
+ * Инициализирует экземпляр класса {@link TableDataPagination}.
5285
+ *
5286
+ * @param data Данные для первоначальной инициализации.
5287
+ */
5288
+ constructor(e) {
5289
+ super(e);
5290
+ /**
5291
+ * Количество записей в таблице.
5292
+ */
5293
+ t(this, "itemCount", 0);
5294
+ /**
5295
+ * Число страниц с данными.
5296
+ */
5297
+ t(this, "pageCount", 1);
5298
+ /**
5299
+ * Число отображаемых номеров страниц.
5300
+ */
5301
+ t(this, "pageSlot", 5);
5302
+ /**
5303
+ * Значения для выпадающего списка "Количество записей на странице".
5304
+ */
5305
+ t(this, "pageSizes", [25, 50, 100]);
5306
+ /**
5307
+ * Признак необходимости отображать список выбора числа отображаемых записей.
5308
+ */
5309
+ t(this, "showSizePicker", !0);
5310
+ this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
5311
+ }
5312
+ }
5320
5313
  class ps {
5314
+ /**
5315
+ * Инициализирует экземпляр класса {@link ISortRequestParams}.
5316
+ *
5317
+ * @param data Данные для первоначальной инициализации.
5318
+ */
5319
+ constructor(r) {
5320
+ /**
5321
+ * Поле по которому необходимо выполнить сортировку
5322
+ */
5323
+ t(this, "field");
5324
+ /**
5325
+ * Направление сортировки.
5326
+ */
5327
+ t(this, "direction");
5328
+ this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
5329
+ }
5330
+ }
5331
+ class hs {
5321
5332
  /**
5322
5333
  * Возвращает диапазон дат по умолчанию.
5323
5334
  */
@@ -5326,13 +5337,13 @@ class ps {
5326
5337
  return {
5327
5338
  // 'Следующий рабочий день' - это значение по-умолчанию
5328
5339
  nextWorkingDay: { label: "Следующий рабочий день", from: Vr(r), to: Er(r) },
5329
- today: { label: "Сегодня", from: Oe(), to: Jr() },
5340
+ today: { label: "Сегодня", from: _e(), to: Jr() },
5330
5341
  yesterday: { label: "Вчера", from: Wr(), to: zr() },
5331
5342
  tomorrow: { label: "Завтра", from: Br(), to: Gr() }
5332
5343
  };
5333
5344
  }
5334
5345
  }
5335
- class Ir {
5346
+ class Sr {
5336
5347
  /**
5337
5348
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5338
5349
  *
@@ -5348,7 +5359,7 @@ class Ir {
5348
5359
  */
5349
5360
  static getProductMultiplicity(r) {
5350
5361
  var e, s;
5351
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Ir.productIsMeasurable(r) ? r.properties.minCount : 1;
5362
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Sr.productIsMeasurable(r) ? r.properties.minCount : 1;
5352
5363
  }
5353
5364
  /**
5354
5365
  * Возвращает кратность длины для указанного товара.
@@ -5360,11 +5371,70 @@ class Ir {
5360
5371
  return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((s = r.properties) != null && s.ignoreMinCountCheck) && ((i = r.properties) != null && i.minCount) ? r.properties.minCount : 0.01;
5361
5372
  }
5362
5373
  }
5363
- function hs(n, r) {
5374
+ const Y = class Y extends h {
5375
+ /**
5376
+ * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5377
+ */
5378
+ constructor() {
5379
+ super();
5380
+ /**
5381
+ * Время кэширования данных ответов на запросы (секунд).
5382
+ */
5383
+ t(this, "responseDataCacheTimeout");
5384
+ this.responseDataCacheTimeout = L().config.http.responseDataCacheTimeout;
5385
+ }
5386
+ /**
5387
+ * Возвращает кэшированные данные.
5388
+ * Если кэшированные данные отсутствуют, то вернет undefined.
5389
+ *
5390
+ * @param key Ключ запроса.
5391
+ */
5392
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5393
+ static getCachedResponse(e) {
5394
+ const s = Y.responseDataCache.get(e);
5395
+ if (s && s.validTo > /* @__PURE__ */ new Date())
5396
+ return s.val;
5397
+ }
5398
+ /**
5399
+ * Сохраняет указанные данные из запроса в кэш результатов.
5400
+ *
5401
+ * @param url URL запроса.
5402
+ * @param data Данные для кэширования.
5403
+ */
5404
+ cacheResponse(e, s) {
5405
+ Y.responseDataCache.set(e, {
5406
+ validTo: Kr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5407
+ val: s
5408
+ });
5409
+ }
5410
+ /**
5411
+ * Возвращает {@link Promise} типизированного результата выполнения запроса.
5412
+ *
5413
+ * @param type Тип возвращаемых данных.
5414
+ * @param url URL запроса для получения данных.
5415
+ * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5416
+ * и использовать в случае аналогичных запросов.
5417
+ * @param params Дополнительные параметры запроса.
5418
+ */
5419
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5420
+ getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5421
+ const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? Y.getCachedResponse(c) : void 0;
5422
+ return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
5423
+ const m = p.map((f) => Ge.instanceInitializer(e, f));
5424
+ return i && m && this.cacheResponse(s, m), m;
5425
+ });
5426
+ }
5427
+ };
5428
+ /**
5429
+ * Кэш результатов запросов.
5430
+ */
5431
+ t(Y, "responseDataCache", /* @__PURE__ */ new Map());
5432
+ let he = Y;
5433
+ function gs(n, r) {
5364
5434
  const e = [2, 0, 1, 1, 1, 2];
5365
5435
  return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
5366
5436
  }
5367
- class gs {
5437
+ class ms {
5368
5438
  /**
5369
5439
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5370
5440
  */
@@ -5380,26 +5450,26 @@ class gs {
5380
5450
  return r.id === 0 && r.guid === "-undefined-";
5381
5451
  }
5382
5452
  }
5383
- class Tt extends pe {
5453
+ class At extends he {
5384
5454
  /**
5385
5455
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5386
5456
  */
5387
5457
  async getManagers() {
5388
- const r = "/internal/managers", e = pe.getCachedResponse(r);
5458
+ const r = "/internal/managers", e = he.getCachedResponse(r);
5389
5459
  if (e)
5390
5460
  return e;
5391
- const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(fe, o));
5461
+ const i = (await this.get(r)).data.map((o) => Ge.instanceInitializer(fe, o));
5392
5462
  return this.cacheResponse(r, i), i;
5393
5463
  }
5394
5464
  }
5395
- class Lr extends kr {
5465
+ class kr extends br {
5396
5466
  /**
5397
5467
  * Инициализирует экземпляр класса {@link OrderInfo}.
5398
5468
  *
5399
5469
  * @param data Данные для первоначальной инициализации.
5400
5470
  */
5401
5471
  constructor(e) {
5402
- var s, i, o, c, u, h, m, f;
5472
+ var s, i, o, c, u, p, m, f;
5403
5473
  super(e);
5404
5474
  /**
5405
5475
  * @inheritDoc
@@ -5449,518 +5519,128 @@ class Lr extends kr {
5449
5519
  * @inheritDoc
5450
5520
  */
5451
5521
  t(this, "isLargeOrder");
5452
- this.client = new re(e == null ? void 0 : e.client), this.payment = {
5522
+ this.client = new se(e == null ? void 0 : e.client), this.payment = {
5453
5523
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5454
5524
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5455
5525
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5456
5526
  }, this.delivery = {
5457
5527
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5458
- date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5528
+ date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5459
5529
  address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Re(e.delivery.address) : void 0,
5460
- warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ge(e.delivery.warehouse) : void 0
5461
- }, this.attachedUser = e != null && e.attachedUser ? new x(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5530
+ warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new me(e.delivery.warehouse) : void 0
5531
+ }, this.attachedUser = e != null && e.attachedUser ? new d(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5462
5532
  }
5463
5533
  }
5464
- var $t = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))($t || {});
5465
- class b extends pe {
5534
+ class Ir extends R {
5535
+ }
5536
+ class Lr extends R {
5537
+ }
5538
+ class fs extends Tr {
5466
5539
  /**
5467
- * Возвращает {@link Promise} для получения данных указанного справочника.
5540
+ * Инициализирует экземпляр класса {@link OrdersListFilters}.
5468
5541
  *
5469
- * @param referenceName Название справочника.
5470
- * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5471
- * и использовать в случае аналогичных запросов.
5472
- */
5473
- getReference(r, e = !1) {
5474
- return this.getTypedDataArrayRequester(gt, `/internal/references/${r}`, e);
5475
- }
5476
- /**
5477
- * Возвращает {@link Promise} для получения справочника данных о канале
5478
- * первичного интереса.
5479
- */
5480
- getChannelPrimaryInterest() {
5481
- return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
5482
- }
5483
- /**
5484
- * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5485
- */
5486
- getContactPositions() {
5487
- return this.getTypedDataArrayRequester(mt, "/internal/references/contact-position", !0);
5488
- }
5489
- /**
5490
- * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
5491
- */
5492
- getCuratedDirection() {
5493
- return this.getTypedDataArrayRequester(Be, "/internal/references/curated-direction", !0);
5494
- }
5495
- /**
5496
- * Возвращает {@link Promise} для получения справочника списка валют.
5542
+ * @param data Данные для первоначальной инициализации.
5497
5543
  */
5498
- getCurrency() {
5499
- return this.getTypedDataArrayRequester(a, "/public/references/currency", !0);
5500
- }
5501
- /**
5502
- * Возвращает {@link Promise} для получения справочника данных
5503
- * групп партнеров (направлений деятельности).
5504
- */
5505
- getPartnerGroup() {
5506
- return this.getTypedDataArrayRequester(Z, "/internal/references/partner-group", !0);
5507
- }
5508
- /**
5509
- * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
5510
- */
5511
- getOpf() {
5512
- return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
5513
- }
5514
- /**
5515
- * Возвращает {@link Promise} для получения справочника операторов.
5516
- */
5517
- getOperators() {
5518
- return this.getTypedDataArrayRequester(Rr, "/internal/references/operator", !0);
5519
- }
5520
- /**
5521
- * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5522
- */
5523
- getOrderPaymentStatuses() {
5524
- return this.getTypedDataArrayRequester(ft, "/public/references/order-payment-status", !0);
5525
- }
5526
- /**
5527
- * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5528
- */
5529
- getOrderStatuses() {
5530
- return this.getTypedDataArrayRequester(yt, "/internal/references/order-status", !0);
5531
- }
5532
- /**
5533
- * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5534
- */
5535
- getPaymentTypes() {
5536
- return this.getTypedDataArrayRequester(Pr, "/public/references/payment-type", !0);
5537
- }
5538
- /**
5539
- * Возвращает {@link Promise} для получения справочника типов ресурсов.
5540
- */
5541
- getResourceTypes() {
5542
- return this.getTypedDataArrayRequester(Ar, "/internal/references/resource-type", !0);
5543
- }
5544
- /**
5545
- * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5546
- */
5547
- getSalesDirections() {
5548
- return this.getTypedDataArrayRequester(O, "/public/references/sales-direction", !0);
5549
- }
5550
- /**
5551
- * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5552
- */
5553
- getSourcePrimaryInterest() {
5554
- return this.getTypedDataArrayRequester(Dr, "/internal/references/source-primary-interest", !0);
5555
- }
5556
- /**
5557
- * Выполняет поиск данных о городах по терму в названии.
5558
- *
5559
- * @param term Терм поиска.
5560
- */
5561
- searchCity(r) {
5562
- return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
5563
- }
5564
- /**
5565
- * Выполняет поиск данных о регионах по терму в названии.
5566
- *
5567
- * @param term Терм поиска.
5568
- */
5569
- searchRegion(r) {
5570
- return this.getTypedDataArrayRequester(ue, `/internal/references/region-with-country/search?term=${r}`);
5571
- }
5572
- /**
5573
- * Выполняет поиск данных о странах по терму в названии.
5574
- *
5575
- * @param term Терм поиска.
5576
- */
5577
- searchCountry(r) {
5578
- return this.getTypedDataArrayRequester(X, `/internal/references/country/search?term=${r}`);
5579
- }
5580
- /**
5581
- * Возвращает {@link Promise} для получения справочника типов доставки.
5582
- */
5583
- getDeliveryTypes() {
5584
- return this.getTypedDataArrayRequester(N, "/internal/references/delivery-type", !0);
5585
- }
5586
- /**
5587
- * Возвращает {@link Promise} для получения справочника складов.
5588
- */
5589
- getWarehouses() {
5590
- return this.getTypedDataArrayRequester(ge, "/public/references/warehouse", !0);
5591
- }
5592
- /**
5593
- * Возвращает {@link Promise} для получения справочника типов свойств.
5594
- */
5595
- getPropertyTypes() {
5596
- return this.getTypedDataArrayRequester(vr, "/internal/references/property-type", !0);
5597
- }
5598
- /**
5599
- * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5600
- */
5601
- getPriceCoefficients() {
5602
- return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
5603
- }
5604
- /**
5605
- * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5606
- */
5607
- getProductFileType() {
5608
- return this.getTypedDataArrayRequester(wt, "/public/references/product-file-type", !0);
5609
- }
5610
- }
5611
- const $ = z("common.references_private", () => {
5612
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), te = y(void 0), se = y(void 0), W = y(void 0), J = y(void 0), Te = y(void 0), $e = y(void 0), l = y(void 0);
5613
- return {
5614
- /**
5615
- * Список загружаемых/загруженных на данный момент значений.
5616
- */
5617
- dataLoaderList: n,
5618
- /**
5619
- * Справочник каналов первичного интереса.
5620
- */
5621
- channelPrimaryInterestReference: r,
5622
- /**
5623
- * Справочник должностей контактных лиц.
5624
- */
5625
- contactPositionsReference: e,
5626
- /**
5627
- * Справочник валют.
5628
- */
5629
- currencyReference: s,
5630
- /**
5631
- * Справочник типов доставки.
5632
- */
5633
- deliveryTypeReference: i,
5544
+ constructor(e) {
5545
+ var s, i, o, c;
5546
+ super();
5634
5547
  /**
5635
- * Список менеджеров.
5548
+ * @inheritDoc
5636
5549
  */
5637
- managersList: o,
5550
+ t(this, "attachedUsers");
5638
5551
  /**
5639
- * Справочник организационно-правовых форм.
5552
+ * @inheritDoc
5640
5553
  */
5641
- opfReference: c,
5554
+ t(this, "clientSearchTerm");
5642
5555
  /**
5643
- * Справочник операторов.
5556
+ * @inheritDoc
5644
5557
  */
5645
- operatorReference: u,
5558
+ t(this, "client");
5646
5559
  /**
5647
- * Справочник статусов оплаты заказа.
5560
+ * @inheritDoc
5648
5561
  */
5649
- orderPaymentStatusReference: h,
5562
+ t(this, "contragent");
5650
5563
  /**
5651
- * Справочник статусов заказов.
5564
+ * @inheritDoc
5652
5565
  */
5653
- orderStatusReference: m,
5566
+ t(this, "createdAt", new $());
5654
5567
  /**
5655
- * Справочник типов оплаты заказов.
5568
+ * @inheritDoc
5656
5569
  */
5657
- paymentTypeReference: f,
5570
+ t(this, "creator");
5658
5571
  /**
5659
- * Справочник групп партнеров.
5572
+ * @inheritDoc
5660
5573
  */
5661
- partnerGroupReference: D,
5574
+ t(this, "deliveryDate", new $());
5662
5575
  /**
5663
- * Справочник типов файлов продукктов/категорий.
5576
+ * @inheritDoc
5664
5577
  */
5665
- productFileTypeReference: te,
5578
+ t(this, "deliveryAddressSearch");
5666
5579
  /**
5667
- * Справочник типов ресурсов.
5580
+ * @inheritDoc
5668
5581
  */
5669
- resourceTypesReference: se,
5582
+ t(this, "clientCities");
5670
5583
  /**
5671
- * Справочник направлений продаж.
5584
+ * @inheritDoc
5672
5585
  */
5673
- salesDirectionsReference: W,
5586
+ t(this, "id");
5674
5587
  /**
5675
- * Справочник источников первичного интереса.
5588
+ * @inheritDoc
5676
5589
  */
5677
- sourcePrimaryInterestReference: J,
5590
+ t(this, "isApproved");
5678
5591
  /**
5679
- * Справочник складов.
5592
+ * @inheritDoc
5680
5593
  */
5681
- warehousesReference: Te,
5594
+ t(this, "isApproved1c");
5682
5595
  /**
5683
- * Справочник типов свойств.
5596
+ * @inheritDoc
5684
5597
  */
5685
- propertyTypesReference: $e,
5598
+ t(this, "isNotInStock");
5686
5599
  /**
5687
- * Справочник коэффициентов цен.
5600
+ * @inheritDoc
5688
5601
  */
5689
- priceCoefficientsReference: l
5690
- };
5691
- }), ms = z("common.references", () => {
5692
- const n = A(() => {
5693
- const l = $();
5694
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(b).getChannelPrimaryInterest().then((g) => {
5695
- l.channelPrimaryInterestReference = g;
5696
- }).catch(w)), l.channelPrimaryInterestReference;
5697
- }), r = A(() => {
5698
- const l = $();
5699
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(b).getContactPositions().then((g) => {
5700
- l.contactPositionsReference = g;
5701
- }).catch(w)), l.contactPositionsReference;
5702
- }), e = A(() => {
5703
- const l = $();
5704
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(b).getCurrency().then((g) => {
5705
- l.currencyReference = g;
5706
- }).catch(w)), l.currencyReference;
5707
- }), s = A(() => {
5708
- const l = $();
5709
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(b).getOpf().then((g) => {
5710
- l.opfReference = g;
5711
- }).catch(w)), l.opfReference;
5712
- }), i = A(() => {
5713
- const l = $();
5714
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, p.getInstance(b).getOperators().then((g) => {
5715
- l.operatorReference = g;
5716
- }).catch(w)), l.operatorReference;
5717
- }), o = A(() => {
5718
- const l = $();
5719
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(b).getOrderPaymentStatuses().then((g) => {
5720
- l.orderPaymentStatusReference = g;
5721
- }).catch(w)), l.orderPaymentStatusReference;
5722
- }), c = A(() => {
5723
- const l = $();
5724
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(b).getOrderStatuses().then((g) => {
5725
- l.orderStatusReference = g;
5726
- }).catch(w)), l.orderStatusReference;
5727
- }), u = A(() => {
5728
- const l = $();
5729
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(b).getPaymentTypes().then((g) => {
5730
- l.paymentTypeReference = g;
5731
- }).catch(w)), l.paymentTypeReference;
5732
- }), h = A(() => {
5733
- const l = $();
5734
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(b).getPartnerGroup().then((g) => {
5735
- l.partnerGroupReference = g;
5736
- }).catch(w)), l.partnerGroupReference;
5737
- }), m = A(() => {
5738
- const l = $();
5739
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(b).getProductFileType().then((g) => {
5740
- l.productFileTypeReference = g;
5741
- }).catch(w)), l.productFileTypeReference;
5742
- }), f = A(() => {
5743
- const l = $();
5744
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(b).getResourceTypes().then((g) => {
5745
- l.resourceTypesReference = g;
5746
- }).catch(w)), l.resourceTypesReference;
5747
- }), D = A(() => {
5748
- const l = $();
5749
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(b).getSalesDirections().then((g) => {
5750
- l.salesDirectionsReference = g;
5751
- }).catch(w)), l.salesDirectionsReference;
5752
- }), te = A(() => {
5753
- const l = $();
5754
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(b).getSourcePrimaryInterest().then((g) => {
5755
- l.sourcePrimaryInterestReference = g;
5756
- }).catch(w)), l.sourcePrimaryInterestReference;
5757
- }), se = A(() => {
5758
- const l = $();
5759
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(b).getDeliveryTypes().then((g) => {
5760
- l.deliveryTypeReference = g;
5761
- }).catch(w)), l.deliveryTypeReference;
5762
- }), W = A(() => {
5763
- const l = $();
5764
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Tt).getManagers().then((g) => {
5765
- l.managersList = g;
5766
- }).catch(w)), l.managersList;
5767
- }), J = A(() => {
5768
- const l = $();
5769
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(b).getWarehouses().then((g) => {
5770
- l.warehousesReference = g;
5771
- }).catch(w)), l.warehousesReference;
5772
- }), Te = A(() => {
5773
- const l = $();
5774
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(b).getPropertyTypes().then((g) => {
5775
- l.propertyTypesReference = g;
5776
- }).catch(w)), l.propertyTypesReference;
5777
- }), $e = A(() => {
5778
- const l = $();
5779
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(b).getPriceCoefficients().then((g) => {
5780
- l.priceCoefficientsReference = g;
5781
- }).catch(w)), l.priceCoefficientsReference;
5782
- });
5783
- return {
5602
+ t(this, "isOnOrder");
5784
5603
  /**
5785
- * Справочник каналов первичного интереса.
5604
+ * @inheritDoc
5786
5605
  */
5787
- channelPrimaryInterestsReference: n,
5606
+ t(this, "pendingAt", new $());
5788
5607
  /**
5789
- * Справочник должностей контактных лиц.
5608
+ * @inheritDoc
5790
5609
  */
5791
- contactPositionsReference: r,
5610
+ t(this, "processedAt", new $());
5792
5611
  /**
5793
- * Справочник валют.
5612
+ * @inheritDoc
5794
5613
  */
5795
- currencyReference: e,
5614
+ t(this, "salesDirections");
5796
5615
  /**
5797
- * Справочник организационно-правовых форм.
5616
+ * @inheritDoc
5798
5617
  */
5799
- opfReference: s,
5618
+ t(this, "status");
5800
5619
  /**
5801
- * Справочник операторов.
5620
+ * @inheritDoc
5802
5621
  */
5803
- operatorReference: i,
5622
+ t(this, "deliveryType");
5804
5623
  /**
5805
- * Справочник статусов оплаты заказа.
5624
+ * @inheritDoc
5806
5625
  */
5807
- orderPaymentStatusReference: o,
5626
+ t(this, "paymentType");
5808
5627
  /**
5809
- * Справочник статусов заказов.
5628
+ * @inheritDoc
5810
5629
  */
5811
- orderStatusReference: c,
5630
+ t(this, "warehouses");
5812
5631
  /**
5813
- * Справочник типов оплаты заказов.
5632
+ * @inheritDoc
5814
5633
  */
5815
- paymentTypeReference: u,
5634
+ t(this, "isLargeOrder");
5816
5635
  /**
5817
- * Справочник групп партнеров.
5636
+ * @inheritDoc
5818
5637
  */
5819
- partnerGroupsReference: h,
5638
+ t(this, "isToProcess");
5820
5639
  /**
5821
- * Справочник типов файлов продуктов/категорий.
5822
- */
5823
- productFilesTypesReference: m,
5824
- /**
5825
- * Справочник типов ресурсов.
5826
- */
5827
- resourceTypesReference: f,
5828
- /**
5829
- * Справочник направлений продаж.
5830
- */
5831
- salesDirectionsReference: D,
5832
- /**
5833
- * Справочник каналов первичного интереса.
5834
- */
5835
- sourcePrimaryInterestsReference: te,
5836
- /**
5837
- * Справочник типов доставки.
5838
- */
5839
- deliveryTypeReference: se,
5840
- /**
5841
- * Список менеджеров.
5842
- */
5843
- managersList: W,
5844
- /**
5845
- * Справочник складов.
5846
- */
5847
- warehousesReference: J,
5848
- /**
5849
- * Справочник типов свойств.
5850
- */
5851
- propertyTypesReference: Te,
5852
- /**
5853
- * Справочник коэффициентов цен.
5854
- */
5855
- priceCoefficientsReference: $e
5856
- };
5857
- });
5858
- class fs extends Sr {
5859
- /**
5860
- * Инициализирует экземпляр класса {@link OrdersListFilters}.
5861
- *
5862
- * @param data Данные для первоначальной инициализации.
5863
- */
5864
- constructor(e) {
5865
- var s, i, o, c;
5866
- super();
5867
- /**
5868
- * @inheritDoc
5869
- */
5870
- t(this, "attachedUsers");
5871
- /**
5872
- * @inheritDoc
5873
- */
5874
- t(this, "clientSearchTerm");
5875
- /**
5876
- * @inheritDoc
5877
- */
5878
- t(this, "client");
5879
- /**
5880
- * @inheritDoc
5881
- */
5882
- t(this, "contragent");
5883
- /**
5884
- * @inheritDoc
5885
- */
5886
- t(this, "createdAt", new S());
5887
- /**
5888
- * @inheritDoc
5889
- */
5890
- t(this, "creator");
5891
- /**
5892
- * @inheritDoc
5893
- */
5894
- t(this, "deliveryDate", new S());
5895
- /**
5896
- * @inheritDoc
5897
- */
5898
- t(this, "deliveryAddressSearch");
5899
- /**
5900
- * @inheritDoc
5901
- */
5902
- t(this, "clientCities");
5903
- /**
5904
- * @inheritDoc
5905
- */
5906
- t(this, "id");
5907
- /**
5908
- * @inheritDoc
5909
- */
5910
- t(this, "isApproved");
5911
- /**
5912
- * @inheritDoc
5913
- */
5914
- t(this, "isApproved1c");
5915
- /**
5916
- * @inheritDoc
5917
- */
5918
- t(this, "isNotInStock");
5919
- /**
5920
- * @inheritDoc
5921
- */
5922
- t(this, "isOnOrder");
5923
- /**
5924
- * @inheritDoc
5925
- */
5926
- t(this, "pendingAt", new S());
5927
- /**
5928
- * @inheritDoc
5929
- */
5930
- t(this, "processedAt", new S());
5931
- /**
5932
- * @inheritDoc
5933
- */
5934
- t(this, "salesDirections");
5935
- /**
5936
- * @inheritDoc
5937
- */
5938
- t(this, "status");
5939
- /**
5940
- * @inheritDoc
5941
- */
5942
- t(this, "deliveryType");
5943
- /**
5944
- * @inheritDoc
5945
- */
5946
- t(this, "paymentType");
5947
- /**
5948
- * @inheritDoc
5949
- */
5950
- t(this, "warehouses");
5951
- /**
5952
- * @inheritDoc
5953
- */
5954
- t(this, "isLargeOrder");
5955
- /**
5956
- * @inheritDoc
5957
- */
5958
- t(this, "isToProcess");
5959
- /**
5960
- * @inheritDoc
5640
+ * @inheritDoc
5961
5641
  */
5962
5642
  t(this, "onlyMyRegions");
5963
- this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new fe(u) : new Rr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new re(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new x(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.pendingAt = new S(e == null ? void 0 : e.pendingAt), this.processedAt = new S(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new O(u)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new N(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Pr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ge(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
5643
+ this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new fe(u) : new Ir(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new se(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new $(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new d(e.creator) : void 0, this.deliveryDate = new $(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.pendingAt = new $(e == null ? void 0 : e.pendingAt), this.processedAt = new $(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new U(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Lr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
5964
5644
  }
5965
5645
  /**
5966
5646
  * @inheritDoc
@@ -5977,7 +5657,7 @@ class fs extends Sr {
5977
5657
  this.deliveryDate.from = null, this.deliveryDate.to = null;
5978
5658
  break;
5979
5659
  case "deliveryType":
5980
- this.deliveryType = new N();
5660
+ this.deliveryType = new U();
5981
5661
  break;
5982
5662
  case "clientCities":
5983
5663
  this.clientCities = [];
@@ -6007,12 +5687,12 @@ class fs extends Sr {
6007
5687
  * @inheritDoc
6008
5688
  */
6009
5689
  asClearRaw() {
6010
- var s, i, o, c, u, h, m, f;
5690
+ var s, i, o, c, u, p, m, f;
6011
5691
  const e = super.asClearRaw();
6012
- return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.pendingAt) != null && u.from) && !((h = e == null ? void 0 : e.pendingAt) != null && h.to) && delete e.pendingAt, !((m = e == null ? void 0 : e.processedAt) != null && m.from) && !((f = e == null ? void 0 : e.processedAt) != null && f.to) && delete e.processedAt, e;
5692
+ return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.pendingAt) != null && u.from) && !((p = e == null ? void 0 : e.pendingAt) != null && p.to) && delete e.pendingAt, !((m = e == null ? void 0 : e.processedAt) != null && m.from) && !((f = e == null ? void 0 : e.processedAt) != null && f.to) && delete e.processedAt, e;
6013
5693
  }
6014
5694
  }
6015
- class bt extends gr {
5695
+ class Dt extends mr {
6016
5696
  /**
6017
5697
  * Инициализирует экземпляр класса {@link OrderItem}.
6018
5698
  *
@@ -6060,10 +5740,10 @@ class bt extends gr {
6060
5740
  * @inheritDoc
6061
5741
  */
6062
5742
  t(this, "currency");
6063
- this.product = new M(e.product), this.currency = new a(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 = e.sawing;
5743
+ this.product = new M(e.product), this.currency = new _(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 = e.sawing;
6064
5744
  }
6065
5745
  }
6066
- class Le extends Lr {
5746
+ class Le extends kr {
6067
5747
  /**
6068
5748
  * Инициализирует экземпляр класса {@link Order}.
6069
5749
  *
@@ -6103,7 +5783,7 @@ class Le extends Lr {
6103
5783
  * @inheritDoc
6104
5784
  */
6105
5785
  t(this, "isAllowProcessingWithoutPayment");
6106
- this.products = (e.products ?? []).map((s) => new bt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5786
+ this.products = (e.products ?? []).map((s) => new Dt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
6107
5787
  }
6108
5788
  }
6109
5789
  class ys extends De {
@@ -6126,7 +5806,7 @@ class ys extends De {
6126
5806
  {},
6127
5807
  (o) => {
6128
5808
  const c = { ...o.data };
6129
- return c.data = c.data.map((u) => new Lr(u)), c;
5809
+ return c.data = c.data.map((u) => new kr(u)), c;
6130
5810
  },
6131
5811
  void 0,
6132
5812
  i
@@ -6227,7 +5907,7 @@ class ys extends De {
6227
5907
  );
6228
5908
  }
6229
5909
  }
6230
- class de {
5910
+ class xe {
6231
5911
  /**
6232
5912
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
6233
5913
  *
@@ -6254,12 +5934,12 @@ class de {
6254
5934
  * Источник клиентской цены.
6255
5935
  */
6256
5936
  t(this, "source");
6257
- this.client = new re(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? je.Product;
5937
+ this.client = new se(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? je.Product;
6258
5938
  }
6259
5939
  }
6260
- const xe = (n) => {
5940
+ const Oe = (n) => {
6261
5941
  var r, e, s, i, o;
6262
- return n ? or(
5942
+ return n ? lr(
6263
5943
  {
6264
5944
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
6265
5945
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -6268,13 +5948,13 @@ const xe = (n) => {
6268
5948
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
6269
5949
  hideNotActive: n.hideNotActive
6270
5950
  },
6271
- (c) => T(c) || (H(c) || cr(c)) && Y(c)
5951
+ (c) => T(c) || (H(c) || He(c)) && X(c)
6272
5952
  ) : {};
6273
- }, rr = (n) => {
5953
+ }, sr = (n) => {
6274
5954
  const r = {};
6275
5955
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
6276
5956
  };
6277
- class ws extends p {
5957
+ class ws extends h {
6278
5958
  /**
6279
5959
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6280
5960
  *
@@ -6288,10 +5968,10 @@ class ws extends p {
6288
5968
  return this.get(
6289
5969
  `/internal/price/products/${r}/analyze`,
6290
5970
  {
6291
- ...rr(e),
6292
- filters: xe(s)
5971
+ ...sr(e),
5972
+ filters: Oe(s)
6293
5973
  },
6294
- (i) => i.data.map((o) => new de(o))
5974
+ (i) => i.data.map((o) => new xe(o))
6295
5975
  );
6296
5976
  }
6297
5977
  /**
@@ -6307,10 +5987,10 @@ class ws extends p {
6307
5987
  return this.get(
6308
5988
  `/internal/price/categories/${r}/analyze`,
6309
5989
  {
6310
- ...rr(e),
6311
- filters: xe(s)
5990
+ ...sr(e),
5991
+ filters: Oe(s)
6312
5992
  },
6313
- (i) => i.data.map((o) => new de(o))
5993
+ (i) => i.data.map((o) => new xe(o))
6314
5994
  );
6315
5995
  }
6316
5996
  /**
@@ -6329,13 +6009,13 @@ class ws extends p {
6329
6009
  `/internal/price/categories/${r}/analyze/square`,
6330
6010
  {
6331
6011
  ...e,
6332
- filters: xe(s)
6012
+ filters: Oe(s)
6333
6013
  },
6334
- (i) => i.data.map((o) => new de(o))
6014
+ (i) => i.data.map((o) => new xe(o))
6335
6015
  );
6336
6016
  }
6337
6017
  }
6338
- class St {
6018
+ class $t {
6339
6019
  /**
6340
6020
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
6341
6021
  *
@@ -6382,10 +6062,10 @@ class St {
6382
6062
  * @inheritDoc
6383
6063
  */
6384
6064
  t(this, "currency");
6385
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new le(r.product) : void 0, this.client = r.client ? new x(r.client) : void 0, this.executor = r.executor ? new x(r.executor) : void 0, this.currency = r.currency ? new a(r.currency) : void 0;
6065
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ue(r.product) : void 0, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new _(r.currency) : void 0;
6386
6066
  }
6387
6067
  }
6388
- class kt extends le {
6068
+ class Tt extends ue {
6389
6069
  /**
6390
6070
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6391
6071
  *
@@ -6397,10 +6077,10 @@ class kt extends le {
6397
6077
  * @inheritDoc
6398
6078
  */
6399
6079
  t(this, "history");
6400
- this.history = he(e.history, (s) => new St(s));
6080
+ this.history = ge(e.history, (s) => new $t(s));
6401
6081
  }
6402
6082
  }
6403
- class vs extends p {
6083
+ class vs extends h {
6404
6084
  /**
6405
6085
  * Возвращает данные об истории изменения цен.
6406
6086
  *
@@ -6409,22 +6089,22 @@ class vs extends p {
6409
6089
  * @see /docs/api#/operations/api_internal_price_history_get
6410
6090
  */
6411
6091
  getProductPriceHistory(r) {
6412
- var o, c, u, h, m;
6413
- const e = L().config.dateFormats.api, s = or(
6414
- ce(r, {
6092
+ var o, c, u, p, m;
6093
+ const e = L().config.dateFormats.api, s = lr(
6094
+ le(r, {
6415
6095
  costDate: {
6416
- from: ae((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6417
- to: ae((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
6096
+ from: de((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6097
+ to: de((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6418
6098
  }
6419
6099
  }),
6420
- (f) => T(f) || (H(f) || cr(f)) && Y(f)
6100
+ (f) => T(f) || (H(f) || He(f)) && X(f)
6421
6101
  ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6422
6102
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((f) => [
6423
- new kt(ce(f[0], { history: f }))
6103
+ new Tt(le(f[0], { history: f }))
6424
6104
  ]);
6425
6105
  }
6426
6106
  }
6427
- class tr {
6107
+ class ir {
6428
6108
  /**
6429
6109
  * Инициализирует экземпляр класса {@link RecommendationsList}.
6430
6110
  *
@@ -6439,10 +6119,10 @@ class tr {
6439
6119
  * Список рекомендованных категорий продуктов.
6440
6120
  */
6441
6121
  t(this, "productCategories", []);
6442
- r != null && r.products && (this.products = r.products.map((e) => new le(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new le(e)));
6122
+ r != null && r.products && (this.products = r.products.map((e) => new ue(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ue(e)));
6443
6123
  }
6444
6124
  }
6445
- class Cs extends p {
6125
+ class Cs extends h {
6446
6126
  /**
6447
6127
  * Возвращает данные о рекомендациях указанной категории продуктов.
6448
6128
  *
@@ -6450,7 +6130,7 @@ class Cs extends p {
6450
6130
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
6451
6131
  */
6452
6132
  getProductCategoryRecommendations(r) {
6453
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new tr(e.data));
6133
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new ir(e.data));
6454
6134
  }
6455
6135
  /**
6456
6136
  * Возвращает данные о рекомендациях указанного продукта.
@@ -6459,7 +6139,7 @@ class Cs extends p {
6459
6139
  * @see /docs/api#/operations/api_internal_recommendations_product_get
6460
6140
  */
6461
6141
  getProductRecommendations(r) {
6462
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new tr(e.data));
6142
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new ir(e.data));
6463
6143
  }
6464
6144
  /**
6465
6145
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -6488,7 +6168,434 @@ class Cs extends p {
6488
6168
  });
6489
6169
  }
6490
6170
  }
6491
- class It {
6171
+ var bt = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))(bt || {});
6172
+ class St extends R {
6173
+ }
6174
+ class Rs extends R {
6175
+ }
6176
+ class kt extends R {
6177
+ }
6178
+ class It extends R {
6179
+ }
6180
+ class Lt extends R {
6181
+ }
6182
+ class xt extends R {
6183
+ }
6184
+ class Ps {
6185
+ /**
6186
+ * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
6187
+ *
6188
+ * @param Ctor Конструктор конкретного класса справочника.
6189
+ * @param name Название записи.
6190
+ */
6191
+ static generateUndefinedInstance(r, e = "- Не определён -") {
6192
+ return new r({ id: 0, name: e, slug: "-undefined-" });
6193
+ }
6194
+ /**
6195
+ * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённой записи справочника.
6196
+ *
6197
+ * @param reference Запись для проверки.
6198
+ */
6199
+ static isUndefinedInstance(r) {
6200
+ return r.id === 0 && r.slug === "-undefined-";
6201
+ }
6202
+ }
6203
+ class xr extends R {
6204
+ }
6205
+ class S extends he {
6206
+ /**
6207
+ * Возвращает {@link Promise} для получения данных указанного справочника.
6208
+ *
6209
+ * @param referenceName Название справочника.
6210
+ * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
6211
+ * и использовать в случае аналогичных запросов.
6212
+ */
6213
+ getReference(r, e = !1) {
6214
+ return this.getTypedDataArrayRequester(St, `/internal/references/${r}`, e);
6215
+ }
6216
+ /**
6217
+ * Возвращает {@link Promise} для получения справочника данных о канале
6218
+ * первичного интереса.
6219
+ */
6220
+ getChannelPrimaryInterest() {
6221
+ return this.getTypedDataArrayRequester(Dr, "/internal/references/channel-primary-interest", !0);
6222
+ }
6223
+ /**
6224
+ * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
6225
+ */
6226
+ getContactPositions() {
6227
+ return this.getTypedDataArrayRequester(kt, "/internal/references/contact-position", !0);
6228
+ }
6229
+ /**
6230
+ * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
6231
+ */
6232
+ getCuratedDirection() {
6233
+ return this.getTypedDataArrayRequester(ze, "/internal/references/curated-direction", !0);
6234
+ }
6235
+ /**
6236
+ * Возвращает {@link Promise} для получения справочника списка валют.
6237
+ */
6238
+ getCurrency() {
6239
+ return this.getTypedDataArrayRequester(_, "/public/references/currency", !0);
6240
+ }
6241
+ /**
6242
+ * Возвращает {@link Promise} для получения справочника данных
6243
+ * групп партнеров (направлений деятельности).
6244
+ */
6245
+ getPartnerGroup() {
6246
+ return this.getTypedDataArrayRequester(ee, "/internal/references/partner-group", !0);
6247
+ }
6248
+ /**
6249
+ * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
6250
+ */
6251
+ getOpf() {
6252
+ return this.getTypedDataArrayRequester(B, "/public/references/opf", !0);
6253
+ }
6254
+ /**
6255
+ * Возвращает {@link Promise} для получения справочника операторов.
6256
+ */
6257
+ getOperators() {
6258
+ return this.getTypedDataArrayRequester(Ir, "/internal/references/operator", !0);
6259
+ }
6260
+ /**
6261
+ * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
6262
+ */
6263
+ getOrderPaymentStatuses() {
6264
+ return this.getTypedDataArrayRequester(It, "/public/references/order-payment-status", !0);
6265
+ }
6266
+ /**
6267
+ * Возвращает {@link Promise} для получения справочника данных статусов заказов.
6268
+ */
6269
+ getOrderStatuses() {
6270
+ return this.getTypedDataArrayRequester(Lt, "/internal/references/order-status", !0);
6271
+ }
6272
+ /**
6273
+ * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
6274
+ */
6275
+ getPaymentTypes() {
6276
+ return this.getTypedDataArrayRequester(Lr, "/public/references/payment-type", !0);
6277
+ }
6278
+ /**
6279
+ * Возвращает {@link Promise} для получения справочника типов ресурсов.
6280
+ */
6281
+ getResourceTypes() {
6282
+ return this.getTypedDataArrayRequester(xr, "/internal/references/resource-type", !0);
6283
+ }
6284
+ /**
6285
+ * Возвращает {@link Promise} для получения справочника данных направлений продаж.
6286
+ */
6287
+ getSalesDirections() {
6288
+ return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
6289
+ }
6290
+ /**
6291
+ * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
6292
+ */
6293
+ getSourcePrimaryInterest() {
6294
+ return this.getTypedDataArrayRequester($r, "/internal/references/source-primary-interest", !0);
6295
+ }
6296
+ /**
6297
+ * Выполняет поиск данных о городах по терму в названии.
6298
+ *
6299
+ * @param term Терм поиска.
6300
+ */
6301
+ searchCity(r) {
6302
+ return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
6303
+ }
6304
+ /**
6305
+ * Выполняет поиск данных о регионах по терму в названии.
6306
+ *
6307
+ * @param term Терм поиска.
6308
+ */
6309
+ searchRegion(r) {
6310
+ return this.getTypedDataArrayRequester(pe, `/internal/references/region-with-country/search?term=${r}`);
6311
+ }
6312
+ /**
6313
+ * Выполняет поиск данных о странах по терму в названии.
6314
+ *
6315
+ * @param term Терм поиска.
6316
+ */
6317
+ searchCountry(r) {
6318
+ return this.getTypedDataArrayRequester(Z, `/internal/references/country/search?term=${r}`);
6319
+ }
6320
+ /**
6321
+ * Возвращает {@link Promise} для получения справочника типов доставки.
6322
+ */
6323
+ getDeliveryTypes() {
6324
+ return this.getTypedDataArrayRequester(U, "/internal/references/delivery-type", !0);
6325
+ }
6326
+ /**
6327
+ * Возвращает {@link Promise} для получения справочника складов.
6328
+ */
6329
+ getWarehouses() {
6330
+ return this.getTypedDataArrayRequester(me, "/public/references/warehouse", !0);
6331
+ }
6332
+ /**
6333
+ * Возвращает {@link Promise} для получения справочника типов свойств.
6334
+ */
6335
+ getPropertyTypes() {
6336
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/property-type", !0);
6337
+ }
6338
+ /**
6339
+ * Возвращает {@link Promise} для получения справочника коэффициентов цен.
6340
+ */
6341
+ getPriceCoefficients() {
6342
+ return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
6343
+ }
6344
+ /**
6345
+ * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
6346
+ */
6347
+ getProductFileType() {
6348
+ return this.getTypedDataArrayRequester(xt, "/public/references/product-file-type", !0);
6349
+ }
6350
+ }
6351
+ const b = z("common.references_private", () => {
6352
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), ie = y(void 0), ne = y(void 0), W = y(void 0), J = y(void 0), $e = y(void 0), Te = y(void 0), l = y(void 0);
6353
+ return {
6354
+ /**
6355
+ * Список загружаемых/загруженных на данный момент значений.
6356
+ */
6357
+ dataLoaderList: n,
6358
+ /**
6359
+ * Справочник каналов первичного интереса.
6360
+ */
6361
+ channelPrimaryInterestReference: r,
6362
+ /**
6363
+ * Справочник должностей контактных лиц.
6364
+ */
6365
+ contactPositionsReference: e,
6366
+ /**
6367
+ * Справочник валют.
6368
+ */
6369
+ currencyReference: s,
6370
+ /**
6371
+ * Справочник типов доставки.
6372
+ */
6373
+ deliveryTypeReference: i,
6374
+ /**
6375
+ * Список менеджеров.
6376
+ */
6377
+ managersList: o,
6378
+ /**
6379
+ * Справочник организационно-правовых форм.
6380
+ */
6381
+ opfReference: c,
6382
+ /**
6383
+ * Справочник операторов.
6384
+ */
6385
+ operatorReference: u,
6386
+ /**
6387
+ * Справочник статусов оплаты заказа.
6388
+ */
6389
+ orderPaymentStatusReference: p,
6390
+ /**
6391
+ * Справочник статусов заказов.
6392
+ */
6393
+ orderStatusReference: m,
6394
+ /**
6395
+ * Справочник типов оплаты заказов.
6396
+ */
6397
+ paymentTypeReference: f,
6398
+ /**
6399
+ * Справочник групп партнеров.
6400
+ */
6401
+ partnerGroupReference: D,
6402
+ /**
6403
+ * Справочник типов файлов продукктов/категорий.
6404
+ */
6405
+ productFileTypeReference: ie,
6406
+ /**
6407
+ * Справочник типов ресурсов.
6408
+ */
6409
+ resourceTypesReference: ne,
6410
+ /**
6411
+ * Справочник направлений продаж.
6412
+ */
6413
+ salesDirectionsReference: W,
6414
+ /**
6415
+ * Справочник источников первичного интереса.
6416
+ */
6417
+ sourcePrimaryInterestReference: J,
6418
+ /**
6419
+ * Справочник складов.
6420
+ */
6421
+ warehousesReference: $e,
6422
+ /**
6423
+ * Справочник типов свойств.
6424
+ */
6425
+ propertyTypesReference: Te,
6426
+ /**
6427
+ * Справочник коэффициентов цен.
6428
+ */
6429
+ priceCoefficientsReference: l
6430
+ };
6431
+ }), As = z("common.references", () => {
6432
+ const n = A(() => {
6433
+ const l = b();
6434
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(S).getChannelPrimaryInterest().then((g) => {
6435
+ l.channelPrimaryInterestReference = g;
6436
+ }).catch(w)), l.channelPrimaryInterestReference;
6437
+ }), r = A(() => {
6438
+ const l = b();
6439
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(S).getContactPositions().then((g) => {
6440
+ l.contactPositionsReference = g;
6441
+ }).catch(w)), l.contactPositionsReference;
6442
+ }), e = A(() => {
6443
+ const l = b();
6444
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(S).getCurrency().then((g) => {
6445
+ l.currencyReference = g;
6446
+ }).catch(w)), l.currencyReference;
6447
+ }), s = A(() => {
6448
+ const l = b();
6449
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(S).getOpf().then((g) => {
6450
+ l.opfReference = g;
6451
+ }).catch(w)), l.opfReference;
6452
+ }), i = A(() => {
6453
+ const l = b();
6454
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(S).getOperators().then((g) => {
6455
+ l.operatorReference = g;
6456
+ }).catch(w)), l.operatorReference;
6457
+ }), o = A(() => {
6458
+ const l = b();
6459
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(S).getOrderPaymentStatuses().then((g) => {
6460
+ l.orderPaymentStatusReference = g;
6461
+ }).catch(w)), l.orderPaymentStatusReference;
6462
+ }), c = A(() => {
6463
+ const l = b();
6464
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(S).getOrderStatuses().then((g) => {
6465
+ l.orderStatusReference = g;
6466
+ }).catch(w)), l.orderStatusReference;
6467
+ }), u = A(() => {
6468
+ const l = b();
6469
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(S).getPaymentTypes().then((g) => {
6470
+ l.paymentTypeReference = g;
6471
+ }).catch(w)), l.paymentTypeReference;
6472
+ }), p = A(() => {
6473
+ const l = b();
6474
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(S).getPartnerGroup().then((g) => {
6475
+ l.partnerGroupReference = g;
6476
+ }).catch(w)), l.partnerGroupReference;
6477
+ }), m = A(() => {
6478
+ const l = b();
6479
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(S).getProductFileType().then((g) => {
6480
+ l.productFileTypeReference = g;
6481
+ }).catch(w)), l.productFileTypeReference;
6482
+ }), f = A(() => {
6483
+ const l = b();
6484
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(S).getResourceTypes().then((g) => {
6485
+ l.resourceTypesReference = g;
6486
+ }).catch(w)), l.resourceTypesReference;
6487
+ }), D = A(() => {
6488
+ const l = b();
6489
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(S).getSalesDirections().then((g) => {
6490
+ l.salesDirectionsReference = g;
6491
+ }).catch(w)), l.salesDirectionsReference;
6492
+ }), ie = A(() => {
6493
+ const l = b();
6494
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(S).getSourcePrimaryInterest().then((g) => {
6495
+ l.sourcePrimaryInterestReference = g;
6496
+ }).catch(w)), l.sourcePrimaryInterestReference;
6497
+ }), ne = A(() => {
6498
+ const l = b();
6499
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(S).getDeliveryTypes().then((g) => {
6500
+ l.deliveryTypeReference = g;
6501
+ }).catch(w)), l.deliveryTypeReference;
6502
+ }), W = A(() => {
6503
+ const l = b();
6504
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(At).getManagers().then((g) => {
6505
+ l.managersList = g;
6506
+ }).catch(w)), l.managersList;
6507
+ }), J = A(() => {
6508
+ const l = b();
6509
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(S).getWarehouses().then((g) => {
6510
+ l.warehousesReference = g;
6511
+ }).catch(w)), l.warehousesReference;
6512
+ }), $e = A(() => {
6513
+ const l = b();
6514
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(S).getPropertyTypes().then((g) => {
6515
+ l.propertyTypesReference = g;
6516
+ }).catch(w)), l.propertyTypesReference;
6517
+ }), Te = A(() => {
6518
+ const l = b();
6519
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(S).getPriceCoefficients().then((g) => {
6520
+ l.priceCoefficientsReference = g;
6521
+ }).catch(w)), l.priceCoefficientsReference;
6522
+ });
6523
+ return {
6524
+ /**
6525
+ * Справочник каналов первичного интереса.
6526
+ */
6527
+ channelPrimaryInterestsReference: n,
6528
+ /**
6529
+ * Справочник должностей контактных лиц.
6530
+ */
6531
+ contactPositionsReference: r,
6532
+ /**
6533
+ * Справочник валют.
6534
+ */
6535
+ currencyReference: e,
6536
+ /**
6537
+ * Справочник организационно-правовых форм.
6538
+ */
6539
+ opfReference: s,
6540
+ /**
6541
+ * Справочник операторов.
6542
+ */
6543
+ operatorReference: i,
6544
+ /**
6545
+ * Справочник статусов оплаты заказа.
6546
+ */
6547
+ orderPaymentStatusReference: o,
6548
+ /**
6549
+ * Справочник статусов заказов.
6550
+ */
6551
+ orderStatusReference: c,
6552
+ /**
6553
+ * Справочник типов оплаты заказов.
6554
+ */
6555
+ paymentTypeReference: u,
6556
+ /**
6557
+ * Справочник групп партнеров.
6558
+ */
6559
+ partnerGroupsReference: p,
6560
+ /**
6561
+ * Справочник типов файлов продуктов/категорий.
6562
+ */
6563
+ productFilesTypesReference: m,
6564
+ /**
6565
+ * Справочник типов ресурсов.
6566
+ */
6567
+ resourceTypesReference: f,
6568
+ /**
6569
+ * Справочник направлений продаж.
6570
+ */
6571
+ salesDirectionsReference: D,
6572
+ /**
6573
+ * Справочник каналов первичного интереса.
6574
+ */
6575
+ sourcePrimaryInterestsReference: ie,
6576
+ /**
6577
+ * Справочник типов доставки.
6578
+ */
6579
+ deliveryTypeReference: ne,
6580
+ /**
6581
+ * Список менеджеров.
6582
+ */
6583
+ managersList: W,
6584
+ /**
6585
+ * Справочник складов.
6586
+ */
6587
+ warehousesReference: J,
6588
+ /**
6589
+ * Справочник типов свойств.
6590
+ */
6591
+ propertyTypesReference: $e,
6592
+ /**
6593
+ * Справочник коэффициентов цен.
6594
+ */
6595
+ priceCoefficientsReference: Te
6596
+ };
6597
+ });
6598
+ class Ot {
6492
6599
  /**
6493
6600
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6494
6601
  *
@@ -6506,7 +6613,7 @@ class It {
6506
6613
  this.name = r.name, this.content = r.content;
6507
6614
  }
6508
6615
  }
6509
- class sr {
6616
+ class nr {
6510
6617
  /**
6511
6618
  * Инициализирует экземпляр класса {@link Seo}.
6512
6619
  *
@@ -6546,10 +6653,10 @@ class sr {
6546
6653
  */
6547
6654
  t(this, "tags");
6548
6655
  var e;
6549
- this.resourceType = new Ar(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6656
+ this.resourceType = new xr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new Ot(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6550
6657
  }
6551
6658
  }
6552
- class Rs extends p {
6659
+ class Ds extends h {
6553
6660
  /**
6554
6661
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6555
6662
  *
@@ -6557,7 +6664,7 @@ class Rs extends p {
6557
6664
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6558
6665
  */
6559
6666
  getResourceSeoData(r, e) {
6560
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new sr(s.data));
6667
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new nr(s.data));
6561
6668
  }
6562
6669
  /**
6563
6670
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6568,7 +6675,7 @@ class Rs extends p {
6568
6675
  * в случае ошибок в запросах.
6569
6676
  */
6570
6677
  saveResourceSeoData(r, e = {}) {
6571
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new sr(s.data), e);
6678
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new nr(s.data), e);
6572
6679
  }
6573
6680
  /**
6574
6681
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6580,7 +6687,7 @@ class Rs extends p {
6580
6687
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6581
6688
  }
6582
6689
  }
6583
- class Ps extends p {
6690
+ class $s extends h {
6584
6691
  /**
6585
6692
  * Возвращает подсказки по адресам.
6586
6693
  *
@@ -6627,8 +6734,8 @@ class Ps extends p {
6627
6734
  });
6628
6735
  }
6629
6736
  }
6630
- var Lt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Lt || {});
6631
- class dt extends wr {
6737
+ var dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(dt || {});
6738
+ class _t extends vr {
6632
6739
  /**
6633
6740
  * Инициализирует экземпляр класса {@link User}.
6634
6741
  *
@@ -6652,10 +6759,10 @@ class dt extends wr {
6652
6759
  * Роль ценообразования текущего пользователя.
6653
6760
  */
6654
6761
  t(this, "pricingRole");
6655
- this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new fr(e.pricingRole) : void 0;
6762
+ this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new yr(e.pricingRole) : void 0;
6656
6763
  }
6657
6764
  }
6658
- class As extends p {
6765
+ class Ts extends h {
6659
6766
  /**
6660
6767
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6661
6768
  */
@@ -6671,13 +6778,13 @@ class As extends p {
6671
6778
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6672
6779
  }
6673
6780
  }
6674
- class xt extends p {
6781
+ class qt extends h {
6675
6782
  /**
6676
6783
  * Возвращает данные о текущем пользователе.
6677
6784
  */
6678
6785
  // eslint-disable-next-line class-methods-use-this
6679
6786
  getCurrentUser() {
6680
- return this.get("/internal/users/info", {}, (r) => new dt(r.data), !0);
6787
+ return this.get("/internal/users/info", {}, (r) => new _t(r.data), !0);
6681
6788
  }
6682
6789
  }
6683
6790
  const at = z("common.user_state_private", () => {
@@ -6692,20 +6799,20 @@ const at = z("common.user_state_private", () => {
6692
6799
  */
6693
6800
  currentUser: r
6694
6801
  };
6695
- }), Ds = z("common.user_state", () => ({
6802
+ }), bs = z("common.user_state", () => ({
6696
6803
  /**
6697
6804
  * Данные о текущем пользователе.
6698
6805
  */
6699
6806
  currentUser: A(() => {
6700
6807
  const r = at();
6701
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(xt).getCurrentUser().then((e) => {
6808
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(qt).getCurrentUser().then((e) => {
6702
6809
  r.currentUser = e;
6703
6810
  }).catch(w).finally(() => {
6704
6811
  r.dataLoaderList.currentUser = !1;
6705
6812
  })), r.currentUser;
6706
6813
  })
6707
6814
  }));
6708
- class Ts {
6815
+ class Ss {
6709
6816
  /**
6710
6817
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
6711
6818
  *
@@ -6729,159 +6836,162 @@ class Ts {
6729
6836
  }
6730
6837
  }
6731
6838
  export {
6732
- gt as AnyReference,
6733
- rt as AppBaseConfig,
6734
- qe as BankAccount,
6839
+ St as AnyReference,
6840
+ tt as AppBaseConfig,
6841
+ ae as BankAccount,
6735
6842
  De as BasePaginationProvider,
6736
6843
  lt as CalculationTypeEnum,
6737
6844
  ye as Cart,
6738
- Bt as CartProvider,
6739
- Wt as CatalogProvider,
6740
- ur as CatalogableItem,
6741
- _ as Category,
6742
- Qe as CategoryPricingRule,
6743
- Cr as ChannelPrimaryInterest,
6744
- ts as City,
6845
+ Jt as CartProvider,
6846
+ Vt as CatalogProvider,
6847
+ gr as CatalogableItem,
6848
+ a as Category,
6849
+ Xe as CategoryFilterSetting,
6850
+ Ye as CategoryPricingRule,
6851
+ Dr as ChannelPrimaryInterest,
6852
+ Rs as City,
6745
6853
  Ae as CityWithRegionAndCountry,
6746
- er as Client,
6747
- Pt as ClientAdditionalData,
6854
+ tr as Client,
6855
+ vt as ClientAdditionalData,
6748
6856
  ve as ClientCategory,
6749
- d as ClientDataProvider,
6750
- Jt as ClientPriceProvider,
6751
- Et as ClientPriceTemplateProvider,
6857
+ x as ClientDataProvider,
6858
+ Kt as ClientPriceProvider,
6859
+ Qt as ClientPriceTemplateProvider,
6752
6860
  M as ClientProduct,
6753
- Qt as ClientProductCategoryDataProvider,
6754
- Yt as ClientProductDataProvider,
6755
- re as ClientShortInfo,
6756
- ht as ClientsAdditionalDataRequestTypeEnum,
6757
- is as ClientsListFilters,
6758
- le as CodedIdentity,
6759
- us as ConfiguratorProvider,
6760
- Dt as ConfiguratorsEnum,
6861
+ Zt as ClientProductCategoryDataProvider,
6862
+ es as ClientProductDataProvider,
6863
+ se as ClientShortInfo,
6864
+ mt as ClientsAdditionalDataRequestTypeEnum,
6865
+ ns as ClientsListFilters,
6866
+ ue as CodedIdentity,
6867
+ ls as ConfiguratorProvider,
6868
+ Rt as ConfiguratorsEnum,
6761
6869
  Ne as Contact,
6762
- mr as ContactLinks,
6763
- B as ContactPerson,
6764
- Rt as ContactPersonRelated,
6765
- mt as ContactPosition,
6870
+ fr as ContactLinks,
6871
+ G as ContactPerson,
6872
+ Ct as ContactPersonRelated,
6873
+ kt as ContactPosition,
6766
6874
  Ie as ContactRelation,
6767
- Tr as ContragentBase,
6875
+ Rr as ContragentBase,
6768
6876
  Ce as ContragentFactory,
6769
- $r as ContragentIc,
6770
- vt as ContragentPerson,
6771
- Ct as ContragentUlNr,
6772
- br as ContragentUlR,
6877
+ Pr as ContragentIc,
6878
+ ft as ContragentPerson,
6879
+ yt as ContragentUlNr,
6880
+ Ar as ContragentUlR,
6773
6881
  je as CostSourceEnum,
6774
- X as Country,
6775
- Be as CuratedDirection,
6776
- ze as Curator,
6777
- a as Currency,
6778
- Ps as DataSuggestionProvider,
6779
- ns as DataTablePagination,
6780
- At as DataTablePaginationRequestParams,
6781
- os as DataTableSortRequestParams,
6782
- ps as DateTimeProvider,
6783
- tt as DeletableNamedIdentity,
6882
+ Z as Country,
6883
+ ze as CuratedDirection,
6884
+ We as Curator,
6885
+ _ as Currency,
6886
+ $s as DataSuggestionProvider,
6887
+ hs as DateTimeProvider,
6888
+ wt as DeletableNamedIdentity,
6784
6889
  Re as DeliveryAddress,
6785
- N as DeliveryType,
6786
- jt as DetailedJwtPayload,
6787
- Yr as DeviceTypeResolutionConfig,
6788
- nt as DiscountShortInfo,
6789
- Ts as FieldValidationResultData,
6890
+ U as DeliveryType,
6891
+ zt as DetailedJwtPayload,
6892
+ Xr as DeviceTypeResolutionConfig,
6893
+ st as DiscountShortInfo,
6894
+ Ss as FieldValidationResultData,
6790
6895
  j as FilterGroup,
6791
- Ye as FilterItem,
6792
- We as FilterOpEnum,
6896
+ Ze as FilterItem,
6897
+ Je as FilterOpEnum,
6898
+ gt as FilterSettings,
6793
6899
  hr as GeoCoordinates,
6794
- it as HiddenCatalogableItem,
6795
- pe as HttpCachedRequester,
6796
- Xr as HttpParamsConfig,
6797
- p as HttpRequester,
6798
- ee as Identity,
6799
- st as Image,
6900
+ nt as HiddenCatalogableItem,
6901
+ he as HttpCachedRequester,
6902
+ Zr as HttpParamsConfig,
6903
+ h as HttpRequester,
6904
+ re as Identity,
6905
+ ot as Image,
6800
6906
  F as JwtPayload,
6801
6907
  fe as Manager,
6802
- Ge as ManagerCommon,
6803
- gs as ManagerDataFactory,
6804
- Tt as ManagerDataProvider,
6805
- It as MetaTagItem,
6908
+ Be as ManagerCommon,
6909
+ ms as ManagerDataFactory,
6910
+ At as ManagerDataProvider,
6911
+ Ot as MetaTagItem,
6806
6912
  k as NamedIdentity,
6807
- Rr as Operator,
6808
- G as Opf,
6809
- q as OpfEnum,
6913
+ Ir as Operator,
6914
+ B as Opf,
6915
+ N as OpfEnum,
6810
6916
  Le as Order,
6811
- Lr as OrderInfo,
6812
- bt as OrderItem,
6813
- gr as OrderItemBase,
6814
- ft as OrderPaymentStatus,
6815
- kr as OrderShortInfo,
6816
- yt as OrderStatus,
6817
- $t as OrderStatusEnum,
6917
+ kr as OrderInfo,
6918
+ Dt as OrderItem,
6919
+ mr as OrderItemBase,
6920
+ It as OrderPaymentStatus,
6921
+ br as OrderShortInfo,
6922
+ Lt as OrderStatus,
6923
+ bt as OrderStatusEnum,
6818
6924
  ys as OrdersDataProvider,
6819
6925
  fs as OrdersListFilters,
6820
- Sr as PaginationFiltersBase,
6821
- Z as PartnerGroup,
6822
- Pr as PaymentType,
6926
+ Tr as PaginationFiltersBase,
6927
+ ee as PartnerGroup,
6928
+ Lr as PaymentType,
6823
6929
  we as PreferencesStorageProvider,
6824
- de as PriceAnalyze,
6930
+ xe as PriceAnalyze,
6825
6931
  ws as PriceAnalyzeProvider,
6826
6932
  Pe as PriceCoefficient,
6827
6933
  pr as PriceCoefficientEnum,
6828
6934
  vs as PriceHistoryDataProvider,
6829
- St as PriceHistoryItem,
6935
+ $t as PriceHistoryItem,
6830
6936
  K as PriceTemplate,
6831
6937
  Se as PriceTemplateCategory,
6832
- ie as PriceTemplateClient,
6833
- yr as PriceTemplateICatalogableItem,
6938
+ oe as PriceTemplateClient,
6939
+ wr as PriceTemplateICatalogableItem,
6834
6940
  ke as PriceTemplateProduct,
6835
- Xt as PriceTemplateProvider,
6836
- oe as PricingRole,
6837
- Zt as PricingRoleProvider,
6838
- _e as PrimaryCatalogableItem,
6941
+ rs as PriceTemplateProvider,
6942
+ ce as PricingRole,
6943
+ ts as PricingRoleProvider,
6944
+ qe as PrimaryCatalogableItem,
6839
6945
  I as Product,
6840
- Vt as ProductCategoryDataProvider,
6841
- Kt as ProductDataProvider,
6842
- wt as ProductFileType,
6946
+ Yt as ProductCategoryDataProvider,
6947
+ Xt as ProductDataProvider,
6948
+ xt as ProductFileType,
6949
+ pt as ProductFilterTypeEnum,
6843
6950
  Me as ProductPriceCoefficient,
6844
- kt as ProductPriceHistory,
6845
- Ke as ProductUnit,
6846
- es as PropertiesProvider,
6847
- ne as Property,
6848
- vr as PropertyType,
6951
+ Tt as ProductPriceHistory,
6952
+ Qe as ProductUnit,
6953
+ ss as PropertiesProvider,
6954
+ Q as Property,
6955
+ Cr as PropertyType,
6849
6956
  ut as PropertyTypeEnum,
6850
6957
  V as PropertyValue,
6851
6958
  Cs as RecommendationsDataProvider,
6852
- tr as RecommendationsList,
6959
+ ir as RecommendationsList,
6853
6960
  R as Reference,
6854
- ss as ReferenceDataFactory,
6855
- b as ReferenceDataProvider,
6856
- ue as Region,
6857
- Ar as ResourceType,
6858
- O as SalesDirection,
6859
- Zr as SentryConfig,
6860
- sr as Seo,
6861
- Rs as SeoDataProvider,
6862
- Dr as SourcePrimaryInterest,
6863
- ot as StockCount,
6864
- rs as TemplateProductCategoryDataProvider,
6865
- zt as TemplatesListFilters,
6866
- Fe as TypedInstanceFactory,
6867
- Ir as UnitsHelper,
6868
- cs as UnknownClientDataProvider,
6869
- lr as UpdatableNamedIdentity,
6870
- dt as User,
6871
- As as UserAuthDataProvider,
6872
- wr as UserCommonInfo,
6873
- xt as UserDataProvider,
6874
- fr as UserPricingRole,
6875
- x as UserShortInfo,
6876
- Lt as UserTypeEnum,
6877
- ls as VersionConfig,
6878
- ge as Warehouse,
6879
- et as WebSocketConfig,
6880
- Xe as findCatalogItemByIdRecursive,
6881
- Ze as flattenCatalogItems,
6882
- hs as pluralize,
6961
+ Ps as ReferenceDataFactory,
6962
+ S as ReferenceDataProvider,
6963
+ pe as Region,
6964
+ xr as ResourceType,
6965
+ q as SalesDirection,
6966
+ et as SentryConfig,
6967
+ nr as Seo,
6968
+ Ds as SeoDataProvider,
6969
+ $r as SourcePrimaryInterest,
6970
+ it as StockCount,
6971
+ us as TableDataPagination,
6972
+ Pt as TableDataPaginationRequestParams,
6973
+ ps as TableDataSortRequestParams,
6974
+ is as TemplateProductCategoryDataProvider,
6975
+ Et as TemplatesListFilters,
6976
+ Ge as TypedInstanceFactory,
6977
+ Sr as UnitsHelper,
6978
+ os as UnknownClientDataProvider,
6979
+ ur as UpdatableNamedIdentity,
6980
+ _t as User,
6981
+ Ts as UserAuthDataProvider,
6982
+ vr as UserCommonInfo,
6983
+ qt as UserDataProvider,
6984
+ yr as UserPricingRole,
6985
+ d as UserShortInfo,
6986
+ dt as UserTypeEnum,
6987
+ cs as VersionConfig,
6988
+ me as Warehouse,
6989
+ rt as WebSocketConfig,
6990
+ er as findCatalogItemByIdRecursive,
6991
+ rr as flattenCatalogItems,
6992
+ gs as pluralize,
6883
6993
  be as useAuthStateStore,
6884
6994
  L as useBaseConfigStateStore,
6885
- ms as useReferencesStore,
6886
- Ds as useUserStateStore
6995
+ As as useReferencesStore,
6996
+ bs as useUserStateStore
6887
6997
  };