@maggioli-design-system/magma 2.0.0-beta.5 → 2.0.1

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 (346) hide show
  1. package/README.md +2 -1
  2. package/dist/cjs/index.cjs.js +64 -22
  3. package/dist/cjs/{locale.it-D-rxNDkm.js → locale.it-CfUV2hxK.js} +13 -10
  4. package/dist/cjs/mds-avatar.cjs.entry.js +27 -32
  5. package/dist/cjs/mds-badge.cjs.entry.js +3 -2
  6. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -2
  7. package/dist/cjs/mds-bibliography.cjs.entry.js +4 -3
  8. package/dist/cjs/mds-button_3.cjs.entry.js +36 -10
  9. package/dist/cjs/mds-dropdown.cjs.entry.js +4 -3
  10. package/dist/cjs/mds-entity.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-file-preview.cjs.entry.js +18 -18
  12. package/dist/cjs/mds-file.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-header.cjs.entry.js +17 -8
  14. package/dist/cjs/mds-img.cjs.entry.js +3 -3
  15. package/dist/cjs/mds-input-date-range.cjs.entry.js +7 -5
  16. package/dist/cjs/mds-input-select.cjs.entry.js +10 -8
  17. package/dist/cjs/mds-input-upload.cjs.entry.js +10 -6
  18. package/dist/cjs/mds-input.cjs.entry.js +4 -4
  19. package/dist/cjs/mds-keyboard-key.cjs.entry.js +8 -5
  20. package/dist/cjs/mds-keyboard.cjs.entry.js +6 -3
  21. package/dist/cjs/mds-mention.cjs.entry.js +3 -2
  22. package/dist/cjs/mds-notification.cjs.entry.js +11 -8
  23. package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -2
  24. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +3 -2
  25. package/dist/cjs/mds-push-notification-item.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-stepper-bar.cjs.entry.js +5 -3
  27. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +3 -2
  28. package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
  29. package/dist/cjs/mds-text.cjs.entry.js +2 -1
  30. package/dist/cjs/mds-toast.cjs.entry.js +9 -3
  31. package/dist/cjs/mds-tooltip.cjs.entry.js +4 -4
  32. package/dist/collection/common/file.js +13 -10
  33. package/dist/collection/components/mds-avatar/mds-avatar.js +27 -32
  34. package/dist/collection/components/mds-badge/mds-badge.js +3 -2
  35. package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -2
  36. package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -3
  37. package/dist/collection/components/mds-button/mds-button.js +7 -6
  38. package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -3
  39. package/dist/collection/components/mds-file-preview/mds-file-preview.js +6 -7
  40. package/dist/collection/components/mds-header/mds-header.js +17 -8
  41. package/dist/collection/components/mds-icon/mds-icon.js +29 -4
  42. package/dist/collection/components/mds-icon/services/icons-set.service.js +47 -18
  43. package/dist/collection/components/mds-img/mds-img.js +3 -3
  44. package/dist/collection/components/mds-input/mds-input.js +4 -4
  45. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +7 -5
  46. package/dist/collection/components/mds-input-select/mds-input-select.js +10 -8
  47. package/dist/collection/components/mds-input-upload/mds-input-upload.js +10 -6
  48. package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -3
  49. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +8 -5
  50. package/dist/collection/components/mds-mention/mds-mention.js +3 -2
  51. package/dist/collection/components/mds-notification/mds-notification.js +11 -8
  52. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +3 -2
  53. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
  54. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +5 -3
  55. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +3 -2
  56. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -2
  57. package/dist/collection/components/mds-text/mds-text.js +2 -1
  58. package/dist/collection/components/mds-toast/mds-toast.js +9 -3
  59. package/dist/collection/components/mds-tooltip/mds-tooltip.js +4 -4
  60. package/dist/collection/dictionary/icon.js +1 -1
  61. package/dist/components/index.js +1 -1
  62. package/dist/components/mds-accordion-item.js +1 -1
  63. package/dist/components/mds-accordion-timer-item.js +1 -1
  64. package/dist/components/mds-avatar-stack-item.js +1 -1
  65. package/dist/components/mds-avatar-stack.js +1 -1
  66. package/dist/components/mds-avatar.js +1 -1
  67. package/dist/components/mds-badge.js +1 -1
  68. package/dist/components/mds-banner.js +1 -1
  69. package/dist/components/mds-benchmark-bar.js +1 -1
  70. package/dist/components/mds-bibliography.js +1 -1
  71. package/dist/components/mds-breadcrumb-item.js +1 -1
  72. package/dist/components/mds-breadcrumb.js +1 -1
  73. package/dist/components/mds-button-dropdown.js +1 -1
  74. package/dist/components/mds-button.js +1 -1
  75. package/dist/components/mds-calendar-cell.js +1 -1
  76. package/dist/components/mds-calendar.js +1 -1
  77. package/dist/components/mds-chip.js +1 -1
  78. package/dist/components/mds-dropdown.js +1 -1
  79. package/dist/components/mds-entity.js +1 -1
  80. package/dist/components/mds-file-preview.js +1 -1
  81. package/dist/components/mds-file.js +3 -3
  82. package/dist/components/mds-filter-item.js +1 -1
  83. package/dist/components/mds-filter.js +1 -1
  84. package/dist/components/mds-header-bar.js +1 -1
  85. package/dist/components/mds-header.js +1 -1
  86. package/dist/components/mds-help.js +1 -1
  87. package/dist/components/mds-horizontal-scroll.js +1 -1
  88. package/dist/components/mds-icon.js +1 -1
  89. package/dist/components/mds-img.js +1 -1
  90. package/dist/components/mds-input-date-range-preselection.js +1 -1
  91. package/dist/components/mds-input-date-range.js +1 -1
  92. package/dist/components/mds-input-date.js +1 -1
  93. package/dist/components/mds-input-field.js +1 -1
  94. package/dist/components/mds-input-otp.js +1 -1
  95. package/dist/components/mds-input-range.js +1 -1
  96. package/dist/components/mds-input-select.js +1 -1
  97. package/dist/components/mds-input-switch.js +1 -1
  98. package/dist/components/mds-input-tip-item.js +1 -1
  99. package/dist/components/mds-input-upload.js +1 -1
  100. package/dist/components/mds-input.js +1 -1
  101. package/dist/components/mds-keyboard-key.js +1 -1
  102. package/dist/components/mds-keyboard.js +1 -1
  103. package/dist/components/mds-kpi-item.js +1 -1
  104. package/dist/components/mds-label.js +1 -1
  105. package/dist/components/mds-list-item.js +1 -1
  106. package/dist/components/mds-mention.js +1 -1
  107. package/dist/components/mds-modal.js +1 -1
  108. package/dist/components/mds-note.js +1 -1
  109. package/dist/components/mds-notification.js +1 -1
  110. package/dist/components/mds-paginator-item.js +1 -1
  111. package/dist/components/mds-paginator.js +1 -1
  112. package/dist/components/mds-policy-ai.js +1 -1
  113. package/dist/components/mds-pref-animation.js +1 -1
  114. package/dist/components/mds-pref-consumption.js +1 -1
  115. package/dist/components/mds-pref-contrast.js +1 -1
  116. package/dist/components/mds-pref-language-item.js +1 -1
  117. package/dist/components/mds-pref-language.js +1 -1
  118. package/dist/components/mds-pref-mode.js +1 -1
  119. package/dist/components/mds-pref-theme-item.js +1 -1
  120. package/dist/components/mds-pref-theme.js +1 -1
  121. package/dist/components/mds-pref.js +1 -1
  122. package/dist/components/mds-price-table-features-cell.js +1 -1
  123. package/dist/components/mds-price-table-features.js +1 -1
  124. package/dist/components/mds-price-table-list-item.js +1 -1
  125. package/dist/components/mds-progress.js +1 -1
  126. package/dist/components/mds-push-notification-item.js +1 -1
  127. package/dist/components/mds-push-notification.js +1 -1
  128. package/dist/components/mds-quote.js +1 -1
  129. package/dist/components/mds-radial-menu-item.js +1 -1
  130. package/dist/components/mds-radial-menu.js +1 -1
  131. package/dist/components/mds-radial-progress.js +1 -1
  132. package/dist/components/mds-status-bar.js +1 -1
  133. package/dist/components/mds-stepper-bar-item.js +1 -1
  134. package/dist/components/mds-stepper-bar.js +1 -1
  135. package/dist/components/mds-tab-bar-item.js +1 -1
  136. package/dist/components/mds-tab-item.js +1 -1
  137. package/dist/components/mds-table-header-cell.js +1 -1
  138. package/dist/components/mds-table-header.js +1 -1
  139. package/dist/components/mds-table-row.js +1 -1
  140. package/dist/components/mds-table.js +1 -1
  141. package/dist/components/mds-text.js +1 -1
  142. package/dist/components/mds-toast.js +1 -1
  143. package/dist/components/mds-tooltip.js +1 -1
  144. package/dist/components/mds-tree-item.js +1 -1
  145. package/dist/components/mds-url-view.js +1 -1
  146. package/dist/components/mds-usage.js +1 -1
  147. package/dist/components/{p-D3-GP4KF.js → p-6K9sFzLr.js} +1 -1
  148. package/dist/components/p-BBhbQT2f.js +1 -0
  149. package/dist/components/{p-B2A_hlV2.js → p-BFpRu7yD.js} +1 -1
  150. package/dist/components/p-BL63WAAq.js +8 -0
  151. package/dist/components/{p-Deh5Aia-.js → p-BShLEry5.js} +1 -1
  152. package/dist/components/{p-BJNK4p33.js → p-BYxxgEE_.js} +1 -1
  153. package/dist/components/p-BZFyAX-6.js +1 -0
  154. package/dist/components/p-BtMdmkID.js +1 -0
  155. package/dist/components/{p-Caksrfcd.js → p-ByaUOMp0.js} +1 -1
  156. package/dist/components/p-C1xZO_fq.js +1 -0
  157. package/dist/components/{p-cBZsPiMJ.js → p-C6Q4zFh6.js} +1 -1
  158. package/dist/components/{p-DLE5TNTp.js → p-CUQ7WIXh.js} +1 -1
  159. package/dist/components/p-Cd_8zD_I.js +1 -0
  160. package/dist/components/{p-DtxB7DYE.js → p-CnAeawmf.js} +1 -1
  161. package/dist/components/{p-Bt4xX5ww.js → p-DCrjf0F0.js} +1 -1
  162. package/dist/components/p-DlHJvYE7.js +1 -0
  163. package/dist/components/{p-BH3bWzRT.js → p-DlaJNPdd.js} +1 -1
  164. package/dist/components/{p-sqRs6oj4.js → p-DnrQaRnh.js} +1 -1
  165. package/dist/components/{p-CBLAz3_J.js → p-OPg_Naue.js} +1 -1
  166. package/dist/components/{p-C03KYHGv.js → p-RS4yyl41.js} +1 -1
  167. package/dist/components/{p--8aaJX-p.js → p-gv3eu44S.js} +1 -1
  168. package/dist/components/p-kff6xSdW.js +1 -0
  169. package/dist/components/p-pys1EQ60.js +1 -0
  170. package/dist/components/p-qketFgr0.js +1 -0
  171. package/dist/components/{p-B14Ci2fO.js → p-s2Gu6hY7.js} +1 -1
  172. package/dist/components/p-zml3K7nx.js +1 -0
  173. package/dist/documentation.json +5 -5
  174. package/dist/esm/index.js +64 -22
  175. package/dist/esm/{locale.it-Dj8sWDfj.js → locale.it-Cvxh7La5.js} +13 -10
  176. package/dist/esm/mds-avatar.entry.js +27 -32
  177. package/dist/esm/mds-badge.entry.js +3 -2
  178. package/dist/esm/mds-benchmark-bar.entry.js +3 -2
  179. package/dist/esm/mds-bibliography.entry.js +4 -3
  180. package/dist/esm/mds-button_3.entry.js +36 -10
  181. package/dist/esm/mds-dropdown.entry.js +4 -3
  182. package/dist/esm/mds-entity.entry.js +1 -1
  183. package/dist/esm/mds-file-preview.entry.js +18 -18
  184. package/dist/esm/mds-file.entry.js +1 -1
  185. package/dist/esm/mds-header.entry.js +17 -8
  186. package/dist/esm/mds-img.entry.js +3 -3
  187. package/dist/esm/mds-input-date-range.entry.js +7 -5
  188. package/dist/esm/mds-input-select.entry.js +10 -8
  189. package/dist/esm/mds-input-upload.entry.js +10 -6
  190. package/dist/esm/mds-input.entry.js +4 -4
  191. package/dist/esm/mds-keyboard-key.entry.js +8 -5
  192. package/dist/esm/mds-keyboard.entry.js +6 -3
  193. package/dist/esm/mds-mention.entry.js +3 -2
  194. package/dist/esm/mds-notification.entry.js +11 -8
  195. package/dist/esm/mds-pref-language-item.entry.js +3 -2
  196. package/dist/esm/mds-pref-theme-item.entry.js +3 -2
  197. package/dist/esm/mds-push-notification-item.entry.js +1 -1
  198. package/dist/esm/mds-stepper-bar.entry.js +5 -3
  199. package/dist/esm/mds-tab-bar-item.entry.js +3 -2
  200. package/dist/esm/mds-table-header-cell.entry.js +2 -2
  201. package/dist/esm/mds-text.entry.js +2 -1
  202. package/dist/esm/mds-toast.entry.js +9 -3
  203. package/dist/esm/mds-tooltip.entry.js +4 -4
  204. package/dist/esm-es5/index.js +37 -26
  205. package/dist/esm-es5/locale.it-Cvxh7La5.js +6 -0
  206. package/dist/esm-es5/mds-avatar.entry.js +4 -2
  207. package/dist/esm-es5/mds-badge.entry.js +2 -3
  208. package/dist/esm-es5/mds-benchmark-bar.entry.js +2 -3
  209. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  210. package/dist/esm-es5/mds-button_3.entry.js +14 -9
  211. package/dist/esm-es5/mds-dropdown.entry.js +2 -2
  212. package/dist/esm-es5/mds-entity.entry.js +1 -1
  213. package/dist/esm-es5/mds-file-preview.entry.js +13 -11
  214. package/dist/esm-es5/mds-file.entry.js +6 -6
  215. package/dist/esm-es5/mds-header.entry.js +8 -6
  216. package/dist/esm-es5/mds-img.entry.js +1 -1
  217. package/dist/esm-es5/mds-input-date-range.entry.js +5 -3
  218. package/dist/esm-es5/mds-input-select.entry.js +8 -6
  219. package/dist/esm-es5/mds-input-upload.entry.js +3 -1
  220. package/dist/esm-es5/mds-input.entry.js +3 -3
  221. package/dist/esm-es5/mds-keyboard-key.entry.js +3 -1
  222. package/dist/esm-es5/mds-keyboard.entry.js +4 -2
  223. package/dist/esm-es5/mds-mention.entry.js +1 -1
  224. package/dist/esm-es5/mds-notification.entry.js +4 -2
  225. package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
  226. package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
  227. package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
  228. package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
  229. package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -4
  230. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  231. package/dist/esm-es5/mds-text.entry.js +1 -1
  232. package/dist/esm-es5/mds-toast.entry.js +4 -2
  233. package/dist/esm-es5/mds-tooltip.entry.js +2 -2
  234. package/dist/hydrate/index.js +283 -174
  235. package/dist/hydrate/index.mjs +283 -174
  236. package/dist/magma-components/index.esm.js +1 -1
  237. package/dist/magma-components/magma-components.esm.js +1 -1
  238. package/dist/magma-components/p-005172ba.entry.js +1 -0
  239. package/dist/magma-components/{p-9ca7932d.system.entry.js → p-05fa40aa.system.entry.js} +5 -3
  240. package/dist/magma-components/p-0827a5bd.entry.js +1 -0
  241. package/dist/magma-components/{p-1a8c5086.system.entry.js → p-15c77a98.system.entry.js} +2 -2
  242. package/dist/magma-components/p-18473d2f.entry.js +1 -0
  243. package/dist/magma-components/{p-f0a168f4.system.entry.js → p-18667ae7.system.entry.js} +3 -3
  244. package/dist/magma-components/p-19adde9d.entry.js +1 -0
  245. package/dist/magma-components/p-2217a7be.entry.js +1 -0
  246. package/dist/magma-components/{p-5a7ead55.system.entry.js → p-2386f0d6.system.entry.js} +2 -2
  247. package/dist/magma-components/p-2b56fc14.entry.js +1 -0
  248. package/dist/magma-components/p-3f747a63.system.entry.js +1 -0
  249. package/dist/magma-components/p-3ff30842.system.entry.js +16 -0
  250. package/dist/magma-components/{p-be692266.system.entry.js → p-49b120cb.system.entry.js} +2 -2
  251. package/dist/magma-components/{p-6cd7cfe3.entry.js → p-4af76eb3.entry.js} +1 -1
  252. package/dist/magma-components/p-4ba6cb3f.entry.js +1 -0
  253. package/dist/magma-components/p-4cadbd49.entry.js +1 -0
  254. package/dist/magma-components/{p-7f2e3b74.system.entry.js → p-4f107cb2.system.entry.js} +31 -31
  255. package/dist/magma-components/p-4oB0woT9.system.js +6 -0
  256. package/dist/magma-components/p-518b55f3.entry.js +1 -0
  257. package/dist/magma-components/{p-960dc9b5.system.entry.js → p-5eec629c.system.entry.js} +4 -2
  258. package/dist/magma-components/{p-a8ec3080.system.entry.js → p-646034cb.system.entry.js} +1 -1
  259. package/dist/magma-components/{p-ce4e1a41.system.entry.js → p-677ab154.system.entry.js} +3 -1
  260. package/dist/magma-components/p-759133b3.entry.js +1 -0
  261. package/dist/magma-components/{p-cd5866c8.entry.js → p-7912f877.entry.js} +1 -1
  262. package/dist/magma-components/{p-3d8e63a2.system.entry.js → p-7d304fd4.system.entry.js} +3 -1
  263. package/dist/magma-components/{p-07fde74d.system.entry.js → p-7f6d708c.system.entry.js} +6 -4
  264. package/dist/magma-components/{p-6edc4f16.system.entry.js → p-88564e9b.system.entry.js} +1 -1
  265. package/dist/magma-components/{p-8103d4d4.system.entry.js → p-8b1abf81.system.entry.js} +12 -10
  266. package/dist/magma-components/p-8bbee38d.entry.js +1 -0
  267. package/dist/magma-components/{p-481008e9.system.entry.js → p-8bf680d6.system.entry.js} +5 -3
  268. package/dist/magma-components/{p-ce0ecc75.system.entry.js → p-8cb3a071.system.entry.js} +2 -2
  269. package/dist/magma-components/p-8f229eaf.entry.js +1 -0
  270. package/dist/magma-components/{p-3f7d3060.system.entry.js → p-94fa3396.system.entry.js} +14 -9
  271. package/dist/magma-components/{p-0ad3b4da.system.entry.js → p-9bbd4193.system.entry.js} +6 -6
  272. package/dist/magma-components/p-9caffe14.entry.js +1 -0
  273. package/dist/magma-components/p-9de1ac7f.entry.js +1 -0
  274. package/dist/magma-components/p-B6mQg6yQ.js +1 -0
  275. package/dist/magma-components/p-CnXBPjmc.system.js +1 -1
  276. package/dist/magma-components/{p-CBam2PI8.system.js → p-DVd2EM-q.system.js} +29 -18
  277. package/dist/magma-components/{p-f1462410.system.entry.js → p-a15da479.system.entry.js} +3 -4
  278. package/dist/magma-components/{p-e05d2df8.system.entry.js → p-ab997243.system.entry.js} +2 -2
  279. package/dist/magma-components/{p-efe8d359.entry.js → p-aea6081f.entry.js} +1 -1
  280. package/dist/magma-components/{p-1c0a7e24.system.entry.js → p-b0539d61.system.entry.js} +7 -5
  281. package/dist/magma-components/{p-9d9a947b.entry.js → p-b35c26f8.entry.js} +2 -2
  282. package/dist/magma-components/p-cc033985.system.entry.js +14 -0
  283. package/dist/magma-components/{p-a3fc2ea4.system.entry.js → p-cd84a264.system.entry.js} +7 -5
  284. package/dist/magma-components/p-d0457835.entry.js +1 -0
  285. package/dist/magma-components/p-d64311e2.entry.js +1 -0
  286. package/dist/magma-components/{p-54b995c2.system.entry.js → p-da4dc390.system.entry.js} +1 -1
  287. package/dist/magma-components/p-dda7a33b.entry.js +1 -0
  288. package/dist/magma-components/p-e375c8b1.entry.js +1 -0
  289. package/dist/magma-components/p-e3fce8ca.entry.js +1 -0
  290. package/dist/magma-components/{p-9626eaff.system.entry.js → p-e9a16f22.system.entry.js} +3 -3
  291. package/dist/magma-components/p-ea0091b6.entry.js +1 -0
  292. package/dist/magma-components/{p-a3279a73.system.entry.js → p-ec00defc.system.entry.js} +6 -4
  293. package/dist/magma-components/p-edfb0d7a.entry.js +1 -0
  294. package/dist/magma-components/{p-0715a2cb.system.entry.js → p-f9d9cf7c.system.entry.js} +2 -3
  295. package/dist/magma-components/p-fa163e86.entry.js +1 -0
  296. package/dist/magma-components/p-fe19080a.entry.js +8 -0
  297. package/dist/magma-components/p-ff49fb35.entry.js +1 -0
  298. package/dist/stats.json +411 -411
  299. package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
  300. package/dist/types/components/mds-header/mds-header.d.ts +1 -0
  301. package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
  302. package/dist/types/components/mds-icon/services/icons-set.service.d.ts +10 -9
  303. package/dist/types/components/mds-input-select/mds-input-select.d.ts +1 -0
  304. package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
  305. package/package.json +11 -11
  306. package/dist/components/p-B9DJLgwr.js +0 -1
  307. package/dist/components/p-BouRLCYL.js +0 -1
  308. package/dist/components/p-CVgKDZPF.js +0 -1
  309. package/dist/components/p-CatD1iUY.js +0 -1
  310. package/dist/components/p-CbufYCNj.js +0 -1
  311. package/dist/components/p-Cehcn85x.js +0 -1
  312. package/dist/components/p-D8I1RblC.js +0 -1
  313. package/dist/components/p-DaI5QqNu.js +0 -1
  314. package/dist/components/p-Dj_oN194.js +0 -1
  315. package/dist/components/p-DmELzfvf.js +0 -1
  316. package/dist/components/p-sUKtonkE.js +0 -8
  317. package/dist/esm-es5/locale.it-Dj8sWDfj.js +0 -1
  318. package/dist/magma-components/p-03be5c0c.entry.js +0 -1
  319. package/dist/magma-components/p-0af8d821.entry.js +0 -1
  320. package/dist/magma-components/p-1780b8ba.entry.js +0 -1
  321. package/dist/magma-components/p-1dcfb13e.entry.js +0 -1
  322. package/dist/magma-components/p-241dbf61.entry.js +0 -1
  323. package/dist/magma-components/p-4297da23.system.entry.js +0 -1
  324. package/dist/magma-components/p-454c4774.entry.js +0 -1
  325. package/dist/magma-components/p-59de81ac.entry.js +0 -1
  326. package/dist/magma-components/p-5e43274a.system.entry.js +0 -15
  327. package/dist/magma-components/p-66ce2dee.entry.js +0 -1
  328. package/dist/magma-components/p-69d1b815.entry.js +0 -1
  329. package/dist/magma-components/p-75fcf1a4.entry.js +0 -1
  330. package/dist/magma-components/p-78fef00a.entry.js +0 -1
  331. package/dist/magma-components/p-7d317ff0.entry.js +0 -8
  332. package/dist/magma-components/p-7fc29447.entry.js +0 -1
  333. package/dist/magma-components/p-8b7fa8d7.entry.js +0 -1
  334. package/dist/magma-components/p-9b2ee3fe.entry.js +0 -1
  335. package/dist/magma-components/p-CSb7Iu19.js +0 -1
  336. package/dist/magma-components/p-a5ac5e0b.entry.js +0 -1
  337. package/dist/magma-components/p-a906a02f.system.entry.js +0 -16
  338. package/dist/magma-components/p-ac544ab1.entry.js +0 -1
  339. package/dist/magma-components/p-b23a6c83.entry.js +0 -1
  340. package/dist/magma-components/p-b9fecfd5.entry.js +0 -1
  341. package/dist/magma-components/p-c1fb2eb7.entry.js +0 -1
  342. package/dist/magma-components/p-c70d7159.entry.js +0 -1
  343. package/dist/magma-components/p-ddbdce09.entry.js +0 -1
  344. package/dist/magma-components/p-e3e893c4.entry.js +0 -1
  345. package/dist/magma-components/p-e4868ade.entry.js +0 -1
  346. package/dist/magma-components/p-ihVfCXG4.system.js +0 -1
@@ -1 +0,0 @@
1
- import{p as t,H as r,d as a,h as i,c as s,t as e}from"./p-BhFTcUD0.js";import{s as o}from"./p-CSCy6TMW.js";import{b as n}from"./p-CGFwoK_U.js";import{m as c}from"./p-0FAG3rkw.js";import{L as m}from"./p-Bss3F51Q.js";import{d}from"./p-CVgKDZPF.js";import{d as h}from"./p-CatD1iUY.js";import{d as l}from"./p-C58NKMEE.js";import{d as g}from"./p-B9DJLgwr.js";var u={clickToLoad:"Φόρτωση εικόνας"},p={clickToLoad:"Load image"},v={clickToLoad:"Cargar imagen"},b={clickToLoad:"Carica immagine"};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.loadErrorEvent=a(this,"mdsImgLoadError",7),this.loadSuccessEvent=a(this,"mdsImgLoadSuccess",7),this.imageConsumptionLoaded=!1,this.imageError=!1,this.consumptionMode="high",this.t=new m({el:u,en:p,es:v,it:b}),this.alt="",this.crossorigin="use-credentials",this.loading="lazy",this.referrerpolicy="no-referrer-when-downgrade",this.onSuccess=t=>{this.image=t.target,this.loadSuccessEvent.emit({image:this.image})},this.onError=t=>{this.image=t.target,this.loadErrorEvent.emit({image:this.image}),this.imageError=!0},this.formatConsumptionData=t=>{const r={};return t.split(",").forEach((t=>{const a=t.trim().replace(/[ ]{2,}/g," ").split(" ");"low"===a[1].toLocaleLowerCase()&&(r.low=a[0]),"medium"===a[1].toLocaleLowerCase()&&(r.medium=a[0]),"high"===a[1].toLocaleLowerCase()&&(r.high=a[0])})),r},this.autoAltName=()=>{if(void 0!==this.src&&""!==this.src){const t=this.src.lastIndexOf("/")+1;return this.src.substring(t)}return""},this.setAriaAttributes=()=>{o(this.host,"aria-label",this.alt)},this.handleConsumptionLoadClick=()=>{this.imageConsumptionLoaded=!0}}srcsetConsumptionHandler(t){this.srcsetConsumptionData=this.formatConsumptionData(t)}srcHandler(){this.imageError=!1}componentWillLoad(){var t;this.consumptionMode=null!==(t=localStorage.getItem("mdsPrefConsumption"))&&void 0!==t?t:"high",void 0!==this.srcsetConsumption&&""!==this.srcsetConsumption&&(this.srcsetConsumptionData=this.formatConsumptionData(this.srcsetConsumption)),this.image=this.host.querySelector("img"),""===this.alt&&(this.alt=this.autoAltName())}componentDidLoad(){this.setAriaAttributes()}render(){var t,r;return this.imageError?i(s,{"aria-label":this.alt,role:"img"},i("div",{class:"contrast-area-50"}),i("div",{class:"alt-text-container alt-text-container--error alt-text-container--default-aspect-ratio"},i("mds-icon",{class:"icon",name:c}),i("mds-text",{class:"alt-text","aria-hidden":"true",typography:"h6"},i("i",null,this.alt)))):this.srcsetConsumptionData?"low"===this.consumptionMode?i(s,{"aria-label":this.alt,role:"img",onClick:this.handleConsumptionLoadClick},i("div",{class:"contrast-area-50"}),this.imageConsumptionLoaded?i("img",{alt:this.alt,"aria-hidden":"true",height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",sizes:this.sizes,src:null!==(t=this.srcsetConsumptionData[this.consumptionMode])&&void 0!==t?t:this.src,srcset:this.srcset,width:this.width}):i("div",{"aria-hidden":"true",class:"alt-text-container alt-text-container--default-aspect-ratio"},i("mds-icon",{class:"icon",name:n}),i("mds-text",{class:"alt-text",typography:"h6"},i("i",null,this.alt)),i("mds-button",{"aria-hidden":"true",role:"none",class:"click-to-load",tabIndex:-1,variant:"light",tone:"outline",label:this.t.get("clickToLoad")}))):i(s,{"aria-label":this.alt,role:"img"},i("div",{class:"contrast-area-50"}),i("img",{alt:this.alt,"aria-hidden":"true",height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",sizes:this.sizes,src:null!==(r=this.srcsetConsumptionData[this.consumptionMode])&&void 0!==r?r:this.src,srcset:this.srcset,width:this.width})):i(s,{"aria-label":this.alt,role:"img"},i("div",{class:"contrast-area-50"}),i("img",{alt:this.alt,"aria-hidden":"true",height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))}get host(){return this}static get watchers(){return{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-img-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-img-color:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-img-icon-color:rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218))));--mds-img-error-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-img-error-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-img-error-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));display:flex;height:auto;-o-object-fit:contain;object-fit:contain;overflow:hidden;position:relative;width:100%}img{height:inherit;-o-object-fit:inherit;object-fit:inherit;width:inherit}.alt-text-container{align-items:center;background-color:var(--mds-img-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));color:var(--mds-img-color,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*600);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));--mds-img-color:var(--mds-img-error-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));--mds-img-icon-color:var(--mds-img-error-icon-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{fill:var(--mds-img-icon-color,rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218)))));width:calc(var(--spacing,.0025rem)*900)}"}},[1,"mds-img",{alt:[1537],crossorigin:[1],height:[1],loading:[1],referrerpolicy:[1],sizes:[1],src:[1],srcset:[1],srcsetConsumption:[1,"srcset-consumption"],width:[1],imageConsumptionLoaded:[32],imageError:[32]},void 0,{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}]);function x(){"undefined"!=typeof customElements&&["mds-img","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-img":customElements.get(e(t))||customElements.define(e(t),f);break;case"mds-button":customElements.get(e(t))||d();break;case"mds-icon":customElements.get(e(t))||h();break;case"mds-spinner":customElements.get(e(t))||l();break;case"mds-text":customElements.get(e(t))||g()}}))}export{f as M,x as d}
@@ -1 +0,0 @@
1
- import{p as t,H as e,h as i,c as s,t as a}from"./p-BhFTcUD0.js";import{p as r}from"./p-CvIFS8oA.js";import{m as n}from"./p-Ccz0jCNB.js";import{m as o}from"./p-DiWN48aq.js";import{c as d}from"./p-ChV9xqsO.js";import{d as l}from"./p-CVgKDZPF.js";import{d as h}from"./p-CatD1iUY.js";import{d as c}from"./p-C58NKMEE.js";import{d as m}from"./p-B9DJLgwr.js";var p;!function(t){t.ASC="ascending",t.DESC="descending",t.NONE="none"}(p||(p={}));const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isAscending=!0,this.currentDirection=p.NONE,this.index=0,this.direction="none",this.prepareSorter=()=>{var t,e,i;!this.sortable||this.sortable&&void 0!==(null===(t=this.tableHeaderCellSiblings)||void 0===t?void 0:t.length)&&0!==(null===(e=this.tableHeaderCellSiblings)||void 0===e?void 0:e.length)||(this.tableBody=null===(i=this.element.closest("mds-table"))||void 0===i?void 0:i.querySelector("mds-table-body"),this.tableHeader=this.element.closest("mds-table-header"),this.tableHeaderCellSiblings=Array.from(this.tableHeader.children),this.index=this.tableHeaderCellSiblings.indexOf(this.element),this.tableRows=Array.from(this.tableBody.children),this.tableRowsDefaultSorted=Array.from(this.tableBody.children))},this.getValue=t=>void 0===t.value||""===t.value||0===t.value||Number.isNaN(t.value)?null!==t.textContent&&""!==t.textContent?t.textContent.trim():"":t.value,this.resetSortAttribute=()=>{this.tableHeaderCellSiblings.forEach((t=>{this.tableHeaderCellSiblings.indexOf(t)!==this.index&&(t.direction="none")})),this.tableRows=Array.from(this.tableBody.children),this.tableRows.forEach((t=>{Array.from(t.children).forEach(((t,e)=>{this.index!==e||this.currentDirection===p.NONE?t.removeAttribute("sorted"):t.setAttribute("sorted","")}))}))},this.sortRows=()=>{this.currentDirection!==p.NONE?(this.tableRows=Array.from(this.tableBody.children),[...this.tableRows].sort(((t,e)=>{const i=this.getValue(t.querySelectorAll("mds-table-cell")[this.index]),s=this.getValue(e.querySelectorAll("mds-table-cell")[this.index]);return isNaN(Number(i))||isNaN(Number(s))?"ascending"===this.direction?String(i).localeCompare(String(s)):String(s).localeCompare(String(i)):"ascending"===this.direction?Number(i)-Number(s):Number(s)-Number(i)})).forEach((t=>this.tableBody.appendChild(t)))):this.tableRowsDefaultSorted.forEach((t=>this.tableBody.appendChild(t)))},this.updateDirection=()=>{this.currentDirection=Object.values(p)[(Object.values(p).indexOf(this.currentDirection)+1)%Object.values(p).length],this.direction=this.currentDirection.toString()},this.sort=()=>{this.updateDirection(),this.sortRows(),this.resetSortAttribute(),this.tableRows=Array.from(this.tableBody.children),this.tableRows.forEach(this.currentDirection===p.NONE?t=>{t.removeAttribute("sorted")}:t=>{t.setAttribute("sorted","")})}}componentDidLoad(){this.prepareSorter()}sortableHandler(){this.prepareSorter()}directionHandler(t){"none"===t&&(this.direction="none",this.currentDirection=p.NONE)}render(){return i(s,{key:"aa269488717b726ffd93efcc6d863e4b9474bbe8",role:"columnheader","aria-sort":this.direction,"pref-animation":r.state.animation},this.sortable?i("mds-button",{class:"action",icon:d("none"===this.direction&&'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9L12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15L12 18.17z"/></svg>',"ascending"===this.direction&&n,"descending"===this.direction&&o),"icon-position":"right",onClick:this.sort,tone:"text",variant:"dark",size:"sm",part:"action",label:this.label}):i("mds-text",{class:"label",typography:"label",part:"label"},this.label))}get element(){return this}static get watchers(){return{sortable:[{sortableHandler:0}],direction:[{directionHandler:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial;--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-header-cell-transition-duration:var(--duration-200,.2s);--private-table-header-cell-transition-duration:var(--mds-table-header-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background);border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color)!important;border-top:var(--private-cell-border-width) solid #0000!important;display:table-cell;padding:var(--mds-table-cell-padding);-webkit-transition-duration:var(--private-table-header-cell-transition-duration);transition-duration:var(--private-table-header-cell-transition-duration);transition-property:background-color,border-color,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top;white-space:nowrap}.action{margin-inline:calc(var(--spacing,.0025rem)*-200);padding-inline:calc(var(--spacing,.0025rem)*200)}.action:hover,:host([direction=ascending]) .action,:host([direction=descending]) .action{background-color:var(--mds-table-background-alt)}.action::part(label){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem))}.label{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*700)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-header-cell-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-header-cell-transition-duration:0s}}'}},[1,"mds-table-header-cell",{sortable:[516],label:[513],direction:[1537],isAscending:[32]},void 0,{sortable:[{sortableHandler:0}],direction:[{directionHandler:0}]}]);function u(){"undefined"!=typeof customElements&&["mds-table-header-cell","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-table-header-cell":customElements.get(a(t))||customElements.define(a(t),b);break;case"mds-button":customElements.get(a(t))||l();break;case"mds-icon":customElements.get(a(t))||h();break;case"mds-spinner":customElements.get(a(t))||c();break;case"mds-text":customElements.get(a(t))||m()}}))}export{b as M,u as d}
@@ -1,8 +0,0 @@
1
- import{p as e,H as r,d as a,h as i,c as t,t as o}from"./p-BhFTcUD0.js";import{m as s}from"./p-BJ8rpzfj.js";import{c as l}from"./p-ChV9xqsO.js";import{f as n,a as m,b as c,c as v,g as d,d as b,e as g}from"./p-B14Ci2fO.js";import{L as p}from"./p-Bss3F51Q.js";import{p as f}from"./p-CvIFS8oA.js";import{d as u}from"./p-DaI5QqNu.js";import{d as h}from"./p-CVgKDZPF.js";import{d as w}from"./p-CatD1iUY.js";import{d as x}from"./p-Dj_oN194.js";import{d as k}from"./p-C58NKMEE.js";import{d as y}from"./p-B9DJLgwr.js";
2
- /**
3
- * filesize
4
- *
5
- * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
6
- * @license BSD-3-Clause
7
- * @version 10.1.0
8
- */const j="bits",B="bytes",q="jedec",E={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};var M={remove:"Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης"},D={remove:"Remove file from upload queue"},N={remove:"Eliminar archivo de la cola de carga"},O={remove:"Rimuovi file dalla coda di upload"};const z=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.downloadedEvent=a(this,"mdsFileDownload",7),this.deletedEvent=a(this,"mdsFileDelete",7),this.t=new p({el:Object.assign(Object.assign({},M),v),en:Object.assign(Object.assign({},D),c),es:Object.assign(Object.assign({},N),m),it:Object.assign(Object.assign({},O),n)}),this.truncate="word",this.getDefaultKeyDescription=()=>d(this.filename,this.suffix).description,this.onClickDeletedEvent=()=>{this.deletedEvent.emit({target:this.host,filename:this.filename,extension:b(this.filename,this.suffix)})},this.onClickDownloadEvent=()=>{this.downloadedEvent.emit({target:this.host,filename:this.filename,extension:b(this.filename,this.suffix)})}}componentWillLoad(){this.format=d(this.filename,this.suffix).format}componentDidLoad(){this.handleDownloadable(this.downloadable)}handleFilename(e){this.format=d(e,this.suffix).format}handleDownloadable(e,r){var a;if(e===r)return;const i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".card");e?null==i||i.addEventListener("click",this.onClickDownloadEvent):null==i||i.removeEventListener("click",this.onClickDownloadEvent)}render(){var e,r,a;return i(t,{key:"389451c485ded68d3d3d99e950ec2e2ad08f4ac9","pref-animation":f.state.animation,"pref-contrast":f.state.contrast,"pref-mode":f.state.mode,"pref-theme-scheme":f.state["theme-scheme"]},this.deletable&&i("mds-button",{key:"e04b3974185c09a3d9407b74168a37afce9d23de",title:this.t.get("remove"),class:"action-delete",icon:s,variant:"light",onClick:this.onClickDeletedEvent}),i("div",{key:"f899421ec875a83f2593890e0a736759b903b24f",class:"card",part:"card",onClick:this.onClickDownloadEvent},void 0===this.src||""===this.src||void 0!==this.message&&""!==this.message||!d(this.filename,this.suffix).preview?i("div",{class:l("preview",void 0===this.message||""===this.message?"preview--icon":"preview--status")},i("mds-icon",void 0!==this.icon&&""!==this.icon?{class:"icon",name:this.icon}:{class:"icon",name:g(this.filename,this.suffix).icon}),this.message&&i("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)):i("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}),i("mds-text",{key:"32d3359b9c41a845001e17987ce703219ba29843",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),i("div",{key:"79e555cedfc5d35b2d54ec6a3aee7591cc0edf2e",class:l("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&i("mds-text",{key:"84e7d78e1d0639e637173a1c781a61f21e459b6d",class:"file-size",truncate:"word",typography:"caption",variant:"info"},function(e,{bits:r=!1,pad:a=!1,base:i=-1,round:t=2,locale:o="",localeOptions:s={},separator:l="",spacer:n=" ",symbols:m={},standard:c="",output:v="string",fullform:d=!1,fullforms:b=[],exponent:g=-1,roundingMethod:p="round",precision:f=0}={}){let u=g,h=Number(e),w=[],x=0,k="";"si"===c?(i=10,c=q):"iec"===c||c===q?i=2:2===i?c="iec":(i=10,c=q);const y=10===i?1e3:1024,M=!0===d,D=h<0,N=Math[p];if("bigint"!=typeof e&&isNaN(e))throw new TypeError("Invalid number");if("function"!=typeof N)throw new TypeError("Invalid rounding method");if(D&&(h=-h),(-1===u||isNaN(u))&&(u=Math.floor(Math.log(h)/Math.log(y)),u<0&&(u=0)),u>8&&(f>0&&(f+=8-u),u=8),"exponent"===v)return u;if(0===h)w[0]=0,k=w[1]=E.symbol[c][r?j:B][u];else{x=h/(2===i?Math.pow(2,10*u):Math.pow(1e3,u)),r&&(x*=8,x>=y&&u<8&&(x/=y,u++));const e=Math.pow(10,u>0?t:0);w[0]=N(x*e)/e,w[0]===y&&u<8&&-1===g&&(w[0]=1,u++),k=w[1]=10===i&&1===u?r?"kbit":"kB":E.symbol[c][r?j:B][u]}if(D&&(w[0]=-w[0]),f>0&&(w[0]=w[0].toPrecision(f)),w[1]=m[w[1]]||w[1],!0===o?w[0]=w[0].toLocaleString():o.length>0?w[0]=w[0].toLocaleString(o,s):l.length>0&&(w[0]=w[0].toString().replace(".",l)),a&&!1===Number.isInteger(w[0])&&t>0){const e=l||".",r=w[0].toString().split(e),a=r[1]||"",i=a.length;w[0]=`${r[0]}${e}${a.padEnd(i+(t-i),"0")}`}return M&&(w[1]=b[u]?b[u]:E.fullform[c][u]+(r?"bit":"byte")+(1===w[0]?"":"s")),"array"===v?w:"object"===v?{value:w[0],symbol:w[1],exponent:u,unit:k}:w.join(n)}(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&i("mds-text",{key:"8945ff2c6224b7a4803390eae2fc12474903a3dd",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),b(this.filename,this.suffix)&&i("mds-badge",{key:"5581cb1f4d13f6f15f28c0957094dcd5982f0a0f",variant:g(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultKeyDescription())},b(this.filename,this.suffix)),(void 0===this.filesize||""===this.filesize)&&i("mds-text",{key:"d743b838cc6fa9fed0f5cdf7914c7652bfc3e1ac",class:"description",truncate:"word",typography:"caption",variant:"info",title:null!==(r=this.description)&&void 0!==r?r:this.t.get(this.getDefaultKeyDescription())},null!==(a=this.description)&&void 0!==a?a:this.t.get(this.getDefaultKeyDescription())))))}get host(){return this}static get watchers(){return{filename:[{handleFilename:0}],downloadable:[{handleDownloadable:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-button,mds-icon,mds-img,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-background-color:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-file-preview-border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--mds-file-preview-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-file-preview-icon-background:inherit;--mds-file-preview-icon-color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-file-preview-transition-duration:0s;--private-file-preview-padding:calc(var(--spacing,.0025rem)*400);--private-file-preview-transition-duration:var(--mds-file-preview-transition-duration);background-color:var(--mds-file-preview-background-color,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--mds-file-preview-border-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;fill:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));-ms-flex-pack:stretch;display:flex;justify-content:stretch;overflow:hidden;position:relative;-webkit-transition-duration:var(--private-file-preview-transition-duration);transition-duration:var(--private-file-preview-transition-duration)}.card{display:grid;gap:calc(var(--spacing,.0025rem)*200);grid-template-columns:repeat(1,minmax(1px,100%));padding:var(--private-file-preview-padding)}.card,.preview{corner-shape:inherit;width:100%}.preview{aspect-ratio:var(--aspect-square,1/1);background-color:var(--mds-file-preview-icon-background);border-radius:max(0px,calc(var(--mds-file-preview-border-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--private-file-preview-padding)));box-sizing:border-box;color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));-webkit-transition-duration:inherit;transition-duration:inherit}.preview--image{filter:brightness(.975);padding:0!important}.preview--icon,.preview--status{align-items:center;display:flex;flex-direction:column;justify-content:center}.preview--status{gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*400)}.icon{height:calc(var(--spacing,.0025rem)*1200);width:calc(var(--spacing,.0025rem)*1200)}.message{text-align:center}.action-delete{background-color:var(--mds-file-preview-background-color,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));position:absolute;right:0;top:0;z-index:10}.infos{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.suffix{flex-shrink:0}.infos--has-file-size{justify-content:space-between}.file-name{--mds-text-line-clamp:2}:host([format=archive]),:host([format=executable]){--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47))}:host([format=attachment]){--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([format=audio]),:host([format=video]){--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5))}:host([format=certificate]),:host([format=document]){--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5))}:host([format=email]),:host([format=text]){--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248))}:host([format=image]){--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61))}:host([format=slide]){--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113))}:host([format=spreadsheet]){--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13))}:host([format=vector]){--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143))}:host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-file-preview-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-file-preview-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-file-preview-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-09,253 214 221));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-03,170 10 37))}:host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-09,151 237 252));--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-03,3 97 114))}:host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-03,11 51 246))}:host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-09,165 240 193));--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-03,18 103 49))}:host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-09,189 239 111));--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-03,64 99 11))}:host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-09,253 217 191));--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-03,147 63 4))}:host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-09,251 213 232));--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-03,165 17 90))}:host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-09,235 216 253));--mds-file-preview-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-file-preview-color:rgb(var(--label-purple-03,116 10 217))}:host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-09,250 215 215));--mds-file-preview-icon-color:rgb(var(--label-red-04,212 28 28));--mds-file-preview-color:rgb(var(--label-red-03,169 22 22))}:host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-09,185 231 251));--mds-file-preview-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-file-preview-color:rgb(var(--label-sky-03,8 94 133))}:host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-09,229 218 253));--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-03,87 20 242))}:host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-09,251 221 131));--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-contrast=more]):host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))));--mds-file-preview-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([pref-contrast=more]):host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-file-preview-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([pref-contrast=more]):host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-file-preview-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([pref-contrast=more]):host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([pref-contrast=more]):host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-file-preview-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([pref-contrast=more]):host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-file-preview-color:rgb(var(--label-amaranth-01,88 5 19))}:host([pref-contrast=more]):host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-file-preview-color:rgb(var(--label-aqua-01,2 50 59))}:host([pref-contrast=more]):host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-file-preview-color:rgb(var(--label-blue-01,5 26 127))}:host([pref-contrast=more]):host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-02,14 80 38));--mds-file-preview-color:rgb(var(--label-green-01,9 52 25))}:host([pref-contrast=more]):host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-file-preview-color:rgb(var(--label-lime-01,33 51 6))}:host([pref-contrast=more]):host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-file-preview-color:rgb(var(--label-orange-01,76 32 2))}:host([pref-contrast=more]):host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-file-preview-color:rgb(var(--label-orchid-01,85 9 47))}:host([pref-contrast=more]):host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-10,244 233 254));--mds-file-preview-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-file-preview-color:rgb(var(--label-purple-01,60 5 112))}:host([pref-contrast=more]):host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-10,252 233 233));--mds-file-preview-icon-color:rgb(var(--label-red-02,131 17 17));--mds-file-preview-color:rgb(var(--label-red-01,87 11 11))}:host([pref-contrast=more]):host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10,217 241 253));--mds-file-preview-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-file-preview-color:rgb(var(--label-sky-01,4 48 68))}:host([pref-contrast=more]):host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-file-preview-color:rgb(var(--label-violet-01,43 7 127))}:host([pref-contrast=more]):host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-file-preview-color:rgb(var(--label-yellow-01,58 44 2))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-preview-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-file-preview-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))));--mds-file-preview-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-file-preview-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-file-preview-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-file-preview-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-file-preview-color:rgb(var(--label-amaranth-01,88 5 19))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-file-preview-color:rgb(var(--label-aqua-01,2 50 59))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-file-preview-color:rgb(var(--label-blue-01,5 26 127))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-02,14 80 38));--mds-file-preview-color:rgb(var(--label-green-01,9 52 25))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-file-preview-color:rgb(var(--label-lime-01,33 51 6))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-file-preview-color:rgb(var(--label-orange-01,76 32 2))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-file-preview-color:rgb(var(--label-orchid-01,85 9 47))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-10,244 233 254));--mds-file-preview-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-file-preview-color:rgb(var(--label-purple-01,60 5 112))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-10,252 233 233));--mds-file-preview-icon-color:rgb(var(--label-red-02,131 17 17));--mds-file-preview-color:rgb(var(--label-red-01,87 11 11))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10,217 241 253));--mds-file-preview-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-file-preview-color:rgb(var(--label-sky-01,4 48 68))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-file-preview-color:rgb(var(--label-violet-01,43 7 127))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-file-preview-color:rgb(var(--label-yellow-01,58 44 2))}:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-file-preview-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-preview-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}"}},[1,"mds-file-preview",{deletable:[516],downloadable:[516],description:[513],filename:[513],filesize:[513],message:[513],truncate:[513],src:[513],suffix:[513],icon:[513],variant:[513],format:[1537]},void 0,{filename:[{handleFilename:0}],downloadable:[{handleDownloadable:0}]}]);function F(){"undefined"!=typeof customElements&&["mds-file-preview","mds-badge","mds-button","mds-icon","mds-img","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-file-preview":customElements.get(o(e))||customElements.define(o(e),z);break;case"mds-badge":customElements.get(o(e))||u();break;case"mds-button":customElements.get(o(e))||h();break;case"mds-icon":customElements.get(o(e))||w();break;case"mds-img":customElements.get(o(e))||x();break;case"mds-spinner":customElements.get(o(e))||k();break;case"mds-text":customElements.get(o(e))||y()}}))}export{z as M,F as d}
@@ -1 +0,0 @@
1
- import{f as fileExtensionsDictionary}from"./file-extensions-BxIk5ZFV.js";import{m as miBaselinePanorama}from"./panorama-b1ORvfSX.js";var baselineFolderZip='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"/></svg>';var baselineAttachFile='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"/></svg>';var baselineAudiotrack='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3v9.28a4.39 4.39 0 0 0-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/></svg>';var baselineTerminal='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4l-4 4z"/></svg>';var baselineInsertDriveFile='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>';var mdiLicense='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-license" viewBox="0 0 24 24"><path d="M9 10A3.04 3.04 0 0 1 12 7A3.04 3.04 0 0 1 15 10A3.04 3.04 0 0 1 12 13A3.04 3.04 0 0 1 9 10M12 19L16 20V16.92A7.54 7.54 0 0 1 12 18A7.54 7.54 0 0 1 8 16.92V20M12 4A5.78 5.78 0 0 0 7.76 5.74A5.78 5.78 0 0 0 6 10A5.78 5.78 0 0 0 7.76 14.23A5.78 5.78 0 0 0 12 16A5.78 5.78 0 0 0 16.24 14.23A5.78 5.78 0 0 0 18 10A5.78 5.78 0 0 0 16.24 5.74A5.78 5.78 0 0 0 12 4M20 10A8.04 8.04 0 0 1 19.43 12.8A7.84 7.84 0 0 1 18 15.28V23L12 21L6 23V15.28A7.9 7.9 0 0 1 4 10A7.68 7.68 0 0 1 6.33 4.36A7.73 7.73 0 0 1 12 2A7.73 7.73 0 0 1 17.67 4.36A7.68 7.68 0 0 1 20 10Z" /></svg>';var mdiHardDisk='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-harddisk" viewBox="0 0 24 24"><path d="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z" /></svg>';var baselineEmail='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5l-8-5V6l8 5l8-5v2z"/></svg>';var baselineWysiwyg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 16H5V7h14v12zm-2-7H7v-2h10v2zm-4 4H7v-2h6v2z"/></svg>';var baselineWeb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>';var baselineTV='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/></svg>';var baselineBorderAll='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/></svg>';var baselineDescription='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>';var mdiVectorCurve='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-vector-curve" viewBox="0 0 24 24"><path d="M18.5,2A1.5,1.5 0 0,1 20,3.5A1.5,1.5 0 0,1 18.5,5C18.27,5 18.05,4.95 17.85,4.85L14.16,8.55L14.5,9C16.69,7.74 19.26,7 22,7L23,7.03V9.04L22,9C19.42,9 17,9.75 15,11.04A3.96,3.96 0 0,1 11.04,15C9.75,17 9,19.42 9,22L9.04,23H7.03L7,22C7,19.26 7.74,16.69 9,14.5L8.55,14.16L4.85,17.85C4.95,18.05 5,18.27 5,18.5A1.5,1.5 0 0,1 3.5,20A1.5,1.5 0 0,1 2,18.5A1.5,1.5 0 0,1 3.5,17C3.73,17 3.95,17.05 4.15,17.15L7.84,13.45C7.31,12.78 7,11.92 7,11A4,4 0 0,1 11,7C11.92,7 12.78,7.31 13.45,7.84L17.15,4.15C17.05,3.95 17,3.73 17,3.5A1.5,1.5 0 0,1 18.5,2M11,9A2,2 0 0,0 9,11A2,2 0 0,0 11,13A2,2 0 0,0 13,11A2,2 0 0,0 11,9Z" /></svg>';var baselineVideocam='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>';var fileFormatsVariant={archive:{icon:baselineFolderZip,variant:"amaranth"},attachment:{icon:baselineAttachFile,variant:"dark"},audio:{icon:baselineAudiotrack,variant:"violet"},certificate:{icon:mdiLicense,variant:"orange"},code:{icon:baselineTerminal,variant:"yellow"},data:{icon:mdiHardDisk,variant:"yellow"},document:{icon:baselineInsertDriveFile,variant:"orange"},email:{icon:baselineEmail,variant:"blue"},executable:{icon:baselineWysiwyg,variant:"amaranth"},image:{icon:miBaselinePanorama,variant:"green"},imageRaster:{icon:miBaselinePanorama,variant:"green"},markup:{icon:baselineWeb,variant:"yellow"},slide:{icon:baselineTV,variant:"orchid"},spreadsheet:{icon:baselineBorderAll,variant:"lime"},text:{icon:baselineDescription,variant:"blue"},vectorImage:{icon:mdiVectorCurve,variant:"aqua"},vector:{icon:mdiVectorCurve,variant:"aqua"},video:{icon:baselineVideocam,variant:"violet"}};var sanitizeFilename=function(e,i){if(i===void 0){i='Attribute "filename" is undefined.'}var a;if(e===undefined){throw console.error(i)}if(e.includes("/")){return(a=e.split("/").pop())!==null&&a!==void 0?a:""}return e};var sanitizeSuffix=function(e){var i;var a=sanitizeFilename(e);if(a.includes(".")){return(i=a.split(".").pop())!==null&&i!==void 0?i:""}return a};var getName=function(e){var i;var a=sanitizeFilename(e);if(a.includes(".")){return(i=a.split(".")[0])!==null&&i!==void 0?i:""}return a};var getSuffix=function(e,i){var a=sanitizeSuffix(e);var o=sanitizeFilename(e);if(i!==null&&i!==undefined){return i.toLowerCase()}if(a!==o){return a}return"default"};var getExtensionInfos=function(e,i){var a;var o=getSuffix(e,i).toLocaleLowerCase();return(a=fileExtensionsDictionary[o])!==null&&a!==void 0?a:fileExtensionsDictionary.default};var getFormatsVariant=function(e,i){return fileFormatsVariant[getExtensionInfos(e,i).format]};var appleDiskImage$3="Εικόνα δίσκου Apple";var certificateTSD$3="Πιστοποιητικό χρονικής σήμανσης";var compressedArchive$3="Συμπιεσμένο αρχείο";var compressedAudio$3="Συμπιεσμένος ήχος";var compressedDocumentMS$3="Συμπιεσμένο έγγραφο Microsoft Word";var compressedImage$3="Συμπιεσμένη εικόνα";var dart$3="Αρχείο Dart";var documentAdobe$3="Έγγραφο Adobe";var documentDigitalSingnature$3="Έγγραφο με ψηφιακή υπογραφή";var documentLO$3="Έγγραφο LibreOffice";var documentMS$3="Έγγραφο Microsoft Word";var documentRTF$3="Έγγραφο μορφής εμπλουτισμένου κειμένου";var documentTXT$3="Απλό έγγραφο κειμένου";var documentWeb$3="Ιστοσελίδα";var email$3="Ηλεκτρονικό ταχυδρομείο";var extensibleMarkupLanguage$3="Γλώσσα σήμανσης για δεδομένα";var fileAI$3="Διανυσματικό αρχείο Adobe Illustrator";var fileDB$3="Αρχείο βάσης δεδομένων";var fileEPS$3="Διανυσματικό αρχείο Corel Draw";var fileEXE$3="Εκτελέσιμο αρχείο Windows";var fileJS$3="Αρχείο JavaScript";var fileJSON$3="Αρχείο JavaScript Object Notation";var filePHP$3="Αρχείο Hypertext Preprocessor";var fileSASS$3="Αρχείο Syntactically Awesome StyleSheets";var fileTS$3="Αρχείο TypeScript";var fileTSX$3="Αρχείο TypeScript Extended Syntax";var imageHEIC$3="Μορφή αρχείου εικόνας υψηλής αποδοτικότητας";var imagePNG$3="Εικόνα Portable Network Graphics";var imageSVG$3="Διανυσματική εικόνα Scalable Vector Graphics";var imageTIFF$3="Εικόνα Tag Image File Format";var imageWEBP$3="Εικόνα Google Web Picture";var objectLinkingAndEmbedding$3="Σύνδεση και ενσωμάτωση αντικειμένων";var openDocumentFormat$3="Έγγραφο OpenDocument";var slideLO$3="Διαφάνεια παρουσίασης LibreOffice";var slidePowerPoint$3="Διαφάνεια παρουσίασης PowerPoint";var spreadsheetLO$3="Υπολογιστικό φύλλο LibreOffice";var spreadsheetMS$3="Υπολογιστικό φύλλο Microsoft Office";var uncompressedArchive$3="Μη συμπιεσμένο αρχείο";var uncompressedAudio$3="Μη συμπιεσμένος ήχος";var unknown$3="Άγνωστη μορφή αρχείου";var videoHD$3="Βίντεο υψηλής ανάλυσης";var videoSD$3="Βίντεο χαμηλής ανάλυσης";var fileDescriptionLocaleEl={appleDiskImage:appleDiskImage$3,certificateTSD:certificateTSD$3,compressedArchive:compressedArchive$3,compressedAudio:compressedAudio$3,compressedDocumentMS:compressedDocumentMS$3,compressedImage:compressedImage$3,dart:dart$3,documentAdobe:documentAdobe$3,documentDigitalSingnature:documentDigitalSingnature$3,documentLO:documentLO$3,documentMS:documentMS$3,documentRTF:documentRTF$3,documentTXT:documentTXT$3,documentWeb:documentWeb$3,email:email$3,extensibleMarkupLanguage:extensibleMarkupLanguage$3,fileAI:fileAI$3,fileDB:fileDB$3,fileEPS:fileEPS$3,fileEXE:fileEXE$3,fileJS:fileJS$3,fileJSON:fileJSON$3,filePHP:filePHP$3,fileSASS:fileSASS$3,fileTS:fileTS$3,fileTSX:fileTSX$3,imageHEIC:imageHEIC$3,imagePNG:imagePNG$3,imageSVG:imageSVG$3,imageTIFF:imageTIFF$3,imageWEBP:imageWEBP$3,objectLinkingAndEmbedding:objectLinkingAndEmbedding$3,openDocumentFormat:openDocumentFormat$3,slideLO:slideLO$3,slidePowerPoint:slidePowerPoint$3,spreadsheetLO:spreadsheetLO$3,spreadsheetMS:spreadsheetMS$3,uncompressedArchive:uncompressedArchive$3,uncompressedAudio:uncompressedAudio$3,unknown:unknown$3,videoHD:videoHD$3,videoSD:videoSD$3};var appleDiskImage$2="Apple Disk Image";var certificateTSD$2="Timestamp Certificate";var compressedArchive$2="Compressed Archive";var compressedAudio$2="Compressed Audio";var compressedDocumentMS$2="Compressed Microsoft Word Document";var compressedImage$2="Compressed Image";var dart$2="Dart File";var documentAdobe$2="Adobe Document";var documentDigitalSingnature$2="Document with digital signature";var documentLO$2="LibreOffice Document";var documentMS$2="Microsoft Word Document";var documentRTF$2="Rich Text Format Document";var documentTXT$2="Plain Text Document";var documentWeb$2="Web Page";var email$2="E-mail";var extensibleMarkupLanguage$2="Markup language for data";var fileAI$2="Adobe Illustrator Vector File";var fileDB$2="Database File";var fileEPS$2="Corel Draw Vector File";var fileEXE$2="Windows Executable File";var fileJS$2="JavaScript File";var fileJSON$2="JavaScript Object Notation File";var filePHP$2="Hypertext Preprocessor File";var fileSASS$2="Syntactically Awesome StyleSheets File";var fileTS$2="TypeScript File";var fileTSX$2="TypeScript Extended Syntax File";var imageHEIC$2="High Efficiency Image File Format";var imagePNG$2="Portable Network Graphics Image";var imageSVG$2="Scalable Vector Graphics Image";var imageTIFF$2="Tag Image File Format Image";var imageWEBP$2="Google Web Picture Image";var objectLinkingAndEmbedding$2="Object Linking and Embedding";var openDocumentFormat$2="OpenDocument Document";var slideLO$2="LibreOffice Presentation Slide";var slidePowerPoint$2="PowerPoint Presentation Slide";var spreadsheetLO$2="LibreOffice Spreadsheet";var spreadsheetMS$2="Microsoft Office Spreadsheet";var uncompressedArchive$2="Uncompressed Archive";var uncompressedAudio$2="Uncompressed Audio";var unknown$2="Unknown File Format";var videoHD$2="High Definition Video";var videoSD$2="Standard Definition Video";var fileDescriptionLocaleEn={appleDiskImage:appleDiskImage$2,certificateTSD:certificateTSD$2,compressedArchive:compressedArchive$2,compressedAudio:compressedAudio$2,compressedDocumentMS:compressedDocumentMS$2,compressedImage:compressedImage$2,dart:dart$2,documentAdobe:documentAdobe$2,documentDigitalSingnature:documentDigitalSingnature$2,documentLO:documentLO$2,documentMS:documentMS$2,documentRTF:documentRTF$2,documentTXT:documentTXT$2,documentWeb:documentWeb$2,email:email$2,extensibleMarkupLanguage:extensibleMarkupLanguage$2,fileAI:fileAI$2,fileDB:fileDB$2,fileEPS:fileEPS$2,fileEXE:fileEXE$2,fileJS:fileJS$2,fileJSON:fileJSON$2,filePHP:filePHP$2,fileSASS:fileSASS$2,fileTS:fileTS$2,fileTSX:fileTSX$2,imageHEIC:imageHEIC$2,imagePNG:imagePNG$2,imageSVG:imageSVG$2,imageTIFF:imageTIFF$2,imageWEBP:imageWEBP$2,objectLinkingAndEmbedding:objectLinkingAndEmbedding$2,openDocumentFormat:openDocumentFormat$2,slideLO:slideLO$2,slidePowerPoint:slidePowerPoint$2,spreadsheetLO:spreadsheetLO$2,spreadsheetMS:spreadsheetMS$2,uncompressedArchive:uncompressedArchive$2,uncompressedAudio:uncompressedAudio$2,unknown:unknown$2,videoHD:videoHD$2,videoSD:videoSD$2};var appleDiskImage$1="Imagen de disco Apple";var certificateTSD$1="Certificado de sello de tiempo";var compressedArchive$1="Archivo comprimido";var compressedAudio$1="Audio comprimido";var compressedDocumentMS$1="Documento comprimido de Microsoft Word";var compressedImage$1="Imagen comprimida";var dart$1="Archivo Dart";var documentAdobe$1="Documento Adobe";var documentDigitalSingnature$1="Documento con firma digital";var documentLO$1="Documento de LibreOffice";var documentMS$1="Documento de Microsoft Word";var documentRTF$1="Documento de formato de texto enriquecido";var documentTXT$1="Documento de texto sin formato";var documentWeb$1="Página web";var email$1="Correo electrónico";var extensibleMarkupLanguage$1="Lenguaje de marcado para datos";var fileAI$1="Archivo vectorial de Adobe Illustrator";var fileDB$1="Archivo de base de datos";var fileEPS$1="Archivo vectorial de Corel Draw";var fileEXE$1="Archivo ejecutable de Windows";var fileJS$1="Archivo JavaScript";var fileJSON$1="Archivo de notación de objetos de JavaScript";var filePHP$1="Archivo de preprocesador de hipertexto";var fileSASS$1="Archivo de Syntactically Awesome StyleSheets";var fileTS$1="Archivo TypeScript";var fileTSX$1="Archivo de sintaxis extendida de TypeScript";var imageHEIC$1="Formato de archivo de imagen de alta eficiencia";var imagePNG$1="Imagen Portable Network Graphics";var imageSVG$1="Imagen de gráficos vectoriales escalables";var imageTIFF$1="Imagen de formato de archivo de imagen etiquetado";var imageWEBP$1="Imagen Google Web Picture";var objectLinkingAndEmbedding$1="Vinculación e incrustación de objetos";var openDocumentFormat$1="Documento OpenDocument";var slideLO$1="Diapositiva de presentación de LibreOffice";var slidePowerPoint$1="Diapositiva de presentación de PowerPoint";var spreadsheetLO$1="Hoja de cálculo de LibreOffice";var spreadsheetMS$1="Hoja de cálculo de Microsoft Office";var uncompressedArchive$1="Archivo no comprimido";var uncompressedAudio$1="Audio no comprimido";var unknown$1="Formato de archivo desconocido";var videoHD$1="Video de alta definición";var videoSD$1="Video de definición estándar";var fileDescriptionLocaleEs={appleDiskImage:appleDiskImage$1,certificateTSD:certificateTSD$1,compressedArchive:compressedArchive$1,compressedAudio:compressedAudio$1,compressedDocumentMS:compressedDocumentMS$1,compressedImage:compressedImage$1,dart:dart$1,documentAdobe:documentAdobe$1,documentDigitalSingnature:documentDigitalSingnature$1,documentLO:documentLO$1,documentMS:documentMS$1,documentRTF:documentRTF$1,documentTXT:documentTXT$1,documentWeb:documentWeb$1,email:email$1,extensibleMarkupLanguage:extensibleMarkupLanguage$1,fileAI:fileAI$1,fileDB:fileDB$1,fileEPS:fileEPS$1,fileEXE:fileEXE$1,fileJS:fileJS$1,fileJSON:fileJSON$1,filePHP:filePHP$1,fileSASS:fileSASS$1,fileTS:fileTS$1,fileTSX:fileTSX$1,imageHEIC:imageHEIC$1,imagePNG:imagePNG$1,imageSVG:imageSVG$1,imageTIFF:imageTIFF$1,imageWEBP:imageWEBP$1,objectLinkingAndEmbedding:objectLinkingAndEmbedding$1,openDocumentFormat:openDocumentFormat$1,slideLO:slideLO$1,slidePowerPoint:slidePowerPoint$1,spreadsheetLO:spreadsheetLO$1,spreadsheetMS:spreadsheetMS$1,uncompressedArchive:uncompressedArchive$1,uncompressedAudio:uncompressedAudio$1,unknown:unknown$1,videoHD:videoHD$1,videoSD:videoSD$1};var appleDiskImage="Immagine Disco Apple";var certificateTSD="Marca temporale";var compressedArchive="Archivio compresso";var compressedAudio="Audio compresso";var compressedDocumentMS="Documento di testo Microsoft Word Compresso";var compressedImage="Immagine compressa";var dart="File Dart";var documentAdobe="Documento Adobe";var documentDigitalSingnature="Documento con firma digitale";var documentLO="Documento di testo LibreOffice";var documentMS="Documento di testo Microsoft Word";var documentRTF="Documento di testo Rich Text Format";var documentTXT="Documento di testo senza formattazione";var documentWeb="Pagina web";var email="E-mail";var extensibleMarkupLanguage="Linguaggio markup per dati";var fileAI="File vettoriale Adobe Illustrator";var fileDB="File di database";var fileEPS="File vettoriale Corel Draw";var fileEXE="File eseguibile Windows";var fileJS="File JavaScript";var fileJSON="File JavaScript Object Notation";var filePHP="File Hypertext Preprocessor";var fileSASS="File Syntactically Awesome StyleSheets";var fileTS="File TypeScript";var fileTSX="File TypeScript Extended Syntax";var imageHEIC="High Efficiency Image File Format";var imagePNG="Immagine Portable Network Graphics";var imageSVG="Immagine vettoriale Scalable Vector Graphics";var imageTIFF="Immagine Tag Image File Format";var imageWEBP="Immagine Google Web Picture";var objectLinkingAndEmbedding="Integrazione oggetti nei file";var openDocumentFormat="Documento OpenDocument";var slideLO="Slide di presentazione LibreOffice";var slidePowerPoint="Slide di presentazione PowerPoint";var spreadsheetLO="Foglio di calcolo LibreOffice";var spreadsheetMS="Foglio di calcolo Office";var uncompressedArchive="Archivio non compresso";var uncompressedAudio="Audio non compresso";var unknown="Formato file sconosciuto";var videoHD="Filmato HD ad alta risoluzione";var videoSD="Filmato SD a bassa risoluzione";var fileDescriptionLocaleIt={appleDiskImage:appleDiskImage,certificateTSD:certificateTSD,compressedArchive:compressedArchive,compressedAudio:compressedAudio,compressedDocumentMS:compressedDocumentMS,compressedImage:compressedImage,dart:dart,documentAdobe:documentAdobe,documentDigitalSingnature:documentDigitalSingnature,documentLO:documentLO,documentMS:documentMS,documentRTF:documentRTF,documentTXT:documentTXT,documentWeb:documentWeb,email:email,extensibleMarkupLanguage:extensibleMarkupLanguage,fileAI:fileAI,fileDB:fileDB,fileEPS:fileEPS,fileEXE:fileEXE,fileJS:fileJS,fileJSON:fileJSON,filePHP:filePHP,fileSASS:fileSASS,fileTS:fileTS,fileTSX:fileTSX,imageHEIC:imageHEIC,imagePNG:imagePNG,imageSVG:imageSVG,imageTIFF:imageTIFF,imageWEBP:imageWEBP,objectLinkingAndEmbedding:objectLinkingAndEmbedding,openDocumentFormat:openDocumentFormat,slideLO:slideLO,slidePowerPoint:slidePowerPoint,spreadsheetLO:spreadsheetLO,spreadsheetMS:spreadsheetMS,uncompressedArchive:uncompressedArchive,uncompressedAudio:uncompressedAudio,unknown:unknown,videoHD:videoHD,videoSD:videoSD};export{fileDescriptionLocaleEs as a,fileDescriptionLocaleEn as b,fileDescriptionLocaleEl as c,getSuffix as d,getFormatsVariant as e,fileDescriptionLocaleIt as f,getExtensionInfos as g,getName as h};
@@ -1 +0,0 @@
1
- import{r as e,d as a,h as t,e as i,g as r}from"./p-DIiEV39g.js";import{a as d}from"./p-C0o_l0td.js";import{p as s}from"./p-DB8Rm54c.js";const n=class{constructor(t){e(this,t),this.closedEvent=a(this,"mdsHeaderClose",7),this.visibleEvent=a(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>d(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.handleVisibility=()=>{if(void 0!==this.autoHide&&0!==this.autoHide&&!Number.isNaN(this.autoHide)){if(window.scrollY<this.autoHide)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<this.autoHide&&this.autoHide-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.autoHide),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{if(void 0===this.appearanceSet||""===this.appearanceSet)return[this.appearance];return this.appearanceSet.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(void 0===this.autoHide||0===this.autoHide||Number.isNaN(this.autoHide)||this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu(),this.onMenuChangedHandler(this.hasMenu?this.menu:"none")}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=e)}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return t(i,{key:"c6555033c0158d17685d8b7162c45866f8037285","pref-consumption":s.state.consumption,"pref-mode":s.state.mode,"pref-theme-scheme":s.state["theme-scheme"]},!this.hideBackdrop&&t("div",{key:"fe183e0caf03b46b982bc18efb99ec0919c33f7a",class:"backdrop"},t("div",{key:"466c441e5e99830a95c2a4042e7f35dcc9e939de",class:"backdrop-blur-item"}),t("div",{key:"f4908f6ad7b260300bb8e21941c3af23ab922fd1",class:"backdrop-blur-item"}),t("div",{key:"f303889b90a8e6ea16689c90795890c365f949be",class:"backdrop-blur-item"}),t("div",{key:"8f48b4a5aaeaf05e8631188e2153fbd9da9a5b1b",class:"backdrop-blur-item"}),t("div",{key:"8355bc57ae5af9b902bd58e0ad4a67a492871333",class:"backdrop-blur-item"}),t("div",{key:"ff5c243df68a4dd26baa862abe2a50050e9ed386",class:"backdrop-blur-item"}),t("div",{key:"0f7c9da08faf5ddc14bd34a098003ebe73911b99",class:"backdrop-blur-item"}),t("div",{key:"b36c0beab493efd6736294a5a934556107a6fc13",class:"backdrop-blur-item"}),t("div",{key:"9e39753de2c9f661b3d91cca248e4f222a7e09f3",class:"backdrop-blur-item"}),t("div",{key:"2dbec569325d216a9ef2d414f49b44e6da95db37",class:"backdrop-blur-item"})),t("slot",{key:"d57ef1616405d7f4fb41b4ab7e948b22fb85f409"}),this.hasMenu&&t("div",{key:"3c252d5e09ae4c93e9909533f2d990d18b31e647",class:"menu",part:"menu"},t("mds-modal",{key:"2016f4000527a86b15ca0959347dc229db59f2ad",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},t("slot",{key:"bb7115881458039e1483caf152901c2d35adc44f",name:"menu"}))))}get host(){return r(this)}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}};n.style='@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-header-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-icon-color:var(--mds-header-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-header-backdrop-blur-strength:2px;--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(0deg,#0000,#00000026);--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:block;fill:var(--mds-header-icon-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));position:relative;z-index:var(--mds-header-z-index)}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--radius-lg,16px);margin-bottom:var(--mds-header-inline-margin-current);margin-top:var(--mds-header-inline-margin-current);max-width:var(--breakpoint-wide,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){-webkit-transform:var(--mds-header-hidden-bar-translate-stripe);transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){-webkit-transform:var(--mds-header-hidden-bar-translate-inline);transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:.2s;transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,color-stop(40%,rgb(0 0 0/var(--private-mask-opacity,1))),to(#0000));mask-image:-webkit-gradient(linear,left top,left bottom,color-stop(40%,rgb(0 0 0/var(--private-mask-opacity,1))),to(#0000));-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}';export{n as mds_header}
@@ -1 +0,0 @@
1
- import{r as a,h as r,e,g as o}from"./p-DIiEV39g.js";import{r as t,s}from"./p-C0o_l0td.js";import{p as n}from"./p-DB8Rm54c.js";const d=class{constructor(r){a(this,r),this.variant="green",this.tone="weak",this.typography="option",this.onSlotChangeHandler=()=>{void 0!==this.label&&""!==this.label||(this.label=t(this.host))}}labelChanged(a){this.label=s(a)}render(){return r(e,{key:"86aa308e28dc28decde0195a23c8551084c36ed1","pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},r("mds-text",{key:"32566dfede9c11a1de5ba48051cc5e2dffe4f35e",tag:"span",typography:this.typography,variant:"info",text:this.label},this.label||r("slot",{key:"e7055d4c61bfc4ea0876cc849a829ae0ce77c5d2",onSlotchange:this.onSlotChangeHandler})))}get host(){return o(this)}static get watchers(){return{label:[{labelChanged:0}]}}};d.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-badge-background:rgb(var(--label-sky-09,185 231 251));--mds-badge-border-color:rgb(var(--label-sky-06,47 182 243));--mds-badge-border-width:1px;--mds-badge-color:rgb(var(--label-sky-03,8 94 133));--mds-badge-radius:var(--radius-lg,10px);--mds-badge-transition-duration:var(--duration-200,.2s);--private-badge-transition-duration:var(--mds-badge-transition-duration);align-items:center;background-color:var(--mds-badge-background,rgb(var(--label-sky-09,185 231 251)));border-radius:var(--mds-badge-radius,var(--radius-lg,10px));color:var(--mds-badge-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));display:inline-flex;min-width:min-content;padding:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--private-badge-transition-duration);transition-duration:var(--private-badge-transition-duration);transition-property:background-color,border-color,border-width,color;-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));--mds-badge-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([tone=outline]){background-color:#0000;border-color:var(--mds-badge-border-color,rgb(var(--label-sky-06,47 182 243)));border-style:solid;border-width:var(--mds-badge-border-width,1px)}:host([variant=red]){--mds-badge-background:rgb(var(--label-red-04,212 28 28))}:host([variant=red]):host([tone=weak]){--mds-badge-background:rgb(var(--label-red-09,250 215 215));--mds-badge-color:rgb(var(--label-red-02,131 17 17))}:host([variant=red]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-red-06,241 144 144));--mds-badge-color:rgb(var(--label-red-04,212 28 28))}:host([variant=amaranth]){--mds-badge-background:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=amaranth]):host([tone=weak]){--mds-badge-background:rgb(var(--label-amaranth-09,253 214 221));--mds-badge-color:rgb(var(--label-amaranth-02,131 8 29))}:host([variant=amaranth]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-amaranth-06,248 138 157));--mds-badge-color:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=aqua]){--mds-badge-background:rgb(var(--label-aqua-04,4 122 143))}:host([variant=aqua]):host([tone=weak]){--mds-badge-background:rgb(var(--label-aqua-09,151 237 252));--mds-badge-color:rgb(var(--label-aqua-02,2 75 88))}:host([variant=aqua]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-aqua-06,6 186 217));--mds-badge-color:rgb(var(--label-aqua-04,4 122 143))}:host([variant=blue]){--mds-badge-background:rgb(var(--label-blue-04,63 94 248))}:host([variant=blue]):host([tone=weak]){--mds-badge-background:rgb(var(--label-blue-09,216 222 254));--mds-badge-color:rgb(var(--label-blue-02,7 39 192))}:host([variant=blue]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-blue-06,149 166 251));--mds-badge-color:rgb(var(--label-blue-04,63 94 248))}:host([variant=green]){--mds-badge-background:rgb(var(--label-green-04,22 128 61))}:host([variant=green]):host([tone=weak]){--mds-badge-background:rgb(var(--label-green-09,165 240 193));--mds-badge-color:rgb(var(--label-green-02,14 80 38))}:host([variant=green]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-green-06,34 195 93));--mds-badge-color:rgb(var(--label-green-04,22 128 61))}:host([variant=lime]){--mds-badge-background:rgb(var(--label-lime-04,81 124 13))}:host([variant=lime]):host([tone=weak]){--mds-badge-background:rgb(var(--label-lime-09,189 239 111));--mds-badge-color:rgb(var(--label-lime-02,49 76 8))}:host([variant=lime]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-lime-06,123 189 20));--mds-badge-color:rgb(var(--label-lime-04,81 124 13))}:host([variant=orange]){--mds-badge-background:rgb(var(--label-orange-04,185 78 5))}:host([variant=orange]):host([tone=weak]){--mds-badge-background:rgb(var(--label-orange-09,253 217 191));--mds-badge-color:rgb(var(--label-orange-02,114 48 3))}:host([variant=orange]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-orange-06,250 143 69));--mds-badge-color:rgb(var(--label-orange-04,185 78 5))}:host([variant=orchid]){--mds-badge-background:rgb(var(--label-orchid-04,206 21 113))}:host([variant=orchid]):host([tone=weak]){--mds-badge-background:rgb(var(--label-orchid-09,251 213 232));--mds-badge-color:rgb(var(--label-orchid-02,127 13 70))}:host([variant=orchid]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-orchid-06,243 137 189));--mds-badge-color:rgb(var(--label-orchid-04,206 21 113))}:host([variant=sky]){--mds-badge-background:rgb(var(--label-sky-04,10 118 167))}:host([variant=sky]):host([tone=weak]){--mds-badge-background:rgb(var(--label-sky-09,185 231 251));--mds-badge-color:rgb(var(--label-sky-02,6 73 104))}:host([variant=sky]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-sky-06,47 182 243));--mds-badge-color:rgb(var(--label-sky-04,10 118 167))}:host([variant=violet]){--mds-badge-background:rgb(var(--label-violet-04,126 73 245))}:host([variant=violet]):host([tone=weak]){--mds-badge-background:rgb(var(--label-violet-09,229 218 253));--mds-badge-color:rgb(var(--label-violet-02,65 11 190))}:host([variant=violet]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-violet-06,184 156 250));--mds-badge-color:rgb(var(--label-violet-04,126 73 245))}:host([variant=purple]){--mds-badge-background:rgb(var(--label-purple-04,150 51 245))}:host([variant=purple]):host([tone=weak]){--mds-badge-background:rgb(var(--label-purple-09,235 216 253));--mds-badge-color:rgb(var(--label-purple-02,90 8 168))}:host([variant=purple]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-purple-06,201 149 250));--mds-badge-color:rgb(var(--label-purple-04,150 51 245))}:host([variant=yellow]){--mds-badge-background:rgb(var(--label-yellow-04,141 107 5))}:host([variant=yellow]):host([tone=weak]){--mds-badge-background:rgb(var(--label-yellow-09,251 221 131));--mds-badge-color:rgb(var(--label-yellow-02,87 67 3))}:host([variant=yellow]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-yellow-06,214 163 7));--mds-badge-color:rgb(var(--label-yellow-04,141 107 5))}:host([variant=warning]){--mds-badge-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=warning]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-badge-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-badge-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=error]){--mds-badge-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=error]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-badge-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-badge-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=success]){--mds-badge-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=success]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-badge-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-badge-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=info]){--mds-badge-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=info]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-badge-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-badge-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=light]){--mds-badge-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-badge-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-badge-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=outline]){--mds-badge-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-badge-border-color:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))))}:host([variant=dark]){--mds-badge-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-badge-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-badge-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=dark]):host([tone=outline]){--mds-badge-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-badge-border-color:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-badge-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([tone=strong]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([tone=weak]){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more]):host([tone=weak]){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more][pref-mode=dark][tone=strong]),:host([pref-contrast=more][pref-mode=dark][tone=weak]){-webkit-box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset;box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-badge-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([tone=strong]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([tone=weak]){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more][pref-mode=system][tone=strong]),:host([pref-contrast=more][pref-mode=system][tone=weak]){-webkit-box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset;box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}@media (prefers-contrast:more){:host(:not([pref-contrast])):host([tone=weak]),:host([pref-contrast=system]){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=system][pref-mode=dark][tone=strong]),:host([pref-contrast=system][pref-mode=dark][tone=weak]){-webkit-box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset;box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system][tone=strong]),:host([pref-contrast=system][pref-mode=system][tone=weak]){-webkit-box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset;box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}";export{d as mds_badge}
@@ -1 +0,0 @@
1
- import{r as t,h as a,e as o,g as r}from"./p-DIiEV39g.js";import{F as i}from"./p-BbMKuVem.js";import{p as e}from"./p-DB8Rm54c.js";import"./p-CHAGzQT-.js";import"./p-D8eZRaSQ.js";import"./p-CSCy6TMW.js";const s=class{constructor(a){t(this,a),this.hideArrow=!1,this.arrowPadding=4,this.disableAutoPlacement=!1,this.flip=!1,this.offset=12,this.placement="top",this.typography="tip",this.disableShift=!1,this.shiftPadding=12,this.strategy="fixed",this.visible=!1,this.handleVisibility=t=>{this.visible=t}}hideArrowChanged(){this.floatingController.updatePosition()}disableAutoPlacementChanged(){this.floatingController.updatePosition()}flipChanged(){this.floatingController.updatePosition()}offsetChanged(){this.floatingController.updatePosition()}placementChanged(){this.floatingController.updatePosition()}disableShiftChanged(){this.floatingController.updatePosition()}shiftPaddingChanged(){this.floatingController.updatePosition()}strategyChanged(){this.floatingController.updatePosition()}visibleChanged(t){this.floatingController.updatePosition(),t?this.floatingController.updatePosition():this.floatingController.dismiss()}targetChanged(){var t;if(""===this.target)return;const a=null===(t=this.floatingController)||void 0===t?void 0:t.updateCaller(this.target);a&&(this.caller=a,this.caller.addEventListener("mouseleave",this.handleVisibility.bind(this,!1)),this.caller.addEventListener("mouseenter",this.handleVisibility.bind(this,!0)))}componentDidLoad(){var t;const a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".arrow");this.floatingController=new i(this.host,a,"tooltip"),this.targetChanged(),this.visible&&this.visibleChanged(!0)}disconnectedCallback(){this.floatingController.dismiss()}render(){return a(o,{key:"02d727ee44214d0a1f463fc6cae454141844af42","pref-animation":e.state.animation,"pref-contrast":e.state.contrast,"pref-mode":e.state.mode,"pref-theme-scheme":e.state["theme-scheme"]},a("div",{key:"8401f0adec5b8e074d9d9bd691ec09fdfc31fca3",class:"arrow",innerHTML:'<svg width="15" height="9" viewBox="0 0 15 9" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.9 1.13333C6.7 0.0666664 8.3 0.0666666 9.1 1.13333L15 9H0L5.9 1.13333Z"/>\n</svg>\n'}),a("mds-text",{key:"9ad6ae17fdf84169c6cd7014038c51b9c0f89ff7",class:"text",typography:this.typography,part:"text"},a("slot",{key:"6c5c19f7780e0849c7940d78a4ca1b6fe64e51d2"})))}get host(){return r(this)}static get watchers(){return{hideArrow:[{hideArrowChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],visible:[{visibleChanged:0}],target:[{targetChanged:0}]}}};s.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tooltip-arrow-background:var(--mds-tooltip-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));--mds-tooltip-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-tooltip-delay:1s;--mds-tooltip-drop-shadow:drop-shadow(0 10px 8px #0000000a) drop-shadow(0 4px 3px #0000001a) drop-shadow(0 0 1px #0000001a);--mds-tooltip-duration:.5s;--private-tooltip-duration:var(--mds-tooltip-duration,.5s);--mds-tooltip-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tooltip-dot-padding:calc(var(--spacing,.0025rem)*100);--mds-tooltip-transform-from:scale(.9) translateY(calc(var(--spacing,.0025rem)*400*-1));--mds-tooltip-transform-to:scale(1) translate(0,0);--mds-tooltip-z-index:var(--magma-tooltip-z-index,6000);background-color:var(--mds-tooltip-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:var(--radius-3xs,4px);box-sizing:border-box;display:grid;filter:var(--mds-tooltip-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);max-width:calc(var(--spacing,.0025rem)*6400);opacity:0;padding-block:calc(var(--spacing,.0025rem)*100);padding-inline:calc(var(--spacing,.0025rem)*200);pointer-events:none;position:fixed;-webkit-transform:var(--mds-tooltip-transform-from,scale(.9) translateY(calc(var(--spacing,.0025rem)*400*-1)));transform:var(--mds-tooltip-transform-from,scale(.9) translateY(calc(var(--spacing,.0025rem)*400*-1)));transition-delay:0s;-webkit-transition-duration:var(--private-tooltip-duration);transition-duration:var(--private-tooltip-duration);transition-property:opacity,transform;-webkit-transition-timing-function:var(--mds-tooltip-ease);transition-timing-function:var(--mds-tooltip-ease);width:fit-content;z-index:var(--mds-tooltip-z-index,var(--magma-tooltip-z-index,6000))}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}:host([visible]:not([visible=false])){opacity:1;pointer-events:auto;-webkit-transform:var(--mds-tooltip-transform-to,scale(1) translate(0,0));transform:var(--mds-tooltip-transform-to,scale(1) translate(0,0));-webkit-transition-delay:var(--mds-tooltip-delay,1s);transition-delay:var(--mds-tooltip-delay,1s)}.text{display:inline-flex;padding:var(--mds-tooltip-dot-padding,calc(var(--spacing,.0025rem)*100))}.arrow{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));display:flex;fill:var(--mds-tooltip-arrow-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));pointer-events:none;position:fixed;top:-9px;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));z-index:-1}::slotted(*){position:relative;z-index:10}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tooltip-duration:0s}:host([pref-contrast=more]){--mds-tooltip-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tooltip-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tooltip-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}}';export{s as mds_tooltip}
@@ -1 +0,0 @@
1
- import{r as a,d as e,h as r,e as s}from"./p-DIiEV39g.js";import{m as t}from"./p-BFhO-KUe.js";import{m as o}from"./p-lZldSMeV.js";const i=class{constructor(r){a(this,r),this.selectThemeEvent=e(this,"mdsPrefThemeItemSelect",7),this.name="default",this.scheme="all",this.selected=!1,this.handleClick=()=>{this.selectThemeEvent.emit({name:this.name,scheme:this.scheme})}}componentWillRender(){void 0!==this.label&&""!==this.label||(this.label=this.name.charAt(0).toUpperCase()+this.name.slice(1).replace(/-/g," "))}render(){return r(s,{key:"ec551ae30ccae450c5d414c0895025bed0dd170e",onClick:this.handleClick,role:"menuitem"},r("mds-button",{key:"30844b1044098c19553c4eca4295057f4a11c8da",icon:this.selected?t:o,variant:"dark",tone:"text"},r("div",{key:"fa16e08a71bb62d516c9304a66fbf3a753fa5683",class:"label"},r("div",{key:"9fb479719afdb1ebc5059de1f243a33d7f45fcbd",class:"theme-preview"},r("div",{key:"1ea92220bd3422a2834845f2332d2e07d02e829f",class:"theme-color theme-color--variant-primary"}),r("div",{key:"9668014487ad4f523f20bed4711bd01d78667b69",class:"theme-color theme-color--status-success"}),r("div",{key:"a0db61833b779d3cd5aab5c9912b4c589ed48306",class:"theme-color theme-color--status-warning"}),r("div",{key:"33e01beea19854485d7780d92657f0c6ac89a6f5",class:"theme-color theme-color--status-error"})),this.label)))}};i.style='@layer reset,vendor,theme,base,components,utilities;:host{--mds-pref-theme-item-color-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));--mds-pref-theme-item-color-status-error:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-pref-theme-item-color-status-success:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-pref-theme-item-color-status-warning:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-pref-theme-item-color-variant-primary:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));display:flex}.label{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.theme-preview{background-color:var(--mds-pref-theme-item-color-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));border-radius:var(--radius-md,12px);-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-sizing:border-box;display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*600);margin:1px;padding:calc(var(--spacing,.0025rem)*100);width:calc(var(--spacing,.0025rem)*600)}.theme-color{background-color:var(--color-tone-neutral-09,rgb(var(--tone-neutral-09,225 225 225)));border-radius:var(--radius-lg,16px);height:calc(var(--spacing,.0025rem)*150);position:relative;width:calc(var(--spacing,.0025rem)*150)}.theme-color:after{border-radius:inherit;-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;content:"";display:flex;inset:0;position:absolute}.theme-color--variant-primary{background-color:var(--mds-pref-theme-item-color-variant-primary,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))))}.theme-color--status-success{background-color:var(--mds-pref-theme-item-color-status-success,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))))}.theme-color--status-warning{background-color:var(--mds-pref-theme-item-color-status-warning,rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))))}.theme-color--status-error{background-color:var(--mds-pref-theme-item-color-status-error,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))))}';export{i as mds_pref_theme_item}
@@ -1 +0,0 @@
1
- import{r as t,h as e,e as i,g as a}from"./p-DIiEV39g.js";import{a as o,p as n}from"./p-DB8Rm54c.js";const r={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}},s=2147483647,h=t=>16807*t%s,l=t=>h(t)/s,g=((t=1)=>{let e=t<1?1:t;const i=()=>(e=h(e),e);return{random:()=>i(),randomFloat:()=>l(i()),range:(t,e)=>{const a=t-.4999;return Math.round(a+(e+.4999-a)*l(i()))},rangeFloat:(t,e)=>t+(e-t)*l(i())}})(),f=()=>{};class m{constructor(t){this.start=()=>{const{frameOffset:t,charOffset:e,str:i,speed:a}=this,o=(n=t,r=e,t=>(t=>t.split("").map((t=>t.charCodeAt(0))))(t).map(((t,e)=>()=>(t+g.range(0,e))*(2*(Math.round(Math.random())-.5)))(n,r)))(i);var n,r;this.stop(),this.rafId=requestAnimationFrame((()=>{this.step(o,a,a)}))},Object.assign(this,Object.assign(Object.assign({},m.defaults),t))}stop(){cancelAnimationFrame(this.rafId)}step(t,e,i){const{str:a,charStep:o,minCharCode:n,maxCharCode:r,placeholderChar:s,onProgress:h,onComplete:l}=this,g=t.map(((t,i)=>i>=e?t:t>0?t-1:t<0?t+1:0)),f=(({str:t,minCharCode:e,maxCharCode:i,placeholderChar:a,charStep:o})=>n=>n.reduce(((n,r,s)=>{return 0!==r?Math.abs(r)>o?n+a:n+String.fromCharCode((h=e,l=i,t=>t>l?h+(t-l):t<h?l+(t-h):t)(t.charCodeAt(s)+r)):n+t.charAt(s);var h,l}),""))({str:a,minCharCode:n,maxCharCode:r,placeholderChar:s,charStep:o})(g),m=g;h(f),f!==a?this.rafId=requestAnimationFrame((()=>{this.step(m,e+i,i)})):l(f)}}m.defaults={str:"",speed:2,placeholderChar:"_",frameOffset:30,charOffset:20,charStep:10,minCharCode:32,maxCharCode:122,onProgress:f,onComplete:f};const p=class{constructor(e){t(this,e),this.cssTextAnimationSpeed=2,this.cssTextAnimationPlaceholderChar=" ",this.randomTextOptions={speed:this.cssTextAnimationSpeed,placeholderChar:this.cssTextAnimationPlaceholderChar,frameOffset:10,charOffset:20,charStep:15},this.animation="none",this.typography="detail",this.animateText=t=>{var e;const i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".text");this.randomTextOptions.speed=this.cssTextAnimationSpeed,this.randomTextOptions.placeholderChar=this.cssTextAnimationPlaceholderChar,this.randomText=new m(Object.assign({str:t,onProgress:t=>{i.innerHTML=t}},this.randomTextOptions)),this.randomText.start()},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.host);this.cssTextAnimationSpeed=Number(t.getPropertyValue("--mds-text-animation-speed"));const e=t.getPropertyValue("--mds-text-animation-placeholder-char");this.cssTextAnimationPlaceholderChar='" "'!==e&&"' '"!==e?e:" "}}componentWillRender(){var t,e;const{tag:i}=null!==(t=r[this.typography])&&void 0!==t?t:r.detail;this.tag=null!==(e=this.tag)&&void 0!==e?e:i}componentDidLoad(){"yugop"===this.animation&&this.updateCSSCustomProps()}textHandler(t){var e;if("none"!==this.animation&&(null!=this.randomText&&this.randomText.stop(),void 0!==t&&""!==t))if(o()){const i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".text");i&&(i.textContent=t)}else this.animateText(t)}render(){return e(i,{key:"468c9b04797da9ab100c89474a7a67313aac829b","pref-animation":n.state.animation},e(this.tag,{key:"245ab42bd31cd0cb4be371f074fee956d3c1c13c",class:"text"},void 0===this.text||""===this.text?e("slot",null):this.text))}get host(){return a(this)}static get watchers(){return{text:[{textHandler:0}]}}};p.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-font-weight:initial;--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-text-selection-background:rgb(var(--label-sky-09,185 231 251));--mds-text-selection-color:rgb(var(--label-sky-01,4 48 68));--mds-text-line-clamp:3;--mds-text-animation-speed:.5;--mds-text-animation-placeholder-char:" ";--mds-text-transition-duration:var(--duration-200,.2s);--private-text-transition-duration:var(--mds-text-transition-duration);display:flex;min-width:0}.text::selection{background-color:var(--mds-text-selection-background,rgb(var(--label-sky-09,185 231 251)));color:var(--mds-text-selection-color,rgb(var(--label-sky-01,4 48 68)))}.text{cursor:inherit;display:inherit}:host([animation=yugop]) .text{white-space:pre-wrap}:host([typography=snippet]){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=hack]){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h1]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-h1,3rem);font-weight:var(--tw-font-weight,var(--text-size-title-h1--font-weight,900));letter-spacing:var(--tw-tracking,var(--text-size-title-h1--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-title-h1--line-height,3rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-black,900);font-weight:var(--font-weight-black,900);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h2]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-h2,2.25rem);font-weight:var(--tw-font-weight,var(--text-size-title-h2--font-weight,900));letter-spacing:var(--tw-tracking,var(--text-size-title-h2--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-title-h2--line-height,2.5rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-black,900);font-weight:var(--font-weight-black,900);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h3]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-h3,1.875rem);font-weight:var(--tw-font-weight,var(--text-size-title-h3--font-weight,900));letter-spacing:var(--tw-tracking,var(--text-size-title-h3--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-title-h3--line-height,2.25rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-black,900);font-weight:var(--font-weight-black,900);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h4]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-h4,1.5rem);font-weight:var(--tw-font-weight,var(--text-size-title-h4--font-weight,900));letter-spacing:var(--tw-tracking,var(--text-size-title-h4--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-title-h4--line-height,2rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-black,900);font-weight:var(--font-weight-black,900);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h5]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-h5,1.25rem);font-weight:var(--tw-font-weight,var(--text-size-title-h5--font-weight,900));letter-spacing:var(--tw-tracking,var(--text-size-title-h5--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-title-h5--line-height,1.75rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-black,900);font-weight:var(--font-weight-black,900);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h6]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-h6,1rem);font-weight:var(--tw-font-weight,var(--text-size-title-h6--font-weight,700));letter-spacing:var(--tw-tracking,var(--text-size-title-h6--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-title-h6--line-height,1.5rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=h1]),:host([typography=h2]),:host([typography=h3]),:host([typography=h4]),:host([typography=h5]),:host([typography=h6]){text-wrap:balance}:host([typography=action]){font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-title-action,.875rem);font-weight:var(--tw-font-weight,var(--text-size-title-action--font-weight,500));line-height:var(--tw-leading,var(--text-size-title-action--line-height,1.5rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=paragraph]){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-paragraph,1.25rem);font-weight:var(--tw-font-weight,var(--text-size-info-paragraph--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-paragraph--line-height,2rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=detail]){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=caption]){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-caption,.875rem);font-weight:var(--tw-font-weight,var(--text-size-info-caption--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-caption--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=caption]),:host([typography=detail]),:host([typography=paragraph]){text-wrap:pretty}:host([typography=label]){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem));min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=tip]){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-tip,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-tip--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-tip--line-height,1rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=option]){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-option,.625rem);font-weight:var(--tw-font-weight,var(--text-size-info-option--font-weight,700));letter-spacing:var(--tw-tracking,var(--text-size-info-option--letter-spacing,-.025em));line-height:var(--tw-leading,var(--text-size-info-option--line-height,.625rem));min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=paragraph][variant=read]){font-family:var(--font-read,"Merriweather",Times,"Times New Roman",serif);font-size:var(--text-size-read-paragraph,1.25rem);font-weight:var(--tw-font-weight,var(--text-size-read-paragraph--font-weight,300));line-height:var(--tw-leading,var(--text-size-read-paragraph--line-height,2rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-light,300);font-weight:var(--font-weight-light,300);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=detail][variant=read]){font-family:var(--font-read,"Merriweather",Times,"Times New Roman",serif);font-size:var(--text-size-read-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-read-detail--font-weight,300));line-height:var(--tw-leading,var(--text-size-read-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;--tw-font-weight:var(--font-weight-light,300);font-weight:var(--font-weight-light,300);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=caption][variant=read]){font-family:var(--font-read,"Merriweather",Times,"Times New Roman",serif);font-size:var(--text-size-read-caption,.875rem);font-weight:var(--tw-font-weight,var(--text-size-read-caption--font-weight,400));line-height:var(--tw-leading,var(--text-size-read-caption--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag=article]),:host([tag=blockquote]),:host([tag=dd]),:host([tag=details]),:host([tag=div]),:host([tag=dl]),:host([tag=dt]),:host([tag=figcaption]),:host([tag=h1]),:host([tag=h2]),:host([tag=h3]),:host([tag=h4]),:host([tag=h5]),:host([tag=h6]),:host([tag=label]),:host([tag=legend]),:host([tag=li]),:host([tag=ol]),:host([tag=p]),:host([tag=pre]),:host([tag=summary]),:host([tag=ul]){display:block}:host([tag=abbr]),:host([tag=address]),:host([tag=b]),:host([tag=bdo]),:host([tag=cite]),:host([tag=code]),:host([tag=del]),:host([tag=dfn]),:host([tag=em]),:host([tag=i]),:host([tag=ins]),:host([tag=kbd]),:host([tag=mark]),:host([tag=q]),:host([tag=rb]),:host([tag=rt]),:host([tag=ruby]),:host([tag=s]),:host([tag=samp]),:host([tag=small]),:host([tag=span]),:host([tag=strong]),:host([tag=sub]),:host([tag=sup]),:host([tag=time]),:host([tag=u]),:host([tag=var]){display:inline}:host([tag=code]){--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));border-radius:var(--radius-3xs,4px);-webkit-box-shadow:rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))) 0 0 0 1px;box-shadow:rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))) 0 0 0 1px;color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));padding-block:calc(var(--spacing,.0025rem)*25);padding-inline:calc(var(--spacing,.0025rem)*100);-webkit-transition-duration:var(--private-text-transition-duration);transition-duration:var(--private-text-transition-duration);transition-property:color,background-color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([truncate]) .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}:host([truncate=word]) .text{white-space:nowrap}@supports (line-clamp:1){:host([truncate=all]) .text{line-clamp:var(--mds-text-line-clamp,1)}}@supports (display:-webkit-box){:host([truncate=all]) .text{-webkit-line-clamp:var(--mds-text-line-clamp,1);-webkit-box-orient:vertical;display:-webkit-box}}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}';export{p as mds_text}
@@ -1 +0,0 @@
1
- System.register(["./p-MGv0i39Y.system.js","./p-RJ5ZA1kY.system.js","./p-Qrub-hmK.system.js","./p-CDTiTqY0.system.js"],(function(e){"use strict";var a,t,r,i,n,s,d;return{setters:[function(e){a=e.r;t=e.h;r=e.e;i=e.g},function(e){n=e.h},function(e){s=e.c},function(e){d=e.p}],execute:function(){var o=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-entity-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--radius-md,12px);--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));align-items:stretch;background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--radius-md,12px);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--radius-md,12px))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*0);justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}}"};var l=e("mds_entity",/** @class */function(){function e(e){var t=this;a(this,e);this.onSlotChange=function(){t.hasDetails=n(t.hostElement,"detail");t.hasActions=n(t.hostElement,"action")}}e.prototype.checkAvatar=function(){var e=false;if(this.src!==undefined){e=true}if(this.icon!==undefined){e=true}if(this.initials!==undefined){e=true}if(this.await){return false}return e};e.prototype.componentWillLoad=function(){this.onSlotChange()};e.prototype.render=function(){return t(r,{key:"6f3b52502b6d3adf53e6f2e09102aedb85511b90","pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},t("div",{key:"2564f37213f6d869c956d42e2f71e53514961d54",class:"spinner",part:"spinner"},t("mds-spinner",{key:"02cab86d55e671c5cd8ea218f310108b955d5074",running:true})),this.checkAvatar()&&t("mds-avatar",{key:"b4a21449ce6667f2002f2dcc512e02941f3f262e",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),t("div",{key:"f04ae006e58634fe1693d6c6a44c216dffd9eca7",class:"infos"},t("slot",{key:"4b3eeff2039502cc594c9d5ff7f572b2299c1c30"}),t("div",{key:"05ec19be56b796da0503155dba807b71f7df3f54",class:s("details",!this.hasDetails&&"details--hidden")},t("slot",{key:"05d86303e22bfa0e1e3022ee01d333780023a560",name:"detail",onSlotchange:this.onSlotChange}))),t("div",{key:"d181d072325bc9f42366fd6182f6e2ba108eece9",class:s("actions",!this.hasActions&&"actions--hidden")},t("slot",{key:"2987056a975034a263f16cb7b3a855a723324f7a",name:"action",onSlotchange:this.onSlotChange})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());l.style=o()}}}));
@@ -1 +0,0 @@
1
- import{r as t,h as a,e as i}from"./p-DIiEV39g.js";const e=class{constructor(a){t(this,a),this.separator={apa:"&",mla:"e",turabian:"&"},this.format="apa",this.rel="external",this.typography="detail",this.monthName=t=>["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"][t],this.getDate=t=>new Date(isNaN(Number(t))?t:parseInt(t)),this.dateFormatAPA=t=>{const a=this.getDate(t);return"Invalid Date"===a.toString()?"":`${a.getFullYear()}, ${this.monthName(a.getMonth())} ${a.getDate()}`},this.dateFormatMLA=t=>{const a=this.getDate(t);return"Invalid Date"===a.toString()?"":`${a.getDate()} ${this.monthName(a.getMonth())} ${a.getFullYear()}`},this.fullNameAPA=(t,a)=>{var i;let e="";if(t.includes(" ")){const a=new RegExp(/(\w+)/,"g");null===(i=t.match(a))||void 0===i||i.forEach((t=>{e=`${e} ${t.substring(0,1)}.`}))}else e=` ${t.substring(0,1)}.`;return`${a}${""!==a?",":""}${e}`},this.fullNameMLA=(t,a)=>{var i;let e="";if(t.includes(" ")){const a=new RegExp(/(\w+)/,"g");null===(i=t.match(a))||void 0===i||i.forEach(((t,a)=>{e=0===a?t:`${e} ${t.substring(0,1)}.`}))}else e=t;return`${a}${""!==a?",":""} ${e}`},this.formatAuthors=t=>{var a;const i=t.replace(/"/g,"'"),e=new RegExp(/([A-Za-z ]{2,})/g),r=null!==(a=i.match(e))&&void 0!==a?a:i;if(r.length>1){const t=r[0].trim(),a=""!==r[1]?r[1].trim():"";return{apa:this.fullNameAPA(t,a),firstName:t,lastName:a,mla:this.fullNameMLA(t,a),turabian:this.fullNameMLA(t,a)}}const s=r[0].split(" ")[0].trim(),n=""!==r[0].split(" ")[1]?r[0].split(" ")[1].trim():"";return{apa:this.fullNameAPA(s,n),firstName:s,lastName:n,mla:this.fullNameMLA(s,n),turabian:this.fullNameMLA(s,n)}},this.normalizeAuthors=t=>{const a=[];return t.includes(",")?(t.split(",").forEach((t=>{a.push(this.formatAuthors(t))})),a):(a.push(this.formatAuthors(t)),a)},this.showAuthors=t=>{let a="";return t.forEach(((t,i)=>{a=0===i?t[this.format]:`${a}, ${this.separator[this.format]} ${t[this.format]}`})),a}}render(){return a(i,{key:"23f59847854d7d9a89b7dd2750e436d8f02e3d14"},a("mds-text",{key:"b894fe2efb2a5fcb6efed4e71efc21bd226e05fe",typography:this.typography,variant:this.variant},this.author&&a("span",{key:"c4643d727585acf555ddd35a75b899694e5c9402"},this.showAuthors(this.normalizeAuthors(this.author))),"mla"===this.format&&a("span",{key:"6dbda3e1aaeac89017d1fed6d8ff2cd832693199"},this.name&&" ",void 0!==this.name&&""!==this.name&&null!==this.url?a("a",{class:"link",href:this.url,target:"_blank",rel:this.rel},a("b",null,a("i",null,this.name,"."))):a("b",null,a("i",null,this.name,".")),this.location&&a("span",{key:"340b4ecae707224b88baf69235b669ecee608e28"}," ",this.location,void 0!==this.publisher?":":"."),this.publisher&&a("span",{key:"54d44315bbf6859e10136f0cbd73d5a56cbd3af9"}," ",this.publisher,void 0!==this.date?",":"."),this.date&&a("time",{key:"642f54d9348dd05fe0867ef2259c1ed720987b9c",dateTime:this.date}," ",this.dateFormatMLA(this.date),".")),"apa"===this.format&&a("span",{key:"1a6caf7ae4b454bf05b924e56c9aad6e882efe98"},this.date&&a("time",{key:"2dbce299a5459cff5da64ac87925947bcddb2336",dateTime:this.date}," (",this.dateFormatAPA(this.date),")."),this.name&&" ",void 0!==this.name&&""!==this.name&&null!==this.url?a("a",{class:"link",href:this.url,target:"_blank",rel:this.rel},a("b",null,a("i",null," ",this.name,"."))):a("b",null,a("i",null," ",this.name,".")),this.location&&a("span",{key:"c9f7127424939df3e352479e48a298e964ec4d06"}," ",this.location,void 0!==this.publisher?":":"."),this.publisher&&a("span",{key:"abb5252ecfb00b5b00c37c1e8063a2c00ea03cc2"}," ",this.publisher,".")),"turabian"===this.format&&a("span",{key:"91cebf4a49774b5f09f5947378b08c54150c6768"},this.name&&" ",void 0!==this.name&&""!==this.name&&null!==this.url?a("a",{class:"link",href:this.url,target:"_blank",rel:this.rel},a("b",null,a("i",null," ",this.name,"."))):a("b",null,a("i",null," ",this.name,".")),this.location&&a("span",{key:"102f8ccc46702f490624d0de0e0dfc1b69a1ce66"}," ",this.location,void 0!==this.publisher?":":","),this.publisher&&a("span",{key:"f263f731ce15c53982f10273a9918854e9e14564"}," ",this.publisher,void 0!==this.date?",":"."),this.date&&a("time",{key:"fcb9f7211479b4f78a056117f81589d4011ac0fc",dateTime:this.date}," ",this.dateFormatMLA(this.date),"."))))}};e.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-bibliography-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-bibliography-text-decoration-hover:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-bibliography-text-decoration:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));display:inline}.link{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--radius-lg,16px);color:var(--mds-bibliography-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));-webkit-text-decoration-color:var(--mds-bibliography-text-decoration,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)))));text-decoration-color:var(--mds-bibliography-text-decoration,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)))));transition-duration:.2s;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-property:-webkit-text-decoration,text-decoration,color,outline,outline-offset;transition-timing-function:ease-in-out}.link:hover{-webkit-text-decoration-color:var(--mds-bibliography-text-decoration-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));text-decoration-color:var(--mds-bibliography-text-decoration-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}.link:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}";export{e as mds_bibliography}
@@ -1 +0,0 @@
1
- import{r as t,h as i,e,g as a}from"./p-DIiEV39g.js";import{p as r}from"./p-DB8Rm54c.js";import{m as n}from"./p-Ccz0jCNB.js";import{m as s}from"./p-DiWN48aq.js";import{c as o}from"./p-ChV9xqsO.js";var h;!function(t){t.ASC="ascending",t.DESC="descending",t.NONE="none"}(h||(h={}));const l=class{constructor(i){t(this,i),this.isAscending=!0,this.currentDirection=h.NONE,this.index=0,this.direction="none",this.prepareSorter=()=>{var t,i,e;!this.sortable||this.sortable&&void 0!==(null===(t=this.tableHeaderCellSiblings)||void 0===t?void 0:t.length)&&0!==(null===(i=this.tableHeaderCellSiblings)||void 0===i?void 0:i.length)||(this.tableBody=null===(e=this.element.closest("mds-table"))||void 0===e?void 0:e.querySelector("mds-table-body"),this.tableHeader=this.element.closest("mds-table-header"),this.tableHeaderCellSiblings=Array.from(this.tableHeader.children),this.index=this.tableHeaderCellSiblings.indexOf(this.element),this.tableRows=Array.from(this.tableBody.children),this.tableRowsDefaultSorted=Array.from(this.tableBody.children))},this.getValue=t=>void 0===t.value||""===t.value||0===t.value||Number.isNaN(t.value)?null!==t.textContent&&""!==t.textContent?t.textContent.trim():"":t.value,this.resetSortAttribute=()=>{this.tableHeaderCellSiblings.forEach((t=>{this.tableHeaderCellSiblings.indexOf(t)!==this.index&&(t.direction="none")})),this.tableRows=Array.from(this.tableBody.children),this.tableRows.forEach((t=>{Array.from(t.children).forEach(((t,i)=>{this.index!==i||this.currentDirection===h.NONE?t.removeAttribute("sorted"):t.setAttribute("sorted","")}))}))},this.sortRows=()=>{this.currentDirection!==h.NONE?(this.tableRows=Array.from(this.tableBody.children),[...this.tableRows].sort(((t,i)=>{const e=this.getValue(t.querySelectorAll("mds-table-cell")[this.index]),a=this.getValue(i.querySelectorAll("mds-table-cell")[this.index]);return isNaN(Number(e))||isNaN(Number(a))?"ascending"===this.direction?String(e).localeCompare(String(a)):String(a).localeCompare(String(e)):"ascending"===this.direction?Number(e)-Number(a):Number(a)-Number(e)})).forEach((t=>this.tableBody.appendChild(t)))):this.tableRowsDefaultSorted.forEach((t=>this.tableBody.appendChild(t)))},this.updateDirection=()=>{this.currentDirection=Object.values(h)[(Object.values(h).indexOf(this.currentDirection)+1)%Object.values(h).length],this.direction=this.currentDirection.toString()},this.sort=()=>{this.updateDirection(),this.sortRows(),this.resetSortAttribute(),this.tableRows=Array.from(this.tableBody.children),this.tableRows.forEach(this.currentDirection===h.NONE?t=>{t.removeAttribute("sorted")}:t=>{t.setAttribute("sorted","")})}}componentDidLoad(){this.prepareSorter()}sortableHandler(){this.prepareSorter()}directionHandler(t){"none"===t&&(this.direction="none",this.currentDirection=h.NONE)}render(){return i(e,{key:"aa269488717b726ffd93efcc6d863e4b9474bbe8",role:"columnheader","aria-sort":this.direction,"pref-animation":r.state.animation},this.sortable?i("mds-button",{class:"action",icon:o("none"===this.direction&&'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9L12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15L12 18.17z"/></svg>',"ascending"===this.direction&&n,"descending"===this.direction&&s),"icon-position":"right",onClick:this.sort,tone:"text",variant:"dark",size:"sm",part:"action",label:this.label}):i("mds-text",{class:"label",typography:"label",part:"label"},this.label))}get element(){return a(this)}static get watchers(){return{sortable:[{sortableHandler:0}],direction:[{directionHandler:0}]}}};l.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial;--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-header-cell-transition-duration:var(--duration-200,.2s);--private-table-header-cell-transition-duration:var(--mds-table-header-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background);border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color)!important;border-top:var(--private-cell-border-width) solid #0000!important;display:table-cell;padding:var(--mds-table-cell-padding);-webkit-transition-duration:var(--private-table-header-cell-transition-duration);transition-duration:var(--private-table-header-cell-transition-duration);transition-property:background-color,border-color,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top;white-space:nowrap}.action{margin-inline:calc(var(--spacing,.0025rem)*-200);padding-inline:calc(var(--spacing,.0025rem)*200)}.action:hover,:host([direction=ascending]) .action,:host([direction=descending]) .action{background-color:var(--mds-table-background-alt)}.action::part(label){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem))}.label{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*700)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-header-cell-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-header-cell-transition-duration:0s}}';export{l as mds_table_header_cell}
@@ -1,15 +0,0 @@
1
- System.register(["./p-MGv0i39Y.system.js","./p-RJ5ZA1kY.system.js"],(function(e){"use strict";var t,a,s,i,r,n;return{setters:[function(e){t=e.r;a=e.h;s=e.e;i=e.g},function(e){r=e.r;n=e.s}],execute:function(){var c=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-progress,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*100);grid-template-columns:repeat(1,minmax(1px,100%))}.infos{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;width:100%}.value{flex-shrink:0}.label{min-width:0}:host([size=md]),:host([size=sm]){gap:calc(var(--spacing,.0025rem)*200)}:host([size=lg]),:host([size=xl]){gap:calc(var(--spacing,.0025rem)*300)}"};var o=e("mds_benchmark_bar",/** @class */function(){function e(e){var a=this;t(this,e);
2
- /**
3
- * The typography of the component
4
- */this.typography="label";
5
- /**
6
- * A value between 0 and 100 that rapresents the benchmark
7
- */this.value=0;
8
- /**
9
- * Sets the theme variant colors
10
- */this.variant="dark";
11
- /**
12
- * Sets the size of the component
13
- */this.size="md";this.onSlotChangeHandler=function(){
14
- /* this should be removed in the future once slotted text is no longer used, use the label property instead */
15
- if(a.label!==undefined&&a.label!=="")return;a.label=r(a.host)}}e.prototype.labelChanged=function(e){this.label=n(e)};e.prototype.render=function(){var e;return a(s,{key:"1c2d9a434915c3bd3487e3accddc100cb457178b"},a("div",{key:"809bfc18d2042c97685adb031b65f3444a1ba3c4",class:"infos"},a("mds-text",{key:"f328a5c085a268ac48839e9553fe48a0d57873f8",typography:this.typography,class:"label",id:"label",truncate:"word"},this.label||a("slot",{key:"d61cde55186ab7d8aa186fb740b35fb9e5e964f4",onSlotchange:this.onSlotChangeHandler})),a("mds-text",{key:"2f0145a1c718cb646fb28e05e6f828c196c8902e",typography:this.typography,class:"value",truncate:"word"},(e=this.alias)!==null&&e!==void 0?e:this.value)),a("mds-progress",{key:"ad484ee140a19ccde21e5a50df8532c03508350a","aria-labelledby":"label","aria-valuetext":this.alias,class:"progress",variant:this.variant,progress:this.value/100,size:this.size,part:"progress-bar"}))};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{label:[{labelChanged:0}]}},enumerable:false,configurable:true});return e}());o.style=c()}}}));
@@ -1 +0,0 @@
1
- import{r as a,h as r,e as t,g as i}from"./p-DIiEV39g.js";import{c as o}from"./p-ChV9xqsO.js";import{g as e}from"./p-E-ZsRS8r.js";import{p as n}from"./p-DB8Rm54c.js";var s,l={exports:{}},v=(s||(s=1,l.exports=function(a){if(a){var r=function(a){return[].slice.call(a)},t=3,i=[],o=null,e="requestAnimationFrame"in a?function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{sync:!1};a.cancelAnimationFrame(o);var t=function(){return s(i.filter((function(a){return a.dirty&&a.active})))};if(r.sync)return t();o=a.requestAnimationFrame(t)}:function(){},n=function(a){return function(r){i.forEach((function(r){return r.dirty=a})),e(r)}},s=function(a){a.filter((function(a){return!a.styleComputed})).forEach((function(a){a.styleComputed=d(a)})),a.filter(m).forEach(b);var r=a.filter(c);r.forEach(v),r.forEach((function(a){b(a),l(a)})),r.forEach(h)},l=function(a){return a.dirty=0},v=function(a){a.availableWidth=a.element.parentNode.clientWidth,a.currentWidth=a.element.scrollWidth,a.previousFontSize=a.currentFontSize,a.currentFontSize=Math.min(Math.max(a.minSize,a.availableWidth/a.currentWidth*a.previousFontSize),a.maxSize),a.whiteSpace=a.multiLine&&a.currentFontSize===a.minSize?"normal":"nowrap"},c=function(a){return 2!==a.dirty||2===a.dirty&&a.element.parentNode.clientWidth!==a.availableWidth},d=function(r){var t=a.getComputedStyle(r.element,null);return r.currentFontSize=parseFloat(t.getPropertyValue("font-size")),r.display=t.getPropertyValue("display"),r.whiteSpace=t.getPropertyValue("white-space"),!0},m=function(a){var r=!1;return!a.preStyleTestCompleted&&(/inline-/.test(a.display)||(r=!0,a.display="inline-block"),"nowrap"!==a.whiteSpace&&(r=!0,a.whiteSpace="nowrap"),a.preStyleTestCompleted=!0,r)},b=function(a){a.element.style.whiteSpace=a.whiteSpace,a.element.style.display=a.display,a.element.style.fontSize=a.currentFontSize+"px"},h=function(a){a.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:a.previousFontSize,newValue:a.currentFontSize,scaleFactor:a.currentFontSize/a.previousFontSize}}))},g=function(a,r){return function(t){a.dirty=r,a.active&&e(t)}},u=function(a){return function(){i=i.filter((function(r){return r.element!==a.element})),a.observeMutations&&a.observer.disconnect(),a.element.style.whiteSpace=a.originalStyle.whiteSpace,a.element.style.display=a.originalStyle.display,a.element.style.fontSize=a.originalStyle.fontSize}},f=function(a){return function(){a.active||(a.active=!0,e())}},p=function(a){return function(){return a.active=!1}},w=function(a){a.observeMutations&&(a.observer=new MutationObserver(g(a,1)),a.observer.observe(a.element,a.observeMutations))},k={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in a&&{subtree:!0,childList:!0,characterData:!0}},y=null,x=function(){a.clearTimeout(y),y=a.setTimeout(n(2),M.observeWindowDelay)},z=["resize","orientationchange"];return Object.defineProperty(M,"observeWindow",{set:function(r){var t="".concat(r?"add":"remove","EventListener");z.forEach((function(r){a[t](r,x)}))}}),M.observeWindow=!0,M.observeWindowDelay=100,M.fitAll=n(t),M}function q(a,r){var o=Object.assign({},k,r),n=a.map((function(a){var r=Object.assign({},o,{element:a,active:!0});return function(a){a.originalStyle={whiteSpace:a.element.style.whiteSpace,display:a.element.style.display,fontSize:a.element.style.fontSize},w(a),a.newbie=!0,a.dirty=!0,i.push(a)}(r),{element:a,fit:g(r,t),unfreeze:f(r),freeze:p(r),unsubscribe:u(r)}}));return e(),n}function M(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof a?q(r(document.querySelectorAll(a)),t):q([a],t)[0]}}("undefined"==typeof window?null:window)),l.exports),c=e(v);const d=["bg-brand-maggioli-05","bg-label-amaranth-05","bg-label-aqua-05","bg-label-blue-05","bg-label-green-05","bg-label-lime-05","bg-label-orange-05","bg-label-orchid-05","bg-label-purple-05","bg-label-red-05","bg-label-sky-05","bg-label-violet-05","bg-label-yellow-05","bg-status-error-05","bg-status-info-05","bg-status-success-05","bg-status-warning-05"],m=class{constructor(r){a(this,r),this.fallback=!1,this.loaded=!0,this.fittyInitialized=!1,this.textChanged=!1,this.variants=["amaranth","aqua","blue","error","green","info","lime","orange","orchid","primary","sky","success","violet","warning","yellow"],this.addFontResize=()=>{var a;if(this.fittyInitialized)return;const r=null===(a=this.element.shadowRoot)||void 0===a?void 0:a.querySelector(".fit");this.fittyElements=c(r,{minSize:10}),this.observer=new ResizeObserver((a=>{a.forEach((()=>{this.fittyElements.fit()}))})),this.observer.observe(this.element),this.fittyInitialized=!0},this.removeFontResize=()=>{this.fittyInitialized&&(this.fittyInitialized=!1,this.observer.unobserve(this.element))},this.checkText=a=>{if(""===a||void 0===a)this.fittyInitialized&&this.removeFontResize();else{if(this.fittyInitialized)return;this.fittyInitialized||this.addFontResize()}},this.handleImgLoadError=()=>{this.loaded=!0,this.fallback=!0},this.handleImgLoadSuccess=()=>{this.loaded=!0},this.checkInitialsVariant=()=>{if(void 0!==this.initials&&""!==this.initials){let a=this.initials.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"").substring(0,2);1===a.length&&(a+=a),this.variant=this.variants[(a.substring(0,1).charCodeAt(0)+a.substring(1,2).charCodeAt(0))%d.length]}}}componentWillLoad(){this.checkInitialsVariant()}componentDidLoad(){void 0!==this.src&&(this.loaded=!1),void 0!==this.initials&&""!==this.initials&&this.checkText(this.initials),void 0===this.count||0===this.count||Number.isNaN(this.count)||this.checkText(this.count.toString())}componentDidRender(){this.textChanged&&(void 0!==this.initials&&""!==this.initials&&this.checkText(this.initials),void 0===this.count||0===this.count||Number.isNaN(this.count)||this.checkText(this.count.toString()),this.textChanged=!1)}initialsHandler(){this.textChanged=!0,this.checkInitialsVariant()}countHandler(){this.textChanged=!0,this.checkInitialsVariant()}srcHandler(a){void 0===a&&(this.loaded=!0)}iconHandler(a){void 0!==a&&(this.loaded=!0)}render(){return r(t,{key:"09e30ddb558c31aa23749b4bf3d5190a30b605c7","pref-animation":n.state.animation,"pref-contrast":n.state.contrast},r("div",{key:"1d99eceedcc2dc604afcd887a2d767d61fced5e1",class:o("avatar",this.initials&&!this.fallback&&(void 0===this.src||""===this.src)&&"avatar--initials",(this.fallback||(void 0===this.icon||""===this.icon)&&(void 0===this.initials||""===this.initials)&&(void 0===this.src||""===this.src))&&"avatar--fallback",this.icon&&"avatar--icon",this.loaded?"avatar--loaded":"avatar--pending"),part:"wrapper"},this.initials&&(void 0===this.count||0===this.count||Number.isNaN(this.count))&&!this.fallback&&(void 0===this.src||""===this.src)&&r("div",{key:"08dd0918a258022793f5331a9de7b2460a2e1404",class:"initials-text"},r("span",{key:"69379497bb9096cea56b366c52ba5372adb5506d",class:"fit"},this.initials.substring(0,2))),this.count&&!this.fallback&&(void 0===this.src||""===this.src)&&r("div",{key:"07c1e94db40562b8a2467605591236433fd6af39",class:"initials-text"},r("span",{key:"36c2b72540c03d140f97d64304d46583419d23df",class:"fit"},"+",this.count)),this.src&&(void 0===this.count||0===this.count||Number.isNaN(this.count))&&!this.fallback&&(void 0===this.icon||""===this.icon)&&r("mds-img",{key:"9d6a6d4a12a5142686aede6e9f9a974f592b674f",class:"image",loading:"lazy",onMdsImgLoadError:this.handleImgLoadError,onMdsImgLoadSuccess:this.handleImgLoadSuccess,part:"media",src:this.src}),this.icon&&(void 0===this.initials||""===this.initials)&&(void 0===this.count||0===this.count||Number.isNaN(this.count))&&r("mds-icon",{key:"b37eae32b77654190b14d8b046d2f9a51801ae2a",class:"icon",part:"icon",name:this.icon}),(this.fallback||(void 0===this.icon||""===this.icon)&&(void 0===this.initials||""===this.initials)&&(void 0===this.count||0===this.count||Number.isNaN(this.count))&&(void 0===this.src||""===this.src))&&r("i",{key:"18d842d4aea1f73adef926ff74a896a9d8a52bc6",class:"fallback-icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>'})))}get element(){return i(this)}static get watchers(){return{initials:[{initialsHandler:0}],count:[{countHandler:0}],src:[{srcHandler:0}],icon:[{iconHandler:0}]}}};m.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-img):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-avatar-background-color-pending:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-avatar-background-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-avatar-color:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-avatar-radius:var(--radius-full,1000px);--mds-avatar-initials-padding:20%;--mds-avatar-transition-duration:var(--duration-200,.2s);--private-avatar-transition-duration:var(--mds-avatar-transition-duration);aspect-ratio:1;border-radius:var(--mds-avatar-radius,var(--radius-full,1000px));container:mds-avatar/inline-size;display:inline-flex;overflow:hidden;width:calc(var(--spacing,.0025rem)*1200)}.avatar{aspect-ratio:1;border-radius:var(--mds-avatar-radius,var(--radius-full,1000px));color:#0000;display:inline-flex;overflow:hidden;-webkit-transition-duration:var(--private-avatar-transition-duration);transition-duration:var(--private-avatar-transition-duration);transition-property:color,background-color,box-shadow,fill;width:100%}.avatar--pending{background-color:var(--mds-avatar-background-color-pending,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))))}.avatar--loaded{animation:none}.avatar--fallback,.avatar--icon,.avatar--initials{background-color:var(--mds-avatar-background-color,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))));-webkit-box-shadow:none;box-shadow:none}.avatar--fallback,.avatar--initials{display:flex;place-items:stretch stretch}.avatar--fallback,.avatar--icon{padding:20%}.avatar--initials{padding:30% var(--mds-avatar-initials-padding,20%) 25%}.image{aspect-ratio:1;border-radius:var(--mds-avatar-radius,var(--radius-full,1000px))}.fallback-icon{aspect-ratio:1;display:flex;fill:var(--mds-avatar-color,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));width:100%}.fallback-icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.initials-text{font-family:var(--font-title,Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);--tw-font-weight:var(--font-weight-bold,700);align-items:center;color:var(--mds-avatar-color,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));display:flex;font-weight:var(--font-weight-bold,700);height:100%;justify-content:center;text-transform:uppercase;-webkit-user-select:none;user-select:none;width:100%}.fit{display:inline-block;white-space:nowrap!important}.icon{fill:var(--mds-avatar-color,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));height:100%;-webkit-transition-duration:var(--private-avatar-transition-duration);transition-duration:var(--private-avatar-transition-duration);transition-property:fill;-webkit-transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));width:100%}@container (max-width:24px){.avatar--initials{padding:0 var(--mds-avatar-initials-padding,20%)}.initials-text{--tw-font-weight:var(--font-weight-black,900);font-weight:var(--font-weight-black,900)}}:host,:host([variant=primary]){--mds-avatar-background-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-avatar-color:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:is(:host,:host([variant=primary])):host([tone=weak]){--mds-avatar-background-color:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-avatar-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}:host([variant=red]){--mds-avatar-background-color:rgb(var(--label-red-05,230 66 66));--mds-avatar-color:rgb(var(--label-red-10,252 233 233))}:host([variant=red]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-red-09,250 215 215));--mds-avatar-color:rgb(var(--label-red-05,230 66 66))}:host([variant=amaranth]){--mds-avatar-background-color:rgb(var(--label-amaranth-05,242 37 72));--mds-avatar-color:rgb(var(--label-amaranth-10,254 232 236))}:host([variant=amaranth]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-amaranth-09,253 214 221));--mds-avatar-color:rgb(var(--label-amaranth-05,242 37 72))}:host([variant=orchid]){--mds-avatar-background-color:rgb(var(--label-orchid-05,233 44 137));--mds-avatar-color:rgb(var(--label-orchid-10,253 231 242))}:host([variant=orchid]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-orchid-09,251 213 232));--mds-avatar-color:rgb(var(--label-orchid-05,233 44 137))}:host([variant=violet]){--mds-avatar-background-color:rgb(var(--label-violet-05,145 100 246));--mds-avatar-color:rgb(var(--label-violet-10,240 234 254))}:host([variant=violet]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-violet-09,229 218 253));--mds-avatar-color:rgb(var(--label-violet-05,145 100 246))}:host([variant=purple]){--mds-avatar-background-color:rgb(var(--label-purple-05,168 86 247));--mds-avatar-color:rgb(var(--label-purple-10,244 233 254))}:host([variant=purple]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-purple-09,235 216 253));--mds-avatar-color:rgb(var(--label-purple-05,168 86 247))}:host([variant=blue]){--mds-avatar-background-color:rgb(var(--label-blue-05,90 117 249));--mds-avatar-color:rgb(var(--label-blue-10,233 236 254))}:host([variant=blue]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-blue-09,216 222 254));--mds-avatar-color:rgb(var(--label-blue-05,90 117 249))}:host([variant=sky]){--mds-avatar-background-color:rgb(var(--label-sky-05,12 136 193));--mds-avatar-color:rgb(var(--label-sky-10,217 241 253))}:host([variant=sky]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-sky-09,185 231 251));--mds-avatar-color:rgb(var(--label-sky-05,12 136 193))}:host([variant=aqua]){--mds-avatar-background-color:rgb(var(--label-aqua-05,5 141 165));--mds-avatar-color:rgb(var(--label-aqua-10,199 245 253))}:host([variant=aqua]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-aqua-09,151 237 252));--mds-avatar-color:rgb(var(--label-aqua-05,5 141 165))}:host([variant=green]){--mds-avatar-background-color:rgb(var(--label-green-05,26 148 71));--mds-avatar-color:rgb(var(--label-green-10,206 247 221))}:host([variant=green]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-green-09,165 240 193));--mds-avatar-color:rgb(var(--label-green-05,26 148 71))}:host([variant=lime]){--mds-avatar-background-color:rgb(var(--label-lime-05,93 143 15));--mds-avatar-color:rgb(var(--label-lime-10,219 247 178))}:host([variant=lime]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-lime-09,189 239 111));--mds-avatar-color:rgb(var(--label-lime-05,93 143 15))}:host([variant=yellow]){--mds-avatar-background-color:rgb(var(--label-yellow-05,161 124 6));--mds-avatar-color:rgb(var(--label-yellow-10,253 236 186))}:host([variant=yellow]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-yellow-09,251 221 131));--mds-avatar-color:rgb(var(--label-yellow-05,161 124 6))}:host([variant=orange]){--mds-avatar-background-color:rgb(var(--label-orange-05,213 90 5));--mds-avatar-color:rgb(var(--label-orange-10,254 233 219))}:host([variant=orange]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--label-orange-09,253 217 191));--mds-avatar-color:rgb(var(--label-orange-05,213 90 5))}:host([variant=error]){--mds-avatar-background-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-avatar-color:rgb(var(--magma-danger-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-avatar-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=warning]){--mds-avatar-background-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-avatar-color:rgb(var(--magma-warning-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=warning]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-avatar-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=info]){--mds-avatar-background-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-avatar-color:rgb(var(--magma-info-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=info]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-avatar-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=success]){--mds-avatar-background-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-avatar-color:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=success]):host([tone=weak]){--mds-avatar-background-color:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-avatar-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-avatar-transition-duration:0s}:host([pref-contrast=more]) :is(.avatar--fallback,.avatar--icon,.avatar--initials){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-avatar-transition-duration:0s}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) :is(.avatar--fallback,.avatar--icon,.avatar--initials){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)),var(--shadow-lg,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)),var(--shadow-lg,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a)}}';export{m as mds_avatar}
@@ -1 +0,0 @@
1
- import{r as a,d as t,h as r,e as o,g as s}from"./p-DIiEV39g.js";import{K as e}from"./p-KRu9I7dw.js";import{c as i}from"./p-D8eZRaSQ.js";import{B as n,F as d}from"./p-BbMKuVem.js";import{p as h}from"./p-DB8Rm54c.js";import"./p-CHAGzQT-.js";import"./p-CSCy6TMW.js";const m=class{constructor(r){a(this,r),this.visibleEvent=t(this,"mdsDropdownVisible",7),this.hiddenEvent=t(this,"mdsDropdownHide",7),this.changedEvent=t(this,"mdsDropdownChange",7),this.km=new e,this.backdropController=new n,this.hideArrow=!1,this.arrowPadding=24,this.disableAutoPlacement=!1,this.backdrop=!1,this.flip=!1,this.interaction="click",this.offset=24,this.placement="bottom",this.disableShift=!1,this.shiftPadding=24,this.disableSmooth=!1,this.strategy="absolute",this.visible=!1,this.onClickTarget=a=>{a.stopPropagation(),document.body.click(),this.visible=!this.visible,this.visible&&this.isMenu&&0===a.detail&&this.focusEntry(0)},this.onMouseOverTarget=()=>{this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!0}),i(this.cssMouseOverDelayDuration))},this.onMouseOutTarget=()=>{clearTimeout(this.mouseoverTimer),this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!1}),i(this.cssMouseOverDelayDuration))},this.markEntries=()=>{this.isMenu&&this.entries().forEach((a=>{const t=a.getAttribute("role");null!==t&&"button"!==t||a.setAttribute("role","menuitem"),a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1")}))},this.entries=()=>{var a,t;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");return this.slottedEntries(null!==(t=null==r?void 0:r.assignedElements())&&void 0!==t?t:[])},this.slottedEntries=a=>a.flatMap((a=>"SLOT"===a.tagName?this.slottedEntries(a.assignedElements()):[a])),this.focusEntry=(a,t=3)=>{const r=this.entries();if(0===r.length||!this.visible)return;const o=r[(a+r.length)%r.length];0===o.offsetWidth&&t>0?requestAnimationFrame((()=>this.focusEntry(a,t-1))):o.focus()},this.onCallerKeydown=a=>{!this.isMenu||"ArrowDown"!==a.key&&"ArrowUp"!==a.key||(a.preventDefault(),this.visible=!0,this.focusEntry("ArrowUp"===a.key?-1:0))},this.onPanelKeydown=a=>{var t;if(!this.isMenu||!this.visible)return;const r=this.entries();if(0===r.length)return;const o=r.findIndex((a=>a.contains(document.activeElement))),s=-1===o?null:o;switch(a.key){case"ArrowDown":a.preventDefault(),this.focusEntry(null===s?0:s+1);break;case"ArrowUp":a.preventDefault(),this.focusEntry(null===s?-1:s-1);break;case"Home":a.preventDefault(),this.focusEntry(0);break;case"End":a.preventDefault(),this.focusEntry(-1);break;case"Tab":this.visible=!1,null===(t=this.caller)||void 0===t||t.focus()}},this.closeFromKeyboard=()=>{var a;if(!this.visible)return;const t=this.host.contains(document.activeElement);this.visible=!1,t&&(null===(a=this.caller)||void 0===a||a.focus())},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.cssMouseOverDelayDuration=a.getPropertyValue("--mds-dropdown-mouseover-delay")},this.handleCloseDropdown=a=>{if("mouseleave"===a.type)return this.host.removeEventListener("mouseleave",this.handleCloseDropdown),this.caller.removeEventListener("mouseleave",this.handleCloseDropdown),void(this.visible=!1);this.host.contains(a.target)||a.target===this.caller||(this.visible=!1,document.removeEventListener("click",this.handleCloseDropdown))},this.setInteractionBehaviour=()=>{"none"!==this.interaction&&("click"===this.interaction&&(this.caller.addEventListener("click",this.onClickTarget),this.caller.addEventListener("keydown",this.onCallerKeydown)),"mouseover"===this.interaction&&(this.caller.addEventListener("mouseover",this.onMouseOverTarget),this.caller.addEventListener("mouseout",this.onMouseOutTarget),this.host.addEventListener("mouseover",this.handleCloseDropdownMouseLeave)))},this.unsetInteractionBehaviour=a=>{a.removeEventListener("click",this.onClickTarget),a.removeEventListener("keydown",this.onCallerKeydown),a.removeEventListener("mouseover",this.onMouseOverTarget),a.removeEventListener("mouseout",this.onMouseOutTarget)},this.handleCloseDropdownMouseLeave=()=>{clearTimeout(this.mouseoverTimer),this.host.removeEventListener("mouseover",this.handleCloseDropdownMouseLeave),this.host.addEventListener("mouseleave",this.handleCloseDropdown)}}hideArrowChanged(){this.floatingController.updatePosition()}arrowPaddingChanged(){this.floatingController.updatePosition()}disableAutoPlacementChanged(){this.floatingController.updatePosition()}backdropChanged(a){!1===a&&(this.backdrop=void 0),this.visible&&(a?this.backdropController.attachBackdrop():this.backdropController.detachBackdrop())}flipChanged(){this.floatingController.updatePosition()}offsetChanged(){this.floatingController.updatePosition()}placementChanged(){this.floatingController.updatePosition()}disableShiftChanged(){this.floatingController.updatePosition()}shiftPaddingChanged(){this.floatingController.updatePosition()}strategyChanged(){this.floatingController.updatePosition()}targetChanged(){if(""===this.target||null==this.floatingController)return;const a=this.floatingController.updateCaller(this.target);a&&(this.caller&&this.caller!==a&&this.unsetInteractionBehaviour(this.caller),this.caller=a,this.markEntries(),this.setInteractionBehaviour(),this.km.addElement(this.host),this.km.attachEscapeBehavior(this.closeFromKeyboard))}visibleChanged(a){if(this.changedEvent.emit({caller:this.caller,visible:a}),this.floatingController.syncExpanded(a),a)return document.addEventListener("click",this.handleCloseDropdown),this.floatingController.updatePosition(),this.backdrop&&this.backdropController.attachBackdrop(),void this.visibleEvent.emit({caller:this.caller,visible:!0});this.floatingController.dismiss(),this.backdrop&&this.backdropController.detachBackdrop(),this.hiddenEvent.emit({caller:this.caller,visible:!1})}get isMenu(){return"menu"===this.host.getAttribute("role")}componentDidLoad(){var a,t,r;const o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".arrow");this.floatingController=new d(this.host,o),this.updateCSSCustomProps(),this.targetChanged(),null===(r=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.markEntries),this.host.addEventListener("slotchange",this.markEntries),this.host.addEventListener("keydown",this.onPanelKeydown),this.visible&&this.visibleChanged(!0)}disconnectedCallback(){this.floatingController.dismiss(),this.backdropController.detachBackdrop(),this.km.detachEscapeBehavior()}render(){return r(o,{key:"909529db1b7f90da7fef23235ac276e133aef6cf",style:{zIndex:`${this.zIndex}`},"pref-animation":h.state.animation,"pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},r("div",{key:"fe65713f1e3f849a57f05ad7e3be0eede40198d4",class:"arrow",innerHTML:'<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n'}),r("slot",{key:"2c438ff28af51844e5e399e07b31773edf745447"}))}get host(){return s(this)}static get watchers(){return{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}}};m.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-dropdown-arrow-background:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));--private-dropdown-backdrop-duration:.2s;--mds-dropdown-backdrop-duration:var(--private-dropdown-backdrop-duration);--mds-dropdown-backdrop-z-index:var(--magma-backdrop-z-index,4000);--mds-dropdown-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-dropdown-drop-shadow-color-rgb:var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)));--mds-dropdown-drop-shadow:drop-shadow(0 10px 8px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5))))/.05)) drop-shadow(0 4px 3px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5))))/.15)) drop-shadow(0 0 1px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5))))/.15));--mds-dropdown-duration:.5s;--private-dropdown-duration:var(--mds-dropdown-duration,.5s);--mds-dropdown-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-dropdown-mouseover-delay:.5s;--mds-dropdown-transform-from:scale(.9) translateY(-3%);--mds-dropdown-transform-to:scale(1) translate(0,0);--mds-dropdown-z-index:var(--magma-dropdown-z-index,5000);background-color:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:none;filter:var(--mds-dropdown-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);opacity:0;padding:calc(var(--spacing,.0025rem)*600);pointer-events:none;position:fixed;-webkit-transform:var(--mds-dropdown-transform-from,scale(.9) translateY(-3%));transform:var(--mds-dropdown-transform-from,scale(.9) translateY(-3%));transition-behavior:allow-discrete;-webkit-transition-duration:var(--private-dropdown-duration);transition-duration:var(--private-dropdown-duration);transition-property:opacity,transform,display;-webkit-transition-timing-function:var(--mds-dropdown-ease);transition-timing-function:var(--mds-dropdown-ease);z-index:var(--mds-dropdown-z-index,var(--magma-dropdown-z-index,5000))}:host([visible]:not([visible=false])){display:grid;opacity:1;pointer-events:auto;-webkit-transform:var(--mds-dropdown-transform-to,scale(1) translate(0,0));transform:var(--mds-dropdown-transform-to,scale(1) translate(0,0))}@starting-style{:host([visible]:not([visible=false])){opacity:0;transform:scale(0)}}:host([data-floating-placed]:not([disable-smooth])),:host([data-floating-placed][disable-smooth=false]){transition-property:bottom,left,display,opacity,right,top,transform}.arrow{display:flex;fill:var(--mds-dropdown-arrow-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));pointer-events:none;position:fixed;top:calc(var(--spacing,.0025rem)*-400)}::slotted(*){position:relative;z-index:10}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-dropdown-duration:0s;--mds-dropdown-backdrop-duration:0s}:host([pref-contrast=more]){--mds-dropdown-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}:host([pref-contrast=more][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.075)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.45)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.45))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-dropdown-duration:0s;--mds-dropdown-backdrop-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}:host([pref-contrast=system][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}}@media (prefers-color-scheme:dark){:host([pref-contrast=more][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.05)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)) drop-shadow(0 0 4px rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3))}}";export{m as mds_dropdown}
@@ -1 +0,0 @@
1
- import{r as s,h as a,e,g as t}from"./p-DIiEV39g.js";import{r as i,s as r}from"./p-C0o_l0td.js";const d=class{constructor(a){s(this,a),this.typography="label",this.value=0,this.variant="dark",this.size="md",this.onSlotChangeHandler=()=>{void 0!==this.label&&""!==this.label||(this.label=i(this.host))}}labelChanged(s){this.label=r(s)}render(){var s;return a(e,{key:"1c2d9a434915c3bd3487e3accddc100cb457178b"},a("div",{key:"809bfc18d2042c97685adb031b65f3444a1ba3c4",class:"infos"},a("mds-text",{key:"f328a5c085a268ac48839e9553fe48a0d57873f8",typography:this.typography,class:"label",id:"label",truncate:"word"},this.label||a("slot",{key:"d61cde55186ab7d8aa186fb740b35fb9e5e964f4",onSlotchange:this.onSlotChangeHandler})),a("mds-text",{key:"2f0145a1c718cb646fb28e05e6f828c196c8902e",typography:this.typography,class:"value",truncate:"word"},null!==(s=this.alias)&&void 0!==s?s:this.value)),a("mds-progress",{key:"ad484ee140a19ccde21e5a50df8532c03508350a","aria-labelledby":"label","aria-valuetext":this.alias,class:"progress",variant:this.variant,progress:this.value/100,size:this.size,part:"progress-bar"}))}get host(){return t(this)}static get watchers(){return{label:[{labelChanged:0}]}}};d.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-progress,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*100);grid-template-columns:repeat(1,minmax(1px,100%))}.infos{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;width:100%}.value{flex-shrink:0}.label{min-width:0}:host([size=md]),:host([size=sm]){gap:calc(var(--spacing,.0025rem)*200)}:host([size=lg]),:host([size=xl]){gap:calc(var(--spacing,.0025rem)*300)}";export{d as mds_benchmark_bar}
@@ -1 +0,0 @@
1
- import{r as t,d as a,h as o,e as r,g as s}from"./p-DIiEV39g.js";import{c as e}from"./p-D8eZRaSQ.js";import{p as i}from"./p-DB8Rm54c.js";import{h as n}from"./p-C0o_l0td.js";import{c as d}from"./p-ChV9xqsO.js";const m=class{constructor(o){t(this,o),this.closedEvent=a(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.duration=5e3,this.variant="light",this.tone="strong",this.position="bottom-center",this.reloadTimeListeners=t=>{"undefined"!=typeof window&&(void 0===this.duration||0===this.duration||Number.isNaN(this.duration)||t&&(this.removeTimeListener(),this.addTimeListener()))},this.removeTimeListener=()=>{window.clearInterval(this.timer),this.timer=0},this.addTimeListener=()=>{this.timer=window.setInterval((()=>{this.visible=!1,this.timerToastDismiss=window.setInterval((()=>{this.closedEvent.emit(),window.clearInterval(this.timerToastDismiss),this.timerToastDismiss=0}),this.cssDismissAnimationDuration)}),this.duration)},this.onActionSlotChange=()=>{this.hasActions=n(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=e(t.getPropertyValue("--mds-tab-duration"))}componentWillLoad(){this.hasText=""!==this.hostElement.innerHTML,this.hasActions=n(this.hostElement,"action"),void 0===this.duration||0===this.duration||Number.isNaN(this.duration)||this.visible&&this.addTimeListener()}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t){this.reloadTimeListeners(t)}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){return o(r,{key:"8bdaf6b4880eade87650f72ad2cf02d8d5be4724","pref-animation":i.state.animation,"pref-contrast":i.state.contrast,"pref-mode":i.state.mode,"pref-theme-scheme":i.state["theme-scheme"]},o("div",{key:"9d5d8972d21dbc40e265317256e2f28241af48e3",class:d("dialog",this.position&&`to-${this.position}`,this.visible&&"dialog--visible")},o("slot",{key:"f256f3a18b80991a3d3286310b0cd5df0020f88f",name:"icon"}),this.hasText&&o("mds-text",{key:"f52eba42e9bd4c0c3e3010ea401616bc44b5ac10",typography:"caption"},o("slot",{key:"f0b92de1ea1fe9227d5f2c04cf2bead2b925a2fd"})),o("div",{key:"56f387b1d634e5703f9f263e3655437d3725d76e",class:d("actions",!this.hasActions&&"actions--hidden")},o("slot",{key:"7bb9ad600b6768b0b3edb21846f6e472825de9c9",name:"action",onSlotchange:this.onActionSlotChange}))))}get hostElement(){return s(this)}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}};m.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-duration:.3s;--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,.3s);--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));align-items:center;background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))));border-radius:var(--radius-xl,20px);-webkit-box-shadow:var(--mds-toast-shadow);box-shadow:var(--mds-toast-shadow);display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;-webkit-transition-duration:var(--private-toast-transition-duration);transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));flex-shrink:0;-webkit-transition-duration:var(--private-toast-transition-duration-icon);transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-toast-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-toast-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}';export{m as mds_toast}