@alphakits/ui 1.22.13 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/dist/ActionCopyM-4612ae55.js +1 -0
  2. package/dist/ChevronBackM-e08196fc.js +1 -0
  3. package/dist/ChevronDownS-3c2a8cb9.js +1 -0
  4. package/dist/ChevronForwardS-be7c5619.js +1 -0
  5. package/dist/CloseS-8fccfe57.js +1 -0
  6. package/dist/NextS-6adf289c.js +1 -0
  7. package/dist/PlusS-e193bd6f.js +1 -0
  8. package/dist/SearchM-1bdcfc0d.js +1 -0
  9. package/dist/TrashM-f7dd4b23.js +1 -0
  10. package/dist/_tslib-531dfe1b-379f2f77.js +1 -0
  11. package/dist/amount/component.js +1 -1
  12. package/dist/amount/index.js +1 -1
  13. package/dist/amount-input/component.js +1 -1
  14. package/dist/amount-input/index.js +1 -1
  15. package/dist/avatar/component.js +1 -1
  16. package/dist/avatar/index.js +1 -1
  17. package/dist/base-card/component.js +1 -1
  18. package/dist/base-card/index.js +1 -1
  19. package/dist/bottom-sheet/component.js +10 -2
  20. package/dist/bottom-sheet/index.js +1 -1
  21. package/dist/button/component.js +1 -1
  22. package/dist/button/index.js +1 -1
  23. package/dist/calendar/component.js +1 -1
  24. package/dist/calendar/components/days-table/component.d.ts +0 -1
  25. package/dist/calendar/components/days-table/component.js +1 -1
  26. package/dist/calendar/components/days-table/index.js +1 -1
  27. package/dist/calendar/components/header/index.js +1 -1
  28. package/dist/calendar/components/header//321/201omponent.js +1 -1
  29. package/dist/calendar/components/months-table/index.js +1 -1
  30. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  31. package/dist/calendar/components/select-button/index.js +1 -1
  32. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  33. package/dist/calendar/components/years-table/index.js +1 -1
  34. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  35. package/dist/calendar/index.js +1 -1
  36. package/dist/calendar/use-calendar.js +1 -1
  37. package/dist/calendar/use-period.js +1 -1
  38. package/dist/calendar/utils.d.ts +0 -1
  39. package/dist/calendar/utils.js +1 -1
  40. package/dist/calendar-input/component.d.ts +2 -2
  41. package/dist/calendar-input/component.js +1 -1
  42. package/dist/calendar-input/index.js +1 -1
  43. package/dist/calendar-input/utils.js +1 -1
  44. package/dist/card/component.js +1 -1
  45. package/dist/card/images/index.js +1 -1
  46. package/dist/card/index.js +1 -1
  47. package/dist/cell/base/component.js +1 -1
  48. package/dist/cell/base/index.d.ts +1 -1
  49. package/dist/cell/base/index.js +1 -1
  50. package/dist/cell/component.js +1 -1
  51. package/dist/cell/index.js +1 -1
  52. package/dist/cell/pure/component.js +1 -1
  53. package/dist/cell/pure/index.js +1 -1
  54. package/dist/checkbox/component.js +1 -1
  55. package/dist/checkbox/index.js +1 -1
  56. package/dist/checkbox-group/component.js +1 -1
  57. package/dist/checkbox-group/index.js +1 -1
  58. package/dist/checkbox-lists/component.js +1 -1
  59. package/dist/checkbox-lists/index.js +1 -1
  60. package/dist/collapsable-row/addons.js +1 -1
  61. package/dist/collapsable-row/component.js +1 -1
  62. package/dist/collapsable-row/index.js +1 -1
  63. package/dist/collapse/component.js +1 -1
  64. package/dist/collapse/index.js +1 -1
  65. package/dist/component-4d0a0294.js +1 -0
  66. package/dist/copy-button/component.js +1 -1
  67. package/dist/copy-button/index.js +1 -1
  68. package/dist/date/component.js +1 -1
  69. package/dist/date/index.js +1 -1
  70. package/dist/date-functions.d.ts +41 -0
  71. package/dist/date-functions.js +1 -0
  72. package/dist/date-switcher/component.d.ts +1 -1
  73. package/dist/date-switcher/component.js +1 -1
  74. package/dist/date-switcher/index.js +1 -1
  75. package/dist/flex-columns/component.d.ts +1 -1
  76. package/dist/flex-columns/component.js +1 -1
  77. package/dist/footer/component.js +1 -1
  78. package/dist/footer/contact-block.js +1 -1
  79. package/dist/footer/index.js +1 -1
  80. package/dist/form/component.js +1 -1
  81. package/dist/form/components/form-footer/index.js +1 -1
  82. package/dist/form/components/form-loading/index.js +1 -1
  83. package/dist/form/components/form-wrapper/index.d.ts +7 -0
  84. package/dist/form/components/form-wrapper/index.js +1 -1
  85. package/dist/form/components/index.d.ts +1 -1
  86. package/dist/form/components/index.js +1 -1
  87. package/dist/form/index.js +1 -1
  88. package/dist/form/templates/filters-form/index.d.ts +1 -1
  89. package/dist/form/templates/filters-form/index.js +1 -1
  90. package/dist/form/templates/rest-form/form.d.ts +1 -1
  91. package/dist/form/templates/rest-form/form.js +1 -1
  92. package/dist/form/templates/rest-form/index.d.ts +1 -1
  93. package/dist/form/templates/rest-form/index.js +1 -1
  94. package/dist/form/utils/get-default-values.js +1 -1
  95. package/dist/form-control/component.js +1 -1
  96. package/dist/form-control/index.js +1 -1
  97. package/dist/grid/col/component.js +1 -1
  98. package/dist/grid/col/index.js +1 -1
  99. package/dist/grid/component.js +1 -1
  100. package/dist/grid/index.js +1 -1
  101. package/dist/grid/row/component.js +1 -1
  102. package/dist/grid/row/index.js +1 -1
  103. package/dist/header-search/component.js +1 -1
  104. package/dist/header-search/index.js +1 -1
  105. package/dist/heading/component.js +1 -1
  106. package/dist/heading/index.js +1 -1
  107. package/dist/hooks/index.js +1 -1
  108. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  109. package/dist/hooks/use-get-one/index.js +1 -1
  110. package/dist/icon-button/component.js +1 -1
  111. package/dist/icon-button/index.js +1 -1
  112. package/dist/image/component.js +1 -1
  113. package/dist/image/constants.js +1 -1
  114. package/dist/image/image-base.js +1 -1
  115. package/dist/image/index.js +1 -1
  116. package/dist/image/use-image-render-component.js +1 -1
  117. package/dist/image/utils.js +1 -1
  118. package/dist/image-gallery/component.js +1 -1
  119. package/dist/image-gallery/components/header/index.js +1 -1
  120. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  121. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  122. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  123. package/dist/image-gallery/components/index.js +1 -1
  124. package/dist/image-gallery/index.js +1 -1
  125. package/dist/image-uploader/component.js +1 -1
  126. package/dist/image-uploader/index.js +1 -1
  127. package/dist/index-27298e4e.js +1 -0
  128. package/dist/index-2e98adce.js +1 -0
  129. package/dist/index-39871cd2.js +1 -0
  130. package/dist/index-3ff95ce5.js +1 -0
  131. package/dist/index-478e7023.js +1 -0
  132. package/dist/index-5639a451.js +1 -0
  133. package/dist/index-5a1575b3.js +1 -0
  134. package/dist/index-5b6847a7.js +1 -0
  135. package/dist/index-6e902d9b.js +1 -0
  136. package/dist/index-704ecb28.js +1 -0
  137. package/dist/index-7f3b247f.js +1 -0
  138. package/dist/index-87e96bc0.js +1 -0
  139. package/dist/index-917c6b56.js +1 -0
  140. package/dist/index-a669b543.js +1 -0
  141. package/dist/index-c2fe189e.js +1 -0
  142. package/dist/index-c702bc3b.js +1 -0
  143. package/dist/index.css +1 -1
  144. package/dist/info-block-header/component.js +1 -1
  145. package/dist/info-block-header/index.js +1 -1
  146. package/dist/info-block-item/component.js +1 -1
  147. package/dist/info-block-item/index.js +1 -1
  148. package/dist/input/component.js +1 -1
  149. package/dist/input/index.js +1 -1
  150. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  151. package/dist/input-autocomplete/component.js +1 -1
  152. package/dist/input-autocomplete/index.js +1 -1
  153. package/dist/input-ghost/component.js +1 -1
  154. package/dist/input-ghost/index.js +1 -1
  155. package/dist/link/component.js +1 -1
  156. package/dist/link/index.js +1 -1
  157. package/dist/list-allert/component.js +1 -1
  158. package/dist/list-allert/index.js +1 -1
  159. package/dist/masked-input/component.js +1 -1
  160. package/dist/masked-input/index.js +1 -1
  161. package/dist/menu/component.js +1 -1
  162. package/dist/menu/components/content-header/index.js +1 -1
  163. package/dist/menu/components/index.js +1 -1
  164. package/dist/menu/components/menu-avatar/index.js +1 -1
  165. package/dist/menu/components/menu-back-button/index.js +1 -1
  166. package/dist/menu/components/menu-button/index.js +1 -1
  167. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  168. package/dist/menu/components/user-button/index.js +1 -1
  169. package/dist/menu/index.js +1 -1
  170. package/dist/message/component.js +1 -1
  171. package/dist/message/index.js +1 -1
  172. package/dist/modal/components/modals/index.js +1 -1
  173. package/dist/modal/components/modals/modal.js +1 -1
  174. package/dist/modal/context.js +1 -1
  175. package/dist/modal/hooks/use-modal.js +1 -1
  176. package/dist/modal/index.js +1 -1
  177. package/dist/modal/utils/delete-property-by-id.js +1 -1
  178. package/dist/not-found/component.js +1 -1
  179. package/dist/not-found/index.js +1 -1
  180. package/dist/notification/component.js +1 -1
  181. package/dist/notification/index.js +1 -1
  182. package/dist/{parse-query-params-5fe6ffd9.js → parse-query-params-fad225de.js} +1 -1
  183. package/dist/picker-button/common/index.js +1 -1
  184. package/dist/picker-button/common/labeled-button/index.js +1 -1
  185. package/dist/picker-button/component.js +1 -1
  186. package/dist/picker-button/field/Component.js +1 -1
  187. package/dist/picker-button/field/index.js +1 -1
  188. package/dist/picker-button/index.js +1 -1
  189. package/dist/popover/component.js +1 -1
  190. package/dist/popover/index.js +1 -1
  191. package/dist/progress-bar/component.js +1 -1
  192. package/dist/progress-bar/index.js +1 -1
  193. package/dist/progress-index/component.js +1 -1
  194. package/dist/progress-index/index.js +1 -1
  195. package/dist/radio/component.js +1 -1
  196. package/dist/radio/index.js +1 -1
  197. package/dist/radio-group/component.js +1 -1
  198. package/dist/radio-group/index.js +1 -1
  199. package/dist/radio-groups/component.js +1 -1
  200. package/dist/radio-groups/index.js +1 -1
  201. package/dist/select/component.js +1 -1
  202. package/dist/select/components/base-select/component.js +1 -1
  203. package/dist/select/components/base-select/index.js +1 -1
  204. package/dist/select/components/field/component.js +1 -1
  205. package/dist/select/components/field/index.js +1 -1
  206. package/dist/select/components/index.js +1 -1
  207. package/dist/select/components/native-select/component.js +1 -1
  208. package/dist/select/components/native-select/index.js +1 -1
  209. package/dist/select/components/option/component.js +1 -1
  210. package/dist/select/components/option/index.js +1 -1
  211. package/dist/select/components/virtual-options-list/component.js +1 -1
  212. package/dist/select/components/virtual-options-list/index.js +1 -1
  213. package/dist/select/index.js +1 -1
  214. package/dist/select/presets/index.js +1 -1
  215. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  216. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  217. package/dist/sidepanel-header/component.js +1 -1
  218. package/dist/sidepanel-header/index.js +1 -1
  219. package/dist/space/Item.d.ts +1 -1
  220. package/dist/space/Item.js +1 -1
  221. package/dist/space/component.js +1 -1
  222. package/dist/space/index.js +1 -1
  223. package/dist/suffix-input/component.js +1 -1
  224. package/dist/suffix-input/index.js +1 -1
  225. package/dist/super-list-header/component.js +1 -1
  226. package/dist/super-list-header/index.js +1 -1
  227. package/dist/super-list-item/component.js +1 -1
  228. package/dist/super-list-item/index.js +1 -1
  229. package/dist/switch/component.js +1 -1
  230. package/dist/switch/index.js +1 -1
  231. package/dist/table/columns.js +1 -1
  232. package/dist/table/component.js +1 -1
  233. package/dist/table/components/cell/component.js +1 -1
  234. package/dist/table/components/cell/index.js +1 -1
  235. package/dist/table/components/cells/index.d.ts +1 -1
  236. package/dist/table/components/cells/index.js +1 -1
  237. package/dist/table/components/empty-list/index.js +1 -1
  238. package/dist/table/components/error/index.js +1 -1
  239. package/dist/table/components/loading/index.js +1 -1
  240. package/dist/table/components/pagination/index.js +1 -1
  241. package/dist/table/components/table-header/index.js +1 -1
  242. package/dist/table/hooks/use-table-data.js +1 -1
  243. package/dist/table/index.d.ts +1 -1
  244. package/dist/table/index.js +1 -1
  245. package/dist/table/table.js +1 -1
  246. package/dist/table/utils/add-query-param.js +1 -1
  247. package/dist/table/utils/get-query-from-url.js +1 -1
  248. package/dist/table/utils/index.d.ts +1 -1
  249. package/dist/table/utils/index.js +1 -1
  250. package/dist/table/utils/parse-query-params.js +1 -1
  251. package/dist/table/utils/prepare-rows.js +1 -1
  252. package/dist/table/utils/query-adapter.js +1 -1
  253. package/dist/table/utils/remove-query-param.js +1 -1
  254. package/dist/table/utils/reset-query-param.js +1 -1
  255. package/dist/table-status/component.js +1 -1
  256. package/dist/table-status/index.js +1 -1
  257. package/dist/tag/component.js +1 -1
  258. package/dist/tag/index.js +1 -1
  259. package/dist/tags-list/component.js +1 -1
  260. package/dist/tags-list/index.js +1 -1
  261. package/dist/tariff-builder/component.js +1 -1
  262. package/dist/tariff-builder/index.js +1 -1
  263. package/dist/textarea/component.js +1 -1
  264. package/dist/textarea/index.js +1 -1
  265. package/dist/toast/component.js +1 -1
  266. package/dist/toast/index.js +1 -1
  267. package/dist/toast-notifier/component.js +1 -1
  268. package/dist/toast-notifier/index.js +1 -1
  269. package/dist/toast-plate/component.js +1 -1
  270. package/dist/toast-plate/index.js +1 -1
  271. package/dist/tooltip/component.js +1 -1
  272. package/dist/tooltip/index.js +1 -1
  273. package/dist/typography/component.js +1 -1
  274. package/dist/typography/index.js +1 -1
  275. package/dist/typography/text/component.js +1 -1
  276. package/dist/typography/text/index.js +1 -1
  277. package/dist/typography/title/component.js +1 -1
  278. package/dist/typography/title/index.js +1 -1
  279. package/dist/typography/title-responsive/component.js +1 -1
  280. package/dist/typography/title-responsive/index.js +1 -1
  281. package/dist/use-image-render-component-47853e16.js +1 -0
  282. package/dist/utils/format-date/index.js +1 -1
  283. package/dist/utils/index.js +1 -1
  284. package/dist/utils/show-toast/index.js +1 -1
  285. package/dist/with-suffix/component.js +1 -1
  286. package/dist/with-suffix/index.js +1 -1
  287. package/package.json +3 -2
  288. package/dist/component-ff7f22f2.js +0 -1
  289. package/dist/index-1f862647.d.ts +0 -7
  290. package/dist/index-1f862647.js +0 -1
  291. package/dist/index-40643cd7.js +0 -1
  292. package/dist/index-4f76bb1b.js +0 -1
  293. package/dist/index-52466dc0.js +0 -9
  294. package/dist/table/data.d.ts +0 -35
  295. package/dist/table/data.js +0 -1
  296. package/dist/use-image-render-component-ac5638f8.js +0 -1
  297. /package/dist/{_commonjsHelpers-9df6f4dd.js → _commonjsHelpers-79edb509.js} +0 -0
  298. /package/dist/{colors.module-6721e9a2.js → colors.module-5b0a330b.js} +0 -0
  299. /package/dist/{common.module-920dfa2f.js → common.module-0d7cdf7f.js} +0 -0
  300. /package/dist/{component-ff7f22f2.d.ts → component-4d0a0294.d.ts} +0 -0
  301. /package/dist/{component-010e49fc.d.ts → component-a905d72e.d.ts} +0 -0
  302. /package/dist/{component-010e49fc.js → component-a905d72e.js} +0 -0
  303. /package/dist/{contact-block-55bf44ac.d.ts → contact-block-c54116cf.d.ts} +0 -0
  304. /package/dist/{contact-block-55bf44ac.js → contact-block-c54116cf.js} +0 -0
  305. /package/dist/{gutters.module-187a8a87.js → gutters.module-bd78f5cb.js} +0 -0
  306. /package/dist/{intersection-observer-aa692db4.js → intersection-observer-1b96bdb1.js} +0 -0
  307. /package/dist/{parse-query-params-5fe6ffd9.d.ts → parse-query-params-fad225de.d.ts} +0 -0
  308. /package/dist/{slide-1598df7f.d.ts → slide-b6707907.d.ts} +0 -0
  309. /package/dist/{slide-1598df7f.js → slide-b6707907.js} +0 -0
  310. /package/dist/{tslib.es6-8358f354.js → tslib.es6-8158ebfc.js} +0 -0
  311. /package/dist/{use-image-render-component-ac5638f8.d.ts → use-image-render-component-47853e16.d.ts} +0 -0
@@ -1 +1 @@
1
- import{useState as t,useCallback as e}from"react";import{useDidUpdateEffect as i}from"./utils.js";import"date-fns";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,a=t(r),c=a[0],f=a[1],u=t(d),m=u[0],s=u[1],l=e((function(){f(void 0),s(void 0)}),[]),v=e((function(t){f(t)}),[]),p=e((function(t){s(t)}),[]),h=e((function(t){if(void 0!==t){if(c)return m?void(t>c?s(t):t<c&&(s(void 0),f(t))):(f(Math.min(t,c)),void s(Math.max(t,c)));f(t)}else l()}),[l,c,m]);return i((function(){n&&n(c,m)}),[c,m]),{selectedFrom:c,selectedTo:m,setStart:v,setEnd:p,resetPeriod:l,updatePeriod:h}}export{o as usePeriod};
1
+ import{useState as i,useCallback as e}from"react";import{useDidUpdateEffect as t}from"./utils.js";import"../index-c702bc3b.js";import"../index-a669b543.js";import"../index-6e902d9b.js";import"../index-5a1575b3.js";import"../index-7f3b247f.js";function o(o){var n=o.onPeriodChange,r=o.initialSelectedFrom,d=o.initialSelectedTo,c=i(r),m=c[0],s=c[1],a=i(d),f=a[0],u=a[1],p=e((function(){s(void 0),u(void 0)}),[]),l=e((function(i){s(i)}),[]),v=e((function(i){u(i)}),[]),x=e((function(i){if(void 0!==i){if(m)return f?void(i>m?u(i):i<m&&(u(void 0),s(i))):(s(Math.min(i,m)),void u(Math.max(i,m)));s(i)}else p()}),[p,m,f]);return t((function(){n&&n(m,f)}),[m,f]),{selectedFrom:m,selectedTo:f,setStart:l,setEnd:v,resetPeriod:p,updatePeriod:x}}export{o as usePeriod};
@@ -1,4 +1,3 @@
1
- import { Locale } from 'date-fns';
2
1
  import { DateShift, Day, Month, SpecialDays } from "./typings";
3
2
  declare const DAYS_IN_WEEK = 7;
4
3
  declare const MONTHS_IN_YEAR = 12;
@@ -1 +1 @@
1
- import{useRef as n,useEffect as e}from"react";import{startOfMonth as t,startOfISOWeek as r,endOfISOWeek as u,lastDayOfMonth as i,eachDayOfInterval as o,isSameDay as a,eachMonthOfInterval as f,startOfYear as c,endOfYear as d,eachYearOfInterval as v,min as s,max as m,isBefore as l,isAfter as p,isSameMonth as k,format as w,startOfDay as b,addDays as g,subDays as y,subMonths as L,addMonths as T,startOfWeek as h,endOfWeek as x}from"date-fns";var D=7,M=12,O=6;function W(n){var e=n.getDay();return 0===e?D-1:e-1}function E(n,e){var f=function(){return Array(D).fill(null)},c=t(n),d=r(t(n)),v=u(i(n)),s=f();return o({start:d,end:v}).reduce((function(n,t){var r=W(t);return s[r]=A(t,c,e),(r===O||a(t,v))&&(n.push(s),s=f()),n}),[])}function K(n,e){return f({start:c(n),end:d(n)}).map((function(n){return j(n,e)}))}function S(n,e){return v({start:s([c(e),c(n)]),end:m([c(e),c(n)])}).reverse()}function A(n,e,t){var r=t.minDate,u=t.maxDate,i=t.selected,o=t.eventsMap,f=void 0===o?{}:o,c=t.offDaysMap,d=(void 0===c?{}:c)[n.getTime()];return{date:n,disabled:r&&l(n,r)||u&&p(n,u)||d,event:f[n.getTime()],selected:i&&a(n,i),muted:!k(n,e)}}function j(n,e){var t=e.minMonth,r=e.maxMonth;return{date:n,disabled:t&&l(n,t)||r&&p(n,r)}}function q(n,e,t){var r=n;return e&&(r=m([e,r])),t&&(r=s([t,r])),new Date(r)}function z(n,e,t){return n&&q(n,e,t).getTime()===new Date(n).getTime()}function B(n,e,t){return w(n,t?"LLL":"LLLL",{locale:e})}function C(n){return n.reduce((function(n,e){return n[b(e).getTime()]=!0,n}),{})}function F(n,e,t){var r=e||t;return n&&r&&n!==r?{start:s([n,r]),end:m([n,r])}:null}function G(n,e,t,r,u){void 0===u&&(u={});for(var i={prev:function(){return y(e,1)},prevWeek:function(){return y(e,7)},prevMonth:function(){return L(e,1)},next:function(){return g(e,1)},nextWeek:function(){return g(e,7)},nextMonth:function(){return T(e,1)},startOfWeek:function(){return h(e,{weekStartsOn:1})},endOfWeek:function(){return b(x(e,{weekStartsOn:1}))}}[n]();u[i.getTime()];){var o=i<e?-1:1;"endOfWeek"===n&&(o=-1),"startOfWeek"===n&&(o=1),i=g(i,o)}return q(i,t,r)}function H(n){if(window.KeyboardEvent){var e=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});n.dispatchEvent(e)}}function I(t,r){var u=n(!1);e((function(){u.current?t():u.current=!0}),r)}export{D as DAYS_IN_WEEK,M as MONTHS_IN_YEAR,O as SUNDAY_INDEX,A as buildDay,j as buildMonth,C as dateArrayToHashTable,z as dateInLimits,K as generateMonths,E as generateWeeks,S as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,W as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
1
+ import{useRef as e,useEffect as n}from"react";import{e as t,d as r,c as a,i as u,s as i,a as o,g as s,b as f,f as c}from"../index-c702bc3b.js";import{s as d,c as v,l as m,e as b,a as p,h as l,f as x,b as k,g as w,m as g,i as h,j as y,d as L}from"../index-5a1575b3.js";import{f as T}from"../index-7f3b247f.js";import"../index-a669b543.js";import"../index-6e902d9b.js";var j=7,D=12,M=6;function O(e){var n=e.getDay();return 0===n?j-1:n-1}function W(e,n){var a=function(){return Array(j).fill(null)},u=d(e),i=t(d(e)),o=v(m(e)),s=a();return b({start:i,end:o}).reduce((function(e,t){var i=O(t);return s[i]=S(t,u,n),(i===M||r(t,o))&&(e.push(s),s=a()),e}),[])}function E(e,n){return p({start:l(e),end:x(e)}).map((function(e){return A(e,n)}))}function K(e,n){return k({start:w([l(n),l(e)]),end:g([l(n),l(e)])}).reverse()}function S(e,n,t){var i=t.minDate,o=t.maxDate,s=t.selected,f=t.eventsMap,c=void 0===f?{}:f,d=t.offDaysMap,v=(void 0===d?{}:d)[e.getTime()];return{date:e,disabled:i&&a(e,i)||o&&u(e,o)||v,event:c[e.getTime()],selected:s&&r(e,s),muted:!h(e,n)}}function A(e,n){var t=n.minMonth,r=n.maxMonth;return{date:e,disabled:t&&a(e,t)||r&&u(e,r)}}function q(e,n,t){var r=e;return n&&(r=g([n,r])),t&&(r=w([t,r])),new Date(r)}function z(e,n,t){return e&&q(e,n,t).getTime()===new Date(e).getTime()}function B(e,n,t){return T(e,t?"LLL":"LLLL",{locale:n})}function C(e){return e.reduce((function(e,n){return e[i(n).getTime()]=!0,e}),{})}function F(e,n,t){var r=n||t;return e&&r&&e!==r?{start:w([e,r]),end:g([e,r])}:null}function G(e,n,t,r,a){void 0===a&&(a={});for(var u={prev:function(){return s(n,1)},prevWeek:function(){return s(n,7)},prevMonth:function(){return y(n,1)},next:function(){return o(n,1)},nextWeek:function(){return o(n,7)},nextMonth:function(){return f(n,1)},startOfWeek:function(){return c(n,{weekStartsOn:1})},endOfWeek:function(){return i(L(n,{weekStartsOn:1}))}}[e]();a[u.getTime()];){var d=u<n?-1:1;"endOfWeek"===e&&(d=-1),"startOfWeek"===e&&(d=1),u=o(u,d)}return q(u,t,r)}function H(e){if(window.KeyboardEvent){var n=new window.KeyboardEvent("keydown",{bubbles:!0,key:"Tab"});e.dispatchEvent(n)}}function I(t,r){var a=e(!1);n((function(){a.current?t():a.current=!0}),r)}export{j as DAYS_IN_WEEK,D as MONTHS_IN_YEAR,M as SUNDAY_INDEX,S as buildDay,A as buildMonth,C as dateArrayToHashTable,z as dateInLimits,E as generateMonths,W as generateWeeks,K as generateYears,F as getSelectionRange,q as limitDate,G as modifyDateByShift,B as monthName,O as russianWeekDay,H as simulateTab,I as useDidUpdateEffect};
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { ChangeEvent, MouseEvent } from "react";
4
4
  import { CalendarProps } from "../calendar/index";
5
5
  import { MaskedInputProps } from "../masked-input/index";
6
- type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | 'clear' | 'onClear' | 'rightAddons' | 'onBeforeDisplay'> & {
6
+ type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' | 'rightAddons' | 'onBeforeDisplay'> & {
7
7
  block?: boolean;
8
8
  className?: string;
9
9
  inputClassName?: string;
@@ -29,7 +29,7 @@ type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' |
29
29
  onCalendarChange?: CalendarProps['onChange'];
30
30
  dataTestId?: string;
31
31
  };
32
- declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "value" | "rightAddons" | "onChange" | "clear" | "onClear" | "onBeforeDisplay"> & {
32
+ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<MaskedInputProps, "mask" | "value" | "rightAddons" | "onChange" | "onBeforeDisplay"> & {
33
33
  block?: boolean | undefined;
34
34
  className?: string | undefined;
35
35
  inputClassName?: string | undefined;
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-8358f354.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 l from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as d}from"../calendar/utils.js";import"date-fns";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 v,isCompleteDateInput as j,DATE_MASK as g,SUPPORTS_INPUT_TYPE_DATE as b,NATIVE_DATE_FORMAT as h}from"./utils.js";import"date-fns/locale";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-9df6f4dd.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"../index-4f76bb1b.js";import"../toast-notifier/use-timer.js";import"../index-40643cd7.js";var x="index-module_component__pdVE2",y="index-module_block__wtVLz",_="index-module_calendarContainer__x7A2x",C="index-module_calendarIcon__muPk-",k="index-module_nativeInput__siME6",D=n((function(n,D){var w,E=n.block,M=void 0!==E&&E,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,K=n.dataTestId,U=n.minDate,z=n.required,B=n.maxDate,H=n.calendarProps,L=void 0===H?{}:H,G=n.preventFlip,J=n.mobileMode,Q=void 0===J?"popover":J,S=n.wrapperRef,W=void 0===S?null:S,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,ne=b&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,me=a(!1),pe=me[0],le=me[1],se=a(O),de=se[0],ce=se[1],ue=oe?de:R,fe=ue?v(ue).getTime():void 0,ve=d(fe,U,B),je=X||ee,ge=r(null),be=r(null),he=r(null),xe=r(null),ye=i((function(e){"Escape"===e.key&&le(!1)}),[]),_e=i((function(){pe||le(!0)}),[pe]),Ce=i((function(e){le(!0),!pe&&"INPUT"!==e.target.tagName&&xe.current&&xe.current.focus()}),[pe]),ke=i((function(e){xe.current&&!1===xe.current.contains(e.relatedTarget)&&le(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&xe.current&&(e.preventDefault(),xe.current.focus())}),[]),we=i((function(e,t,o,n,a){void 0===n&&(n="input"),void 0===a&&(a=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),a&&(oe&&ce(t),Y&&Y(e,{date:o,value:t}))}),[$,Y,Z,oe]),Ee=i((function(e){var t=e.target.value,o=v(t);we(e,t,o,"input",j(t))}),[we]),Me=i((function(e){var t=v(e.target.value,h),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});we(e,o,t)}),[we]),Ne=i((function(e){we(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),le(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){le(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(s,t({},L,{ref:xe,defaultMonth:F,value:ve?fe:void 0,onChange:Ne,minDate:U,maxDate:B})))}),[L,fe,F,Ne,Ie,ve,B,U]);return o.createElement("div",{ref:he,className:l(x,N,(w={},w[y]=M,w)),tabIndex:-1,onKeyDown:je?void 0:ye,onClick:je?void 0:_e,onFocus:je?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(c,t({},te,{ref:p([D,ge]),wrapperRef:p([W,be]),className:I,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:g,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:p([D,ge]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:pe,anchorElement:be.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:G},Pe()))}));export{D as CalendarInput};
1
+ import{_ as e,a as t}from"../tslib.es6-8158ebfc.js";import o,{forwardRef as n,useState as r,useRef as a,useCallback as i,useEffect as p}from"react";import m from"react-merge-refs";import s from"classnames";import{Calendar as l}from"../calendar/component.js";import{dateInLimits as d}from"../calendar/utils.js";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as j,isCompleteDateInput as v,DATE_MASK as b,SUPPORTS_INPUT_TYPE_DATE as x,NATIVE_DATE_FORMAT as g}from"./utils.js";import"../index-5a1575b3.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-c702bc3b.js";import"../index-3ff95ce5.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5b6847a7.js";import"../index-704ecb28.js";import"../hooks/usePrevious/index.js";import"../index-7f3b247f.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-917c6b56.js";import"../calendar/components/years-table/сomponent.js";import"../index-c2fe189e.js";import"../index-39871cd2.js";import"../calendar/use-calendar.js";import"../index-478e7023.js";import"../_commonjsHelpers-79edb509.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-379f2f77.js";import"../CloseS-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../index-27298e4e.js";import"../index-87e96bc0.js";import"../index-2e98adce.js";var h="index-module_component__pdVE2",y="index-module_block__wtVLz",_="index-module_calendarContainer__x7A2x",C="index-module_calendarIcon__muPk-",k="index-module_nativeInput__siME6",D=n((function(n,D){var w,E=n.block,M=void 0!==E&&E,N=n.className,I=n.inputClassName,P=n.defaultOpen,T=void 0!==P&&P,F=n.defaultMonth,V=n.defaultValue,O=void 0===V?"":V,A=n.calendarPosition,q=void 0===A?"popover":A,R=n.value,K=n.dataTestId,U=n.minDate,z=n.required,B=n.maxDate,H=n.calendarProps,L=void 0===H?{}:H,S=n.preventFlip,G=n.mobileMode,J=void 0===G?"popover":G,Q=n.wrapperRef,W=void 0===Q?null:Q,X=n.disabled,Y=n.onChange,Z=n.onInputChange,$=n.onCalendarChange,ee=n.readOnly,te=e(n,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),oe=void 0===(R=R&&R.split("-").length?R.split("-").reverse().join("."):R),ne=x&&"native"===J,re="input"===J,ae="static"===q&&!re,ie="popover"===q&&!ne&&!re,pe=r(!1),me=pe[0],se=pe[1],le=r(O),de=le[0],ce=le[1],ue=oe?de:R,fe=ue?j(ue).getTime():void 0,je=d(fe,U,B),ve=X||ee,be=a(null),xe=a(null),ge=a(null),he=a(null),ye=i((function(e){"Escape"===e.key&&se(!1)}),[]),_e=i((function(){me||se(!0)}),[me]),Ce=i((function(e){se(!0),!me&&"INPUT"!==e.target.tagName&&he.current&&he.current.focus()}),[me]),ke=i((function(e){he.current&&!1===he.current.contains(e.relatedTarget)&&se(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&he.current&&(e.preventDefault(),he.current.focus())}),[]),we=i((function(e,t,o,n,r){void 0===n&&(n="input"),void 0===r&&(r=!0),"input"===n&&e&&Z&&Z(e,{value:t,date:o}),"calendar"===n&&$&&$(o.getTime()),r&&(oe&&ce(t),Y&&Y(e,{date:o,value:t.split(".").reverse().join("-")}))}),[$,Y,Z,oe]),Ee=i((function(e){var t=e.target.value,o=j(t);we(e,t,o,"input",v(t))}),[we]),Me=i((function(e){var t=j(e.target.value,g),o=""===e.target.value?"":f(t,{format:"dd.MM.yyyy"});we(e,o,t)}),[we]),Ne=i((function(e){we(null,f(e,{format:"dd.MM.yyyy"}),new Date(e),"calendar"),se(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);p((function(){se(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(l,t({},L,{ref:he,defaultMonth:F,value:je?fe:void 0,onChange:Ne,minDate:U,maxDate:B})))}),[L,fe,F,Ne,Ie,je,B,U]);return o.createElement("div",{ref:ge,className:s(h,N,(w={},w[y]=M,w)),tabIndex:-1,onKeyDown:ve?void 0:ye,onClick:ve?void 0:_e,onFocus:ve?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(c,t({},te,{ref:m([D,be]),wrapperRef:m([W,xe]),className:I,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:b,rightAddons:o.createElement(o.Fragment,null,o.createElement("span",{className:C}),ne&&o.createElement("input",{type:"date",ref:m([D,be]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),ae&&Pe(),ie&&o.createElement(u,{open:me,anchorElement:xe.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:S},Pe()))}));export{D as CalendarInput};
@@ -1 +1 @@
1
- export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-8358f354.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"date-fns/locale";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-9df6f4dd.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"../index-4f76bb1b.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-40643cd7.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-8158ebfc.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"../index-5a1575b3.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-c702bc3b.js";import"../index-3ff95ce5.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5b6847a7.js";import"../index-704ecb28.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../index-7f3b247f.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../index-917c6b56.js";import"../calendar/components/years-table/сomponent.js";import"../index-c2fe189e.js";import"../index-39871cd2.js";import"../calendar/use-calendar.js";import"../index-478e7023.js";import"../masked-input/component.js";import"../_commonjsHelpers-79edb509.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../_tslib-531dfe1b-379f2f77.js";import"../CloseS-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-27298e4e.js";import"../index-87e96bc0.js";import"../index-2e98adce.js";
@@ -1 +1 @@
1
- import{parse as t}from"date-fns";var e="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],r="undefined"!=typeof window,u=r&&o(),a=function(t){return t.length===n.length},i=function(d,n){return void 0===n&&(n=e),t(d,n,new Date)};function o(){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,r as IS_BROWSER,d as NATIVE_DATE_FORMAT,u as SUPPORTS_INPUT_TYPE_DATE,a as isCompleteDateInput,o as isInputDateSupported,i as parseDateString};
1
+ import{p as e}from"../index-27298e4e.js";import"../index-a669b543.js";import"../index-6e902d9b.js";import"../index-87e96bc0.js";var t="dd.MM.yyyy",d="yyyy-MM-dd",n=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],i="undefined"!=typeof window,r=i&&a(),o=function(e){return e.length===n.length},u=function(d,n){return void 0===n&&(n=t),e(d,n,new Date)};function a(){var e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}export{t as DATE_FORMAT,n as DATE_MASK,i as IS_BROWSER,d as NATIVE_DATE_FORMAT,r as SUPPORTS_INPUT_TYPE_DATE,o as isCompleteDateInput,a as isInputDateSupported,u as parseDateString};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-8358f354.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-ac5638f8.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,p=r.bottomAddons,a=r.images,l=void 0===a?[]:a,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,j=r.subtitle,u=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),u),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},j),p))};export{r as Card};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"../_tslib-531dfe1b-379f2f77.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-47853e16.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,p=r.bottomAddons,a=r.images,l=void 0===a?[]:a,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,j=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),j),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),p))};export{r as Card};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../index-4f76bb1b.js";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../_commonjsHelpers-9df6f4dd.js";import"../../use-image-render-component-ac5638f8.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8358f354.js";import"../../typography/title/component.js";import"../../colors.module-6721e9a2.js";import"../../common.module-920dfa2f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var p=s.images,a=void 0===p?[]:p,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,j=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[j]])},a.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},a.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:a[0],resolution:r.m})))};export{s as CardImages};
1
+ import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"../../_tslib-531dfe1b-379f2f77.js";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-47853e16.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8158ebfc.js";import"../../typography/title/component.js";import"../../colors.module-5b0a330b.js";import"../../common.module-0d7cdf7f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var p=s.images,a=void 0===p?[]:p,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},a.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},a.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:a[0],resolution:r.m})))};export{s as CardImages};
@@ -1 +1 @@
1
- export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8358f354.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-ac5638f8.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
1
+ export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"../_tslib-531dfe1b-379f2f77.js";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-47853e16.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-010e49fc.js";import"../../typography/title/index.js";import"../../tslib.es6-8358f354.js";import"../../typography/title/component.js";import"../../colors.module-6721e9a2.js";import"../../common.module-920dfa2f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-a905d72e.js";import"../../typography/title/index.js";import"../../tslib.es6-8158ebfc.js";import"../../typography/title/component.js";import"../../colors.module-5b0a330b.js";import"../../common.module-0d7cdf7f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export * from "../../component-010e49fc";
1
+ export * from "../../component-a905d72e";
@@ -1 +1 @@
1
- export{B as Base}from"../../component-010e49fc.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8358f354.js";import"../../typography/title/component.js";import"../../colors.module-6721e9a2.js";import"../../common.module-920dfa2f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ export{B as Base}from"../../component-a905d72e.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-8158ebfc.js";import"../../typography/title/component.js";import"../../colors.module-5b0a330b.js";import"../../common.module-0d7cdf7f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-010e49fc.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8358f354.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{C as Cell}from"../component-a905d72e.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-010e49fc.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8358f354.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-a905d72e.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8158ebfc.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as r}from"../../tslib.es6-8358f354.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
+ import{_ as e,a as r}from"../../tslib.es6-8158ebfc.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
- export{Pure}from"./component.js";import"../../tslib.es6-8358f354.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
1
+ export{Pure}from"./component.js";import"../../tslib.es6-8158ebfc.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-8358f354.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{h as l,i as m}from"../index-4f76bb1b.js";import i from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";import"../_commonjsHelpers-9df6f4dd.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,p=a.size,h=void 0===p?"m":p,f=a.align,k=void 0===f?"center":f,E=a.addons,N=a.block,g=a.onChange,I=a.className,v=a.name,j=a.disabled,C=a.dataTestId,y=a.indeterminate,z=void 0!==y&&y,D=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),O=t(null),T=s(O,"keyboard")[0];return d.createElement("label",{className:i(c.component,c[h],c[k],I,(_={},_[c.disabled]=j,_[c.checked]=u,_[c.indeterminate]=z,_[c.focused]=T,_[c.block]=N,_)),ref:o([O,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:j,checked:u,"data-test-id":C},D)),u&&d.createElement(l,null),z&&!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
+ import{_ as e,a as n}from"../tslib.es6-8158ebfc.js";import t,{forwardRef as a,useRef as d}from"react";import l from"react-merge-refs";import{_ as o}from"../_tslib-531dfe1b-379f2f77.js";import i from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var c=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{d:"M0 0h16v16H0z"}),t.createElement("path",{d:"M14.667 5.014l-7.741 7.764-5.592-5.645L2.863 5.6l3.932 3.94 6.195-6.207 1.677 1.68z",fill:"currentColor"}))},s=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M13.027 10.974H2.86v2.048H21.147v-2.048h-8.12z",fill:"currentColor"}))},r={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},_=a((function(a,o){var _,u=a.checked,h=a.label,b=a.hint,p=a.size,x=void 0===p?"m":p,f=a.align,E=void 0===f?"center":f,k=a.addons,v=a.block,g=a.onChange,w=a.className,N=a.name,I=a.disabled,z=a.dataTestId,C=a.indeterminate,M=void 0!==C&&C,H=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),j=d(null),y=m(j,"keyboard")[0];return t.createElement("label",{className:i(r.component,r[x],r[E],w,(_={},_[r.disabled]=I,_[r.checked]=u,_[r.indeterminate]=M,_[r.focused]=y,_[r.block]=v,_)),ref:l([j,o])},t.createElement("span",{className:r.box},t.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:N})},disabled:I,checked:u,"data-test-id":z},H)),u&&t.createElement(c,null),M&&!u&&t.createElement("div",{className:r.indeterminateIcon},t.createElement(s,null))),(h||b)&&t.createElement("span",{className:r.content},h&&t.createElement("span",{className:r.label},h),b&&t.createElement("span",{className:r.hint},b)),k&&t.createElement("span",{className:r.addons},k))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-8358f354.js";import"react";import"react-merge-refs";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"react-merge-refs";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-8358f354.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"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",m="index-module_subtitle__0PkbT",c=function(c){var l=c.title,s=c.subtitle,a=c.selected,d=void 0===a?[]:a,p=c.data,u=void 0===p?[]:p,v=c.onChange,f=c.columns,g=void 0===f?1:f,y=c.gr,h=void 0===y?20:y,j=c.gc,x=void 0===j?20:j,b=c.dataTestId,k=d||[],_=function(e){return b?"checkbox_"+b+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:g,gr:h,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-8158ebfc.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",m="index-module_subtitle__0PkbT",c=function(c){var l=c.title,s=c.subtitle,a=c.selected,d=void 0===a?[]:a,p=c.data,u=void 0===p?[]:p,v=c.onChange,f=c.columns,g=void 0===f?1:f,y=c.gr,b=void 0===y?20:y,h=c.gc,x=void 0===h?20:h,j=c.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:g,gr:b,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{c as CheckboxGroup};
@@ -1 +1 @@
1
- export{CheckboxGroup}from"./component.js";import"../tslib.es6-8358f354.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroup}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-8358f354.js";import t,{useState as n}from"react";import{j as o}from"../index-4f76bb1b.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 p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-9df6f4dd.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/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,j=u.selected,_=u.checkableParent,b=u.collapsable,v=u.onChange,E=[],g=Array.isArray(j)?j:[];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&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(e([],g),t))}))},F=function(e){var n,o,r=e.element;return _?t.createElement(l,{block:!0,checked:(n=r.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},r.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),b&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:r(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(l,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
1
+ import{b as e}from"../tslib.es6-8158ebfc.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-3c2a8cb9.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 p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"../_tslib-531dfe1b-379f2f77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/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.onChange,E=[],g=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&&E.push(t)}));var y=n(E),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?v(g.filter((function(e){return!t.includes(e)}))):v(e(e([],g),t))}))},F=function(e){var n,o,r=e.element;return _?t.createElement(l,{block:!0,checked:(n=r.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},r.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:r(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(l,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
@@ -1 +1 @@
1
- export{CheckboxGroups}from"./component.js";import"../tslib.es6-8358f354.js";import"react";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.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/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroups}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../ChevronDownS-3c2a8cb9.js";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-79edb509.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/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import o from"react";import{k as t,l as e}from"../index-4f76bb1b.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as m}from"../typography/component.js";import"../_commonjsHelpers-9df6f4dd.js";import"../tslib.es6-8358f354.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i=function(e){var r=e.location,i=e.onClick;return o.createElement(o.Fragment,null,o.createElement(m.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:i,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,i as Content};
1
+ import e from"react";import{_ as t}from"../_tslib-531dfe1b-379f2f77.js";import{P as o}from"../PlusS-e193bd6f.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-8158ebfc.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var l=function(o){return e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},o),e.createElement("path",{d:"M0 0h17v16H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.761 4.836c.031.075.047.155.046.236l-.043.03a.427.427 0 010 .087.617.617 0 010 .147.732.732 0 01-.135.203l-1.746 1.71-6.684 6.72a.615.615 0 01-.467.178H2.125a.615.615 0 01-.615-.615v-2.607a.615.615 0 01.178-.437l6.72-6.72 1.74-1.74a.613.613 0 01.437-.178.615.615 0 01.437.178l2.607 2.607a.615.615 0 01.133.2zM2.74 12.916h1.74l6.105-6.104-1.74-1.74-6.105 6.105v1.74zm6.972-8.711l1.74 1.74.867-.873-1.734-1.734-.873.867zm.017 8.692a.625.625 0 000 1.25h4.156a.625.625 0 100-1.25H9.729z",fill:"currentColor"}))},m=function(t){var o=t.location,r=t.onClick;return e.createElement(e.Fragment,null,e.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},o.address),e.createElement(n,{icon:l,onClick:r,size:"s",view:"ghost"}))},s=function(t){var n=t.onClick;return e.createElement(r,{leftAddons:e.createElement(o,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{j as n}from"../index-4f76bb1b.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"../_commonjsHelpers-9df6f4dd.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8358f354.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",l="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,f=u.label,x=u.content,b=u.expanded,y=u.addons,g=u.children,h=u.disabled,v=o(b),E=v[0],w=v[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:a},f&&e.createElement(s.Text,{className:l,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:a},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(j={},j[d]=E,j)),disabled:h,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},g))};export{u as CollapsableRow};
1
+ import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-3c2a8cb9.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"../_tslib-531dfe1b-379f2f77.js";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",a="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:p},e.createElement("div",{className:l},b&&e.createElement(s.Text,{className:a,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"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"classnames";import"../collapse/component.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8358f354.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/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-3c2a8cb9.js";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8158ebfc.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/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-9df6f4dd.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-8358f354.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k="[object Null]",z="[object Undefined]",S=x?x.toStringTag:void 0;var C=function(e){return null==e?void 0===e?z:k:S&&S in Object(e)?T(e):N(e)};var L=function(e){return null!=e&&"object"==typeof e},H="[object Symbol]";var $=function(e){return"symbol"==typeof e||L(e)&&C(e)==H},D=NaN,F=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,M=/^0o[0-7]+$/i,P=parseInt;var U=function(e){if("number"==typeof e)return e;if($(e))return D;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=I.test(e);return n||M.test(e)?P(e.slice(2),n?2:8):F.test(e)?D:+e},W="Expected a function",A=Math.max,Q=Math.min;var R=function(e,t,n){var r,o,i,u,a,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=o;return r=o=void 0,f=t,u=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function y(){var e=p();if(b(e))return h(e);a=setTimeout(y,function(e){var n=t-(e-c);return d?Q(n,i-(e-f)):n}(e))}function h(e){return a=void 0,v&&r?m(e):(r=o=void 0,u)}function j(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(y,t),l?m(e):u}(c);if(d)return clearTimeout(a),a=setTimeout(y,t),m(c)}return void 0===a&&(a=setTimeout(y,t)),u}return t=U(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?A(U(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=c=o=a=void 0},j.flush=function(){return void 0===a?u:h(p())},j},Y="index-module_collapse__ORa-f",q="index-module_content__UDk-m",B="index-module_expandedContent__iQszl",G="index-module_children_wrap__ekYCk",J=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=R((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=u((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:a(y,Y),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:a(q,h,(s={},s[B]=S,s)),style:$},e.createElement("div",{className:a(G),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{J as Collapse};
1
+ import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as u}from"react";import a from"classnames";import{a as c}from"../_commonjsHelpers-79edb509.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k="[object Null]",z="[object Undefined]",S=x?x.toStringTag:void 0;var C=function(e){return null==e?void 0===e?z:k:S&&S in Object(e)?T(e):N(e)};var L=function(e){return null!=e&&"object"==typeof e},H="[object Symbol]";var $=function(e){return"symbol"==typeof e||L(e)&&C(e)==H},D=NaN,F=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,M=/^0o[0-7]+$/i,P=parseInt;var U=function(e){if("number"==typeof e)return e;if($(e))return D;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=I.test(e);return n||M.test(e)?P(e.slice(2),n?2:8):F.test(e)?D:+e},W="Expected a function",A=Math.max,Q=Math.min;var R=function(e,t,n){var r,o,i,u,a,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=o;return r=o=void 0,f=t,u=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function y(){var e=p();if(b(e))return h(e);a=setTimeout(y,function(e){var n=t-(e-c);return d?Q(n,i-(e-f)):n}(e))}function h(e){return a=void 0,v&&r?m(e):(r=o=void 0,u)}function j(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(y,t),l?m(e):u}(c);if(d)return clearTimeout(a),a=setTimeout(y,t),m(c)}return void 0===a&&(a=setTimeout(y,t)),u}return t=U(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?A(U(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=c=o=a=void 0},j.flush=function(){return void 0===a?u:h(p())},j},Y="index-module_collapse__ORa-f",q="index-module_content__UDk-m",B="index-module_expandedContent__iQszl",G="index-module_children_wrap__ekYCk",J=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=R((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=u((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:a(y,Y),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:a(q,h,(s={},s[B]=S,s)),style:$},e.createElement("div",{className:a(G),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{J as Collapse};
@@ -1 +1 @@
1
- export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-9df6f4dd.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8358f354.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
1
+ export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-79edb509.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
@@ -0,0 +1 @@
1
+ import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as n}from"react";import r 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{P as g}from"./use-image-render-component-47853e16.js";import{Image as v}from"./image/component.js";import"./image/typings.js";import"./image/constants.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 j(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,n=e.refetch,r=o.map((function(e){return{row:e,cells:l.map((function(l){var o,r,a,i,c,s,m,u,d,p,f=j((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,n);if(null===(r=l.row)||void 0===r?void 0:r.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,n);p=b?t.createElement(v,{src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(v,{icon:t.createElement(g,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,n);p=t.createElement(v,{icon:h||t.createElement(g,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,n));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(u=l.row)||void 0===u?void 0:u.subtitle)&&j(null===(d=l.row)||void 0===d?void 0:d.subtitle,e,n),addon:p})}))}}));return r}var x={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function C(e){var g=e.columns,v=e.searchPlaceholder,w=void 0===v?"Поиск по таблице":v,j=e.records,C=e.hideSearch,_=e.rightHeaderAddons,k=e.leftHeaderAddons,y=e.filtersButtonLabel,P=e.createButtonLabel,B=e.loading,S=e.height,A=void 0===S?"fill":S,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:j}),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=n((function(){return E({columns:g,data:z,refetch:N||K})}),[z,g]),Z=R||B;return t.createElement("div",{className:r(x.table_wrapper,x[A])},(!C||_||k||T||q)&&t.createElement(u,{language:D,hideSearch:C,rightHeaderAddons:_,leftHeaderAddons:k,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:y,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:x.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:g}),t.createElement("tbody",null,V&&t.createElement(c,{language:D}),!Y.length&&!Z&&!V&&t.createElement(i,{language:D}),Z&&t.createElement(s,{columnsLength:g.length}),Y.map((function(e){var l,o=e.row,n=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:r((l={},l[x.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},n.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:C};export{_ as T,C as a,E as p};
@@ -1 +1 @@
1
- import o from"react";import{m as t}from"../index-4f76bb1b.js";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as r}from"../typography/component.js";import{IconButton as i}from"../icon-button/component.js";import"../_commonjsHelpers-9df6f4dd.js";import"../tslib.es6-8358f354.js";import"react-dom";import"classnames";import"../toast-plate/component.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"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,a=n.fullText;return o.createElement("div",{className:m},o.createElement(r.Text,{view:"title",weight:"medium",color:"secondary"},s),o.createElement(i,{icon:t,className:p,onClick:function(o){o.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){e({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
1
+ import t from"react";import{A as o}from"../ActionCopyM-4612ae55.js";import{IconButton as e}from"../icon-button/component.js";import{ToastNotifier as i}from"../toast-notifier/component.js";import{Typography as r}from"../typography/component.js";import"../_tslib-531dfe1b-379f2f77.js";import"../tslib.es6-8158ebfc.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"../CloseS-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,c=n.fullText;return t.createElement("div",{className:m},t.createElement(r.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(e,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(c||s).then((function(){i({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
@@ -1 +1 @@
1
- export{CopyButton}from"./component.js";import"react";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"../toast-notifier/component.js";import"../tslib.es6-8358f354.js";import"react-dom";import"classnames";import"../toast-plate/component.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"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";
1
+ export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-4612ae55.js";import"../_tslib-531dfe1b-379f2f77.js";import"../icon-button/component.js";import"../tslib.es6-8158ebfc.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"../CloseS-8fccfe57.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{_ as t,a as e}from"../tslib.es6-8358f354.js";import a from"react";import{format as o}from"date-fns";import{ru as r,de as m,enGB as i,pl as s,cs as d}from"date-fns/locale";import{p}from"../index-40643cd7.js";import{Typography as n}from"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var y={ru:r,de:m,en:i,pl:s,cs:d},l=function(t){var e,a=t.date,r=t.time,m=t.format,i=void 0===m?"dd MMMM yyyy, HH:mm":m,s=t.language,d=void 0===s?"de":s;try{if("number"==typeof a||"object"==typeof a||a.includes("Z"))e=new Date(a);else{var n=3===a.split("-").length?"yyyy-MM-dd":"dd.MM.yyyy",l=r?" "+r.split(":")[0]+":"+r.split(":")[1]:"";l&&(n+=" HH:mm"),e=p(a+l,n,new Date)}return o(e,i,{locale:y[d]})}catch(t){return"Invalid date"}},c=function(o){var r=o.className,m=o.dataTestId,i=o.date,s=o.time,d=o.format,p=void 0===d?"dd.MM.yyyy":d,y=o.language,c=void 0===y?"de":y,f=t(o,["className","dataTestId","date","time","format","language"]);return a.createElement(n.Text,e({},f,{className:r,"data-test-id":m}),l({date:i,format:p,language:c,time:s}))};export{c as FormattedDate,l as normalizeDate};
1
+ import{_ as e,a as t}from"../tslib.es6-8158ebfc.js";import a from"react";import{f as o}from"../index-7f3b247f.js";import{p as r}from"../index-27298e4e.js";import{p as m,c as i}from"../index-2e98adce.js";import{r as s,d,e as p}from"../index-3ff95ce5.js";import{Typography as n}from"../typography/component.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-87e96bc0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var y={ru:s,de:d,en:p,pl:m,cs:i},c=function(e){var t,a=e.date,m=e.time,i=e.format,s=void 0===i?"dd MMMM yyyy, HH:mm":i,d=e.language,p=void 0===d?"de":d;try{if("number"==typeof a||"object"==typeof a||a.includes("Z"))t=new Date(a);else{var n=3===a.split("-").length?"yyyy-MM-dd":"dd.MM.yyyy",c=m?" "+m.split(":")[0]+":"+m.split(":")[1]:"";c&&(n+=" HH:mm"),t=r(a+c,n,new Date)}return o(t,s,{locale:y[p]})}catch(e){return"Invalid date"}},l=function(o){var r=o.className,m=o.dataTestId,i=o.date,s=o.time,d=o.format,p=void 0===d?"dd.MM.yyyy":d,y=o.language,l=void 0===y?"de":y,f=e(o,["className","dataTestId","date","time","format","language"]);return a.createElement(n.Text,t({},f,{className:r,"data-test-id":m}),c({date:i,format:p,language:l,time:s}))};export{l as FormattedDate,c as normalizeDate};
@@ -1 +1 @@
1
- export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-8358f354.js";import"react";import"date-fns";import"date-fns/locale";import"../index-40643cd7.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../index-7f3b247f.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-27298e4e.js";import"../index-87e96bc0.js";import"../index-2e98adce.js";import"../index-3ff95ce5.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -0,0 +1,41 @@
1
+ export { default as add } from 'date-fns/add';
2
+ export { default as addDays } from 'date-fns/addDays';
3
+ export { default as addMonths } from 'date-fns/addMonths';
4
+ export { default as eachDayOfInterval } from 'date-fns/eachDayOfInterval';
5
+ export { default as eachMonthOfInterval } from 'date-fns/eachMonthOfInterval';
6
+ export { default as eachYearOfInterval } from 'date-fns/eachYearOfInterval';
7
+ export { default as endOfISOWeek } from 'date-fns/endOfISOWeek';
8
+ export { default as endOfWeek } from 'date-fns/endOfWeek';
9
+ export { default as endOfYear } from 'date-fns/endOfYear';
10
+ export { default as format } from 'date-fns/format';
11
+ export { default as isAfter } from 'date-fns/isAfter';
12
+ export { default as isBefore } from 'date-fns/isBefore';
13
+ export { default as isEqual } from 'date-fns/isEqual';
14
+ export { default as isLastDayOfMonth } from 'date-fns/isLastDayOfMonth';
15
+ export { default as isSameDay } from 'date-fns/isSameDay';
16
+ export { default as isSameMonth } from 'date-fns/isSameMonth';
17
+ export { default as isSameYear } from 'date-fns/isSameYear';
18
+ export { default as isThisMonth } from 'date-fns/isThisMonth';
19
+ export { default as isThisYear } from 'date-fns/isThisYear';
20
+ export { default as isToday } from 'date-fns/isToday';
21
+ export { default as isWithinInterval } from 'date-fns/isWithinInterval';
22
+ export { default as lastDayOfMonth } from 'date-fns/lastDayOfMonth';
23
+ export { default as max } from 'date-fns/max';
24
+ export { default as min } from 'date-fns/min';
25
+ export { default as parse } from 'date-fns/parse';
26
+ export { default as parseISO } from 'date-fns/parseISO';
27
+ export { default as setYear } from 'date-fns/setYear';
28
+ export { default as startOfDay } from 'date-fns/startOfDay';
29
+ export { default as startOfISOWeek } from 'date-fns/startOfISOWeek';
30
+ export { default as startOfMonth } from 'date-fns/startOfMonth';
31
+ export { default as startOfWeek } from 'date-fns/startOfWeek';
32
+ export { default as startOfYear } from 'date-fns/startOfYear';
33
+ export { default as subDays } from 'date-fns/subDays';
34
+ export { default as subMonths } from 'date-fns/subMonths';
35
+ export { default as subWeeks } from 'date-fns/subWeeks';
36
+ export { default as subYears } from 'date-fns/subYears';
37
+ export { default as cs } from 'date-fns/locale/cs';
38
+ export { default as de } from 'date-fns/locale/de';
39
+ export { default as enGB } from 'date-fns/locale/en-GB';
40
+ export { default as pl } from 'date-fns/locale/pl';
41
+ export { default as ru } from 'date-fns/locale/ru';
@@ -0,0 +1 @@
1
+ export{a as add,p as parseISO,s as subWeeks}from"./index-5639a451.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-c702bc3b.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-5a1575b3.js";export{f as format}from"./index-7f3b247f.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-5b6847a7.js";export{i as isSameYear}from"./index-c2fe189e.js";export{i as isThisMonth}from"./index-917c6b56.js";export{i as isThisYear}from"./index-39871cd2.js";export{i as isToday}from"./index-704ecb28.js";export{p as parse}from"./index-27298e4e.js";export{s as setYear,a as subYears}from"./index-478e7023.js";export{c as cs,p as pl}from"./index-2e98adce.js";export{d as de,e as enGB,r as ru}from"./index-3ff95ce5.js";import"./index-6e902d9b.js";import"./index-a669b543.js";import"./index-87e96bc0.js";
@@ -7,5 +7,5 @@ interface DateSwitcherProps {
7
7
  maxDate?: string;
8
8
  todayLabel: string;
9
9
  }
10
- declare const DateSwitcher: ({ view, startDate, onChange, minDate, maxDate, todayLabel }: DateSwitcherProps) => JSX.Element;
10
+ declare const DateSwitcher: ({ view, startDate, onChange, minDate, maxDate, todayLabel, }: DateSwitcherProps) => JSX.Element;
11
11
  export { DateSwitcherProps, DateSwitcher };
@@ -1 +1 @@
1
- import e from"react";import{b as t,n as o}from"../index-4f76bb1b.js";import a from"classnames";import{startOfISOWeek as r,parseISO as i,isAfter as m,isBefore as n,isToday as d,format as s,add as p,subDays as c,subWeeks as l}from"date-fns";import{Button as y}from"../button/component.js";import{IconButton as f}from"../icon-button/component.js";import{Typography as _}from"../typography/component.js";import"../_commonjsHelpers-9df6f4dd.js";import"../tslib.es6-8358f354.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var u={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",j="dd.MM.yy",b=function(b){var h=b.view,x=void 0===h?"day":h,g=b.startDate,v=b.onChange,k=b.minDate,E=b.maxDate,D=b.todayLabel,C=r(i(g)),M="day"===x?i(g):C,T=k?i(k):new Date,z=m(M,T),H=!E||n(M,i(E)),N=d(M);return e.createElement("div",{className:u.date_switcher},e.createElement(f,{disabled:!!k&&!z,onClick:function(){"day"===x&&v(s(c(M,1),w)),"week"===x&&v(s(l(M,1),w))},icon:t}),e.createElement("div",{className:a(u.date_wrap,u[x])},e.createElement(_.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===x?s(M,j):s(M,j)+" - "+s(p(M,{days:6}),j))),e.createElement(f,{disabled:!H,onClick:function(){"day"===x&&v(s(p(M,{days:1}),w)),"week"===x&&v(s(p(M,{days:7}),w))},icon:o}),e.createElement(y,{disabled:N,onClick:function(){v(s(new Date,w))},view:"ghost"},D))};export{b as DateSwitcher};
1
+ import e from"react";import{C as t}from"../ChevronBackM-e08196fc.js";import{_ as o}from"../_tslib-531dfe1b-379f2f77.js";import r from"classnames";import{Button as a}from"../button/component.js";import{p as i,a as n,s as m}from"../index-5639a451.js";import{f as s}from"../index-7f3b247f.js";import{e as d,i as c,c as p,g as l}from"../index-c702bc3b.js";import{i as f}from"../index-704ecb28.js";import{IconButton as y}from"../icon-button/component.js";import{Typography as w}from"../typography/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-6e902d9b.js";import"../index-a669b543.js";import"../index-87e96bc0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var j=function(t){return e.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{d:"M13.655 12l-5.5 5.5 1.5 1.5 7-7-7-7-1.5 1.5 5.5 5.5z",fill:"currentColor"}))},b={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},h="yyyy-MM-dd",u="dd.MM.yy",_=function(o){var _=o.view,x=void 0===_?"day":_,g=o.startDate,v=o.onChange,k=o.minDate,E=o.maxDate,C=o.todayLabel,M=d(i(g)),D="day"===x?i(g):M,z=k?i(k):new Date,T=c(D,z),B=!E||p(D,i(E)),H=f(D);return e.createElement("div",{className:b.date_switcher},e.createElement(y,{disabled:!!k&&!T,onClick:function(){"day"===x&&v(s(l(D,1),h)),"week"===x&&v(s(m(D,1),h))},icon:t}),e.createElement("div",{className:r(b.date_wrap,b[x])},e.createElement(w.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===x?s(D,u):s(D,u)+" - "+s(n(D,{days:6}),u))),e.createElement(y,{disabled:!B,onClick:function(){"day"===x&&v(s(n(D,{days:1}),h)),"week"===x&&v(s(n(D,{days:7}),h))},icon:j}),e.createElement(a,{disabled:H,onClick:function(){v(s(new Date,h))},view:"ghost"},C))};export{_ as DateSwitcher};
@@ -1 +1 @@
1
- export{DateSwitcher}from"./component.js";import"react";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"classnames";import"date-fns";import"../button/component.js";import"../tslib.es6-8358f354.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-6721e9a2.js";import"../common.module-920dfa2f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-e08196fc.js";import"../_tslib-531dfe1b-379f2f77.js";import"classnames";import"../button/component.js";import"../tslib.es6-8158ebfc.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-5639a451.js";import"../index-c702bc3b.js";import"../index-a669b543.js";import"../index-6e902d9b.js";import"../index-87e96bc0.js";import"../index-7f3b247f.js";import"../index-704ecb28.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5b0a330b.js";import"../common.module-0d7cdf7f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  interface FlexColumnsProps {
4
4
  children?: React.ReactNode;
5
5
  columns?: number;
@@ -1 +1 @@
1
- import*as e from"react";import r from"classnames";var a="index-module_flexColumns__aTLJX",o=function(o){var m=o.children,l=o.columns,i=void 0===l?3:l,s=o.gr,n=void 0===s?20:s,t=o.gc,d=void 0===t?20:t,c=o.className;return e.createElement("div",{className:r(a,c),style:{gridTemplateColumns:"1fr ".repeat(i),gridRowGap:n+"px",gridColumnGap:d+"px"}},m)};export{o as FlexColumns};
1
+ import e from"react";import r from"classnames";var a="index-module_flexColumns__aTLJX",o=function(o){var m=o.children,l=o.columns,i=void 0===l?3:l,n=o.gr,s=void 0===n?20:n,t=o.gc,d=void 0===t?20:t,c=o.className;return e.createElement("div",{className:r(a,c),style:{gridTemplateColumns:"1fr ".repeat(i),gridRowGap:s+"px",gridColumnGap:d+"px"}},m)};export{o as FlexColumns};
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-8358f354.js";import t from"react";import{o as a,p as r,q as m,r as n,s as o}from"../index-4f76bb1b.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-55bf44ac.js";import"../_commonjsHelpers-9df6f4dd.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-187a8a87.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 E=d.sections,u=void 0===E?[]:E,f=d.contacts,b=void 0===f?[]:f,k=d.company,v=d.email,j=d.address,N=d.facebookLink,g=d.instagramLink,x=d.youtubeLink,h=d.appText,w=d.google,y=d.appstore,B=N||g||x,C=h&&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,u.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),B&&t.createElement("div",{className:i.buttons},N&&t.createElement(c,e({},{href:N},{icon:a})),x&&t.createElement(c,e({},{href:x},{icon:r})),g&&t.createElement(c,e({},{href:g},{icon:m}))))))))),t.createElement("div",{className:i.bottomBlock},C&&t.createElement(t.Fragment,null,t.createElement("div",{className:i.text},h),t.createElement("div",{className:i.buttons},y&&t.createElement(c,e({},{href:y},{icon:n})),w&&t.createElement(c,e({},{href:w},{icon:o}))))))};export{d as Footer};
1
+ import{a as e}from"../tslib.es6-8158ebfc.js";import t from"react";import{_ as l}from"../_tslib-531dfe1b-379f2f77.js";import{Grid as n}from"../grid/component.js";import{IconButton as r}from"../icon-button/component.js";import{SectionWrapper as a}from"../section-wrapper/component.js";import{s as o,C as c}from"../contact-block-c54116cf.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-bd78f5cb.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var m=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v25H0z"}),t.createElement("path",{d:"M6.292 20.96l.926-1.586h-3.16l-.121.21-.083.166a1.364 1.364 0 002.438 1.21zM17.477 15.283l-3.125-5.418-1.584 2.713 4.833 8.377.103.154a1.364 1.364 0 002.26-1.517l-.914-1.582 1.591.002.185-.012a1.364 1.364 0 001.179-1.352l-.013-.185a1.364 1.364 0 00-1.35-1.178l-3.165-.002z",fill:"currentColor"}),t.createElement("path",{d:"M14.87 6.25a1.364 1.364 0 00-2.437-1.209l-.438.744-.423-.738-.104-.154a1.364 1.364 0 00-1.759-.345l-.154.103a1.364 1.364 0 00-.346 1.76l1.205 2.085-3.966 6.789h-3.08l-.185.012a1.364 1.364 0 00.185 2.715h10.96l-1.574-2.728-3.148-.001 5.182-8.866.082-.166z",fill:"currentColor"}))},i=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M13.462 8.875v-2.5c0-.69.653-1.25 1.458-1.25h1.458V2h-2.916c-2.417 0-4.375 1.679-4.375 3.75v3.125H6.17V12h2.917v10h4.375V12h2.916l1.459-3.125h-4.375z",fill:"currentColor"}))},s=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{d:"M6.184 2.255a1.557 1.557 0 00-1.571-.08l8.472 8.999 2.77-2.95-9.671-5.97zm-2.35.753c-.107.24-.164.507-.164.781v16.46c0 .276.058.54.166.774l8.469-9.018-8.47-8.997zm9.252 9.826l-8.458 9.008c.224.11.463.158.701.158.295 0 .589-.075.855-.244l9.673-5.978-2.77-2.944zm6.453-2.336a.198.198 0 00-.01-.007l-2.686-1.658-2.977 3.17 2.98 3.164 2.693-1.664c.5-.322.798-.884.798-1.503 0-.62-.299-1.181-.798-1.502z",fill:"currentColor"}))},p=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.005 7a5 5 0 100 10 5 5 0 000-10zm0 8.125A3.13 3.13 0 018.88 12a3.129 3.129 0 013.125-3.125A3.129 3.129 0 0115.13 12a3.13 3.13 0 01-3.125 3.125z",fill:"currentColor"}),t.createElement("path",{d:"M18.045 6.625a.666.666 0 11-1.332 0 .666.666 0 011.332 0z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.755 2h-7.5a6.25 6.25 0 00-6.25 6.25v7.5A6.25 6.25 0 008.255 22h7.5a6.25 6.25 0 006.25-6.25v-7.5A6.25 6.25 0 0015.755 2zm4.375 13.75a4.38 4.38 0 01-4.375 4.375h-7.5A4.38 4.38 0 013.88 15.75v-7.5a4.38 4.38 0 014.375-4.375h7.5A4.38 4.38 0 0120.13 8.25v7.5z",fill:"currentColor"}))},h=function(e){return t.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t.createElement("path",{d:"M0 0h25v24H0z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.579 4.987a3.87 3.87 0 00-3.574 3.86v6.292A3.871 3.871 0 005.579 19l1.783.137h9.286l1.783-.137a3.87 3.87 0 003.574-3.86V8.846a3.868 3.868 0 00-3.574-3.859l-1.783-.137H7.362l-1.783.137zm9.857 6.625l-5.512 2.923V8.747l5.511 2.865z",fill:"currentColor"}))},d=function(l){var d=l.sections,v=void 0===d?[]:d,u=l.contacts,f=void 0===u?[]:u,E=l.company,w=l.email,g=l.address,b=l.facebookLink,z=l.instagramLink,x=l.youtubeLink,k=l.appText,M=l.google,j=l.appstore,N=b||z||x,C=k&&j&&M;return t.createElement(a,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:o.wrapper},t.createElement("div",{className:o.row_wrapper},t.createElement(n.Row,null,t.createElement(t.Fragment,null,v.map((function(e){return t.createElement(n.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:o.block},t.createElement("span",{className:o.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:o.link,href:e.link},e.text)}))))})),t.createElement(n.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:o.contacts},f.map((function(e){return t.createElement(c,{key:e.title,title:e.title,value:e.value})})),w&&t.createElement("div",{className:o.email},w),t.createElement("br",null),g&&t.createElement("div",{className:o.text},g),t.createElement("br",null),E&&t.createElement("div",{className:o.text},E),t.createElement("br",null),N&&t.createElement("div",{className:o.buttons},b&&t.createElement(r,e({},{href:b},{icon:i})),x&&t.createElement(r,e({},{href:x},{icon:h})),z&&t.createElement(r,e({},{href:z},{icon:p}))))))))),t.createElement("div",{className:o.bottomBlock},C&&t.createElement(t.Fragment,null,t.createElement("div",{className:o.text},k),t.createElement("div",{className:o.buttons},j&&t.createElement(r,e({},{href:j},{icon:m})),M&&t.createElement(r,e({},{href:M},{icon:s}))))))};export{d as Footer};
@@ -1 +1 @@
1
- import"react";export{C as ContactBlock}from"../contact-block-55bf44ac.js";
1
+ import"react";export{C as ContactBlock}from"../contact-block-c54116cf.js";
@@ -1 +1 @@
1
- export{Footer}from"./component.js";import"../tslib.es6-8358f354.js";import"react";import"../index-4f76bb1b.js";import"../_commonjsHelpers-9df6f4dd.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-187a8a87.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-55bf44ac.js";
1
+ export{Footer}from"./component.js";import"../tslib.es6-8158ebfc.js";import"react";import"../_tslib-531dfe1b-379f2f77.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-bd78f5cb.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-c54116cf.js";