@alphakits/ui 1.23.1 → 1.23.2

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 (300) hide show
  1. package/dist/{ActionCopyM-900f3b07.js → ActionCopyM-5104e1ec.js} +1 -1
  2. package/dist/{ChevronBackM-bb2979f9.js → ChevronBackM-58403359.js} +1 -1
  3. package/dist/{ChevronDownS-4b373177.js → ChevronDownS-2559e8cb.js} +1 -1
  4. package/dist/{ChevronForwardS-18012107.js → ChevronForwardS-f910b25d.js} +1 -1
  5. package/dist/{CloseS-ccfbf513.js → CloseS-97b5b77a.js} +1 -1
  6. package/dist/{NextS-9829958c.js → NextS-a1c92ff2.js} +1 -1
  7. package/dist/{PlusS-e4ee9c42.js → PlusS-d3f1472f.js} +1 -1
  8. package/dist/{SearchM-cc93adbb.js → SearchM-526bf3a6.js} +1 -1
  9. package/dist/{TrashM-9aadcf00.js → TrashM-7b5070a2.js} +1 -1
  10. package/dist/amount/component.js +1 -1
  11. package/dist/amount/index.js +1 -1
  12. package/dist/amount-input/component.js +1 -1
  13. package/dist/amount-input/index.js +1 -1
  14. package/dist/avatar/component.js +1 -1
  15. package/dist/avatar/index.js +1 -1
  16. package/dist/base-card/component.js +1 -1
  17. package/dist/base-card/index.js +1 -1
  18. package/dist/bottom-sheet/component.js +1 -1
  19. package/dist/bottom-sheet/index.js +1 -1
  20. package/dist/button/component.js +1 -1
  21. package/dist/button/index.js +1 -1
  22. package/dist/calendar/component.js +1 -1
  23. package/dist/calendar/components/days-table/component.js +1 -1
  24. package/dist/calendar/components/days-table/index.js +1 -1
  25. package/dist/calendar/components/header/index.js +1 -1
  26. package/dist/calendar/components/header//321/201omponent.js +1 -1
  27. package/dist/calendar/components/months-table/index.js +1 -1
  28. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  29. package/dist/calendar/components/select-button/index.js +1 -1
  30. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  31. package/dist/calendar/components/years-table/index.js +1 -1
  32. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  33. package/dist/calendar/index.js +1 -1
  34. package/dist/calendar/use-calendar.js +1 -1
  35. package/dist/calendar/use-period.js +1 -1
  36. package/dist/calendar/utils.js +1 -1
  37. package/dist/calendar-input/component.js +1 -1
  38. package/dist/calendar-input/index.js +1 -1
  39. package/dist/calendar-input/utils.js +1 -1
  40. package/dist/card/component.js +1 -1
  41. package/dist/card/images/index.js +1 -1
  42. package/dist/card/index.js +1 -1
  43. package/dist/cell/base/component.js +1 -1
  44. package/dist/cell/base/index.d.ts +1 -1
  45. package/dist/cell/base/index.js +1 -1
  46. package/dist/cell/component.js +1 -1
  47. package/dist/cell/index.js +1 -1
  48. package/dist/cell/pure/component.js +1 -1
  49. package/dist/cell/pure/index.js +1 -1
  50. package/dist/checkbox/component.js +1 -1
  51. package/dist/checkbox/index.js +1 -1
  52. package/dist/checkbox-group/component.js +1 -1
  53. package/dist/checkbox-group/index.js +1 -1
  54. package/dist/checkbox-lists/component.js +1 -1
  55. package/dist/checkbox-lists/index.js +1 -1
  56. package/dist/collapsable-row/addons.js +1 -1
  57. package/dist/collapsable-row/component.js +1 -1
  58. package/dist/collapsable-row/index.js +1 -1
  59. package/dist/collapse/component.js +1 -1
  60. package/dist/collapse/index.js +1 -1
  61. package/dist/{component-c0b52e79.js → component-9e4e15b9.js} +1 -1
  62. package/dist/copy-button/component.js +1 -1
  63. package/dist/copy-button/index.js +1 -1
  64. package/dist/date/component.js +1 -1
  65. package/dist/date/index.js +1 -1
  66. package/dist/date-functions.js +1 -1
  67. package/dist/date-switcher/component.js +1 -1
  68. package/dist/date-switcher/index.js +1 -1
  69. package/dist/footer/component.js +1 -1
  70. package/dist/footer/contact-block.js +1 -1
  71. package/dist/footer/index.js +1 -1
  72. package/dist/form/component.js +1 -1
  73. package/dist/form/components/form-footer/index.js +1 -1
  74. package/dist/form/components/form-loading/index.js +1 -1
  75. package/dist/form/components/form-wrapper/index.js +1 -1
  76. package/dist/form/components/index.d.ts +1 -1
  77. package/dist/form/components/index.js +1 -1
  78. package/dist/form/index.js +1 -1
  79. package/dist/form/templates/filters-form/index.js +1 -1
  80. package/dist/form/templates/rest-form/form.js +1 -1
  81. package/dist/form/templates/rest-form/index.js +1 -1
  82. package/dist/form/utils/get-default-values.js +1 -1
  83. package/dist/form-control/component.js +1 -1
  84. package/dist/form-control/index.js +1 -1
  85. package/dist/grid/col/component.js +1 -1
  86. package/dist/grid/col/index.js +1 -1
  87. package/dist/grid/component.js +1 -1
  88. package/dist/grid/index.js +1 -1
  89. package/dist/grid/row/component.js +1 -1
  90. package/dist/grid/row/index.js +1 -1
  91. package/dist/header-search/component.js +1 -1
  92. package/dist/header-search/index.js +1 -1
  93. package/dist/heading/component.js +1 -1
  94. package/dist/heading/index.js +1 -1
  95. package/dist/hooks/index.js +1 -1
  96. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  97. package/dist/hooks/use-get-one/index.js +1 -1
  98. package/dist/icon-button/component.js +1 -1
  99. package/dist/icon-button/index.js +1 -1
  100. package/dist/image/component.js +1 -1
  101. package/dist/image/constants.js +1 -1
  102. package/dist/image/image-base.js +1 -1
  103. package/dist/image/index.js +1 -1
  104. package/dist/image/use-image-render-component.js +1 -1
  105. package/dist/image/utils.js +1 -1
  106. package/dist/image-gallery/component.js +1 -1
  107. package/dist/image-gallery/components/header/index.js +1 -1
  108. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  109. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  110. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  111. package/dist/image-gallery/components/index.js +1 -1
  112. package/dist/image-gallery/index.js +1 -1
  113. package/dist/image-uploader/component.js +1 -1
  114. package/dist/image-uploader/index.js +1 -1
  115. package/dist/index-22e43f03.js +1 -0
  116. package/dist/{index-0e782db8.js → index-54a31521.js} +1 -1
  117. package/dist/{index-182dfc3c.js → index-67853d5e.js} +1 -1
  118. package/dist/index-70be6621.js +1 -0
  119. package/dist/{index-00e9de98.js → index-770f6fb6.js} +1 -1
  120. package/dist/index-81972909.js +1 -0
  121. package/dist/index-92af89dc.js +1 -0
  122. package/dist/{index-fea6afb8.js → index-9741ccba.js} +1 -1
  123. package/dist/{index-76fdf92d.js → index-a44315de.js} +1 -1
  124. package/dist/{index-03e1775f.js → index-aa637881.js} +1 -1
  125. package/dist/{index-455dc648.js → index-b5fdc2cf.js} +1 -1
  126. package/dist/{index-63bd754c.js → index-bc379a68.js} +2 -2
  127. package/dist/{index-77afad4e.js → index-bf9a908a.js} +1 -1
  128. package/dist/index-e67304b8.js +1 -0
  129. package/dist/index-f5e88a33.js +1 -0
  130. package/dist/{index-188e43dd.js → index-f7b689d3.js} +1 -1
  131. package/dist/index.css +1 -1
  132. package/dist/info-block-header/component.js +1 -1
  133. package/dist/info-block-header/index.js +1 -1
  134. package/dist/info-block-item/component.js +1 -1
  135. package/dist/info-block-item/index.js +1 -1
  136. package/dist/input/component.js +1 -1
  137. package/dist/input/index.js +1 -1
  138. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  139. package/dist/input-autocomplete/component.js +1 -1
  140. package/dist/input-autocomplete/index.js +1 -1
  141. package/dist/input-ghost/component.js +1 -1
  142. package/dist/input-ghost/index.js +1 -1
  143. package/dist/link/component.js +1 -1
  144. package/dist/link/index.js +1 -1
  145. package/dist/list-allert/component.js +1 -1
  146. package/dist/list-allert/index.js +1 -1
  147. package/dist/masked-input/component.js +1 -1
  148. package/dist/masked-input/index.js +1 -1
  149. package/dist/menu/component.js +1 -1
  150. package/dist/menu/components/content-header/index.js +1 -1
  151. package/dist/menu/components/index.js +1 -1
  152. package/dist/menu/components/menu-avatar/index.js +1 -1
  153. package/dist/menu/components/menu-back-button/index.js +1 -1
  154. package/dist/menu/components/menu-button/index.js +1 -1
  155. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  156. package/dist/menu/components/user-button/index.js +1 -1
  157. package/dist/menu/index.js +1 -1
  158. package/dist/message/component.js +1 -1
  159. package/dist/message/index.js +1 -1
  160. package/dist/modal/components/modals/index.js +1 -1
  161. package/dist/modal/components/modals/modal.js +1 -1
  162. package/dist/modal/context.js +1 -1
  163. package/dist/modal/hooks/use-modal.js +1 -1
  164. package/dist/modal/index.js +1 -1
  165. package/dist/modal/utils/delete-property-by-id.js +1 -1
  166. package/dist/not-found/component.js +1 -1
  167. package/dist/not-found/index.js +1 -1
  168. package/dist/notification/component.js +1 -1
  169. package/dist/notification/index.js +1 -1
  170. package/dist/{parse-query-params-1e22eda8.js → parse-query-params-8ebc70c8.js} +1 -1
  171. package/dist/picker-button/common/index.js +1 -1
  172. package/dist/picker-button/common/labeled-button/index.js +1 -1
  173. package/dist/picker-button/component.js +1 -1
  174. package/dist/picker-button/field/Component.js +1 -1
  175. package/dist/picker-button/field/index.js +1 -1
  176. package/dist/picker-button/index.js +1 -1
  177. package/dist/popover/component.js +1 -1
  178. package/dist/popover/index.js +1 -1
  179. package/dist/progress-bar/component.js +1 -1
  180. package/dist/progress-bar/index.js +1 -1
  181. package/dist/progress-index/component.js +1 -1
  182. package/dist/progress-index/index.js +1 -1
  183. package/dist/radio/component.js +1 -1
  184. package/dist/radio/index.js +1 -1
  185. package/dist/radio-group/component.js +1 -1
  186. package/dist/radio-group/index.js +1 -1
  187. package/dist/radio-groups/component.js +1 -1
  188. package/dist/radio-groups/index.js +1 -1
  189. package/dist/select/component.js +1 -1
  190. package/dist/select/components/base-select/component.js +1 -1
  191. package/dist/select/components/base-select/index.js +1 -1
  192. package/dist/select/components/field/component.js +1 -1
  193. package/dist/select/components/field/index.js +1 -1
  194. package/dist/select/components/index.js +1 -1
  195. package/dist/select/components/native-select/component.js +1 -1
  196. package/dist/select/components/native-select/index.js +1 -1
  197. package/dist/select/components/option/component.js +1 -1
  198. package/dist/select/components/option/index.js +1 -1
  199. package/dist/select/components/virtual-options-list/component.js +1 -1
  200. package/dist/select/components/virtual-options-list/index.js +1 -1
  201. package/dist/select/index.js +1 -1
  202. package/dist/select/presets/index.js +1 -1
  203. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  204. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  205. package/dist/sidepanel-header/component.js +1 -1
  206. package/dist/sidepanel-header/index.js +1 -1
  207. package/dist/space/Item.js +1 -1
  208. package/dist/space/component.js +1 -1
  209. package/dist/space/index.js +1 -1
  210. package/dist/suffix-input/component.js +1 -1
  211. package/dist/suffix-input/index.js +1 -1
  212. package/dist/super-list-header/component.js +1 -1
  213. package/dist/super-list-header/index.js +1 -1
  214. package/dist/super-list-item/component.js +1 -1
  215. package/dist/super-list-item/index.js +1 -1
  216. package/dist/switch/component.js +1 -1
  217. package/dist/switch/index.js +1 -1
  218. package/dist/table/columns.js +1 -1
  219. package/dist/table/component.js +1 -1
  220. package/dist/table/components/cell/component.js +1 -1
  221. package/dist/table/components/cell/index.js +1 -1
  222. package/dist/table/components/cells/index.js +1 -1
  223. package/dist/table/components/empty-list/index.js +1 -1
  224. package/dist/table/components/error/index.js +1 -1
  225. package/dist/table/components/loading/index.js +1 -1
  226. package/dist/table/components/pagination/index.js +1 -1
  227. package/dist/table/components/table-header/index.js +1 -1
  228. package/dist/table/hooks/use-table-data.js +1 -1
  229. package/dist/table/index.d.ts +1 -1
  230. package/dist/table/index.js +1 -1
  231. package/dist/table/table.js +1 -1
  232. package/dist/table/utils/add-query-param.js +1 -1
  233. package/dist/table/utils/get-query-from-url.js +1 -1
  234. package/dist/table/utils/index.d.ts +1 -1
  235. package/dist/table/utils/index.js +1 -1
  236. package/dist/table/utils/parse-query-params.js +1 -1
  237. package/dist/table/utils/prepare-rows.js +1 -1
  238. package/dist/table/utils/query-adapter.js +1 -1
  239. package/dist/table/utils/remove-query-param.js +1 -1
  240. package/dist/table/utils/reset-query-param.js +1 -1
  241. package/dist/table-status/component.js +1 -1
  242. package/dist/table-status/index.js +1 -1
  243. package/dist/tag/component.d.ts +2 -0
  244. package/dist/tag/component.js +1 -1
  245. package/dist/tag/index.js +1 -1
  246. package/dist/tags-list/component.js +1 -1
  247. package/dist/tags-list/index.js +1 -1
  248. package/dist/tariff-builder/component.js +1 -1
  249. package/dist/tariff-builder/index.js +1 -1
  250. package/dist/textarea/component.js +1 -1
  251. package/dist/textarea/index.js +1 -1
  252. package/dist/toast/component.js +1 -1
  253. package/dist/toast/index.js +1 -1
  254. package/dist/toast-notifier/component.js +1 -1
  255. package/dist/toast-notifier/index.js +1 -1
  256. package/dist/toast-plate/component.js +1 -1
  257. package/dist/toast-plate/index.js +1 -1
  258. package/dist/tooltip/component.js +1 -1
  259. package/dist/tooltip/index.js +1 -1
  260. package/dist/typography/component.js +1 -1
  261. package/dist/typography/index.js +1 -1
  262. package/dist/typography/text/component.js +1 -1
  263. package/dist/typography/text/index.js +1 -1
  264. package/dist/typography/title/component.js +1 -1
  265. package/dist/typography/title/index.js +1 -1
  266. package/dist/typography/title-responsive/component.js +1 -1
  267. package/dist/typography/title-responsive/index.js +1 -1
  268. package/dist/{use-image-render-component-6ef6d914.js → use-image-render-component-4a24a608.js} +1 -1
  269. package/dist/utils/format-date/index.js +1 -1
  270. package/dist/utils/index.js +1 -1
  271. package/dist/utils/show-toast/index.js +1 -1
  272. package/dist/vars/typography.css +3 -3
  273. package/dist/with-suffix/component.js +1 -1
  274. package/dist/with-suffix/index.js +1 -1
  275. package/package.json +1 -1
  276. package/dist/index-02841c4f.js +0 -1
  277. package/dist/index-03d9f3df.js +0 -1
  278. package/dist/index-1830c2d3.js +0 -1
  279. package/dist/index-27d3e74a.js +0 -1
  280. package/dist/index-5d956ec2.js +0 -1
  281. package/dist/index-d6d542f2.js +0 -1
  282. /package/dist/{_commonjsHelpers-8dd6f8af.js → _commonjsHelpers-90689b88.js} +0 -0
  283. /package/dist/{_tslib-531dfe1b-b5467d06.js → _tslib-531dfe1b-b444185f.js} +0 -0
  284. /package/dist/{colors.module-f109ae96.js → colors.module-88c1f9c4.js} +0 -0
  285. /package/dist/{common.module-c9c218b0.js → common.module-2283ab68.js} +0 -0
  286. /package/dist/{component-d2b5264d.d.ts → component-587103c6.d.ts} +0 -0
  287. /package/dist/{component-d2b5264d.js → component-587103c6.js} +0 -0
  288. /package/dist/{component-c0b52e79.d.ts → component-9e4e15b9.d.ts} +0 -0
  289. /package/dist/{contact-block-cc00506b.d.ts → contact-block-85d5c583.d.ts} +0 -0
  290. /package/dist/{contact-block-cc00506b.js → contact-block-85d5c583.js} +0 -0
  291. /package/dist/{gutters.module-ac44d70e.js → gutters.module-d56438ca.js} +0 -0
  292. /package/dist/{index-ead6f0ba.js → index-86405ec6.js} +0 -0
  293. /package/dist/{index-77afad4e.d.ts → index-bf9a908a.d.ts} +0 -0
  294. /package/dist/{index-66898d9d.js → index-dcdb4a5b.js} +0 -0
  295. /package/dist/{intersection-observer-3383ba76.js → intersection-observer-e3c06cc5.js} +0 -0
  296. /package/dist/{parse-query-params-1e22eda8.d.ts → parse-query-params-8ebc70c8.d.ts} +0 -0
  297. /package/dist/{slide-55e2a1f1.d.ts → slide-8a1ab4a2.d.ts} +0 -0
  298. /package/dist/{slide-55e2a1f1.js → slide-8a1ab4a2.js} +0 -0
  299. /package/dist/{tslib.es6-d7273633.js → tslib.es6-904ade04.js} +0 -0
  300. /package/dist/{use-image-render-component-6ef6d914.d.ts → use-image-render-component-4a24a608.d.ts} +0 -0
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},r),t.createElement("path",{d:"M0 0h24v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20H8V8h12M8 6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V8a2 2 0 00-2-2H8zm6-4H4a2 2 0 00-2 2v10h2V4h10V2z",fill:"currentColor"}))};export{r as A};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},r),t.createElement("path",{d:"M0 0h24v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20H8V8h12M8 6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V8a2 2 0 00-2-2H8zm6-4H4a2 2 0 00-2 2v10h2V4h10V2z",fill:"currentColor"}))};export{r as A};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},r),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M10.355 12l5.5-5.5-1.5-1.5-7 7 7 7 1.5-1.5-5.5-5.5z",fill:"currentColor"}))};export{r as C};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},r),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M10.355 12l5.5-5.5-1.5-1.5-7 7 7 7 1.5-1.5-5.5-5.5z",fill:"currentColor"}))};export{r as C};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{d:"M8.008 9.266L3.294 4.552 2.008 5.838l6 6 6-6-1.286-1.286-4.714 4.714z",fill:"currentColor"}))};export{r as C};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{d:"M8.008 9.266L3.294 4.552 2.008 5.838l6 6 6-6-1.286-1.286-4.714 4.714z",fill:"currentColor"}))};export{r as C};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{d:"M9.274 8L4.56 12.714 5.845 14l6-6-6-6L4.56 3.286 9.274 8z",fill:"currentColor"}))};export{r as C};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{d:"M9.274 8L4.56 12.714 5.845 14l6-6-6-6L4.56 3.286 9.274 8z",fill:"currentColor"}))};export{r as C};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v17H0z"}),t.createElement("path",{d:"M4.336 3.413l-.926.926 3.67 3.67-3.67 3.671.926.926 3.67-3.67 3.67 3.67.926-.926-3.67-3.67 3.67-3.67-.925-.927-3.67 3.67-3.671-3.67z",fill:"currentColor"}))};export{r as C};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v17H0z"}),t.createElement("path",{d:"M4.336 3.413l-.926.926 3.67 3.67-3.67 3.671.926.926 3.67-3.67 3.67 3.67.926-.926-3.67-3.67 3.67-3.67-.925-.927-3.67 3.67-3.671-3.67z",fill:"currentColor"}))};export{r as C};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var l=function(l){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},l),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.432 3.524a.828.828 0 011.166.102l3.196 3.808c.137.164.2.365.193.564a.824.824 0 01-.193.564l-3.196 3.809a.828.828 0 01-1.268-1.064L11.432 8.8H2.848a.828.828 0 010-1.655h8.543L9.33 4.69a.828.828 0 01.102-1.166z",fill:"currentColor"}))};export{l as N};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var l=function(l){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},l),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.432 3.524a.828.828 0 011.166.102l3.196 3.808c.137.164.2.365.193.564a.824.824 0 01-.193.564l-3.196 3.809a.828.828 0 01-1.268-1.064L11.432 8.8H2.848a.828.828 0 010-1.655h8.543L9.33 4.69a.828.828 0 01.102-1.166z",fill:"currentColor"}))};export{l as N};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{d:"M8.664 2.155H7.355v5.19h-5.19v1.31h5.19v5.19h1.31v-5.19h5.19v-1.31h-5.19v-5.19z",fill:"currentColor"}))};export{r as P};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var r=function(r){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},r),t.createElement("path",{d:"M0 0h17v16H0z"}),t.createElement("path",{d:"M8.664 2.155H7.355v5.19h-5.19v1.31h5.19v5.19h1.31v-5.19h5.19v-1.31h-5.19v-5.19z",fill:"currentColor"}))};export{r as P};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var l=function(l){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},l),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.383 17.898a8.822 8.822 0 111.754-1.805l3.793 3.793a.832.832 0 010 1.176l-.604.603a.832.832 0 01-1.176 0l-3.767-3.767zm.914-6.986a6.301 6.301 0 11-12.603 0 6.301 6.301 0 0112.603 0z",fill:"currentColor"}))};export{l as S};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var l=function(l){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},l),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.383 17.898a8.822 8.822 0 111.754-1.805l3.793 3.793a.832.832 0 010 1.176l-.604.603a.832.832 0 01-1.176 0l-3.767-3.767zm.914-6.986a6.301 6.301 0 11-12.603 0 6.301 6.301 0 0112.603 0z",fill:"currentColor"}))};export{l as S};
@@ -1 +1 @@
1
- import{_ as e}from"./_tslib-531dfe1b-b5467d06.js";import t from"react";var a=function(a){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},a),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.595 4a2 2 0 012-2h4.823a2 2 0 012 2v.843h4.03a.726.726 0 010 1.451h-.814V19a3 3 0 01-3 3H7.39a3 3 0 01-3-3V6.294h-.823a.725.725 0 010-1.45h4.029v-.844zm1.562.843h5.882v-.667a1 1 0 00-1-1h-3.882a1 1 0 00-1 1v.667zM5.928 6.294h12.167V18.81a1.7 1.7 0 01-1.7 1.7H7.628a1.7 1.7 0 01-1.7-1.7V6.294z",fill:"currentColor"}))};export{a as T};
1
+ import{_ as e}from"./_tslib-531dfe1b-b444185f.js";import t from"react";var a=function(a){return t.createElement("svg",e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},a),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.595 4a2 2 0 012-2h4.823a2 2 0 012 2v.843h4.03a.726.726 0 010 1.451h-.814V19a3 3 0 01-3 3H7.39a3 3 0 01-3-3V6.294h-.823a.725.725 0 010-1.45h4.029v-.844zm1.562.843h5.882v-.667a1 1 0 00-1-1h-3.882a1 1 0 00-1 1v.667zM5.928 6.294h12.167V18.81a1.7 1.7 0 01-1.7 1.7H7.628a1.7 1.7 0 01-1.7-1.7V6.294z",fill:"currentColor"}))};export{a as T};
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-d7273633.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,f=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=f,b=P.className,B=P.color,M=void 0===B?"secondary":B,N=P.view,C=void 0===N?"title":N,q=P.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},f,{view:C,weight:E,color:M,className:e(c,b,(p={},p[n]=h,p))}),w,_&&s,_,!!x&&""+a+x)};export{l as Amount};
1
+ import{_ as o,a as t}from"../tslib.es6-904ade04.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,f=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=f,b=P.className,B=P.color,M=void 0===B?"secondary":B,N=P.view,C=void 0===N?"title":N,q=P.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},f,{view:C,weight:E,color:M,className:e(c,b,(p={},p[n]=h,p))}),w,_&&s,_,!!x&&""+a+x)};export{l as Amount};
@@ -1 +1 @@
1
- export{Amount}from"./component.js";import"../tslib.es6-d7273633.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
1
+ export{Amount}from"./component.js";import"../tslib.es6-904ade04.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-d7273633.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,E=void 0===y?"":y,w=o.bold,A=void 0===w||w,R=o.className,S=o.focusedClassName,b=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=A,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:b,placeholder:E,value:J,className:l(v.component,R),focusedClassName:S,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
1
+ import{_ as e,a as t}from"../tslib.es6-904ade04.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,E=void 0===y?"":y,w=o.bold,A=void 0===w||w,R=o.className,S=o.focusedClassName,b=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=A,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:b,placeholder:E,value:J,className:l(v.component,R),focusedClassName:S,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
@@ -1 +1 @@
1
- export{AmountInput}from"./component.js";import"../tslib.es6-d7273633.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
1
+ export{AmountInput}from"./component.js";import"../tslib.es6-904ade04.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
@@ -1 +1 @@
1
- import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as s}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-d7273633.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-6ef6d914.js";import"../_tslib-531dfe1b-b5467d06.js";import"../spinner/component.js";import"../image/utils.js";var m={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,a=i.text,c=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([m.wrapper,(p={},p[m.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:s.xs,view:"circle",size:"s",src:n,text:a}),c&&o.createElement("div",{className:m.slot},c))};export{i as Avatar};
1
+ import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as s}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-904ade04.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-4a24a608.js";import"../_tslib-531dfe1b-b444185f.js";import"../spinner/component.js";import"../image/utils.js";var m={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,a=i.text,c=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([m.wrapper,(p={},p[m.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:s.xs,view:"circle",size:"s",src:n,text:a}),c&&o.createElement("div",{className:m.slot},c))};export{i as Avatar};
@@ -1 +1 @@
1
- export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-d7273633.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-6ef6d914.js";import"../_tslib-531dfe1b-b5467d06.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
1
+ export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-904ade04.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-4a24a608.js";import"../_tslib-531dfe1b-b444185f.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../_tslib-531dfe1b-b5467d06.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import{PureImage as i}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-d7273633.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",s="index-module_bottomSpace__Di-8N",d="index-module_footer__kIafr",n="index-module_withBorder__r41KZ",r="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var j,E=h.className,b=h.bottomSpace,f=void 0===b||b,y=h.orientation,N=void 0===y?"vertical":y,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(j={},j[n]=J,j[r]=k,j[s]=!f,j),E)},!!B&&e.createElement("div",{className:_},e.createElement(i,{src:B,orientation:N,resolution:m.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!f&&e.createElement("div",{className:u})),e.createElement("div",{className:d},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../_tslib-531dfe1b-b444185f.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import{PureImage as i}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-904ade04.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",s="index-module_bottomSpace__Di-8N",n="index-module_footer__kIafr",d="index-module_withBorder__r41KZ",r="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var j,f=h.className,E=h.bottomSpace,b=void 0===E||E,y=h.orientation,N=void 0===y?"vertical":y,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(j={},j[d]=J,j[r]=k,j[s]=!b,j),f)},!!B&&e.createElement("div",{className:_},e.createElement(i,{src:B,orientation:N,resolution:m.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!b&&e.createElement("div",{className:u})),e.createElement("div",{className:n},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
@@ -1 +1 @@
1
- export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d7273633.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../_tslib-531dfe1b-b5467d06.js";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
1
+ export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-904ade04.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../_tslib-531dfe1b-b444185f.js";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
@@ -1,4 +1,4 @@
1
- import e from"react";import{c as t,u as n}from"../_commonjsHelpers-8dd6f8af.js";import{r}from"../index-63bd754c.js";import{C as o}from"../ChevronBackM-bb2979f9.js";import"../_tslib-531dfe1b-b5467d06.js";
1
+ import e from"react";import{c as t,u as n}from"../_commonjsHelpers-90689b88.js";import{r}from"../index-bc379a68.js";import{C as o}from"../ChevronBackM-58403359.js";import"../_tslib-531dfe1b-b444185f.js";
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
@@ -1 +1 @@
1
- export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-8dd6f8af.js";import"../index-63bd754c.js";import"../ChevronBackM-bb2979f9.js";import"../_tslib-531dfe1b-b5467d06.js";
1
+ export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-90689b88.js";import"../index-bc379a68.js";import"../ChevronBackM-58403359.js";import"../_tslib-531dfe1b-b444185f.js";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../tslib.es6-d7273633.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ","outlined-inverted":"index-module_outlined-inverted__Cwspj",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",black:"index-module_black__ah6BZ",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},_=o.forwardRef((function(_,s){var m,u,c=_.children,x=_.view,p=void 0===x?"secondary":x,f=_.leftAddons,b=_.rightAddons,h=_.size,v=void 0===h?"m":h,k=_.block,g=void 0!==k&&k,w=_.className,y=_.dataTestId,E=_.href,N=_.loading,T=void 0!==N&&N,j=_.nowrap,A=void 0!==j&&j,I=e(_,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=r(J,"keyboard")[0],P={className:a(i.component,i[p],i[v],(m={},m[i.focused]=O,m[i.block]=g,m[i.iconOnly]=!c,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},Z=o.createElement(o.Fragment,null,f&&o.createElement("span",{className:i.addons},f),c&&o.createElement("span",{className:a(i.text,(u={},u[i.stretchText]=!(f||b),u))},c),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var z=I.target;return o.createElement("a",d({rel:"_blank"===z?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,s])}),Z)}var R=I,U=R.disabled,B=e(R,["disabled"]);return o.createElement("button",d({},P,B,{disabled:U||T,ref:l([J,s])}),Z)}));export{_ as Button};
1
+ import{_ as e,a as d}from"../tslib.es6-904ade04.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ","outlined-inverted":"index-module_outlined-inverted__Cwspj",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",black:"index-module_black__ah6BZ",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},_=o.forwardRef((function(_,s){var m,u,c=_.children,x=_.view,p=void 0===x?"secondary":x,f=_.leftAddons,b=_.rightAddons,h=_.size,v=void 0===h?"m":h,k=_.block,g=void 0!==k&&k,w=_.className,y=_.dataTestId,E=_.href,N=_.loading,T=void 0!==N&&N,j=_.nowrap,A=void 0!==j&&j,I=e(_,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=r(J,"keyboard")[0],P={className:a(i.component,i[p],i[v],(m={},m[i.focused]=O,m[i.block]=g,m[i.iconOnly]=!c,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},Z=o.createElement(o.Fragment,null,f&&o.createElement("span",{className:i.addons},f),c&&o.createElement("span",{className:a(i.text,(u={},u[i.stretchText]=!(f||b),u))},c),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var z=I.target;return o.createElement("a",d({rel:"_blank"===z?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,s])}),Z)}var R=I,U=R.disabled,B=e(R,["disabled"]);return o.createElement("button",d({},P,B,{disabled:U||T,ref:l([J,s])}),Z)}));export{_ as Button};
@@ -1 +1 @@
1
- export{Button}from"./component.js";import"../tslib.es6-d7273633.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{Button}from"./component.js";import"../tslib.es6-904ade04.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-d7273633.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import i from"classnames";import{s as a}from"../index-76fdf92d.js";import{r as m,d,e as c}from"../index-03e1775f.js";import{DaysTable as l}from"./components/days-table/component.js";import{Header as p}from"./components/header/сomponent.js";import{MonthsTable as f}from"./components/months-table/сomponent.js";import{YearsTable as h}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as v,monthName as x}from"./utils.js";import"../index-66898d9d.js";import"../index-455dc648.js";import"../index-0e782db8.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-03d9f3df.js";import"../index-02841c4f.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";import"../index-5d956ec2.js";import"../index-1830c2d3.js";import"../index-d6d542f2.js";import"../index-27d3e74a.js";import"../index-182dfc3c.js";var j="index-module_component__SJQwG",g="index-module_container__3PFvh",w="index-module_sixWeeks__NcW9R",y={ru:m,de:d,en:c},M=o((function(o,m){var d,c=o.className,M=o.defaultView,D=void 0===M?"days":M,P=o.selectorView,b=void 0===P?"full":P,k=o.value,N=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,S=o.maxDate,F=o.selectedFrom,T=o.selectedTo,Y=o.offDays,A=o.events,V=o.onChange,R=o.onMonthChange,W=o.locale,B=void 0===W?"en":W,G=o.shortNames,I=void 0===G||G,J=o.dataTestId,L=n(D),Q=L[0],q=L[1],z=n(!1),H=z[0],K=z[1],O=y[B],U=r((function(){return k?new Date(k):void 0}),[k]),X=r((function(){return a(U||C)}),[]),Z=r((function(){return N?new Date(N):void 0}),[N]),$=r((function(){return E?new Date(E):void 0}),[E]),ee=r((function(){return S?new Date(S):void 0}),[S]),te=u({month:Z,defaultMonth:X,view:Q,minDate:$,maxDate:ee,selected:U,offDays:Y,events:A,onChange:V,onMonthChange:R}),oe=te.activeMonth,ne=te.weeks,re=te.months,se=te.years,ie=te.canSetPrevMonth,ae=te.canSetNextMonth,me=te.setMonthByDate,de=te.setPrevMonth,ce=te.setNextMonth,le=te.highlighted,pe=te.getDayProps,fe=te.getMonthProps,he=te.getYearProps,ue=te.getRootProps,ve=s((function(e){q(Q===e?"days":e)}),[Q]),xe=s((function(e){K(e>0)}),[]),je=s((function(){de()}),[de]),ge=s((function(){ce()}),[ce]),we=s((function(){ve("months")}),[ve]),ye=s((function(){ve("years")}),[ve]);return v((function(){q("days")}),[oe]),v((function(){K(!1)}),[Q]),v((function(){var e=k&&a(k);e&&e.getTime()!==oe.getTime()&&me(e)}),[k]),t.createElement("div",e({},ue({ref:m}),{className:i(j,c,(d={},d[w]=6===ne.length,d)),"data-test-id":J}),t.createElement(p,{month:x(oe,O,!1),year:oe.getFullYear().toString(),prevArrowVisible:ie,nextArrowVisible:ae,onPrevArrowClick:je,onNextArrowClick:ge,onMonthClick:we,onYearClick:ye,view:b,withShadow:H}),t.createElement("div",{className:g},"days"===Q&&t.createElement(l,{locale:O,weeks:ne,activeMonth:oe,selectedFrom:F,selectedTo:T,getDayProps:pe,highlighted:le}),"months"===Q&&t.createElement(f,{selectedMonth:oe,selectedLocale:O,shortNames:I,months:re,getMonthProps:fe}),"years"===Q&&t.createElement(h,{selectedYear:oe,years:se,getYearProps:he,onScroll:xe})))}));export{M as Calendar};
1
+ import{a as e}from"../tslib.es6-904ade04.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import i from"classnames";import{s as a}from"../index-a44315de.js";import{r as m,d as c,e as d}from"../index-aa637881.js";import{DaysTable as l}from"./components/days-table/component.js";import{Header as p}from"./components/header/сomponent.js";import{MonthsTable as h}from"./components/months-table/сomponent.js";import{YearsTable as f}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as v,monthName as x}from"./utils.js";import"../index-dcdb4a5b.js";import"../index-b5fdc2cf.js";import"../index-54a31521.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-f5e88a33.js";import"../index-70be6621.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";import"../index-22e43f03.js";import"../index-81972909.js";import"../index-92af89dc.js";import"../index-e67304b8.js";import"../index-67853d5e.js";var j="index-module_component__SJQwG",g="index-module_container__3PFvh",w="index-module_sixWeeks__NcW9R",y={ru:m,de:c,en:d},M=o((function(o,m){var c,d=o.className,M=o.defaultView,D=void 0===M?"days":M,b=o.selectorView,P=void 0===b?"full":b,k=o.value,N=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,S=o.maxDate,F=o.selectedFrom,T=o.selectedTo,Y=o.offDays,A=o.events,V=o.onChange,R=o.onMonthChange,W=o.locale,B=void 0===W?"en":W,G=o.shortNames,I=void 0===G||G,J=o.dataTestId,L=n(D),Q=L[0],q=L[1],z=n(!1),H=z[0],K=z[1],O=y[B],U=r((function(){return k?new Date(k):void 0}),[k]),X=r((function(){return a(U||C)}),[]),Z=r((function(){return N?new Date(N):void 0}),[N]),$=r((function(){return E?new Date(E):void 0}),[E]),ee=r((function(){return S?new Date(S):void 0}),[S]),te=u({month:Z,defaultMonth:X,view:Q,minDate:$,maxDate:ee,selected:U,offDays:Y,events:A,onChange:V,onMonthChange:R}),oe=te.activeMonth,ne=te.weeks,re=te.months,se=te.years,ie=te.canSetPrevMonth,ae=te.canSetNextMonth,me=te.setMonthByDate,ce=te.setPrevMonth,de=te.setNextMonth,le=te.highlighted,pe=te.getDayProps,he=te.getMonthProps,fe=te.getYearProps,ue=te.getRootProps,ve=s((function(e){q(Q===e?"days":e)}),[Q]),xe=s((function(e){K(e>0)}),[]),je=s((function(){ce()}),[ce]),ge=s((function(){de()}),[de]),we=s((function(){ve("months")}),[ve]),ye=s((function(){ve("years")}),[ve]);return v((function(){q("days")}),[oe]),v((function(){K(!1)}),[Q]),v((function(){var e=k&&a(k);e&&e.getTime()!==oe.getTime()&&me(e)}),[k]),t.createElement("div",e({},ue({ref:m}),{className:i(j,d,(c={},c[w]=6===ne.length,c)),"data-test-id":J}),t.createElement(p,{month:x(oe,O,!1),year:oe.getFullYear().toString(),prevArrowVisible:ie,nextArrowVisible:ae,onPrevArrowClick:je,onNextArrowClick:ge,onMonthClick:we,onYearClick:ye,view:P,withShadow:H}),t.createElement("div",{className:g},"days"===Q&&t.createElement(l,{locale:O,weeks:ne,activeMonth:oe,selectedFrom:F,selectedTo:T,getDayProps:pe,highlighted:le}),"months"===Q&&t.createElement(h,{selectedMonth:oe,selectedLocale:O,shortNames:I,months:re,getMonthProps:he}),"years"===Q&&t.createElement(f,{selectedYear:oe,years:se,getYearProps:fe,onScroll:xe})))}));export{M as Calendar};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-d7273633.js";import t,{useRef as d,useCallback as a}from"react";import{TransitionGroup as i,CSSTransition as n}from"react-transition-group";import r from"classnames";import{Button as o}from"../../../button/component.js";import{b as s,a as l,i as m}from"../../../index-03d9f3df.js";import{d as _}from"../../../index-0e782db8.js";import{i as u}from"../../../index-02841c4f.js";import{s as c}from"../../../index-76fdf92d.js";import{usePrevious as x}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as f}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-66898d9d.js";import"../../../index-455dc648.js";import"../../../index-182dfc3c.js";var y={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",muted:"index-module_muted__h4D7T",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",rangeEnd:"index-module_rangeEnd__z7AV7",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},g=function(g){var p=g.weeks,v=void 0===p?[]:p,h=g.activeMonth,E=void 0===h?new Date:h,b=g.highlighted,j=g.selectedFrom,A=g.selectedTo,D=g.getDayProps,k=g.locale,N=d(E);N.current=E;var T=x(E),L=T&&(E<T?"right":"left"),w=f(j,A,b),B=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==k?void 0:k.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"abbreviated"})})),M=a((function(){return B.map((function(e){return t.createElement("th",{className:y.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:r(y.daysTable,L&&y[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(i,{component:null},t.createElement(n,{key:E.getTime(),timeout:300,classNames:{enter:y.daysEnter,enterActive:y.daysEnterActive,exit:y.daysExit,exitActive:y.daysExitActive}},t.createElement("tbody",null,v.map((function(d,a){return t.createElement("tr",{key:a},d.map((function(d,a){return t.createElement("td",{key:d?d.date.getTime():a},d&&function(d){var a,i=d.selected||j&&_(d.date,j)||A&&_(d.date,A),n=!i&&w&&s(d.date,w),x=1===d.date.getDate(),f=l(d.date),g=x&&n&&w&&d.date>w.start,p=f&&n&&w&&d.date<w.end,v=w&&_(d.date,w.start),h=w&&_(d.date,w.end),E=D(d);return t.createElement(o,e({},E,{ref:function(e){c(d.date).getTime()===N.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(y.day,(a={},a[y.selected]=i,a[y.range]=n,a[y.rangeStart]=v,a[y.rangeEnd]=h,a[y.transitLeft]=g,a[y.transitRight]=p,a[y.today]=u(d.date),a[y.firstDay]=x,a[y.lastDay]=f,a[y.event]=d.event,a[y.disabled]=d.disabled,a[y.muted]=d.muted,a[y.highlighted]=b&&m(d.date,b),a))}),d.date.getDate())}(d))})))}))))))};export{g as DaysTable};
1
+ import{a as e}from"../../../tslib.es6-904ade04.js";import t,{useRef as d,useCallback as a}from"react";import{TransitionGroup as i,CSSTransition as n}from"react-transition-group";import r from"classnames";import{Button as o}from"../../../button/component.js";import{b as s,a as l,i as m}from"../../../index-f5e88a33.js";import{d as _}from"../../../index-54a31521.js";import{i as u}from"../../../index-70be6621.js";import{s as c}from"../../../index-a44315de.js";import{usePrevious as x}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as y}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-dcdb4a5b.js";import"../../../index-b5fdc2cf.js";import"../../../index-67853d5e.js";var f={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",muted:"index-module_muted__h4D7T",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",rangeEnd:"index-module_rangeEnd__z7AV7",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},g=function(g){var p=g.weeks,v=void 0===p?[]:p,h=g.activeMonth,E=void 0===h?new Date:h,b=g.highlighted,j=g.selectedFrom,A=g.selectedTo,D=g.getDayProps,k=g.locale,N=d(E);N.current=E;var T=x(E),L=T&&(E<T?"right":"left"),w=y(j,A,b),B=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==k?void 0:k.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"abbreviated"})})),M=a((function(){return B.map((function(e){return t.createElement("th",{className:f.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:r(f.daysTable,L&&f[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(i,{component:null},t.createElement(n,{key:E.getTime(),timeout:300,classNames:{enter:f.daysEnter,enterActive:f.daysEnterActive,exit:f.daysExit,exitActive:f.daysExitActive}},t.createElement("tbody",null,v.map((function(d,a){return t.createElement("tr",{key:a},d.map((function(d,a){return t.createElement("td",{key:d?d.date.getTime():a},d&&function(d){var a,i=d.selected||j&&_(d.date,j)||A&&_(d.date,A),n=!i&&w&&s(d.date,w),x=1===d.date.getDate(),y=l(d.date),g=x&&n&&w&&d.date>w.start,p=y&&n&&w&&d.date<w.end,v=w&&_(d.date,w.start),h=w&&_(d.date,w.end),E=D(d);return t.createElement(o,e({},E,{ref:function(e){c(d.date).getTime()===N.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(f.day,(a={},a[f.selected]=i,a[f.range]=n,a[f.rangeStart]=v,a[f.rangeEnd]=h,a[f.transitLeft]=g,a[f.transitRight]=p,a[f.today]=u(d.date),a[f.firstDay]=x,a[f.lastDay]=y,a[f.event]=d.event,a[f.disabled]=d.disabled,a[f.muted]=d.muted,a[f.highlighted]=b&&m(d.date,b),a))}),d.date.getDate())}(d))})))}))))))};export{g as DaysTable};
@@ -1 +1 @@
1
- export{DaysTable}from"./component.js";import"../../../tslib.es6-d7273633.js";import"react";import"react-transition-group";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-03d9f3df.js";import"../../../index-66898d9d.js";import"../../../index-0e782db8.js";import"../../../index-455dc648.js";import"../../../index-02841c4f.js";import"../../../index-76fdf92d.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";import"../../../index-182dfc3c.js";
1
+ export{DaysTable}from"./component.js";import"../../../tslib.es6-904ade04.js";import"react";import"react-transition-group";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-f5e88a33.js";import"../../../index-dcdb4a5b.js";import"../../../index-54a31521.js";import"../../../index-b5fdc2cf.js";import"../../../index-70be6621.js";import"../../../index-a44315de.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";import"../../../index-67853d5e.js";
@@ -1 +1 @@
1
- export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-d7273633.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
1
+ export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-904ade04.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
@@ -1 +1 @@
1
- import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-d7273633.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,v=r.onNextArrowClick,b=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:b},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:v,"aria-label":"Следующий месяц"})))};export{r as Header};
1
+ import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-904ade04.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,v=r.onNextArrowClick,b=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:b},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:v,"aria-label":"Следующий месяц"})))};export{r as Header};
@@ -1 +1 @@
1
- export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-d7273633.js";import"react";import"../../../index-76fdf92d.js";import"../../../index-66898d9d.js";import"../../../index-455dc648.js";import"../../../index-0e782db8.js";import"../../../index-5d956ec2.js";import"../../utils.js";import"../../../index-182dfc3c.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-904ade04.js";import"react";import"../../../index-a44315de.js";import"../../../index-dcdb4a5b.js";import"../../../index-b5fdc2cf.js";import"../../../index-54a31521.js";import"../../../index-22e43f03.js";import"../../utils.js";import"../../../index-67853d5e.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-d7273633.js";import t,{useCallback as o}from"react";import{i as r}from"../../../index-76fdf92d.js";import{i as s}from"../../../index-5d956ec2.js";import{monthName as n}from"../../utils.js";import{SelectButton as m}from"../select-button/сomponent.js";import"../../../index-66898d9d.js";import"../../../index-455dc648.js";import"../../../index-0e782db8.js";import"../../../index-182dfc3c.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i="index-module_monthsTable__Eq4Jn",d="index-module_button__XgrJs",a=function(a){var c=a.selectedMonth,p=a.months,l=void 0===p?[]:p,u=a.getMonthProps,f=a.selectedLocale,j=a.shortNames,x=o((function(e){return c&&r(c,e.date)?"selected":s(e.date)?"outlined":"default"}),[c]);return t.createElement("div",{className:i},l.map((function(o){return t.createElement(m,e({},u(o),{key:o.date.getMonth(),className:d,view:x(o)}),n(o.date,f,j))})))};export{a as MonthsTable};
1
+ import{a as e}from"../../../tslib.es6-904ade04.js";import t,{useCallback as o}from"react";import{i as r}from"../../../index-a44315de.js";import{i as s}from"../../../index-22e43f03.js";import{monthName as n}from"../../utils.js";import{SelectButton as m}from"../select-button/сomponent.js";import"../../../index-dcdb4a5b.js";import"../../../index-b5fdc2cf.js";import"../../../index-54a31521.js";import"../../../index-67853d5e.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i="index-module_monthsTable__Eq4Jn",a="index-module_button__XgrJs",d=function(d){var c=d.selectedMonth,p=d.months,l=void 0===p?[]:p,u=d.getMonthProps,f=d.selectedLocale,j=d.shortNames,x=o((function(e){return c&&r(c,e.date)?"selected":s(e.date)?"outlined":"default"}),[c]);return t.createElement("div",{className:i},l.map((function(o){return t.createElement(m,e({},u(o),{key:o.date.getMonth(),className:a,view:x(o)}),n(o.date,f,j))})))};export{d as MonthsTable};
@@ -1 +1 @@
1
- export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-d7273633.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-904ade04.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../../../tslib.es6-d7273633.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,_=i.view,b=void 0===_?"default":_,c=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},c,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[b],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
1
+ import{_ as e,a as d}from"../../../tslib.es6-904ade04.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,_=i.view,b=void 0===_?"default":_,c=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},c,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[b],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
@@ -1 +1 @@
1
- export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-d7273633.js";import"react";import"../../../index-1830c2d3.js";import"../../../index-66898d9d.js";import"../../../index-d6d542f2.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-904ade04.js";import"react";import"../../../index-81972909.js";import"../../../index-dcdb4a5b.js";import"../../../index-92af89dc.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-d7273633.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{i}from"../../../index-1830c2d3.js";import{i as l}from"../../../index-d6d542f2.js";import{SelectButton as s}from"../select-button/сomponent.js";import"../../../index-66898d9d.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_yearsTable__7bRtn",c="index-module_inner__LF4VE",m="index-module_button__e9zeg",d=function(d){var u=d.selectedYear,p=d.years,f=void 0===p?[]:p,x=d.getYearProps,_=d.onScroll,g=r(null),j=o((function(e){return u&&i(u,e)?"selected":l(e)?"outlined":"default"}),[u]),v=o((function(e){_(e.currentTarget.scrollTop)}),[_]);return n((function(){var e=g.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,_(e.scrollTop)}}),[_,u]),t.createElement("div",{className:a,onScroll:v,ref:g},t.createElement("div",{className:c},f.map((function(r){return t.createElement(s,e({},x(r),{key:r.getFullYear(),view:j(r),className:m}),r.getFullYear())}))))};export{d as YearsTable};
1
+ import{a as e}from"../../../tslib.es6-904ade04.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{i}from"../../../index-81972909.js";import{i as l}from"../../../index-92af89dc.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../index-dcdb4a5b.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var s="index-module_yearsTable__7bRtn",c="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var d=u.selectedYear,p=u.years,f=void 0===p?[]:p,b=u.getYearProps,x=u.onScroll,_=r(null),g=o((function(e){return d&&i(d,e)?"selected":l(e)?"outlined":"default"}),[d]),j=o((function(e){x(e.currentTarget.scrollTop)}),[x]);return n((function(){var e=_.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,x(e.scrollTop)}}),[x,d]),t.createElement("div",{className:s,onScroll:j,ref:_},t.createElement("div",{className:c},f.map((function(r){return t.createElement(a,e({},b(r),{key:r.getFullYear(),view:g(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
@@ -1 +1 @@
1
- export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-d7273633.js";import"react";import"classnames";import"../index-76fdf92d.js";import"../index-66898d9d.js";import"../index-455dc648.js";import"../index-0e782db8.js";import"../index-03e1775f.js";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-03d9f3df.js";import"../index-02841c4f.js";import"../hooks/usePrevious/index.js";import"../index-182dfc3c.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../index-5d956ec2.js";import"./components/years-table/сomponent.js";import"../index-1830c2d3.js";import"../index-d6d542f2.js";import"../index-27d3e74a.js";
1
+ export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-904ade04.js";import"react";import"classnames";import"../index-a44315de.js";import"../index-dcdb4a5b.js";import"../index-b5fdc2cf.js";import"../index-54a31521.js";import"../index-aa637881.js";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-f5e88a33.js";import"../index-70be6621.js";import"../hooks/usePrevious/index.js";import"../index-67853d5e.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../index-22e43f03.js";import"./components/years-table/сomponent.js";import"../index-81972909.js";import"../index-92af89dc.js";import"../index-e67304b8.js";
@@ -1 +1 @@
1
- import{useState as t,useRef as e,useMemo as n,useCallback as r}from"react";import o from"react-merge-refs";import{b as a,d as u}from"../index-0e782db8.js";import{s as i,i as c}from"../index-76fdf92d.js";import{i as f}from"../index-1830c2d3.js";import{a as d,s}from"../index-27d3e74a.js";import{dateArrayToHashTable as g,generateWeeks as m,generateMonths as v,generateYears as l,limitDate as h,simulateTab as w,modifyDateByShift as p,MONTHS_IN_YEAR as D}from"./utils.js";import"../index-455dc648.js";import"../index-66898d9d.js";import"../index-182dfc3c.js";function M(M){var x=M.defaultMonth,A=M.month,y=M.minDate,b=M.view,k=void 0===b?"days":b,T=M.maxDate,j=M.selected,P=M.events,C=M.offDays,I=M.onMonthChange,Y=M.onChange,F=t(x),L=F[0],R=F[1],U=t(),W=U[0],E=U[1],N=void 0===A,O=N?L:A,S=e([]),B=e(null),H=n((function(){return y&&i(y)}),[y]),K=n((function(){return T&&i(T)}),[T]),q=!H||O>H,z=!K||O<K,G=n((function(){return g(P||[])}),[P]),J=n((function(){return g(C||[])}),[C]),Q=n((function(){return m(O,{minDate:y,maxDate:T,selected:j,eventsMap:G,offDaysMap:J})}),[T,y,j,O,G,J]),V=n((function(){return v(O,{minMonth:H,maxMonth:K})}),[H,K,O]),X=n((function(){return l(y||d(new Date,100),T||new Date)}),[y,T]),Z=r((function(t){N&&R(t),I&&I(t.getTime())}),[I,N]),$=r((function(t){Z(h(a(O,t),H,K))}),[Z,O,H,K]),_=r((function(t){Z(h(t,H,K))}),[K,H,Z]),tt=r((function(){$(1)}),[$]),et=r((function(){$(-1)}),[$]),nt=r((function(){return S.current.find((function(t){return document.activeElement===t}))}),[]),rt=r((function(){return S.current.find((function(t){return t&&0===t.tabIndex}))}),[]),ot=r((function(t){t&&(w(t),t.focus())}),[]),at=r((function(){return ot(rt())}),[ot,rt]),ut=r((function(t){var e=nt();if(e&&e.dataset.date){var n=new Date(+e.dataset.date),r=p(t,n,y,T,J),o=!1;r<n&&r.getMonth()!==n.getMonth()&&(et(),o=!0),r>n&&r.getMonth()!==n.getMonth()&&(tt(),o=!0);var a=function(){return ot(S.current[r.getDate()-1])};o?setTimeout(a,0):a()}else at()}),[ot,at,nt,T,y,J,tt,et]),it=r((function(t){var e=nt();if(e&&e.dataset.date){var n=new Date(+e.dataset.date).getMonth()+t;n>=0&&n<D&&ot(S.current[n])}else at()}),[ot,at,nt]),ct=r((function(t){var e=nt();if(e&&e.dataset.date){var n=new Date(+e.dataset.date).getFullYear()+t,r=(new Date).getFullYear();n<=r&&n>r-X.length&&ot(S.current[n])}else at()}),[ot,at,nt,X.length]),ft=r((function(t){var e=t.currentTarget.dataset.date;e&&_(new Date(+e)),B.current&&B.current.focus()}),[_]),dt=r((function(t){var e=t.currentTarget.dataset.date;e&&_(s(O,new Date(+e).getFullYear())),B.current&&B.current.focus()}),[O,_]),st=r((function(t,e){S.current[e]=t}),[]),gt=r((function(t){var e=t.currentTarget.dataset.date;E(e?+e:void 0)}),[]),mt=r((function(){E(void 0)}),[]),vt=r((function(t){var e=t.currentTarget.dataset.date;e&&Y&&Y(+e)}),[Y]),lt={days:n((function(){return{ArrowLeft:function(){return ut("prev")},ArrowRight:function(){return ut("next")},ArrowUp:function(){return ut("prevWeek")},ArrowDown:function(){return ut("nextWeek")},End:function(){return ut("endOfWeek")},Home:function(){return ut("startOfWeek")},PageUp:function(){return ut("prevMonth")},PageDown:function(){return ut("nextMonth")}}}),[ut]),months:n((function(){return{ArrowLeft:function(){return it(-1)},ArrowRight:function(){return it(1)},ArrowUp:function(){return it(-3)},ArrowDown:function(){return it(3)}}}),[it]),years:n((function(){return{ArrowLeft:function(){return ct(1)},ArrowRight:function(){return ct(-1)},ArrowUp:function(){return ct(3)},ArrowDown:function(){return ct(-3)}}}),[ct])},ht=r((function(t){var e=lt[k];t.key in e&&(e[t.key](),t.preventDefault())}),[lt,k]),wt=!1,pt=r((function(t){var e=j&&u(j,t.date),n=e;return j&&c(j,O)||wt||t.disabled||(wt=!0,n=!0),{"data-date":t.date.getTime(),"aria-selected":e,ref:function(e){st(e,t.date.getDate()-1)},tabIndex:n?0:-1,onMouseEnter:gt,onMouseLeave:mt,onClick:vt}}),[vt,st,ht,gt,mt,j]),Dt=r((function(t){var e=c(O,t.date);return{"data-date":t.date.getTime(),"aria-selected":e,ref:function(e){st(e,t.date.getMonth())},tabIndex:e?0:-1,disabled:t.disabled,onClick:ft}}),[O,st,ft]),Mt=r((function(t){var e=f(O,t);return{"data-date":t.getTime(),"aria-selected":e,ref:function(e){st(e,t.getFullYear())},tabIndex:e?0:-1,onClick:dt}}),[O,st,dt]),xt=r((function(t){var e=t.ref;return{onKeyDown:ht,ref:o([void 0===e?null:e,B]),tabIndex:-1}}),[ht]);return{activeMonth:O,weeks:Q,months:V,years:X,canSetPrevMonth:q,canSetNextMonth:z,highlighted:W,setPrevMonth:et,setNextMonth:tt,setMonthByDate:_,getDayProps:pt,getMonthProps:Dt,getYearProps:Mt,getRootProps:xt}}export{M as useCalendar};
1
+ import{useState as t,useRef as e,useMemo as n,useCallback as r}from"react";import o from"react-merge-refs";import{b as a,d as u}from"../index-54a31521.js";import{s as i,i as c}from"../index-a44315de.js";import{i as f}from"../index-81972909.js";import{a as d,s}from"../index-e67304b8.js";import{dateArrayToHashTable as g,generateWeeks as m,generateMonths as v,generateYears as l,limitDate as h,simulateTab as w,modifyDateByShift as p,MONTHS_IN_YEAR as D}from"./utils.js";import"../index-b5fdc2cf.js";import"../index-dcdb4a5b.js";import"../index-67853d5e.js";function M(M){var x=M.defaultMonth,b=M.month,A=M.minDate,y=M.view,k=void 0===y?"days":y,T=M.maxDate,j=M.selected,P=M.events,C=M.offDays,I=M.onMonthChange,Y=M.onChange,F=t(x),L=F[0],R=F[1],U=t(),W=U[0],E=U[1],N=void 0===b,O=N?L:b,S=e([]),B=e(null),H=n((function(){return A&&i(A)}),[A]),K=n((function(){return T&&i(T)}),[T]),q=!H||O>H,z=!K||O<K,G=n((function(){return g(P||[])}),[P]),J=n((function(){return g(C||[])}),[C]),Q=n((function(){return m(O,{minDate:A,maxDate:T,selected:j,eventsMap:G,offDaysMap:J})}),[T,A,j,O,G,J]),V=n((function(){return v(O,{minMonth:H,maxMonth:K})}),[H,K,O]),X=n((function(){return l(A||d(new Date,100),T||new Date)}),[A,T]),Z=r((function(t){N&&R(t),I&&I(t.getTime())}),[I,N]),$=r((function(t){Z(h(a(O,t),H,K))}),[Z,O,H,K]),_=r((function(t){Z(h(t,H,K))}),[K,H,Z]),tt=r((function(){$(1)}),[$]),et=r((function(){$(-1)}),[$]),nt=r((function(){return S.current.find((function(t){return document.activeElement===t}))}),[]),rt=r((function(){return S.current.find((function(t){return t&&0===t.tabIndex}))}),[]),ot=r((function(t){t&&(w(t),t.focus())}),[]),at=r((function(){return ot(rt())}),[ot,rt]),ut=r((function(t){var e=nt();if(e&&e.dataset.date){var n=new Date(+e.dataset.date),r=p(t,n,A,T,J),o=!1;r<n&&r.getMonth()!==n.getMonth()&&(et(),o=!0),r>n&&r.getMonth()!==n.getMonth()&&(tt(),o=!0);var a=function(){return ot(S.current[r.getDate()-1])};o?setTimeout(a,0):a()}else at()}),[ot,at,nt,T,A,J,tt,et]),it=r((function(t){var e=nt();if(e&&e.dataset.date){var n=new Date(+e.dataset.date).getMonth()+t;n>=0&&n<D&&ot(S.current[n])}else at()}),[ot,at,nt]),ct=r((function(t){var e=nt();if(e&&e.dataset.date){var n=new Date(+e.dataset.date).getFullYear()+t,r=(new Date).getFullYear();n<=r&&n>r-X.length&&ot(S.current[n])}else at()}),[ot,at,nt,X.length]),ft=r((function(t){var e=t.currentTarget.dataset.date;e&&_(new Date(+e)),B.current&&B.current.focus()}),[_]),dt=r((function(t){var e=t.currentTarget.dataset.date;e&&_(s(O,new Date(+e).getFullYear())),B.current&&B.current.focus()}),[O,_]),st=r((function(t,e){S.current[e]=t}),[]),gt=r((function(t){var e=t.currentTarget.dataset.date;E(e?+e:void 0)}),[]),mt=r((function(){E(void 0)}),[]),vt=r((function(t){var e=t.currentTarget.dataset.date;e&&Y&&Y(+e)}),[Y]),lt={days:n((function(){return{ArrowLeft:function(){return ut("prev")},ArrowRight:function(){return ut("next")},ArrowUp:function(){return ut("prevWeek")},ArrowDown:function(){return ut("nextWeek")},End:function(){return ut("endOfWeek")},Home:function(){return ut("startOfWeek")},PageUp:function(){return ut("prevMonth")},PageDown:function(){return ut("nextMonth")}}}),[ut]),months:n((function(){return{ArrowLeft:function(){return it(-1)},ArrowRight:function(){return it(1)},ArrowUp:function(){return it(-3)},ArrowDown:function(){return it(3)}}}),[it]),years:n((function(){return{ArrowLeft:function(){return ct(1)},ArrowRight:function(){return ct(-1)},ArrowUp:function(){return ct(3)},ArrowDown:function(){return ct(-3)}}}),[ct])},ht=r((function(t){var e=lt[k];t.key in e&&(e[t.key](),t.preventDefault())}),[lt,k]),wt=!1,pt=r((function(t){var e=j&&u(j,t.date),n=e;return j&&c(j,O)||wt||t.disabled||(wt=!0,n=!0),{"data-date":t.date.getTime(),"aria-selected":e,ref:function(e){st(e,t.date.getDate()-1)},tabIndex:n?0:-1,onMouseEnter:gt,onMouseLeave:mt,onClick:vt}}),[vt,st,ht,gt,mt,j]),Dt=r((function(t){var e=c(O,t.date);return{"data-date":t.date.getTime(),"aria-selected":e,ref:function(e){st(e,t.date.getMonth())},tabIndex:e?0:-1,disabled:t.disabled,onClick:ft}}),[O,st,ft]),Mt=r((function(t){var e=f(O,t);return{"data-date":t.getTime(),"aria-selected":e,ref:function(e){st(e,t.getFullYear())},tabIndex:e?0:-1,onClick:dt}}),[O,st,dt]),xt=r((function(t){var e=t.ref;return{onKeyDown:ht,ref:o([void 0===e?null:e,B]),tabIndex:-1}}),[ht]);return{activeMonth:O,weeks:Q,months:V,years:X,canSetPrevMonth:q,canSetNextMonth:z,highlighted:W,setPrevMonth:et,setNextMonth:tt,setMonthByDate:_,getDayProps:pt,getMonthProps:Dt,getYearProps:Mt,getRootProps:xt}}export{M as useCalendar};
@@ -1 +1 @@
1
- import{useState as i,useCallback as e}from"react";import{useDidUpdateEffect as t}from"./utils.js";import"../index-0e782db8.js";import"../index-455dc648.js";import"../index-66898d9d.js";import"../index-76fdf92d.js";import"../index-182dfc3c.js";function o(o){var d=o.onPeriodChange,n=o.initialSelectedFrom,r=o.initialSelectedTo,c=i(n),f=c[0],m=c[1],s=i(r),a=s[0],u=s[1],p=e((function(){m(void 0),u(void 0)}),[]),l=e((function(i){m(i)}),[]),v=e((function(i){u(i)}),[]),x=e((function(i){if(void 0!==i){if(f)return a?void(i>f?u(i):i<f&&(u(void 0),m(i))):(m(Math.min(i,f)),void u(Math.max(i,f)));m(i)}else p()}),[p,f,a]);return t((function(){d&&d(f,a)}),[f,a]),{selectedFrom:f,selectedTo:a,setStart:l,setEnd:v,resetPeriod:p,updatePeriod:x}}export{o as usePeriod};
1
+ import{useState as i,useCallback as e}from"react";import{useDidUpdateEffect as t}from"./utils.js";import"../index-54a31521.js";import"../index-b5fdc2cf.js";import"../index-dcdb4a5b.js";import"../index-a44315de.js";import"../index-67853d5e.js";function o(o){var d=o.onPeriodChange,n=o.initialSelectedFrom,r=o.initialSelectedTo,c=i(n),a=c[0],m=c[1],s=i(r),f=s[0],u=s[1],p=e((function(){m(void 0),u(void 0)}),[]),l=e((function(i){m(i)}),[]),v=e((function(i){u(i)}),[]),x=e((function(i){if(void 0!==i){if(a)return f?void(i>a?u(i):i<a&&(u(void 0),m(i))):(m(Math.min(i,a)),void u(Math.max(i,a)));m(i)}else p()}),[p,a,f]);return t((function(){d&&d(a,f)}),[a,f]),{selectedFrom:a,selectedTo:f,setStart:l,setEnd:v,resetPeriod:p,updatePeriod:x}}export{o as usePeriod};
@@ -1 +1 @@
1
- import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-0e782db8.js";import{s as d,c as v,l as m,e as p,a as l,h as b,f as x,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-76fdf92d.js";import{f as T}from"../index-182dfc3c.js";import"../index-455dc648.js";import"../index-66898d9d.js";var j=7,D=12,M=6;function O(e){var n=e.getDay();return 0===n?j-1:n-1}function W(e,n){var a=function(){return Array(j).fill(null)},u=d(e),i=t(d(e)),o=v(m(e)),s=a();return p({start:i,end:o}).reduce((function(e,t){var i=O(t);return s[i]=S(t,u,n),(i===M||r(t,o))&&(e.push(s),s=a()),e}),[])}function E(e,n){return l({start:b(e),end:x(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([b(n),b(e)]),end:g([b(n),b(e)])}).reverse()}function S(e,n,t){var i=t.minDate,o=t.maxDate,s=t.selected,f=t.eventsMap,c=void 0===f?{}:f,d=t.offDaysMap,v=(void 0===d?{}:d)[e.getTime()];return{date:e,disabled:i&&a(e,i)||o&&u(e,o)||v,event:c[e.getTime()],selected:s&&r(e,s),muted:!h(e,n)}}function A(e,n){var t=n.minMonth,r=n.maxMonth;return{date:e,disabled:t&&a(e,t)||r&&u(e,r)}}function q(e,n,t){var r=e;return n&&(r=g([n,r])),t&&(r=w([t,r])),new Date(r)}function z(e,n,t){return e&&q(e,n,t).getTime()===new Date(e).getTime()}function B(e,n,t){return T(e,t?"LLL":"LLLL",{locale:n})}function C(e){return e.reduce((function(e,n){return e[i(n).getTime()]=!0,e}),{})}function F(e,n,t){var r=n||t;return e&&r&&e!==r?{start:w([e,r]),end:g([e,r])}:null}function G(e,n,t,r,a){void 0===a&&(a={});for(var u={prev:function(){return s(n,1)},prevWeek:function(){return s(n,7)},prevMonth:function(){return y(n,1)},next:function(){return o(n,1)},nextWeek:function(){return o(n,7)},nextMonth:function(){return f(n,1)},startOfWeek:function(){return c(n,{weekStartsOn:1})},endOfWeek:function(){return i(L(n,{weekStartsOn:1}))}}[e]();a[u.getTime()];){var d=u<n?-1:1;"endOfWeek"===e&&(d=-1),"startOfWeek"===e&&(d=1),u=o(u,d)}return q(u,t,r)}function H(e){if(window.KeyboardEvent){var n=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});e.dispatchEvent(n)}}function I(t,r){var a=e(!1);n((function(){a.current?t():a.current=!0}),r)}export{j as DAYS_IN_WEEK,D as MONTHS_IN_YEAR,M as SUNDAY_INDEX,S as buildDay,A as buildMonth,C as dateArrayToHashTable,z as dateInLimits,E as generateMonths,W as generateWeeks,K as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,O as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
1
+ import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-54a31521.js";import{s as d,c as v,l as m,e as p,a as l,h as b,f as x,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-a44315de.js";import{f as T}from"../index-67853d5e.js";import"../index-b5fdc2cf.js";import"../index-dcdb4a5b.js";var j=7,D=12,M=6;function O(e){var n=e.getDay();return 0===n?j-1:n-1}function W(e,n){var a=function(){return Array(j).fill(null)},u=d(e),i=t(d(e)),o=v(m(e)),s=a();return p({start:i,end:o}).reduce((function(e,t){var i=O(t);return s[i]=S(t,u,n),(i===M||r(t,o))&&(e.push(s),s=a()),e}),[])}function E(e,n){return l({start:b(e),end:x(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([b(n),b(e)]),end:g([b(n),b(e)])}).reverse()}function S(e,n,t){var i=t.minDate,o=t.maxDate,s=t.selected,f=t.eventsMap,c=void 0===f?{}:f,d=t.offDaysMap,v=(void 0===d?{}:d)[e.getTime()];return{date:e,disabled:i&&a(e,i)||o&&u(e,o)||v,event:c[e.getTime()],selected:s&&r(e,s),muted:!h(e,n)}}function A(e,n){var t=n.minMonth,r=n.maxMonth;return{date:e,disabled:t&&a(e,t)||r&&u(e,r)}}function q(e,n,t){var r=e;return n&&(r=g([n,r])),t&&(r=w([t,r])),new Date(r)}function z(e,n,t){return e&&q(e,n,t).getTime()===new Date(e).getTime()}function B(e,n,t){return T(e,t?"LLL":"LLLL",{locale:n})}function C(e){return e.reduce((function(e,n){return e[i(n).getTime()]=!0,e}),{})}function F(e,n,t){var r=n||t;return e&&r&&e!==r?{start:w([e,r]),end:g([e,r])}:null}function G(e,n,t,r,a){void 0===a&&(a={});for(var u={prev:function(){return s(n,1)},prevWeek:function(){return s(n,7)},prevMonth:function(){return y(n,1)},next:function(){return o(n,1)},nextWeek:function(){return o(n,7)},nextMonth:function(){return f(n,1)},startOfWeek:function(){return c(n,{weekStartsOn:1})},endOfWeek:function(){return i(L(n,{weekStartsOn:1}))}}[e]();a[u.getTime()];){var d=u<n?-1:1;"endOfWeek"===e&&(d=-1),"startOfWeek"===e&&(d=1),u=o(u,d)}return q(u,t,r)}function H(e){if(window.KeyboardEvent){var n=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});e.dispatchEvent(n)}}function I(t,r){var a=e(!1);n((function(){a.current?t():a.current=!0}),r)}export{j as DAYS_IN_WEEK,D as MONTHS_IN_YEAR,M as SUNDAY_INDEX,S as buildDay,A as buildMonth,C as dateArrayToHashTable,z as dateInLimits,E as generateMonths,W as generateWeeks,K as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,O as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-d7273633.js";import o,{forwardRef as n,useState as r,useRef as a,useCallback as i,useEffect as d}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as l}from"../calendar/utils.js";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as j,isCompleteDateInput as v,DATE_MASK as x,SUPPORTS_INPUT_TYPE_DATE as b,NATIVE_DATE_FORMAT as g}from"./utils.js";import"../index-76fdf92d.js";import"../index-66898d9d.js";import"../index-455dc648.js";import"../index-0e782db8.js";import"../index-03e1775f.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-03d9f3df.js";import"../index-02841c4f.js";import"../hooks/usePrevious/index.js";import"../index-182dfc3c.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-5d956ec2.js";import"../calendar/components/years-table/сomponent.js";import"../index-1830c2d3.js";import"../index-d6d542f2.js";import"../calendar/use-calendar.js";import"../index-27d3e74a.js";import"../_commonjsHelpers-8dd6f8af.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-b5467d06.js";import"../CloseS-ccfbf513.js";import"../toast-notifier/use-timer.js";import"../index-188e43dd.js";import"../index-ead6f0ba.js";import"../index-00e9de98.js";var h="index-module_component__pdVE2",y="index-module_block__wtVLz",_="index-module_calendarContainer__x7A2x",C="index-module_calendarIcon__muPk-",k="index-module_nativeInput__siME6",D=n((function(n,D){var w,E=n.block,M=void 0!==E&&E,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,K=n.dataTestId,U=n.minDate,z=n.required,B=n.maxDate,H=n.calendarProps,L=void 0===H?{}:H,S=n.preventFlip,G=n.mobileMode,J=void 0===G?"popover":G,Q=n.wrapperRef,W=void 0===Q?null:Q,X=n.disabled,Y=n.onChange,Z=n.onInputChange,$=n.onCalendarChange,ee=n.readOnly,te=e(n,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),oe=void 0===(R=R&&R.split("-").length?R.split("-").reverse().join("."):R),ne=b&&"native"===J,re="input"===J,ae="static"===q&&!re,ie="popover"===q&&!ne&&!re,de=r(!1),pe=de[0],me=de[1],se=r(O),le=se[0],ce=se[1],ue=oe?le:R,fe=ue?j(ue).getTime():void 0,je=l(fe,U,B),ve=X||ee,xe=a(null),be=a(null),ge=a(null),he=a(null),ye=i((function(e){"Escape"===e.key&&me(!1)}),[]),_e=i((function(){pe||me(!0)}),[pe]),Ce=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[pe]),ke=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&me(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),we=i((function(e,t,o,n,r){void 0===n&&(n="input"),void 0===r&&(r=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),r&&(oe&&ce(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),Ee=i((function(e){var t=e.target.value,o=j(t);we(e,t,o,"input",v(t))}),[we]),Me=i((function(e){var t=j(e.target.value,g),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});we(e,o,t)}),[we]),Ne=i((function(e){we(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),me(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);d((function(){me(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(s,t({},L,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:U,maxDate:B})))}),[L,fe,F,Ne,Ie,je,B,U]);return o.createElement("div",{ref:ge,className:m(h,N,(w={},w[y]=M,w)),tabIndex:-1,onKeyDown:ve?void 0:ye,onClick:ve?void 0:_e,onFocus:ve?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(c,t({},te,{ref:p([D,xe]),wrapperRef:p([W,be]),className:I,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:p([D,xe]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),ae&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:be.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:S},Pe()))}));export{D as CalendarInput};
1
+ import{_ as e,a as t}from"../tslib.es6-904ade04.js";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as p}from"react";import m from"react-merge-refs";import s from"classnames";import{Calendar as d}from"../calendar/component.js";import{dateInLimits as l}from"../calendar/utils.js";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as j,isCompleteDateInput as v,DATE_MASK as x,SUPPORTS_INPUT_TYPE_DATE as b,NATIVE_DATE_FORMAT as g}from"./utils.js";import"../index-a44315de.js";import"../index-dcdb4a5b.js";import"../index-b5fdc2cf.js";import"../index-54a31521.js";import"../index-aa637881.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-f5e88a33.js";import"../index-70be6621.js";import"../hooks/usePrevious/index.js";import"../index-67853d5e.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-22e43f03.js";import"../calendar/components/years-table/сomponent.js";import"../index-81972909.js";import"../index-92af89dc.js";import"../calendar/use-calendar.js";import"../index-e67304b8.js";import"../_commonjsHelpers-90689b88.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-b444185f.js";import"../CloseS-97b5b77a.js";import"../toast-notifier/use-timer.js";import"../index-f7b689d3.js";import"../index-86405ec6.js";import"../index-770f6fb6.js";var h="index-module_component__pdVE2",y="index-module_block__wtVLz",_="index-module_calendarContainer__x7A2x",C="index-module_calendarIcon__muPk-",k="index-module_nativeInput__siME6",D=n((function(n,D){var w,E=n.block,M=void 0!==E&&E,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,K=n.dataTestId,U=n.minDate,z=n.required,B=n.maxDate,H=n.calendarProps,L=void 0===H?{}:H,S=n.preventFlip,G=n.mobileMode,J=void 0===G?"popover":G,Q=n.wrapperRef,W=void 0===Q?null:Q,X=n.disabled,Y=n.onChange,Z=n.onInputChange,$=n.onCalendarChange,ee=n.readOnly,te=e(n,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),oe=void 0===(R=R&&R.split("-").length?R.split("-").reverse().join("."):R),ne=b&&"native"===J,ae="input"===J,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,pe=a(!1),me=pe[0],se=pe[1],de=a(O),le=de[0],ce=de[1],ue=oe?le:R,fe=ue?j(ue).getTime():void 0,je=l(fe,U,B),ve=X||ee,xe=r(null),be=r(null),ge=r(null),he=r(null),ye=i((function(e){"Escape"===e.key&&se(!1)}),[]),_e=i((function(){me||se(!0)}),[me]),Ce=i((function(e){se(!0),!me&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[me]),ke=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&se(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),we=i((function(e,t,o,n,a){void 0===n&&(n="input"),void 0===a&&(a=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),a&&(oe&&ce(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),Ee=i((function(e){var t=e.target.value,o=j(t);we(e,t,o,"input",v(t))}),[we]),Me=i((function(e){var t=j(e.target.value,g),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});we(e,o,t)}),[we]),Ne=i((function(e){we(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),se(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);p((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(d,t({},L,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:U,maxDate:B})))}),[L,fe,F,Ne,Ie,je,B,U]);return o.createElement("div",{ref:ge,className:s(h,N,(w={},w[y]=M,w)),tabIndex:-1,onKeyDown:ve?void 0:ye,onClick:ve?void 0:_e,onFocus:ve?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(c,t({},te,{ref:m([D,xe]),wrapperRef:m([W,be]),className:I,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:m([D,xe]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:me,anchorElement:be.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:S},Pe()))}));export{D as CalendarInput};
@@ -1 +1 @@
1
- export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-d7273633.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-76fdf92d.js";import"../index-66898d9d.js";import"../index-455dc648.js";import"../index-0e782db8.js";import"../index-03e1775f.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-03d9f3df.js";import"../index-02841c4f.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../index-182dfc3c.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-5d956ec2.js";import"../calendar/components/years-table/сomponent.js";import"../index-1830c2d3.js";import"../index-d6d542f2.js";import"../calendar/use-calendar.js";import"../index-27d3e74a.js";import"../masked-input/component.js";import"../_commonjsHelpers-8dd6f8af.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-b5467d06.js";import"../CloseS-ccfbf513.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-188e43dd.js";import"../index-ead6f0ba.js";import"../index-00e9de98.js";
1
+ export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-904ade04.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-a44315de.js";import"../index-dcdb4a5b.js";import"../index-b5fdc2cf.js";import"../index-54a31521.js";import"../index-aa637881.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-f5e88a33.js";import"../index-70be6621.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../index-67853d5e.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-22e43f03.js";import"../calendar/components/years-table/сomponent.js";import"../index-81972909.js";import"../index-92af89dc.js";import"../calendar/use-calendar.js";import"../index-e67304b8.js";import"../masked-input/component.js";import"../_commonjsHelpers-90689b88.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-b444185f.js";import"../CloseS-97b5b77a.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-f7b689d3.js";import"../index-86405ec6.js";import"../index-770f6fb6.js";
@@ -1 +1 @@
1
- import{p as e}from"../index-188e43dd.js";import"../index-455dc648.js";import"../index-66898d9d.js";import"../index-ead6f0ba.js";var t="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],i="undefined"!=typeof window,r=i&&a(),o=function(e){return e.length===n.length},u=function(d,n){return void 0===n&&(n=t),e(d,n,new Date)};function a(){var e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}export{t as DATE_FORMAT,n as DATE_MASK,i as IS_BROWSER,d as NATIVE_DATE_FORMAT,r as SUPPORTS_INPUT_TYPE_DATE,o as isCompleteDateInput,a as isInputDateSupported,u as parseDateString};
1
+ import{p as e}from"../index-f7b689d3.js";import"../index-b5fdc2cf.js";import"../index-dcdb4a5b.js";import"../index-86405ec6.js";var t="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],i="undefined"!=typeof window,r=i&&a(),o=function(e){return e.length===n.length},u=function(d,n){return void 0===n&&(n=t),e(d,n,new Date)};function a(){var e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}export{t as DATE_FORMAT,n as DATE_MASK,i as IS_BROWSER,d as NATIVE_DATE_FORMAT,r as SUPPORTS_INPUT_TYPE_DATE,o as isCompleteDateInput,a as isInputDateSupported,u as parseDateString};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-d7273633.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../_tslib-531dfe1b-b5467d06.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-6ef6d914.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,p=r.bottomAddons,a=r.images,l=void 0===a?[]:a,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,j=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),j),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),p))};export{r as Card};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-904ade04.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../_tslib-531dfe1b-b444185f.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-4a24a608.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,a=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,j=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),j),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),a))};export{r as Card};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../_tslib-531dfe1b-b5467d06.js";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-6ef6d914.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-d7273633.js";import"../../typography/title/component.js";import"../../colors.module-f109ae96.js";import"../../common.module-c9c218b0.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var p=s.images,a=void 0===p?[]:p,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},a.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},a.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:a[0],resolution:r.m})))};export{s as CardImages};
1
+ import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../_tslib-531dfe1b-b444185f.js";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-4a24a608.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-904ade04.js";import"../../typography/title/component.js";import"../../colors.module-88c1f9c4.js";import"../../common.module-2283ab68.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var a=s.images,p=void 0===a?[]:a,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:p[0],resolution:r.m})))};export{s as CardImages};
@@ -1 +1 @@
1
- export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d7273633.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../_tslib-531dfe1b-b5467d06.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-6ef6d914.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
1
+ export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-904ade04.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../_tslib-531dfe1b-b444185f.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-4a24a608.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
@@ -1 +1 @@
1
- import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-d2b5264d.js";import"../../typography/title/index.js";import"../../tslib.es6-d7273633.js";import"../../typography/title/component.js";import"../../colors.module-f109ae96.js";import"../../common.module-c9c218b0.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-587103c6.js";import"../../typography/title/index.js";import"../../tslib.es6-904ade04.js";import"../../typography/title/component.js";import"../../colors.module-88c1f9c4.js";import"../../common.module-2283ab68.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export * from "../../component-d2b5264d";
1
+ export * from "../../component-587103c6";
@@ -1 +1 @@
1
- export{B as Base}from"../../component-d2b5264d.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-d7273633.js";import"../../typography/title/component.js";import"../../colors.module-f109ae96.js";import"../../common.module-c9c218b0.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ export{B as Base}from"../../component-587103c6.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-904ade04.js";import"../../typography/title/component.js";import"../../colors.module-88c1f9c4.js";import"../../common.module-2283ab68.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-d2b5264d.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d7273633.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{C as Cell}from"../component-587103c6.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-904ade04.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-d2b5264d.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-d7273633.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-587103c6.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-904ade04.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as r}from"../../tslib.es6-d7273633.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
1
+ import{_ as e,a as r}from"../../tslib.es6-904ade04.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
@@ -1 +1 @@
1
- export{Pure}from"./component.js";import"../../tslib.es6-d7273633.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
1
+ export{Pure}from"./component.js";import"../../tslib.es6-904ade04.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-d7273633.js";import t,{forwardRef as a,useRef as d}from"react";import l from"react-merge-refs";import{_ as o}from"../_tslib-531dfe1b-b5467d06.js";import i from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var c=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{d:"M0 0h16v16H0z"}),t.createElement("path",{d:"M14.667 5.014l-7.741 7.764-5.592-5.645L2.863 5.6l3.932 3.94 6.195-6.207 1.677 1.68z",fill:"currentColor"}))},s=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M13.027 10.974H2.86v2.048H21.147v-2.048h-8.12z",fill:"currentColor"}))},r={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},_=a((function(a,o){var _,u=a.checked,h=a.label,b=a.hint,p=a.size,x=void 0===p?"m":p,f=a.align,E=void 0===f?"center":f,k=a.addons,v=a.block,g=a.onChange,w=a.className,N=a.name,I=a.disabled,z=a.dataTestId,C=a.indeterminate,M=void 0!==C&&C,H=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),j=d(null),y=m(j,"keyboard")[0];return t.createElement("label",{className:i(r.component,r[x],r[E],w,(_={},_[r.disabled]=I,_[r.checked]=u,_[r.indeterminate]=M,_[r.focused]=y,_[r.block]=v,_)),ref:l([j,o])},t.createElement("span",{className:r.box},t.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:N})},disabled:I,checked:u,"data-test-id":z},H)),u&&t.createElement(c,null),M&&!u&&t.createElement("div",{className:r.indeterminateIcon},t.createElement(s,null))),(h||b)&&t.createElement("span",{className:r.content},h&&t.createElement("span",{className:r.label},h),b&&t.createElement("span",{className:r.hint},b)),k&&t.createElement("span",{className:r.addons},k))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
1
+ import{_ as e,a as n}from"../tslib.es6-904ade04.js";import t,{forwardRef as a,useRef as d}from"react";import l from"react-merge-refs";import{_ as o}from"../_tslib-531dfe1b-b444185f.js";import i from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var c=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{d:"M0 0h16v16H0z"}),t.createElement("path",{d:"M14.667 5.014l-7.741 7.764-5.592-5.645L2.863 5.6l3.932 3.94 6.195-6.207 1.677 1.68z",fill:"currentColor"}))},s=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M13.027 10.974H2.86v2.048H21.147v-2.048h-8.12z",fill:"currentColor"}))},r={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},_=a((function(a,o){var _,u=a.checked,h=a.label,b=a.hint,p=a.size,x=void 0===p?"m":p,f=a.align,E=void 0===f?"center":f,k=a.addons,v=a.block,g=a.onChange,w=a.className,N=a.name,I=a.disabled,z=a.dataTestId,C=a.indeterminate,M=void 0!==C&&C,H=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),j=d(null),y=m(j,"keyboard")[0];return t.createElement("label",{className:i(r.component,r[x],r[E],w,(_={},_[r.disabled]=I,_[r.checked]=u,_[r.indeterminate]=M,_[r.focused]=y,_[r.block]=v,_)),ref:l([j,o])},t.createElement("span",{className:r.box},t.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:N})},disabled:I,checked:u,"data-test-id":z},H)),u&&t.createElement(c,null),M&&!u&&t.createElement("div",{className:r.indeterminateIcon},t.createElement(s,null))),(h||b)&&t.createElement("span",{className:r.content},h&&t.createElement("span",{className:r.label},h),b&&t.createElement("span",{className:r.hint},b)),k&&t.createElement("span",{className:r.addons},k))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-d7273633.js";import"react";import"react-merge-refs";import"../_tslib-531dfe1b-b5467d06.js";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-904ade04.js";import"react";import"react-merge-refs";import"../_tslib-531dfe1b-b444185f.js";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-d7273633.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"../_tslib-531dfe1b-b5467d06.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-f109ae96.js";import"../common.module-c9c218b0.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",m="index-module_subtitle__0PkbT",c=function(c){var l=c.title,s=c.subtitle,a=c.selected,d=void 0===a?[]:a,p=c.data,u=void 0===p?[]:p,v=c.onChange,g=c.columns,y=void 0===g?1:g,f=c.gr,b=void 0===f?20:f,h=c.gc,x=void 0===h?20:h,j=c.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:y,gr:b,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-904ade04.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"../_tslib-531dfe1b-b444185f.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-88c1f9c4.js";import"../common.module-2283ab68.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",m="index-module_subtitle__0PkbT",c=function(c){var l=c.title,a=c.subtitle,s=c.selected,d=void 0===s?[]:s,p=c.data,u=void 0===p?[]:p,v=c.onChange,g=c.columns,f=void 0===g?1:g,y=c.gr,b=void 0===y?20:y,h=c.gc,x=void 0===h?20:h,j=c.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:f,gr:b,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};