@maggioli-design-system/magma 2.0.0 → 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 (330) hide show
  1. package/dist/cjs/index.cjs.js +64 -22
  2. package/dist/cjs/mds-avatar.cjs.entry.js +27 -32
  3. package/dist/cjs/mds-badge.cjs.entry.js +3 -2
  4. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -2
  5. package/dist/cjs/mds-bibliography.cjs.entry.js +4 -3
  6. package/dist/cjs/mds-button_3.cjs.entry.js +36 -10
  7. package/dist/cjs/mds-dropdown.cjs.entry.js +4 -3
  8. package/dist/cjs/mds-entity.cjs.entry.js +1 -1
  9. package/dist/cjs/mds-file-preview.cjs.entry.js +17 -17
  10. package/dist/cjs/mds-header.cjs.entry.js +17 -8
  11. package/dist/cjs/mds-img.cjs.entry.js +3 -3
  12. package/dist/cjs/mds-input-date-range.cjs.entry.js +7 -5
  13. package/dist/cjs/mds-input-select.cjs.entry.js +10 -8
  14. package/dist/cjs/mds-input-upload.cjs.entry.js +10 -6
  15. package/dist/cjs/mds-input.cjs.entry.js +4 -4
  16. package/dist/cjs/mds-keyboard-key.cjs.entry.js +8 -5
  17. package/dist/cjs/mds-keyboard.cjs.entry.js +6 -3
  18. package/dist/cjs/mds-mention.cjs.entry.js +3 -2
  19. package/dist/cjs/mds-notification.cjs.entry.js +11 -8
  20. package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -2
  21. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +3 -2
  22. package/dist/cjs/mds-push-notification-item.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-stepper-bar.cjs.entry.js +5 -3
  24. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +3 -2
  25. package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
  26. package/dist/cjs/mds-text.cjs.entry.js +2 -1
  27. package/dist/cjs/mds-toast.cjs.entry.js +9 -3
  28. package/dist/cjs/mds-tooltip.cjs.entry.js +4 -4
  29. package/dist/collection/components/mds-avatar/mds-avatar.js +27 -32
  30. package/dist/collection/components/mds-badge/mds-badge.js +3 -2
  31. package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -2
  32. package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -3
  33. package/dist/collection/components/mds-button/mds-button.js +7 -6
  34. package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -3
  35. package/dist/collection/components/mds-file-preview/mds-file-preview.js +6 -7
  36. package/dist/collection/components/mds-header/mds-header.js +17 -8
  37. package/dist/collection/components/mds-icon/mds-icon.js +29 -4
  38. package/dist/collection/components/mds-icon/services/icons-set.service.js +47 -18
  39. package/dist/collection/components/mds-img/mds-img.js +3 -3
  40. package/dist/collection/components/mds-input/mds-input.js +4 -4
  41. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +7 -5
  42. package/dist/collection/components/mds-input-select/mds-input-select.js +10 -8
  43. package/dist/collection/components/mds-input-upload/mds-input-upload.js +10 -6
  44. package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -3
  45. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +8 -5
  46. package/dist/collection/components/mds-mention/mds-mention.js +3 -2
  47. package/dist/collection/components/mds-notification/mds-notification.js +11 -8
  48. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +3 -2
  49. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
  50. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +5 -3
  51. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +3 -2
  52. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -2
  53. package/dist/collection/components/mds-text/mds-text.js +2 -1
  54. package/dist/collection/components/mds-toast/mds-toast.js +9 -3
  55. package/dist/collection/components/mds-tooltip/mds-tooltip.js +4 -4
  56. package/dist/collection/dictionary/icon.js +1 -1
  57. package/dist/components/index.js +1 -1
  58. package/dist/components/mds-accordion-item.js +1 -1
  59. package/dist/components/mds-accordion-timer-item.js +1 -1
  60. package/dist/components/mds-avatar-stack-item.js +1 -1
  61. package/dist/components/mds-avatar-stack.js +1 -1
  62. package/dist/components/mds-avatar.js +1 -1
  63. package/dist/components/mds-badge.js +1 -1
  64. package/dist/components/mds-banner.js +1 -1
  65. package/dist/components/mds-benchmark-bar.js +1 -1
  66. package/dist/components/mds-bibliography.js +1 -1
  67. package/dist/components/mds-breadcrumb-item.js +1 -1
  68. package/dist/components/mds-breadcrumb.js +1 -1
  69. package/dist/components/mds-button-dropdown.js +1 -1
  70. package/dist/components/mds-button.js +1 -1
  71. package/dist/components/mds-calendar-cell.js +1 -1
  72. package/dist/components/mds-calendar.js +1 -1
  73. package/dist/components/mds-chip.js +1 -1
  74. package/dist/components/mds-dropdown.js +1 -1
  75. package/dist/components/mds-entity.js +1 -1
  76. package/dist/components/mds-file-preview.js +1 -1
  77. package/dist/components/mds-file.js +3 -3
  78. package/dist/components/mds-filter-item.js +1 -1
  79. package/dist/components/mds-filter.js +1 -1
  80. package/dist/components/mds-header-bar.js +1 -1
  81. package/dist/components/mds-header.js +1 -1
  82. package/dist/components/mds-help.js +1 -1
  83. package/dist/components/mds-horizontal-scroll.js +1 -1
  84. package/dist/components/mds-icon.js +1 -1
  85. package/dist/components/mds-img.js +1 -1
  86. package/dist/components/mds-input-date-range-preselection.js +1 -1
  87. package/dist/components/mds-input-date-range.js +1 -1
  88. package/dist/components/mds-input-date.js +1 -1
  89. package/dist/components/mds-input-field.js +1 -1
  90. package/dist/components/mds-input-otp.js +1 -1
  91. package/dist/components/mds-input-range.js +1 -1
  92. package/dist/components/mds-input-select.js +1 -1
  93. package/dist/components/mds-input-switch.js +1 -1
  94. package/dist/components/mds-input-tip-item.js +1 -1
  95. package/dist/components/mds-input-upload.js +1 -1
  96. package/dist/components/mds-input.js +1 -1
  97. package/dist/components/mds-keyboard-key.js +1 -1
  98. package/dist/components/mds-keyboard.js +1 -1
  99. package/dist/components/mds-kpi-item.js +1 -1
  100. package/dist/components/mds-label.js +1 -1
  101. package/dist/components/mds-list-item.js +1 -1
  102. package/dist/components/mds-mention.js +1 -1
  103. package/dist/components/mds-modal.js +1 -1
  104. package/dist/components/mds-note.js +1 -1
  105. package/dist/components/mds-notification.js +1 -1
  106. package/dist/components/mds-paginator-item.js +1 -1
  107. package/dist/components/mds-paginator.js +1 -1
  108. package/dist/components/mds-policy-ai.js +1 -1
  109. package/dist/components/mds-pref-animation.js +1 -1
  110. package/dist/components/mds-pref-consumption.js +1 -1
  111. package/dist/components/mds-pref-contrast.js +1 -1
  112. package/dist/components/mds-pref-language-item.js +1 -1
  113. package/dist/components/mds-pref-language.js +1 -1
  114. package/dist/components/mds-pref-mode.js +1 -1
  115. package/dist/components/mds-pref-theme-item.js +1 -1
  116. package/dist/components/mds-pref-theme.js +1 -1
  117. package/dist/components/mds-pref.js +1 -1
  118. package/dist/components/mds-price-table-features-cell.js +1 -1
  119. package/dist/components/mds-price-table-features.js +1 -1
  120. package/dist/components/mds-price-table-list-item.js +1 -1
  121. package/dist/components/mds-progress.js +1 -1
  122. package/dist/components/mds-push-notification-item.js +1 -1
  123. package/dist/components/mds-push-notification.js +1 -1
  124. package/dist/components/mds-quote.js +1 -1
  125. package/dist/components/mds-radial-menu-item.js +1 -1
  126. package/dist/components/mds-radial-menu.js +1 -1
  127. package/dist/components/mds-radial-progress.js +1 -1
  128. package/dist/components/mds-status-bar.js +1 -1
  129. package/dist/components/mds-stepper-bar-item.js +1 -1
  130. package/dist/components/mds-stepper-bar.js +1 -1
  131. package/dist/components/mds-tab-bar-item.js +1 -1
  132. package/dist/components/mds-tab-item.js +1 -1
  133. package/dist/components/mds-table-header-cell.js +1 -1
  134. package/dist/components/mds-table-header.js +1 -1
  135. package/dist/components/mds-table-row.js +1 -1
  136. package/dist/components/mds-table.js +1 -1
  137. package/dist/components/mds-text.js +1 -1
  138. package/dist/components/mds-toast.js +1 -1
  139. package/dist/components/mds-tooltip.js +1 -1
  140. package/dist/components/mds-tree-item.js +1 -1
  141. package/dist/components/mds-url-view.js +1 -1
  142. package/dist/components/mds-usage.js +1 -1
  143. package/dist/components/{p-D3-GP4KF.js → p-6K9sFzLr.js} +1 -1
  144. package/dist/components/p-BBhbQT2f.js +1 -0
  145. package/dist/components/{p-B2A_hlV2.js → p-BFpRu7yD.js} +1 -1
  146. package/dist/components/p-BL63WAAq.js +8 -0
  147. package/dist/components/{p-Deh5Aia-.js → p-BShLEry5.js} +1 -1
  148. package/dist/components/{p-BJNK4p33.js → p-BYxxgEE_.js} +1 -1
  149. package/dist/components/p-BZFyAX-6.js +1 -0
  150. package/dist/components/p-BtMdmkID.js +1 -0
  151. package/dist/components/{p-Caksrfcd.js → p-ByaUOMp0.js} +1 -1
  152. package/dist/components/p-C1xZO_fq.js +1 -0
  153. package/dist/components/{p-cBZsPiMJ.js → p-C6Q4zFh6.js} +1 -1
  154. package/dist/components/{p-DLE5TNTp.js → p-CUQ7WIXh.js} +1 -1
  155. package/dist/components/p-Cd_8zD_I.js +1 -0
  156. package/dist/components/{p-DtxB7DYE.js → p-CnAeawmf.js} +1 -1
  157. package/dist/components/{p-Bt4xX5ww.js → p-DCrjf0F0.js} +1 -1
  158. package/dist/components/p-DlHJvYE7.js +1 -0
  159. package/dist/components/{p-BH3bWzRT.js → p-DlaJNPdd.js} +1 -1
  160. package/dist/components/{p-sqRs6oj4.js → p-DnrQaRnh.js} +1 -1
  161. package/dist/components/{p-CBLAz3_J.js → p-OPg_Naue.js} +1 -1
  162. package/dist/components/{p-C03KYHGv.js → p-RS4yyl41.js} +1 -1
  163. package/dist/components/{p--8aaJX-p.js → p-gv3eu44S.js} +1 -1
  164. package/dist/components/p-kff6xSdW.js +1 -0
  165. package/dist/components/p-pys1EQ60.js +1 -0
  166. package/dist/components/p-qketFgr0.js +1 -0
  167. package/dist/components/p-zml3K7nx.js +1 -0
  168. package/dist/documentation.json +4 -4
  169. package/dist/esm/index.js +64 -22
  170. package/dist/esm/mds-avatar.entry.js +27 -32
  171. package/dist/esm/mds-badge.entry.js +3 -2
  172. package/dist/esm/mds-benchmark-bar.entry.js +3 -2
  173. package/dist/esm/mds-bibliography.entry.js +4 -3
  174. package/dist/esm/mds-button_3.entry.js +36 -10
  175. package/dist/esm/mds-dropdown.entry.js +4 -3
  176. package/dist/esm/mds-entity.entry.js +1 -1
  177. package/dist/esm/mds-file-preview.entry.js +17 -17
  178. package/dist/esm/mds-header.entry.js +17 -8
  179. package/dist/esm/mds-img.entry.js +3 -3
  180. package/dist/esm/mds-input-date-range.entry.js +7 -5
  181. package/dist/esm/mds-input-select.entry.js +10 -8
  182. package/dist/esm/mds-input-upload.entry.js +10 -6
  183. package/dist/esm/mds-input.entry.js +4 -4
  184. package/dist/esm/mds-keyboard-key.entry.js +8 -5
  185. package/dist/esm/mds-keyboard.entry.js +6 -3
  186. package/dist/esm/mds-mention.entry.js +3 -2
  187. package/dist/esm/mds-notification.entry.js +11 -8
  188. package/dist/esm/mds-pref-language-item.entry.js +3 -2
  189. package/dist/esm/mds-pref-theme-item.entry.js +3 -2
  190. package/dist/esm/mds-push-notification-item.entry.js +1 -1
  191. package/dist/esm/mds-stepper-bar.entry.js +5 -3
  192. package/dist/esm/mds-tab-bar-item.entry.js +3 -2
  193. package/dist/esm/mds-table-header-cell.entry.js +2 -2
  194. package/dist/esm/mds-text.entry.js +2 -1
  195. package/dist/esm/mds-toast.entry.js +9 -3
  196. package/dist/esm/mds-tooltip.entry.js +4 -4
  197. package/dist/esm-es5/index.js +37 -26
  198. package/dist/esm-es5/mds-avatar.entry.js +4 -2
  199. package/dist/esm-es5/mds-badge.entry.js +2 -3
  200. package/dist/esm-es5/mds-benchmark-bar.entry.js +2 -3
  201. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  202. package/dist/esm-es5/mds-button_3.entry.js +14 -9
  203. package/dist/esm-es5/mds-dropdown.entry.js +2 -2
  204. package/dist/esm-es5/mds-entity.entry.js +1 -1
  205. package/dist/esm-es5/mds-file-preview.entry.js +7 -5
  206. package/dist/esm-es5/mds-header.entry.js +8 -6
  207. package/dist/esm-es5/mds-img.entry.js +1 -1
  208. package/dist/esm-es5/mds-input-date-range.entry.js +5 -3
  209. package/dist/esm-es5/mds-input-select.entry.js +8 -6
  210. package/dist/esm-es5/mds-input-upload.entry.js +3 -1
  211. package/dist/esm-es5/mds-input.entry.js +3 -3
  212. package/dist/esm-es5/mds-keyboard-key.entry.js +3 -1
  213. package/dist/esm-es5/mds-keyboard.entry.js +4 -2
  214. package/dist/esm-es5/mds-mention.entry.js +1 -1
  215. package/dist/esm-es5/mds-notification.entry.js +4 -2
  216. package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
  217. package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
  218. package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
  219. package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
  220. package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -4
  221. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  222. package/dist/esm-es5/mds-text.entry.js +1 -1
  223. package/dist/esm-es5/mds-toast.entry.js +4 -2
  224. package/dist/esm-es5/mds-tooltip.entry.js +2 -2
  225. package/dist/hydrate/index.js +270 -164
  226. package/dist/hydrate/index.mjs +270 -164
  227. package/dist/magma-components/index.esm.js +1 -1
  228. package/dist/magma-components/magma-components.esm.js +1 -1
  229. package/dist/magma-components/p-005172ba.entry.js +1 -0
  230. package/dist/magma-components/{p-9ca7932d.system.entry.js → p-05fa40aa.system.entry.js} +5 -3
  231. package/dist/magma-components/p-0827a5bd.entry.js +1 -0
  232. package/dist/magma-components/{p-1a8c5086.system.entry.js → p-15c77a98.system.entry.js} +2 -2
  233. package/dist/magma-components/p-18473d2f.entry.js +1 -0
  234. package/dist/magma-components/{p-f0a168f4.system.entry.js → p-18667ae7.system.entry.js} +3 -3
  235. package/dist/magma-components/p-19adde9d.entry.js +1 -0
  236. package/dist/magma-components/p-2217a7be.entry.js +1 -0
  237. package/dist/magma-components/{p-5a7ead55.system.entry.js → p-2386f0d6.system.entry.js} +2 -2
  238. package/dist/magma-components/p-2b56fc14.entry.js +1 -0
  239. package/dist/magma-components/p-3f747a63.system.entry.js +1 -0
  240. package/dist/magma-components/p-3ff30842.system.entry.js +16 -0
  241. package/dist/magma-components/{p-be692266.system.entry.js → p-49b120cb.system.entry.js} +2 -2
  242. package/dist/magma-components/{p-6cd7cfe3.entry.js → p-4af76eb3.entry.js} +1 -1
  243. package/dist/magma-components/p-4ba6cb3f.entry.js +1 -0
  244. package/dist/magma-components/p-4cadbd49.entry.js +1 -0
  245. package/dist/magma-components/p-518b55f3.entry.js +1 -0
  246. package/dist/magma-components/{p-960dc9b5.system.entry.js → p-5eec629c.system.entry.js} +4 -2
  247. package/dist/magma-components/{p-a8ec3080.system.entry.js → p-646034cb.system.entry.js} +1 -1
  248. package/dist/magma-components/{p-ce4e1a41.system.entry.js → p-677ab154.system.entry.js} +3 -1
  249. package/dist/magma-components/p-759133b3.entry.js +1 -0
  250. package/dist/magma-components/{p-cd5866c8.entry.js → p-7912f877.entry.js} +1 -1
  251. package/dist/magma-components/{p-3d8e63a2.system.entry.js → p-7d304fd4.system.entry.js} +3 -1
  252. package/dist/magma-components/{p-07fde74d.system.entry.js → p-7f6d708c.system.entry.js} +6 -4
  253. package/dist/magma-components/{p-6edc4f16.system.entry.js → p-88564e9b.system.entry.js} +1 -1
  254. package/dist/magma-components/{p-8c4fb7ec.system.entry.js → p-8b1abf81.system.entry.js} +10 -8
  255. package/dist/magma-components/p-8bbee38d.entry.js +1 -0
  256. package/dist/magma-components/{p-481008e9.system.entry.js → p-8bf680d6.system.entry.js} +5 -3
  257. package/dist/magma-components/{p-ce0ecc75.system.entry.js → p-8cb3a071.system.entry.js} +2 -2
  258. package/dist/magma-components/p-8f229eaf.entry.js +1 -0
  259. package/dist/magma-components/{p-3f7d3060.system.entry.js → p-94fa3396.system.entry.js} +14 -9
  260. package/dist/magma-components/{p-0ad3b4da.system.entry.js → p-9bbd4193.system.entry.js} +6 -6
  261. package/dist/magma-components/p-9caffe14.entry.js +1 -0
  262. package/dist/magma-components/p-9de1ac7f.entry.js +1 -0
  263. package/dist/magma-components/p-CnXBPjmc.system.js +1 -1
  264. package/dist/magma-components/{p-CBam2PI8.system.js → p-DVd2EM-q.system.js} +29 -18
  265. package/dist/magma-components/{p-f1462410.system.entry.js → p-a15da479.system.entry.js} +3 -4
  266. package/dist/magma-components/{p-e05d2df8.system.entry.js → p-ab997243.system.entry.js} +2 -2
  267. package/dist/magma-components/{p-efe8d359.entry.js → p-aea6081f.entry.js} +1 -1
  268. package/dist/magma-components/{p-1c0a7e24.system.entry.js → p-b0539d61.system.entry.js} +7 -5
  269. package/dist/magma-components/p-cc033985.system.entry.js +14 -0
  270. package/dist/magma-components/{p-a3fc2ea4.system.entry.js → p-cd84a264.system.entry.js} +7 -5
  271. package/dist/magma-components/p-d0457835.entry.js +1 -0
  272. package/dist/magma-components/p-d64311e2.entry.js +1 -0
  273. package/dist/magma-components/{p-54b995c2.system.entry.js → p-da4dc390.system.entry.js} +1 -1
  274. package/dist/magma-components/p-dda7a33b.entry.js +1 -0
  275. package/dist/magma-components/p-e375c8b1.entry.js +1 -0
  276. package/dist/magma-components/p-e3fce8ca.entry.js +1 -0
  277. package/dist/magma-components/{p-9626eaff.system.entry.js → p-e9a16f22.system.entry.js} +3 -3
  278. package/dist/magma-components/p-ea0091b6.entry.js +1 -0
  279. package/dist/magma-components/{p-a3279a73.system.entry.js → p-ec00defc.system.entry.js} +6 -4
  280. package/dist/magma-components/p-edfb0d7a.entry.js +1 -0
  281. package/dist/magma-components/{p-0715a2cb.system.entry.js → p-f9d9cf7c.system.entry.js} +2 -3
  282. package/dist/magma-components/p-fa163e86.entry.js +1 -0
  283. package/dist/magma-components/p-fe19080a.entry.js +8 -0
  284. package/dist/magma-components/p-ff49fb35.entry.js +1 -0
  285. package/dist/stats.json +383 -383
  286. package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
  287. package/dist/types/components/mds-header/mds-header.d.ts +1 -0
  288. package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
  289. package/dist/types/components/mds-icon/services/icons-set.service.d.ts +10 -9
  290. package/dist/types/components/mds-input-select/mds-input-select.d.ts +1 -0
  291. package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
  292. package/package.json +10 -10
  293. package/dist/components/p-B9DJLgwr.js +0 -1
  294. package/dist/components/p-BouRLCYL.js +0 -1
  295. package/dist/components/p-CVgKDZPF.js +0 -1
  296. package/dist/components/p-CatD1iUY.js +0 -1
  297. package/dist/components/p-CbufYCNj.js +0 -1
  298. package/dist/components/p-Cehcn85x.js +0 -1
  299. package/dist/components/p-ClKNADBg.js +0 -8
  300. package/dist/components/p-D8I1RblC.js +0 -1
  301. package/dist/components/p-DaI5QqNu.js +0 -1
  302. package/dist/components/p-Dj_oN194.js +0 -1
  303. package/dist/components/p-DmELzfvf.js +0 -1
  304. package/dist/magma-components/p-03be5c0c.entry.js +0 -1
  305. package/dist/magma-components/p-0af8d821.entry.js +0 -1
  306. package/dist/magma-components/p-1780b8ba.entry.js +0 -1
  307. package/dist/magma-components/p-1dcfb13e.entry.js +0 -1
  308. package/dist/magma-components/p-241dbf61.entry.js +0 -1
  309. package/dist/magma-components/p-27ea99ee.entry.js +0 -8
  310. package/dist/magma-components/p-4297da23.system.entry.js +0 -1
  311. package/dist/magma-components/p-454c4774.entry.js +0 -1
  312. package/dist/magma-components/p-59de81ac.entry.js +0 -1
  313. package/dist/magma-components/p-5e43274a.system.entry.js +0 -15
  314. package/dist/magma-components/p-66ce2dee.entry.js +0 -1
  315. package/dist/magma-components/p-69d1b815.entry.js +0 -1
  316. package/dist/magma-components/p-75fcf1a4.entry.js +0 -1
  317. package/dist/magma-components/p-78fef00a.entry.js +0 -1
  318. package/dist/magma-components/p-7fc29447.entry.js +0 -1
  319. package/dist/magma-components/p-8b7fa8d7.entry.js +0 -1
  320. package/dist/magma-components/p-9b2ee3fe.entry.js +0 -1
  321. package/dist/magma-components/p-a5ac5e0b.entry.js +0 -1
  322. package/dist/magma-components/p-a906a02f.system.entry.js +0 -16
  323. package/dist/magma-components/p-ac544ab1.entry.js +0 -1
  324. package/dist/magma-components/p-b23a6c83.entry.js +0 -1
  325. package/dist/magma-components/p-b9fecfd5.entry.js +0 -1
  326. package/dist/magma-components/p-c1fb2eb7.entry.js +0 -1
  327. package/dist/magma-components/p-c70d7159.entry.js +0 -1
  328. package/dist/magma-components/p-ddbdce09.entry.js +0 -1
  329. package/dist/magma-components/p-e3e893c4.entry.js +0 -1
  330. package/dist/magma-components/p-e4868ade.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(a,t,r,e){function n(a){return a instanceof r?a:new r((function(t){t(a)}))}return new(r||(r=Promise))((function(r,o){function s(a){try{m(e.next(a))}catch(a){o(a)}}function i(a){try{m(e["throw"](a))}catch(a){o(a)}}function m(a){a.done?r(a.value):n(a.value).then(s,i)}m((e=e.apply(a,t||[])).next())}))};var __generator=this&&this.__generator||function(a,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,n,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=i(0),s["throw"]=i(1),s["return"]=i(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(a){return function(t){return m([a,t])}}function m(i){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,i[0]&&(r=0)),r)try{if(e=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){r.label=i[1];break}if(i[0]===6&&r.label<o[1]){r.label=o[1];o=i;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(i);break}if(o[2])r.ops.pop();r.trys.pop();continue}i=t.call(a,r)}catch(a){i=[6,a];n=0}finally{e=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{u as unslugName,s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{r as readSlottedLabel,s as sanitizeLabel}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import{IconsSetService}from"./index.js";var buttonSizeTypographyVariant={sm:"action",md:"action",lg:"h6",xl:"h5"};var BASE64_SVG_ICON="data:image/svg+xml;base64,";var MARKUP_SVG_ICON="<svg ";var isIconFormatIsBase64=function(a){if(!a){return false}return a.startsWith(BASE64_SVG_ICON)};var isIconFormatIsSVG=function(a){if(!a){return false}return a.startsWith(MARKUP_SVG_ICON)};var mdiApple='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple" viewBox="0 0 24 24"><path d="M18.71,19.5C17.88,20.74 17,21.95 15.66,21.97C14.32,22 13.89,21.18 12.37,21.18C10.84,21.18 10.37,21.95 9.1,22C7.79,22.05 6.8,20.68 5.96,19.47C4.25,17 2.94,12.45 4.7,9.39C5.57,7.87 7.13,6.91 8.82,6.88C10.1,6.86 11.32,7.75 12.11,7.75C12.89,7.75 14.37,6.68 15.92,6.84C16.57,6.87 18.39,7.1 19.56,8.82C19.47,8.88 17.39,10.1 17.41,12.63C17.44,15.65 20.06,16.66 20.09,16.67C20.06,16.74 19.67,18.11 18.71,19.5M13,3.5C13.73,2.67 14.94,2.04 15.94,2C16.07,3.17 15.6,4.35 14.9,5.19C14.21,6.04 13.07,6.7 11.95,6.61C11.8,5.46 12.36,4.26 13,3.5Z" /></svg>';var logoGoogle='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" xmlnsXlink="http://www.w3.org/1999/xlink"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></svg>\n';var mdsButtonCss=function(){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-font-weight:initial}}}@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-spinner,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-button-await-duration:.725s;--mds-button-transition-duration:var(--duration-300,.3s);--private-button-transition-duration:var(--mds-button-transition-duration);--mds-button-background:rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163)));--mds-button-border-hover-opacity:.75;--mds-button-border-high-contrast-hover-width:3px;--mds-button-border-high-contrast-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-outline-hover-width:3px;--mds-button-border-tone-outline-opacity:.3;--mds-button-border-tone-strong-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-weak-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-default-opacity:0;--mds-button-border-opacity:0;--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-gap:calc(var(--spacing,.0025rem)*200);--mds-button-line-clamp:1;--mds-button-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));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));background-color:var(--mds-button-background,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));border-radius:var(--mds-button-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-sizing:border-box;color:var(--mds-button-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--mds-button-corner-shape,var(--magma-corner-shape,squircle));align-items:center;align-self:flex-start;cursor:pointer;display:inline-flex;fill:currentColor;gap:var(--mds-button-gap,calc(var(--spacing,.0025rem)*200));justify-content:center;justify-self:flex-start;min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding:0 calc(var(--spacing,.0025rem)*400);position:relative;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,outline,outline-offset,transform;-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));-webkit-user-select:none;user-select:none}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.text{--mds-text-line-clamp:var(--mds-button-line-clamp,1)}.text:first-letter{text-transform:uppercase}.icon{align-items:center;display:inline-flex;fill:inherit;flex-shrink:0;justify-content:center;pointer-events:none;transition-property:fill;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.icon{-webkit-transition-duration:var(--private-button-transition-duration);transition-duration:var(--private-button-transition-duration)}.await{display:none;margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));transform:scale(0);transition-behavior:allow-discrete;transition-property:display,margin-right,opacity,transform,width;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.spinner{height:calc(var(--spacing,.0025rem)*600);width:calc(var(--spacing,.0025rem)*600)}.spinner{--mds-spinner-duration:var(--mds-button-await-duration,.725s);color:currentColor}:is(:host(:not([await])),:host([await=false])) .spinner{-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);-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))}:host([await]:not([await=false])) .await{display:flex;margin-right:0;opacity:1;transform:scale(1)}@starting-style{:host([await]:not([await=false])) .await{margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));opacity:0;transform:scale(0)}}:host([await]:not([await=false])){pointer-events:none}:host([icon]:not([label])[await]:not([await=false])) .icon{display:none}:host([disabled]:not([disabled=false])){opacity:.5;pointer-events:none}:host([size=sm]){--mds-button-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));min-height:calc(var(--spacing,.0025rem)*700);min-width:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*300)}:host([size=sm]) .icon{height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}:host([size=sm]) .text{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}:host([size=sm]):host([await]:not([await=false])) .await{transform:scale(.75)}:host([size=md]){min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=md]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*300)}:host([size=md]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){min-height:calc(var(--spacing,.0025rem)*1200);min-width:calc(var(--spacing,.0025rem)*1200);padding-left:calc(var(--spacing,.0025rem)*500);padding-right:calc(var(--spacing,.0025rem)*500)}:host([size=lg]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*400)}:host([size=lg]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){min-height:calc(var(--spacing,.0025rem)*1300);min-width:calc(var(--spacing,.0025rem)*1300);padding-left:calc(var(--spacing,.0025rem)*600);padding-right:calc(var(--spacing,.0025rem)*600)}:host([size=xl]) .icon{height:calc(var(--spacing,.0025rem)*800);width:calc(var(--spacing,.0025rem)*800)}:host([size][icon][icon-position]:not([label])){aspect-ratio:1;padding:0}:host(:not([label])) .text,:host([label=""]) .text{display:none}:host([variant=primary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=primary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=primary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=primary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=primary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=secondary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=secondary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=secondary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=secondary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=ai]){--mds-button-background:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=ai]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)))}:host([variant=ai]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));fill:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)))}:host([variant=ai]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-background:rgb(var(--magma-accent-ai-surface-subtle,var(--magma-tint-accent-ai-surface-subtle,var(--variant-ai-10,240 234 254))))}:host([variant=ai]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=info]){--mds-button-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137)));--mds-button-border-color-rgb:var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137))}:host([variant=info]):host([tone=weak]){--mds-button-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-button-border-color-rgb:var(--magma-info-wash-base,var(--status-info-09,193 230 246));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));fill:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)));--mds-button-border-color-rgb:var(--magma-info-wash-strong,var(--status-info-08,168 219 242));--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]){--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-button-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)))}:host([variant=info]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=success]){--mds-button-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32)));--mds-button-border-color-rgb:var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32))}:host([variant=success]):host([tone=weak]){--mds-button-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-button-border-color-rgb:var(--magma-success-wash-base,var(--status-success-09,191 233 205));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));fill:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)));--mds-button-border-color-rgb:var(--magma-success-wash-strong,var(--status-success-08,165 225 186));--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]){--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-button-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)))}:host([variant=success]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]){--mds-button-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0))}:host([variant=warning]):host([tone=weak]){--mds-button-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-button-border-color-rgb:var(--magma-warning-wash-base,var(--status-warning-09,255 220 117));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));fill:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-button-border-color-rgb:var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57));--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]){--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-button-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)))}:host([variant=warning]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error]){--mds-button-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40)));--mds-button-border-color-rgb:var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40))}:host([variant=error]):host([tone=weak]){--mds-button-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-button-border-color-rgb:var(--magma-danger-wash-base,var(--status-error-09,255 214 211));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));fill:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)));--mds-button-border-color-rgb:var(--magma-danger-wash-strong,var(--status-error-08,254 198 194));--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]){--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-button-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)))}:host([variant=error]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=light]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=strong]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255)}:host([variant=light]):host([tone=weak]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));fill:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=weak]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=light]):host([tone=outline]),:host([variant=light]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))))}:host([variant=light]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-button-border-color-rgb:var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73)))}:host([variant=dark]):host([tone=weak]){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));fill:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=dark]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-button-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([variant=dark]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=google]),:host([variant=google][tone]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-hover-opacity:.5;--mds-button-border-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.2;--mds-button-border-width:calc(var(--spacing,.0025rem)*25);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-button-border-color-rgb:var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0))}:host([variant=google]:hover),:host([variant=google][tone]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-width:var(--mds-button-border-hover-width);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([variant=apple]) .icon{transform:translateY(-5%)}:host([variant=apple]),:host([variant=apple][tone]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-border-width:0;--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))}:host([variant=apple]:hover),:host([variant=apple][tone]:hover){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-opacity:1}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]:hover),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}:host([tone=outline]),:host([tone=text]){--mds-button-background:#0000}:host([tone=box]),:host([tone=strong]),:host([tone=weak]){--mds-button-border-default-opacity:1;--mds-button-border-width:0;--mds-button-border-opacity:var(--mds-button-border-default-opacity,0)}:host([tone=strong]:hover),:host([tone=strong][active]){--mds-button-border-width:var(--mds-button-border-tone-strong-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=weak]:hover),:host([tone=weak][active]){--mds-button-border-width:var(--mds-button-border-tone-weak-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=outline]){--mds-button-border-opacity:var(--mds-button-border-tone-outline-opacity)}:host([tone=outline]:hover),:host([tone=outline][active]){--mds-button-background:#0000;--mds-button-border-width:var(--mds-button-border-tone-outline-hover-width,3px);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([tone=box]){-webkit-box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);transition-property:background-color,border-color,box-shadow,color,outline,filter,outline-offset,transform}:host([tone=box]):host(:hover){filter:brightness(1.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-button-transition-duration:0s}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]:hover),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}}@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-button-transition-duration:0s}}'};var MdsButton=/** @class */function(){function a(a){var t=this;registerInstance(this,a);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}this.km=new KeyboardManager;
1
+ var __awaiter=this&&this.__awaiter||function(t,a,r,e){function n(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{m(e.next(t))}catch(t){o(t)}}function i(t){try{m(e["throw"](t))}catch(t){o(t)}}function m(t){t.done?r(t.value):n(t.value).then(s,i)}m((e=e.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,n,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=i(0),s["throw"]=i(1),s["return"]=i(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(t){return function(a){return m([t,a])}}function m(i){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,i[0]&&(r=0)),r)try{if(e=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){r.label=i[1];break}if(i[0]===6&&r.label<o[1]){r.label=o[1];o=i;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(i);break}if(o[2])r.ops.pop();r.trys.pop();continue}i=a.call(t,r)}catch(t){i=[6,t];n=0}finally{e=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{u as unslugName,s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{r as readSlottedLabel,s as sanitizeLabel}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import{IconsSetService}from"./index.js";var buttonSizeTypographyVariant={sm:"action",md:"action",lg:"h6",xl:"h5"};var BASE64_SVG_ICON="data:image/svg+xml;base64,";var MARKUP_SVG_ICON="<svg ";var isIconFormatIsBase64=function(t){if(!t){return false}return t.startsWith(BASE64_SVG_ICON)};var isIconFormatIsSVG=function(t){if(!t){return false}return t.startsWith(MARKUP_SVG_ICON)};var mdiApple='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple" viewBox="0 0 24 24"><path d="M18.71,19.5C17.88,20.74 17,21.95 15.66,21.97C14.32,22 13.89,21.18 12.37,21.18C10.84,21.18 10.37,21.95 9.1,22C7.79,22.05 6.8,20.68 5.96,19.47C4.25,17 2.94,12.45 4.7,9.39C5.57,7.87 7.13,6.91 8.82,6.88C10.1,6.86 11.32,7.75 12.11,7.75C12.89,7.75 14.37,6.68 15.92,6.84C16.57,6.87 18.39,7.1 19.56,8.82C19.47,8.88 17.39,10.1 17.41,12.63C17.44,15.65 20.06,16.66 20.09,16.67C20.06,16.74 19.67,18.11 18.71,19.5M13,3.5C13.73,2.67 14.94,2.04 15.94,2C16.07,3.17 15.6,4.35 14.9,5.19C14.21,6.04 13.07,6.7 11.95,6.61C11.8,5.46 12.36,4.26 13,3.5Z" /></svg>';var logoGoogle='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" xmlnsXlink="http://www.w3.org/1999/xlink"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></svg>\n';var mdsButtonCss=function(){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-font-weight:initial}}}@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-spinner,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-button-await-duration:.725s;--mds-button-transition-duration:var(--duration-300,.3s);--private-button-transition-duration:var(--mds-button-transition-duration);--mds-button-background:rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163)));--mds-button-border-hover-opacity:.75;--mds-button-border-high-contrast-hover-width:3px;--mds-button-border-high-contrast-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-outline-hover-width:3px;--mds-button-border-tone-outline-opacity:.3;--mds-button-border-tone-strong-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-weak-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-default-opacity:0;--mds-button-border-opacity:0;--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-gap:calc(var(--spacing,.0025rem)*200);--mds-button-line-clamp:1;--mds-button-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));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));background-color:var(--mds-button-background,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));border-radius:var(--mds-button-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-sizing:border-box;color:var(--mds-button-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--mds-button-corner-shape,var(--magma-corner-shape,squircle));align-items:center;align-self:flex-start;cursor:pointer;display:inline-flex;fill:currentColor;gap:var(--mds-button-gap,calc(var(--spacing,.0025rem)*200));justify-content:center;justify-self:flex-start;min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding:0 calc(var(--spacing,.0025rem)*400);position:relative;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,outline,outline-offset,transform;-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));-webkit-user-select:none;user-select:none}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.text{--mds-text-line-clamp:var(--mds-button-line-clamp,1)}.text:first-letter{text-transform:uppercase}.icon{align-items:center;display:inline-flex;fill:inherit;flex-shrink:0;justify-content:center;pointer-events:none;transition-property:fill;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.icon{-webkit-transition-duration:var(--private-button-transition-duration);transition-duration:var(--private-button-transition-duration)}.await{display:none;margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));transform:scale(0);transition-behavior:allow-discrete;transition-property:display,margin-right,opacity,transform,width;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.spinner{height:calc(var(--spacing,.0025rem)*600);width:calc(var(--spacing,.0025rem)*600)}.spinner{--mds-spinner-duration:var(--mds-button-await-duration,.725s);color:currentColor}:is(:host(:not([await])),:host([await=false])) .spinner{-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);-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))}:host([await]:not([await=false])) .await{display:flex;margin-right:0;opacity:1;transform:scale(1)}@starting-style{:host([await]:not([await=false])) .await{margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));opacity:0;transform:scale(0)}}:host([await]:not([await=false])){pointer-events:none}:host([icon]:not([label])[await]:not([await=false])) .icon{display:none}:host([disabled]:not([disabled=false])){opacity:.5;pointer-events:none}:host([size=sm]){--mds-button-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));min-height:calc(var(--spacing,.0025rem)*700);min-width:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*300)}:host([size=sm]) .icon{height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}:host([size=sm]) .text{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}:host([size=sm]):host([await]:not([await=false])) .await{transform:scale(.75)}:host([size=md]){min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=md]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*300)}:host([size=md]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){min-height:calc(var(--spacing,.0025rem)*1200);min-width:calc(var(--spacing,.0025rem)*1200);padding-left:calc(var(--spacing,.0025rem)*500);padding-right:calc(var(--spacing,.0025rem)*500)}:host([size=lg]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*400)}:host([size=lg]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){min-height:calc(var(--spacing,.0025rem)*1300);min-width:calc(var(--spacing,.0025rem)*1300);padding-left:calc(var(--spacing,.0025rem)*600);padding-right:calc(var(--spacing,.0025rem)*600)}:host([size=xl]) .icon{height:calc(var(--spacing,.0025rem)*800);width:calc(var(--spacing,.0025rem)*800)}:host([size][icon][icon-position]:not([label])){aspect-ratio:1;padding:0}:host(:not([label])) .text,:host([label=""]) .text{display:none}:host([variant=primary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=primary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=primary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=primary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=primary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=secondary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=secondary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=secondary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=secondary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=ai]){--mds-button-background:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=ai]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)))}:host([variant=ai]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));fill:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)))}:host([variant=ai]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-background:rgb(var(--magma-accent-ai-surface-subtle,var(--magma-tint-accent-ai-surface-subtle,var(--variant-ai-10,240 234 254))))}:host([variant=ai]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=info]){--mds-button-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137)));--mds-button-border-color-rgb:var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137))}:host([variant=info]):host([tone=weak]){--mds-button-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-button-border-color-rgb:var(--magma-info-wash-base,var(--status-info-09,193 230 246));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));fill:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)));--mds-button-border-color-rgb:var(--magma-info-wash-strong,var(--status-info-08,168 219 242));--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]){--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-button-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)))}:host([variant=info]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=success]){--mds-button-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32)));--mds-button-border-color-rgb:var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32))}:host([variant=success]):host([tone=weak]){--mds-button-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-button-border-color-rgb:var(--magma-success-wash-base,var(--status-success-09,191 233 205));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));fill:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)));--mds-button-border-color-rgb:var(--magma-success-wash-strong,var(--status-success-08,165 225 186));--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]){--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-button-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)))}:host([variant=success]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]){--mds-button-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0))}:host([variant=warning]):host([tone=weak]){--mds-button-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-button-border-color-rgb:var(--magma-warning-wash-base,var(--status-warning-09,255 220 117));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));fill:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-button-border-color-rgb:var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57));--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]){--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-button-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)))}:host([variant=warning]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error]){--mds-button-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-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=strong]:hover){--mds-button-background:rgb(var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40)));--mds-button-border-color-rgb:var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40))}:host([variant=error]):host([tone=weak]){--mds-button-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-button-border-color-rgb:var(--magma-danger-wash-base,var(--status-error-09,255 214 211));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));fill:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)));--mds-button-border-color-rgb:var(--magma-danger-wash-strong,var(--status-error-08,254 198 194));--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]){--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-button-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)))}:host([variant=error]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=light]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=strong]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255)}:host([variant=light]):host([tone=weak]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));fill:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=weak]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=light]):host([tone=outline]),:host([variant=light]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))))}:host([variant=light]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-button-border-color-rgb:var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73)))}:host([variant=dark]):host([tone=weak]){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));fill:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=dark]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-button-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([variant=dark]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=google]),:host([variant=google][tone]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-hover-opacity:.5;--mds-button-border-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.2;--mds-button-border-width:calc(var(--spacing,.0025rem)*25);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-button-border-color-rgb:var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0))}:host([variant=google]:hover),:host([variant=google][tone]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-width:var(--mds-button-border-hover-width);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([variant=apple]) .icon{transform:translateY(-5%)}:host([variant=apple]),:host([variant=apple][tone]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-border-width:0;--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))}:host([variant=apple]:hover),:host([variant=apple][tone]:hover){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-opacity:1}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]:hover),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}:host([tone=outline]),:host([tone=text]){--mds-button-background:#0000}:host([tone=box]),:host([tone=strong]),:host([tone=weak]){--mds-button-border-default-opacity:1;--mds-button-border-width:0;--mds-button-border-opacity:var(--mds-button-border-default-opacity,0)}:host([tone=strong]:hover),:host([tone=strong][active]){--mds-button-border-width:var(--mds-button-border-tone-strong-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=weak]:hover),:host([tone=weak][active]){--mds-button-border-width:var(--mds-button-border-tone-weak-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=outline]){--mds-button-border-opacity:var(--mds-button-border-tone-outline-opacity)}:host([tone=outline]:hover),:host([tone=outline][active]){--mds-button-background:#0000;--mds-button-border-width:var(--mds-button-border-tone-outline-hover-width,3px);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([tone=box]){-webkit-box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);transition-property:background-color,border-color,box-shadow,color,outline,filter,outline-offset,transform}:host([tone=box]):host(:hover){filter:brightness(1.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-button-transition-duration:0s}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]:hover),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}}@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-button-transition-duration:0s}}'};var MdsButton=/** @class */function(){function t(t){var a=this;registerInstance(this,t);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.km=new KeyboardManager;
2
2
  /**
3
3
  * Specifies if the text is animated when it is rendered
4
4
  */this.animation="none";
@@ -22,21 +22,26 @@ var __awaiter=this&&this.__awaiter||function(a,t,r,e){function n(a){return a ins
22
22
  */this.target="self";
23
23
  /**
24
24
  * Specifies if the text shoud be truncated or should behave as a normal text
25
- */this.truncate="word";this.handleRequestSubmitForm=function(a){var r;a.preventDefault();(r=t.internals.form)===null||r===void 0?void 0:r.requestSubmit()};this.handleReset=function(a){var r;a.preventDefault();(r=t.internals.form)===null||r===void 0?void 0:r.reset()};this.mouseDown=function(){t.active=true};this.mouseUp=function(){t.active=false};this.redirectBlank=function(){if(typeof window!=="undefined"){window.open(t.href,"_blank");return}throw Error("Object window is not defined")};this.onSlotChangeHandler=function(){
26
- /* this should be removed in the future once slotted text is no longer used, use the label property instead */
27
- if(t.label!==undefined&&t.label!=="")return;t.label=readSlottedLabel(t.host)}}a.prototype.disabledChanged=function(a){if(a){this.km.attachClickBehavior();return}this.km.detachClickBehavior();
25
+ */this.truncate="word";this.handleRequestSubmitForm=function(t){var r;t.preventDefault();(r=a.internals.form)===null||r===void 0?void 0:r.requestSubmit()};this.handleReset=function(t){var r;t.preventDefault();(r=a.internals.form)===null||r===void 0?void 0:r.reset()};this.mouseDown=function(){a.active=true};this.mouseUp=function(){a.active=false};this.redirectBlank=function(){if(typeof window!=="undefined"){window.open(a.href,"_blank");return}throw Error("Object window is not defined")};this.onSlotChangeHandler=function(){var t;
26
+ /* this should be removed in the future once slotted text is no longer used, use the label property instead */if(((t=a.label)!==null&&t!==void 0?t:"")!=="")return;a.label=readSlottedLabel(a.host)}}t.prototype.disabledChanged=function(t){if(t){this.km.attachClickBehavior();return}this.km.detachClickBehavior();
28
27
  /**
29
28
  * When the component is disabled="false" it won't work with onClick events
30
29
  * since formAssociated where added to it.
31
30
  * https://github.com/ionic-team/stencil/issues/5461
32
- */this.disabled=undefined};a.prototype.labelChanged=function(a){this.label=sanitizeLabel(a)};a.prototype.awaitChanged=function(a){this.host.setAttribute("aria-busy",(!!a).toString());if(a){this.km.attachClickBehavior();return}this.km.detachClickBehavior()};a.prototype.handleTypeChange=function(a){
31
+ */this.disabled=undefined};t.prototype.labelChanged=function(t){this.label=sanitizeLabel(t)};t.prototype.awaitChanged=function(t){this.host.setAttribute("aria-busy",(!!t).toString());if(t){this.km.attachClickBehavior();return}this.km.detachClickBehavior()};t.prototype.handleTypeChange=function(t){
33
32
  // If not participating we don't do anything
34
- if(!this.internals.form)return;if(a==="submit"){this.host.removeEventListener("click",this.handleReset);this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(a==="reset"){this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.addEventListener("click",this.handleReset)}else{this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.removeEventListener("click",this.handleReset)}};a.prototype.handleVariantChange=function(a){if(a==="google"){this.icon=logoGoogle;return}if(a==="apple"){this.icon=mdiApple;return}};a.prototype.componentWillLoad=function(){var a=this;this.handleVariantChange(this.variant);if(this.href!==undefined&&this.href!==""){this.host.addEventListener("click",(function(t){var r;t.preventDefault();if(a.target==="blank"){a.redirectBlank();return}if(typeof window!=="undefined"){window.location.href=(r=a.href)!==null&&r!==void 0?r:"";// TypeScript 5.0.2 bug: if (this.href) not checked
35
- }}))}else if(this.internals.form){if(this.type==="submit"){this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(this.type==="reset"){this.host.addEventListener("click",this.handleReset)}}};a.prototype.componentDidLoad=function(){this.km.addElement(this.host);if(!this.await){this.km.attachClickBehavior()}this.host.setAttribute("aria-busy",this.await?"true":"false");if(this.autoFocus){this.host.focus()}if(isIconFormatIsBase64(this.icon)){return}if(isIconFormatIsSVG(this.icon)){return}if(this.label===""){this.label=undefined}if((this.label===undefined||this.label==="")&&this.icon!==undefined&&this.icon!==""){var a=unslugName(this.icon);if(!this.host.hasAttribute("aria-label")){setAttributeIfEmpty(this.host,"title",a)}if(!this.host.hasAttribute("title")){setAttributeIfEmpty(this.host,"aria-label",a)}}setAttributeIfEmpty(this.host,"role","button")};a.prototype.handleAwaitChange=function(a){if(a===false){this.await=undefined;this.km.detachClickBehavior();return}this.km.attachClickBehavior()};a.prototype.connectedCallback=function(){if(!this.disabled)this.host.removeAttribute("disabled")};a.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};a.prototype.render=function(){var a;this.typography=(a=buttonSizeTypographyVariant[this.size])!==null&&a!==void 0?a:buttonSizeTypographyVariant.md;return h(Host,{key:"b78ea9e82edc7fb1e05d3fb3f7d9c9d08589ec2b",onMouseDown:this.mouseDown,onMouseUp:this.mouseUp,onMouseOut:this.mouseUp,tabindex:"0","pref-animation":preferenceStore.state.animation,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"6e93d60b23f794a489b2ce2b55d51c000008aef4",class:"await"},h("mds-spinner",{key:"ae40c10546682ad904552560c4a0a5ab95af8f48",class:"spinner",running:this.await})),this.icon&&this.iconPosition==="left"&&h("mds-icon",{key:"b44d109ca1c92f9d9680c1ae5b36a3e08347008a","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}),h("mds-text",{key:"9e5c7ea8c1985633b22217d2fae8ada8b4b9d02e",class:"text",part:"label",tag:"span",typography:this.typography,truncate:this.truncate,animation:this.animation,text:this.label},this.label||h("slot",{key:"856dede502b5a35d80b77c6ddb39b7e9c4d4b4f3",onSlotchange:this.onSlotChangeHandler})),h("slot",{key:"bf4ee1f6ecf7c9a4cab0797aba08c97e55751b2d",name:"notification"}),this.icon&&this.iconPosition==="right"&&h("mds-icon",{key:"6e5dfeb55023770a487dead1300cad6813e08694","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}))};Object.defineProperty(a,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],label:[{labelChanged:0}],await:[{awaitChanged:0},{handleAwaitChange:0}],type:[{handleTypeChange:0}],variant:[{handleVariantChange:0}]}},enumerable:false,configurable:true});return a}();MdsButton.style=mdsButtonCss();var mdsIconCss=function(){return"@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{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center;width:calc(var(--spacing,.0025rem)*600)}.icon{align-items:center;display:inline-flex;font-style:normal;justify-content:center;width:100%}.icon svg{height:auto;width:100%}"};var MdsIcon=/** @class */function(){function a(a){var t=this;registerInstance(this,a);this.convertBase64ToSvg=function(){var a=t.name.replace(BASE64_SVG_ICON,"").replace(/=/i,"");return atob(a)}}a.prototype.componentWillLoad=function(){var a=this;this.updateIcon();IconsSetService.registerListener((function(){return a.updateIcon()}))};
33
+ if(!this.internals.form)return;if(t==="submit"){this.host.removeEventListener("click",this.handleReset);this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(t==="reset"){this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.addEventListener("click",this.handleReset)}else{this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.removeEventListener("click",this.handleReset)}};t.prototype.handleVariantChange=function(t){if(t==="google"){this.icon=logoGoogle;return}if(t==="apple"){this.icon=mdiApple;return}};t.prototype.componentWillLoad=function(){var t=this;var a;this.handleVariantChange(this.variant);if(((a=this.href)!==null&&a!==void 0?a:"")!==""){this.host.addEventListener("click",(function(a){var r;a.preventDefault();if(t.target==="blank"){t.redirectBlank();return}if(typeof window!=="undefined"){window.location.href=(r=t.href)!==null&&r!==void 0?r:"";// TypeScript 5.0.2 bug: if (this.href) not checked
34
+ }}))}else if(this.internals.form){if(this.type==="submit"){this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(this.type==="reset"){this.host.addEventListener("click",this.handleReset)}}};t.prototype.componentDidLoad=function(){var t;this.km.addElement(this.host);if(!this.await){this.km.attachClickBehavior()}this.host.setAttribute("aria-busy",this.await?"true":"false");if(this.autoFocus){this.host.focus()}if(isIconFormatIsBase64(this.icon)){return}if(isIconFormatIsSVG(this.icon)){return}if(this.label===""){this.label=undefined}if(((t=this.label)!==null&&t!==void 0?t:"")===""&&this.icon!=null&&this.icon!==""){var a=unslugName(this.icon);if(!this.host.hasAttribute("aria-label")){setAttributeIfEmpty(this.host,"title",a)}if(!this.host.hasAttribute("title")){setAttributeIfEmpty(this.host,"aria-label",a)}}setAttributeIfEmpty(this.host,"role","button")};t.prototype.handleAwaitChange=function(t){if(t===false){this.await=undefined;this.km.detachClickBehavior();return}this.km.attachClickBehavior()};t.prototype.connectedCallback=function(){if(!this.disabled)this.host.removeAttribute("disabled")};t.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};t.prototype.render=function(){var t;this.typography=(t=buttonSizeTypographyVariant[this.size])!==null&&t!==void 0?t:buttonSizeTypographyVariant.md;return h(Host,{key:"3d7db80d99477ad9e4ff34c97d0cb0e04160a041",onMouseDown:this.mouseDown,onMouseUp:this.mouseUp,onMouseOut:this.mouseUp,tabindex:"0","pref-animation":preferenceStore.state.animation,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"133053ee2566972bbbaf1f47faa87c1f9c30b841",class:"await"},h("mds-spinner",{key:"ce67aa6522a2c646b1efebf51dcc51d3a987b5c9",class:"spinner",running:this.await})),this.icon&&this.iconPosition==="left"&&h("mds-icon",{key:"81d183d185387f2e6113869e14cb274a57f44f3b","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}),h("mds-text",{key:"5ac26dd99519f30bcfe71fcbe0fdd4195055bea2",class:"text",part:"label",tag:"span",typography:this.typography,truncate:this.truncate,animation:this.animation,text:this.label},this.label||h("slot",{key:"a56c6946ed59d9b9fe481955027015d7f46bcab1",onSlotchange:this.onSlotChangeHandler})),h("slot",{key:"1f0a279dd9e57ba7510c879e72d1f815adb76b6b",name:"notification"}),this.icon&&this.iconPosition==="right"&&h("mds-icon",{key:"eb2f6eff668e5195d5725360ba30cb99a6e7a054","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],label:[{labelChanged:0}],await:[{awaitChanged:0},{handleAwaitChange:0}],type:[{handleTypeChange:0}],variant:[{handleVariantChange:0}]}},enumerable:false,configurable:true});return t}();MdsButton.style=mdsButtonCss();var mdsIconCss=function(){return"@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{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center;width:calc(var(--spacing,.0025rem)*600)}.icon{align-items:center;display:inline-flex;font-style:normal;justify-content:center;width:100%}.icon svg{height:auto;width:100%}"};var MdsIcon=/** @class */function(){function t(t){var a=this;registerInstance(this,t);
35
+ // Each update supersedes the ones still loading: only the latest one sets the svg
36
+ this.lastUpdate=0;this.wasDisconnected=false;this.onSvgPathUpdate=function(){a.updateIcon()};this.convertBase64ToSvg=function(){var t=a.name.replace(BASE64_SVG_ICON,"").replace(/=/i,"");return atob(t)}}t.prototype.connectedCallback=function(){IconsSetService.registerListener(this.onSvgPathUpdate);
37
+ // the svg path may have changed while the icon was out of the page
38
+ if(this.wasDisconnected){this.wasDisconnected=false;this.updateIcon()}};t.prototype.disconnectedCallback=function(){IconsSetService.unregisterListener(this.onSvgPathUpdate);this.wasDisconnected=true};t.prototype.componentWillLoad=function(){this.updateIcon()};
36
39
  /**
37
40
  * Set the path to the directory of svg files
38
41
  * @param svgPath path to the directory of svg files
39
- */a.prototype.setSvgPath=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){IconsSetService.setSvgPath(a);return[2/*return*/,Promise.resolve()]}))}))};a.prototype.updateIcon=function(){return __awaiter(this,void 0,void 0,(function(){var a;return __generator(this,(function(t){switch(t.label){case 0:if(this.name==="")return[2/*return*/,Promise.resolve()];if(isIconFormatIsBase64(this.name)){this.svgHTML=this.convertBase64ToSvg();return[2/*return*/,Promise.resolve()]}if(isIconFormatIsSVG(this.name)){this.svgHTML=this.name;return[2/*return*/,Promise.resolve()]}a=this;return[4/*yield*/,IconsSetService.fetchSvg(this.name)];case 1:a.svgHTML=t.sent();return[2/*return*/]}}))}))};a.prototype.render=function(){return h(Host,{key:"8d95b94dbe7f22e136567cb681e44479f5c1be7a"},this.svgHTML&&h("i",{key:"e9808177023e9521abf570b85302b65e43f9e0d8","aria-hidden":"true",class:"icon",part:"svg",innerHTML:this.svgHTML}))};Object.defineProperty(a.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{name:[{updateIcon:0}]}},enumerable:false,configurable:true});return a}();MdsIcon.style=mdsIconCss();var awaitIcon='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path opacity="0.25" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-width="4"/>\n <path opacity="0.75" d="M10 2.2002C5.43552 3.12674 2 7.16224 2 12.0002C2 13.5118 2.3354 14.9451 2.93585 16.2297" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n</svg>\n';var mdsSpinnerCss=function(){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}}}:host{--mds-spinner-duration:.725s;--tw-ease:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));align-items:center;color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));display:inline-flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:center;opacity:0;overflow:hidden;transform:scale(0);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:opacity,transform;transition-timing-function:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));width:calc(var(--spacing,.0025rem)*1200)}:host([running]){--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));opacity:1;transform:scale(1);-webkit-transition-duration:var(--duration-700,.7s);transition-duration:var(--duration-700,.7s);transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.await-icon{animation:var(--animate-spin,spin 1s linear infinite);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));-webkit-animation-duration:var(--mds-spinner-duration,.725s);animation-duration:var(--mds-spinner-duration,.725s);animation-play-state:paused;aspect-ratio:var(--aspect-square,1/1);display:flex;flex-shrink:0;stroke:currentColor;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:stroke;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.await-icon svg{width:100%}:host([running]) .await-icon{animation-play-state:running}:host([pref-contrast=more]){color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}: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}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){:host{--mds-spinner-duration:8s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}'};var MdsSpinner=/** @class */function(){function a(a){registerInstance(this,a);
42
+ */t.prototype.setSvgPath=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){IconsSetService.setSvgPath(t);return[2/*return*/,Promise.resolve()]}))}))};t.prototype.updateIcon=function(){return __awaiter(this,void 0,void 0,(function(){var t,a,r;return __generator(this,(function(e){switch(e.label){case 0:a=++this.lastUpdate;
43
+ // `name` is undefined (or null) at runtime when the attribute is missing or removed
44
+ if(((t=this.name)!==null&&t!==void 0?t:"")===""){this.svgHTML="";return[2/*return*/,Promise.resolve()]}if(isIconFormatIsBase64(this.name)){this.svgHTML=this.convertBase64ToSvg();return[2/*return*/,Promise.resolve()]}if(isIconFormatIsSVG(this.name)){this.svgHTML=this.name;return[2/*return*/,Promise.resolve()]}return[4/*yield*/,IconsSetService.fetchSvg(this.name)];case 1:r=e.sent();if(a===this.lastUpdate){this.svgHTML=r}return[2/*return*/]}}))}))};t.prototype.render=function(){return h(Host,{key:"9544b1ca2b153e95f6710e0bbed762048676fb48"},this.svgHTML&&h("i",{key:"745b56492d69be55e449b94633b09391972e3d79","aria-hidden":"true",class:"icon",part:"svg",innerHTML:this.svgHTML}))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:[{updateIcon:0}]}},enumerable:false,configurable:true});return t}();MdsIcon.style=mdsIconCss();var awaitIcon='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path opacity="0.25" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-width="4"/>\n <path opacity="0.75" d="M10 2.2002C5.43552 3.12674 2 7.16224 2 12.0002C2 13.5118 2.3354 14.9451 2.93585 16.2297" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n</svg>\n';var mdsSpinnerCss=function(){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}}}:host{--mds-spinner-duration:.725s;--tw-ease:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));align-items:center;color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));display:inline-flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:center;opacity:0;overflow:hidden;transform:scale(0);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:opacity,transform;transition-timing-function:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));width:calc(var(--spacing,.0025rem)*1200)}:host([running]){--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));opacity:1;transform:scale(1);-webkit-transition-duration:var(--duration-700,.7s);transition-duration:var(--duration-700,.7s);transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.await-icon{animation:var(--animate-spin,spin 1s linear infinite);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));-webkit-animation-duration:var(--mds-spinner-duration,.725s);animation-duration:var(--mds-spinner-duration,.725s);animation-play-state:paused;aspect-ratio:var(--aspect-square,1/1);display:flex;flex-shrink:0;stroke:currentColor;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:stroke;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.await-icon svg{width:100%}:host([running]) .await-icon{animation-play-state:running}:host([pref-contrast=more]){color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}: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}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){:host{--mds-spinner-duration:8s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}'};var MdsSpinner=/** @class */function(){function t(t){registerInstance(this,t);
40
45
  /**
41
46
  * Specifies if the animation is running or not, it's required for performance reasons
42
- */this.running=false}a.prototype.handleRunning=function(a){if(a===false){this.running=undefined}};a.prototype.render=function(){return h(Host,{key:"499a800738df129305e16207df5a21a602d3ab0b","pref-contrast":preferenceStore.state.contrast},h("i",{key:"9c3ec8cc93a56e05f507c3f2038bcd95694f9081",class:"await-icon",innerHTML:awaitIcon}))};Object.defineProperty(a,"watchers",{get:function(){return{running:[{handleRunning:0}]}},enumerable:false,configurable:true});return a}();MdsSpinner.style=mdsSpinnerCss();export{MdsButton as mds_button,MdsIcon as mds_icon,MdsSpinner as mds_spinner};
47
+ */this.running=false}t.prototype.handleRunning=function(t){if(t===false){this.running=undefined}};t.prototype.render=function(){return h(Host,{key:"499a800738df129305e16207df5a21a602d3ab0b","pref-contrast":preferenceStore.state.contrast},h("i",{key:"9c3ec8cc93a56e05f507c3f2038bcd95694f9081",class:"await-icon",innerHTML:awaitIcon}))};Object.defineProperty(t,"watchers",{get:function(){return{running:[{handleRunning:0}]}},enumerable:false,configurable:true});return t}();MdsSpinner.style=mdsSpinnerCss();export{MdsButton as mds_button,MdsIcon as mds_icon,MdsSpinner as mds_spinner};
@@ -79,7 +79,7 @@ r.visible=false;(o=r.caller)===null||o===void 0?void 0:o.focus();break}};
79
79
  * back is only right when the panel was holding it: a panel that goes display:none under the
80
80
  * focus drops it on the body, and the place in the page is lost */this.closeFromKeyboard=function(){var a;if(!r.visible)return;var o=r.host.contains(document.activeElement);r.visible=false;if(o)(a=r.caller)===null||a===void 0?void 0:a.focus()};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var a=window.getComputedStyle(r.host);r.cssMouseOverDelayDuration=a.getPropertyValue("--mds-dropdown-mouseover-delay")};this.handleCloseDropdown=function(a){if(a.type==="mouseleave"){r.host.removeEventListener("mouseleave",r.handleCloseDropdown);r.caller.removeEventListener("mouseleave",r.handleCloseDropdown);r.visible=false;return}if(!r.host.contains(a.target)&&a.target!==r.caller){r.visible=false;document.removeEventListener("click",r.handleCloseDropdown)}};this.setInteractionBehaviour=function(){if(r.interaction==="none"){return}if(r.interaction==="click"){r.caller.addEventListener("click",r.onClickTarget);r.caller.addEventListener("keydown",r.onCallerKeydown)}if(r.interaction==="mouseover"){r.caller.addEventListener("mouseover",r.onMouseOverTarget);r.caller.addEventListener("mouseout",r.onMouseOutTarget);r.host.addEventListener("mouseover",r.handleCloseDropdownMouseLeave)}};
81
81
  /** Hands the caller back what it was given: a caller the target no longer names would go on
82
- * opening a panel that is not its own */this.unsetInteractionBehaviour=function(a){a.removeEventListener("click",r.onClickTarget);a.removeEventListener("keydown",r.onCallerKeydown);a.removeEventListener("mouseover",r.onMouseOverTarget);a.removeEventListener("mouseout",r.onMouseOutTarget)};this.handleCloseDropdownMouseLeave=function(){clearTimeout(r.mouseoverTimer);r.host.removeEventListener("mouseover",r.handleCloseDropdownMouseLeave);r.host.addEventListener("mouseleave",r.handleCloseDropdown)}}a.prototype.hideArrowChanged=function(){this.floatingController.updatePosition()};a.prototype.arrowPaddingChanged=function(){this.floatingController.updatePosition()};a.prototype.disableAutoPlacementChanged=function(){this.floatingController.updatePosition()};a.prototype.backdropChanged=function(a){if(a===false){this.backdrop=undefined}if(!this.visible){return}if(a){this.backdropController.attachBackdrop();return}this.backdropController.detachBackdrop()};a.prototype.flipChanged=function(){this.floatingController.updatePosition()};a.prototype.offsetChanged=function(){this.floatingController.updatePosition()};a.prototype.placementChanged=function(){this.floatingController.updatePosition()};a.prototype.disableShiftChanged=function(){this.floatingController.updatePosition()};a.prototype.shiftPaddingChanged=function(){this.floatingController.updatePosition()};a.prototype.strategyChanged=function(){this.floatingController.updatePosition()};a.prototype.targetChanged=function(){if(this.target===""||this.floatingController==null)return;var a=this.floatingController.updateCaller(this.target);if(!a)return;if(this.caller&&this.caller!==a)this.unsetInteractionBehaviour(this.caller);this.caller=a;
82
+ * opening a panel that is not its own */this.unsetInteractionBehaviour=function(a){a.removeEventListener("click",r.onClickTarget);a.removeEventListener("keydown",r.onCallerKeydown);a.removeEventListener("mouseover",r.onMouseOverTarget);a.removeEventListener("mouseout",r.onMouseOutTarget)};this.handleCloseDropdownMouseLeave=function(){clearTimeout(r.mouseoverTimer);r.host.removeEventListener("mouseover",r.handleCloseDropdownMouseLeave);r.host.addEventListener("mouseleave",r.handleCloseDropdown)}}a.prototype.hideArrowChanged=function(){this.floatingController.updatePosition()};a.prototype.arrowPaddingChanged=function(){this.floatingController.updatePosition()};a.prototype.disableAutoPlacementChanged=function(){this.floatingController.updatePosition()};a.prototype.backdropChanged=function(a){if(a===false){this.backdrop=undefined}if(!this.visible){return}if(a){this.backdropController.attachBackdrop();return}this.backdropController.detachBackdrop()};a.prototype.flipChanged=function(){this.floatingController.updatePosition()};a.prototype.offsetChanged=function(){this.floatingController.updatePosition()};a.prototype.placementChanged=function(){this.floatingController.updatePosition()};a.prototype.disableShiftChanged=function(){this.floatingController.updatePosition()};a.prototype.shiftPaddingChanged=function(){this.floatingController.updatePosition()};a.prototype.strategyChanged=function(){this.floatingController.updatePosition()};a.prototype.targetChanged=function(){var a;if(((a=this.target)!==null&&a!==void 0?a:"")===""||this.floatingController==null)return;var r=this.floatingController.updateCaller(this.target);if(!r)return;if(this.caller&&this.caller!==r)this.unsetInteractionBehaviour(this.caller);this.caller=r;
83
83
  // the role of the panel arrives with the caller, so the entries are named once it resolves
84
84
  this.markEntries();this.setInteractionBehaviour();this.km.addElement(this.host);this.km.attachEscapeBehavior(this.closeFromKeyboard)};a.prototype.visibleChanged=function(a){this.changedEvent.emit({caller:this.caller,visible:a});this.floatingController.syncExpanded(a);if(a){document.addEventListener("click",this.handleCloseDropdown);this.floatingController.updatePosition();if(this.backdrop){this.backdropController.attachBackdrop()}this.visibleEvent.emit({caller:this.caller,visible:true});return}this.floatingController.dismiss();if(this.backdrop){this.backdropController.detachBackdrop()}this.hiddenEvent.emit({caller:this.caller,visible:false})};Object.defineProperty(a.prototype,"isMenu",{get:function(){return this.host.getAttribute("role")==="menu"},enumerable:false,configurable:true});a.prototype.componentDidLoad=function(){var a,r,o;var t=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".arrow");
85
85
  /**
@@ -99,4 +99,4 @@ this.host.addEventListener("keydown",this.onPanelKeydown);
99
99
  // The watcher does not fire for the initial value, so a dropdown that mounts
100
100
  // with `visible` set was never positioned at all: no left, no top, no origin,
101
101
  // parked at the top left corner of the page.
102
- if(this.visible){this.visibleChanged(true)}};a.prototype.disconnectedCallback=function(){this.floatingController.dismiss();this.backdropController.detachBackdrop();this.km.detachEscapeBehavior()};a.prototype.render=function(){return h(Host,{key:"909529db1b7f90da7fef23235ac276e133aef6cf",style:{zIndex:"".concat(this.zIndex)},"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"fe65713f1e3f849a57f05ad7e3be0eede40198d4",class:"arrow",innerHTML:arrowSvg}),h("slot",{key:"2c438ff28af51844e5e399e07b31773edf745447"}))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){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}]}},enumerable:false,configurable:true});return a}();MdsDropdown.style=mdsDropdownCss();export{MdsDropdown as mds_dropdown};
102
+ if(this.visible){this.visibleChanged(true)}};a.prototype.disconnectedCallback=function(){this.floatingController.dismiss();this.backdropController.detachBackdrop();this.km.detachEscapeBehavior()};a.prototype.render=function(){return h(Host,{key:"42bb1259088a7cc15869cd0cbf007ce9f34331cb",style:{zIndex:"".concat(this.zIndex)},"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"6a2caa47a6dca50fe6ae209229daddcd7791473d",class:"arrow",innerHTML:arrowSvg}),h("slot",{key:"656a32363daa94dc4433cd5fb86d689d80502221"}))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){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}]}},enumerable:false,configurable:true});return a}();MdsDropdown.style=mdsDropdownCss();export{MdsDropdown as mds_dropdown};
@@ -1 +1 @@
1
- import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsEntityCss=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 MdsEntity=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.onSlotChange=function(){t.hasDetails=hasChildWithSlot(t.hostElement,"detail");t.hasActions=hasChildWithSlot(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 h(Host,{key:"6f3b52502b6d3adf53e6f2e09102aedb85511b90","pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"2564f37213f6d869c956d42e2f71e53514961d54",class:"spinner",part:"spinner"},h("mds-spinner",{key:"02cab86d55e671c5cd8ea218f310108b955d5074",running:true})),this.checkAvatar()&&h("mds-avatar",{key:"b4a21449ce6667f2002f2dcc512e02941f3f262e",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),h("div",{key:"f04ae006e58634fe1693d6c6a44c216dffd9eca7",class:"infos"},h("slot",{key:"4b3eeff2039502cc594c9d5ff7f572b2299c1c30"}),h("div",{key:"05ec19be56b796da0503155dba807b71f7df3f54",class:clsx("details",!this.hasDetails&&"details--hidden")},h("slot",{key:"05d86303e22bfa0e1e3022ee01d333780023a560",name:"detail",onSlotchange:this.onSlotChange}))),h("div",{key:"d181d072325bc9f42366fd6182f6e2ba108eece9",class:clsx("actions",!this.hasActions&&"actions--hidden")},h("slot",{key:"2987056a975034a263f16cb7b3a855a723324f7a",name:"action",onSlotchange:this.onSlotChange})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsEntity.style=mdsEntityCss();export{MdsEntity as mds_entity};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsEntityCss=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: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 MdsEntity=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.onSlotChange=function(){t.hasDetails=hasChildWithSlot(t.hostElement,"detail");t.hasActions=hasChildWithSlot(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 h(Host,{key:"6f3b52502b6d3adf53e6f2e09102aedb85511b90","pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"2564f37213f6d869c956d42e2f71e53514961d54",class:"spinner",part:"spinner"},h("mds-spinner",{key:"02cab86d55e671c5cd8ea218f310108b955d5074",running:true})),this.checkAvatar()&&h("mds-avatar",{key:"b4a21449ce6667f2002f2dcc512e02941f3f262e",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),h("div",{key:"f04ae006e58634fe1693d6c6a44c216dffd9eca7",class:"infos"},h("slot",{key:"4b3eeff2039502cc594c9d5ff7f572b2299c1c30"}),h("div",{key:"05ec19be56b796da0503155dba807b71f7df3f54",class:clsx("details",!this.hasDetails&&"details--hidden")},h("slot",{key:"05d86303e22bfa0e1e3022ee01d333780023a560",name:"detail",onSlotchange:this.onSlotChange}))),h("div",{key:"d181d072325bc9f42366fd6182f6e2ba108eece9",class:clsx("actions",!this.hasActions&&"actions--hidden")},h("slot",{key:"2987056a975034a263f16cb7b3a855a723324f7a",name:"action",onSlotchange:this.onSlotChange})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsEntity.style=mdsEntityCss();export{MdsEntity as mds_entity};
@@ -2,10 +2,10 @@ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from".
2
2
  /**
3
3
  * filesize
4
4
  *
5
- * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
5
+ * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
6
6
  * @license BSD-3-Clause
7
- * @version 10.1.0
8
- */var ARRAY="array";var BIT="bit";var BITS="bits";var BYTE="byte";var BYTES="bytes";var EMPTY="";var EXPONENT="exponent";var FUNCTION="function";var IEC="iec";var INVALID_NUMBER="Invalid number";var INVALID_ROUND="Invalid rounding method";var JEDEC="jedec";var OBJECT="object";var PERIOD=".";var ROUND="round";var S="s";var SI="si";var SI_KBIT="kbit";var SI_KBYTE="kB";var SPACE=" ";var STRING="string";var ZERO="0";var STRINGS={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"]}};function filesize(e,r){var a=r===void 0?{}:r,i=a.bits,t=i===void 0?false:i,o=a.pad,s=o===void 0?false:o,l=a.base,n=l===void 0?-1:l,v=a.round,c=v===void 0?2:v,m=a.locale,d=m===void 0?EMPTY:m,b=a.localeOptions,g=b===void 0?{}:b,f=a.separator,p=f===void 0?EMPTY:f,u=a.spacer,h=u===void 0?SPACE:u,w=a.symbols,x=w===void 0?{}:w,k=a.standard,y=k===void 0?EMPTY:k,E=a.output,I=E===void 0?STRING:E,B=a.fullform,T=B===void 0?false:B,N=a.fullforms,j=N===void 0?[]:N,D=a.exponent,O=D===void 0?-1:D,M=a.roundingMethod,R=M===void 0?ROUND:M,C=a.precision,P=C===void 0?0:C;var q=O,Y=Number(e),L=[],F=0,z=EMPTY;
7
+ * @version 10.1.6
8
+ */var ARRAY="array";var BIT="bit";var BITS="bits";var BYTE="byte";var BYTES="bytes";var EMPTY="";var EXPONENT="exponent";var FUNCTION="function";var IEC="iec";var INVALID_NUMBER="Invalid number";var INVALID_ROUND="Invalid rounding method";var JEDEC="jedec";var OBJECT="object";var PERIOD=".";var ROUND="round";var S="s";var SI="si";var SI_KBIT="kbit";var SI_KBYTE="kB";var SPACE=" ";var STRING="string";var ZERO="0";var STRINGS={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"]}};function filesize(e,r){var a=r===void 0?{}:r,i=a.bits,t=i===void 0?false:i,o=a.pad,s=o===void 0?false:o,l=a.base,n=l===void 0?-1:l,v=a.round,c=v===void 0?2:v,m=a.locale,d=m===void 0?EMPTY:m,b=a.localeOptions,g=b===void 0?{}:b,f=a.separator,p=f===void 0?EMPTY:f,u=a.spacer,h=u===void 0?SPACE:u,w=a.symbols,x=w===void 0?{}:w,k=a.standard,y=k===void 0?EMPTY:k,E=a.output,I=E===void 0?STRING:E,B=a.fullform,T=B===void 0?false:B,N=a.fullforms,D=N===void 0?[]:N,j=a.exponent,O=j===void 0?-1:j,M=a.roundingMethod,R=M===void 0?ROUND:M,C=a.precision,P=C===void 0?0:C;var q=O,Y=Number(e),L=[],F=0,z=EMPTY;
9
9
  // Sync base & standard
10
10
  if(y===SI){n=10;y=JEDEC}else if(y===IEC||y===JEDEC){n=2}else if(n===2){y=IEC}else{n=10;y=JEDEC}var _=n===10?1e3:1024,A=T===true,G=Y<0,V=Math[R];if(typeof e!=="bigint"&&isNaN(e)){throw new TypeError(INVALID_NUMBER)}if(typeof V!==FUNCTION){throw new TypeError(INVALID_ROUND)}
11
11
  // Flipping a negative number to determine the size
@@ -21,9 +21,11 @@ if(G){L[0]=-L[0]}
21
21
  // Setting optional precision
22
22
  if(P>0){L[0]=L[0].toPrecision(P)}
23
23
  // Applying custom symbol
24
- L[1]=x[L[1]]||L[1];if(d===true){L[0]=L[0].toLocaleString()}else if(d.length>0){L[0]=L[0].toLocaleString(d,g)}else if(p.length>0){L[0]=L[0].toString().replace(PERIOD,p)}if(s&&Number.isInteger(L[0])===false&&c>0){var K=p||PERIOD,U=L[0].toString().split(K),Z=U[1]||EMPTY,$=Z.length,X=c-$;L[0]="".concat(U[0]).concat(K).concat(Z.padEnd($+X,ZERO))}if(A){L[1]=j[q]?j[q]:STRINGS.fullform[y][q]+(t?BIT:BYTE)+(L[0]===1?EMPTY:S)}
24
+ L[1]=x[L[1]]||L[1];if(d===true){L[0]=L[0].toLocaleString()}else if(d.length>0){L[0]=L[0].toLocaleString(d,g)}else if(p.length>0){L[0]=L[0].toString().replace(PERIOD,p)}if(s&&c>0){var K=L[0].toString(),U=p||((K.match(/(\D)/g)||[]).pop()||PERIOD),Z=K.toString().split(U),$=Z[1]||EMPTY,X=$.length,H=c-X;L[0]="".concat(Z[0]).concat(U).concat($.padEnd(X+H,ZERO))}if(A){L[1]=D[q]?D[q]:STRINGS.fullform[y][q]+(t?BIT:BYTE)+(L[0]===1?EMPTY:S)}
25
25
  // Returning Array, Object, or String (default)
26
26
  return I===ARRAY?L:I===OBJECT?{value:L[0],symbol:L[1],exponent:q,unit:z}:L.join(h)}var remove$3="Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης";var localeEl={remove:remove$3};var remove$2="Remove file from upload queue";var localeEn={remove:remove$2};var remove$1="Eliminar archivo de la cola de carga";var localeEs={remove:remove$1};var remove="Rimuovi file dalla coda di upload";var localeIt={remove:remove};var mdsFilePreviewCss=function(){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))}}"};var MdsFilePreview=/** @class */function(){function e(e){var r=this;registerInstance(this,e);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.deletedEvent=createEvent(this,"mdsFileDelete",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});
27
27
  /**
28
28
  * Truncates the filename shown
29
- */this.truncate="word";this.getDefaultKeyDescription=function(){return getExtensionInfos(r.filename,r.suffix).description};this.onClickDeletedEvent=function(){r.deletedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})};this.onClickDownloadEvent=function(){r.downloadedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})}}e.prototype.componentWillLoad=function(){this.format=getExtensionInfos(this.filename,this.suffix).format};e.prototype.componentDidLoad=function(){this.handleDownloadable(this.downloadable)};e.prototype.handleFilename=function(e){this.format=getExtensionInfos(e,this.suffix).format};e.prototype.handleDownloadable=function(e,r){var a;if(e===r)return;var i=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".card");if(e){i===null||i===void 0?void 0:i.addEventListener("click",this.onClickDownloadEvent);return}i===null||i===void 0?void 0:i.removeEventListener("click",this.onClickDownloadEvent)};e.prototype.render=function(){var e,r,a;return h(Host,{key:"389451c485ded68d3d3d99e950ec2e2ad08f4ac9","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},this.deletable&&h("mds-button",{key:"e04b3974185c09a3d9407b74168a37afce9d23de",title:this.t.get("remove"),class:"action-delete",icon:miBaselineCancel,variant:"light",onClick:this.onClickDeletedEvent}),h("div",{key:"f899421ec875a83f2593890e0a736759b903b24f",class:"card",part:"card",onClick:this.onClickDownloadEvent},this.src!==undefined&&this.src!==""&&(this.message===undefined||this.message==="")&&getExtensionInfos(this.filename,this.suffix).preview?h("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):h("div",{class:clsx("preview",this.message===undefined||this.message===""?"preview--icon":"preview--status")},this.icon!==undefined&&this.icon!==""?h("mds-icon",{class:"icon",name:this.icon}):h("mds-icon",{class:"icon",name:getFormatsVariant(this.filename,this.suffix).icon}),this.message&&h("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),h("mds-text",{key:"32d3359b9c41a845001e17987ce703219ba29843",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),h("div",{key:"79e555cedfc5d35b2d54ec6a3aee7591cc0edf2e",class:clsx("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&h("mds-text",{key:"84e7d78e1d0639e637173a1c781a61f21e459b6d",class:"file-size",truncate:"word",typography:"caption",variant:"info"},filesize(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&h("mds-text",{key:"8945ff2c6224b7a4803390eae2fc12474903a3dd",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"5581cb1f4d13f6f15f28c0957094dcd5982f0a0f",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:(e=this.description)!==null&&e!==void 0?e:this.t.get(this.getDefaultKeyDescription())},getSuffix(this.filename,this.suffix)),(this.filesize===undefined||this.filesize==="")&&h("mds-text",{key:"d743b838cc6fa9fed0f5cdf7914c7652bfc3e1ac",class:"description",truncate:"word",typography:"caption",variant:"info",title:(r=this.description)!==null&&r!==void 0?r:this.t.get(this.getDefaultKeyDescription())},(a=this.description)!==null&&a!==void 0?a:this.t.get(this.getDefaultKeyDescription())))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filename:[{handleFilename:0}],downloadable:[{handleDownloadable:0}]}},enumerable:false,configurable:true});return e}();MdsFilePreview.style=mdsFilePreviewCss();export{MdsFilePreview as mds_file_preview};
29
+ */this.truncate="word";this.getDefaultKeyDescription=function(){return getExtensionInfos(r.filename,r.suffix).description};this.onClickDeletedEvent=function(){r.deletedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})};this.onClickDownloadEvent=function(){r.downloadedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})}}e.prototype.componentWillLoad=function(){this.format=getExtensionInfos(this.filename,this.suffix).format};e.prototype.componentDidLoad=function(){this.handleDownloadable(this.downloadable)};e.prototype.handleFilename=function(e){this.format=getExtensionInfos(e,this.suffix).format};e.prototype.handleDownloadable=function(e,r){var a;if(e===r)return;var i=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".card");if(e){i===null||i===void 0?void 0:i.addEventListener("click",this.onClickDownloadEvent);return}i===null||i===void 0?void 0:i.removeEventListener("click",this.onClickDownloadEvent)};e.prototype.render=function(){var e,r,a,i,t,o,s;
30
+ // a removed attribute or a null bound by a framework counts as not set, like an empty value
31
+ var l=((e=this.message)!==null&&e!==void 0?e:"")!=="";return h(Host,{key:"4450e7351e840c4b0f7d72c9b1bc441d9087ad7e","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},this.deletable&&h("mds-button",{key:"8f1d4ced62f8c479a5e1c324b5ce940cf7aa2d84",title:this.t.get("remove"),class:"action-delete",icon:miBaselineCancel,variant:"light",onClick:this.onClickDeletedEvent}),h("div",{key:"45d38745f7466b0da5b8f2724879ef46d6826bfd",class:"card",part:"card",onClick:this.onClickDownloadEvent},((r=this.src)!==null&&r!==void 0?r:"")!==""&&!l&&getExtensionInfos(this.filename,this.suffix).preview?h("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):h("div",{class:clsx("preview",l?"preview--status":"preview--icon")},((a=this.icon)!==null&&a!==void 0?a:"")!==""?h("mds-icon",{class:"icon",name:this.icon}):h("mds-icon",{class:"icon",name:getFormatsVariant(this.filename,this.suffix).icon}),this.message&&h("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),h("mds-text",{key:"e87d673948267ccf70636d4c2940fb8885f2fb96",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),h("div",{key:"25e05eb7f5bef19a392b87401f2e780bd8e605cd",class:clsx("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&h("mds-text",{key:"cdd7ebbbc99f90caee0c49d74a4b8f4ce0769a2a",class:"file-size",truncate:"word",typography:"caption",variant:"info"},filesize(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&h("mds-text",{key:"381998bfae5b4d76fed78c70f38ef2aab5d13f9e",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"89f980cf0ec10d220c83f5a6e8ded4a4d9491a0c",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:(i=this.description)!==null&&i!==void 0?i:this.t.get(this.getDefaultKeyDescription())},getSuffix(this.filename,this.suffix)),((t=this.filesize)!==null&&t!==void 0?t:"")===""&&h("mds-text",{key:"f29356eb97dbb5bc137d3d278176633ce938111f",class:"description",truncate:"word",typography:"caption",variant:"info",title:(o=this.description)!==null&&o!==void 0?o:this.t.get(this.getDefaultKeyDescription())},(s=this.description)!==null&&s!==void 0?s:this.t.get(this.getDefaultKeyDescription())))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filename:[{handleFilename:0}],downloadable:[{handleDownloadable:0}]}},enumerable:false,configurable:true});return e}();MdsFilePreview.style=mdsFilePreviewCss();export{MdsFilePreview as mds_file_preview};
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function d(e){try{s(r.next(e))}catch(e){n(e)}}function o(e){try{s(r["throw"](e))}catch(e){n(e)}}function s(e){e.done?a(e.value):i(e.value).then(d,o)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,d=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return d.next=o(0),d["throw"]=o(1),d["return"]=o(2),typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(e){return function(t){return s([e,t])}}function s(o){if(r)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(a=0)),a)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){a.label=o[1];break}if(o[0]===6&&a.label<n[1]){a.label=n[1];n=o;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(o);break}if(n[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{a as queryChildBySlot}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsHeaderCss=function(){return'@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))))}}'};var MdsHeader=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.closedEvent=createEvent(this,"mdsHeaderClose",7);this.visibleEvent=createEvent(this,"mdsHeaderVisibilityChange",7);this.relativeTresholdDown=0;this.relativePosition=0;this.relativeThresholdUp=0;this.sanitizedAppearance=["stripe"];this.appearanceThreshold=300;
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,a){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function d(e){try{s(a.next(e))}catch(e){n(e)}}function o(e){try{s(a["throw"](e))}catch(e){n(e)}}function s(e){e.done?r(e.value):i(e.value).then(d,o)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,d=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return d.next=o(0),d["throw"]=o(1),d["return"]=o(2),typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(e){return function(t){return s([e,t])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(r=0)),r)try{if(a=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){r.label=o[1];break}if(o[0]===6&&r.label<n[1]){r.label=n[1];n=o;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(o);break}if(n[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{a=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{a as queryChildBySlot}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsHeaderCss=function(){return'@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))))}}'};var MdsHeader=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.closedEvent=createEvent(this,"mdsHeaderClose",7);this.visibleEvent=createEvent(this,"mdsHeaderVisibilityChange",7);this.relativeTresholdDown=0;this.relativePosition=0;this.relativeThresholdUp=0;this.sanitizedAppearance=["stripe"];this.appearanceThreshold=300;
2
2
  /**
3
3
  * Sets the appearance of the header bar element when loaded,
4
4
  * it can be changed depending on how `appearance-set` attribute is set
@@ -17,14 +17,16 @@ var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e ins
17
17
  */this.threshold=1;
18
18
  /**
19
19
  * Sets the visibility type of the navigation menu of mds-header-bar
20
- */this.visibility="visible";this.mobileMenu=function(){return queryChildBySlot(t.host,"menu")};this.close=function(){t.isOpened=false;t.closedEvent.emit({bar:t.headerBar});t.headerBar.setOpened(false)};this.handleVisibility=function(){if(t.autoHide===undefined||t.autoHide===0||Number.isNaN(t.autoHide)){return}
20
+ */this.visibility="visible";this.mobileMenu=function(){return queryChildBySlot(t.host,"menu")};this.close=function(){t.isOpened=false;t.closedEvent.emit({bar:t.headerBar});t.headerBar.setOpened(false)};
21
+ // a removed attribute leaves null, which turns the auto hide off like 0
22
+ this.getAutoHide=function(){var e;var r=(e=t.autoHide)!==null&&e!==void 0?e:0;return Number.isNaN(r)?0:r};this.handleVisibility=function(){var e=t.getAutoHide();if(e===0){return}
21
23
  // reset var if the page is scrolled to top
22
- if(window.scrollY<t.autoHide){t.visibility="visible";t.relativeThresholdUp=0;t.relativeTresholdDown=0;t.relativePosition=0;return}if(t.relativeTresholdDown-window.scrollY<=0){t.visibility="hidden";t.relativePosition=t.relativeTresholdDown}if(t.relativeThresholdUp-window.scrollY>=t.threshold){t.visibility="visible";t.relativeThresholdUp=window.scrollY;t.relativePosition=t.relativeThresholdUp}
24
+ if(window.scrollY<e){t.visibility="visible";t.relativeThresholdUp=0;t.relativeTresholdDown=0;t.relativePosition=0;return}if(t.relativeTresholdDown-window.scrollY<=0){t.visibility="hidden";t.relativePosition=t.relativeTresholdDown}if(t.relativeThresholdUp-window.scrollY>=t.threshold){t.visibility="visible";t.relativeThresholdUp=window.scrollY;t.relativePosition=t.relativeThresholdUp}
23
25
  // set hidden for the first scroll from top
24
- if(t.relativePosition<t.autoHide&&t.autoHide-window.scrollY<=0){t.visibility="hidden";t.relativePosition=t.autoHide}
26
+ if(t.relativePosition<e&&e-window.scrollY<=0){t.visibility="hidden";t.relativePosition=e}
25
27
  // update respective threshold if page is scrolled up or down
26
- if(window.scrollY>t.relativeThresholdUp){t.relativeThresholdUp=window.scrollY}else{t.relativeTresholdDown=window.scrollY+t.threshold}};this.sanitizeAppearance=function(){if(t.appearanceSet===undefined||t.appearanceSet===""){return[t.appearance]}var e=/\b(\w+)\b/g;var a=t.appearanceSet.match(e);if(a){return a}return[t.appearance]};this.handleAppearance=function(){var e,a;if(window.scrollY>=t.appearanceThreshold){t.appearance=(e=t.sanitizedAppearance[1])!==null&&e!==void 0?e:t.appearance;return}t.appearance=(a=t.sanitizedAppearance[0])!==null&&a!==void 0?a:t.appearance};this.handleScroll=function(){if(typeof window==="undefined")return;if(t.autoHide!==undefined&&t.autoHide!==0&&!Number.isNaN(t.autoHide)){t.handleVisibility()}if(t.sanitizedAppearance.length>1){t.handleAppearance()}};this.setAppearanceSetData=function(){t.sanitizedAppearance=t.sanitizeAppearance();if(t.sanitizedAppearance[2]!==undefined&&t.sanitizedAppearance[2]!==0&&!Number.isNaN(t.sanitizedAppearance[2])){t.appearanceThreshold=t.sanitizedAppearance[2]}t.relativeTresholdDown=t.threshold};this.initScrollListener=function(){if(typeof window==="undefined"){return}t.setAppearanceSetData();window.addEventListener("scroll",t.handleScroll)};this.defineHeaderBar=function(){t.headerBar=t.host.querySelector("mds-header-bar")}}
28
+ if(window.scrollY>t.relativeThresholdUp){t.relativeThresholdUp=window.scrollY}else{t.relativeTresholdDown=window.scrollY+t.threshold}};this.sanitizeAppearance=function(){var e;var r=(e=t.appearanceSet)!==null&&e!==void 0?e:"";if(r===""){return[t.appearance]}var a=/\b(\w+)\b/g;var i=r.match(a);if(i){return i}return[t.appearance]};this.handleAppearance=function(){var e,r;if(window.scrollY>=t.appearanceThreshold){t.appearance=(e=t.sanitizedAppearance[1])!==null&&e!==void 0?e:t.appearance;return}t.appearance=(r=t.sanitizedAppearance[0])!==null&&r!==void 0?r:t.appearance};this.handleScroll=function(){if(typeof window==="undefined")return;if(t.getAutoHide()!==0){t.handleVisibility()}if(t.sanitizedAppearance.length>1){t.handleAppearance()}};this.setAppearanceSetData=function(){t.sanitizedAppearance=t.sanitizeAppearance();if(t.sanitizedAppearance[2]!==undefined&&t.sanitizedAppearance[2]!==0&&!Number.isNaN(t.sanitizedAppearance[2])){t.appearanceThreshold=t.sanitizedAppearance[2]}t.relativeTresholdDown=t.threshold};this.initScrollListener=function(){if(typeof window==="undefined"){return}t.setAppearanceSetData();window.addEventListener("scroll",t.handleScroll)};this.defineHeaderBar=function(){t.headerBar=t.host.querySelector("mds-header-bar")}}
27
29
  /**
28
30
  * Opens or closes the header.
29
31
  * @param isOpened whether the header should be opened
30
- */e.prototype.setOpened=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e=true}return __generator(this,(function(t){this.isOpened=e;return[2/*return*/]}))}))};e.prototype.disconnectedCallback=function(){if(typeof window==="undefined"){return}window.removeEventListener("scroll",this.handleScroll)};e.prototype.componentWillLoad=function(){this.hasMenu=this.mobileMenu()!==null;if(this.hasMenu){this.onMenuChangedHandler(this.menu);return}this.onMenuChangedHandler("none")};e.prototype.componentDidLoad=function(){this.defineHeaderBar();this.onMenuChangedHandler(this.menu);this.onNavChangedHandler(this.nav);this.initScrollListener()};e.prototype.onMenuChangedHandler=function(e,t){if(e===t){return}if(this.headerBar!=null){this.headerBar.menu=e}};e.prototype.onNavChangedHandler=function(e,t){if(e===t){return}if(this.headerBar!=null){this.headerBar.nav=e}};e.prototype.onAppearanceSetChangedHandler=function(){this.setAppearanceSetData()};e.prototype.handleVisibilityChange=function(e,t){if(e!==t){this.visibleEvent.emit({visibility:e})}};e.prototype.render=function(){return h(Host,{key:"c6555033c0158d17685d8b7162c45866f8037285","pref-consumption":preferenceStore.state.consumption,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},!this.hideBackdrop&&h("div",{key:"fe183e0caf03b46b982bc18efb99ec0919c33f7a",class:"backdrop"},h("div",{key:"466c441e5e99830a95c2a4042e7f35dcc9e939de",class:"backdrop-blur-item"}),h("div",{key:"f4908f6ad7b260300bb8e21941c3af23ab922fd1",class:"backdrop-blur-item"}),h("div",{key:"f303889b90a8e6ea16689c90795890c365f949be",class:"backdrop-blur-item"}),h("div",{key:"8f48b4a5aaeaf05e8631188e2153fbd9da9a5b1b",class:"backdrop-blur-item"}),h("div",{key:"8355bc57ae5af9b902bd58e0ad4a67a492871333",class:"backdrop-blur-item"}),h("div",{key:"ff5c243df68a4dd26baa862abe2a50050e9ed386",class:"backdrop-blur-item"}),h("div",{key:"0f7c9da08faf5ddc14bd34a098003ebe73911b99",class:"backdrop-blur-item"}),h("div",{key:"b36c0beab493efd6736294a5a934556107a6fc13",class:"backdrop-blur-item"}),h("div",{key:"9e39753de2c9f661b3d91cca248e4f222a7e09f3",class:"backdrop-blur-item"}),h("div",{key:"2dbec569325d216a9ef2d414f49b44e6da95db37",class:"backdrop-blur-item"})),h("slot",{key:"d57ef1616405d7f4fb41b4ab7e948b22fb85f409"}),this.hasMenu&&h("div",{key:"3c252d5e09ae4c93e9909533f2d990d18b31e647",class:"menu",part:"menu"},h("mds-modal",{key:"2016f4000527a86b15ca0959347dc229db59f2ad",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},h("slot",{key:"bb7115881458039e1483caf152901c2d35adc44f",name:"menu"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}},enumerable:false,configurable:true});return e}();MdsHeader.style=mdsHeaderCss();export{MdsHeader as mds_header};
32
+ */e.prototype.setOpened=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e=true}return __generator(this,(function(t){this.isOpened=e;return[2/*return*/]}))}))};e.prototype.disconnectedCallback=function(){if(typeof window==="undefined"){return}window.removeEventListener("scroll",this.handleScroll)};e.prototype.componentWillLoad=function(){this.hasMenu=this.mobileMenu()!==null;if(this.hasMenu){this.onMenuChangedHandler(this.menu);return}this.onMenuChangedHandler("none")};e.prototype.componentDidLoad=function(){this.defineHeaderBar();this.onMenuChangedHandler(this.menu);this.onNavChangedHandler(this.nav);this.initScrollListener()};e.prototype.onMenuChangedHandler=function(e,t){if(e===t){return}if(this.headerBar!=null){this.headerBar.menu=e}};e.prototype.onNavChangedHandler=function(e,t){if(e===t){return}if(this.headerBar!=null){this.headerBar.nav=e}};e.prototype.onAppearanceSetChangedHandler=function(){this.setAppearanceSetData()};e.prototype.handleVisibilityChange=function(e,t){if(e!==t){this.visibleEvent.emit({visibility:e})}};e.prototype.render=function(){return h(Host,{key:"f672f81878e181d21c234188d2ad02ded1bdb039","pref-consumption":preferenceStore.state.consumption,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},!this.hideBackdrop&&h("div",{key:"6bf87ed021bcdb62c728fbee3818a8ad11895b06",class:"backdrop"},h("div",{key:"6a3ad84c2e41313c14531b514b2752f972986ec4",class:"backdrop-blur-item"}),h("div",{key:"b8031f912733bcc01f47ae28e756ae9f9f184bf1",class:"backdrop-blur-item"}),h("div",{key:"b9fddc9c2c459bc1b16ef7cc4fe0dd62c6ae0357",class:"backdrop-blur-item"}),h("div",{key:"fb97781789e0773d35b31744a3f28bd23816e9eb",class:"backdrop-blur-item"}),h("div",{key:"1d464ccd4d846ac79d1b0ea303ab66f41af84116",class:"backdrop-blur-item"}),h("div",{key:"7ab61f7f2f21da6ad94408442237b8e2a16d32c1",class:"backdrop-blur-item"}),h("div",{key:"90fb7f3244c8047c6a576288dad756451de07cdf",class:"backdrop-blur-item"}),h("div",{key:"955ff4ac62f6a5e50726fcf5d097202622e760d2",class:"backdrop-blur-item"}),h("div",{key:"49e995993b74ce17e06c3a05004e7411442dd694",class:"backdrop-blur-item"}),h("div",{key:"d0c693752ed5b8eee3f0c6925e158168b4e06822",class:"backdrop-blur-item"})),h("slot",{key:"564de9025f4cdc11edb1dadf27c0c3e03be5d06d"}),this.hasMenu&&h("div",{key:"c6cd25b6e417675a67662bbe4e2a8f0c89e1fd74",class:"menu",part:"menu"},h("mds-modal",{key:"cb330659a98adcf88e8af18097450edb71cb1423",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},h("slot",{key:"d4f1dbcaee3303ad4c2130d7f7d64be3486bdc19",name:"menu"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}},enumerable:false,configurable:true});return e}();MdsHeader.style=mdsHeaderCss();export{MdsHeader as mds_header};
@@ -12,4 +12,4 @@ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from".
12
12
  */this.loading="lazy";
13
13
  /**
14
14
  * Specifies which referrer information to use when fetching an image.
15
- */this.referrerpolicy="no-referrer-when-downgrade";this.onSuccess=function(t){a.image=t.target;a.loadSuccessEvent.emit({image:a.image})};this.onError=function(t){a.image=t.target;a.loadErrorEvent.emit({image:a.image});a.imageError=true};this.formatConsumptionData=function(t){var a={};t.split(",").forEach((function(t){var r=t.trim().replace(/[ ]{2,}/g," ").split(" ");if(r[1].toLocaleLowerCase()==="low"){a.low=r[0]}if(r[1].toLocaleLowerCase()==="medium"){a.medium=r[0]}if(r[1].toLocaleLowerCase()==="high"){a.high=r[0]}}));return a};this.autoAltName=function(){if(a.src!==undefined&&a.src!==""){var t=a.src.lastIndexOf("/")+1;return a.src.substring(t)}return""};this.setAriaAttributes=function(){setAttributeIfEmpty(a.host,"aria-label",a.alt)};this.handleConsumptionLoadClick=function(){a.imageConsumptionLoaded=true}}t.prototype.srcsetConsumptionHandler=function(t){this.srcsetConsumptionData=this.formatConsumptionData(t)};t.prototype.srcHandler=function(){this.imageError=false};t.prototype.componentWillLoad=function(){var t;this.consumptionMode=(t=localStorage.getItem("mdsPrefConsumption"))!==null&&t!==void 0?t:"high";if(this.srcsetConsumption!==undefined&&this.srcsetConsumption!==""){this.srcsetConsumptionData=this.formatConsumptionData(this.srcsetConsumption)}this.image=this.host.querySelector("img");if(this.alt===""){this.alt=this.autoAltName()}};t.prototype.componentDidLoad=function(){this.setAriaAttributes()};t.prototype.render=function(){var t,a;if(this.imageError){return h(Host,{"aria-label":this.alt,role:"img"},h("div",{class:"contrast-area-50"}),h("div",{class:"alt-text-container alt-text-container--error alt-text-container--default-aspect-ratio"},h("mds-icon",{class:"icon",name:miBaselineBrokenImage}),h("mds-text",{class:"alt-text","aria-hidden":"true",typography:"h6"},h("i",null,this.alt))))}if(this.srcsetConsumptionData){if(this.consumptionMode==="low"){return h(Host,{"aria-label":this.alt,role:"img",onClick:this.handleConsumptionLoadClick},h("div",{class:"contrast-area-50"}),!this.imageConsumptionLoaded?h("div",{"aria-hidden":"true",class:"alt-text-container alt-text-container--default-aspect-ratio"},h("mds-icon",{class:"icon",name:miBaselinePanorama}),h("mds-text",{class:"alt-text",typography:"h6"},h("i",null,this.alt)),h("mds-button",{"aria-hidden":"true",role:"none",class:"click-to-load",tabIndex:-1,variant:"light",tone:"outline",label:this.t.get("clickToLoad")})):h("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:(t=this.srcsetConsumptionData[this.consumptionMode])!==null&&t!==void 0?t:this.src,srcset:this.srcset,width:this.width}))}return h(Host,{"aria-label":this.alt,role:"img"},h("div",{class:"contrast-area-50"}),h("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:(a=this.srcsetConsumptionData[this.consumptionMode])!==null&&a!==void 0?a:this.src,srcset:this.srcset,width:this.width}))}return h(Host,{"aria-label":this.alt,role:"img"},h("div",{class:"contrast-area-50"}),h("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}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}},enumerable:false,configurable:true});return t}();MdsImg.style=mdsImgCss();export{MdsImg as mds_img};
15
+ */this.referrerpolicy="no-referrer-when-downgrade";this.onSuccess=function(t){a.image=t.target;a.loadSuccessEvent.emit({image:a.image})};this.onError=function(t){a.image=t.target;a.loadErrorEvent.emit({image:a.image});a.imageError=true};this.formatConsumptionData=function(t){var a={};t.split(",").forEach((function(t){var r=t.trim().replace(/[ ]{2,}/g," ").split(" ");if(r[1].toLocaleLowerCase()==="low"){a.low=r[0]}if(r[1].toLocaleLowerCase()==="medium"){a.medium=r[0]}if(r[1].toLocaleLowerCase()==="high"){a.high=r[0]}}));return a};this.autoAltName=function(){if(a.src!==undefined&&a.src!==""){var t=a.src.lastIndexOf("/")+1;return a.src.substring(t)}return""};this.setAriaAttributes=function(){setAttributeIfEmpty(a.host,"aria-label",a.alt)};this.handleConsumptionLoadClick=function(){a.imageConsumptionLoaded=true}}t.prototype.srcsetConsumptionHandler=function(t){this.srcsetConsumptionData=this.formatConsumptionData(t)};t.prototype.srcHandler=function(){this.imageError=false};t.prototype.componentWillLoad=function(){var t,a;this.consumptionMode=(t=localStorage.getItem("mdsPrefConsumption"))!==null&&t!==void 0?t:"high";if(this.srcsetConsumption!=null&&this.srcsetConsumption!==""){this.srcsetConsumptionData=this.formatConsumptionData(this.srcsetConsumption)}this.image=this.host.querySelector("img");if(((a=this.alt)!==null&&a!==void 0?a:"")===""){this.alt=this.autoAltName()}};t.prototype.componentDidLoad=function(){this.setAriaAttributes()};t.prototype.render=function(){var t,a;if(this.imageError){return h(Host,{"aria-label":this.alt,role:"img"},h("div",{class:"contrast-area-50"}),h("div",{class:"alt-text-container alt-text-container--error alt-text-container--default-aspect-ratio"},h("mds-icon",{class:"icon",name:miBaselineBrokenImage}),h("mds-text",{class:"alt-text","aria-hidden":"true",typography:"h6"},h("i",null,this.alt))))}if(this.srcsetConsumptionData){if(this.consumptionMode==="low"){return h(Host,{"aria-label":this.alt,role:"img",onClick:this.handleConsumptionLoadClick},h("div",{class:"contrast-area-50"}),!this.imageConsumptionLoaded?h("div",{"aria-hidden":"true",class:"alt-text-container alt-text-container--default-aspect-ratio"},h("mds-icon",{class:"icon",name:miBaselinePanorama}),h("mds-text",{class:"alt-text",typography:"h6"},h("i",null,this.alt)),h("mds-button",{"aria-hidden":"true",role:"none",class:"click-to-load",tabIndex:-1,variant:"light",tone:"outline",label:this.t.get("clickToLoad")})):h("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:(t=this.srcsetConsumptionData[this.consumptionMode])!==null&&t!==void 0?t:this.src,srcset:this.srcset,width:this.width}))}return h(Host,{"aria-label":this.alt,role:"img"},h("div",{class:"contrast-area-50"}),h("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:(a=this.srcsetConsumptionData[this.consumptionMode])!==null&&a!==void 0?a:this.src,srcset:this.srcset,width:this.width}))}return h(Host,{"aria-label":this.alt,role:"img"},h("div",{class:"contrast-area-50"}),h("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}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}},enumerable:false,configurable:true});return t}();MdsImg.style=mdsImgCss();export{MdsImg as mds_img};