@alphakits/ui 1.27.37 → 1.27.38

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 (308) 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/back-button/component.js +1 -1
  8. package/dist/back-button/index.js +1 -1
  9. package/dist/base-card/component.js +1 -1
  10. package/dist/base-card/index.js +1 -1
  11. package/dist/bottom-sheet/component.js +2 -2
  12. package/dist/bottom-sheet/index.js +1 -1
  13. package/dist/button/component.js +1 -1
  14. package/dist/button/index.js +1 -1
  15. package/dist/calendar/component.js +1 -1
  16. package/dist/calendar/components/days-table/component.js +1 -1
  17. package/dist/calendar/components/days-table/index.js +1 -1
  18. package/dist/calendar/components/header/index.js +1 -1
  19. package/dist/calendar/components/header//321/201omponent.js +1 -1
  20. package/dist/calendar/components/months-table/index.js +1 -1
  21. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  22. package/dist/calendar/components/select-button/index.js +1 -1
  23. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  24. package/dist/calendar/components/years-table/index.js +1 -1
  25. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  26. package/dist/calendar/index.js +1 -1
  27. package/dist/calendar/use-calendar.js +1 -1
  28. package/dist/calendar/use-period.js +1 -1
  29. package/dist/calendar/utils.js +1 -1
  30. package/dist/calendar-input/component.js +1 -1
  31. package/dist/calendar-input/index.js +1 -1
  32. package/dist/calendar-input/utils.js +1 -1
  33. package/dist/{capitalize-492ff1ce.js → capitalize-fcfa170c.js} +1 -1
  34. package/dist/card/component.js +1 -1
  35. package/dist/card/images/index.js +1 -1
  36. package/dist/card/index.js +1 -1
  37. package/dist/cell/base/component.js +1 -1
  38. package/dist/cell/component.js +1 -1
  39. package/dist/cell/index.d.ts +1 -1
  40. package/dist/cell/index.js +1 -1
  41. package/dist/cell/pure/component.js +1 -1
  42. package/dist/checkbox/component.js +1 -1
  43. package/dist/checkbox/index.js +1 -1
  44. package/dist/checkbox-group/component.js +1 -1
  45. package/dist/checkbox-group/index.js +1 -1
  46. package/dist/checkbox-lists/component.js +1 -1
  47. package/dist/checkbox-lists/index.js +1 -1
  48. package/dist/collapsable-row/addons.js +1 -1
  49. package/dist/collapsable-row/component.js +1 -1
  50. package/dist/collapsable-row/index.js +1 -1
  51. package/dist/collapse/component.js +1 -1
  52. package/dist/collapse/index.js +1 -1
  53. package/dist/{component-74d452c1.js → component-e5f80ca9.js} +1 -1
  54. package/dist/copy-button/component.js +1 -1
  55. package/dist/copy-button/index.js +1 -1
  56. package/dist/date/component.js +1 -1
  57. package/dist/date/index.js +1 -1
  58. package/dist/date-functions.js +1 -1
  59. package/dist/date-switcher/component.js +1 -1
  60. package/dist/date-switcher/index.js +1 -1
  61. package/dist/empty-page/component.js +1 -1
  62. package/dist/empty-page/index.js +1 -1
  63. package/dist/footer/component.js +1 -1
  64. package/dist/footer/contact-block.js +1 -1
  65. package/dist/footer/index.js +1 -1
  66. package/dist/form/component.js +1 -1
  67. package/dist/form/components/form-footer/index.js +1 -1
  68. package/dist/form/components/form-loading/index.js +1 -1
  69. package/dist/form/components/form-wrapper/index.js +1 -1
  70. package/dist/form/components/index.d.ts +1 -1
  71. package/dist/form/components/index.js +1 -1
  72. package/dist/form/index.js +1 -1
  73. package/dist/form/templates/base-form/index.js +1 -1
  74. package/dist/form/templates/filters-form/index.js +1 -1
  75. package/dist/form/templates/rest-form/form.js +1 -1
  76. package/dist/form/templates/rest-form/index.js +1 -1
  77. package/dist/form/utils/get-default-values.js +1 -1
  78. package/dist/form-control/component.js +1 -1
  79. package/dist/form-control/index.js +1 -1
  80. package/dist/grid/col/component.js +1 -1
  81. package/dist/grid/col/index.js +1 -1
  82. package/dist/grid/component.js +1 -1
  83. package/dist/grid/index.js +1 -1
  84. package/dist/grid/row/component.js +1 -1
  85. package/dist/grid/row/index.js +1 -1
  86. package/dist/header-search/component.js +1 -1
  87. package/dist/header-search/index.js +1 -1
  88. package/dist/hooks/index.js +1 -1
  89. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  90. package/dist/hooks/use-get-one/index.js +1 -1
  91. package/dist/icon-button/component.js +1 -1
  92. package/dist/icon-button/index.js +1 -1
  93. package/dist/image/component.js +1 -1
  94. package/dist/image/image-base.js +1 -1
  95. package/dist/image/index.js +1 -1
  96. package/dist/image/use-image-render-component.js +1 -1
  97. package/dist/image-gallery/component.js +1 -1
  98. package/dist/image-gallery/components/header/index.js +1 -1
  99. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  100. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  101. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  102. package/dist/image-gallery/components/index.js +1 -1
  103. package/dist/image-gallery/index.js +1 -1
  104. package/dist/image-uploader/component.js +1 -1
  105. package/dist/image-uploader/index.js +1 -1
  106. package/dist/{index-2d267dff.js → index-05631003.js} +2 -2
  107. package/dist/index-0834aa94.js +1 -0
  108. package/dist/{index-e12ee049.js → index-11cbf2c0.js} +1 -1
  109. package/dist/index-50e90886.js +1 -0
  110. package/dist/{index-c0941e74.js → index-6cb23aa9.js} +1 -1
  111. package/dist/{index-bcdd7b8a.js → index-886fe48a.js} +1 -1
  112. package/dist/index-92d8bfdb.js +1 -0
  113. package/dist/index-a6c0e771.js +1 -0
  114. package/dist/{index-e4a9f5ac.js → index-c34bdeba.js} +1 -1
  115. package/dist/{index-1256325b.js → index-c7c0bb93.js} +1 -1
  116. package/dist/{index-cba7c765.js → index-c94d9c55.js} +1 -1
  117. package/dist/index-e5226de8.js +1 -0
  118. package/dist/index-f15bda1c.js +1 -0
  119. package/dist/index.css +1 -1
  120. package/dist/info-block-header/component.js +1 -1
  121. package/dist/info-block-header/index.js +1 -1
  122. package/dist/info-block-item/component.js +1 -1
  123. package/dist/info-block-item/index.js +1 -1
  124. package/dist/input/component.js +1 -1
  125. package/dist/input/index.js +1 -1
  126. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  127. package/dist/input-autocomplete/component.js +1 -1
  128. package/dist/input-autocomplete/index.js +1 -1
  129. package/dist/input-ghost/component.js +1 -1
  130. package/dist/input-ghost/index.js +1 -1
  131. package/dist/{isSymbol-99305541.js → isSymbol-0a0fd15a.js} +1 -1
  132. package/dist/link/component.js +1 -1
  133. package/dist/link/index.js +1 -1
  134. package/dist/list-allert/component.js +1 -1
  135. package/dist/list-allert/index.js +1 -1
  136. package/dist/masked-input/component.js +1 -1
  137. package/dist/masked-input/index.js +1 -1
  138. package/dist/menu/component.js +1 -1
  139. package/dist/menu/components/content-header/index.js +1 -1
  140. package/dist/menu/components/index.js +1 -1
  141. package/dist/menu/components/menu-avatar/index.js +1 -1
  142. package/dist/menu/components/menu-back-button/index.js +1 -1
  143. package/dist/menu/components/menu-button/index.js +1 -1
  144. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  145. package/dist/menu/components/user-button/index.js +1 -1
  146. package/dist/menu/index.js +1 -1
  147. package/dist/message/component.js +1 -1
  148. package/dist/message/index.js +1 -1
  149. package/dist/modal/components/modals/index.js +1 -1
  150. package/dist/modal/components/modals/modal.js +1 -1
  151. package/dist/modal/context.js +1 -1
  152. package/dist/modal/hooks/use-modal.js +1 -1
  153. package/dist/modal/index.js +1 -1
  154. package/dist/modal/utils/delete-property-by-id.js +1 -1
  155. package/dist/notification/component.js +1 -1
  156. package/dist/notification/index.js +1 -1
  157. package/dist/page-with-controls/component.js +1 -1
  158. package/dist/page-with-controls/index.js +1 -1
  159. package/dist/{parse-query-params-59f79bce.js → parse-query-params-44816ef9.js} +1 -1
  160. package/dist/picker-button/common/index.js +1 -1
  161. package/dist/picker-button/common/labeled-button/index.js +1 -1
  162. package/dist/picker-button/component.js +1 -1
  163. package/dist/picker-button/field/Component.js +1 -1
  164. package/dist/picker-button/field/index.js +1 -1
  165. package/dist/picker-button/index.js +1 -1
  166. package/dist/popover/component.js +1 -1
  167. package/dist/popover/index.js +1 -1
  168. package/dist/progress-bar/component.js +1 -1
  169. package/dist/progress-bar/index.js +1 -1
  170. package/dist/progress-index/component.js +1 -1
  171. package/dist/progress-index/index.js +1 -1
  172. package/dist/radio/component.js +1 -1
  173. package/dist/radio/index.js +1 -1
  174. package/dist/radio-group/component.js +1 -1
  175. package/dist/radio-group/index.js +1 -1
  176. package/dist/radio-groups/component.js +1 -1
  177. package/dist/radio-groups/index.js +1 -1
  178. package/dist/select/component.js +1 -1
  179. package/dist/select/components/base-select/component.js +1 -1
  180. package/dist/select/components/base-select/index.js +1 -1
  181. package/dist/select/components/field/component.js +1 -1
  182. package/dist/select/components/field/index.js +1 -1
  183. package/dist/select/components/index.js +1 -1
  184. package/dist/select/components/native-select/component.js +1 -1
  185. package/dist/select/components/native-select/index.js +1 -1
  186. package/dist/select/components/option/component.js +1 -1
  187. package/dist/select/components/option/index.js +1 -1
  188. package/dist/select/components/options-list/component.js +1 -1
  189. package/dist/select/components/options-list/index.js +1 -1
  190. package/dist/select/components/virtual-options-list/component.js +1 -1
  191. package/dist/select/components/virtual-options-list/index.js +1 -1
  192. package/dist/select/index.js +1 -1
  193. package/dist/select/presets/index.js +1 -1
  194. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  195. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  196. package/dist/sidepanel-header/component.js +1 -1
  197. package/dist/sidepanel-header/index.js +1 -1
  198. package/dist/space/Item.js +1 -1
  199. package/dist/space/component.js +1 -1
  200. package/dist/space/index.js +1 -1
  201. package/dist/stepped-progress-bar/index.js +1 -1
  202. package/dist/stepped-progress-bar/step-bar.js +1 -1
  203. package/dist/suffix-input/component.js +1 -1
  204. package/dist/suffix-input/index.js +1 -1
  205. package/dist/super-list-header/component.js +1 -1
  206. package/dist/super-list-header/index.js +1 -1
  207. package/dist/super-list-item/component.js +1 -1
  208. package/dist/super-list-item/index.js +1 -1
  209. package/dist/switch/component.js +1 -1
  210. package/dist/switch/index.js +1 -1
  211. package/dist/table/columns.js +1 -1
  212. package/dist/table/component.js +1 -1
  213. package/dist/table/components/cell/component.js +1 -1
  214. package/dist/table/components/cell/index.js +1 -1
  215. package/dist/table/components/cells/index.js +1 -1
  216. package/dist/table/components/empty-list/index.js +1 -1
  217. package/dist/table/components/error/index.js +1 -1
  218. package/dist/table/components/loading/index.js +1 -1
  219. package/dist/table/components/pagination/index.js +1 -1
  220. package/dist/table/components/table-header/index.js +1 -1
  221. package/dist/table/hooks/use-table-data.js +1 -1
  222. package/dist/table/index.d.ts +1 -1
  223. package/dist/table/index.js +1 -1
  224. package/dist/table/table.js +1 -1
  225. package/dist/table/utils/add-query-param.js +1 -1
  226. package/dist/table/utils/get-query-from-url.js +1 -1
  227. package/dist/table/utils/index.d.ts +1 -1
  228. package/dist/table/utils/index.js +1 -1
  229. package/dist/table/utils/parse-query-params.js +1 -1
  230. package/dist/table/utils/prepare-rows.js +1 -1
  231. package/dist/table/utils/query-adapter.js +1 -1
  232. package/dist/table/utils/remove-query-param.js +1 -1
  233. package/dist/table/utils/reset-query-param.js +1 -1
  234. package/dist/table-status/component.js +1 -1
  235. package/dist/table-status/index.js +1 -1
  236. package/dist/tag/component.js +1 -1
  237. package/dist/tag/index.js +1 -1
  238. package/dist/tags-list/component.js +1 -1
  239. package/dist/tags-list/index.js +1 -1
  240. package/dist/textarea/component.js +1 -1
  241. package/dist/textarea/index.js +1 -1
  242. package/dist/toast/component.js +1 -1
  243. package/dist/toast/index.js +1 -1
  244. package/dist/toast-notifier/component.js +1 -1
  245. package/dist/toast-notifier/index.js +1 -1
  246. package/dist/toast-plate/component.js +1 -1
  247. package/dist/toast-plate/index.js +1 -1
  248. package/dist/tooltip/component.js +1 -1
  249. package/dist/tooltip/index.js +1 -1
  250. package/dist/typography/component.js +1 -1
  251. package/dist/typography/index.js +1 -1
  252. package/dist/typography/text/component.js +1 -1
  253. package/dist/typography/text/index.js +1 -1
  254. package/dist/typography/title/component.js +1 -1
  255. package/dist/typography/title/index.js +1 -1
  256. package/dist/{use-image-render-component-9a1618b8.js → use-image-render-component-a26c6e03.js} +1 -1
  257. package/dist/utils/format-date/index.js +1 -1
  258. package/dist/utils/index.js +1 -1
  259. package/dist/utils/show-toast/index.js +1 -1
  260. package/dist/with-suffix/component.js +1 -1
  261. package/dist/with-suffix/index.js +1 -1
  262. package/package.json +1 -1
  263. package/dist/index-0f39f9e9.js +0 -1
  264. package/dist/index-20708147.js +0 -1
  265. package/dist/index-27ce9a2c.js +0 -1
  266. package/dist/index-5f90b010.js +0 -1
  267. package/dist/index-cbc07ef9.js +0 -1
  268. package/dist/index-d722f187.js +0 -1
  269. /package/dist/{ActionCopyM-6281efb7.js → ActionCopyM-2d960936.js} +0 -0
  270. /package/dist/{CancelM-8b7837fa.js → CancelM-938a9d41.js} +0 -0
  271. /package/dist/{CheckmarkCircleM-4df7d377.js → CheckmarkCircleM-3ded194f.js} +0 -0
  272. /package/dist/{ChevronBackM-f377912f.js → ChevronBackM-59cde9c2.js} +0 -0
  273. /package/dist/{ChevronBackS-f1a96775.js → ChevronBackS-aa5c337b.js} +0 -0
  274. /package/dist/{ChevronDownS-28945d3b.js → ChevronDownS-1fae53bb.js} +0 -0
  275. /package/dist/{ChevronForwardM-fd565dcb.js → ChevronForwardM-73706f0a.js} +0 -0
  276. /package/dist/{ChevronForwardS-2bfdd927.js → ChevronForwardS-40f3f4e9.js} +0 -0
  277. /package/dist/{ClockCircleM-8d45840a.js → ClockCircleM-6a4298cd.js} +0 -0
  278. /package/dist/{CloseM-f800d8c8.js → CloseM-6e97ffda.js} +0 -0
  279. /package/dist/{CloseS-e501137c.js → CloseS-60ab9198.js} +0 -0
  280. /package/dist/{ControllerS-194d86d5.js → ControllerS-2e26c54c.js} +0 -0
  281. /package/dist/{EditS-d015da1b.js → EditS-afa2c456.js} +0 -0
  282. /package/dist/{MinusM-6c2efbfe.js → MinusM-30fb1b85.js} +0 -0
  283. /package/dist/{MoverS-27bb6134.js → MoverS-13cf902a.js} +0 -0
  284. /package/dist/{NextS-00c07aa8.js → NextS-87837351.js} +0 -0
  285. /package/dist/{PhotoS-7a7ca986.js → PhotoS-31c33dee.js} +0 -0
  286. /package/dist/{PlusS-5223b9b5.js → PlusS-47433dfe.js} +0 -0
  287. /package/dist/{SearchM-50fd8177.js → SearchM-d19f3418.js} +0 -0
  288. /package/dist/{TrashM-cfb86ef5.js → TrashM-d7909c17.js} +0 -0
  289. /package/dist/{YoutubeM-8edd8555.js → YoutubeM-78ed204e.js} +0 -0
  290. /package/dist/{_commonjsHelpers-ff1e5e50.js → _commonjsHelpers-f3b56e29.js} +0 -0
  291. /package/dist/{colors.module-4cf3dce4.js → colors.module-9479b34d.js} +0 -0
  292. /package/dist/{component-abed4991.d.ts → component-1ba201ed.d.ts} +0 -0
  293. /package/dist/{component-abed4991.js → component-1ba201ed.js} +0 -0
  294. /package/dist/{component-74d452c1.d.ts → component-e5f80ca9.d.ts} +0 -0
  295. /package/dist/{contact-block-7b78b706.d.ts → contact-block-45af69f4.d.ts} +0 -0
  296. /package/dist/{contact-block-7b78b706.js → contact-block-45af69f4.js} +0 -0
  297. /package/dist/{gutters.module-c6b42a55.js → gutters.module-2f40e187.js} +0 -0
  298. /package/dist/{index-3c46eca4.js → index-23f26c42.js} +0 -0
  299. /package/dist/{index-ccb5e023.js → index-933bb8ff.js} +0 -0
  300. /package/dist/{index-1256325b.d.ts → index-c7c0bb93.d.ts} +0 -0
  301. /package/dist/{intersection-observer-618833f4.js → intersection-observer-d1e20a8e.js} +0 -0
  302. /package/dist/{parse-query-params-59f79bce.d.ts → parse-query-params-44816ef9.d.ts} +0 -0
  303. /package/dist/{slide-0efacc2b.d.ts → slide-fe22eeb2.d.ts} +0 -0
  304. /package/dist/{slide-0efacc2b.js → slide-fe22eeb2.js} +0 -0
  305. /package/dist/{step-bar-27bb1acc.d.ts → step-bar-3528f98d.d.ts} +0 -0
  306. /package/dist/{step-bar-27bb1acc.js → step-bar-3528f98d.js} +0 -0
  307. /package/dist/{tslib.es6-e8c381d5.js → tslib.es6-1f7096d9.js} +0 -0
  308. /package/dist/{use-image-render-component-9a1618b8.d.ts → use-image-render-component-a26c6e03.d.ts} +0 -0
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-e8c381d5.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 c}from"../calendar/utils.js";import{MaskedInput as d}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-bcdd7b8a.js";import"../index-3c46eca4.js";import"../index-cba7c765.js";import"../index-d722f187.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-492ff1ce.js";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5f90b010.js";import"../index-27ce9a2c.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-e4a9f5ac.js";import"../calendar/components/header/сomponent.js";import"../ChevronBackS-f1a96775.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-20708147.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-cbc07ef9.js";import"../index-e12ee049.js";import"../index-ccb5e023.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-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";var h="index-module_component__pdVE2",C="index-module_block__wtVLz",k="index-module_calendarContainer__x7A2x",y="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,S=n.dataTestId,z=n.minDate,B=n.required,K=n.maxDate,U=n.calendarProps,H=void 0===U?{}:U,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,re="input"===J,ae="static"===q&&!re,ie="popover"===q&&!ne&&!re,me=r(!1),pe=me[0],se=me[1],le=r(O),ce=le[0],de=le[1],ue=oe?ce:R,fe=ue?j(ue).getTime():void 0,je=c(fe,z,K),ve=X||ee,xe=a(null),be=a(null),ge=a(null),he=a(null),Ce=i((function(e){"Escape"===e.key&&se(!1)}),[]),ke=i((function(){pe||se(!0)}),[pe]),ye=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&&de(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:z,maxDate:K})))}),[H,fe,F,Ne,Ie,je,K,z]);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:ke,onFocus:ve?void 0:ye,onBlur:_e,"data-test-id":S},o.createElement(d,t({},te,{ref:p([M,xe]),wrapperRef:p([W,be]),className:I,value:ue,required:B,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:y}),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\\.]*"})),ae&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:be.current,popperClassName:k,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-1f7096d9.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-886fe48a.js";import"../index-23f26c42.js";import"../index-c94d9c55.js";import"../index-f15bda1c.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-fcfa170c.js";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-a6c0e771.js";import"../index-e5226de8.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../index-c34bdeba.js";import"../calendar/components/header/сomponent.js";import"../ChevronBackS-aa5c337b.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-0834aa94.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-92d8bfdb.js";import"../index-11cbf2c0.js";import"../index-933bb8ff.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-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../toast-notifier/use-timer.js";var h="index-module_component__pdVE2",C="index-module_block__wtVLz",k="index-module_calendarContainer__x7A2x",y="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,S=n.dataTestId,z=n.minDate,B=n.required,K=n.maxDate,U=n.calendarProps,H=void 0===U?{}:U,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,z,K),ve=X||ee,xe=r(null),be=r(null),ge=r(null),he=r(null),Ce=i((function(e){"Escape"===e.key&&se(!1)}),[]),ke=i((function(){pe||se(!0)}),[pe]),ye=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:z,maxDate:K})))}),[H,fe,F,Ne,Ie,je,K,z]);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:ke,onFocus:ve?void 0:ye,onBlur:_e,"data-test-id":S},o.createElement(c,t({},te,{ref:p([M,xe]),wrapperRef:p([W,be]),className:I,value:ue,required:B,defaultValue:O,disabled:X,readOnly:ee,mask:x,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:y}),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:k,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-e8c381d5.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-bcdd7b8a.js";import"../index-3c46eca4.js";import"../index-cba7c765.js";import"../index-d722f187.js";import"../utils/format-date/index.js";import"../index-e4a9f5ac.js";import"../index-e12ee049.js";import"../index-ccb5e023.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-492ff1ce.js";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5f90b010.js";import"../index-27ce9a2c.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../ChevronBackS-f1a96775.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-20708147.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-cbc07ef9.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-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.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-1f7096d9.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-886fe48a.js";import"../index-23f26c42.js";import"../index-c94d9c55.js";import"../index-f15bda1c.js";import"../utils/format-date/index.js";import"../index-c34bdeba.js";import"../index-11cbf2c0.js";import"../index-933bb8ff.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../capitalize-fcfa170c.js";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-a6c0e771.js";import"../index-e5226de8.js";import"../flex/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../ChevronBackS-aa5c337b.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-0834aa94.js";import"../flex-columns/component.js";import"../calendar/use-calendar.js";import"../index-92d8bfdb.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-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{p as e}from"../index-e12ee049.js";import"../index-cba7c765.js";import"../index-3c46eca4.js";import"../index-ccb5e023.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 t}from"../index-11cbf2c0.js";import"../index-c94d9c55.js";import"../index-23f26c42.js";import"../index-933bb8ff.js";var e="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(t){return t.length===n.length},u=function(d,n){return void 0===n&&(n=e),t(d,n,new Date)};function a(){var t=document.createElement("input");return t.setAttribute("type","date"),t.setAttribute("value","a"),"a"!==t.value}export{e 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-99305541.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
+ import{_ as r,i as u}from"./isSymbol-0a0fd15a.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 +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-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";import"swiper/react";import"../PhotoS-7a7ca986.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-9a1618b8.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-9479b34d.js";import"../typography/title/index.js";import"../tslib.es6-1f7096d9.js";import"../typography/title/component.js";import"swiper/react";import"../PhotoS-31c33dee.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-a26c6e03.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-7a7ca986.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-9a1618b8.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-4cf3dce4.js";import"../../typography/title/index.js";import"../../tslib.es6-e8c381d5.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,c=a.orientation,l=void 0===c?"horizontal":c,d=a.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{a as CardImages};
1
+ import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as r}from"swiper/react";import"../../PhotoS-31c33dee.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-a26c6e03.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-9479b34d.js";import"../../typography/title/index.js";import"../../tslib.es6-1f7096d9.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-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";import"./images/index.js";import"swiper/react";import"../PhotoS-7a7ca986.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-9a1618b8.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-9479b34d.js";import"../typography/title/index.js";import"../tslib.es6-1f7096d9.js";import"../typography/title/component.js";import"./images/index.js";import"swiper/react";import"../PhotoS-31c33dee.js";import"../image/types.js";import"../image/image-base.js";import"../use-image-render-component-a26c6e03.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-abed4991.js";import"../../typography/text/component.js";import"../../colors.module-4cf3dce4.js";import"../../typography/title/index.js";import"../../tslib.es6-e8c381d5.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-1ba201ed.js";import"../../typography/text/component.js";import"../../colors.module-9479b34d.js";import"../../typography/title/index.js";import"../../tslib.es6-1f7096d9.js";import"../../typography/title/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-abed4991.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-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";
1
+ export{C as Cell}from"../component-1ba201ed.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-9479b34d.js";import"../typography/title/index.js";import"../tslib.es6-1f7096d9.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- export * from "../component-abed4991";
1
+ export * from "../component-1ba201ed";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-abed4991.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-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-1ba201ed.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-9479b34d.js";import"../typography/title/index.js";import"../tslib.es6-1f7096d9.js";import"../typography/title/component.js";import"./pure/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as r}from"../../tslib.es6-e8c381d5.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-1f7096d9.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-e8c381d5.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{C as l,M as m}from"../MinusM-6c2efbfe.js";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={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"},r=a((function(a,r){var _,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,f=a.align,k=void 0===f?"center":f,E=a.addons,N=a.block,g=a.onChange,I=a.className,v=a.name,C=a.disabled,M=a.dataTestId,j=a.indeterminate,y=void 0!==j&&j,z=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),D=t(null),O=c(D,"keyboard")[0];return d.createElement("label",{className:i(s.component,s[p],s[k],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=y,_[s.focused]=O,_[s.block]=N,_)),ref:o([D,r])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":M},z)),u&&d.createElement(l,null),y&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),x&&d.createElement("span",{className:s.hint},x)),E&&d.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
1
+ import{_ as e,a as n}from"../tslib.es6-1f7096d9.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{C as l,M as m}from"../MinusM-30fb1b85.js";import i from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";var c={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"},r=a((function(a,r){var _,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,f=a.align,k=void 0===f?"center":f,E=a.addons,N=a.block,g=a.onChange,I=a.className,v=a.name,C=a.disabled,M=a.dataTestId,j=a.indeterminate,y=void 0!==j&&j,z=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),D=t(null),O=s(D,"keyboard")[0];return d.createElement("label",{className:i(c.component,c[p],c[k],I,(_={},_[c.disabled]=C,_[c.checked]=u,_[c.indeterminate]=y,_[c.focused]=O,_[c.block]=N,_)),ref:o([D,r])},d.createElement("span",{className:c.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":M},z)),u&&d.createElement(l,null),y&&!u&&d.createElement("div",{className:c.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:c.content},b&&d.createElement("span",{className:c.label},b),x&&d.createElement("span",{className:c.hint},x)),E&&d.createElement("span",{className:c.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"react-merge-refs";import"../MinusM-6c2efbfe.js";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-1f7096d9.js";import"react";import"react-merge-refs";import"../MinusM-30fb1b85.js";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-e8c381d5.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"../MinusM-6c2efbfe.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",l=function(l){var m=l.title,a=l.subtitle,d=l.selected,s=void 0===d?[]:d,u=l.data,p=void 0===u?[]:u,v=l.onChange,f=l.columns,g=void 0===f?1:f,y=l.disabled,b=l.gr,h=void 0===b?20:b,x=l.gc,j=void 0===x?20:x,k=l.dataTestId,_=s||[],E=function(e){return k?"checkbox_"+k+"_"+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:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:g,gr:h,gc:j},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{l as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-1f7096d9.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"../MinusM-30fb1b85.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-9479b34d.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,b=void 0===g?1:g,f=c.disabled,y=c.gr,h=void 0===y?20:y,x=c.gc,j=void 0===x?20:x,k=c.dataTestId,_=s||[],E=function(e){return k?"checkbox_"+k+"_"+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:b,gr:h,gc:j},t.createElement(t.Fragment,null,null==p?void 0:p.map((function(n,r){return t.createElement(o,{disabled:f,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-e8c381d5.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-6c2efbfe.js";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{CheckboxGroup}from"./component.js";import"../tslib.es6-1f7096d9.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-30fb1b85.js";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-e8c381d5.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-28945d3b.js";import r from"classnames";import{Checkbox as l}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"../MinusM-6c2efbfe.js";import"../hooks/useFocus/index.js";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.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,r=e.element;return _?t.createElement(l,{block:!0,disabled:v,checked:(n=r.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(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},r.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:r(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,gr:8},e.childs.map((function(e){return t.createElement(l,{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-1f7096d9.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-1fae53bb.js";import r from"classnames";import{Checkbox as l}from"../checkbox/component.js";import{Collapse as i}from"../collapse/component.js";import{Divider as c}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"../MinusM-30fb1b85.js";import"../hooks/useFocus/index.js";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.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,r=e.element;return _?t.createElement(l,{block:!0,disabled:v,checked:(n=r.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(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},r.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:r(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(i,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1,gr:8},e.childs.map((function(e){return t.createElement(l,{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(c,{size:"m"}))})))};export{u as CheckboxGroups};
@@ -1 +1 @@
1
- export{CheckboxGroups}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"../ChevronDownS-28945d3b.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-6c2efbfe.js";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.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-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{CheckboxGroups}from"./component.js";import"../tslib.es6-1f7096d9.js";import"react";import"../ChevronDownS-1fae53bb.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-30fb1b85.js";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.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-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import o from"react";import{E as t}from"../EditS-d015da1b.js";import{P as e}from"../PlusS-5223b9b5.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},s=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
1
+ import o from"react";import{E as t}from"../EditS-afa2c456.js";import{P as e}from"../PlusS-47433dfe.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},s=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
@@ -1 +1 @@
1
- import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-28945d3b.js";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var l="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",c="index-module_label__kuH6r",p="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,f=u.label,x=u.content,b=u.expanded,y=u.addons,h=u.children,v=u.disabled,g=o(b),E=g[0],w=g[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:l},e.createElement("div",{className:a},f&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:a},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(p,(j={},j[d]=E,j)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
1
+ import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-1fae53bb.js";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",p="index-module_label__kuH6r",c="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,b=u.label,f=u.content,x=u.expanded,y=u.addons,h=u.children,v=u.disabled,g=o(x),E=g[0],w=g[1];return t((function(){w(x)}),[x]),e.createElement("div",null,e.createElement("div",{className:a},e.createElement("div",{className:l},b&&e.createElement(s.Text,{className:p,color:"secondary",view:"title",weight:"medium"},b),f),e.createElement("div",{className:l},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(j={},j[d]=E,j)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
@@ -1 +1 @@
1
- export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-28945d3b.js";import"classnames";import"../collapse/component.js";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-1fae53bb.js";import"classnames";import"../collapse/component.js";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as u}from"react";import a from"classnames";import{a as c,i as s}from"../isSymbol-99305541.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../_commonjsHelpers-ff1e5e50.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},m=function(){return c.Date.now()},v=/\s/;var p=function(e){for(var n=e.length;n--&&v.test(e.charAt(n)););return n},x=/^\s+/;var h=function(e){return e?e.slice(0,p(e)+1).replace(x,""):e},_=NaN,g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,w=/^0o[0-7]+$/i,y=parseInt;var T=function(e){if("number"==typeof e)return e;if(s(e))return _;if(d(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=d(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var t=E.test(e);return t||w.test(e)?y(e.slice(2),t?2:8):g.test(e)?_:+e},b="Expected a function",j=Math.max,k=Math.min;var N=function(e,n,t){var r,i,o,u,a,c,s=0,f=!1,l=!1,v=!0;if("function"!=typeof e)throw new TypeError(b);function p(n){var t=r,o=i;return r=i=void 0,s=n,u=e.apply(o,t)}function x(e){var t=e-c;return void 0===c||t>=n||t<0||l&&e-s>=o}function h(){var e=m();if(x(e))return _(e);a=setTimeout(h,function(e){var t=n-(e-c);return l?k(t,o-(e-s)):t}(e))}function _(e){return a=void 0,v&&r?p(e):(r=i=void 0,u)}function g(){var e=m(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===a)return function(e){return s=e,a=setTimeout(h,n),f?p(e):u}(c);if(l)return clearTimeout(a),a=setTimeout(h,n),p(c)}return void 0===a&&(a=setTimeout(h,n)),u}return n=T(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?j(T(t.maxWait)||0,n):o,v="trailing"in t?!!t.trailing:v),g.cancel=function(){void 0!==a&&clearTimeout(a),s=0,r=c=i=a=void 0},g.flush=function(){return void 0===a?u:_(m())},g},z="index-module_collapse__ORa-f",C="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",H="index-module_children_wrap__ekYCk",O=n((function(n,c){var s,d=n.expanded,m=n.defaultExpanded,v=n.collapsedLabel,p=n.expandedLabel,x=n.children,h=n.className,_=n.contentClassName,g=n.id,E=n.onExpandedChange,w=n.onTransitionEnd,y=n.dataTestId,T=n.linkProps,b=void 0===d,j=t(null),k=t(null),O=r(m||d),$=O[0],D=O[1],I=b?$:d,M=i((function(){var e;k.current&&j.current&&(e=I?k.current.offsetHeight:0,j.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){b&&D(!I),console.log(I),E&&E()}),[I,E,b]);o((function(){var e=N((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return k.current&&e.observe(k.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=u((function(){var e,n=null===(e=j.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!v;return e.createElement("div",{ref:c,className:a(h,z),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:j,className:a(C,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:a(H),ref:k},x)),P&&e.createElement(l,{view:(null==T?void 0:T.view)||"secondary",size:(null==T?void 0:T.size)||"m",pseudo:!0,onClick:A},I?p:v))}));export{O as Collapse};
1
+ import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-0a0fd15a.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../_commonjsHelpers-f3b56e29.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},m=function(){return c.Date.now()},v=/\s/;var p=function(e){for(var n=e.length;n--&&v.test(e.charAt(n)););return n},x=/^\s+/;var h=function(e){return e?e.slice(0,p(e)+1).replace(x,""):e},_=NaN,g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,w=/^0o[0-7]+$/i,y=parseInt;var b=function(e){if("number"==typeof e)return e;if(s(e))return _;if(d(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=d(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var t=E.test(e);return t||w.test(e)?y(e.slice(2),t?2:8):g.test(e)?_:+e},T="Expected a function",j=Math.max,k=Math.min;var N=function(e,n,t){var r,i,o,a,u,c,s=0,f=!1,l=!1,v=!0;if("function"!=typeof e)throw new TypeError(T);function p(n){var t=r,o=i;return r=i=void 0,s=n,a=e.apply(o,t)}function x(e){var t=e-c;return void 0===c||t>=n||t<0||l&&e-s>=o}function h(){var e=m();if(x(e))return _(e);u=setTimeout(h,function(e){var t=n-(e-c);return l?k(t,o-(e-s)):t}(e))}function _(e){return u=void 0,v&&r?p(e):(r=i=void 0,a)}function g(){var e=m(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===u)return function(e){return s=e,u=setTimeout(h,n),f?p(e):a}(c);if(l)return clearTimeout(u),u=setTimeout(h,n),p(c)}return void 0===u&&(u=setTimeout(h,n)),a}return n=b(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?j(b(t.maxWait)||0,n):o,v="trailing"in t?!!t.trailing:v),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=i=u=void 0},g.flush=function(){return void 0===u?a:_(m())},g},z="index-module_collapse__ORa-f",C="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",H="index-module_children_wrap__ekYCk",O=n((function(n,c){var s,d=n.expanded,m=n.defaultExpanded,v=n.collapsedLabel,p=n.expandedLabel,x=n.children,h=n.className,_=n.contentClassName,g=n.id,E=n.onExpandedChange,w=n.onTransitionEnd,y=n.dataTestId,b=n.linkProps,T=void 0===d,j=t(null),k=t(null),O=r(m||d),$=O[0],D=O[1],I=T?$:d,M=i((function(){var e;k.current&&j.current&&(e=I?k.current.offsetHeight:0,j.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){T&&D(!I),console.log(I),E&&E()}),[I,E,T]);o((function(){var e=N((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return k.current&&e.observe(k.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=a((function(){var e,n=null===(e=j.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!v;return e.createElement("div",{ref:c,className:u(h,z),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:j,className:u(C,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:u(H),ref:k},x)),P&&e.createElement(l,{view:(null==b?void 0:b.view)||"secondary",size:(null==b?void 0:b.size)||"m",pseudo:!0,onClick:A},I?p:v))}));export{O as Collapse};
@@ -1 +1 @@
1
- export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-99305541.js";import"../_commonjsHelpers-ff1e5e50.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
1
+ export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-0a0fd15a.js";import"../_commonjsHelpers-f3b56e29.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as m}from"./table/components/pagination/index.js";import{TableHeader as u}from"./table/components/table-header/index.js";import{useTableData as d}from"./table/hooks/use-table-data.js";import{addQueryParam as p}from"./table/utils/add-query-param.js";import{getTags as f}from"./table/utils/get-tags.js";import{a as v}from"./PhotoS-7a7ca986.js";import{Image as g}from"./image/component.js";import"./image/types.js";import"./cell/pure/component.js";import{removeQueryParam as b}from"./table/utils/remove-query-param.js";import{resetQueryParam as h}from"./table/utils/reset-query-param.js";function w(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function C(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function E(e){var l=e.columns,o=e.data,r=e.refetch,n=o.map((function(e){return{row:e,cells:l.map((function(l){var o,n,a,i,c,s,m,u,d,p,f=C((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,r);if(null===(n=l.row)||void 0===n?void 0:n.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,r);p=b?t.createElement(g,{bgColor:"secondary",src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(g,{bgColor:"secondary",icon:t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else if(null===(i=l.row)||void 0===i?void 0:i.icon){var h=w(null===(c=l.row)||void 0===c?void 0:c.icon,e,r);p=t.createElement(g,{icon:h||t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else(null===(s=l.row)||void 0===s?void 0:s.customAddon)&&(p=w(null===(m=l.row)||void 0===m?void 0:m.customAddon,e,r));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(u=l.row)||void 0===u?void 0:u.subtitle)&&C(null===(d=l.row)||void 0===d?void 0:d.subtitle,e,r),addon:p})}))}}));return n}var j={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function x(e){var v=e.columns,g=e.searchPlaceholder,w=void 0===g?"Поиск по таблице":g,C=e.records,x=e.hideSearch,_=e.rightHeaderAddons,y=e.leftHeaderAddons,k=e.filtersButtonLabel,P=e.createButtonLabel,S=e.loading,B=e.height,A=void 0===B?"fill":B,L=e.tagsBuilder,F=e.promise,H=e.onRowClick,T=e.onCreateClick,q=e.onFiltersClick,N=e.refetch,D=e.language,Q=d({promise:F,records:C}),R=Q.loading,V=Q.error,z=Q.data,G=Q.total,I=Q.params,J=Q.pagesCount,K=Q.updateData,M=T?function(){return T(K)}:void 0,O=l((function(e){h(e),K()}),[]);o((function(){K()}),[]);var U=function(){return q?q({submitCallback:function(e){return O(e)},initialValues:I}):null},W=function(e){p(e),K()},X=f({params:(null==I?void 0:I.where)||{},onDelete:function(e,t){b(e,t),K()},tagsBuilder:L,onClick:U}),Y=r((function(){return E({columns:v,data:z,refetch:N||K})}),[z,v]),Z=R||S;return t.createElement("div",{className:n(j.table_wrapper,j[A])},(!x||_||y||T||q)&&t.createElement(u,{language:D,hideSearch:x,rightHeaderAddons:_,leftHeaderAddons:y,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:k,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:j.table},t.createElement("table",{cellSpacing:"0",cellPadding:"0"},t.createElement(a,{sort:null==I?void 0:I.sort,order:null==I?void 0:I.order,addParam:W,columns:v}),t.createElement("tbody",null,V&&t.createElement(c,{language:D}),!Y.length&&!Z&&!V&&t.createElement(i,{language:D}),Z&&t.createElement(s,{columnsLength:v.length}),Y.map((function(e){var l,o=e.row,r=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:n((l={},l[j.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},r.map((function(e){return e})))}))))),!!F&&t.createElement(m,{language:D,currentPage:I?+I.page:1,recordsPerPage:I?+I.limit:10,pagesCount:+J,addParam:W,total:+G}))}var _={Cell:e,TableComponent:x};export{_ as T,x as a,E as p};
1
+ import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as m}from"./table/components/pagination/index.js";import{TableHeader as d}from"./table/components/table-header/index.js";import{useTableData as u}from"./table/hooks/use-table-data.js";import{addQueryParam as p}from"./table/utils/add-query-param.js";import{getTags as f}from"./table/utils/get-tags.js";import{a as v}from"./PhotoS-31c33dee.js";import{Image as g}from"./image/component.js";import"./image/types.js";import"./cell/pure/component.js";import{removeQueryParam as b}from"./table/utils/remove-query-param.js";import{resetQueryParam as h}from"./table/utils/reset-query-param.js";function w(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function C(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function E(e){var l=e.columns,o=e.data,r=e.refetch,n=o.map((function(e){return{row:e,cells:l.map((function(l){var o,n,a,i,c,s,m,d,u,p,f=C((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,r);if(null===(n=l.row)||void 0===n?void 0:n.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,r);p=b?t.createElement(g,{bgColor:"secondary",src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(g,{bgColor:"secondary",icon:t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else if(null===(i=l.row)||void 0===i?void 0:i.icon){var h=w(null===(c=l.row)||void 0===c?void 0:c.icon,e,r);p=t.createElement(g,{icon:h||t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else(null===(s=l.row)||void 0===s?void 0:s.customAddon)&&(p=w(null===(m=l.row)||void 0===m?void 0:m.customAddon,e,r));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(d=l.row)||void 0===d?void 0:d.subtitle)&&C(null===(u=l.row)||void 0===u?void 0:u.subtitle,e,r),addon:p})}))}}));return n}var j={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function x(e){var v=e.columns,g=e.searchPlaceholder,w=void 0===g?"Поиск по таблице":g,C=e.records,x=e.hideSearch,_=e.rightHeaderAddons,y=e.leftHeaderAddons,k=e.filtersButtonLabel,P=e.createButtonLabel,S=e.loading,B=e.height,A=void 0===B?"fill":B,L=e.tagsBuilder,F=e.promise,H=e.onRowClick,T=e.onCreateClick,q=e.onFiltersClick,N=e.refetch,D=e.language,Q=u({promise:F,records:C}),R=Q.loading,V=Q.error,z=Q.data,G=Q.total,I=Q.params,J=Q.pagesCount,K=Q.updateData,M=T?function(){return T(K)}:void 0,O=l((function(e){h(e),K()}),[]);o((function(){K()}),[]);var U=function(){return q?q({submitCallback:function(e){return O(e)},initialValues:I}):null},W=function(e){p(e),K()},X=f({params:(null==I?void 0:I.where)||{},onDelete:function(e,t){b(e,t),K()},tagsBuilder:L,onClick:U}),Y=r((function(){return E({columns:v,data:z,refetch:N||K})}),[z,v]),Z=R||S;return t.createElement("div",{className:n(j.table_wrapper,j[A])},(!x||_||y||T||q)&&t.createElement(d,{language:D,hideSearch:x,rightHeaderAddons:_,leftHeaderAddons:y,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:k,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:j.table},t.createElement("table",{cellSpacing:"0",cellPadding:"0"},t.createElement(a,{sort:null==I?void 0:I.sort,order:null==I?void 0:I.order,addParam:W,columns:v}),t.createElement("tbody",null,V&&t.createElement(c,{language:D}),!Y.length&&!Z&&!V&&t.createElement(i,{language:D}),Z&&t.createElement(s,{columnsLength:v.length}),Y.map((function(e){var l,o=e.row,r=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:n((l={},l[j.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},r.map((function(e){return e})))}))))),!!F&&t.createElement(m,{language:D,currentPage:I?+I.page:1,recordsPerPage:I?+I.limit:10,pagesCount:+J,addParam:W,total:+G}))}var _={Cell:e,TableComponent:x};export{_ as T,x as a,E as p};
@@ -1 +1 @@
1
- import t from"react";import{A as o}from"../ActionCopyM-6281efb7.js";import{IconButton as e}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-e8c381d5.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,c=n.fullText,a=n.color;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:a||"primary"},s),t.createElement(e,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(c||s).then((function(){r({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
1
+ import t from"react";import{A as o}from"../ActionCopyM-2d960936.js";import{IconButton as e}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-1f7096d9.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,a=n.fullText,c=n.color;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:c||"primary"},s),t.createElement(e,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){r({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
@@ -1 +1 @@
1
- export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-6281efb7.js";import"../icon-button/component.js";import"../tslib.es6-e8c381d5.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-2d960936.js";import"../icon-button/component.js";import"../tslib.es6-1f7096d9.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{_ as t,a as o}from"../tslib.es6-e8c381d5.js";import e from"react";import{Typography as r}from"../typography/component.js";import"../toast-notifier/component.js";import{formatDate as m}from"../utils/format-date/index.js";import"../typography/text/component.js";import"classnames";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../index-cba7c765.js";import"../index-3c46eca4.js";import"../index-e4a9f5ac.js";import"../index-e12ee049.js";import"../index-ccb5e023.js";var i=function(i){var a=i.className,s=i.dataTestId,p=i.date,c=i.time,n=i.format,d=void 0===n?"dd.MM.yyyy":n,j=i.language,l=void 0===j?"de":j,f=t(i,["className","dataTestId","date","time","format","language"]);return e.createElement(r.Text,o({},f,{className:a,"data-test-id":s}),m(p,{format:d,lang:l,time:c}))};export{i as FormattedDate};
1
+ import{_ as t,a as o}from"../tslib.es6-1f7096d9.js";import e from"react";import{Typography as r}from"../typography/component.js";import"../toast-notifier/component.js";import{formatDate as m}from"../utils/format-date/index.js";import"../typography/text/component.js";import"classnames";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../index-c94d9c55.js";import"../index-23f26c42.js";import"../index-c34bdeba.js";import"../index-11cbf2c0.js";import"../index-933bb8ff.js";var i=function(i){var a=i.className,s=i.dataTestId,p=i.date,n=i.time,d=i.format,c=void 0===d?"dd.MM.yyyy":d,j=i.language,l=void 0===j?"de":j,f=t(i,["className","dataTestId","date","time","format","language"]);return e.createElement(r.Text,o({},f,{className:a,"data-test-id":s}),m(p,{format:c,lang:l,time:n}))};export{i as FormattedDate};
@@ -1 +1 @@
1
- export{FormattedDate}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-cba7c765.js";import"../index-3c46eca4.js";import"../index-e4a9f5ac.js";import"../index-e12ee049.js";import"../index-ccb5e023.js";
1
+ export{FormattedDate}from"./component.js";import"../tslib.es6-1f7096d9.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-c94d9c55.js";import"../index-23f26c42.js";import"../index-c34bdeba.js";import"../index-11cbf2c0.js";import"../index-933bb8ff.js";
@@ -1 +1 @@
1
- export{a as add,p as parseISO,s as subWeeks}from"./index-c0941e74.js";export{a as addDays,b as addMonths,i as isAfter,c as isBefore,d as isSameDay,s as startOfDay,e as startOfISOWeek,f as startOfWeek,g as subDays}from"./index-d722f187.js";export{a as addYears,s as subYears}from"./index-cbc07ef9.js";export{e as eachDayOfInterval,a as eachMonthOfInterval,b as eachYearOfInterval,c as endOfISOWeek,d as endOfWeek,f as endOfYear,i as isSameMonth,l as lastDayOfMonth,m as max,g as min,s as startOfMonth,h as startOfYear,j as subMonths}from"./index-bcdd7b8a.js";export{f as format}from"./index-e4a9f5ac.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-5f90b010.js";export{i as isSameYear,a as isThisYear}from"./index-0f39f9e9.js";export{i as isThisMonth}from"./index-20708147.js";export{i as isToday}from"./index-27ce9a2c.js";export{p as parse}from"./index-e12ee049.js";import{t as r}from"./index-cba7c765.js";import{r as t,t as o}from"./index-3c46eca4.js";import"./index-ccb5e023.js";function n(a,s){t(2,arguments);var e=o(a),i=r(s);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}export{n as setYear};
1
+ export{a as add,p as parseISO,s as subWeeks}from"./index-6cb23aa9.js";export{a as addDays,b as addMonths,i as isAfter,c as isBefore,d as isSameDay,s as startOfDay,e as startOfISOWeek,f as startOfWeek,g as subDays}from"./index-f15bda1c.js";export{a as addYears,s as subYears}from"./index-92d8bfdb.js";export{e as eachDayOfInterval,a as eachMonthOfInterval,b as eachYearOfInterval,c as endOfISOWeek,d as endOfWeek,f as endOfYear,i as isSameMonth,l as lastDayOfMonth,m as max,g as min,s as startOfMonth,h as startOfYear,j as subMonths}from"./index-886fe48a.js";export{f as format}from"./index-c34bdeba.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-a6c0e771.js";export{i as isSameYear,a as isThisYear}from"./index-50e90886.js";export{i as isThisMonth}from"./index-0834aa94.js";export{i as isToday}from"./index-e5226de8.js";export{p as parse}from"./index-11cbf2c0.js";import{t as r}from"./index-c94d9c55.js";import{r as t,t as o}from"./index-23f26c42.js";import"./index-933bb8ff.js";function n(a,s){t(2,arguments);var e=o(a),i=r(s);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}export{n as setYear};
@@ -1 +1 @@
1
- import e from"react";import{C as t}from"../ChevronBackM-f377912f.js";import{C as o}from"../ChevronForwardM-fd565dcb.js";import a from"classnames";import{Button as r}from"../button/component.js";import{p as i,a as d,s as m}from"../index-c0941e74.js";import{f as s}from"../index-e4a9f5ac.js";import{e as n,i as c,c as p,g as l}from"../index-d722f187.js";import{i as y}from"../index-27ce9a2c.js";import{IconButton as f}from"../icon-button/component.js";import{Typography as j}from"../typography/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-3c46eca4.js";import"../index-cba7c765.js";import"../index-ccb5e023.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var _={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},w="yyyy-MM-dd",x="dd.MM.yy",u=function(u){var h=u.view,b=void 0===h?"day":h,v=u.startDate,g=u.onChange,k=u.minDate,C=u.maxDate,E=u.todayLabel,M=n(i(v)),D="day"===b?i(v):M,T=k?i(k):new Date,z=c(D,T),F=!C||p(D,i(C)),N=y(D);return e.createElement("div",{className:_.date_switcher},e.createElement(f,{disabled:!!k&&!z,onClick:function(){"day"===b&&g(s(l(D,1),w)),"week"===b&&g(s(m(D,1),w))},icon:t}),e.createElement("div",{className:a(_.date_wrap,_[b])},e.createElement(j.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===b?s(D,x):s(D,x)+" - "+s(d(D,{days:6}),x))),e.createElement(f,{disabled:!F,onClick:function(){"day"===b&&g(s(d(D,{days:1}),w)),"week"===b&&g(s(d(D,{days:7}),w))},icon:o}),e.createElement(r,{disabled:N,onClick:function(){g(s(new Date,w))},view:"ghost"},E))};export{u as DateSwitcher};
1
+ import e from"react";import{C as t}from"../ChevronBackM-59cde9c2.js";import{C as o}from"../ChevronForwardM-73706f0a.js";import a from"classnames";import{Button as r}from"../button/component.js";import{p as i,a as d,s as m}from"../index-6cb23aa9.js";import{f as s}from"../index-c34bdeba.js";import{e as n,i as c,c as p,g as l}from"../index-f15bda1c.js";import{i as y}from"../index-e5226de8.js";import{IconButton as f}from"../icon-button/component.js";import{Typography as j}from"../typography/component.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-23f26c42.js";import"../index-c94d9c55.js";import"../index-933bb8ff.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";var _={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},w="yyyy-MM-dd",x="dd.MM.yy",u=function(u){var b=u.view,h=void 0===b?"day":b,v=u.startDate,g=u.onChange,k=u.minDate,C=u.maxDate,E=u.todayLabel,M=n(i(v)),D="day"===h?i(v):M,T=k?i(k):new Date,z=c(D,T),F=!C||p(D,i(C)),N=y(D);return e.createElement("div",{className:_.date_switcher},e.createElement(f,{disabled:!!k&&!z,onClick:function(){"day"===h&&g(s(l(D,1),w)),"week"===h&&g(s(m(D,1),w))},icon:t}),e.createElement("div",{className:a(_.date_wrap,_[h])},e.createElement(j.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===h?s(D,x):s(D,x)+" - "+s(d(D,{days:6}),x))),e.createElement(f,{disabled:!F,onClick:function(){"day"===h&&g(s(d(D,{days:1}),w)),"week"===h&&g(s(d(D,{days:7}),w))},icon:o}),e.createElement(r,{disabled:N,onClick:function(){g(s(new Date,w))},view:"ghost"},E))};export{u as DateSwitcher};
@@ -1 +1 @@
1
- export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-f377912f.js";import"../ChevronForwardM-fd565dcb.js";import"classnames";import"../button/component.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-c0941e74.js";import"../index-d722f187.js";import"../index-cba7c765.js";import"../index-3c46eca4.js";import"../index-ccb5e023.js";import"../index-e4a9f5ac.js";import"../index-27ce9a2c.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-59cde9c2.js";import"../ChevronForwardM-73706f0a.js";import"classnames";import"../button/component.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-6cb23aa9.js";import"../index-f15bda1c.js";import"../index-c94d9c55.js";import"../index-23f26c42.js";import"../index-933bb8ff.js";import"../index-c34bdeba.js";import"../index-e5226de8.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-e8c381d5.js";import o from"react";import r from"classnames";import{Button as i}from"../button/component.js";import{Typography as m}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__X4Vyh",l="index-module_overlay__GChru",s="index-module_image__qJIV8",n="index-module_subtitle__wdNZJ",c="index-module_button__DZYz9",p=function(p){var d=p.code,u=p.image,v=p.overlay,y=p.title,_=p.subtitle,g=p.buttonText,x=p.view,b=void 0===x?"primary":x,h=p.size,f=void 0===h?"m":h,j=e(p,["code","image","overlay","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:r(a,v&&l)},u&&o.createElement("img",{alt:y,className:s,src:u}),d&&o.createElement(m.Title,{view:"xlarge",weight:"bold",color:"primary",tag:"div"},d),o.createElement(m.Title,{weight:"bold",color:"primary",tag:"div"},y),_&&o.createElement(m.Text,{color:"secondary",className:n,tag:"div"},_),(!!(null==j?void 0:j.onClick)||(null==j?void 0:j.href))&&o.createElement(i,t({className:c,view:b,size:f},j),g))};export{p as EmptyPage};
1
+ import{_ as e,a as t}from"../tslib.es6-1f7096d9.js";import o from"react";import r from"classnames";import{Button as i}from"../button/component.js";import{Typography as m}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";var l="index-module_wrapper__X4Vyh",a="index-module_overlay__GChru",s="index-module_image__qJIV8",n="index-module_subtitle__wdNZJ",p="index-module_button__DZYz9",d=function(d){var c=d.code,u=d.image,v=d.overlay,y=d.title,_=d.subtitle,g=d.buttonText,x=d.view,b=void 0===x?"primary":x,h=d.size,f=void 0===h?"m":h,j=e(d,["code","image","overlay","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:r(l,v&&a)},u&&o.createElement("img",{alt:y,className:s,src:u}),c&&o.createElement(m.Title,{view:"large",weight:"bold",color:"primary",tag:"div"},c),o.createElement(m.Title,{view:"small",weight:"bold",color:"primary",tag:"div"},y),_&&o.createElement(m.Text,{color:"secondary",className:n,tag:"div"},_),(!!(null==j?void 0:j.onClick)||(null==j?void 0:j.href))&&o.createElement(i,t({className:p,view:b,size:f},j),g))};export{d as EmptyPage};
@@ -1 +1 @@
1
- export{EmptyPage}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{EmptyPage}from"./component.js";import"../tslib.es6-1f7096d9.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-e8c381d5.js";import t from"react";import{F as a,Y as r,I as n,A as m,G as o}from"../YoutubeM-8edd8555.js";import{Grid as l}from"../grid/component.js";import{IconButton as c}from"../icon-button/component.js";import{SectionWrapper as s}from"../section-wrapper/component.js";import{s as i,C as p}from"../contact-block-7b78b706.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-c6b42a55.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var d=function(d){var u=d.sections,E=void 0===u?[]:u,b=d.contacts,f=void 0===b?[]:b,k=d.company,v=d.email,j=d.address,N=d.facebookLink,g=d.instagramLink,h=d.youtubeLink,x=d.appText,w=d.google,y=d.appstore,F=N||g||h,B=x&&y&&w;return t.createElement(s,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:i.wrapper},t.createElement("div",{className:i.row_wrapper},t.createElement(l.Row,null,t.createElement(t.Fragment,null,E.map((function(e){return t.createElement(l.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:i.block},t.createElement("span",{className:i.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:i.link,href:e.link},e.text)}))))})),t.createElement(l.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:i.contacts},f.map((function(e){return t.createElement(p,{key:e.title,title:e.title,value:e.value})})),v&&t.createElement("div",{className:i.email},v),t.createElement("br",null),j&&t.createElement("div",{className:i.text},j),t.createElement("br",null),k&&t.createElement("div",{className:i.text},k),t.createElement("br",null),F&&t.createElement("div",{className:i.buttons},N&&t.createElement(c,e({},{href:N},{icon:a})),h&&t.createElement(c,e({},{href:h},{icon:r})),g&&t.createElement(c,e({},{href:g},{icon:n}))))))))),t.createElement("div",{className:i.bottomBlock},B&&t.createElement(t.Fragment,null,t.createElement("div",{className:i.text},x),t.createElement("div",{className:i.buttons},y&&t.createElement(c,e({},{href:y},{icon:m})),w&&t.createElement(c,e({},{href:w},{icon:o}))))))};export{d as Footer};
1
+ import{a as e}from"../tslib.es6-1f7096d9.js";import t from"react";import{F as a,Y as r,I as n,A as m,G as o}from"../YoutubeM-78ed204e.js";import{Grid as l}from"../grid/component.js";import{IconButton as c}from"../icon-button/component.js";import{SectionWrapper as s}from"../section-wrapper/component.js";import{s as i,C as p}from"../contact-block-45af69f4.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-2f40e187.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var d=function(d){var u=d.sections,E=void 0===u?[]:u,f=d.contacts,b=void 0===f?[]:f,k=d.company,v=d.email,j=d.address,N=d.facebookLink,g=d.instagramLink,h=d.youtubeLink,x=d.appText,w=d.google,y=d.appstore,F=N||g||h,B=x&&y&&w;return t.createElement(s,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:i.wrapper},t.createElement("div",{className:i.row_wrapper},t.createElement(l.Row,null,t.createElement(t.Fragment,null,E.map((function(e){return t.createElement(l.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:i.block},t.createElement("span",{className:i.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:i.link,href:e.link},e.text)}))))})),t.createElement(l.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:i.contacts},b.map((function(e){return t.createElement(p,{key:e.title,title:e.title,value:e.value})})),v&&t.createElement("div",{className:i.email},v),t.createElement("br",null),j&&t.createElement("div",{className:i.text},j),t.createElement("br",null),k&&t.createElement("div",{className:i.text},k),t.createElement("br",null),F&&t.createElement("div",{className:i.buttons},N&&t.createElement(c,e({},{href:N},{icon:a})),h&&t.createElement(c,e({},{href:h},{icon:r})),g&&t.createElement(c,e({},{href:g},{icon:n}))))))))),t.createElement("div",{className:i.bottomBlock},B&&t.createElement(t.Fragment,null,t.createElement("div",{className:i.text},x),t.createElement("div",{className:i.buttons},y&&t.createElement(c,e({},{href:y},{icon:m})),w&&t.createElement(c,e({},{href:w},{icon:o}))))))};export{d as Footer};
@@ -1 +1 @@
1
- import"react";export{C as ContactBlock}from"../contact-block-7b78b706.js";
1
+ import"react";export{C as ContactBlock}from"../contact-block-45af69f4.js";
@@ -1 +1 @@
1
- export{Footer}from"./component.js";import"../tslib.es6-e8c381d5.js";import"react";import"../YoutubeM-8edd8555.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-c6b42a55.js";import"../grid/row/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../section-wrapper/component.js";import"../contact-block-7b78b706.js";
1
+ export{Footer}from"./component.js";import"../tslib.es6-1f7096d9.js";import"react";import"../YoutubeM-78ed204e.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-2f40e187.js";import"../grid/row/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../section-wrapper/component.js";import"../contact-block-45af69f4.js";
@@ -1 +1 @@
1
- import o from"react";import{Button as e}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as r}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as m,showError as i}from"../utils/show-toast/index.js";import{RestForm as s}from"./templates/rest-form/index.js";import"../tslib.es6-e8c381d5.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../modal/components/modals/index.js";import"../modal/components/modals/modal.js";import"../CloseM-f800d8c8.js";import"../modal/hooks/use-modal.js";import"uuid";import"../modal/utils/delete-property-by-id.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-4df7d377.js";import"../ClockCircleM-8d45840a.js";import"../CloseS-e501137c.js";import"../toast-notifier/use-timer.js";import"../index-1256325b.js";import"../index-2d267dff.js";import"../_commonjsHelpers-ff1e5e50.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./templates/rest-form/form.js";import"../back-button/component.js";import"../ActionCopyM-6281efb7.js";import"../YoutubeM-8edd8555.js";import"../CancelM-8b7837fa.js";import"../MinusM-6c2efbfe.js";import"../ChevronBackM-f377912f.js";import"../ChevronBackS-f1a96775.js";import"../ChevronDownS-28945d3b.js";import"../ChevronForwardM-fd565dcb.js";import"../ChevronForwardS-2bfdd927.js";import"../ControllerS-194d86d5.js";import"../EditS-d015da1b.js";import"../TrashM-cfb86ef5.js";import"../MoverS-27bb6134.js";import"../NextS-00c07aa8.js";import"../PhotoS-7a7ca986.js";import"../PlusS-5223b9b5.js";import"../SearchM-50fd8177.js";import"../image/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-9a1618b8.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../icon-button/component.js";import"../sidepanel-header/component.js";import"./components/form-footer/index.js";import"./components/form-updating/index.js";var a={baz:"",bar:""},p={buz:"",bur:""},u=function(e){var n=o.useState(!0),a=n[0],u=n[1],c=o.useState(!1),l=c[0],d=c[1],f=o.useState(!1),j=f[0],b=f[1];o.useEffect((function(){setTimeout((function(){return u(!1)}),500)}),[]);return o.createElement(s,{recordId:827368276387,initialValues:p,customValidationFields:["bur"],save:function(){return new Promise((function(o){d(!0),setTimeout((function(){o(),d(!1),m("","Saved")}),3e3)}))},remove:function(){return new Promise((function(o){b(!0),setTimeout((function(){o(),b(!1),i("Some error from server","Error")}),3e3)}))},title:"custom title other",loading:a,submitButtonText:"submit",updating:l,removing:j,close:null==e?void 0:e.close,t:function(o){return o}},(function(e){var n=e.values,m=e.touched,i=e.errors,s=e.handleChange;return o.createElement(t,{columns:1,gr:16,gc:0},o.createElement(r,{label:"buz",value:n.buz,onChange:s("buz"),error:m.buz&&i.buz}),o.createElement(r,{label:"bur",value:n.bur,onChange:s("bur"),error:m.bur&&i.bur}))}))},c=function(p){var c=o.useState(!0),l=c[0],d=c[1],f=o.useState(!1),j=f[0],b=f[1],v=o.useState(!1),h=v[0],g=v[1],C=(0,o.useContext(n).openModal)(u);o.useEffect((function(){setTimeout((function(){return d(!1)}),500)}),[]);return o.createElement(s,{recordId:8273682763,initialValues:a,customValidationFields:["bar"],save:function(){return new Promise((function(o){b(!0),setTimeout((function(){o(),b(!1),m("","Saved")}),3e3)}))},remove:function(){return new Promise((function(o){g(!0),setTimeout((function(){o(),g(!1),i("Some error from server","Error")}),3e3)}))},title:"Настройки",loading:l,submitButtonText:"csdcds",updating:j,removing:h,close:null==p?void 0:p.close,t:function(o){return o}},(function(n){var m=n.values,i=n.touched,s=n.errors,a=n.handleChange;return o.createElement(t,{columns:1,gr:16,gc:0},o.createElement(r,{label:"baz",value:m.baz,onChange:a("baz"),error:i.baz&&s.baz}),o.createElement(r,{label:"bar",value:m.bar,onChange:a("bar"),error:i.bar&&s.bar}),o.createElement(e,{onClick:C},"openCrudModalOther"))}))},l=function(){var t=(0,o.useContext(n).openModal)(c);return o.createElement(o.Fragment,null,o.createElement(e,{onClick:t},"open crud modal"))};export{l as Component};
1
+ import o from"react";import{Button as e}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as r}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as m,showError as i}from"../utils/show-toast/index.js";import{RestForm as s}from"./templates/rest-form/index.js";import"../tslib.es6-1f7096d9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../modal/components/modals/index.js";import"../modal/components/modals/modal.js";import"../CloseM-6e97ffda.js";import"../modal/hooks/use-modal.js";import"uuid";import"../modal/utils/delete-property-by-id.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-3ded194f.js";import"../ClockCircleM-6a4298cd.js";import"../CloseS-60ab9198.js";import"../toast-notifier/use-timer.js";import"../index-c7c0bb93.js";import"../index-05631003.js";import"../_commonjsHelpers-f3b56e29.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./templates/rest-form/form.js";import"../back-button/component.js";import"../ActionCopyM-2d960936.js";import"../YoutubeM-78ed204e.js";import"../CancelM-938a9d41.js";import"../MinusM-30fb1b85.js";import"../ChevronBackM-59cde9c2.js";import"../ChevronBackS-aa5c337b.js";import"../ChevronDownS-1fae53bb.js";import"../ChevronForwardM-73706f0a.js";import"../ChevronForwardS-40f3f4e9.js";import"../ControllerS-2e26c54c.js";import"../EditS-afa2c456.js";import"../TrashM-d7909c17.js";import"../MoverS-13cf902a.js";import"../NextS-87837351.js";import"../PhotoS-31c33dee.js";import"../PlusS-47433dfe.js";import"../SearchM-d19f3418.js";import"../image/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-a26c6e03.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../icon-button/component.js";import"../sidepanel-header/component.js";import"./components/form-footer/index.js";import"./components/form-updating/index.js";var a={baz:"",bar:""},p={buz:"",bur:""},u=function(e){var n=o.useState(!0),a=n[0],u=n[1],c=o.useState(!1),l=c[0],d=c[1],f=o.useState(!1),j=f[0],b=f[1];o.useEffect((function(){setTimeout((function(){return u(!1)}),500)}),[]);return o.createElement(s,{recordId:827368276387,initialValues:p,customValidationFields:["bur"],save:function(){return new Promise((function(o){d(!0),setTimeout((function(){o(),d(!1),m("","Saved")}),3e3)}))},remove:function(){return new Promise((function(o){b(!0),setTimeout((function(){o(),b(!1),i("Some error from server","Error")}),3e3)}))},title:"custom title other",loading:a,submitButtonText:"submit",updating:l,removing:j,close:null==e?void 0:e.close,t:function(o){return o}},(function(e){var n=e.values,m=e.touched,i=e.errors,s=e.handleChange;return o.createElement(t,{columns:1,gr:16,gc:0},o.createElement(r,{label:"buz",value:n.buz,onChange:s("buz"),error:m.buz&&i.buz}),o.createElement(r,{label:"bur",value:n.bur,onChange:s("bur"),error:m.bur&&i.bur}))}))},c=function(p){var c=o.useState(!0),l=c[0],d=c[1],f=o.useState(!1),j=f[0],b=f[1],v=o.useState(!1),h=v[0],g=v[1],C=(0,o.useContext(n).openModal)(u);o.useEffect((function(){setTimeout((function(){return d(!1)}),500)}),[]);return o.createElement(s,{recordId:8273682763,initialValues:a,customValidationFields:["bar"],save:function(){return new Promise((function(o){b(!0),setTimeout((function(){o(),b(!1),m("","Saved")}),3e3)}))},remove:function(){return new Promise((function(o){g(!0),setTimeout((function(){o(),g(!1),i("Some error from server","Error")}),3e3)}))},title:"Настройки",loading:l,submitButtonText:"csdcds",updating:j,removing:h,close:null==p?void 0:p.close,t:function(o){return o}},(function(n){var m=n.values,i=n.touched,s=n.errors,a=n.handleChange;return o.createElement(t,{columns:1,gr:16,gc:0},o.createElement(r,{label:"baz",value:m.baz,onChange:a("baz"),error:i.baz&&s.baz}),o.createElement(r,{label:"bar",value:m.bar,onChange:a("bar"),error:i.bar&&s.bar}),o.createElement(e,{onClick:C},"openCrudModalOther"))}))},l=function(){var t=(0,o.useContext(n).openModal)(c);return o.createElement(o.Fragment,null,o.createElement(e,{onClick:t},"open crud modal"))};export{l as Component};
@@ -1 +1 @@
1
- import e,{useRef as t,useEffect as o}from"react";import{Button as n}from"../../../button/component.js";import"../../../tslib.es6-e8c381d5.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r="index-module_component__ijVOx",i=function(i){var s=i.submitButtonText,a=void 0===s?"save":s,c=i.customFooter,l=i.submit,m=i.close,d=i.children,u=i.loading,p=i.disabled,v=i.t,b=t(null);return o((function(){var e;null===(e=null==b?void 0:b.current)||void 0===e||e.focus()}),[b]),e.createElement("div",{className:r},c||e.createElement(e.Fragment,null,e.createElement(n,{view:"primary",size:"s",block:!0,loading:u,disabled:p,dataTestId:"buttonSave",onClick:function(){return l()},ref:b},v(a)),e.createElement(n,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:m},v("cancel")),d))};export{i as FormFooter};
1
+ import e,{useRef as t,useEffect as o}from"react";import{Button as n}from"../../../button/component.js";import"../../../tslib.es6-1f7096d9.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r="index-module_component__ijVOx",i=function(i){var s=i.submitButtonText,a=void 0===s?"save":s,l=i.customFooter,c=i.submit,m=i.close,d=i.children,u=i.loading,p=i.disabled,v=i.t,b=t(null);return o((function(){var e;null===(e=null==b?void 0:b.current)||void 0===e||e.focus()}),[b]),e.createElement("div",{className:r},l||e.createElement(e.Fragment,null,e.createElement(n,{view:"primary",size:"s",block:!0,loading:u,disabled:p,dataTestId:"buttonSave",onClick:function(){return c()},ref:b},v(a)),e.createElement(n,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:m},v("cancel")),d))};export{i as FormFooter};
@@ -1 +1 @@
1
- import e from"react";import{FlexColumns as t}from"../../../flex-columns/component.js";import{Skeleton as l}from"../../../skeleton/component.js";import{FormOuter as m}from"../form-outer/index.js";import{a as s}from"../../../index-1256325b.js";import"classnames";import"../../../index-2d267dff.js";import"../../../_commonjsHelpers-ff1e5e50.js";var n="index-module_header__UtYpF",a="index-module_title__mrNu8",i="index-module_addon__-bw-y",r="index-module_input__MEN8P",o="index-module_buttons__PtGvG",c="index-module_button__hWCWD",d=function(){return e.createElement(t,{columns:1,gr:16},e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}))},u=function(){return e.createElement(m,null,e.createElement("div",{className:n},e.createElement(l,{visible:!0,className:a}),e.createElement(l,{visible:!0,className:i})),e.createElement(s,null,e.createElement(d,null)),e.createElement("div",{className:o},e.createElement(l,{visible:!0,className:c}),e.createElement(l,{visible:!0,className:c})))};export{u as FormLoading,d as FormLoadingCompact};
1
+ import e from"react";import{FlexColumns as t}from"../../../flex-columns/component.js";import{Skeleton as l}from"../../../skeleton/component.js";import{FormOuter as m}from"../form-outer/index.js";import{a as s}from"../../../index-c7c0bb93.js";import"classnames";import"../../../index-05631003.js";import"../../../_commonjsHelpers-f3b56e29.js";var n="index-module_header__UtYpF",a="index-module_title__mrNu8",i="index-module_addon__-bw-y",r="index-module_input__MEN8P",c="index-module_buttons__PtGvG",o="index-module_button__hWCWD",d=function(){return e.createElement(t,{columns:1,gr:16},e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}))},u=function(){return e.createElement(m,null,e.createElement("div",{className:n},e.createElement(l,{visible:!0,className:a}),e.createElement(l,{visible:!0,className:i})),e.createElement(s,null,e.createElement(d,null)),e.createElement("div",{className:c},e.createElement(l,{visible:!0,className:o}),e.createElement(l,{visible:!0,className:o})))};export{u as FormLoading,d as FormLoadingCompact};
@@ -1 +1 @@
1
- import"react";export{a as FormWrapper}from"../../../index-1256325b.js";import"../../../index-2d267dff.js";import"../../../_commonjsHelpers-ff1e5e50.js";
1
+ import"react";export{a as FormWrapper}from"../../../index-c7c0bb93.js";import"../../../index-05631003.js";import"../../../_commonjsHelpers-f3b56e29.js";
@@ -1,7 +1,7 @@
1
1
  import { FormFooter } from "./form-footer/index";
2
2
  import { FormLoading } from "./form-loading/index";
3
3
  import { FormUpdating } from "./form-updating/index";
4
- import { FormWrapper } from "../../index-1256325b";
4
+ import { FormWrapper } from "../../index-c7c0bb93";
5
5
  type FormProps = {
6
6
  Footer: typeof FormFooter;
7
7
  Wrapper: typeof FormWrapper;
@@ -1 +1 @@
1
- import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as e}from"./form-updating/index.js";import{a as m}from"../../index-1256325b.js";import"react";import"../../button/component.js";import"../../tslib.es6-e8c381d5.js";import"react-merge-refs";import"classnames";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../flex-columns/component.js";import"../../skeleton/component.js";import"./form-outer/index.js";import"../../index-2d267dff.js";import"../../_commonjsHelpers-ff1e5e50.js";var t={Footer:o,Wrapper:m,Updating:e,Loading:r};export{t as Form};
1
+ import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as m}from"./form-updating/index.js";import{a as t}from"../../index-c7c0bb93.js";import"react";import"../../button/component.js";import"../../tslib.es6-1f7096d9.js";import"react-merge-refs";import"classnames";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../flex-columns/component.js";import"../../skeleton/component.js";import"./form-outer/index.js";import"../../index-05631003.js";import"../../_commonjsHelpers-f3b56e29.js";var e={Footer:o,Wrapper:t,Updating:m,Loading:r};export{e as Form};
@@ -1 +1 @@
1
- export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"../index-1256325b.js";import"../index-2d267dff.js";import"../_commonjsHelpers-ff1e5e50.js";import"../sidepanel-header/component.js";import"classnames";import"../back-button/component.js";import"../ActionCopyM-6281efb7.js";import"../CheckmarkCircleM-4df7d377.js";import"../YoutubeM-8edd8555.js";import"../CancelM-8b7837fa.js";import"../MinusM-6c2efbfe.js";import"../ChevronBackM-f377912f.js";import"../ChevronBackS-f1a96775.js";import"../ChevronDownS-28945d3b.js";import"../ChevronForwardM-fd565dcb.js";import"../ChevronForwardS-2bfdd927.js";import"../ClockCircleM-8d45840a.js";import"../CloseM-f800d8c8.js";import"../CloseS-e501137c.js";import"../ControllerS-194d86d5.js";import"../EditS-d015da1b.js";import"../TrashM-cfb86ef5.js";import"../MoverS-27bb6134.js";import"../NextS-00c07aa8.js";import"../PhotoS-7a7ca986.js";import"../PlusS-5223b9b5.js";import"../SearchM-50fd8177.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-4cf3dce4.js";import"../typography/title/index.js";import"../tslib.es6-e8c381d5.js";import"../typography/title/component.js";import"../use-image-render-component-9a1618b8.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/form-footer/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./components/form-outer/index.js";import"./utils/get-default-values.js";import"./components/form-loading/index.js";import"../flex-columns/component.js";import"./components/form-updating/index.js";
1
+ export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"../index-c7c0bb93.js";import"../index-05631003.js";import"../_commonjsHelpers-f3b56e29.js";import"../sidepanel-header/component.js";import"classnames";import"../back-button/component.js";import"../ActionCopyM-2d960936.js";import"../CheckmarkCircleM-3ded194f.js";import"../YoutubeM-78ed204e.js";import"../CancelM-938a9d41.js";import"../MinusM-30fb1b85.js";import"../ChevronBackM-59cde9c2.js";import"../ChevronBackS-aa5c337b.js";import"../ChevronDownS-1fae53bb.js";import"../ChevronForwardM-73706f0a.js";import"../ChevronForwardS-40f3f4e9.js";import"../ClockCircleM-6a4298cd.js";import"../CloseM-6e97ffda.js";import"../CloseS-60ab9198.js";import"../ControllerS-2e26c54c.js";import"../EditS-afa2c456.js";import"../TrashM-d7909c17.js";import"../MoverS-13cf902a.js";import"../NextS-87837351.js";import"../PhotoS-31c33dee.js";import"../PlusS-47433dfe.js";import"../SearchM-d19f3418.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9479b34d.js";import"../typography/title/index.js";import"../tslib.es6-1f7096d9.js";import"../typography/title/component.js";import"../use-image-render-component-a26c6e03.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/form-footer/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./components/form-outer/index.js";import"./utils/get-default-values.js";import"./components/form-loading/index.js";import"../flex-columns/component.js";import"./components/form-updating/index.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-e8c381d5.js";import i from"react";import{F as t}from"../../../index-1256325b.js";import{FormLoadingCompact as n}from"../../components/form-loading/index.js";import"../../../index-2d267dff.js";import"../../../_commonjsHelpers-ff1e5e50.js";import"../../../flex-columns/component.js";import"classnames";import"../../../skeleton/component.js";import"../../components/form-outer/index.js";function o(o){var r=o.loading,a=o.validate,m=o.customValidationFields,s=o.initialValues,l=o.enableReinitialize,c=o.save,d=o.children,u=o.t;if(r)return i.createElement(n,null);var f,p,j;return i.createElement(t,{validate:(f=a,p=m,f||(p?(j=p,function(e){return j.reduce((function(i,t){return("object"==typeof e?e:{})[t]||(i[t]=u("validationErrors:Required")),i}),{})}):void 0)),initialValues:s,enableReinitialize:l,onSubmit:c},(function(i){return d(e({},i))}))}export{o as BaseForm};
1
+ import{a as e}from"../../../tslib.es6-1f7096d9.js";import i from"react";import{F as t}from"../../../index-c7c0bb93.js";import{FormLoadingCompact as n}from"../../components/form-loading/index.js";import"../../../index-05631003.js";import"../../../_commonjsHelpers-f3b56e29.js";import"../../../flex-columns/component.js";import"classnames";import"../../../skeleton/component.js";import"../../components/form-outer/index.js";function o(o){var r=o.loading,a=o.validate,m=o.customValidationFields,s=o.initialValues,l=o.enableReinitialize,c=o.save,u=o.children,p=o.t;if(r)return i.createElement(n,null);var d,f,j;return i.createElement(t,{validate:(d=a,f=m,d||(f?(j=f,function(e){return j.reduce((function(i,t){return("object"==typeof e?e:{})[t]||(i[t]=p("validationErrors:Required")),i}),{})}):void 0)),initialValues:s,enableReinitialize:l,onSubmit:c},(function(i){return u(e({},i))}))}export{o as BaseForm};
@@ -1 +1 @@
1
- import o from"react";import{F as t,a as e}from"../../../index-1256325b.js";import{SidepanelHeader as r}from"../../../sidepanel-header/component.js";import{FormFooter as m}from"../../components/form-footer/index.js";import{FormOuter as i}from"../../components/form-outer/index.js";import{getDefaultValues as s}from"../../utils/get-default-values.js";import"../../../index-2d267dff.js";import"../../../_commonjsHelpers-ff1e5e50.js";import"classnames";import"../../../back-button/component.js";import"../../../ActionCopyM-6281efb7.js";import"../../../CheckmarkCircleM-4df7d377.js";import"../../../YoutubeM-8edd8555.js";import"../../../CancelM-8b7837fa.js";import"../../../MinusM-6c2efbfe.js";import"../../../ChevronBackM-f377912f.js";import"../../../ChevronBackS-f1a96775.js";import"../../../ChevronDownS-28945d3b.js";import"../../../ChevronForwardM-fd565dcb.js";import"../../../ChevronForwardS-2bfdd927.js";import"../../../ClockCircleM-8d45840a.js";import"../../../CloseM-f800d8c8.js";import"../../../CloseS-e501137c.js";import"../../../ControllerS-194d86d5.js";import"../../../EditS-d015da1b.js";import"../../../TrashM-cfb86ef5.js";import"../../../MoverS-27bb6134.js";import"../../../NextS-00c07aa8.js";import"../../../PhotoS-7a7ca986.js";import"../../../PlusS-5223b9b5.js";import"../../../SearchM-50fd8177.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-4cf3dce4.js";import"../../../typography/title/index.js";import"../../../tslib.es6-e8c381d5.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-9a1618b8.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var p=function(p){var n=p.initialValues,a=p.defaultValues,c=p.children,l=p.submitCallback,j=p.close,d=p.t,f=s(n,a);return o.createElement(t,{initialValues:f,onSubmit:function(o){l(o),j()}},(function(t){return o.createElement(i,null,o.createElement(r,{t:d,title:d("filters"),border:!1}),o.createElement(e,null,c(t)),o.createElement(m,{t:d,submit:t.handleSubmit,close:j}))}))};export{p as FiltersForm};
1
+ import o from"react";import{F as t,a as e}from"../../../index-c7c0bb93.js";import{SidepanelHeader as r}from"../../../sidepanel-header/component.js";import{FormFooter as m}from"../../components/form-footer/index.js";import{FormOuter as i}from"../../components/form-outer/index.js";import{getDefaultValues as s}from"../../utils/get-default-values.js";import"../../../index-05631003.js";import"../../../_commonjsHelpers-f3b56e29.js";import"classnames";import"../../../back-button/component.js";import"../../../ActionCopyM-2d960936.js";import"../../../CheckmarkCircleM-3ded194f.js";import"../../../YoutubeM-78ed204e.js";import"../../../CancelM-938a9d41.js";import"../../../MinusM-30fb1b85.js";import"../../../ChevronBackM-59cde9c2.js";import"../../../ChevronBackS-aa5c337b.js";import"../../../ChevronDownS-1fae53bb.js";import"../../../ChevronForwardM-73706f0a.js";import"../../../ChevronForwardS-40f3f4e9.js";import"../../../ClockCircleM-6a4298cd.js";import"../../../CloseM-6e97ffda.js";import"../../../CloseS-60ab9198.js";import"../../../ControllerS-2e26c54c.js";import"../../../EditS-afa2c456.js";import"../../../TrashM-d7909c17.js";import"../../../MoverS-13cf902a.js";import"../../../NextS-87837351.js";import"../../../PhotoS-31c33dee.js";import"../../../PlusS-47433dfe.js";import"../../../SearchM-d19f3418.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-9479b34d.js";import"../../../typography/title/index.js";import"../../../tslib.es6-1f7096d9.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-a26c6e03.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var p=function(p){var n=p.initialValues,a=p.defaultValues,c=p.children,l=p.submitCallback,j=p.close,d=p.t,f=s(n,a);return o.createElement(t,{initialValues:f,onSubmit:function(o){l(o),j()}},(function(t){return o.createElement(i,null,o.createElement(r,{t:d,title:d("filters"),border:!1}),o.createElement(e,null,c(t)),o.createElement(m,{t:d,submit:t.handleSubmit,close:j}))}))};export{p as FiltersForm};