@alphakits/ui 1.21.4 → 1.21.5

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 (255) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/amount-input/component.js +1 -1
  4. package/dist/amount-input/index.js +1 -1
  5. package/dist/avatar/component.js +1 -1
  6. package/dist/avatar/index.js +1 -1
  7. package/dist/base-card/component.js +1 -1
  8. package/dist/base-card/index.js +1 -1
  9. package/dist/bottom-sheet/component.js +1 -1
  10. package/dist/bottom-sheet/index.js +1 -1
  11. package/dist/button/component.js +1 -1
  12. package/dist/button/index.js +1 -1
  13. package/dist/calendar/component.js +1 -1
  14. package/dist/calendar/components/days-table/component.js +1 -1
  15. package/dist/calendar/components/days-table/index.js +1 -1
  16. package/dist/calendar/components/header/index.js +1 -1
  17. package/dist/calendar/components/header//321/201omponent.js +1 -1
  18. package/dist/calendar/components/months-table/index.js +1 -1
  19. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  20. package/dist/calendar/components/select-button/index.js +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table/index.js +1 -1
  23. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  24. package/dist/calendar/index.js +1 -1
  25. package/dist/calendar-input/component.js +1 -1
  26. package/dist/calendar-input/index.js +1 -1
  27. package/dist/card/component.js +1 -1
  28. package/dist/card/images/index.js +1 -1
  29. package/dist/card/index.js +1 -1
  30. package/dist/cell/base/component.js +1 -1
  31. package/dist/cell/base/index.d.ts +1 -1
  32. package/dist/cell/base/index.js +1 -1
  33. package/dist/cell/component.js +1 -1
  34. package/dist/cell/index.js +1 -1
  35. package/dist/cell/pure/component.js +1 -1
  36. package/dist/cell/pure/index.js +1 -1
  37. package/dist/checkbox/component.js +1 -1
  38. package/dist/checkbox/index.js +1 -1
  39. package/dist/checkbox-group/component.js +1 -1
  40. package/dist/checkbox-group/index.js +1 -1
  41. package/dist/checkbox-lists/component.js +1 -1
  42. package/dist/checkbox-lists/index.js +1 -1
  43. package/dist/collapsable-row/addons.js +1 -1
  44. package/dist/collapsable-row/component.js +1 -1
  45. package/dist/collapsable-row/index.js +1 -1
  46. package/dist/collapse/component.js +1 -1
  47. package/dist/collapse/index.js +1 -1
  48. package/dist/copy-button/component.js +1 -1
  49. package/dist/copy-button/index.js +1 -1
  50. package/dist/date/component.js +1 -1
  51. package/dist/date/index.js +1 -1
  52. package/dist/date-switcher/component.js +1 -1
  53. package/dist/date-switcher/index.js +1 -1
  54. package/dist/footer/component.js +1 -1
  55. package/dist/footer/contact-block.js +1 -1
  56. package/dist/footer/index.js +1 -1
  57. package/dist/form/component.js +1 -1
  58. package/dist/form/components/form-footer/index.js +1 -1
  59. package/dist/form/components/form-loading/index.js +1 -1
  60. package/dist/form/components/form-wrapper/index.js +1 -1
  61. package/dist/form/components/index.d.ts +1 -1
  62. package/dist/form/components/index.js +1 -1
  63. package/dist/form/index.js +1 -1
  64. package/dist/form/templates/crud-form/index.js +1 -1
  65. package/dist/form/templates/filters-form/index.js +1 -1
  66. package/dist/form/templates/rest-form/index.js +1 -1
  67. package/dist/form/utils/get-default-values.js +1 -1
  68. package/dist/form-control/component.js +1 -1
  69. package/dist/form-control/index.js +1 -1
  70. package/dist/grid/col/component.js +1 -1
  71. package/dist/grid/col/index.js +1 -1
  72. package/dist/grid/component.js +1 -1
  73. package/dist/grid/index.js +1 -1
  74. package/dist/grid/row/component.js +1 -1
  75. package/dist/grid/row/index.js +1 -1
  76. package/dist/header-search/component.js +1 -1
  77. package/dist/header-search/index.js +1 -1
  78. package/dist/heading/component.js +1 -1
  79. package/dist/heading/index.js +1 -1
  80. package/dist/hooks/index.js +1 -1
  81. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  82. package/dist/hooks/use-get-one/index.js +1 -1
  83. package/dist/icon-button/component.js +1 -1
  84. package/dist/icon-button/index.js +1 -1
  85. package/dist/image/component.js +1 -1
  86. package/dist/image/image-base.js +1 -1
  87. package/dist/image/index.js +1 -1
  88. package/dist/image/use-image-render-component.js +1 -1
  89. package/dist/image-gallery/component.js +1 -1
  90. package/dist/image-gallery/components/header/index.js +1 -1
  91. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  92. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  93. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  94. package/dist/image-gallery/components/index.js +1 -1
  95. package/dist/image-gallery/index.js +1 -1
  96. package/dist/image-uploader/component.js +1 -1
  97. package/dist/image-uploader/index.js +1 -1
  98. package/dist/{index-0f29be45.js → index-6523e1fd.js} +2 -2
  99. package/dist/{index-ba916a37.js → index-f6ca2dd8.js} +1 -1
  100. package/dist/index.css +1 -1
  101. package/dist/info-block-header/component.js +1 -1
  102. package/dist/info-block-header/index.js +1 -1
  103. package/dist/info-block-item/component.js +1 -1
  104. package/dist/info-block-item/index.js +1 -1
  105. package/dist/input/component.js +1 -1
  106. package/dist/input/index.js +1 -1
  107. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  108. package/dist/input-autocomplete/component.js +1 -1
  109. package/dist/input-autocomplete/index.js +1 -1
  110. package/dist/link/component.js +1 -1
  111. package/dist/link/index.js +1 -1
  112. package/dist/list-allert/component.js +1 -1
  113. package/dist/list-allert/index.js +1 -1
  114. package/dist/masked-input/component.js +1 -1
  115. package/dist/masked-input/index.js +1 -1
  116. package/dist/menu/component.js +1 -1
  117. package/dist/menu/components/content-header/index.js +1 -1
  118. package/dist/menu/components/index.js +1 -1
  119. package/dist/menu/components/menu-avatar/index.js +1 -1
  120. package/dist/menu/components/menu-button/index.js +1 -1
  121. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  122. package/dist/menu/components/user-button/index.js +1 -1
  123. package/dist/menu/index.js +1 -1
  124. package/dist/message/component.js +1 -1
  125. package/dist/message/index.js +1 -1
  126. package/dist/modal/components/modals/index.js +1 -1
  127. package/dist/modal/context.js +1 -1
  128. package/dist/modal/hooks/use-modal.js +1 -1
  129. package/dist/modal/index.js +1 -1
  130. package/dist/not-found/component.js +1 -1
  131. package/dist/not-found/index.js +1 -1
  132. package/dist/notification/component.js +1 -1
  133. package/dist/notification/index.js +1 -1
  134. package/dist/{parse-query-params-b223b0e4.js → parse-query-params-11e14635.js} +1 -1
  135. package/dist/picker-button/common/index.js +1 -1
  136. package/dist/picker-button/common/labeled-button/index.js +1 -1
  137. package/dist/picker-button/component.js +1 -1
  138. package/dist/picker-button/field/Component.js +1 -1
  139. package/dist/picker-button/field/index.js +1 -1
  140. package/dist/picker-button/index.js +1 -1
  141. package/dist/popover/component.js +1 -1
  142. package/dist/popover/index.js +1 -1
  143. package/dist/progress-bar/component.js +1 -1
  144. package/dist/progress-bar/index.js +1 -1
  145. package/dist/progress-index/component.js +1 -1
  146. package/dist/progress-index/index.js +1 -1
  147. package/dist/radio/component.js +1 -1
  148. package/dist/radio/index.js +1 -1
  149. package/dist/radio-group/component.js +1 -1
  150. package/dist/radio-group/index.js +1 -1
  151. package/dist/radio-groups/component.js +1 -1
  152. package/dist/radio-groups/index.js +1 -1
  153. package/dist/select/component.js +1 -1
  154. package/dist/select/components/base-select/component.js +1 -1
  155. package/dist/select/components/base-select/index.js +1 -1
  156. package/dist/select/components/field/component.js +1 -1
  157. package/dist/select/components/field/index.js +1 -1
  158. package/dist/select/components/index.js +1 -1
  159. package/dist/select/components/native-select/component.js +1 -1
  160. package/dist/select/components/native-select/index.js +1 -1
  161. package/dist/select/components/option/component.js +1 -1
  162. package/dist/select/components/option/index.js +1 -1
  163. package/dist/select/components/virtual-options-list/component.js +1 -1
  164. package/dist/select/components/virtual-options-list/index.js +1 -1
  165. package/dist/select/index.js +1 -1
  166. package/dist/select/presets/index.js +1 -1
  167. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  168. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  169. package/dist/sidepanel-header/component.js +1 -1
  170. package/dist/sidepanel-header/index.js +1 -1
  171. package/dist/space/Item.js +1 -1
  172. package/dist/space/component.js +1 -1
  173. package/dist/space/index.js +1 -1
  174. package/dist/suffix-input/component.js +1 -1
  175. package/dist/suffix-input/index.js +1 -1
  176. package/dist/super-list-header/component.js +1 -1
  177. package/dist/super-list-header/index.js +1 -1
  178. package/dist/super-list-item/component.js +1 -1
  179. package/dist/super-list-item/index.js +1 -1
  180. package/dist/switch/component.js +1 -1
  181. package/dist/switch/index.js +1 -1
  182. package/dist/table/columns.js +1 -1
  183. package/dist/table/component.js +1 -1
  184. package/dist/table/components/cell/component.js +1 -1
  185. package/dist/table/components/cell/index.js +1 -1
  186. package/dist/table/components/cells/index.js +1 -1
  187. package/dist/table/components/empty-list/index.js +1 -1
  188. package/dist/table/components/error/index.js +1 -1
  189. package/dist/table/components/loading/index.js +1 -1
  190. package/dist/table/components/pagination/index.js +1 -1
  191. package/dist/table/components/table-header/index.js +1 -1
  192. package/dist/table/hooks/use-table-data.js +1 -1
  193. package/dist/table/index.d.ts +1 -1
  194. package/dist/table/index.js +1 -1
  195. package/dist/table/table.js +1 -1
  196. package/dist/table/utils/add-query-param.js +1 -1
  197. package/dist/table/utils/get-query-from-url.js +1 -1
  198. package/dist/table/utils/index.d.ts +1 -1
  199. package/dist/table/utils/index.js +1 -1
  200. package/dist/table/utils/parse-query-params.js +1 -1
  201. package/dist/table/utils/prepare-rows.js +1 -1
  202. package/dist/table/utils/query-adapter.js +1 -1
  203. package/dist/table/utils/remove-query-param.js +1 -1
  204. package/dist/table/utils/reset-query-param.js +1 -1
  205. package/dist/table-status/component.js +1 -1
  206. package/dist/table-status/index.js +1 -1
  207. package/dist/tag/component.js +1 -1
  208. package/dist/tag/index.js +1 -1
  209. package/dist/tags-list/component.js +1 -1
  210. package/dist/tags-list/index.js +1 -1
  211. package/dist/tariff-builder/component.js +1 -1
  212. package/dist/tariff-builder/index.js +1 -1
  213. package/dist/textarea/component.js +1 -1
  214. package/dist/textarea/index.js +1 -1
  215. package/dist/toast/component.js +1 -1
  216. package/dist/toast/index.js +1 -1
  217. package/dist/toast-notifier/component.js +1 -1
  218. package/dist/toast-notifier/index.js +1 -1
  219. package/dist/toast-plate/component.js +1 -1
  220. package/dist/toast-plate/index.js +1 -1
  221. package/dist/tooltip/component.js +1 -1
  222. package/dist/tooltip/index.js +1 -1
  223. package/dist/typography/component.js +1 -1
  224. package/dist/typography/index.js +1 -1
  225. package/dist/typography/text/component.js +1 -1
  226. package/dist/typography/text/index.js +1 -1
  227. package/dist/typography/title/component.js +1 -1
  228. package/dist/typography/title/index.js +1 -1
  229. package/dist/typography/title-responsive/component.js +1 -1
  230. package/dist/typography/title-responsive/index.js +1 -1
  231. package/dist/utils/format-date/index.js +1 -1
  232. package/dist/utils/index.js +1 -1
  233. package/dist/utils/show-toast/index.js +1 -1
  234. package/dist/with-suffix/component.js +1 -1
  235. package/dist/with-suffix/index.js +1 -1
  236. package/package.json +1 -1
  237. /package/dist/{_commonjsHelpers-e854c77f.js → _commonjsHelpers-e3cff120.js} +0 -0
  238. /package/dist/{colors.module-cc319cd9.js → colors.module-2cceaa94.js} +0 -0
  239. /package/dist/{common.module-917ab3ab.js → common.module-7d3d34ba.js} +0 -0
  240. /package/dist/{component-cadbe611.d.ts → component-03e791f7.d.ts} +0 -0
  241. /package/dist/{component-cadbe611.js → component-03e791f7.js} +0 -0
  242. /package/dist/{component-3e103840.d.ts → component-1f7b086f.d.ts} +0 -0
  243. /package/dist/{component-3e103840.js → component-1f7b086f.js} +0 -0
  244. /package/dist/{contact-block-b7dba5db.d.ts → contact-block-8508421a.d.ts} +0 -0
  245. /package/dist/{contact-block-b7dba5db.js → contact-block-8508421a.js} +0 -0
  246. /package/dist/{gutters.module-ad3ce9fe.js → gutters.module-f0f62407.js} +0 -0
  247. /package/dist/{index-f24b6b62.js → index-df699221.js} +0 -0
  248. /package/dist/{index-ba916a37.d.ts → index-f6ca2dd8.d.ts} +0 -0
  249. /package/dist/{intersection-observer-62c2439b.js → intersection-observer-3c8e12bf.js} +0 -0
  250. /package/dist/{parse-query-params-b223b0e4.d.ts → parse-query-params-11e14635.d.ts} +0 -0
  251. /package/dist/{slide-eefee5d3.d.ts → slide-557a8c5b.d.ts} +0 -0
  252. /package/dist/{slide-eefee5d3.js → slide-557a8c5b.js} +0 -0
  253. /package/dist/{tslib.es6-95bb0870.js → tslib.es6-c746db7b.js} +0 -0
  254. /package/dist/{use-image-render-component-2711941e.d.ts → use-image-render-component-a5346037.d.ts} +0 -0
  255. /package/dist/{use-image-render-component-2711941e.js → use-image-render-component-a5346037.js} +0 -0
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-95bb0870.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,g=o(l,["value","currency","showMinorPart","isCanceled"]),b=m({value:u,currency:d,showMinorPart:j}),f=b.majorPart,w=b.minorPart,_=b.currencySymbol,x=g,P=x.className,B=x.color,M=void 0===B?"secondary":B,N=x.view,C=void 0===N?"title":N,q=x.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},g,{view:C,weight:E,color:M,className:e(c,P,(p={},p[n]=h,p))}),f,w&&s,w,!!_&&""+a+a+_)};export{l as Amount};
1
+ import{_ as o,a as t}from"../tslib.es6-c746db7b.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as a,THINSP as s}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,g=o(l,["value","currency","showMinorPart","isCanceled"]),f=m({value:u,currency:d,showMinorPart:j}),w=f.majorPart,_=f.minorPart,b=f.currencySymbol,x=g,P=x.className,B=x.color,M=void 0===B?"secondary":B,N=x.view,C=void 0===N?"title":N,q=x.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},g,{view:C,weight:E,color:M,className:e(c,P,(p={},p[n]=h,p))}),w,_&&a,_,!!b&&""+s+s+b)};export{l as Amount};
@@ -1 +1 @@
1
- export{Amount}from"./component.js";import"../tslib.es6-95bb0870.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
1
+ export{Amount}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-95bb0870.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,b=void 0===y?"":y,E=o.bold,w=void 0===E||E,A=o.className,R=o.focusedClassName,S=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=w,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:S,placeholder:b,value:J,className:l(v.component,A),focusedClassName:R,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
1
+ import{_ as e,a as t}from"../tslib.es6-c746db7b.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,b=void 0===y?"":y,E=o.bold,w=void 0===E||E,A=o.className,R=o.focusedClassName,S=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=w,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:S,placeholder:b,value:J,className:l(v.component,A),focusedClassName:R,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
@@ -1 +1 @@
1
- export{AmountInput}from"./component.js";import"../tslib.es6-95bb0870.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
1
+ export{AmountInput}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
@@ -1 +1 @@
1
- import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-95bb0870.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-2711941e.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,a=i.text,c=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([s.wrapper,(p={},p[s.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:m.xs,view:"circle",size:"s",src:n,text:a}),c&&o.createElement("div",{className:s.slot},c))};export{i as Avatar};
1
+ import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-c746db7b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-a5346037.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,a=i.text,c=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([s.wrapper,(p={},p[s.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:m.xs,view:"circle",size:"s",src:n,text:a}),c&&o.createElement("div",{className:s.slot},c))};export{i as Avatar};
@@ -1 +1 @@
1
- export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-95bb0870.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-2711941e.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
1
+ export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-c746db7b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-a5346037.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"alpha-cli-icons";import{ImageSizes as i}from"../image/typings.js";import"../image/constants.js";import{PureImage as m}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-95bb0870.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",n="index-module_bottomSpace__Di-8N",s="index-module_footer__kIafr",r="index-module_withBorder__r41KZ",d="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var j,E=h.className,b=h.bottomSpace,f=void 0===b||b,y=h.orientation,N=void 0===y?"vertical":y,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(j={},j[r]=J,j[d]=k,j[n]=!f,j),E)},!!B&&e.createElement("div",{className:_},e.createElement(m,{src:B,orientation:N,resolution:i.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!f&&e.createElement("div",{className:u})),e.createElement("div",{className:s},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"alpha-cli-icons";import{ImageSizes as i}from"../image/typings.js";import"../image/constants.js";import{PureImage as m}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-c746db7b.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",n="index-module_bottomSpace__Di-8N",d="index-module_footer__kIafr",s="index-module_withBorder__r41KZ",r="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var j,E=h.className,b=h.bottomSpace,f=void 0===b||b,y=h.orientation,N=void 0===y?"vertical":y,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(j={},j[s]=J,j[r]=k,j[n]=!f,j),E)},!!B&&e.createElement("div",{className:_},e.createElement(m,{src:B,orientation:N,resolution:i.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!f&&e.createElement("div",{className:u})),e.createElement("div",{className:d},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
@@ -1 +1 @@
1
- export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-95bb0870.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
1
+ export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-c746db7b.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
@@ -1,4 +1,4 @@
1
- import e from"react";import{c as t,u as n}from"../_commonjsHelpers-e854c77f.js";import{r}from"../index-0f29be45.js";import{ChevronBackM as o}from"alpha-cli-icons";
1
+ import e from"react";import{c as t,u as n}from"../_commonjsHelpers-e3cff120.js";import{r}from"../index-6523e1fd.js";import{ChevronBackM as o}from"alpha-cli-icons";
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
@@ -1 +1 @@
1
- export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-e854c77f.js";import"../index-0f29be45.js";import"alpha-cli-icons";
1
+ export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-e3cff120.js";import"../index-6523e1fd.js";import"alpha-cli-icons";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../tslib.es6-95bb0870.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import r from"classnames";import{useFocus as a}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,g=void 0===h?"m":h,v=s.block,k=void 0!==v&&v,w=s.className,y=s.dataTestId,E=s.href,N=s.loading,T=void 0!==N&&N,j=s.nowrap,A=void 0!==j&&j,I=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=a(J,"keyboard")[0],P={className:r(i.component,i[f],i[g],(m={},m[i.focused]=O,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},z=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:r(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var R=I.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,_])}),z)}var U=I,Z=U.disabled,F=e(U,["disabled"]);return o.createElement("button",d({},P,F,{disabled:Z||T,ref:l([J,_])}),z)}));export{s as Button};
1
+ import{_ as e,a as d}from"../tslib.es6-c746db7b.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import r from"classnames";import{useFocus as a}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,g=void 0===h?"m":h,v=s.block,k=void 0!==v&&v,w=s.className,y=s.dataTestId,E=s.href,N=s.loading,T=void 0!==N&&N,j=s.nowrap,A=void 0!==j&&j,I=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=a(J,"keyboard")[0],P={className:r(i.component,i[f],i[g],(m={},m[i.focused]=O,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},z=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:r(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var R=I.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,_])}),z)}var U=I,Z=U.disabled,F=e(U,["disabled"]);return o.createElement("button",d({},P,F,{disabled:Z||T,ref:l([J,_])}),z)}));export{s as Button};
@@ -1 +1 @@
1
- export{Button}from"./component.js";import"../tslib.es6-95bb0870.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{Button}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-95bb0870.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{ru as m,de as c,enGB as l}from"date-fns/locale";import{DaysTable as d}from"./components/days-table/component.js";import{Header as h}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{YearsTable as u}from"./components/years-table/сomponent.js";import{useCalendar as f}from"./use-calendar.js";import{useDidUpdateEffect as v,monthName as g}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var w="index-module_component__SJQwG",y="index-module_container__3PFvh",M="index-module_sixWeeks__NcW9R",D={ru:m,de:c,en:l},x=o((function(o,m){var c,l=o.className,x=o.defaultView,j=void 0===x?"days":x,P=o.selectorView,b=void 0===P?"full":P,k=o.value,N=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,S=o.maxDate,F=o.selectedFrom,T=o.selectedTo,Y=o.offDays,A=o.events,V=o.onChange,R=o.onMonthChange,W=o.locale,B=void 0===W?"en":W,G=o.shortNames,I=void 0===G||G,J=o.dataTestId,L=n(j),Q=L[0],q=L[1],z=n(!1),H=z[0],K=z[1],O=D[B],U=r((function(){return k?new Date(k):void 0}),[k]),X=r((function(){return i(U||C)}),[]),Z=r((function(){return N?new Date(N):void 0}),[N]),$=r((function(){return E?new Date(E):void 0}),[E]),ee=r((function(){return S?new Date(S):void 0}),[S]),te=f({month:Z,defaultMonth:X,view:Q,minDate:$,maxDate:ee,selected:U,offDays:Y,events:A,onChange:V,onMonthChange:R}),oe=te.activeMonth,ne=te.weeks,re=te.months,se=te.years,ae=te.canSetPrevMonth,ie=te.canSetNextMonth,me=te.setMonthByDate,ce=te.setPrevMonth,le=te.setNextMonth,de=te.highlighted,he=te.getDayProps,pe=te.getMonthProps,ue=te.getYearProps,fe=te.getRootProps,ve=s((function(e){q(Q===e?"days":e)}),[Q]),ge=s((function(e){K(e>0)}),[]),we=s((function(){ce()}),[ce]),ye=s((function(){le()}),[le]),Me=s((function(){ve("months")}),[ve]),De=s((function(){ve("years")}),[ve]);return v((function(){q("days")}),[oe]),v((function(){K(!1)}),[Q]),v((function(){var e=k&&i(k);e&&e.getTime()!==oe.getTime()&&me(e)}),[k]),t.createElement("div",e({},fe({ref:m}),{className:a(w,l,(c={},c[M]=6===ne.length,c)),"data-test-id":J}),t.createElement(h,{month:g(oe,O,!1),year:oe.getFullYear().toString(),prevArrowVisible:ae,nextArrowVisible:ie,onPrevArrowClick:we,onNextArrowClick:ye,onMonthClick:Me,onYearClick:De,view:b,withShadow:H}),t.createElement("div",{className:y},"days"===Q&&t.createElement(d,{locale:O,weeks:ne,activeMonth:oe,selectedFrom:F,selectedTo:T,getDayProps:he,highlighted:de}),"months"===Q&&t.createElement(p,{selectedMonth:oe,selectedLocale:O,shortNames:I,months:re,getMonthProps:pe}),"years"===Q&&t.createElement(u,{selectedYear:oe,years:se,getYearProps:ue,onScroll:ge})))}));export{x as Calendar};
1
+ import{a as e}from"../tslib.es6-c746db7b.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{ru as m,de as c,enGB as l}from"date-fns/locale";import{DaysTable as d}from"./components/days-table/component.js";import{Header as h}from"./components/header/сomponent.js";import{MonthsTable as p}from"./components/months-table/сomponent.js";import{YearsTable as u}from"./components/years-table/сomponent.js";import{useCalendar as f}from"./use-calendar.js";import{useDidUpdateEffect as v,monthName as g}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var w="index-module_component__SJQwG",y="index-module_container__3PFvh",M="index-module_sixWeeks__NcW9R",D={ru:m,de:c,en:l},x=o((function(o,m){var c,l=o.className,x=o.defaultView,j=void 0===x?"days":x,P=o.selectorView,b=void 0===P?"full":P,k=o.value,N=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,S=o.maxDate,F=o.selectedFrom,T=o.selectedTo,Y=o.offDays,A=o.events,V=o.onChange,R=o.onMonthChange,W=o.locale,B=void 0===W?"en":W,G=o.shortNames,I=void 0===G||G,J=o.dataTestId,L=n(j),Q=L[0],q=L[1],z=n(!1),H=z[0],K=z[1],O=D[B],U=r((function(){return k?new Date(k):void 0}),[k]),X=r((function(){return i(U||C)}),[]),Z=r((function(){return N?new Date(N):void 0}),[N]),$=r((function(){return E?new Date(E):void 0}),[E]),ee=r((function(){return S?new Date(S):void 0}),[S]),te=f({month:Z,defaultMonth:X,view:Q,minDate:$,maxDate:ee,selected:U,offDays:Y,events:A,onChange:V,onMonthChange:R}),oe=te.activeMonth,ne=te.weeks,re=te.months,se=te.years,ae=te.canSetPrevMonth,ie=te.canSetNextMonth,me=te.setMonthByDate,ce=te.setPrevMonth,le=te.setNextMonth,de=te.highlighted,he=te.getDayProps,pe=te.getMonthProps,ue=te.getYearProps,fe=te.getRootProps,ve=s((function(e){q(Q===e?"days":e)}),[Q]),ge=s((function(e){K(e>0)}),[]),we=s((function(){ce()}),[ce]),ye=s((function(){le()}),[le]),Me=s((function(){ve("months")}),[ve]),De=s((function(){ve("years")}),[ve]);return v((function(){q("days")}),[oe]),v((function(){K(!1)}),[Q]),v((function(){var e=k&&i(k);e&&e.getTime()!==oe.getTime()&&me(e)}),[k]),t.createElement("div",e({},fe({ref:m}),{className:a(w,l,(c={},c[M]=6===ne.length,c)),"data-test-id":J}),t.createElement(h,{month:g(oe,O,!1),year:oe.getFullYear().toString(),prevArrowVisible:ae,nextArrowVisible:ie,onPrevArrowClick:we,onNextArrowClick:ye,onMonthClick:Me,onYearClick:De,view:b,withShadow:H}),t.createElement("div",{className:y},"days"===Q&&t.createElement(d,{locale:O,weeks:ne,activeMonth:oe,selectedFrom:F,selectedTo:T,getDayProps:he,highlighted:de}),"months"===Q&&t.createElement(p,{selectedMonth:oe,selectedLocale:O,shortNames:I,months:re,getMonthProps:pe}),"years"===Q&&t.createElement(u,{selectedYear:oe,years:se,getYearProps:ue,onScroll:ge})))}));export{x as Calendar};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-95bb0870.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as n,CSSTransition as i}from"react-transition-group";import r from"classnames";import{isSameDay as l,isWithinInterval as o,isLastDayOfMonth as s,startOfMonth as m,isToday as _,isEqual as u}from"date-fns";import{Button as c}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var g={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",rangeEnd:"index-module_rangeEnd__z7AV7",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},f=function(f){var v=f.weeks,E=void 0===v?[]:v,h=f.activeMonth,p=void 0===h?new Date:h,b=f.highlighted,A=f.selectedFrom,k=f.selectedTo,D=f.getDayProps,N=f.locale,j=a(p);j.current=p;var T=y(p),L=T&&(p<T?"right":"left"),w=x(A,k,b),B=Array(7).fill(1).map((function(e,t){var a,d=t+1;return null===(a=null==N?void 0:N.localize)||void 0===a?void 0:a.day(7===d?0:d,{width:"abbreviated"})})),M=d((function(){return B.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:r(g.daysTable,L&&g[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(n,{component:null},t.createElement(i,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,E.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,n=a.selected||A&&l(a.date,A)||k&&l(a.date,k),i=!n&&w&&o(a.date,w),y=1===a.date.getDate(),x=s(a.date),f=y&&i&&w&&a.date>w.start,v=x&&i&&w&&a.date<w.end,E=w&&l(a.date,w.start),h=w&&l(a.date,w.end),p=D(a);return t.createElement(c,e({},p,{ref:function(e){m(a.date).getTime()===j.current.getTime()&&p.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:r(g.day,(d={},d[g.selected]=n,d[g.range]=i,d[g.rangeStart]=E,d[g.rangeEnd]=h,d[g.transitLeft]=f,d[g.transitRight]=v,d[g.today]=_(a.date),d[g.firstDay]=y,d[g.lastDay]=x,d[g.event]=a.event,d[g.disabled]=a.disabled,d[g.highlighted]=b&&u(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{f as DaysTable};
1
+ import{a as e}from"../../../tslib.es6-c746db7b.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as n,CSSTransition as i}from"react-transition-group";import r from"classnames";import{isSameDay as l,isWithinInterval as o,isLastDayOfMonth as s,startOfMonth as m,isToday as _,isEqual as u}from"date-fns";import{Button as c}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var g={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",rangeEnd:"index-module_rangeEnd__z7AV7",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},f=function(f){var v=f.weeks,E=void 0===v?[]:v,h=f.activeMonth,p=void 0===h?new Date:h,b=f.highlighted,A=f.selectedFrom,k=f.selectedTo,D=f.getDayProps,N=f.locale,j=a(p);j.current=p;var T=y(p),L=T&&(p<T?"right":"left"),w=x(A,k,b),B=Array(7).fill(1).map((function(e,t){var a,d=t+1;return null===(a=null==N?void 0:N.localize)||void 0===a?void 0:a.day(7===d?0:d,{width:"abbreviated"})})),M=d((function(){return B.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:r(g.daysTable,L&&g[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(n,{component:null},t.createElement(i,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,E.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,n=a.selected||A&&l(a.date,A)||k&&l(a.date,k),i=!n&&w&&o(a.date,w),y=1===a.date.getDate(),x=s(a.date),f=y&&i&&w&&a.date>w.start,v=x&&i&&w&&a.date<w.end,E=w&&l(a.date,w.start),h=w&&l(a.date,w.end),p=D(a);return t.createElement(c,e({},p,{ref:function(e){m(a.date).getTime()===j.current.getTime()&&p.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:r(g.day,(d={},d[g.selected]=n,d[g.range]=i,d[g.rangeStart]=E,d[g.rangeEnd]=h,d[g.transitLeft]=f,d[g.transitRight]=v,d[g.today]=_(a.date),d[g.firstDay]=y,d[g.lastDay]=x,d[g.event]=a.event,d[g.disabled]=a.disabled,d[g.highlighted]=b&&u(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{f as DaysTable};
@@ -1 +1 @@
1
- export{DaysTable}from"./component.js";import"../../../tslib.es6-95bb0870.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
1
+ export{DaysTable}from"./component.js";import"../../../tslib.es6-c746db7b.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
@@ -1 +1 @@
1
- export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-95bb0870.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
1
+ export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-c746db7b.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
@@ -1 +1 @@
1
- import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-95bb0870.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,b=r.onNextArrowClick,v=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:v},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:b,"aria-label":"Следующий месяц"})))};export{r as Header};
1
+ import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-c746db7b.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,b=r.onNextArrowClick,v=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:v},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:b,"aria-label":"Следующий месяц"})))};export{r as Header};
@@ -1 +1 @@
1
- export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-95bb0870.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-c746db7b.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-95bb0870.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as s}from"../../utils.js";import{SelectButton as m}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__Eq4Jn",i="index-module_button__XgrJs",c=function(c){var d=c.selectedMonth,l=c.months,p=void 0===l?[]:l,u=c.getMonthProps,f=c.selectedLocale,b=c.shortNames,h=o((function(e){return d&&r(d,e.date)?"selected":n(e.date)?"outlined":"default"}),[d]);return t.createElement("div",{className:a},p.map((function(o){return t.createElement(m,e({},u(o),{key:o.date.getMonth(),className:i,view:h(o)}),s(o.date,f,b))})))};export{c as MonthsTable};
1
+ import{a as e}from"../../../tslib.es6-c746db7b.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as s}from"../../utils.js";import{SelectButton as m}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__Eq4Jn",i="index-module_button__XgrJs",c=function(c){var d=c.selectedMonth,l=c.months,p=void 0===l?[]:l,u=c.getMonthProps,f=c.selectedLocale,b=c.shortNames,h=o((function(e){return d&&r(d,e.date)?"selected":n(e.date)?"outlined":"default"}),[d]);return t.createElement("div",{className:a},p.map((function(o){return t.createElement(m,e({},u(o),{key:o.date.getMonth(),className:i,view:h(o)}),s(o.date,f,b))})))};export{c as MonthsTable};
@@ -1 +1 @@
1
- export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-95bb0870.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-c746db7b.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../../../tslib.es6-95bb0870.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,b=i.view,_=void 0===b?"default":b,c=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},c,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[_],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
1
+ import{_ as e,a as d}from"../../../tslib.es6-c746db7b.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,b=i.view,c=void 0===b?"default":b,_=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},_,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[c],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
@@ -1 +1 @@
1
- export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-95bb0870.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-c746db7b.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-95bb0870.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__7bRtn",i="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,b=u.getYearProps,_=u.onScroll,g=r(null),v=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),x=o((function(e){_(e.currentTarget.scrollTop)}),[_]);return n((function(){var e=g.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,_(e.scrollTop)}}),[_,p]),t.createElement("div",{className:c,onScroll:x,ref:g},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},b(r),{key:r.getFullYear(),view:v(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
1
+ import{a as e}from"../../../tslib.es6-c746db7b.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__7bRtn",i="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,b=u.getYearProps,_=u.onScroll,g=r(null),v=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),x=o((function(e){_(e.currentTarget.scrollTop)}),[_]);return n((function(){var e=g.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,_(e.scrollTop)}}),[_,p]),t.createElement("div",{className:c,onScroll:x,ref:g},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},b(r),{key:r.getFullYear(),view:v(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
@@ -1 +1 @@
1
- export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-95bb0870.js";import"react";import"classnames";import"date-fns";import"date-fns/locale";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
1
+ export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-c746db7b.js";import"react";import"classnames";import"date-fns";import"date-fns/locale";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-95bb0870.js";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as m}from"react";import l from"react-merge-refs";import p from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import"date-fns";import{MaskedInput as d}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import"../toast-notifier/component.js";import{formatDate as f}from"../utils/format-date/index.js";import{parseDateString as v,isCompleteDateInput as j,DATE_MASK as b,SUPPORTS_INPUT_TYPE_DATE as g,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-e854c77f.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"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../index-f24b6b62.js";var y="index-module_component__pdVE2",x="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=g&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,me=a(!1),le=me[0],pe=me[1],se=a(O),ce=se[0],de=se[1],ue=oe?ce:R,fe=ue?v(ue).getTime():void 0,ve=c(fe,U,B),je=X||ee,be=r(null),ge=r(null),he=r(null),ye=r(null),xe=i((function(e){"Escape"===e.key&&pe(!1)}),[]),_e=i((function(){le||pe(!0)}),[le]),Ce=i((function(e){pe(!0),!le&&"INPUT"!==e.target.tagName&&ye.current&&ye.current.focus()}),[le]),ke=i((function(e){ye.current&&!1===ye.current.contains(e.relatedTarget)&&pe(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&ye.current&&(e.preventDefault(),ye.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&&de(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"),pe(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){pe(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(s,t({},L,{ref:ye,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:p(y,N,(w={},w[x]=M,w)),tabIndex:-1,onKeyDown:je?void 0:xe,onClick:je?void 0:_e,onFocus:je?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(d,t({},te,{ref:l([D,be]),wrapperRef:l([W,ge]),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:l([D,be]),defaultValue:O,onChange:Me,className:k})),onKeyDown:De,onChange:Ee,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&o.createElement(u,{open:le,anchorElement:ge.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-c746db7b.js";import o,{forwardRef as n,useState as a,useRef as r,useCallback as i,useEffect as m}from"react";import l from"react-merge-refs";import p 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 h,NATIVE_DATE_FORMAT as b}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-e3cff120.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"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../index-df699221.js";var y="index-module_component__pdVE2",x="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=h&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!ne&&!ae,me=a(!1),le=me[0],pe=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),he=r(null),be=r(null),ye=r(null),xe=i((function(e){"Escape"===e.key&&pe(!1)}),[]),_e=i((function(){le||pe(!0)}),[le]),Ce=i((function(e){pe(!0),!le&&"INPUT"!==e.target.tagName&&ye.current&&ye.current.focus()}),[le]),ke=i((function(e){ye.current&&!1===ye.current.contains(e.relatedTarget)&&pe(!1)}),[]),De=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&ye.current&&(e.preventDefault(),ye.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,b),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"),pe(!1)}),[we]),Ie=i((function(e){e.preventDefault()}),[]);m((function(){pe(T)}),[T]);var Pe=i((function(){return o.createElement("div",{onMouseDown:Ie},o.createElement(s,t({},L,{ref:ye,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:be,className:p(y,N,(w={},w[x]=M,w)),tabIndex:-1,onKeyDown:je?void 0:xe,onClick:je?void 0:_e,onFocus:je?void 0:Ce,onBlur:ke,"data-test-id":K},o.createElement(c,t({},te,{ref:l([D,ge]),wrapperRef:l([W,he]),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:l([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:le,anchorElement:he.current,popperClassName:_,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:G},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-95bb0870.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-e854c77f.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"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-f24b6b62.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-c746db7b.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-e3cff120.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"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-df699221.js";
@@ -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-95bb0870.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-2711941e.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,a=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,v=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),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),a))};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-c746db7b.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-a5346037.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,a=void 0===n?"default":n,s=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,v=r.titleAddons;return e.createElement("div",{className:t([m.component,m[a]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:a}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{r as Card};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"alpha-cli-icons";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-2711941e.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-95bb0870.js";import"../../typography/title/component.js";import"../../colors.module-cc319cd9.js";import"../../common.module-917ab3ab.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var a=s.images,p=void 0===a?[]:a,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:p[0],resolution:r.m})))};export{s as CardImages};
1
+ import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"alpha-cli-icons";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-a5346037.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-c746db7b.js";import"../../typography/title/component.js";import"../../colors.module-2cceaa94.js";import"../../common.module-7d3d34ba.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"},a=function(a){var s=a.images,p=void 0===s?[]:s,c=a.orientation,l=void 0===c?"horizontal":c,d=a.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:p[0],resolution:r.m})))};export{a 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-95bb0870.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-2711941e.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-c746db7b.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-a5346037.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-cadbe611.js";import"../../typography/title/index.js";import"../../tslib.es6-95bb0870.js";import"../../typography/title/component.js";import"../../colors.module-cc319cd9.js";import"../../common.module-917ab3ab.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-03e791f7.js";import"../../typography/title/index.js";import"../../tslib.es6-c746db7b.js";import"../../typography/title/component.js";import"../../colors.module-2cceaa94.js";import"../../common.module-7d3d34ba.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export * from "../../component-cadbe611";
1
+ export * from "../../component-03e791f7";
@@ -1 +1 @@
1
- export{B as Base}from"../../component-cadbe611.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-95bb0870.js";import"../../typography/title/component.js";import"../../colors.module-cc319cd9.js";import"../../common.module-917ab3ab.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ export{B as Base}from"../../component-03e791f7.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-c746db7b.js";import"../../typography/title/component.js";import"../../colors.module-2cceaa94.js";import"../../common.module-7d3d34ba.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-cadbe611.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-95bb0870.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{C as Cell}from"../component-03e791f7.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-c746db7b.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-cadbe611.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-95bb0870.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-03e791f7.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-c746db7b.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.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-95bb0870.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
1
+ import{_ as e,a as r}from"../../tslib.es6-c746db7b.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,O=o.dataTestId,f=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",O,!0)},f),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
@@ -1 +1 @@
1
- export{Pure}from"./component.js";import"../../tslib.es6-95bb0870.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
1
+ export{Pure}from"./component.js";import"../../tslib.es6-c746db7b.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-95bb0870.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,k=d.align,f=void 0===k?"center":k,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,y=d.dataTestId,z=d.indeterminate,D=void 0!==z&&z,O=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return a.createElement("label",{className:i(s.component,s[p],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},a.createElement("span",{className:s.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&a.createElement(l,null),D&&!u&&a.createElement("div",{className:s.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:s.content},b&&a.createElement("span",{className:s.label},b),x&&a.createElement("span",{className:s.hint},x)),E&&a.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
1
+ import{_ as e,a as n}from"../tslib.es6-c746db7b.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=a((function(a,r){var _,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,k=a.align,f=void 0===k?"center":k,E=a.addons,N=a.block,g=a.onChange,I=a.className,v=a.name,C=a.disabled,y=a.dataTestId,z=a.indeterminate,D=void 0!==z&&z,O=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return d.createElement("label",{className:i(s.component,s[p],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&d.createElement(l,null),D&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),x&&d.createElement("span",{className:s.hint},x)),E&&d.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-95bb0870.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-95bb0870.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"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,p=void 0===s?[]:s,d=m.data,u=void 0===d?[]:d,v=m.onChange,g=m.columns,y=void 0===g?1:g,h=m.gr,b=void 0===h?20:h,f=m.gc,x=void 0===f?20:f,j=m.dataTestId,k=p||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:b,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-c746db7b.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"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,d=void 0===s?[]:s,p=m.data,u=void 0===p?[]:p,v=m.onChange,g=m.columns,y=void 0===g?1:g,h=m.gr,b=void 0===h?20:h,f=m.gc,x=void 0===f?20:f,j=m.dataTestId,k=d||[],_=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:b,gc:x},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
@@ -1 +1 @@
1
- export{CheckboxGroup}from"./component.js";import"../tslib.es6-95bb0870.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";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-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroup}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";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-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-95bb0870.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-e854c77f.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-cc319cd9.js";import"../common.module-917ab3ab.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,_=u.selected,b=u.checkableParent,j=u.collapsable,v=u.onChange,E=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&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,l=e.element;return b?t.createElement(r,{block:!0,checked:(n=l.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(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.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:l(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(r,{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-c746db7b.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-e3cff120.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-2cceaa94.js";import"../common.module-7d3d34ba.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,_=u.selected,b=u.checkableParent,j=u.collapsable,v=u.onChange,E=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&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,l=e.element;return b?t.createElement(r,{block:!0,checked:(n=l.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(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.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:l(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(r,{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-95bb0870.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-e854c77f.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-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroups}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-e3cff120.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-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";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-95bb0870.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-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
1
+ import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";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-c746db7b.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-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
@@ -1 +1 @@
1
- import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";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-e854c77f.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-95bb0870.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-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",c="index-module_row__g6gnE",l="index-module_label__kuH6r",a="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,b=u.label,x=u.content,f=u.expanded,y=u.addons,h=u.children,g=u.disabled,v=o(f),E=v[0],w=v[1];return t((function(){w(f)}),[f]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:c},b&&e.createElement(s.Text,{className:l,color:"secondary",view:"title",weight:"medium"},b),x),e.createElement("div",{className:c},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(a,(j={},j[d]=E,j)),disabled:g,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
1
+ import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";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-e3cff120.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-c746db7b.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-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",c="index-module_label__kuH6r",l="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,x=u.label,b=u.content,f=u.expanded,y=u.addons,h=u.children,g=u.disabled,v=o(f),E=v[0],w=v[1];return t((function(){w(f)}),[f]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:a},x&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},x),b),e.createElement("div",{className:a},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(l,(j={},j[d]=E,j)),disabled:g,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"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-e854c77f.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-95bb0870.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-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-e3cff120.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-c746db7b.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-2cceaa94.js";import"../common.module-7d3d34ba.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-e854c77f.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-95bb0870.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-e3cff120.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-c746db7b.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-e854c77f.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-95bb0870.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
1
+ export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-e3cff120.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-c746db7b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import t from"react";import{ActionCopyM as o}from"alpha-cli-icons";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import{IconButton as r}from"../icon-button/component.js";import"../tslib.es6-95bb0870.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-cc319cd9.js";import"../common.module-917ab3ab.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 t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(r,{icon:o,className:p,onClick:function(t){t.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{ActionCopyM as o}from"alpha-cli-icons";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import{IconButton as r}from"../icon-button/component.js";import"../tslib.es6-c746db7b.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-2cceaa94.js";import"../common.module-7d3d34ba.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 t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(r,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){e({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
@@ -1 +1 @@
1
- export{CopyButton}from"./component.js";import"react";import"alpha-cli-icons";import"../toast-notifier/component.js";import"../tslib.es6-95bb0870.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-cc319cd9.js";import"../common.module-917ab3ab.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"alpha-cli-icons";import"../toast-notifier/component.js";import"../tslib.es6-c746db7b.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-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";
@@ -1 +1 @@
1
- import{_ as t,a as e}from"../tslib.es6-95bb0870.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 p}from"date-fns/locale";import{p as d}from"../index-f24b6b62.js";import{Typography as n}from"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var y={ru:r,de:m,en:i,pl:s,cs:p},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,p=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=d(a+l,n,new Date)}return o(e,i,{locale:y[p]})}catch(t){return"Invalid date"}},c=function(o){var r=o.className,m=o.dataTestId,i=o.date,s=o.time,p=o.format,d=void 0===p?"dd.MM.yyyy":p,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:d,language:c,time:s}))};export{c as FormattedDate,l as normalizeDate};
1
+ import{_ as t,a as e}from"../tslib.es6-c746db7b.js";import a from"react";import{format as o}from"date-fns";import{ru as r,de as m,enGB as d,pl as i,cs as s}from"date-fns/locale";import{p}from"../index-df699221.js";import{Typography as n}from"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var y={ru:r,de:m,en:d,pl:i,cs:s},l=function(t){var e,a=t.date,r=t.time,m=t.format,d=void 0===m?"dd MMMM yyyy, HH:mm":m,i=t.language,s=void 0===i?"de":i;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,d,{locale:y[s]})}catch(t){return"Invalid date"}},c=function(o){var r=o.className,m=o.dataTestId,d=o.date,i=o.time,s=o.format,p=void 0===s?"dd.MM.yyyy":s,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:d,format:p,language:c,time:i}))};export{c as FormattedDate,l as normalizeDate};
@@ -1 +1 @@
1
- export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-95bb0870.js";import"react";import"date-fns";import"date-fns/locale";import"../index-f24b6b62.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-cc319cd9.js";import"../common.module-917ab3ab.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{FormattedDate,normalizeDate}from"./component.js";import"../tslib.es6-c746db7b.js";import"react";import"date-fns";import"date-fns/locale";import"../index-df699221.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"classnames";import"../colors.module-2cceaa94.js";import"../common.module-7d3d34ba.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";