@alphakits/ui 1.27.31 → 1.27.32

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 (293) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/amount-input/component.js +1 -1
  4. package/dist/amount-input/index.js +1 -1
  5. package/dist/avatar/component.js +1 -1
  6. package/dist/avatar/index.js +1 -1
  7. package/dist/base-card/component.js +1 -1
  8. package/dist/base-card/index.js +1 -1
  9. package/dist/bottom-sheet/component.js +1 -1
  10. package/dist/bottom-sheet/index.js +1 -1
  11. package/dist/button/component.js +1 -1
  12. package/dist/button/index.js +1 -1
  13. package/dist/calendar/component.js +1 -1
  14. package/dist/calendar/components/days-table/component.js +1 -1
  15. package/dist/calendar/components/days-table/index.js +1 -1
  16. package/dist/calendar/components/header/index.js +1 -1
  17. package/dist/calendar/components/header//321/201omponent.js +1 -1
  18. package/dist/calendar/components/months-table/index.js +1 -1
  19. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  20. package/dist/calendar/components/select-button/index.js +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table/index.js +1 -1
  23. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  24. package/dist/calendar/index.js +1 -1
  25. package/dist/calendar/use-calendar.js +1 -1
  26. package/dist/calendar/use-period.js +1 -1
  27. package/dist/calendar/utils.js +1 -1
  28. package/dist/calendar-input/component.js +1 -1
  29. package/dist/calendar-input/index.js +1 -1
  30. package/dist/calendar-input/utils.js +1 -1
  31. package/dist/{capitalize-1ea4b685.js → capitalize-e9f8d26d.js} +1 -1
  32. package/dist/card/component.js +1 -1
  33. package/dist/card/images/index.js +1 -1
  34. package/dist/card/index.js +1 -1
  35. package/dist/cell/base/component.js +1 -1
  36. package/dist/cell/component.js +1 -1
  37. package/dist/cell/index.d.ts +1 -1
  38. package/dist/cell/index.js +1 -1
  39. package/dist/cell/pure/component.js +1 -1
  40. package/dist/checkbox/component.js +1 -1
  41. package/dist/checkbox/index.js +1 -1
  42. package/dist/checkbox-group/component.js +1 -1
  43. package/dist/checkbox-group/index.js +1 -1
  44. package/dist/checkbox-lists/component.js +1 -1
  45. package/dist/checkbox-lists/index.js +1 -1
  46. package/dist/collapsable-row/addons.js +1 -1
  47. package/dist/collapsable-row/component.js +1 -1
  48. package/dist/collapsable-row/index.js +1 -1
  49. package/dist/collapse/component.js +1 -1
  50. package/dist/collapse/index.js +1 -1
  51. package/dist/{component-3030f4c1.js → component-8d1564a8.js} +1 -1
  52. package/dist/copy-button/component.js +1 -1
  53. package/dist/copy-button/index.js +1 -1
  54. package/dist/date/component.js +1 -1
  55. package/dist/date/index.js +1 -1
  56. package/dist/date-functions.js +1 -1
  57. package/dist/date-switcher/component.js +1 -1
  58. package/dist/date-switcher/index.js +1 -1
  59. package/dist/empty-page/component.js +1 -1
  60. package/dist/empty-page/index.js +1 -1
  61. package/dist/footer/component.js +1 -1
  62. package/dist/footer/contact-block.js +1 -1
  63. package/dist/footer/index.js +1 -1
  64. package/dist/form/component.js +1 -1
  65. package/dist/form/components/form-footer/index.js +1 -1
  66. package/dist/form/components/form-loading/index.js +1 -1
  67. package/dist/form/components/form-wrapper/index.js +1 -1
  68. package/dist/form/components/index.d.ts +1 -1
  69. package/dist/form/components/index.js +1 -1
  70. package/dist/form/index.js +1 -1
  71. package/dist/form/templates/base-form/index.js +1 -1
  72. package/dist/form/templates/filters-form/index.js +1 -1
  73. package/dist/form/templates/rest-form/form.js +1 -1
  74. package/dist/form/templates/rest-form/index.js +1 -1
  75. package/dist/form/utils/get-default-values.js +1 -1
  76. package/dist/form-control/component.js +1 -1
  77. package/dist/form-control/index.js +1 -1
  78. package/dist/grid/col/component.js +1 -1
  79. package/dist/grid/col/index.js +1 -1
  80. package/dist/grid/component.js +1 -1
  81. package/dist/grid/index.js +1 -1
  82. package/dist/grid/row/component.js +1 -1
  83. package/dist/grid/row/index.js +1 -1
  84. package/dist/header-search/component.js +1 -1
  85. package/dist/header-search/index.js +1 -1
  86. package/dist/hooks/index.js +1 -1
  87. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  88. package/dist/hooks/use-get-one/index.js +1 -1
  89. package/dist/icon-button/component.js +1 -1
  90. package/dist/icon-button/index.js +1 -1
  91. package/dist/image/component.js +1 -1
  92. package/dist/image/image-base.js +1 -1
  93. package/dist/image/index.js +1 -1
  94. package/dist/image/use-image-render-component.js +1 -1
  95. package/dist/image-gallery/component.js +1 -1
  96. package/dist/image-gallery/components/header/index.js +1 -1
  97. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  98. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  99. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  100. package/dist/image-gallery/components/index.js +1 -1
  101. package/dist/image-gallery/index.js +1 -1
  102. package/dist/image-uploader/component.js +1 -1
  103. package/dist/image-uploader/index.js +1 -1
  104. package/dist/{index-0cd473d2.js → index-0e5d6054.js} +1 -1
  105. package/dist/{index-6067e8f7.js → index-0fb8e8ea.js} +1 -1
  106. package/dist/{index-02e766d1.js → index-2d788874.js} +1 -1
  107. package/dist/index-46e78ec2.js +1 -0
  108. package/dist/{index-2145d8fd.js → index-4b209dce.js} +1 -1
  109. package/dist/{index-23e068a7.js → index-67d84cf7.js} +1 -1
  110. package/dist/{index-13848f98.js → index-b3fd494f.js} +1 -1
  111. package/dist/{index-4f14dd2e.js → index-b837602d.js} +1 -1
  112. package/dist/index-bc7b6a90.js +1 -0
  113. package/dist/{index-32c1ab9b.js → index-bf38bfbc.js} +1 -1
  114. package/dist/{index-d929fadc.js → index-c15224ba.js} +1 -1
  115. package/dist/index-eafe94c8.js +1 -0
  116. package/dist/index-ed2ac686.js +1 -0
  117. package/dist/index.css +1 -1
  118. package/dist/info-block-header/component.js +1 -1
  119. package/dist/info-block-header/index.js +1 -1
  120. package/dist/info-block-item/component.js +1 -1
  121. package/dist/info-block-item/index.js +1 -1
  122. package/dist/input/component.js +1 -1
  123. package/dist/input/index.js +1 -1
  124. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  125. package/dist/input-autocomplete/component.js +1 -1
  126. package/dist/input-autocomplete/index.js +1 -1
  127. package/dist/input-ghost/component.js +1 -1
  128. package/dist/input-ghost/index.js +1 -1
  129. package/dist/{isSymbol-6d502ea9.js → isSymbol-e776d495.js} +1 -1
  130. package/dist/link/component.js +1 -1
  131. package/dist/link/index.js +1 -1
  132. package/dist/list-allert/component.js +1 -1
  133. package/dist/list-allert/index.js +1 -1
  134. package/dist/masked-input/component.js +1 -1
  135. package/dist/masked-input/index.js +1 -1
  136. package/dist/menu/component.js +1 -1
  137. package/dist/menu/components/content-header/index.js +1 -1
  138. package/dist/menu/components/index.js +1 -1
  139. package/dist/menu/components/menu-avatar/index.js +1 -1
  140. package/dist/menu/components/menu-back-button/index.js +1 -1
  141. package/dist/menu/components/menu-button/index.js +1 -1
  142. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  143. package/dist/menu/components/user-button/index.js +1 -1
  144. package/dist/menu/index.js +1 -1
  145. package/dist/message/component.js +1 -1
  146. package/dist/message/index.js +1 -1
  147. package/dist/modal/components/modals/index.js +1 -1
  148. package/dist/modal/components/modals/modal.js +1 -1
  149. package/dist/modal/context.js +1 -1
  150. package/dist/modal/hooks/use-modal.js +1 -1
  151. package/dist/modal/index.js +1 -1
  152. package/dist/modal/utils/delete-property-by-id.js +1 -1
  153. package/dist/notification/component.js +1 -1
  154. package/dist/notification/index.js +1 -1
  155. package/dist/{parse-query-params-a8c01086.js → parse-query-params-822c18f6.js} +1 -1
  156. package/dist/picker-button/common/index.js +1 -1
  157. package/dist/picker-button/common/labeled-button/index.js +1 -1
  158. package/dist/picker-button/component.js +1 -1
  159. package/dist/picker-button/field/Component.js +1 -1
  160. package/dist/picker-button/field/index.js +1 -1
  161. package/dist/picker-button/index.js +1 -1
  162. package/dist/popover/component.js +1 -1
  163. package/dist/popover/index.js +1 -1
  164. package/dist/progress-bar/component.js +1 -1
  165. package/dist/progress-bar/index.js +1 -1
  166. package/dist/progress-index/component.js +1 -1
  167. package/dist/progress-index/index.js +1 -1
  168. package/dist/radio/component.js +1 -1
  169. package/dist/radio/index.js +1 -1
  170. package/dist/radio-group/component.js +1 -1
  171. package/dist/radio-group/index.js +1 -1
  172. package/dist/radio-groups/component.js +1 -1
  173. package/dist/radio-groups/index.js +1 -1
  174. package/dist/select/component.js +1 -1
  175. package/dist/select/components/base-select/component.js +1 -1
  176. package/dist/select/components/base-select/index.js +1 -1
  177. package/dist/select/components/field/component.js +1 -1
  178. package/dist/select/components/field/index.js +1 -1
  179. package/dist/select/components/index.js +1 -1
  180. package/dist/select/components/native-select/component.js +1 -1
  181. package/dist/select/components/native-select/index.js +1 -1
  182. package/dist/select/components/option/component.js +1 -1
  183. package/dist/select/components/option/index.js +1 -1
  184. package/dist/select/components/options-list/component.js +1 -1
  185. package/dist/select/components/options-list/index.js +1 -1
  186. package/dist/select/components/virtual-options-list/component.js +1 -1
  187. package/dist/select/components/virtual-options-list/index.js +1 -1
  188. package/dist/select/index.js +1 -1
  189. package/dist/select/presets/index.js +1 -1
  190. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  191. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  192. package/dist/sidepanel-header/component.js +1 -1
  193. package/dist/sidepanel-header/index.js +1 -1
  194. package/dist/space/Item.js +1 -1
  195. package/dist/space/component.js +1 -1
  196. package/dist/space/index.js +1 -1
  197. package/dist/stepped-progress-bar/index.js +1 -1
  198. package/dist/stepped-progress-bar/step-bar.js +1 -1
  199. package/dist/suffix-input/component.js +1 -1
  200. package/dist/suffix-input/index.js +1 -1
  201. package/dist/super-list-header/component.js +1 -1
  202. package/dist/super-list-header/index.js +1 -1
  203. package/dist/super-list-item/component.js +1 -1
  204. package/dist/super-list-item/index.js +1 -1
  205. package/dist/switch/component.js +1 -1
  206. package/dist/switch/index.js +1 -1
  207. package/dist/table/columns.js +1 -1
  208. package/dist/table/component.js +1 -1
  209. package/dist/table/components/cell/component.js +1 -1
  210. package/dist/table/components/cell/index.js +1 -1
  211. package/dist/table/components/cells/index.js +1 -1
  212. package/dist/table/components/empty-list/index.js +1 -1
  213. package/dist/table/components/error/index.js +1 -1
  214. package/dist/table/components/loading/index.js +1 -1
  215. package/dist/table/components/pagination/index.js +1 -1
  216. package/dist/table/components/table-header/index.js +1 -1
  217. package/dist/table/hooks/use-table-data.js +1 -1
  218. package/dist/table/index.d.ts +1 -1
  219. package/dist/table/index.js +1 -1
  220. package/dist/table/table.js +1 -1
  221. package/dist/table/utils/add-query-param.js +1 -1
  222. package/dist/table/utils/get-query-from-url.js +1 -1
  223. package/dist/table/utils/index.d.ts +1 -1
  224. package/dist/table/utils/index.js +1 -1
  225. package/dist/table/utils/parse-query-params.js +1 -1
  226. package/dist/table/utils/prepare-rows.js +1 -1
  227. package/dist/table/utils/query-adapter.js +1 -1
  228. package/dist/table/utils/remove-query-param.js +1 -1
  229. package/dist/table/utils/reset-query-param.js +1 -1
  230. package/dist/table-status/component.js +1 -1
  231. package/dist/table-status/index.js +1 -1
  232. package/dist/tag/component.js +1 -1
  233. package/dist/tag/index.js +1 -1
  234. package/dist/tags-list/component.js +1 -1
  235. package/dist/tags-list/index.js +1 -1
  236. package/dist/textarea/component.js +1 -1
  237. package/dist/textarea/index.js +1 -1
  238. package/dist/toast/component.js +1 -1
  239. package/dist/toast/index.js +1 -1
  240. package/dist/toast-notifier/component.js +1 -1
  241. package/dist/toast-notifier/index.js +1 -1
  242. package/dist/toast-plate/component.js +1 -1
  243. package/dist/toast-plate/index.js +1 -1
  244. package/dist/tooltip/component.js +1 -1
  245. package/dist/tooltip/index.js +1 -1
  246. package/dist/typography/component.js +1 -1
  247. package/dist/typography/index.js +1 -1
  248. package/dist/typography/text/component.js +1 -1
  249. package/dist/typography/text/index.js +1 -1
  250. package/dist/typography/title/component.js +1 -1
  251. package/dist/typography/title/index.js +1 -1
  252. package/dist/{use-image-render-component-7f2e9e0b.js → use-image-render-component-41cb22e2.js} +1 -1
  253. package/dist/utils/format-date/index.js +1 -1
  254. package/dist/utils/index.js +1 -1
  255. package/dist/utils/show-toast/index.js +1 -1
  256. package/dist/with-suffix/component.js +1 -1
  257. package/dist/with-suffix/index.js +1 -1
  258. package/package.json +1 -1
  259. package/dist/index-21ce9ca0.js +0 -1
  260. package/dist/index-8c1631f9.js +0 -1
  261. package/dist/index-cecca933.js +0 -1
  262. package/dist/index-d8884a89.js +0 -1
  263. /package/dist/{ActionCopyM-67615d36.js → ActionCopyM-9d008e71.js} +0 -0
  264. /package/dist/{CheckmarkCircleM-5daeacf8.js → CheckmarkCircleM-a4ab3276.js} +0 -0
  265. /package/dist/{ChevronBackM-a5e06958.js → ChevronBackM-a7906df2.js} +0 -0
  266. /package/dist/{ChevronDownS-2256a5ef.js → ChevronDownS-a9c882db.js} +0 -0
  267. /package/dist/{ChevronForwardS-44a69b14.js → ChevronForwardS-2b7f22e1.js} +0 -0
  268. /package/dist/{ClockCircleM-c9cb2a04.js → ClockCircleM-250cfefd.js} +0 -0
  269. /package/dist/{CloseS-f110a0ff.js → CloseS-c49d90b9.js} +0 -0
  270. /package/dist/{NextS-5f44588d.js → NextS-6bac4cdf.js} +0 -0
  271. /package/dist/{PhotoS-e9defd5d.js → PhotoS-b14af989.js} +0 -0
  272. /package/dist/{PlusS-c028db70.js → PlusS-5fc4274a.js} +0 -0
  273. /package/dist/{SearchM-758b7757.js → SearchM-fb1a3bf0.js} +0 -0
  274. /package/dist/{TrashM-ac7ad1ca.js → TrashM-ee04f3c2.js} +0 -0
  275. /package/dist/{_commonjsHelpers-c763184a.js → _commonjsHelpers-61502e7f.js} +0 -0
  276. /package/dist/{colors.module-a1c11865.js → colors.module-b5e71902.js} +0 -0
  277. /package/dist/{component-3030f4c1.d.ts → component-8d1564a8.d.ts} +0 -0
  278. /package/dist/{component-9f3db64f.d.ts → component-a620bdd6.d.ts} +0 -0
  279. /package/dist/{component-9f3db64f.js → component-a620bdd6.js} +0 -0
  280. /package/dist/{contact-block-7b963f17.d.ts → contact-block-6d0a537b.d.ts} +0 -0
  281. /package/dist/{contact-block-7b963f17.js → contact-block-6d0a537b.js} +0 -0
  282. /package/dist/{gutters.module-0f19b0c6.js → gutters.module-1dda457e.js} +0 -0
  283. /package/dist/{index-0cd473d2.d.ts → index-0e5d6054.d.ts} +0 -0
  284. /package/dist/{index-917b8380.js → index-2e8268e0.js} +0 -0
  285. /package/dist/{index-c9df431c.js → index-5fddca9b.js} +0 -0
  286. /package/dist/{intersection-observer-47d78da3.js → intersection-observer-b1bdce4a.js} +0 -0
  287. /package/dist/{parse-query-params-a8c01086.d.ts → parse-query-params-822c18f6.d.ts} +0 -0
  288. /package/dist/{slide-2f903e54.d.ts → slide-33df4f2c.d.ts} +0 -0
  289. /package/dist/{slide-2f903e54.js → slide-33df4f2c.js} +0 -0
  290. /package/dist/{step-bar-6c034d57.d.ts → step-bar-eec8b123.d.ts} +0 -0
  291. /package/dist/{step-bar-6c034d57.js → step-bar-eec8b123.js} +0 -0
  292. /package/dist/{tslib.es6-8da6306b.js → tslib.es6-2fef90ce.js} +0 -0
  293. /package/dist/{use-image-render-component-7f2e9e0b.d.ts → use-image-render-component-41cb22e2.d.ts} +0 -0
@@ -1 +1 @@
1
- import{_ as t,a as r}from"../tslib.es6-8da6306b.js";import o from"react";import e from"classnames";import{Typography as a}from"../typography/component.js";import{formatAmount as c,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as i,THINSP as s}from"../utils/format-amount/util.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var m="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,y=l.currency,d=l.showMinorPart,j=void 0!==d&&d,f=l.isCanceled,h=void 0!==f&&f,v=l.className,_=l.currencyOpacity,x=t(l,["value","currency","showMinorPart","isCanceled","className","currencyOpacity"]),g=c({value:u,currency:y,showMinorPart:j}),P=g.majorPart,b=g.minorPart,N=g.currencySymbol;return o.createElement(a.Text,r({},x,{className:e(m,v,(p={},p[n]=h,p))}),P,b||_?o.createElement("span",{style:{opacity:.6}},b&&i,b,!!N&&""+s+N):!!N&&""+s+N)};export{l as Amount};
1
+ import{_ as t,a as r}from"../tslib.es6-2fef90ce.js";import e from"react";import o from"classnames";import{Typography as a}from"../typography/component.js";import{formatAmount as c,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as i,THINSP as s}from"../utils/format-amount/util.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var m="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,y=l.currency,d=l.showMinorPart,j=void 0!==d&&d,f=l.isCanceled,h=void 0!==f&&f,v=l.className,_=l.currencyOpacity,x=t(l,["value","currency","showMinorPart","isCanceled","className","currencyOpacity"]),g=c({value:u,currency:y,showMinorPart:j}),P=g.majorPart,b=g.minorPart,N=g.currencySymbol;return e.createElement(a.Text,r({},x,{className:o(m,v,(p={},p[n]=h,p))}),P,b||_?e.createElement("span",{style:{opacity:.6}},b&&i,b,!!N&&""+s+N):!!N&&""+s+N)};export{l as Amount};
@@ -1 +1 @@
1
- export{Amount}from"./component.js";import"../tslib.es6-8da6306b.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/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-2fef90ce.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/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-8da6306b.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,b=o.bold,w=void 0===b||b,A=o.className,R=o.focusedClassName,S=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]=w,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:S,placeholder:E,value:J,className:l(v.component,A),focusedClassName:R,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-2fef90ce.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-8da6306b.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-2fef90ce.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 e from"react";import o from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as s}from"../image/types.js";import"../tslib.es6-8da6306b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-7f2e9e0b.js";import"../PhotoS-e9defd5d.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,l=i.slot,c=i.ref,d=i.onClick;return e.createElement(t,{ref:c,onClick:d,className:o([m.wrapper,(p={},p[m.disabled]=!d,p)]),view:"ghost"},e.createElement(r,{resolution:s.xs,view:"circle",bgColor:"secondary",size:"s",src:n,text:a}),l&&e.createElement("div",{className:m.slot},l))};export{i as Avatar};
1
+ import e from"react";import o from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as s}from"../image/types.js";import"../tslib.es6-2fef90ce.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-41cb22e2.js";import"../PhotoS-b14af989.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 e.createElement(t,{ref:l,onClick:d,className:o([m.wrapper,(p={},p[m.disabled]=!d,p)]),view:"ghost"},e.createElement(r,{resolution:s.xs,view:"circle",bgColor:"secondary",size:"s",src:n,text:a}),c&&e.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-8da6306b.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/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-7f2e9e0b.js";import"../PhotoS-e9defd5d.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
1
+ export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-2fef90ce.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/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-41cb22e2.js";import"../PhotoS-b14af989.js";import"../spinner/component.js";import"../image/types.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"../PhotoS-e9defd5d.js";import{ImageSizes as a}from"../image/types.js";import{PureImage as m}from"../pure-image/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../tslib.es6-8da6306b.js";import"../typography/title/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var i="index-module_component__4rFCR",d="index-module_bottomSpace__Di-8N",r="index-module_footer__kIafr",n="index-module_withBorder__r41KZ",s="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",x="index-module_title__iGzO6",g="index-module_titleAddons__OJJpe",h=function(h){var E,f=h.className,j=h.bottomSpace,N=void 0===j||j,b=h.orientation,y=void 0===b?"vertical":b,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,P=void 0!==O&&O,S=h.border,k=void 0!==S&&S,I=h.dataTestId,J=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:J,onMouseLeave:W,"data-test-id":I,className:t(i,(E={},E[n]=k,E[s]=P,E[d]=!N,E),f)},!!B&&e.createElement("div",{className:_},e.createElement(m,{src:B,orientation:y,resolution:a.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!N&&e.createElement("div",{className:u})),e.createElement("div",{className:r},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:x,view:"component"},A),!!M&&e.createElement("div",{className:g},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"../PhotoS-b14af989.js";import{ImageSizes as m}from"../image/types.js";import{PureImage as a}from"../pure-image/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../tslib.es6-2fef90ce.js";import"../typography/title/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var i="index-module_component__4rFCR",d="index-module_bottomSpace__Di-8N",r="index-module_footer__kIafr",n="index-module_withBorder__r41KZ",s="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",x="index-module_title__iGzO6",g="index-module_titleAddons__OJJpe",h=function(h){var f,E=h.className,j=h.bottomSpace,b=void 0===j||j,N=h.orientation,y=void 0===N?"vertical":N,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,P=void 0!==O&&O,S=h.border,k=void 0!==S&&S,I=h.dataTestId,J=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:J,onMouseLeave:W,"data-test-id":I,className:t(i,(f={},f[n]=k,f[s]=P,f[d]=!b,f),E)},!!B&&e.createElement("div",{className:_},e.createElement(a,{src:B,orientation:y,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:r},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:x,view:"component"},A),!!M&&e.createElement("div",{className:g},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/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../tslib.es6-8da6306b.js";import"../typography/title/component.js";import"../PhotoS-e9defd5d.js";import"../image/types.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/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../tslib.es6-2fef90ce.js";import"../typography/title/component.js";import"../PhotoS-b14af989.js";import"../image/types.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-c763184a.js";import{r}from"../index-23e068a7.js";import{C as o}from"../ChevronBackM-a5e06958.js";
1
+ import e from"react";import{c as t,u as n}from"../_commonjsHelpers-61502e7f.js";import{r}from"../index-67d84cf7.js";import{C as o}from"../ChevronBackM-a7906df2.js";
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
@@ -1 +1 @@
1
- export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-c763184a.js";import"../index-23e068a7.js";import"../ChevronBackM-a5e06958.js";
1
+ export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-61502e7f.js";import"../index-67d84cf7.js";import"../ChevronBackM-a7906df2.js";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../tslib.es6-8da6306b.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-2fef90ce.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,c,u=_.children,x=_.view,f=void 0===x?"secondary":x,p=_.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[f],i[v],(m={},m[i.focused]=O,m[i.block]=g,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},Z=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),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-8da6306b.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-2fef90ce.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-8da6306b.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as i}from"react";import s from"classnames";import{s as a}from"../index-6067e8f7.js";import{locales as m}from"../utils/format-date/index.js";import{DaysTable as c}from"./components/days-table/component.js";import{Header as d}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{useCalendar as l}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as f}from"./utils.js";import"../index-917b8380.js";import"../index-13848f98.js";import"../index-32c1ab9b.js";import"../index-d929fadc.js";import"../index-02e766d1.js";import"../index-c9df431c.js";import"react-transition-group";import"../capitalize-1ea4b685.js";import"../isSymbol-6d502ea9.js";import"../_commonjsHelpers-c763184a.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-2145d8fd.js";import"../index-21ce9ca0.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";import"../index-8c1631f9.js";import"../flex-columns/component.js";import"../index-d8884a89.js";var u="index-module_component__SJQwG",j="index-module_container__3PFvh",v="index-module_sixWeeks__NcW9R",x=m,g=o((function(o,m){var g,w=o.className,M=o.defaultView,D=void 0===M?"days":M,b=o.value,y=o.month,P=o.defaultMonth,N=void 0===P?+new Date:P,_=o.minDate,C=o.maxDate,k=o.selectedFrom,S=o.selectedTo,Y=o.offDays,E=o.events,F=o.onChange,T=o.onMonthChange,A=o.onYearChange,V=o.locale,R=void 0===V?"en":V,W=o.shortNames,z=void 0===W||W,B=o.dataTestId,G=n(D),H=G[0],I=G[1],J=n(!1),L=J[0],Q=J[1],q=x[R],K=r((function(){return b?new Date(b):void 0}),[b]),O=r((function(){return a(K||k||N)}),[]),U=r((function(){return y?new Date(y):void 0}),[y]),X=r((function(){return _?new Date(_):void 0}),[_]),Z=r((function(){return C?new Date(C):void 0}),[C]),$=l({month:U,defaultMonth:O,view:H,minDate:X,maxDate:Z,selected:K,offDays:Y,events:E,onChange:F,onMonthChange:T,onYearChange:A,setView:I}),ee=$.activeMonth,te=$.activeYear,oe=$.weeks,ne=$.months,re=$.canSetPrevMonth,ie=$.canSetNextMonth,se=$.setMonthByDate,ae=$.setPrevMonth,me=$.setNextMonth,ce=$.setNextYear,de=$.setPrevYear,pe=$.highlighted,le=$.getDayProps,he=$.getMonthProps,fe=$.getRootProps,ue=i((function(e){I(H===e?"days":e)}),[H]),je=i((function(){"days"===H?ae():de()}),[ae,H,de]),ve=i((function(){"days"===H?me():ce()}),[me,H,ce]),xe=i((function(){ue("months")}),[ue]);return h((function(){Q(!1)}),[H]),h((function(){var e=b&&a(b);e&&e.getTime()!==ee.getTime()&&se(e)}),[b]),t.createElement("div",e({},fe({ref:m}),{className:s(u,w,(g={},g[v]=6===oe.length,g)),"data-test-id":B}),t.createElement(d,{month:f(ee,q,!1),year:te.getFullYear().toString(),prevArrowVisible:re,nextArrowVisible:ie,onPrevArrowClick:je,onNextArrowClick:ve,onMonthClick:xe,view:H,withShadow:L}),t.createElement("div",{className:j},"days"===H&&t.createElement(c,{locale:q,weeks:oe,activeMonth:ee,selectedFrom:k,selectedTo:S,getDayProps:le,highlighted:pe}),"months"===H&&t.createElement(p,{selectedMonth:ee,selectedLocale:q,shortNames:z,months:ne,getMonthProps:he})))}));export{g as Calendar};
1
+ import{a as e}from"../tslib.es6-2fef90ce.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as i}from"react";import s from"classnames";import{s as a}from"../index-0fb8e8ea.js";import{locales as m}from"../utils/format-date/index.js";import{DaysTable as c}from"./components/days-table/component.js";import{Header as d}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{useCalendar as l}from"./use-calendar.js";import{useDidUpdateEffect as f,monthName as h}from"./utils.js";import"../index-2e8268e0.js";import"../index-b3fd494f.js";import"../index-bf38bfbc.js";import"../index-c15224ba.js";import"../index-2d788874.js";import"../index-5fddca9b.js";import"react-transition-group";import"../capitalize-e9f8d26d.js";import"../isSymbol-e776d495.js";import"../_commonjsHelpers-61502e7f.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-4b209dce.js";import"../index-ed2ac686.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";import"../index-eafe94c8.js";import"../flex-columns/component.js";import"../index-bc7b6a90.js";var u="index-module_component__SJQwG",j="index-module_container__3PFvh",v="index-module_sixWeeks__NcW9R",x=m,g=o((function(o,m){var g,b=o.className,w=o.defaultView,M=void 0===w?"days":w,D=o.value,y=o.month,P=o.defaultMonth,N=void 0===P?+new Date:P,_=o.minDate,C=o.maxDate,k=o.selectedFrom,S=o.selectedTo,Y=o.offDays,E=o.events,F=o.onChange,T=o.onMonthChange,A=o.onYearChange,V=o.locale,R=void 0===V?"en":V,W=o.shortNames,z=void 0===W||W,B=o.dataTestId,G=n(M),H=G[0],I=G[1],J=n(!1),L=J[0],Q=J[1],q=x[R],K=r((function(){return D?new Date(D):void 0}),[D]),O=r((function(){return a(K||k||N)}),[]),U=r((function(){return y?new Date(y):void 0}),[y]),X=r((function(){return _?new Date(_):void 0}),[_]),Z=r((function(){return C?new Date(C):void 0}),[C]),$=l({month:U,defaultMonth:O,view:H,minDate:X,maxDate:Z,selected:K,offDays:Y,events:E,onChange:F,onMonthChange:T,onYearChange:A,setView:I}),ee=$.activeMonth,te=$.activeYear,oe=$.weeks,ne=$.months,re=$.canSetPrevMonth,ie=$.canSetNextMonth,se=$.setMonthByDate,ae=$.setPrevMonth,me=$.setNextMonth,ce=$.setNextYear,de=$.setPrevYear,pe=$.highlighted,le=$.getDayProps,fe=$.getMonthProps,he=$.getRootProps,ue=i((function(e){I(H===e?"days":e)}),[H]),je=i((function(){"days"===H?ae():de()}),[ae,H,de]),ve=i((function(){"days"===H?me():ce()}),[me,H,ce]),xe=i((function(){ue("months")}),[ue]);return f((function(){Q(!1)}),[H]),f((function(){var e=D&&a(D);e&&e.getTime()!==ee.getTime()&&se(e)}),[D]),t.createElement("div",e({},he({ref:m}),{className:s(u,b,(g={},g[v]=6===oe.length,g)),"data-test-id":B}),t.createElement(d,{month:h(ee,q,!1),year:te.getFullYear().toString(),prevArrowVisible:re,nextArrowVisible:ie,onPrevArrowClick:je,onNextArrowClick:ve,onMonthClick:xe,view:H,withShadow:L}),t.createElement("div",{className:j},"days"===H&&t.createElement(c,{locale:q,weeks:oe,activeMonth:ee,selectedFrom:k,selectedTo:S,getDayProps:le,highlighted:pe}),"months"===H&&t.createElement(p,{selectedMonth:ee,selectedLocale:q,shortNames:z,months:ne,getMonthProps:fe})))}));export{g as Calendar};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-8da6306b.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{c as o}from"../../../capitalize-1ea4b685.js";import{Button as s}from"../../../button/component.js";import{b as m,a as l,i as _}from"../../../index-2145d8fd.js";import{d as c}from"../../../index-32c1ab9b.js";import{i as u}from"../../../index-21ce9ca0.js";import{s as y}from"../../../index-6067e8f7.js";import{Flex as x}from"../../../flex/component.js";import{usePrevious as f}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as p}from"../../utils.js";import"../../../isSymbol-6d502ea9.js";import"../../../_commonjsHelpers-c763184a.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-917b8380.js";import"../../../index-13848f98.js";import"../../../index-d929fadc.js";var g={daysTable:"index-module_daysTable__rn902",daysBody:"index-module_daysBody__jxkTG",weekRow:"index-module_weekRow__RtmOy",daysRow:"index-module_daysRow__hDh-2",daysRowDay:"index-module_daysRowDay__B3Q4q",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"},v=function(v){var h=v.weeks,E=void 0===h?[]:h,j=v.activeMonth,b=void 0===j?new Date:j,w=v.highlighted,D=v.selectedFrom,k=v.selectedTo,R=v.getDayProps,N=v.locale,A=d(b);A.current=b;var T=f(b),B=T&&(b<T?"right":"left"),L=p(D,k,w),z=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==N?void 0:N.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"short"})})),H=a((function(){return z.map((function(e){return t.createElement("div",{className:g.dayName,key:e},o(e))}))}),[z]);return t.createElement("div",{className:r(g.daysTable,B&&g[B])},t.createElement("div",{className:g.daysRow},t.createElement(x,null,H())),t.createElement(i,{component:null},t.createElement(n,{key:b.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("div",{className:g.daysBody},E.map((function(d,a){return t.createElement(x,{className:g.weekRow,key:a},d.map((function(d,a){return t.createElement("div",{className:g.daysRowDay,key:d?d.date.getTime():a},d&&function(d){var a,i=d.selected||D&&c(d.date,D)||k&&c(d.date,k),n=!i&&L&&m(d.date,L),o=1===d.date.getDate(),x=l(d.date),f=o&&n&&L&&d.date>L.start,p=x&&n&&L&&d.date<L.end,v=L&&c(d.date,L.start),h=L&&c(d.date,L.end),E=R(d);return t.createElement(s,e({},E,{ref:function(e){y(d.date).getTime()===A.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(g.day,(a={},a[g.selected]=i,a[g.range]=n,a[g.rangeStart]=v,a[g.rangeEnd]=h,a[g.transitLeft]=f,a[g.transitRight]=p,a[g.today]=u(d.date),a[g.firstDay]=o,a[g.lastDay]=x,a[g.event]=d.event,a[g.disabled]=d.disabled,a[g.muted]=d.muted,a[g.highlighted]=w&&_(d.date,w),a))}),d.date.getDate())}(d))})))}))))))};export{v as DaysTable};
1
+ import{a as e}from"../../../tslib.es6-2fef90ce.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{c as o}from"../../../capitalize-e9f8d26d.js";import{Button as s}from"../../../button/component.js";import{b as m,a as l,i as _}from"../../../index-4b209dce.js";import{d as c}from"../../../index-bf38bfbc.js";import{i as u}from"../../../index-ed2ac686.js";import{s as y}from"../../../index-0fb8e8ea.js";import{Flex as x}from"../../../flex/component.js";import{usePrevious as f}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as p}from"../../utils.js";import"../../../isSymbol-e776d495.js";import"../../../_commonjsHelpers-61502e7f.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-2e8268e0.js";import"../../../index-b3fd494f.js";import"../../../index-c15224ba.js";var g={daysTable:"index-module_daysTable__rn902",daysBody:"index-module_daysBody__jxkTG",weekRow:"index-module_weekRow__RtmOy",daysRow:"index-module_daysRow__hDh-2",daysRowDay:"index-module_daysRowDay__B3Q4q",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"},v=function(v){var h=v.weeks,E=void 0===h?[]:h,b=v.activeMonth,j=void 0===b?new Date:b,w=v.highlighted,D=v.selectedFrom,k=v.selectedTo,R=v.getDayProps,N=v.locale,A=d(j);A.current=j;var T=f(j),B=T&&(j<T?"right":"left"),L=p(D,k,w),z=Array(7).fill(1).map((function(e,t){var d,a=t+1;return null===(d=null==N?void 0:N.localize)||void 0===d?void 0:d.day(7===a?0:a,{width:"short"})})),H=a((function(){return z.map((function(e){return t.createElement("div",{className:g.dayName,key:e},o(e))}))}),[z]);return t.createElement("div",{className:r(g.daysTable,B&&g[B])},t.createElement("div",{className:g.daysRow},t.createElement(x,null,H())),t.createElement(i,{component:null},t.createElement(n,{key:j.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("div",{className:g.daysBody},E.map((function(d,a){return t.createElement(x,{className:g.weekRow,key:a},d.map((function(d,a){return t.createElement("div",{className:g.daysRowDay,key:d?d.date.getTime():a},d&&function(d){var a,i=d.selected||D&&c(d.date,D)||k&&c(d.date,k),n=!i&&L&&m(d.date,L),o=1===d.date.getDate(),x=l(d.date),f=o&&n&&L&&d.date>L.start,p=x&&n&&L&&d.date<L.end,v=L&&c(d.date,L.start),h=L&&c(d.date,L.end),E=R(d);return t.createElement(s,e({},E,{ref:function(e){y(d.date).getTime()===A.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:d.disabled,className:r(g.day,(a={},a[g.selected]=i,a[g.range]=n,a[g.rangeStart]=v,a[g.rangeEnd]=h,a[g.transitLeft]=f,a[g.transitRight]=p,a[g.today]=u(d.date),a[g.firstDay]=o,a[g.lastDay]=x,a[g.event]=d.event,a[g.disabled]=d.disabled,a[g.muted]=d.muted,a[g.highlighted]=w&&_(d.date,w),a))}),d.date.getDate())}(d))})))}))))))};export{v as DaysTable};
@@ -1 +1 @@
1
- export{DaysTable}from"./component.js";import"../../../tslib.es6-8da6306b.js";import"react";import"react-transition-group";import"classnames";import"../../../capitalize-1ea4b685.js";import"../../../isSymbol-6d502ea9.js";import"../../../_commonjsHelpers-c763184a.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-2145d8fd.js";import"../../../index-917b8380.js";import"../../../index-32c1ab9b.js";import"../../../index-13848f98.js";import"../../../index-21ce9ca0.js";import"../../../index-6067e8f7.js";import"../../../flex/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";import"../../../index-d929fadc.js";
1
+ export{DaysTable}from"./component.js";import"../../../tslib.es6-2fef90ce.js";import"react";import"react-transition-group";import"classnames";import"../../../capitalize-e9f8d26d.js";import"../../../isSymbol-e776d495.js";import"../../../_commonjsHelpers-61502e7f.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../index-4b209dce.js";import"../../../index-2e8268e0.js";import"../../../index-bf38bfbc.js";import"../../../index-b3fd494f.js";import"../../../index-ed2ac686.js";import"../../../index-0fb8e8ea.js";import"../../../flex/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";import"../../../index-c15224ba.js";
@@ -1 +1 @@
1
- export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../capitalize-1ea4b685.js";import"../../../isSymbol-6d502ea9.js";import"../../../_commonjsHelpers-c763184a.js";import"../../../button/component.js";import"../../../tslib.es6-8da6306b.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"../../../capitalize-e9f8d26d.js";import"../../../isSymbol-e776d495.js";import"../../../_commonjsHelpers-61502e7f.js";import"../../../button/component.js";import"../../../tslib.es6-2fef90ce.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
@@ -1 +1 @@
1
- import*as e from"react";import t from"react";import o from"classnames";import{c as r}from"../../../capitalize-1ea4b685.js";import{Button as a}from"../../../button/component.js";import{SelectButton as l}from"../select-button/сomponent.js";import"../../../isSymbol-6d502ea9.js";import"../../../_commonjsHelpers-c763184a.js";import"../../../tslib.es6-8da6306b.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var n=function(){return n=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function i(t){return e.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},t),e.createElement("path",{fillRule:"evenodd",d:"M10.833 14.033a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06l5-5a.75.75 0 0 1 1.06 1.06l-4.47 4.47 4.47 4.47a.75.75 0 0 1 0 1.06",clipRule:"evenodd"}))}var m="index-module_header__-VKks",s="index-module_withShadow__m2PIV",c="index-module_disabled__9Dr54",d="index-module_buttonContent__xnYVf",p="index-module_selectors__RA1Pm",u="index-module_arrow__tCsej",v=function(e){var n,v,h=e.month,w=e.year,_=e.view,f=e.withShadow,b=e.prevArrowVisible,x=void 0===b||b,j=e.nextArrowVisible,E=void 0===j||j,g=e.onPrevArrowClick,C=e.onNextArrowClick,k=e.onMonthClick;return t.createElement("div",{className:o(m,(n={},n[s]=f,n)),"aria-live":"polite"},t.createElement(l,{view:"filled",className:o((v={},v[c]="months"===_,v)),onClick:"days"===_?k:void 0},t.createElement("span",{className:d},"days"===_?r(h)+" "+w:""+w)),t.createElement("div",{className:p},x&&t.createElement(a,{view:"ghost",className:u,onClick:g,"aria-label":"Prev month"},t.createElement(i,null)),E&&t.createElement(a,{view:"ghost",className:u,onClick:C,"aria-label":"Next month"},t.createElement(i,null))))};export{v as Header};
1
+ import*as e from"react";import t from"react";import o from"classnames";import{c as r}from"../../../capitalize-e9f8d26d.js";import{Button as l}from"../../../button/component.js";import{SelectButton as n}from"../select-button/сomponent.js";import"../../../isSymbol-e776d495.js";import"../../../_commonjsHelpers-61502e7f.js";import"../../../tslib.es6-2fef90ce.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i=function(){return i=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var l in t=arguments[o])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},i.apply(this,arguments)};function a(t){return e.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},t),e.createElement("path",{fillRule:"evenodd",d:"M10.833 14.033a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06l5-5a.75.75 0 0 1 1.06 1.06l-4.47 4.47 4.47 4.47a.75.75 0 0 1 0 1.06",clipRule:"evenodd"}))}var m="index-module_header__-VKks",s="index-module_withShadow__m2PIV",c="index-module_disabled__9Dr54",d="index-module_buttonContent__xnYVf",p="index-module_selectors__RA1Pm",u="index-module_arrow__tCsej",v=function(e){var i,v,f=e.month,h=e.year,w=e.view,_=e.withShadow,x=e.prevArrowVisible,b=void 0===x||x,j=e.nextArrowVisible,E=void 0===j||j,g=e.onPrevArrowClick,C=e.onNextArrowClick,k=e.onMonthClick;return t.createElement("div",{className:o(m,(i={},i[s]=_,i)),"aria-live":"polite"},t.createElement(n,{view:"filled",className:o((v={},v[c]="months"===w,v)),onClick:"days"===w?k:void 0},t.createElement("span",{className:d},"days"===w?r(f)+" "+h:""+h)),t.createElement("div",{className:p},b&&t.createElement(l,{view:"ghost",className:u,onClick:g,"aria-label":"Prev month"},t.createElement(a,null)),E&&t.createElement(l,{view:"ghost",className:u,onClick:C,"aria-label":"Next month"},t.createElement(a,null))))};export{v as Header};
@@ -1 +1 @@
1
- export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-8da6306b.js";import"react";import"../../../capitalize-1ea4b685.js";import"../../../isSymbol-6d502ea9.js";import"../../../_commonjsHelpers-c763184a.js";import"../../../index-6067e8f7.js";import"../../../index-917b8380.js";import"../../../index-13848f98.js";import"../../../index-32c1ab9b.js";import"../../../index-8c1631f9.js";import"../../../flex-columns/component.js";import"classnames";import"../../utils.js";import"../../../index-d929fadc.js";import"../select-button/сomponent.js";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-2fef90ce.js";import"react";import"../../../capitalize-e9f8d26d.js";import"../../../isSymbol-e776d495.js";import"../../../_commonjsHelpers-61502e7f.js";import"../../../index-0fb8e8ea.js";import"../../../index-2e8268e0.js";import"../../../index-b3fd494f.js";import"../../../index-bf38bfbc.js";import"../../../index-eafe94c8.js";import"../../../flex-columns/component.js";import"classnames";import"../../utils.js";import"../../../index-c15224ba.js";import"../select-button/сomponent.js";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-8da6306b.js";import o,{useCallback as t}from"react";import{c as s}from"../../../capitalize-1ea4b685.js";import{i as m}from"../../../index-6067e8f7.js";import{i as r}from"../../../index-8c1631f9.js";import{FlexColumns as n}from"../../../flex-columns/component.js";import{monthName as i}from"../../utils.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../isSymbol-6d502ea9.js";import"../../../_commonjsHelpers-c763184a.js";import"../../../index-917b8380.js";import"../../../index-13848f98.js";import"../../../index-32c1ab9b.js";import"classnames";import"../../../index-d929fadc.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_monthsTable__Eq4Jn",p="index-module_button__XgrJs",d=function(d){var l=d.selectedMonth,f=d.months,u=void 0===f?[]:f,j=d.getMonthProps,b=d.selectedLocale,x=d.shortNames,h=t((function(e){return l&&m(l,e.date)?"selected":r(e.date)?"outlined":"default"}),[l]);return o.createElement(n,{columns:3,gc:0,gr:8,className:c},u.map((function(t){return o.createElement(a,e({},j(t),{key:t.date.getMonth(),className:p,view:h(t)}),s(i(t.date,b,x)))})))};export{d as MonthsTable};
1
+ import{a as e}from"../../../tslib.es6-2fef90ce.js";import o,{useCallback as t}from"react";import{c as s}from"../../../capitalize-e9f8d26d.js";import{i as m}from"../../../index-0fb8e8ea.js";import{i as r}from"../../../index-eafe94c8.js";import{FlexColumns as n}from"../../../flex-columns/component.js";import{monthName as i}from"../../utils.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../isSymbol-e776d495.js";import"../../../_commonjsHelpers-61502e7f.js";import"../../../index-2e8268e0.js";import"../../../index-b3fd494f.js";import"../../../index-bf38bfbc.js";import"classnames";import"../../../index-c15224ba.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_monthsTable__Eq4Jn",p="index-module_button__XgrJs",d=function(d){var f=d.selectedMonth,l=d.months,u=void 0===l?[]:l,j=d.getMonthProps,b=d.selectedLocale,x=d.shortNames,h=t((function(e){return f&&m(f,e.date)?"selected":r(e.date)?"outlined":"default"}),[f]);return o.createElement(n,{columns:3,gc:0,gr:8,className:c},u.map((function(t){return o.createElement(a,e({},j(t),{key:t.date.getMonth(),className:p,view:h(t)}),s(i(t.date,b,x)))})))};export{d as MonthsTable};
@@ -1 +1 @@
1
- export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-8da6306b.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-2fef90ce.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-8da6306b.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,b=i.view,_=void 0===b?"default":b,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[_],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
1
+ import{_ as e,a as d}from"../../../tslib.es6-2fef90ce.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,c=i.view,_=void 0===c?"default":c,b=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},b,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[_],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
@@ -1 +1 @@
1
- export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-8da6306b.js";import"react";import"../../../index-cecca933.js";import"../../../index-917b8380.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-2fef90ce.js";import"react";import"../../../index-46e78ec2.js";import"../../../index-2e8268e0.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-8da6306b.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{i as l,a}from"../../../index-cecca933.js";import{SelectButton as s}from"../select-button/сomponent.js";import"../../../index-917b8380.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i="index-module_yearsTable__7bRtn",c="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,b=u.getYearProps,_=u.onScroll,g=r(null),v=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),x=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)}}),[_,p]),t.createElement("div",{className:i,onScroll:x,ref:g},t.createElement("div",{className:c},f.map((function(r){return t.createElement(s,e({},b(r),{key:r.getFullYear(),view:v(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
1
+ import{a as e}from"../../../tslib.es6-2fef90ce.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{i as l,a as s}from"../../../index-46e78ec2.js";import{SelectButton as a}from"../select-button/сomponent.js";import"../../../index-2e8268e0.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var i="index-module_yearsTable__7bRtn",c="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,_=u.getYearProps,g=u.onScroll,v=r(null),x=o((function(e){return p&&l(p,e)?"selected":s(e)?"outlined":"default"}),[p]),b=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.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,g(e.scrollTop)}}),[g,p]),t.createElement("div",{className:i,onScroll:b,ref:v},t.createElement("div",{className:c},f.map((function(r){return t.createElement(a,e({},_(r),{key:r.getFullYear(),view:x(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-8da6306b.js";import"react";import"classnames";import"../index-6067e8f7.js";import"../index-917b8380.js";import"../index-13848f98.js";import"../index-32c1ab9b.js";import"../utils/format-date/index.js";import"../index-d929fadc.js";import"../index-02e766d1.js";import"../index-c9df431c.js";import"./components/days-table/component.js";import"react-transition-group";import"../capitalize-1ea4b685.js";import"../isSymbol-6d502ea9.js";import"../_commonjsHelpers-c763184a.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-2145d8fd.js";import"../index-21ce9ca0.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../index-8c1631f9.js";import"../flex-columns/component.js";import"../index-d8884a89.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-2fef90ce.js";import"react";import"classnames";import"../index-0fb8e8ea.js";import"../index-2e8268e0.js";import"../index-b3fd494f.js";import"../index-bf38bfbc.js";import"../utils/format-date/index.js";import"../index-c15224ba.js";import"../index-2d788874.js";import"../index-5fddca9b.js";import"./components/days-table/component.js";import"react-transition-group";import"../capitalize-e9f8d26d.js";import"../isSymbol-e776d495.js";import"../_commonjsHelpers-61502e7f.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-4b209dce.js";import"../index-ed2ac686.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"../index-eafe94c8.js";import"../flex-columns/component.js";import"../index-bc7b6a90.js";
@@ -1 +1 @@
1
- import{useState as t,useRef as n,useMemo as e,useCallback as r}from"react";import o from"react-merge-refs";import{b as a,d as u}from"../index-32c1ab9b.js";import{s as i,a as f}from"../index-d8884a89.js";import{s as c,h as d,i as s}from"../index-6067e8f7.js";import{dateArrayToHashTable as h,generateWeeks as v,generateMonths as g,generateYears as m,limitDate as l,simulateTab as w,modifyDateByShift as p,MONTHS_IN_YEAR as D}from"./utils.js";import"../index-13848f98.js";import"../index-917b8380.js";import"../index-d929fadc.js";function M(M){var x=M.defaultMonth,A=M.month,b=M.minDate,y=M.view,k=void 0===y?"days":y,P=M.maxDate,T=M.selected,j=M.events,Y=M.offDays,C=M.onMonthChange,I=M.onYearChange,L=M.onChange,R=M.setView,U=t(x),W=U[0],E=U[1],N=t(x),F=N[0],O=N[1],S=t(),B=S[0],H=S[1],K=void 0===A,V=K?W:A,q=K?F:A,z=n([]),G=n(null),J=e((function(){return b&&c(b)}),[b]),Q=e((function(){return P&&c(P)}),[P]),X=e((function(){return b&&d(b)}),[b]),Z=e((function(){return P&&d(P)}),[P]),$=!J||V>J,_=!Q||V<Q,tt=e((function(){return h(j||[])}),[j]),nt=e((function(){return h(Y||[])}),[Y]),et=e((function(){return v(V,{minDate:b,maxDate:P,selected:T,eventsMap:tt,offDaysMap:nt})}),[P,b,T,V,tt,nt]),rt=e((function(){return g(q,{minMonth:J,maxMonth:Q})}),[J,Q,q]),ot=e((function(){return m(b||i(new Date,5),P||new Date)}),[b,P]),at=r((function(t){K&&(E(t),O(t)),C&&C(t.getTime())}),[C,K]),ut=r((function(t){K&&O(t),I&&I(t.getTime())}),[I,K]),it=r((function(t){at(l(a(V,t),J,Q))}),[at,V,J,Q]),ft=r((function(t){ut(l(f(q,t),X,Z))}),[ut,q,X,Z]),ct=r((function(t){at(l(t,J,Q))}),[Q,J,at]),dt=r((function(){it(1)}),[it]),st=r((function(){it(-1)}),[it]),ht=r((function(){ft(1)}),[ft]),vt=r((function(){ft(-1)}),[ft]),gt=r((function(){return z.current.find((function(t){return document.activeElement===t}))}),[]),mt=r((function(){return z.current.find((function(t){return t&&0===t.tabIndex}))}),[]),lt=r((function(t){t&&(w(t),t.focus())}),[]),wt=r((function(){return lt(mt())}),[lt,mt]),pt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date),r=p(t,e,b,P,nt),o=!1;r<e&&r.getMonth()!==e.getMonth()&&(st(),o=!0),r>e&&r.getMonth()!==e.getMonth()&&(dt(),o=!0);var a=function(){return lt(z.current[r.getDate()-1])};o?setTimeout(a,0):a()}else wt()}),[lt,wt,gt,P,b,nt,dt,st]),Dt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getMonth()+t;e>=0&&e<D&&lt(z.current[e])}else wt()}),[lt,wt,gt]),Mt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getFullYear()+t,r=(new Date).getFullYear();e<=r&&e>r-ot.length&&lt(z.current[e])}else wt()}),[lt,wt,gt,ot.length]),xt=r((function(t){var n=t.currentTarget.dataset.date;n&&ct(new Date(+n)),G.current&&G.current.focus()}),[ct]),At=r((function(t,n){z.current[n]=t}),[]),bt=r((function(t){var n=t.currentTarget.dataset.date;H(n?+n:void 0)}),[]),yt=r((function(){H(void 0)}),[]),kt=r((function(t){var n=t.currentTarget.dataset.date;n&&L&&L(+n)}),[L]),Pt={days:e((function(){return{ArrowLeft:function(){return pt("prev")},ArrowRight:function(){return pt("next")},ArrowUp:function(){return pt("prevWeek")},ArrowDown:function(){return pt("nextWeek")},End:function(){return pt("endOfWeek")},Home:function(){return pt("startOfWeek")},PageUp:function(){return pt("prevMonth")},PageDown:function(){return pt("nextMonth")}}}),[pt]),months:e((function(){return{ArrowLeft:function(){return Dt(-1)},ArrowRight:function(){return Dt(1)},ArrowUp:function(){return Dt(-3)},ArrowDown:function(){return Dt(3)}}}),[Dt]),years:e((function(){return{ArrowLeft:function(){return Mt(1)},ArrowRight:function(){return Mt(-1)},ArrowUp:function(){return Mt(3)},ArrowDown:function(){return Mt(-3)}}}),[Mt])},Tt=r((function(t){var n=Pt[k];t.key in n&&(n[t.key](),t.preventDefault())}),[Pt,k]),jt=!1,Yt=r((function(t){var n=T&&u(T,t.date),e=n;return T&&s(T,V)||jt||t.disabled||(jt=!0,e=!0),{"data-date":t.date.getTime(),"aria-selected":n,ref:function(n){At(n,t.date.getDate()-1)},tabIndex:e?0:-1,onMouseEnter:bt,onMouseLeave:yt,onClick:kt}}),[kt,At,Tt,bt,yt,T]),Ct=r((function(t){var n=s(V,t.date);return{"data-date":t.date.getTime(),"aria-selected":n,ref:function(n){At(n,t.date.getMonth())},tabIndex:n?0:-1,disabled:t.disabled,onClick:function(t){xt(t),R("days")}}}),[V,At,xt,R]),It=r((function(t){var n=t.ref;return{onKeyDown:Tt,ref:o([void 0===n?null:n,G]),tabIndex:-1}}),[Tt]);return{activeMonth:V,activeYear:q,weeks:et,months:rt,canSetPrevMonth:$,canSetNextMonth:_,highlighted:B,setPrevMonth:st,setNextMonth:dt,setNextYear:ht,setPrevYear:vt,setMonthByDate:ct,getDayProps:Yt,getMonthProps:Ct,getRootProps:It}}export{M as useCalendar};
1
+ import{useState as t,useRef as n,useMemo as e,useCallback as r}from"react";import o from"react-merge-refs";import{b as a,d as u}from"../index-bf38bfbc.js";import{s as i,a as f}from"../index-bc7b6a90.js";import{s as c,h as d,i as s}from"../index-0fb8e8ea.js";import{dateArrayToHashTable as h,generateWeeks as v,generateMonths as g,generateYears as m,limitDate as l,simulateTab as w,modifyDateByShift as p,MONTHS_IN_YEAR as D}from"./utils.js";import"../index-b3fd494f.js";import"../index-2e8268e0.js";import"../index-c15224ba.js";function M(M){var x=M.defaultMonth,b=M.month,A=M.minDate,y=M.view,k=void 0===y?"days":y,P=M.maxDate,T=M.selected,j=M.events,Y=M.offDays,C=M.onMonthChange,I=M.onYearChange,L=M.onChange,R=M.setView,U=t(x),W=U[0],E=U[1],N=t(x),F=N[0],O=N[1],S=t(),B=S[0],H=S[1],K=void 0===b,V=K?W:b,q=K?F:b,z=n([]),G=n(null),J=e((function(){return A&&c(A)}),[A]),Q=e((function(){return P&&c(P)}),[P]),X=e((function(){return A&&d(A)}),[A]),Z=e((function(){return P&&d(P)}),[P]),$=!J||V>J,_=!Q||V<Q,tt=e((function(){return h(j||[])}),[j]),nt=e((function(){return h(Y||[])}),[Y]),et=e((function(){return v(V,{minDate:A,maxDate:P,selected:T,eventsMap:tt,offDaysMap:nt})}),[P,A,T,V,tt,nt]),rt=e((function(){return g(q,{minMonth:J,maxMonth:Q})}),[J,Q,q]),ot=e((function(){return m(A||i(new Date,5),P||new Date)}),[A,P]),at=r((function(t){K&&(E(t),O(t)),C&&C(t.getTime())}),[C,K]),ut=r((function(t){K&&O(t),I&&I(t.getTime())}),[I,K]),it=r((function(t){at(l(a(V,t),J,Q))}),[at,V,J,Q]),ft=r((function(t){ut(l(f(q,t),X,Z))}),[ut,q,X,Z]),ct=r((function(t){at(l(t,J,Q))}),[Q,J,at]),dt=r((function(){it(1)}),[it]),st=r((function(){it(-1)}),[it]),ht=r((function(){ft(1)}),[ft]),vt=r((function(){ft(-1)}),[ft]),gt=r((function(){return z.current.find((function(t){return document.activeElement===t}))}),[]),mt=r((function(){return z.current.find((function(t){return t&&0===t.tabIndex}))}),[]),lt=r((function(t){t&&(w(t),t.focus())}),[]),wt=r((function(){return lt(mt())}),[lt,mt]),pt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date),r=p(t,e,A,P,nt),o=!1;r<e&&r.getMonth()!==e.getMonth()&&(st(),o=!0),r>e&&r.getMonth()!==e.getMonth()&&(dt(),o=!0);var a=function(){return lt(z.current[r.getDate()-1])};o?setTimeout(a,0):a()}else wt()}),[lt,wt,gt,P,A,nt,dt,st]),Dt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getMonth()+t;e>=0&&e<D&&lt(z.current[e])}else wt()}),[lt,wt,gt]),Mt=r((function(t){var n=gt();if(n&&n.dataset.date){var e=new Date(+n.dataset.date).getFullYear()+t,r=(new Date).getFullYear();e<=r&&e>r-ot.length&&lt(z.current[e])}else wt()}),[lt,wt,gt,ot.length]),xt=r((function(t){var n=t.currentTarget.dataset.date;n&&ct(new Date(+n)),G.current&&G.current.focus()}),[ct]),bt=r((function(t,n){z.current[n]=t}),[]),At=r((function(t){var n=t.currentTarget.dataset.date;H(n?+n:void 0)}),[]),yt=r((function(){H(void 0)}),[]),kt=r((function(t){var n=t.currentTarget.dataset.date;n&&L&&L(+n)}),[L]),Pt={days:e((function(){return{ArrowLeft:function(){return pt("prev")},ArrowRight:function(){return pt("next")},ArrowUp:function(){return pt("prevWeek")},ArrowDown:function(){return pt("nextWeek")},End:function(){return pt("endOfWeek")},Home:function(){return pt("startOfWeek")},PageUp:function(){return pt("prevMonth")},PageDown:function(){return pt("nextMonth")}}}),[pt]),months:e((function(){return{ArrowLeft:function(){return Dt(-1)},ArrowRight:function(){return Dt(1)},ArrowUp:function(){return Dt(-3)},ArrowDown:function(){return Dt(3)}}}),[Dt]),years:e((function(){return{ArrowLeft:function(){return Mt(1)},ArrowRight:function(){return Mt(-1)},ArrowUp:function(){return Mt(3)},ArrowDown:function(){return Mt(-3)}}}),[Mt])},Tt=r((function(t){var n=Pt[k];t.key in n&&(n[t.key](),t.preventDefault())}),[Pt,k]),jt=!1,Yt=r((function(t){var n=T&&u(T,t.date),e=n;return T&&s(T,V)||jt||t.disabled||(jt=!0,e=!0),{"data-date":t.date.getTime(),"aria-selected":n,ref:function(n){bt(n,t.date.getDate()-1)},tabIndex:e?0:-1,onMouseEnter:At,onMouseLeave:yt,onClick:kt}}),[kt,bt,Tt,At,yt,T]),Ct=r((function(t){var n=s(V,t.date);return{"data-date":t.date.getTime(),"aria-selected":n,ref:function(n){bt(n,t.date.getMonth())},tabIndex:n?0:-1,disabled:t.disabled,onClick:function(t){xt(t),R("days")}}}),[V,bt,xt,R]),It=r((function(t){var n=t.ref;return{onKeyDown:Tt,ref:o([void 0===n?null:n,G]),tabIndex:-1}}),[Tt]);return{activeMonth:V,activeYear:q,weeks:et,months:rt,canSetPrevMonth:$,canSetNextMonth:_,highlighted:B,setPrevMonth:st,setNextMonth:dt,setNextYear:ht,setPrevYear:vt,setMonthByDate:ct,getDayProps:Yt,getMonthProps:Ct,getRootProps:It}}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-32c1ab9b.js";import"../index-13848f98.js";import"../index-917b8380.js";import"../index-6067e8f7.js";import"../index-d929fadc.js";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,c=i(r),f=c[0],m=c[1],s=i(d),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(){n&&n(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-bf38bfbc.js";import"../index-b3fd494f.js";import"../index-2e8268e0.js";import"../index-0fb8e8ea.js";import"../index-c15224ba.js";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,f=i(r),c=f[0],m=f[1],s=i(d),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(c)return a?void(i>c?u(i):i<c&&(u(void 0),m(i))):(m(Math.min(i,c)),void u(Math.max(i,c)));m(i)}else p()}),[p,c,a]);return t((function(){n&&n(c,a)}),[c,a]),{selectedFrom:c,selectedTo:a,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-32c1ab9b.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-6067e8f7.js";import{f as T}from"../index-d929fadc.js";import"../index-13848f98.js";import"../index-917b8380.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 f,b as s,f as c}from"../index-bf38bfbc.js";import{s as d,c as v,l as m,e as b,a as p,h as l,f as x,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-0fb8e8ea.js";import{f as T}from"../index-c15224ba.js";import"../index-b3fd494f.js";import"../index-2e8268e0.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)),f=a();return b({start:i,end:o}).reduce((function(e,t){var i=O(t);return f[i]=S(t,u,n),(i===M||r(t,o))&&(e.push(f),f=a()),e}),[])}function E(e,n){return p({start:l(e),end:x(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([l(n),l(e)]),end:g([l(n),l(e)])}).reverse()}function S(e,n,t){var i=t.minDate,o=t.maxDate,f=t.selected,s=t.eventsMap,c=void 0===s?{}:s,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:f&&r(e,f),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 f(n,1)},prevWeek:function(){return f(n,7)},prevMonth:function(){return y(n,1)},next:function(){return o(n,1)},nextWeek:function(){return o(n,7)},nextMonth:function(){return s(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-8da6306b.js";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as m}from"react";import p from"react-merge-refs";import s from"classnames";import{Calendar as l}from"../calendar/component.js";import{dateInLimits as d}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-6067e8f7.js";import"../index-917b8380.js";import"../index-13848f98.js";import"../index-32c1ab9b.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-1ea4b685.js";import"../isSymbol-6d502ea9.js";import"../_commonjsHelpers-c763184a.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-2145d8fd.js";import"../index-21ce9ca0.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-d929fadc.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-8c1631f9.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-d8884a89.js";import"../index-02e766d1.js";import"../index-c9df431c.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"../CheckmarkCircleM-5daeacf8.js";import"../ClockCircleM-c9cb2a04.js";import"../CloseS-f110a0ff.js";import"../toast-notifier/use-timer.js";var h="index-module_component__pdVE2",C="index-module_block__wtVLz",y="index-module_calendarContainer__x7A2x",k="index-module_calendarIcon__muPk-",_="index-module_nativeInput__siME6",M=n((function(n,M){var D,w=n.block,E=void 0!==w&&w,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,z=n.dataTestId,K=n.minDate,S=n.required,U=n.maxDate,B=n.calendarProps,H=void 0===B?{}:B,L=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,me=a(!1),pe=me[0],se=me[1],le=a(O),de=le[0],ce=le[1],ue=oe?de:R,fe=ue?j(ue).getTime():void 0,je=d(fe,K,U),ve=X||ee,xe=r(null),be=r(null),ge=r(null),he=r(null),Ce=i((function(e){"Escape"===e.key&&se(!1)}),[]),ye=i((function(){pe||se(!0)}),[pe]),ke=i((function(e){se(!0),!pe&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[pe]),_e=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&se(!1)}),[]),Me=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),De=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]),we=i((function(e){var t=e.target.value,o=j(t);De(e,t,o,"input",v(t))}),[De]),Ee=i((function(e){var t=j(e.target.value,g),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});De(e,o,t)}),[De]),Ne=i((function(e){De(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),se(!1)}),[De]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(l,t({},H,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:K,maxDate:U})))}),[H,fe,F,Ne,Ie,je,U,K]);return o.createElement("div",{ref:ge,className:s(h,N,(D={},D[C]=E,D)),tabIndex:-1,onKeyDown:ve?void 0:Ce,onClick:ve?void 0:ye,onFocus:ve?void 0:ke,onBlur:_e,"data-test-id":z},o.createElement(c,t({},te,{ref:p([M,xe]),wrapperRef:p([W,be]),className:I,value:ue,required:S,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:k}),ne&&o.createElement("input",{type:"date",ref:p([M,xe]),defaultValue:O,onChange:Ee,className:_})),onKeyDown:Me,onChange:we,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:be.current,popperClassName:y,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},Pe()))}));export{M as CalendarInput};
1
+ import{_ as e,a as t}from"../tslib.es6-2fef90ce.js";import o,{forwardRef as n,useState as r,useRef as a,useCallback as i,useEffect as m}from"react";import p from"react-merge-refs";import s from"classnames";import{Calendar as l}from"../calendar/component.js";import{dateInLimits as d}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 b,SUPPORTS_INPUT_TYPE_DATE as x,NATIVE_DATE_FORMAT as g}from"./utils.js";import"../index-0fb8e8ea.js";import"../index-2e8268e0.js";import"../index-b3fd494f.js";import"../index-bf38bfbc.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-e9f8d26d.js";import"../isSymbol-e776d495.js";import"../_commonjsHelpers-61502e7f.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-4b209dce.js";import"../index-ed2ac686.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-c15224ba.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-eafe94c8.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-bc7b6a90.js";import"../index-2d788874.js";import"../index-5fddca9b.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"../CheckmarkCircleM-a4ab3276.js";import"../ClockCircleM-250cfefd.js";import"../CloseS-c49d90b9.js";import"../toast-notifier/use-timer.js";var h="index-module_component__pdVE2",C="index-module_block__wtVLz",y="index-module_calendarContainer__x7A2x",k="index-module_calendarIcon__muPk-",_="index-module_nativeInput__siME6",M=n((function(n,M){var D,w=n.block,E=void 0!==w&&w,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,z=n.dataTestId,K=n.minDate,S=n.required,U=n.maxDate,B=n.calendarProps,H=void 0===B?{}:B,L=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=x&&"native"===J,re="input"===J,ae="static"===q&&!re,ie="popover"===q&&!ne&&!re,me=r(!1),pe=me[0],se=me[1],le=r(O),de=le[0],ce=le[1],ue=oe?de:R,fe=ue?j(ue).getTime():void 0,je=d(fe,K,U),ve=X||ee,be=a(null),xe=a(null),ge=a(null),he=a(null),Ce=i((function(e){"Escape"===e.key&&se(!1)}),[]),ye=i((function(){pe||se(!0)}),[pe]),ke=i((function(e){se(!0),!pe&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[pe]),_e=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&se(!1)}),[]),Me=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),De=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]),we=i((function(e){var t=e.target.value,o=j(t);De(e,t,o,"input",v(t))}),[De]),Ee=i((function(e){var t=j(e.target.value,g),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});De(e,o,t)}),[De]),Ne=i((function(e){De(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),se(!1)}),[De]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(l,t({},H,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:K,maxDate:U})))}),[H,fe,F,Ne,Ie,je,U,K]);return o.createElement("div",{ref:ge,className:s(h,N,(D={},D[C]=E,D)),tabIndex:-1,onKeyDown:ve?void 0:Ce,onClick:ve?void 0:ye,onFocus:ve?void 0:ke,onBlur:_e,"data-test-id":z},o.createElement(c,t({},te,{ref:p([M,be]),wrapperRef:p([W,xe]),className:I,value:ue,required:S,defaultValue:O,disabled:X,readOnly:ee,mask:b,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:k}),ne&&o.createElement("input",{type:"date",ref:p([M,be]),defaultValue:O,onChange:Ee,className:_})),onKeyDown:Me,onChange:we,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),ae&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:xe.current,popperClassName:y,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:L},Pe()))}));export{M 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-8da6306b.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-6067e8f7.js";import"../index-917b8380.js";import"../index-13848f98.js";import"../index-32c1ab9b.js";import"../utils/format-date/index.js";import"../index-d929fadc.js";import"../index-02e766d1.js";import"../index-c9df431c.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-1ea4b685.js";import"../isSymbol-6d502ea9.js";import"../_commonjsHelpers-c763184a.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-2145d8fd.js";import"../index-21ce9ca0.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-8c1631f9.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-d8884a89.js";import"../masked-input/component.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"../CheckmarkCircleM-5daeacf8.js";import"../ClockCircleM-c9cb2a04.js";import"../CloseS-f110a0ff.js";import"../toast-notifier/use-timer.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-2fef90ce.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-0fb8e8ea.js";import"../index-2e8268e0.js";import"../index-b3fd494f.js";import"../index-bf38bfbc.js";import"../utils/format-date/index.js";import"../index-c15224ba.js";import"../index-2d788874.js";import"../index-5fddca9b.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-e9f8d26d.js";import"../isSymbol-e776d495.js";import"../_commonjsHelpers-61502e7f.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-4b209dce.js";import"../index-ed2ac686.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-eafe94c8.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-bc7b6a90.js";import"../masked-input/component.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"../CheckmarkCircleM-a4ab3276.js";import"../ClockCircleM-250cfefd.js";import"../CloseS-c49d90b9.js";import"../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{p as e}from"../index-02e766d1.js";import"../index-13848f98.js";import"../index-917b8380.js";import"../index-c9df431c.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-2d788874.js";import"../index-b3fd494f.js";import"../index-2e8268e0.js";import"../index-5fddca9b.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{_ as r,i as u}from"./isSymbol-6d502ea9.js";var f=function(r,u){for(var f=-1,n=null==r?0:r.length,t=Array(n);++f<n;)t[f]=u(r[f],f,r);return t},n=Array.isArray,t=1/0,e=r?r.prototype:void 0,o=e?e.toString:void 0;var a=function r(e){if("string"==typeof e)return e;if(n(e))return f(e,r)+"";if(u(e))return o?o.call(e):"";var a=e+"";return"0"==a&&1/e==-t?"-0":a};var i=function(r){return null==r?"":a(r)};var d=function(r,u,f){var n=-1,t=r.length;u<0&&(u=-u>t?0:t+u),(f=f>t?t:f)<0&&(f+=t),t=u>f?0:f-u>>>0,u>>>=0;for(var e=Array(t);++n<t;)e[n]=r[n+u];return e};var v=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},c=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return c.test(r)};var s=function(r){return r.split("")},p="\\ud800-\\udfff",g="["+p+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",A="[^"+p+"]",j="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="(?:"+y+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?",C=x+b+("(?:\\u200d(?:"+[A,j,m].join("|")+")"+x+b+")*"),E="(?:"+[A+y+"?",y,j,m,g].join("|")+")",R=RegExp(h+"(?="+h+")|"+E+C,"g");var S=function(r){return r.match(R)||[]};var w=function(r){return l(r)?S(r):s(r)};var L=function(r){return function(u){u=i(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?v(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(i(r).toLowerCase())};export{U as c};
1
+ import{_ as r,i as u}from"./isSymbol-e776d495.js";var f=function(r,u){for(var f=-1,n=null==r?0:r.length,t=Array(n);++f<n;)t[f]=u(r[f],f,r);return t},n=Array.isArray,t=1/0,e=r?r.prototype:void 0,o=e?e.toString:void 0;var i=function r(e){if("string"==typeof e)return e;if(n(e))return f(e,r)+"";if(u(e))return o?o.call(e):"";var i=e+"";return"0"==i&&1/e==-t?"-0":i};var a=function(r){return null==r?"":i(r)};var d=function(r,u,f){var n=-1,t=r.length;u<0&&(u=-u>t?0:t+u),(f=f>t?t:f)<0&&(f+=t),t=u>f?0:f-u>>>0,u>>>=0;for(var e=Array(t);++n<t;)e[n]=r[n+u];return e};var v=function(r,u,f){var n=r.length;return f=void 0===f?n:f,!u&&f>=n?r:d(r,u,f)},c=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var l=function(r){return c.test(r)};var s=function(r){return r.split("")},p="\\ud800-\\udfff",g="["+p+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",A="[^"+p+"]",j="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="(?:"+y+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?",C=x+b+("(?:\\u200d(?:"+[A,j,m].join("|")+")"+x+b+")*"),E="(?:"+[A+y+"?",y,j,m,g].join("|")+")",R=RegExp(h+"(?="+h+")|"+E+C,"g");var S=function(r){return r.match(R)||[]};var w=function(r){return l(r)?S(r):s(r)};var L=function(r){return function(u){u=a(u);var f=l(u)?w(u):void 0,n=f?f[0]:u.charAt(0),t=f?v(f,1).join(""):u.slice(1);return n[r]()+t}}("toUpperCase");var U=function(r){return L(a(r).toLowerCase())};export{U as c};
@@ -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/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../tslib.es6-8da6306b.js";import"../typography/title/component.js";import"swiper/react";import"../PhotoS-e9defd5d.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-7f2e9e0b.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,a=void 0===n?"default":n,s=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,v=r.titleAddons;return e.createElement("div",{className:t([m.component,m[a]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:a}),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),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};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/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../tslib.es6-2fef90ce.js";import"../typography/title/component.js";import"swiper/react";import"../PhotoS-b14af989.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-41cb22e2.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,a=void 0===n?"default":n,s=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,v=r.titleAddons;return e.createElement("div",{className:t([m.component,m[a]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:a}),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),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{r as Card};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as r}from"swiper/react";import"../../PhotoS-e9defd5d.js";import{ImageSizes as i}from"../../image/types.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-7f2e9e0b.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-a1c11865.js";import"../../typography/title/index.js";import"../../tslib.es6-8da6306b.js";import"../../typography/title/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"},a=function(a){var s=a.images,p=void 0===s?[]:s,l=a.orientation,c=void 0===l?"horizontal":l,d=a.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[c],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(r,{key:t},e.createElement(n,{src:t,resolution:i.m}))}))):e.createElement(n,{src:p[0],resolution:i.m})))};export{a as CardImages};
1
+ import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as r}from"swiper/react";import"../../PhotoS-b14af989.js";import{ImageSizes as i}from"../../image/types.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-41cb22e2.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-b5e71902.js";import"../../typography/title/index.js";import"../../tslib.es6-2fef90ce.js";import"../../typography/title/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(r,{key:t},e.createElement(n,{src:t,resolution:i.m}))}))):e.createElement(n,{src:p[0],resolution:i.m})))};export{s as CardImages};
@@ -1 +1 @@
1
- export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../tslib.es6-8da6306b.js";import"../typography/title/component.js";import"./images/index.js";import"swiper/react";import"../PhotoS-e9defd5d.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-7f2e9e0b.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/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../tslib.es6-2fef90ce.js";import"../typography/title/component.js";import"./images/index.js";import"swiper/react";import"../PhotoS-b14af989.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-41cb22e2.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-9f3db64f.js";import"../../typography/text/component.js";import"../../colors.module-a1c11865.js";import"../../typography/title/index.js";import"../../tslib.es6-8da6306b.js";import"../../typography/title/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-a620bdd6.js";import"../../typography/text/component.js";import"../../colors.module-b5e71902.js";import"../../typography/title/index.js";import"../../tslib.es6-2fef90ce.js";import"../../typography/title/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-9f3db64f.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/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../tslib.es6-8da6306b.js";import"../typography/title/component.js";
1
+ export{C as Cell}from"../component-a620bdd6.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/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../tslib.es6-2fef90ce.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- export * from "../component-9f3db64f";
1
+ export * from "../component-a620bdd6";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-9f3db64f.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../tslib.es6-8da6306b.js";import"../typography/title/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-a620bdd6.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../tslib.es6-2fef90ce.js";import"../typography/title/component.js";import"./pure/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as r}from"../../tslib.es6-8da6306b.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-2fef90ce.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,f=o.dataTestId,O=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",f,!0)},O),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
- import{_ as e,a as n}from"../tslib.es6-8da6306b.js";import*as t from"react";import a,{forwardRef as d,useRef as l}from"react";import o from"react-merge-refs";import r from"classnames";import{useFocus as i}from"../hooks/useFocus/index.js";var c=function(){return c=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var d in n=arguments[t])Object.prototype.hasOwnProperty.call(n,d)&&(e[d]=n[d]);return e},c.apply(this,arguments)};function s(e){return t.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},e),t.createElement("path",{fillRule:"evenodd",d:"M14.899 3.73a.75.75 0 0 1 0 1.06l-8.485 8.485a.75.75 0 0 1-1.06 0L1.11 9.034a.75.75 0 1 1 1.06-1.06l3.713 3.712 7.954-7.955a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))}var m=function(){return m=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var d in n=arguments[t])Object.prototype.hasOwnProperty.call(n,d)&&(e[d]=n[d]);return e},m.apply(this,arguments)};function u(e){return t.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor",viewBox:"0 0 24 24"},e),t.createElement("path",{fillRule:"evenodd",d:"M4.997 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2h-12a1 1 0 0 1-1-1",clipRule:"evenodd"}))}var _={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"},h=d((function(t,d){var c,m=t.checked,h=t.label,p=t.hint,b=t.size,f=void 0===b?"m":b,x=t.align,v=void 0===x?"center":x,g=t.addons,k=t.block,E=t.onChange,w=t.className,N=t.name,y=t.disabled,O=t.dataTestId,I=t.indeterminate,j=void 0!==I&&I,C=e(t,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),M=l(null),P=i(M,"keyboard")[0];return a.createElement("label",{className:r(_.component,_[f],_[v],w,(c={},c[_.disabled]=y,c[_.checked]=m,c[_.indeterminate]=j,c[_.focused]=P,c[_.block]=k,c)),ref:o([M,d])},a.createElement("span",{className:_.box},a.createElement("input",n({type:"checkbox",onChange:function(e){E&&E(e,{checked:e.target.checked,name:N})},disabled:y,checked:m,"data-test-id":O},C)),m&&a.createElement(s,null),j&&!m&&a.createElement("div",{className:_.indeterminateIcon},a.createElement(u,null))),(h||p)&&a.createElement("span",{className:_.content},h&&a.createElement("span",{className:_.label},h),p&&a.createElement("span",{className:_.hint},p)),g&&a.createElement("span",{className:_.addons},g))}));h.defaultProps={indeterminate:!1};export{h as Checkbox};
1
+ import{_ as e,a as n}from"../tslib.es6-2fef90ce.js";import*as t from"react";import a,{forwardRef as l,useRef as d}from"react";import o from"react-merge-refs";import r from"classnames";import{useFocus as i}from"../hooks/useFocus/index.js";var c=function(){return c=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},c.apply(this,arguments)};function s(e){return t.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},e),t.createElement("path",{fillRule:"evenodd",d:"M14.899 3.73a.75.75 0 0 1 0 1.06l-8.485 8.485a.75.75 0 0 1-1.06 0L1.11 9.034a.75.75 0 1 1 1.06-1.06l3.713 3.712 7.954-7.955a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))}var m=function(){return m=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},m.apply(this,arguments)};function u(e){return t.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor",viewBox:"0 0 24 24"},e),t.createElement("path",{fillRule:"evenodd",d:"M4.997 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2h-12a1 1 0 0 1-1-1",clipRule:"evenodd"}))}var _={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"},h=l((function(t,l){var c,m=t.checked,h=t.label,p=t.hint,f=t.size,b=void 0===f?"m":f,x=t.align,v=void 0===x?"center":x,g=t.addons,k=t.block,E=t.onChange,w=t.className,N=t.name,y=t.disabled,O=t.dataTestId,I=t.indeterminate,j=void 0!==I&&I,C=e(t,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),M=d(null),P=i(M,"keyboard")[0];return a.createElement("label",{className:r(_.component,_[b],_[v],w,(c={},c[_.disabled]=y,c[_.checked]=m,c[_.indeterminate]=j,c[_.focused]=P,c[_.block]=k,c)),ref:o([M,l])},a.createElement("span",{className:_.box},a.createElement("input",n({type:"checkbox",onChange:function(e){E&&E(e,{checked:e.target.checked,name:N})},disabled:y,checked:m,"data-test-id":O},C)),m&&a.createElement(s,null),j&&!m&&a.createElement("div",{className:_.indeterminateIcon},a.createElement(u,null))),(h||p)&&a.createElement("span",{className:_.content},h&&a.createElement("span",{className:_.label},h),p&&a.createElement("span",{className:_.hint},p)),g&&a.createElement("span",{className:_.addons},g))}));h.defaultProps={indeterminate:!1};export{h as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-8da6306b.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-2fef90ce.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-8da6306b.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"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__XAuHd",l="index-module_subtitle__0PkbT",c=function(c){var m=c.title,a=c.subtitle,d=c.selected,s=void 0===d?[]:d,u=c.data,p=void 0===u?[]:u,v=c.onChange,g=c.columns,y=void 0===g?1:g,b=c.disabled,f=c.gr,h=void 0===f?20:f,x=c.gc,k=void 0===x?20:x,j=c.dataTestId,_=s||[],E=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:i},m&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(r.Text,{className:l,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:h,gc:k},t.createElement(t.Fragment,null,null==p?void 0:p.map((function(n,r){return t.createElement(o,{disabled:b,key:n.key+n.content,dataTestId:E(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(e([],_),[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-2fef90ce.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"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__XAuHd",l="index-module_subtitle__0PkbT",c=function(c){var m=c.title,a=c.subtitle,d=c.selected,s=void 0===d?[]:d,u=c.data,p=void 0===u?[]:u,v=c.onChange,g=c.columns,f=void 0===g?1:g,y=c.disabled,b=c.gr,h=void 0===b?20:b,x=c.gc,k=void 0===x?20:x,j=c.dataTestId,_=s||[],E=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:i},m&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(r.Text,{className:l,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:f,gr:h,gc:k},t.createElement(t.Fragment,null,null==p?void 0:p.map((function(n,r){return t.createElement(o,{disabled:y,key:n.key+n.content,dataTestId:E(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(e([],_),[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
@@ -1 +1 @@
1
- export{CheckboxGroup}from"./component.js";import"../tslib.es6-8da6306b.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{CheckboxGroup}from"./component.js";import"../tslib.es6-2fef90ce.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-8da6306b.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-2256a5ef.js";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../isSymbol-6d502ea9.js";import"../_commonjsHelpers-c763184a.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,b=u.checkableParent,j=u.collapsable,v=u.disabled,E=u.onChange,g=[],y=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&g.push(t)}));var x=n(g),k=x[0],C=x[1],F=function(t){t.forEach((function(n){(null==y?void 0:y.includes(n))?E(y.filter((function(e){return!t.includes(e)}))):E(e(e([],y),t))}))},w=function(e){var n,o,l=e.element;return b?t.createElement(r,{block:!0,disabled:v,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==y?void 0:y.includes(e))&&(o=!0)})),o),onChange:function(){return F(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,k.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(w,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=k.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=k.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return F([e.id])},checked:null==y?void 0:y.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==k?void 0:k.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
1
+ import{b as e}from"../tslib.es6-2fef90ce.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-a9c882db.js";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../isSymbol-e776d495.js";import"../_commonjsHelpers-61502e7f.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,b=u.selected,_=u.checkableParent,j=u.collapsable,v=u.disabled,E=u.onChange,g=[],y=Array.isArray(b)?b:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&g.push(t)}));var x=n(g),k=x[0],C=x[1],F=function(t){t.forEach((function(n){(null==y?void 0:y.includes(n))?E(y.filter((function(e){return!t.includes(e)}))):E(e(e([],y),t))}))},w=function(e){var n,o,l=e.element;return _?t.createElement(r,{block:!0,disabled:v,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==y?void 0:y.includes(e))&&(o=!0)})),o),onChange:function(){return F(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,k.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(w,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=k.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=k.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return F([e.id])},checked:null==y?void 0:y.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==k?void 0:k.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
@@ -1 +1 @@
1
- export{CheckboxGroups}from"./component.js";import"../tslib.es6-8da6306b.js";import"react";import"../ChevronDownS-2256a5ef.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-6d502ea9.js";import"../_commonjsHelpers-c763184a.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{CheckboxGroups}from"./component.js";import"../tslib.es6-2fef90ce.js";import"react";import"../ChevronDownS-a9c882db.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-e776d495.js";import"../_commonjsHelpers-61502e7f.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import*as t from"react";import e from"react";import{P as o}from"../PlusS-c028db70.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as l}from"../typography/component.js";import"../tslib.es6-8da6306b.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a1c11865.js";import"../typography/title/index.js";import"../typography/title/component.js";var i=function(){return i=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i.apply(this,arguments)};function a(e){return t.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},e),t.createElement("path",{fillRule:"evenodd",d:"M10.735 1.877c.306-.1.636-.1.942 0 .22.072.389.193.522.306.121.103.253.235.388.37l1.36 1.36c.136.136.269.269.372.39.113.133.235.302.306.523.1.306.1.636 0 .942a1.5 1.5 0 0 1-.306.523c-.103.121-.235.253-.371.389l-.024.024-8.275 8.275a.76.76 0 0 1-.54.224H2.063a.76.76 0 0 1-.762-.762v-3.048c0-.202.08-.396.223-.54L7.62 4.759l2.19-2.19.014-.014c.136-.136.268-.268.39-.37a1.5 1.5 0 0 1 .522-.307M8.158 6.375l-5.334 5.333v1.97h1.97l5.334-5.333zm3.048.892 1.654-1.654a6 6 0 0 0 .304-.316l-.007-.008a6 6 0 0 0-.304-.315l-1.326-1.326a6 6 0 0 0-.314-.303l-.007-.006-.008.006a6 6 0 0 0-.314.304l-.004.003-1.645 1.645z",clipRule:"evenodd"}))}var c=function(t){var o=t.location,r=t.onClick;return e.createElement(e.Fragment,null,e.createElement(l.Text,{view:"title",weight:"bold",color:"primary"},o.address),e.createElement(n,{icon:a,onClick:r,size:"s",view:"ghost"}))},m=function(t){var n=t.onClick;return e.createElement(r,{leftAddons:e.createElement(o,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{m as Addons,c as Content};
1
+ import*as e from"react";import t from"react";import{P as o}from"../PlusS-5fc4274a.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as l}from"../typography/component.js";import"../tslib.es6-2fef90ce.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-b5e71902.js";import"../typography/title/index.js";import"../typography/title/component.js";var i=function(){return i=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};function c(t){return e.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"currentColor",viewBox:"0 0 16 17"},t),e.createElement("path",{fillRule:"evenodd",d:"M10.735 1.877c.306-.1.636-.1.942 0 .22.072.389.193.522.306.121.103.253.235.388.37l1.36 1.36c.136.136.269.269.372.39.113.133.235.302.306.523.1.306.1.636 0 .942a1.5 1.5 0 0 1-.306.523c-.103.121-.235.253-.371.389l-.024.024-8.275 8.275a.76.76 0 0 1-.54.224H2.063a.76.76 0 0 1-.762-.762v-3.048c0-.202.08-.396.223-.54L7.62 4.759l2.19-2.19.014-.014c.136-.136.268-.268.39-.37a1.5 1.5 0 0 1 .522-.307M8.158 6.375l-5.334 5.333v1.97h1.97l5.334-5.333zm3.048.892 1.654-1.654a6 6 0 0 0 .304-.316l-.007-.008a6 6 0 0 0-.304-.315l-1.326-1.326a6 6 0 0 0-.314-.303l-.007-.006-.008.006a6 6 0 0 0-.314.304l-.004.003-1.645 1.645z",clipRule:"evenodd"}))}var a=function(e){var o=e.location,r=e.onClick;return t.createElement(t.Fragment,null,t.createElement(l.Text,{view:"title",weight:"bold",color:"primary"},o.address),t.createElement(n,{icon:c,onClick:r,size:"s",view:"ghost"}))},m=function(e){var n=e.onClick;return t.createElement(r,{leftAddons:t.createElement(o,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{m as Addons,a as Content};