@alphakits/ui 1.27.5 → 1.27.7

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 (306) hide show
  1. package/dist/{ActionCopyM-aa4b85a4.js → ActionCopyM-a7f9a7b6.js} +1 -1
  2. package/dist/{ChevronBackM-17d32e3d.js → ChevronBackM-f7b8414e.js} +1 -1
  3. package/dist/{ChevronDownS-a3643184.js → ChevronDownS-0b12dbdb.js} +1 -1
  4. package/dist/{ChevronForwardS-85910d55.js → ChevronForwardS-b29b55e1.js} +1 -1
  5. package/dist/{CloseS-54a65af2.js → CloseS-2c9e98cb.js} +1 -1
  6. package/dist/{NextS-a7f73397.js → NextS-c640533a.js} +1 -1
  7. package/dist/{PlusS-d28817b2.js → PlusS-c9320994.js} +1 -1
  8. package/dist/{SearchM-039fd203.js → SearchM-3c0045d8.js} +1 -1
  9. package/dist/{TrashM-0b97da1d.js → TrashM-bee70a88.js} +1 -1
  10. package/dist/amount/component.js +1 -1
  11. package/dist/amount/index.js +1 -1
  12. package/dist/amount-input/component.js +1 -1
  13. package/dist/amount-input/index.js +1 -1
  14. package/dist/avatar/component.js +1 -1
  15. package/dist/avatar/index.js +1 -1
  16. package/dist/base-card/component.js +1 -1
  17. package/dist/base-card/index.js +1 -1
  18. package/dist/bottom-sheet/component.js +1 -1
  19. package/dist/bottom-sheet/index.js +1 -1
  20. package/dist/button/component.js +1 -1
  21. package/dist/button/index.js +1 -1
  22. package/dist/calendar/component.js +1 -1
  23. package/dist/calendar/components/days-table/component.js +1 -1
  24. package/dist/calendar/components/days-table/index.js +1 -1
  25. package/dist/calendar/components/header/index.js +1 -1
  26. package/dist/calendar/components/header//321/201omponent.js +1 -1
  27. package/dist/calendar/components/months-table/index.js +1 -1
  28. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  29. package/dist/calendar/components/select-button/index.js +1 -1
  30. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  31. package/dist/calendar/components/years-table/index.js +1 -1
  32. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  33. package/dist/calendar/index.js +1 -1
  34. package/dist/calendar/use-calendar.js +1 -1
  35. package/dist/calendar/use-period.js +1 -1
  36. package/dist/calendar/utils.js +1 -1
  37. package/dist/calendar-input/component.js +1 -1
  38. package/dist/calendar-input/index.js +1 -1
  39. package/dist/calendar-input/utils.js +1 -1
  40. package/dist/{capitalize-86c29373.js → capitalize-91e839c3.js} +1 -1
  41. package/dist/card/component.js +1 -1
  42. package/dist/card/images/index.js +1 -1
  43. package/dist/card/index.js +1 -1
  44. package/dist/cell/base/component.js +1 -1
  45. package/dist/cell/base/index.d.ts +1 -1
  46. package/dist/cell/base/index.js +1 -1
  47. package/dist/cell/component.js +1 -1
  48. package/dist/cell/index.js +1 -1
  49. package/dist/cell/pure/component.js +1 -1
  50. package/dist/cell/pure/index.js +1 -1
  51. package/dist/checkbox/component.js +1 -1
  52. package/dist/checkbox/index.js +1 -1
  53. package/dist/checkbox-group/component.js +1 -1
  54. package/dist/checkbox-group/index.js +1 -1
  55. package/dist/checkbox-lists/component.js +1 -1
  56. package/dist/checkbox-lists/index.js +1 -1
  57. package/dist/collapsable-row/addons.js +1 -1
  58. package/dist/collapsable-row/component.js +1 -1
  59. package/dist/collapsable-row/index.js +1 -1
  60. package/dist/collapse/component.js +1 -1
  61. package/dist/collapse/index.js +1 -1
  62. package/dist/{component-9c9ec4c3.js → component-de82bc0b.js} +1 -1
  63. package/dist/copy-button/component.js +1 -1
  64. package/dist/copy-button/index.js +1 -1
  65. package/dist/date/component.js +1 -1
  66. package/dist/date/index.js +1 -1
  67. package/dist/date-functions.js +1 -1
  68. package/dist/date-switcher/component.js +1 -1
  69. package/dist/date-switcher/index.js +1 -1
  70. package/dist/footer/component.js +1 -1
  71. package/dist/footer/contact-block.js +1 -1
  72. package/dist/footer/index.js +1 -1
  73. package/dist/form/component.js +1 -1
  74. package/dist/form/components/form-footer/index.js +1 -1
  75. package/dist/form/components/form-loading/index.js +1 -1
  76. package/dist/form/components/form-wrapper/index.js +1 -1
  77. package/dist/form/components/index.d.ts +1 -1
  78. package/dist/form/components/index.js +1 -1
  79. package/dist/form/index.js +1 -1
  80. package/dist/form/templates/base-form/index.js +1 -1
  81. package/dist/form/templates/filters-form/index.js +1 -1
  82. package/dist/form/templates/rest-form/form.js +1 -1
  83. package/dist/form/templates/rest-form/index.js +1 -1
  84. package/dist/form/utils/get-default-values.js +1 -1
  85. package/dist/form-control/component.js +1 -1
  86. package/dist/form-control/index.js +1 -1
  87. package/dist/grid/col/component.js +1 -1
  88. package/dist/grid/col/index.js +1 -1
  89. package/dist/grid/component.js +1 -1
  90. package/dist/grid/index.js +1 -1
  91. package/dist/grid/row/component.js +1 -1
  92. package/dist/grid/row/index.js +1 -1
  93. package/dist/header-search/component.js +1 -1
  94. package/dist/header-search/index.js +1 -1
  95. package/dist/heading/component.js +1 -1
  96. package/dist/heading/index.js +1 -1
  97. package/dist/hooks/index.js +1 -1
  98. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  99. package/dist/hooks/use-get-one/index.js +1 -1
  100. package/dist/icon-button/component.js +1 -1
  101. package/dist/icon-button/index.js +1 -1
  102. package/dist/image/component.js +1 -1
  103. package/dist/image/constants.d.ts +1 -0
  104. package/dist/image/constants.js +1 -1
  105. package/dist/image/image-base.js +1 -1
  106. package/dist/image/index.js +1 -1
  107. package/dist/image/typings.d.ts +5 -1
  108. package/dist/image/use-image-render-component.js +1 -1
  109. package/dist/image/utils.js +1 -1
  110. package/dist/image-gallery/component.js +1 -1
  111. package/dist/image-gallery/components/header/index.js +1 -1
  112. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  113. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  114. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  115. package/dist/image-gallery/components/index.js +1 -1
  116. package/dist/image-gallery/index.js +1 -1
  117. package/dist/image-uploader/component.d.ts +3 -0
  118. package/dist/image-uploader/component.js +1 -1
  119. package/dist/image-uploader/index.js +1 -1
  120. package/dist/index-0640fd97.js +1 -0
  121. package/dist/index-08b8f243.js +1 -0
  122. package/dist/{index-830c3d99.js → index-0ef4be3d.js} +1 -1
  123. package/dist/{index-919aca27.js → index-1382e840.js} +1 -1
  124. package/dist/index-2c812db6.js +1 -0
  125. package/dist/index-5ccfea62.js +1 -0
  126. package/dist/{index-c62b248d.js → index-7b449668.js} +1 -1
  127. package/dist/index-9c1fc56b.js +1 -0
  128. package/dist/{index-0ce93775.js → index-a4d9a7e9.js} +1 -1
  129. package/dist/{index-f6974649.js → index-a8009d1e.js} +1 -1
  130. package/dist/{index-c312f5c7.js → index-bfc00915.js} +1 -1
  131. package/dist/{index-774c00bd.js → index-cd57b18d.js} +1 -1
  132. package/dist/index-cf1d0271.js +1 -0
  133. package/dist/index.css +1 -1
  134. package/dist/info-block-header/component.js +1 -1
  135. package/dist/info-block-header/index.js +1 -1
  136. package/dist/info-block-item/component.js +1 -1
  137. package/dist/info-block-item/index.js +1 -1
  138. package/dist/input/component.js +1 -1
  139. package/dist/input/index.js +1 -1
  140. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  141. package/dist/input-autocomplete/component.js +1 -1
  142. package/dist/input-autocomplete/index.js +1 -1
  143. package/dist/input-ghost/component.js +1 -1
  144. package/dist/input-ghost/index.js +1 -1
  145. package/dist/{isSymbol-3aeb0bfb.js → isSymbol-85bee84b.js} +1 -1
  146. package/dist/link/component.js +1 -1
  147. package/dist/link/index.js +1 -1
  148. package/dist/list-allert/component.js +1 -1
  149. package/dist/list-allert/index.js +1 -1
  150. package/dist/masked-input/component.js +1 -1
  151. package/dist/masked-input/index.js +1 -1
  152. package/dist/menu/component.js +1 -1
  153. package/dist/menu/components/content-header/index.js +1 -1
  154. package/dist/menu/components/index.js +1 -1
  155. package/dist/menu/components/menu-avatar/index.js +1 -1
  156. package/dist/menu/components/menu-back-button/index.js +1 -1
  157. package/dist/menu/components/menu-button/index.js +1 -1
  158. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  159. package/dist/menu/components/user-button/index.js +1 -1
  160. package/dist/menu/index.js +1 -1
  161. package/dist/message/component.js +1 -1
  162. package/dist/message/index.js +1 -1
  163. package/dist/modal/components/modals/index.js +1 -1
  164. package/dist/modal/components/modals/modal.js +1 -1
  165. package/dist/modal/context.js +1 -1
  166. package/dist/modal/hooks/use-modal.js +1 -1
  167. package/dist/modal/index.js +1 -1
  168. package/dist/modal/utils/delete-property-by-id.js +1 -1
  169. package/dist/not-found/component.js +1 -1
  170. package/dist/not-found/index.js +1 -1
  171. package/dist/notification/component.js +1 -1
  172. package/dist/notification/index.js +1 -1
  173. package/dist/{parse-query-params-423c3dc4.js → parse-query-params-90769231.js} +1 -1
  174. package/dist/picker-button/common/index.js +1 -1
  175. package/dist/picker-button/common/labeled-button/index.js +1 -1
  176. package/dist/picker-button/component.js +1 -1
  177. package/dist/picker-button/field/Component.js +1 -1
  178. package/dist/picker-button/field/index.js +1 -1
  179. package/dist/picker-button/index.js +1 -1
  180. package/dist/popover/component.js +1 -1
  181. package/dist/popover/index.js +1 -1
  182. package/dist/progress-bar/component.js +1 -1
  183. package/dist/progress-bar/index.js +1 -1
  184. package/dist/progress-index/component.js +1 -1
  185. package/dist/progress-index/index.js +1 -1
  186. package/dist/radio/component.js +1 -1
  187. package/dist/radio/index.js +1 -1
  188. package/dist/radio-group/component.js +1 -1
  189. package/dist/radio-group/index.js +1 -1
  190. package/dist/radio-groups/component.js +1 -1
  191. package/dist/radio-groups/index.js +1 -1
  192. package/dist/select/component.js +1 -1
  193. package/dist/select/components/base-select/component.js +1 -1
  194. package/dist/select/components/base-select/index.js +1 -1
  195. package/dist/select/components/field/component.js +1 -1
  196. package/dist/select/components/field/index.js +1 -1
  197. package/dist/select/components/index.js +1 -1
  198. package/dist/select/components/native-select/component.js +1 -1
  199. package/dist/select/components/native-select/index.js +1 -1
  200. package/dist/select/components/option/component.js +1 -1
  201. package/dist/select/components/option/index.js +1 -1
  202. package/dist/select/components/options-list/component.js +1 -1
  203. package/dist/select/components/options-list/index.js +1 -1
  204. package/dist/select/components/virtual-options-list/component.js +1 -1
  205. package/dist/select/components/virtual-options-list/index.js +1 -1
  206. package/dist/select/index.js +1 -1
  207. package/dist/select/presets/index.js +1 -1
  208. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  209. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  210. package/dist/sidepanel-header/component.js +1 -1
  211. package/dist/sidepanel-header/index.js +1 -1
  212. package/dist/space/Item.js +1 -1
  213. package/dist/space/component.js +1 -1
  214. package/dist/space/index.js +1 -1
  215. package/dist/stepped-progress-bar/index.js +1 -1
  216. package/dist/stepped-progress-bar/step-bar.js +1 -1
  217. package/dist/suffix-input/component.js +1 -1
  218. package/dist/suffix-input/index.js +1 -1
  219. package/dist/super-list-header/component.js +1 -1
  220. package/dist/super-list-header/index.js +1 -1
  221. package/dist/super-list-item/component.js +1 -1
  222. package/dist/super-list-item/index.js +1 -1
  223. package/dist/switch/component.js +1 -1
  224. package/dist/switch/index.js +1 -1
  225. package/dist/table/columns.js +1 -1
  226. package/dist/table/component.js +1 -1
  227. package/dist/table/components/cell/component.js +1 -1
  228. package/dist/table/components/cell/index.js +1 -1
  229. package/dist/table/components/cells/index.js +1 -1
  230. package/dist/table/components/empty-list/index.js +1 -1
  231. package/dist/table/components/error/index.js +1 -1
  232. package/dist/table/components/loading/index.js +1 -1
  233. package/dist/table/components/pagination/index.js +1 -1
  234. package/dist/table/components/table-header/index.js +1 -1
  235. package/dist/table/hooks/use-table-data.js +1 -1
  236. package/dist/table/index.d.ts +1 -1
  237. package/dist/table/index.js +1 -1
  238. package/dist/table/table.js +1 -1
  239. package/dist/table/utils/add-query-param.js +1 -1
  240. package/dist/table/utils/get-query-from-url.js +1 -1
  241. package/dist/table/utils/index.d.ts +1 -1
  242. package/dist/table/utils/index.js +1 -1
  243. package/dist/table/utils/parse-query-params.js +1 -1
  244. package/dist/table/utils/prepare-rows.js +1 -1
  245. package/dist/table/utils/query-adapter.js +1 -1
  246. package/dist/table/utils/remove-query-param.js +1 -1
  247. package/dist/table/utils/reset-query-param.js +1 -1
  248. package/dist/table-status/component.js +1 -1
  249. package/dist/table-status/index.js +1 -1
  250. package/dist/tag/component.js +1 -1
  251. package/dist/tag/index.js +1 -1
  252. package/dist/tags-list/component.js +1 -1
  253. package/dist/tags-list/index.js +1 -1
  254. package/dist/textarea/component.js +1 -1
  255. package/dist/textarea/index.js +1 -1
  256. package/dist/toast/component.js +1 -1
  257. package/dist/toast/index.js +1 -1
  258. package/dist/toast-notifier/component.js +1 -1
  259. package/dist/toast-notifier/index.js +1 -1
  260. package/dist/toast-plate/component.js +1 -1
  261. package/dist/toast-plate/index.js +1 -1
  262. package/dist/tooltip/component.js +1 -1
  263. package/dist/tooltip/index.js +1 -1
  264. package/dist/typography/component.js +1 -1
  265. package/dist/typography/index.js +1 -1
  266. package/dist/typography/text/component.js +1 -1
  267. package/dist/typography/text/index.js +1 -1
  268. package/dist/typography/title/component.js +1 -1
  269. package/dist/typography/title/index.js +1 -1
  270. package/dist/typography/title-responsive/component.js +1 -1
  271. package/dist/typography/title-responsive/index.js +1 -1
  272. package/dist/use-image-render-component-d0a2c5ed.js +1 -0
  273. package/dist/utils/format-date/index.js +1 -1
  274. package/dist/utils/index.js +1 -1
  275. package/dist/utils/show-toast/index.js +1 -1
  276. package/dist/with-suffix/component.js +1 -1
  277. package/dist/with-suffix/index.js +1 -1
  278. package/package.json +1 -1
  279. package/dist/index-309023f9.js +0 -1
  280. package/dist/index-6e63e97d.js +0 -1
  281. package/dist/index-87e782a6.js +0 -1
  282. package/dist/index-921629e8.js +0 -1
  283. package/dist/index-ec01bf34.js +0 -1
  284. package/dist/index-ffae730f.js +0 -1
  285. package/dist/use-image-render-component-ca789f11.js +0 -1
  286. /package/dist/{_commonjsHelpers-bde83fdc.js → _commonjsHelpers-6254bf22.js} +0 -0
  287. /package/dist/{_tslib-531dfe1b-2283800e.js → _tslib-531dfe1b-315a658b.js} +0 -0
  288. /package/dist/{colors.module-7a4e1a90.js → colors.module-7496a229.js} +0 -0
  289. /package/dist/{common.module-154dcf4f.js → common.module-f754d89c.js} +0 -0
  290. /package/dist/{component-98daca59.d.ts → component-84cd2fd5.d.ts} +0 -0
  291. /package/dist/{component-98daca59.js → component-84cd2fd5.js} +0 -0
  292. /package/dist/{component-9c9ec4c3.d.ts → component-de82bc0b.d.ts} +0 -0
  293. /package/dist/{contact-block-0890a465.d.ts → contact-block-677cf9ec.d.ts} +0 -0
  294. /package/dist/{contact-block-0890a465.js → contact-block-677cf9ec.js} +0 -0
  295. /package/dist/{gutters.module-63b206dd.js → gutters.module-57db1b1e.js} +0 -0
  296. /package/dist/{index-c62b248d.d.ts → index-7b449668.d.ts} +0 -0
  297. /package/dist/{index-f91e9e5f.js → index-dbea6413.js} +0 -0
  298. /package/dist/{index-273a50a2.js → index-f50541ee.js} +0 -0
  299. /package/dist/{intersection-observer-36083cbd.js → intersection-observer-481c77e5.js} +0 -0
  300. /package/dist/{parse-query-params-423c3dc4.d.ts → parse-query-params-90769231.d.ts} +0 -0
  301. /package/dist/{slide-18855803.d.ts → slide-6a054e33.d.ts} +0 -0
  302. /package/dist/{slide-18855803.js → slide-6a054e33.js} +0 -0
  303. /package/dist/{step-bar-64130865.d.ts → step-bar-48497af4.d.ts} +0 -0
  304. /package/dist/{step-bar-64130865.js → step-bar-48497af4.js} +0 -0
  305. /package/dist/{tslib.es6-e7101b9a.js → tslib.es6-113a246c.js} +0 -0
  306. /package/dist/{use-image-render-component-ca789f11.d.ts → use-image-render-component-d0a2c5ed.d.ts} +0 -0
@@ -1 +0,0 @@
1
- import{r as e,t}from"./index-f91e9e5f.js";function r(r,n){e(2,arguments);var i=t(r),a=t(n);return i.getTime()===a.getTime()}function n(r){e(1,arguments);var n=t(r);return function(r){e(1,arguments);var n=t(r);return n.setHours(23,59,59,999),n}(n).getTime()===function(r){e(1,arguments);var n=t(r),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}(n).getTime()}function i(r,n){e(2,arguments);var i=t(r).getTime(),a=t(n.start).getTime(),u=t(n.end).getTime();if(!(a<=u))throw new RangeError("Invalid interval");return i>=a&&i<=u}export{n as a,i as b,r as i};
@@ -1 +0,0 @@
1
- import{t as r}from"./index-f6974649.js";import{b as e}from"./index-ec01bf34.js";import{r as f}from"./index-f91e9e5f.js";function n(n,o){f(2,arguments);var s=r(o);return e(n,12*s)}function o(e,o){return f(2,arguments),n(e,-r(o))}export{n as a,o as s};
@@ -1 +0,0 @@
1
- import{d as e}from"./index-ec01bf34.js";import{r}from"./index-f91e9e5f.js";function o(o){return r(1,arguments),e(o,Date.now())}export{o as i};
@@ -1 +0,0 @@
1
- import{t as e,g as t}from"./index-f6974649.js";import{r as n,t as r}from"./index-f91e9e5f.js";function a(t,a){n(2,arguments);var i=r(t),o=e(a);return isNaN(o)?new Date(NaN):o?(i.setDate(i.getDate()+o),i):i}function i(t,a){n(2,arguments);var i=r(t),o=e(a);if(isNaN(o))return new Date(NaN);if(!o)return i;var s=i.getDate(),u=new Date(i.getTime());return u.setMonth(i.getMonth()+o+1,0),s>=u.getDate()?u:(i.setFullYear(u.getFullYear(),u.getMonth(),s),i)}function o(e,t){n(2,arguments);var a=r(e),i=r(t);return a.getTime()>i.getTime()}function s(e,t){n(2,arguments);var a=r(e),i=r(t);return a.getTime()<i.getTime()}function u(e){n(1,arguments);var t=r(e);return t.setHours(0,0,0,0),t}function l(e,t){n(2,arguments);var r=u(e),a=u(t);return r.getTime()===a.getTime()}function v(a,i){var o,s,u,l,v,f,g,d;n(1,arguments);var c=t(),m=e(null!==(o=null!==(s=null!==(u=null!==(l=null==i?void 0:i.weekStartsOn)&&void 0!==l?l:null==i||null===(v=i.locale)||void 0===v||null===(f=v.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:c.weekStartsOn)&&void 0!==s?s:null===(g=c.locale)||void 0===g||null===(d=g.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==o?o:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=r(a),D=w.getDay(),N=(D<m?7:0)+D-m;return w.setDate(w.getDate()-N),w.setHours(0,0,0,0),w}function f(e){return n(1,arguments),v(e,{weekStartsOn:1})}function g(t,r){return n(2,arguments),a(t,-e(r))}export{a,i as b,s as c,l as d,f as e,v as f,g,o as i,u as s};
@@ -1 +0,0 @@
1
- import{r as e,t as r}from"./index-f91e9e5f.js";function t(t,a){e(2,arguments);var n=r(t),o=r(a);return n.getFullYear()===o.getFullYear()}function a(r){return e(1,arguments),t(r,Date.now())}export{a,t as i};
@@ -1 +0,0 @@
1
- import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{_ as r}from"./_tslib-531dfe1b-2283800e.js";import i from"classnames";import{Spinner as l}from"./spinner/component.js";import{Typography as m}from"./typography/component.js";import"./image/typings.js";import{sizes as a,textSizes as d}from"./image/constants.js";import{getSrc as _,getCharsFromText as s}from"./image/utils.js";var c=function(t){return e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{d:"M7.005 2a5 5 0 00-5 5v7.117l6.213-6.079 6.26 6.126 3.124-3.047 4.403 4.296V7a5 5 0 00-5-5h-10z",fill:"currentColor"}),e.createElement("path",{d:"M21.777 18.495l-4.175-4.074-1.432 1.397 4.586 4.488c.458-.52.81-1.134 1.021-1.81zM18.776 21.677L8.218 11.347 2.02 17.409A5 5 0 007.005 22h10a4.99 4.99 0 001.771-.323z",fill:"currentColor"}))},u=function(t){return e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),e.createElement("path",{d:"M0 0h17v17H0z"}),e.createElement("path",{d:"M4.678 1.34a3.333 3.333 0 00-3.333 3.333v4.745l4.142-4.053L9.66 9.45l2.082-2.032 2.935 2.864V4.673a3.333 3.333 0 00-3.333-3.333H4.678z",fill:"currentColor"}),e.createElement("path",{d:"M14.527 12.337L11.742 9.62l-.955.931 3.057 2.992a3.33 3.33 0 00.681-1.207zM12.525 14.458L5.487 7.571l-4.131 4.042a3.334 3.334 0 003.322 3.06h6.667c.415 0 .813-.076 1.18-.215z",fill:"currentColor"}))},x={component:"index-module_component__Jf39Y",default:"index-module_default__7yCk8",primary:"index-module_primary__NmfOf","primary-inverted":"index-module_primary-inverted__LgfAy",secondary:"index-module_secondary__mFC44","secondary-inverted":"index-module_secondary-inverted__A3WWS",positive:"index-module_positive__KObTG",negative:"index-module_negative__JSntK",attention:"index-module_attention__xn0w7",accent:"index-module_accent__OKgO0",broken:"index-module_broken__U-IUD",image:"index-module_image__m6QQ3",hint:"index-module_hint__U93qq",hint_text:"index-module_hint_text__iACDk",textContent:"index-module_textContent__zwpfH",xs:"index-module_xs__WMoNb",s:"index-module_s__Hg5M9",m:"index-module_m__C8KqW",l:"index-module_l__bAVTF",xl:"index-module_xl__4V4rQ",circle:"index-module_circle__a7zSR",ellipse:"index-module_ellipse__omc91",defs:"index-module_defs__-U1g-",textS:"index-module_textS__rn-Mq",textXs:"index-module_textXs__qpkPR",textM:"index-module_textM__mXb7s",textL:"index-module_textL__jV-69"},p=function(r){var p=r.src,f=void 0===p?"":p,g=r.resolution,h=r.size,v=r.alt,w=r.text,y=r.icon,E=e.useState("loading"),M=E[0],z=E[1],C=t(0),b=g||a[h],j=n((function(){return _(f,b)}),[b,f]);return o((function(){if(j){C.current=Date.now(),z("loading");var e=new Image;e.src=j,e.onload=function(){z("loaded")},e.onerror=function(){Date.now()-C.current<15e3?setTimeout((function(){e.src=j}),1e3):z("error")}}else z("error")}),[j]),y||("loading"===M?e.createElement(l,{className:x.spinner,size:"s",view:"dark"}):"error"===M&&w?e.createElement(m.Text,{className:i(x.textContent,x[d[h]]),view:"component",color:"tertiary",weight:"bold"},s(w.toUpperCase())):"error"===M?e.createElement(m.Text,{className:x.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===h?e.createElement(u,null):e.createElement(c,null)):e.createElement("img",{className:x.image,src:f,alt:v}))};export{c as P,x as s,p as u};
File without changes
File without changes
File without changes