@maggioli-design-system/magma 2.4.0 → 2.4.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 (362) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +13 -0
  3. package/dist/cjs/{floating-controller-BxER7sig.js → floating-controller-BiwDIKXd.js} +1 -1
  4. package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
  5. package/dist/cjs/mds-emoji.cjs.entry.js +35 -5
  6. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
  7. package/dist/cjs/mds-input-switch_2.cjs.entry.js +1 -1
  8. package/dist/cjs/mds-modal.cjs.entry.js +1 -1
  9. package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
  10. package/dist/cjs/mds-push-notification.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-radial-menu.cjs.entry.js +2 -2
  12. package/dist/cjs/mds-tab_2.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-toast.cjs.entry.js +1 -1
  14. package/dist/cjs/mds-tooltip.cjs.entry.js +2 -2
  15. package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
  16. package/dist/cjs/{unit-Cm341q1R.js → unit-JdmHaLT3.js} +1 -1
  17. package/dist/collection/common/unit.js +1 -1
  18. package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
  19. package/dist/collection/components/mds-accordion/documentation.json +1 -1
  20. package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
  21. package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
  22. package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
  23. package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
  24. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
  25. package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
  26. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  27. package/dist/collection/components/mds-author/documentation.json +1 -1
  28. package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
  29. package/dist/collection/components/mds-avatar/documentation.json +1 -1
  30. package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
  31. package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
  32. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
  33. package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
  34. package/dist/collection/components/mds-badge/AGENTS.md +1 -1
  35. package/dist/collection/components/mds-badge/documentation.json +1 -1
  36. package/dist/collection/components/mds-banner/AGENTS.md +1 -1
  37. package/dist/collection/components/mds-banner/documentation.json +1 -1
  38. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  39. package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
  40. package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
  41. package/dist/collection/components/mds-bibliography/documentation.json +1 -1
  42. package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
  43. package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
  44. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
  45. package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
  46. package/dist/collection/components/mds-button/AGENTS.md +1 -1
  47. package/dist/collection/components/mds-button/documentation.json +1 -1
  48. package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
  49. package/dist/collection/components/mds-button-dropdown/documentation.json +1 -1
  50. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  51. package/dist/collection/components/mds-button-group/documentation.json +1 -1
  52. package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
  53. package/dist/collection/components/mds-calendar/documentation.json +1 -1
  54. package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
  55. package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
  56. package/dist/collection/components/mds-card/AGENTS.md +1 -1
  57. package/dist/collection/components/mds-card/documentation.json +1 -1
  58. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  59. package/dist/collection/components/mds-card-content/documentation.json +1 -1
  60. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  61. package/dist/collection/components/mds-card-footer/documentation.json +1 -1
  62. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  63. package/dist/collection/components/mds-card-header/documentation.json +1 -1
  64. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  65. package/dist/collection/components/mds-card-media/documentation.json +1 -1
  66. package/dist/collection/components/mds-chip/AGENTS.md +1 -1
  67. package/dist/collection/components/mds-chip/documentation.json +1 -1
  68. package/dist/collection/components/mds-details/AGENTS.md +1 -1
  69. package/dist/collection/components/mds-details/documentation.json +1 -1
  70. package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
  71. package/dist/collection/components/mds-dropdown/documentation.json +1 -1
  72. package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
  73. package/dist/collection/components/mds-emoji/documentation.json +2 -2
  74. package/dist/collection/components/mds-emoji/mds-emoji.js +34 -4
  75. package/dist/collection/components/mds-entity/AGENTS.md +1 -1
  76. package/dist/collection/components/mds-entity/documentation.json +1 -1
  77. package/dist/collection/components/mds-file/AGENTS.md +1 -1
  78. package/dist/collection/components/mds-file/documentation.json +1 -1
  79. package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
  80. package/dist/collection/components/mds-file-preview/documentation.json +1 -1
  81. package/dist/collection/components/mds-filter/AGENTS.md +1 -1
  82. package/dist/collection/components/mds-filter/documentation.json +1 -1
  83. package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
  84. package/dist/collection/components/mds-filter-item/documentation.json +1 -1
  85. package/dist/collection/components/mds-header/AGENTS.md +1 -1
  86. package/dist/collection/components/mds-header/documentation.json +1 -1
  87. package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
  88. package/dist/collection/components/mds-header-bar/documentation.json +1 -1
  89. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  90. package/dist/collection/components/mds-help/documentation.json +1 -1
  91. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
  92. package/dist/collection/components/mds-horizontal-scroll/documentation.json +1 -1
  93. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  94. package/dist/collection/components/mds-hr/documentation.json +1 -1
  95. package/dist/collection/components/mds-icon/AGENTS.md +1 -1
  96. package/dist/collection/components/mds-icon/documentation.json +1 -1
  97. package/dist/collection/components/mds-img/AGENTS.md +1 -1
  98. package/dist/collection/components/mds-img/documentation.json +1 -1
  99. package/dist/collection/components/mds-input/AGENTS.md +1 -1
  100. package/dist/collection/components/mds-input/documentation.json +1 -1
  101. package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
  102. package/dist/collection/components/mds-input-date/documentation.json +1 -1
  103. package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
  104. package/dist/collection/components/mds-input-date-range/documentation.json +1 -1
  105. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
  106. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
  107. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  108. package/dist/collection/components/mds-input-field/documentation.json +1 -1
  109. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  110. package/dist/collection/components/mds-input-otp/documentation.json +1 -1
  111. package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
  112. package/dist/collection/components/mds-input-range/documentation.json +1 -1
  113. package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
  114. package/dist/collection/components/mds-input-select/documentation.json +1 -1
  115. package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
  116. package/dist/collection/components/mds-input-switch/documentation.json +1 -1
  117. package/dist/collection/components/mds-input-switch/mds-input-switch.css +5 -3
  118. package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
  119. package/dist/collection/components/mds-input-tip/documentation.json +1 -1
  120. package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
  121. package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
  122. package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
  123. package/dist/collection/components/mds-input-upload/documentation.json +1 -1
  124. package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
  125. package/dist/collection/components/mds-keyboard/documentation.json +1 -1
  126. package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
  127. package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
  128. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  129. package/dist/collection/components/mds-kpi/documentation.json +1 -1
  130. package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
  131. package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
  132. package/dist/collection/components/mds-label/AGENTS.md +1 -1
  133. package/dist/collection/components/mds-label/documentation.json +1 -1
  134. package/dist/collection/components/mds-list/AGENTS.md +1 -1
  135. package/dist/collection/components/mds-list/documentation.json +1 -1
  136. package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
  137. package/dist/collection/components/mds-list-item/documentation.json +1 -1
  138. package/dist/collection/components/mds-mention/AGENTS.md +1 -1
  139. package/dist/collection/components/mds-mention/documentation.json +1 -1
  140. package/dist/collection/components/mds-modal/AGENTS.md +1 -1
  141. package/dist/collection/components/mds-modal/documentation.json +1 -1
  142. package/dist/collection/components/mds-note/AGENTS.md +1 -1
  143. package/dist/collection/components/mds-note/documentation.json +1 -1
  144. package/dist/collection/components/mds-notification/AGENTS.md +1 -1
  145. package/dist/collection/components/mds-notification/documentation.json +1 -1
  146. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  147. package/dist/collection/components/mds-paginator/documentation.json +1 -1
  148. package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
  149. package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
  150. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  151. package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
  152. package/dist/collection/components/mds-pref/AGENTS.md +1 -1
  153. package/dist/collection/components/mds-pref/documentation.json +1 -1
  154. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  155. package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
  156. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  157. package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
  158. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  159. package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
  160. package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
  161. package/dist/collection/components/mds-pref-language/documentation.json +1 -1
  162. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  163. package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
  164. package/dist/collection/components/mds-pref-mode/AGENTS.md +1 -1
  165. package/dist/collection/components/mds-pref-mode/documentation.json +1 -1
  166. package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
  167. package/dist/collection/components/mds-pref-theme/documentation.json +1 -1
  168. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
  169. package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
  170. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  171. package/dist/collection/components/mds-price-table/documentation.json +1 -1
  172. package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
  173. package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
  174. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
  175. package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
  176. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
  177. package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
  178. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  179. package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
  180. package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
  181. package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
  182. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
  183. package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
  184. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  185. package/dist/collection/components/mds-progress/documentation.json +1 -1
  186. package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
  187. package/dist/collection/components/mds-push-notification/documentation.json +1 -1
  188. package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
  189. package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
  190. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  191. package/dist/collection/components/mds-quote/documentation.json +1 -1
  192. package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
  193. package/dist/collection/components/mds-radial-menu/documentation.json +1 -1
  194. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
  195. package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
  196. package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
  197. package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
  198. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  199. package/dist/collection/components/mds-separator/documentation.json +1 -1
  200. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  201. package/dist/collection/components/mds-spinner/documentation.json +1 -1
  202. package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
  203. package/dist/collection/components/mds-status-bar/documentation.json +1 -1
  204. package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
  205. package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
  206. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
  207. package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
  208. package/dist/collection/components/mds-tab/AGENTS.md +1 -1
  209. package/dist/collection/components/mds-tab/documentation.json +1 -1
  210. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  211. package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
  212. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
  213. package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
  214. package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
  215. package/dist/collection/components/mds-tab-item/documentation.json +1 -1
  216. package/dist/collection/components/mds-table/AGENTS.md +1 -1
  217. package/dist/collection/components/mds-table/documentation.json +1 -1
  218. package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
  219. package/dist/collection/components/mds-table-body/documentation.json +1 -1
  220. package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
  221. package/dist/collection/components/mds-table-cell/documentation.json +1 -1
  222. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  223. package/dist/collection/components/mds-table-footer/documentation.json +1 -1
  224. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  225. package/dist/collection/components/mds-table-header/documentation.json +1 -1
  226. package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
  227. package/dist/collection/components/mds-table-header-cell/documentation.json +1 -1
  228. package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
  229. package/dist/collection/components/mds-table-row/documentation.json +1 -1
  230. package/dist/collection/components/mds-text/AGENTS.md +1 -1
  231. package/dist/collection/components/mds-text/documentation.json +1 -1
  232. package/dist/collection/components/mds-toast/AGENTS.md +1 -1
  233. package/dist/collection/components/mds-toast/documentation.json +1 -1
  234. package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
  235. package/dist/collection/components/mds-toast-region/documentation.json +1 -1
  236. package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
  237. package/dist/collection/components/mds-tooltip/documentation.json +1 -1
  238. package/dist/collection/components/mds-tree/AGENTS.md +1 -1
  239. package/dist/collection/components/mds-tree/documentation.json +1 -1
  240. package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
  241. package/dist/collection/components/mds-tree-item/documentation.json +1 -1
  242. package/dist/collection/components/mds-tree-item/mds-tree-item.css +8 -5
  243. package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
  244. package/dist/collection/components/mds-url-view/documentation.json +1 -1
  245. package/dist/collection/components/mds-usage/AGENTS.md +1 -1
  246. package/dist/collection/components/mds-usage/documentation.json +1 -1
  247. package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
  248. package/dist/collection/components/mds-video-wall/documentation.json +1 -1
  249. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  250. package/dist/collection/components/mds-zero/documentation.json +1 -1
  251. package/dist/components/mds-button-dropdown.js +1 -1
  252. package/dist/components/mds-dropdown.js +1 -1
  253. package/dist/components/mds-emoji.js +3 -3
  254. package/dist/components/mds-header.js +1 -1
  255. package/dist/components/mds-help.js +1 -1
  256. package/dist/components/mds-horizontal-scroll.js +1 -1
  257. package/dist/components/mds-input-date-range.js +1 -1
  258. package/dist/components/mds-input-date.js +1 -1
  259. package/dist/components/mds-input-switch.js +1 -1
  260. package/dist/components/mds-input-upload.js +1 -1
  261. package/dist/components/mds-keyboard.js +1 -1
  262. package/dist/components/mds-modal.js +1 -1
  263. package/dist/components/mds-policy-ai.js +1 -1
  264. package/dist/components/mds-pref-animation.js +1 -1
  265. package/dist/components/mds-pref-consumption.js +1 -1
  266. package/dist/components/mds-pref-contrast.js +1 -1
  267. package/dist/components/mds-pref-language.js +1 -1
  268. package/dist/components/mds-pref-mode.js +1 -1
  269. package/dist/components/mds-pref-theme.js +1 -1
  270. package/dist/components/mds-push-notification.js +1 -1
  271. package/dist/components/mds-radial-menu-item.js +1 -1
  272. package/dist/components/mds-radial-menu.js +1 -1
  273. package/dist/components/mds-status-bar.js +1 -1
  274. package/dist/components/mds-tab.js +1 -1
  275. package/dist/components/mds-table-header.js +1 -1
  276. package/dist/components/mds-table-row.js +1 -1
  277. package/dist/components/mds-toast.js +1 -1
  278. package/dist/components/mds-tooltip.js +1 -1
  279. package/dist/components/mds-tree-item.js +1 -1
  280. package/dist/components/{p-CylHulxe.js → p-BHy4k3pJ.js} +1 -1
  281. package/dist/components/{p-2gaGDQwL.js → p-BLXRGNya.js} +1 -1
  282. package/dist/components/p-C2fyy4Mv.js +1 -0
  283. package/dist/components/p-CWk1SCJg.js +1 -0
  284. package/dist/components/{p-BjFCjSw6.js → p-CWwWCzma.js} +1 -1
  285. package/dist/components/{p-DGGk8PS_.js → p-ChrRK8N9.js} +1 -1
  286. package/dist/components/{p-wHQGpA62.js → p-Ea5ilDf6.js} +1 -1
  287. package/dist/components/{p-Dleapw-k.js → p-Ebefwvkw.js} +1 -1
  288. package/dist/documentation.json +2 -2
  289. package/dist/esm/{floating-controller-BV0E_Juq.js → floating-controller-CVVcyKew.js} +1 -1
  290. package/dist/esm/mds-dropdown.entry.js +2 -2
  291. package/dist/esm/mds-emoji.entry.js +35 -5
  292. package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
  293. package/dist/esm/mds-input-switch_2.entry.js +1 -1
  294. package/dist/esm/mds-modal.entry.js +1 -1
  295. package/dist/esm/mds-pref-mode.entry.js +1 -1
  296. package/dist/esm/mds-push-notification.entry.js +1 -1
  297. package/dist/esm/mds-radial-menu.entry.js +2 -2
  298. package/dist/esm/mds-tab_2.entry.js +1 -1
  299. package/dist/esm/mds-toast.entry.js +1 -1
  300. package/dist/esm/mds-tooltip.entry.js +2 -2
  301. package/dist/esm/mds-tree-item.entry.js +2 -2
  302. package/dist/esm/polyfills/core-js.js +0 -0
  303. package/dist/esm/polyfills/dom.js +0 -0
  304. package/dist/esm/polyfills/es5-html-element.js +0 -0
  305. package/dist/esm/polyfills/index.js +0 -0
  306. package/dist/esm/polyfills/system.js +0 -0
  307. package/dist/esm/{unit-D8eZRaSQ.js → unit-CWk1SCJg.js} +1 -1
  308. package/dist/esm-es5/{floating-controller-BV0E_Juq.js → floating-controller-CVVcyKew.js} +1 -1
  309. package/dist/esm-es5/mds-dropdown.entry.js +1 -1
  310. package/dist/esm-es5/mds-emoji.entry.js +271 -251
  311. package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
  312. package/dist/esm-es5/mds-input-switch_2.entry.js +1 -1
  313. package/dist/esm-es5/mds-modal.entry.js +1 -1
  314. package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
  315. package/dist/esm-es5/mds-push-notification.entry.js +1 -1
  316. package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
  317. package/dist/esm-es5/mds-tab_2.entry.js +1 -1
  318. package/dist/esm-es5/mds-toast.entry.js +1 -1
  319. package/dist/esm-es5/mds-tooltip.entry.js +1 -1
  320. package/dist/esm-es5/mds-tree-item.entry.js +1 -1
  321. package/dist/esm-es5/unit-CWk1SCJg.js +1 -0
  322. package/dist/hydrate/index.js +37 -7
  323. package/dist/hydrate/index.mjs +37 -7
  324. package/dist/magma-components/magma-components.esm.js +1 -1
  325. package/dist/magma-components/{p-b9e0b31d.entry.js → p-14ef1aec.entry.js} +1 -1
  326. package/dist/magma-components/{p-d0f257d9.system.entry.js → p-1d68fc4a.system.entry.js} +1 -1
  327. package/dist/magma-components/{p-1809e47d.system.entry.js → p-287d1253.system.entry.js} +51 -31
  328. package/dist/magma-components/{p-53bcfdbb.entry.js → p-2e8f703e.entry.js} +1 -1
  329. package/dist/magma-components/{p-dba5a6da.entry.js → p-357ec8c0.entry.js} +1 -1
  330. package/dist/magma-components/{p-3725c2c1.entry.js → p-4800a310.entry.js} +1 -1
  331. package/dist/magma-components/{p-b6b7dc40.entry.js → p-5cef4711.entry.js} +1 -1
  332. package/dist/magma-components/p-61f0ebf3.entry.js +1 -0
  333. package/dist/magma-components/{p-f28e048b.system.entry.js → p-677ef2a3.system.entry.js} +1 -1
  334. package/dist/magma-components/{p-b728638c.system.entry.js → p-7448435b.system.entry.js} +1 -1
  335. package/dist/magma-components/{p-2aab3752.entry.js → p-7502528c.entry.js} +1 -1
  336. package/dist/magma-components/{p-8f5f2dfe.system.entry.js → p-815801dd.system.entry.js} +2 -2
  337. package/dist/magma-components/{p-be741e35.entry.js → p-8c66c761.entry.js} +1 -1
  338. package/dist/magma-components/{p-9e4e1a86.system.entry.js → p-914d1b2a.system.entry.js} +1 -1
  339. package/dist/magma-components/{p-505fb7d4.entry.js → p-91ed604f.entry.js} +1 -1
  340. package/dist/magma-components/{p-dc3ef031.system.entry.js → p-938dbe67.system.entry.js} +3 -3
  341. package/dist/magma-components/p-B-nayZ3E.system.js +1 -0
  342. package/dist/magma-components/p-CWk1SCJg.js +1 -0
  343. package/dist/magma-components/{p-5vJawLPw.system.js → p-DVjUXVFl.system.js} +1 -1
  344. package/dist/magma-components/{p-ZaZnuNvg.js → p-DmFo8_MF.js} +1 -1
  345. package/dist/magma-components/p-QYez4sql.system.js +1 -1
  346. package/dist/magma-components/{p-2f3c6105.entry.js → p-b169ee9b.entry.js} +1 -1
  347. package/dist/magma-components/{p-3eaeb263.system.entry.js → p-bdd18c90.system.entry.js} +1 -1
  348. package/dist/magma-components/{p-db75bf05.system.entry.js → p-c6b16493.system.entry.js} +1 -1
  349. package/dist/magma-components/{p-ce2ef293.system.entry.js → p-c6b9a14e.system.entry.js} +1 -1
  350. package/dist/magma-components/{p-2a2b7c43.entry.js → p-c72651b2.entry.js} +1 -1
  351. package/dist/magma-components/{p-dbb82d72.system.entry.js → p-cfe080ab.system.entry.js} +1 -1
  352. package/dist/magma-components/{p-a61623f9.system.entry.js → p-e1ce306a.system.entry.js} +1 -1
  353. package/dist/magma-components/{p-972ff8a9.entry.js → p-e73cc6fc.entry.js} +3 -3
  354. package/dist/stats.json +220 -220
  355. package/dist/types/components/mds-emoji/mds-emoji.d.ts +2 -0
  356. package/package.json +8 -8
  357. package/dist/components/p-AFBkzOrP.js +0 -1
  358. package/dist/components/p-D8eZRaSQ.js +0 -1
  359. package/dist/esm-es5/unit-D8eZRaSQ.js +0 -1
  360. package/dist/magma-components/p-6b01ef3b.entry.js +0 -1
  361. package/dist/magma-components/p-D8eZRaSQ.js +0 -1
  362. package/dist/magma-components/p-_X0N_X__.system.js +0 -1
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(t,o,i,n){function a(t){return t instanceof i?t:new i((function(o){o(t)}))}return new(i||(i=Promise))((function(i,e){function r(t){try{d(n.next(t))}catch(t){e(t)}}function s(t){try{d(n["throw"](t))}catch(t){e(t)}}function d(t){t.done?i(t.value):a(t.value).then(r,s)}d((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var i={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},n,a,e,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(o){return d([t,o])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(i=0)),i)try{if(n=1,a&&(e=s[0]&2?a["return"]:s[0]?a["throw"]||((e=a["return"])&&e.call(a),0):a.next)&&!(e=e.call(a,s[1])).done)return e;if(a=0,e)s=[s[0]&2,e.value];switch(s[0]){case 0:case 1:e=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(e=i.trys,e=e.length>0&&e[e.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!e||s[1]>e[0]&&s[1]<e[3])){i.label=s[1];break}if(s[0]===6&&i.label<e[1]){i.label=e[1];e=s;break}if(e&&i.label<e[2]){i.label=e[2];i.ops.push(s);break}if(e[2])i.ops.pop();i.trys.pop();continue}s=o.call(t,i)}catch(t){s=[6,t];a=0}finally{n=e=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CmzGV0XD.system.js","./p-Qrub-hmK.system.js","./p-BeNKMPXR.system.js","./p-_X0N_X__.system.js","./p-D8596ytD.system.js","./p-C61qxZLH.system.js","./p-C1ailvfu.system.js"],(function(t){"use strict";var o,i,n,a,e,r,s,d,l,m,c;return{setters:[function(t){o=t.r;i=t.d;n=t.h;a=t.e;e=t.g},function(t){r=t.c},function(t){s=t.h},function(t){d=t.c},function(t){l=t.p},function(t){m=t.m},function(t){c=t.L}],execute:function(){var h="Κλείσιμο";var f={close:h};var p="Close";var u={close:p};var w="Cerrar";var v={close:w};var g="Chiudi";var b={close:g};var y=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button: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-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0));--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-function:var(--mds-modal-transition-timing-funciton,var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1)));--mds-modal-window-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index,3000);--private-modal-transition-duration:var(--mds-modal-transition-duration,.5s);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-opened-transform:none;--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);display:contents}.dialog{align-items:center;background-color:#0000;border:0;box-sizing:border-box;color:inherit;display:none;fill:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));height:auto;inset:0;justify-content:center;margin:0;max-height:none;max-width:none;overflow:clip;padding:0;perspective:600px;position:fixed;transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function);width:auto;z-index:var(--mds-modal-z-index,1000)}.dialog[open]{display:flex}.dialog::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0);transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function)}:host([hide-backdrop]) .dialog{pointer-events:none}.action-close{--mds-button-color:rgb(var(--magma-on-backdrop,252 252 252));opacity:0;pointer-events:none;position:absolute;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,bottom,color,fill,opacity,top,transform;transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]){--private-modal-opened-transform:var(--private-modal-custom-opened-transform);--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([position=top-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,100%)}.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)))}@starting-style{.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0)}}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-modal-window-radius,0);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:0;grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:hidden}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}.dialog .window,.dialog ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform);transition-duration:var(--private-modal-transition-duration);transition-property:transform,opacity;transition-timing-function:var(--mds-modal-transition-timing-function)}.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:1;pointer-events:auto;transform:var(--private-modal-opened-transform)}@starting-style{.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform)}.window-content-wrapper{overflow:hidden}}:host([position=top-left]) .dialog,:host([position=top-right]) .dialog,:host([position=top]) .dialog{align-items:flex-start}:host([position=center]) .dialog,:host([position=left]) .dialog,:host([position=right]) .dialog{align-items:center}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=bottom]) .dialog{align-items:flex-end}:host([position=bottom-left]) .dialog,:host([position=left]) .dialog,:host([position=top-left]) .dialog{justify-content:flex-start}:host([position=bottom]) .dialog,:host([position=center]) .dialog,:host([position=top]) .dialog{justify-content:center}:host([position=bottom-right]) .dialog,:host([position=right]) .dialog,:host([position=top-right]) .dialog{justify-content:flex-end}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}: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-modal-transition-duration:0s}:host([pref-contrast=more]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@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-modal-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'};var x=t("mds_modal",/** @class */function(){function t(t){var n=this;o(this,t);this.openEvent=i(this,"mdsModalOpen",7);this.showEvent=i(this,"mdsModalShow",7);this.closeEvent=i(this,"mdsModalClose",7);this.hideEvent=i(this,"mdsModalHide",7);this.t=new c({el:f,en:u,es:v,it:b});
1
+ var __awaiter=this&&this.__awaiter||function(t,o,i,n){function a(t){return t instanceof i?t:new i((function(o){o(t)}))}return new(i||(i=Promise))((function(i,e){function r(t){try{d(n.next(t))}catch(t){e(t)}}function s(t){try{d(n["throw"](t))}catch(t){e(t)}}function d(t){t.done?i(t.value):a(t.value).then(r,s)}d((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var i={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},n,a,e,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(o){return d([t,o])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(i=0)),i)try{if(n=1,a&&(e=s[0]&2?a["return"]:s[0]?a["throw"]||((e=a["return"])&&e.call(a),0):a.next)&&!(e=e.call(a,s[1])).done)return e;if(a=0,e)s=[s[0]&2,e.value];switch(s[0]){case 0:case 1:e=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(e=i.trys,e=e.length>0&&e[e.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!e||s[1]>e[0]&&s[1]<e[3])){i.label=s[1];break}if(s[0]===6&&i.label<e[1]){i.label=e[1];e=s;break}if(e&&i.label<e[2]){i.label=e[2];i.ops.push(s);break}if(e[2])i.ops.pop();i.trys.pop();continue}s=o.call(t,i)}catch(t){s=[6,t];a=0}finally{n=e=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CmzGV0XD.system.js","./p-Qrub-hmK.system.js","./p-BeNKMPXR.system.js","./p-B-nayZ3E.system.js","./p-D8596ytD.system.js","./p-C61qxZLH.system.js","./p-C1ailvfu.system.js"],(function(t){"use strict";var o,i,n,a,e,r,s,d,l,m,c;return{setters:[function(t){o=t.r;i=t.d;n=t.h;a=t.e;e=t.g},function(t){r=t.c},function(t){s=t.h},function(t){d=t.c},function(t){l=t.p},function(t){m=t.m},function(t){c=t.L}],execute:function(){var h="Κλείσιμο";var f={close:h};var p="Close";var u={close:p};var w="Cerrar";var v={close:w};var g="Chiudi";var b={close:g};var y=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button: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-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0));--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-function:var(--mds-modal-transition-timing-funciton,var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1)));--mds-modal-window-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index,3000);--private-modal-transition-duration:var(--mds-modal-transition-duration,.5s);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-opened-transform:none;--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);display:contents}.dialog{align-items:center;background-color:#0000;border:0;box-sizing:border-box;color:inherit;display:none;fill:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));height:auto;inset:0;justify-content:center;margin:0;max-height:none;max-width:none;overflow:clip;padding:0;perspective:600px;position:fixed;transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function);width:auto;z-index:var(--mds-modal-z-index,1000)}.dialog[open]{display:flex}.dialog::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0);transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function)}:host([hide-backdrop]) .dialog{pointer-events:none}.action-close{--mds-button-color:rgb(var(--magma-on-backdrop,252 252 252));opacity:0;pointer-events:none;position:absolute;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,bottom,color,fill,opacity,top,transform;transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]){--private-modal-opened-transform:var(--private-modal-custom-opened-transform);--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([position=top-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,100%)}.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)))}@starting-style{.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0)}}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-modal-window-radius,0);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:0;grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:hidden}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}.dialog .window,.dialog ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform);transition-duration:var(--private-modal-transition-duration);transition-property:transform,opacity;transition-timing-function:var(--mds-modal-transition-timing-function)}.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:1;pointer-events:auto;transform:var(--private-modal-opened-transform)}@starting-style{.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform)}.window-content-wrapper{overflow:hidden}}:host([position=top-left]) .dialog,:host([position=top-right]) .dialog,:host([position=top]) .dialog{align-items:flex-start}:host([position=center]) .dialog,:host([position=left]) .dialog,:host([position=right]) .dialog{align-items:center}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=bottom]) .dialog{align-items:flex-end}:host([position=bottom-left]) .dialog,:host([position=left]) .dialog,:host([position=top-left]) .dialog{justify-content:flex-start}:host([position=bottom]) .dialog,:host([position=center]) .dialog,:host([position=top]) .dialog{justify-content:center}:host([position=bottom-right]) .dialog,:host([position=right]) .dialog,:host([position=top-right]) .dialog{justify-content:flex-end}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}: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-modal-transition-duration:0s}:host([pref-contrast=more]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@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-modal-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'};var x=t("mds_modal",/** @class */function(){function t(t){var n=this;o(this,t);this.openEvent=i(this,"mdsModalOpen",7);this.showEvent=i(this,"mdsModalShow",7);this.closeEvent=i(this,"mdsModalClose",7);this.hideEvent=i(this,"mdsModalHide",7);this.t=new c({el:f,en:u,es:v,it:b});
2
2
  // Initialised on purpose: both readers compare it against '' (the strict boolean
3
3
  // rules forbid the truthiness check this used to be), and an undeclared field is
4
4
  // `undefined`, not ''. See enableOverflow.
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{a(n.next(t))}catch(t){s(t)}}function u(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(o,u)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return a([t,i])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(e=0)),e)try{if(n=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1];s=u;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(u);break}if(s[2])e.ops.pop();e.trys.pop();continue}u=i.call(t,e)}catch(t){u=[6,t];r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CmzGV0XD.system.js","./p-_X0N_X__.system.js","./p-D8596ytD.system.js"],(function(t){"use strict";var i,e,n,r,s,o,u,a,f;return{setters:[function(t){i=t.r;e=t.h;n=t.e;r=t.g;s=t.B},function(t){o=t.b;u=t.d;a=t.a},function(t){f=t.a}],execute:function(){
1
+ var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{a(n.next(t))}catch(t){s(t)}}function u(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(o,u)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return a([t,i])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(e=0)),e)try{if(n=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1];s=u;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(u);break}if(s[2])e.ops.pop();e.trys.pop();continue}u=i.call(t,e)}catch(t){u=[6,t];r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CmzGV0XD.system.js","./p-B-nayZ3E.system.js","./p-D8596ytD.system.js"],(function(t){"use strict";var i,e,n,r,s,o,u,a,f;return{setters:[function(t){i=t.r;e=t.h;n=t.e;r=t.g;s=t.B},function(t){o=t.b;u=t.d;a=t.a},function(t){f=t.a}],execute:function(){
2
2
  /**
3
3
  * Where the emoji looks, as the two signed fractions `rotate()` takes, in -1..1.
4
4
  *
@@ -28,9 +28,9 @@ S=Array.isArray,z=/random\([^)]+\)/g,H=/,\s*/g,I=/(?:-?\.?\d|\.)+/gi,
28
28
  //only numbers (including negatives and decimals) but NOT relative values.
29
29
  D=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,
30
30
  //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.
31
- L=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,X=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,
31
+ L=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,V=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,
32
32
  //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.
33
- V=/[+-]=-?[.\d]+/,A=/[^,'"\[\]\s]+/gi,
33
+ X=/[+-]=-?[.\d]+/,A=/[^,'"\[\]\s]+/gi,
34
34
  // previously /[#\-+.]*\b[a-z\d\-=+%.]+/gi but didn't catch special characters.
35
35
  U=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,N,q,W,$,G={},Q={},J,K=function t(i){return(Q=Et(i,G))&&Ge},tt=function t(i,e){return console.warn("Invalid property",i,"set to",e,"Missing plugin? gsap.registerPlugin()")},it=function t(i,e){return!e&&console.warn(i)},et=function t(i,e){return i&&(G[i]=e)&&Q&&(Q[i]=e)||G},nt=function t(){return 0},rt={suppressEvents:true,isStart:true,kill:false},st={suppressEvents:true,kill:false},ot={suppressEvents:true},ut={},at=[],ft={},ht,lt={},ct={},dt=30,mt=[],vt="",pt=function t(i){var e=i[0],n,r;E(e)||P(e)||(i=[i]);if(!(n=(e._gsap||{}).harness)){
36
36
  // find the first target with a harness. We assume targets passed into an animation will be of similar type, meaning the same kind of harness can be used for them all (performance optimization)
@@ -46,7 +46,7 @@ var n=e.length,r=0;for(;i.indexOf(e[r])<0&&++r<n;){}return r<n},xt=function t(){
46
46
  // performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)
47
47
  var n=i;while(n){n._dirty=1;n=n.parent}}return i},Dt=function t(i){var e=i.parent;while(e&&e.parent){
48
48
  //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.
49
- e._dirty=1;e.totalDuration();e=e.parent}return i},Lt=function t(i,e,n,r){return i._startAt&&(g?i._startAt.revert(st):i.vars.immediateRender&&!i.vars.autoRevert||i._startAt.render(e,true,r))},Xt=function t(i){return!i||i._ts&&t(i.parent)},Vt=function t(i){return i._repeat?At(i._tTime,i=i.duration()+i._rDelay)*i:0},
49
+ e._dirty=1;e.totalDuration();e=e.parent}return i},Lt=function t(i,e,n,r){return i._startAt&&(g?i._startAt.revert(st):i.vars.immediateRender&&!i.vars.autoRevert||i._startAt.render(e,true,r))},Vt=function t(i){return!i||i._ts&&t(i.parent)},Xt=function t(i){return i._repeat?At(i._tTime,i=i.duration()+i._rDelay)*i:0},
50
50
  // feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.
51
51
  At=function t(i,e){var n=Math.floor(i=Mt(i/e));return i&&n===i?n-1:n},Ut=function t(i,e){return(i-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Nt=function t(i){return i._end=Mt(i._start+(i._tDur/Math.abs(i._ts||i._rts||y)||0))},qt=function t(i,e){
52
52
  // adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.
@@ -142,9 +142,9 @@ r[0]=Hi(a+1/3,s,o);r[1]=Hi(a,s,o);r[2]=Hi(a-1/3,s,o)}else if(~i.indexOf("=")){
142
142
  //if relative values are found, just return the raw strings with the relative prefixes in place.
143
143
  r=i.match(D);n&&r.length<4&&(r[3]=1);return r}}else{r=i.match(I)||zi.transparent}r=r.map(Number)}if(e&&!m){s=r[0]/Si;o=r[1]/Si;u=r[2]/Si;l=Math.max(s,o,u);c=Math.min(s,o,u);h=(l+c)/2;if(l===c){a=f=0}else{d=l-c;f=h>.5?d/(2-l-c):d/(l+c);a=l===s?(o-u)/d+(o<u?6:0):l===o?(u-s)/d+2:(s-o)/d+4;a*=60}r[0]=~~(a+.5);r[1]=~~(f*100+.5);r[2]=~~(h*100+.5)}n&&r.length<4&&(r[3]=1);return r},Di=function t(i){
144
144
  // strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a "c" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()
145
- var e=[],n=[],r=-1;i.split(Xi).forEach((function(t){var i=t.match(L)||[];e.push.apply(e,i);n.push(r+=i.length+1)}));e.c=n;return e},Li=function t(i,e,n){var r="",s=(i+r).match(Xi),o=e?"hsla(":"rgba(",u=0,a,f,h,l;if(!s){return i}s=s.map((function(t){return(t=Ii(t,e,1))&&o+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}));if(n){h=Di(i);a=n.c;if(a.join(r)!==h.c.join(r)){f=i.replace(Xi,"1").split(L);l=f.length-1;for(;u<l;u++){r+=f[u]+(~a.indexOf(u)?s.shift()||o+"0,0,0,0)":(h.length?h:s.length?s:n).shift())}}}if(!f){f=i.split(Xi);l=f.length-1;for(;u<l;u++){r+=f[u]+s[u]}}return r+f[l]},Xi=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",
145
+ var e=[],n=[],r=-1;i.split(Vi).forEach((function(t){var i=t.match(L)||[];e.push.apply(e,i);n.push(r+=i.length+1)}));e.c=n;return e},Li=function t(i,e,n){var r="",s=(i+r).match(Vi),o=e?"hsla(":"rgba(",u=0,a,f,h,l;if(!s){return i}s=s.map((function(t){return(t=Ii(t,e,1))&&o+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}));if(n){h=Di(i);a=n.c;if(a.join(r)!==h.c.join(r)){f=i.replace(Vi,"1").split(L);l=f.length-1;for(;u<l;u++){r+=f[u]+(~a.indexOf(u)?s.shift()||o+"0,0,0,0)":(h.length?h:s.length?s:n).shift())}}}if(!f){f=i.split(Vi);l=f.length-1;for(;u<l;u++){r+=f[u]+s[u]}}return r+f[l]},Vi=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",
146
146
  //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,
147
- i;for(i in zi){t+="|"+i+"\\b"}return new RegExp(t+")","gi")}(),Vi=/hsl[a]?\(/,Ai=function t(i){var e=i.join(" "),n;Xi.lastIndex=0;if(Xi.test(e)){n=Vi.test(e);i[1]=Li(i[1],n);i[0]=Li(i[0],n,Di(i[1]));// make sure the order of numbers/colors match with the END value.
147
+ i;for(i in zi){t+="|"+i+"\\b"}return new RegExp(t+")","gi")}(),Xi=/hsl[a]?\(/,Ai=function t(i){var e=i.join(" "),n;Vi.lastIndex=0;if(Vi.test(e)){n=Xi.test(e);i[1]=Li(i[1],n);i[0]=Li(i[0],n,Di(i[1]));// make sure the order of numbers/colors match with the END value.
148
148
  return true}},
149
149
  /*
150
150
  * --------------------------------------------------------------------------------------
@@ -206,8 +206,8 @@ this._ts||(this._pTime=i);// otherwise, if an animation is paused, then the play
206
206
  // this._lock = 1;
207
207
  Ft(this,i,e);// this._lock = 0;
208
208
  //}
209
- }return this};i.time=function t(i,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Vt(this))%(this._dur+this._rDelay)||(i?this._dur:0),e):this._time;// note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!
210
- };i.totalProgress=function t(i,e){return arguments.length?this.totalTime(this.totalDuration()*i,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0};i.progress=function t(i,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Vt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0};i.iteration=function t(i,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,e):this._repeat?At(this._tTime,n)+1:1}// potential future addition:;
209
+ }return this};i.time=function t(i,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Xt(this))%(this._dur+this._rDelay)||(i?this._dur:0),e):this._time;// note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!
210
+ };i.totalProgress=function t(i,e){return arguments.length?this.totalTime(this.totalDuration()*i,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0};i.progress=function t(i,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Xt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0};i.iteration=function t(i,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,e):this._repeat?At(this._tTime,n)+1:1}// potential future addition:;
211
211
  i.timeScale=function t(i,e){if(!arguments.length){return this._rts===-y?0:this._rts;// recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.
212
212
  }if(this._rts===i){return this}var n=this.parent&&this._ts?Ut(this.parent._time,this):this._tTime;// make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.
213
213
  // future addition? Up side: fast and minimal file size. Down side: only works on this animation; if a timeline is reversed, for example, its childrens' onReverse wouldn't get called.
@@ -300,11 +300,11 @@ e-=u;if(!a&&!n._dp||a&&a.smoothChildTiming){n._start+=Mt(u/n._ts);n._time-=u;n._
300
300
  //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus "this" would refer to the plugin.
301
301
  var a=new Se(this._pt,i,e,0,1,Ze,null,s),f=0,h=0,l,c,d,m,v,p,g,C;a.b=n;a.e=r;n+="";//ensure values are strings
302
302
  r+="";if(g=~r.indexOf("random(")){r=_i(r)}if(o){C=[n,r];o(C,i,e);//pass an array with the starting and ending values and let the filter do whatever it needs to the values.
303
- n=C[0];r=C[1]}c=n.match(X)||[];while(l=X.exec(r)){m=l[0];v=r.substring(f,l.index);if(d){d=(d+1)%5}else if(v.substr(-5)==="rgba("){d=1}if(m!==c[h++]){p=parseFloat(c[h-1])||0;//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.
303
+ n=C[0];r=C[1]}c=n.match(V)||[];while(l=V.exec(r)){m=l[0];v=r.substring(f,l.index);if(d){d=(d+1)%5}else if(v.substr(-5)==="rgba("){d=1}if(m!==c[h++]){p=parseFloat(c[h-1])||0;//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.
304
304
  a._pt={_next:a._pt,p:v||h===1?v:",",
305
305
  //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
306
- s:p,c:m.charAt(1)==="="?jt(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0};f=X.lastIndex}}a.c=f<r.length?r.substring(f,r.length):"";//we use the "c" of the PropTween to store the final part of the string (after the last number)
307
- a.fp=u;if(V.test(r)||g){a.e=0;//if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
306
+ s:p,c:m.charAt(1)==="="?jt(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0};f=V.lastIndex}}a.c=f<r.length?r.substring(f,r.length):"";//we use the "c" of the PropTween to store the final part of the string (after the last number)
307
+ a.fp=u;if(X.test(r)||g){a.e=0;//if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
308
308
  }this._pt=a;//start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus "this" would refer to the plugin.
309
309
  return a},he=function t(i,e,n,r,s,o,u,a,f,h){P(r)&&(r=r(s||0,i,o));var l=i[e],c=n!=="get"?n:!P(l)?l:f?i[e.indexOf("set")||!P(i["get"+e.substr(3)])?e:"get"+e.substr(3)](f):i[e](),d=!P(l)?be:f?ke:xe,v;if(_(r)){if(~r.indexOf("random(")){r=_i(r)}if(r.charAt(1)==="="){v=jt(c,r)+(fi(c)||0);if(v||v===0){
310
310
  // to avoid isNaN, like if someone passes in a value like "!= whatever"
@@ -376,7 +376,7 @@ s._delay=a=b.delay;s._start+=a;b.delay=0}M.to(F,b,_?_(j,F,w):0);M._ease=Wi.none}
376
376
  }else if(d){Rt(Ot(M.vars.defaults,{ease:"none"}));M._ease=ie(d.ease||e.ease||"none");var T=0,z,H,I;if(S(d)){d.forEach((function(t){return M.to(w,t,">")}));M.duration();// to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.
377
377
  }else{b={};for(k in d){k==="ease"||k==="easeEach"||Ce(k,d[k],b,d.easeEach)}for(k in b){z=b[k].sort((function(t,i){return t.t-i.t}));T=0;for(j=0;j<z.length;j++){H=z[j];I={ease:H.e,duration:(H.t-(j?z[j-1].t:0))/100*u};I[k]=H.v;M.to(w,I,T);T+=I.duration}}M.duration()<u&&M.to({},{duration:u-M.duration()});// in case keyframes didn't go to 100%
378
378
  }}u||s.duration(u=M.duration())}else{s.timeline=0;//speed optimization, faster lookups (no going up the prototype chain)
379
- }if(l===true&&!p){de=c(s);N.killTweensOf(w);de=0}$t(C,c(s),n);e.reversed&&s.reverse();e.paused&&s.paused(true);if(f||!u&&!d&&s._start===Mt(C._time)&&B(f)&&Xt(c(s))&&C.data!=="nested"){s._tTime=-y;//forces a render without having to set the render() "force" parameter to true because we want to allow lazying by default (using the "force" parameter always forces an immediate full render)
379
+ }if(l===true&&!p){de=c(s);N.killTweensOf(w);de=0}$t(C,c(s),n);e.reversed&&s.reverse();e.paused&&s.paused(true);if(f||!u&&!d&&s._start===Mt(C._time)&&B(f)&&Vt(c(s))&&C.data!=="nested"){s._tTime=-y;//forces a render without having to set the render() "force" parameter to true because we want to allow lazying by default (using the "force" parameter always forces an immediate full render)
380
380
  s.render(Math.max(0,-a)||0);//in case delay is negative
381
381
  }g&&Gt(c(s),g);return s}var e=i.prototype;e.render=function t(i,e,n){var r=this._time,s=this._tDur,o=this._dur,u=i<0,a=i>s-y&&!u?s:i<y?0:i,f,h,l,c,d,m,v,p;if(!o){ti(this,i,e,n)}else if(a!==this._tTime||!i||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){
382
382
  // this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)
@@ -448,8 +448,8 @@ while(e){n=e._next;r=s;while(r&&r.pr>e.pr){r=r._next}if(e._prev=r?r._prev:o){e._
448
448
  var Se=function(){function t(t,i,e,n,r,s,o,u,a){this.t=i;this.s=n;this.c=r;this.p=e;this.r=s||Pe;this.d=o||this;this.set=u||be;this.pr=a||0;this._next=t;if(t){t._prev=this}}var i=t.prototype;i.modifier=function t(i,e,n){this.mSet=this.mSet||this.set;//in case it was already set (a PropTween can only have one modifier)
449
449
  this.set=Re;this.m=i;this.mt=n;//modifier target
450
450
  this.tween=e};return t}();//Initialization tasks
451
- wt(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",(function(t){return ut[t]=1}));G.TweenMax=G.TweenLite=je;G.TimelineLite=G.TimelineMax=ae;N=new ae({sortChildren:false,defaults:v,autoRemoveChildren:true,id:"root",smoothChildTiming:true});m.stringFilter=Ai;var ze=[],He={},Ie=[],De=0,Le=0,Xe=function t(i){return(He[i]||Ie).map((function(t){return t()}))},Ve=function t(){var i=Date.now(),e=[];if(i-De>2){Xe("matchMediaInit");ze.forEach((function(t){var i=t.queries,n=t.conditions,r,s,o,u;for(s in i){r=q.matchMedia(i[s]).matches;// Firefox doesn't update the "matches" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.
452
- r&&(o=1);if(r!==n[s]){n[s]=r;u=1}}if(u){t.revert();o&&e.push(t)}}));Xe("matchMediaRevert");e.forEach((function(t){return t.onMatch(t,(function(i){return t.add(null,i)}))}));De=i;Xe("matchMedia")}};var Ae=function(){function t(t,i){this.selector=i&&vi(i);this.data=[];this._r=[];// returned/cleanup functions
451
+ wt(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",(function(t){return ut[t]=1}));G.TweenMax=G.TweenLite=je;G.TimelineLite=G.TimelineMax=ae;N=new ae({sortChildren:false,defaults:v,autoRemoveChildren:true,id:"root",smoothChildTiming:true});m.stringFilter=Ai;var ze=[],He={},Ie=[],De=0,Le=0,Ve=function t(i){return(He[i]||Ie).map((function(t){return t()}))},Xe=function t(){var i=Date.now(),e=[];if(i-De>2){Ve("matchMediaInit");ze.forEach((function(t){var i=t.queries,n=t.conditions,r,s,o,u;for(s in i){r=q.matchMedia(i[s]).matches;// Firefox doesn't update the "matches" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.
452
+ r&&(o=1);if(r!==n[s]){n[s]=r;u=1}}if(u){t.revert();o&&e.push(t)}}));Ve("matchMediaRevert");e.forEach((function(t){return t.onMatch(t,(function(i){return t.add(null,i)}))}));De=i;Ve("matchMedia")}};var Ae=function(){function t(t,i){this.selector=i&&vi(i);this.data=[];this._r=[];// returned/cleanup functions
453
453
  this.isReverted=false;this.id=Le++;// to work around issues that frameworks like Vue cause by making things into Proxies which make it impossible to do something like _media.indexOf(this) because "this" would no longer refer to the Context instance itself - it'd refer to a Proxy! We needed a way to identify the context uniquely
454
454
  t&&this.add(t)}var i=t.prototype;i.add=function t(i,e,n){
455
455
  // possible future addition if we need the ability to add() an animation to a context and for whatever reason cannot create that animation inside of a context.add(() => {...}) function.
@@ -468,7 +468,7 @@ r=n.data[e];if(r instanceof ae){if(r.data!=="nested"){r.scrollTrigger&&r.scrollT
468
468
  // previously, we checked _media.indexOf(this), but some frameworks like Vue enforce Proxy objects that make it impossible to get the proper result that way, so we must use a unique ID number instead.
469
469
  ze[r].id===this.id&&ze.splice(r,1)}}}// killWithCleanup() {;
470
470
  i.revert=function t(i){this.kill(i||{})};return t}();var Ue=function(){function t(t){this.contexts=[];this.scope=t;C&&C.data.push(this)}var i=t.prototype;i.add=function t(i,e,n){E(i)||(i={matches:i});var r=new Ae(0,n||this.scope),s=r.conditions={},o,u,a;C&&!r.selector&&(r.selector=C.selector);// in case a context is created inside a context. Like a gsap.matchMedia() that's inside a scoped gsap.context()
471
- this.contexts.push(r);e=r.add("onMatch",e);r.queries=i;for(u in i){if(u==="all"){a=1}else{o=q.matchMedia(i[u]);if(o){ze.indexOf(r)<0&&ze.push(r);(s[u]=o.matches)&&(a=1);o.addListener?o.addListener(Ve):o.addEventListener("change",Ve)}}}a&&e(r,(function(t){return r.add(null,t)}));return this}// refresh() {;
471
+ this.contexts.push(r);e=r.add("onMatch",e);r.queries=i;for(u in i){if(u==="all"){a=1}else{o=q.matchMedia(i[u]);if(o){ze.indexOf(r)<0&&ze.push(r);(s[u]=o.matches)&&(a=1);o.addListener?o.addListener(Xe):o.addEventListener("change",Xe)}}}a&&e(r,(function(t){return r.add(null,t)}));return this}// refresh() {;
472
472
  i.revert=function t(i){this.kill(i||{})};i.kill=function t(i){this.contexts.forEach((function(t){return t.kill(i,true)}))};return t}();
473
473
  /*
474
474
  * --------------------------------------------------------------------------------------
@@ -478,7 +478,7 @@ i.revert=function t(i){this.kill(i||{})};i.kill=function t(i){this.contexts.forE
478
478
  var s=gt(i||{}).get,o=n?Pt:_t;n==="native"&&(n="");return!i?i:!e?function(t,e,n){return o((lt[t]&&lt[t].get||s)(i,t,e,n))}:o((lt[e]&&lt[e].get||s)(i,e,n,r))},quickSetter:function t(i,e,n){i=mi(i);if(i.length>1){var r=i.map((function(t){return Ge.quickSetter(t,e,n)})),s=r.length;return function(t){var i=s;while(i--){r[i](t)}}}i=i[0]||{};var o=lt[e],u=gt(i),a=u.harness&&(u.harness.aliases||{})[e]||e,
479
479
  // in case it's an alias, like "rotate" for "rotation".
480
480
  f=o?function(t){var e=new o;Ti._pt=0;e.init(i,n?t+n:t,Ti,0,[i]);e.render(1,e);Ti._pt&&Ee(1,Ti)}:u.set(i,a);return o?f:function(t){return f(i,a,n?t+n:t,u,1)}},quickTo:function t(i,e,n){var r;var s=Ge.to(i,Ot((r={},r[e]="+=0.1",r.paused=true,r.stagger=0,r),n||{})),o=function t(i,n,r){return s.resetTo(e,i,n,r)};o.tween=s;return o},isTweening:function t(i){return N.getTweensOf(i,true).length>0},defaults:function t(i){i&&i.ease&&(i.ease=ie(i.ease,v.ease));return Bt(v,i||{})},config:function t(i){return Bt(m,i||{})},registerEffect:function t(i){var e=i.name,n=i.effect,r=i.plugins,s=i.defaults,o=i.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!lt[t]&&!G[t]&&it(e+" effect requires "+t+" plugin.")}));ct[e]=function(t,i,e){return n(mi(t),Ot(i||{},s),e)};if(o){ae.prototype[e]=function(t,i,n){return this.add(ct[e](t,E(i)?i:(n=i)&&{},this),n)}}},registerEase:function t(i,e){Wi[i]=ie(e)},parseEase:function t(i,e){return arguments.length?ie(i,e):Wi},getById:function t(i){return N.getById(i)},exportRoot:function t(i,e){if(i===void 0){i={}}var n=new ae(i),r,s;n.smoothChildTiming=B(i.smoothChildTiming);N.remove(n);n._dp=0;//otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).
481
- n._time=n._tTime=N._time;r=N._first;while(r){s=r._next;if(e||!(!r._dur&&r instanceof je&&r.vars.onComplete===r._targets[0])){$t(n,r,r._start-r._delay)}r=s}$t(N,n,0);return n},context:function t(i,e){return i?new Ae(i,e):C},matchMedia:function t(i){return new Ue(i)},matchMediaRefresh:function t(){return ze.forEach((function(t){var i=t.conditions,e,n;for(n in i){if(i[n]){i[n]=false;e=1}}e&&t.revert()}))||Ve()},addEventListener:function t(i,e){var n=He[i]||(He[i]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function t(i,e){var n=He[i],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:ki,wrapYoyo:Fi,distribute:gi,random:yi,snap:wi,normalize:bi,getUnit:fi,clamp:hi,splitColor:Ii,toArray:mi,selector:vi,mapRange:Pi,pipe:Mi,unitize:ji,interpolate:Oi,shuffle:pi},install:K,effects:ct,ticker:Ni,updateRoot:ae.updateRoot,plugins:lt,globalTimeline:N,core:{PropTween:Se,globals:et,Tween:je,Timeline:ae,Animation:ue,getCache:gt,_removeLinkedListItem:zt,reverting:function t(){return g},context:function t(i){if(i&&C){C.data.push(i);i._ctx=C}return C},suppressOverwrites:function t(i){return p=i}}};wt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ne[t]=je[t]}));Ni.add(ae.updateRoot);Ti=Ne.to({},{duration:0});// ---- EXTRA PLUGINS --------------------------------------------------------
481
+ n._time=n._tTime=N._time;r=N._first;while(r){s=r._next;if(e||!(!r._dur&&r instanceof je&&r.vars.onComplete===r._targets[0])){$t(n,r,r._start-r._delay)}r=s}$t(N,n,0);return n},context:function t(i,e){return i?new Ae(i,e):C},matchMedia:function t(i){return new Ue(i)},matchMediaRefresh:function t(){return ze.forEach((function(t){var i=t.conditions,e,n;for(n in i){if(i[n]){i[n]=false;e=1}}e&&t.revert()}))||Xe()},addEventListener:function t(i,e){var n=He[i]||(He[i]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function t(i,e){var n=He[i],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:ki,wrapYoyo:Fi,distribute:gi,random:yi,snap:wi,normalize:bi,getUnit:fi,clamp:hi,splitColor:Ii,toArray:mi,selector:vi,mapRange:Pi,pipe:Mi,unitize:ji,interpolate:Oi,shuffle:pi},install:K,effects:ct,ticker:Ni,updateRoot:ae.updateRoot,plugins:lt,globalTimeline:N,core:{PropTween:Se,globals:et,Tween:je,Timeline:ae,Animation:ue,getCache:gt,_removeLinkedListItem:zt,reverting:function t(){return g},context:function t(i){if(i&&C){C.data.push(i);i._ctx=C}return C},suppressOverwrites:function t(i){return p=i}}};wt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ne[t]=je[t]}));Ni.add(ae.updateRoot);Ti=Ne.to({},{duration:0});// ---- EXTRA PLUGINS --------------------------------------------------------
482
482
  var qe=function t(i,e){var n=i._pt;while(n&&n.p!==e&&n.op!==e&&n.fp!==e){n=n._next}return n},We=function t(i,e){var n=i._targets,r,s,o;for(r in e){s=n.length;while(s--){o=i._ptLookup[s][r];if(o&&(o=o.d)){if(o._pt){
483
483
  // is a plugin
484
484
  o=qe(o,r)}o&&o.modifier&&o.modifier(e[r],i,n[s],r)}}}},$e=function t(i,e){return{name:i,headless:1,rawVars:1,
@@ -517,9 +517,9 @@ return n&&n.style?n:Je.createElement(i);//some environments won't allow access t
517
517
  },zn="O,Moz,ms,Ms,Webkit".split(","),Hn=function t(i,e,n){var r=e||en,s=r.style,o=5;if(i in s&&!n){return i}i=i.charAt(0).toUpperCase()+i.substr(1);while(o--&&!(zn[o]+i in s)){}return o<0?null:(o===3?"ms":o>=0?zn[o]:"")+i},In=function t(){if(sn()&&window.document){Qe=window;Je=Qe.document;Ke=Je.documentElement;en=Yn("div")||{style:{}};Yn("div");Pn=Hn(Pn);On=Pn+"Origin";en.style.cssText="border-width:0;line-height:0;position:absolute;padding:0";//make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.
518
518
  Rn=!!Hn("perspective");rn=Ge.core.reverting;tn=1}},Dn=function t(i){
519
519
  //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a <defs> element and/or <mask>. We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).
520
- var e=i.ownerSVGElement,n=Yn("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=i.cloneNode(true),s;r.style.display="block";n.appendChild(r);Ke.appendChild(n);try{s=r.getBBox()}catch(t){}n.removeChild(r);Ke.removeChild(n);return s},Ln=function t(i,e){var n=e.length;while(n--){if(i.hasAttribute(e[n])){return i.getAttribute(e[n])}}},Xn=function t(i){var e,n;try{e=i.getBBox();//Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118
520
+ var e=i.ownerSVGElement,n=Yn("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=i.cloneNode(true),s;r.style.display="block";n.appendChild(r);Ke.appendChild(n);try{s=r.getBBox()}catch(t){}n.removeChild(r);Ke.removeChild(n);return s},Ln=function t(i,e){var n=e.length;while(n--){if(i.hasAttribute(e[n])){return i.getAttribute(e[n])}}},Vn=function t(i){var e,n;try{e=i.getBBox();//Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118
521
521
  }catch(t){e=Dn(i);n=1}e&&(e.width||e.height)||n||(e=Dn(i));//some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.
522
- return e&&!e.width&&!e.x&&!e.y?{x:+Ln(i,["x","cx","x1"])||0,y:+Ln(i,["y","cy","y1"])||0,width:0,height:0}:e},Vn=function t(i){return!!(i.getCTM&&(!i.parentNode||i.ownerSVGElement)&&Xn(i))},
522
+ return e&&!e.width&&!e.x&&!e.y?{x:+Ln(i,["x","cx","x1"])||0,y:+Ln(i,["y","cy","y1"])||0,width:0,height:0}:e},Xn=function t(i){return!!(i.getCTM&&(!i.parentNode||i.ownerSVGElement)&&Vn(i))},
523
523
  //reports if the element is an SVG on which getBBox() actually works
524
524
  An=function t(i,e){if(e){var n=i.style,r;if(e in on&&e!==On){e=Pn}if(n.removeProperty){r=e.substr(0,2);if(r==="ms"||e.substr(0,6)==="webkit"){
525
525
  //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be "ms-transform" instead of "-ms-transform" for IE9, for example)
@@ -529,7 +529,7 @@ n.removeAttribute(e)}}},Un=function t(i,e,n,r,s,o){var u=new Se(i._pt,e,n,0,1,o?
529
529
  //takes a single value like 20px and converts it to the unit specified, like "%", returning only the numeric amount.
530
530
  Wn=function t(i,e,n,r){var s=parseFloat(n)||0,o=(n+"").trim().substr((s+"").length)||"px",
531
531
  // some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()
532
- u=en.style,a=cn.test(e),f=i.tagName.toLowerCase()==="svg",h=(f?"client":"offset")+(a?"Width":"Height"),l=100,c=r==="px",d=r==="%",m,v,p,g;if(r===o||!s||Nn[r]||Nn[o]){return s}o!=="px"&&!c&&(s=t(i,e,n,"px"));g=i.getCTM&&Vn(i);if((d||o==="%")&&(on[e]||~e.indexOf("adius"))){m=g?i.getBBox()[a?"width":"height"]:i[h];return yt(d?s/m*l:s/100*m)}u[a?"width":"height"]=l+(c?o:r);v=r!=="rem"&&~e.indexOf("adius")||r==="em"&&i.appendChild&&!f?i:i.parentNode;if(g){v=(i.ownerSVGElement||{}).parentNode}if(!v||v===Je||!v.appendChild){v=Je.body}p=v._gsap;if(p&&d&&p.width&&a&&p.time===Ni.time&&!p.uncache){return yt(s/p.width*l)}else{if(d&&(e==="height"||e==="width")){
532
+ u=en.style,a=cn.test(e),f=i.tagName.toLowerCase()==="svg",h=(f?"client":"offset")+(a?"Width":"Height"),l=100,c=r==="px",d=r==="%",m,v,p,g;if(r===o||!s||Nn[r]||Nn[o]){return s}o!=="px"&&!c&&(s=t(i,e,n,"px"));g=i.getCTM&&Xn(i);if((d||o==="%")&&(on[e]||~e.indexOf("adius"))){m=g?i.getBBox()[a?"width":"height"]:i[h];return yt(d?s/m*l:s/100*m)}u[a?"width":"height"]=l+(c?o:r);v=r!=="rem"&&~e.indexOf("adius")||r==="em"&&i.appendChild&&!f?i:i.parentNode;if(g){v=(i.ownerSVGElement||{}).parentNode}if(!v||v===Je||!v.appendChild){v=Je.body}p=v._gsap;if(p&&d&&p.width&&a&&p.time===Ni.time&&!p.uncache){return yt(s/p.width*l)}else{if(d&&(e==="height"||e==="width")){
533
533
  // if we're dealing with width/height that's inside a container with padding and/or it's a flexbox/grid container, we must apply it to the target itself rather than the _tempDiv in order to ensure complete accuracy, factoring in the parent's padding.
534
534
  var C=i.style[e];i.style[e]=l+r;m=i[h];C?i.style[e]=C:An(i,e)}else{(d||o==="%")&&!qn[Sn(v,"display")]&&(u.position=Sn(i,"position"));v===i&&(u.position="static");// like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.
535
535
  v.appendChild(en);m=en[h];v.removeChild(en);u.position="absolute"}if(a&&d){p=gt(v);p.time=Ni.time;p.width=v[h]}}return yt(c?m*s/l:m&&s?l/m*s:0)},$n=function t(i,e,n,r){var s;tn||In();if(e in mn&&e!=="transform"){e=mn[e];if(~e.indexOf(",")){e=e.split(",")[0]}}if(on[e]&&e!=="transform"){s=ur(i,r);s=e!=="transformOrigin"?s[e]:s.svg?s.origin:ar(Sn(i,On))+" "+s.zOrigin+"px"}else{s=i.style[e];if(!s||s==="auto"||r||~(s+"").indexOf("calc(")){s=tr[e]&&tr[e](i,e,n)||Sn(i,e)||Ct(i,e)||(e==="opacity"?1:0);// note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like borderTopLeftRadius
@@ -546,7 +546,7 @@ y=y||m.units[e]||M;if(a===r.length){r+=y;u.e+=y}}if(M!==y){d=Wn(i,e,p,y)||0}// t
546
546
  u._pt={_next:u._pt,p:w||f===1?w:",",
547
547
  //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
548
548
  s:d,c:C-d,m:v&&v<4||e==="zIndex"?Math.round:0}}}u.c=a<r.length?r.substring(a,r.length):"";//we use the "c" of the PropTween to store the final part of the string (after the last number)
549
- }else{u.r=e==="display"&&r==="none"?Mn:yn}V.test(r)&&(u.e=0);//if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
549
+ }else{u.r=e==="display"&&r==="none"?Mn:yn}X.test(r)&&(u.e=0);//if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
550
550
  this._pt=u;//start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus "this" would refer to the plugin.
551
551
  return u},Qn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Jn=function t(i){var e=i.split(" "),n=e[0],r=e[1]||"50%";if(n==="top"||n==="bottom"||r==="left"||r==="right"){
552
552
  //the user provided them in the wrong order, so flip them
@@ -630,7 +630,7 @@ a=r.display;r.display="block";o=i.parentNode;if(!o||!i.offsetParent&&!i.getBound
630
630
  // note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375. Note: position: fixed elements report a null offsetParent but they could also be invisible because they're in an ancestor with display: none, so we check getBoundingClientRect(). We only want to alter the DOM if we absolutely have to because it can cause iframe content to reload, like a Vimeo video.
631
631
  f=1;//flag
632
632
  u=i.nextElementSibling;Ke.appendChild(i);//we must add it to the DOM in order to get values properly
633
- }s=rr(i);a?r.display=a:An(i,"display");if(f){u?o.insertBefore(i,u):o?o.appendChild(i):Ke.removeChild(i)}}return e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},or=function t(i,e,n,r,s,o){var u=i._gsap,a=s||sr(i,true),f=u.xOrigin||0,h=u.yOrigin||0,l=u.xOffset||0,c=u.yOffset||0,d=a[0],m=a[1],v=a[2],p=a[3],g=a[4],C=a[5],w=e.split(" "),y=parseFloat(w[0])||0,M=parseFloat(w[1])||0,j,b,x,k;if(!n){j=Xn(i);y=j.x+(~w[0].indexOf("%")?y/100*j.width:y);M=j.y+(~(w[1]||w[0]).indexOf("%")?M/100*j.height:M);// if (!("xOrigin" in cache) && (xOrigin || yOrigin)) { // added in 3.12.3, reverted in 3.12.4; requires more exploration
633
+ }s=rr(i);a?r.display=a:An(i,"display");if(f){u?o.insertBefore(i,u):o?o.appendChild(i):Ke.removeChild(i)}}return e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},or=function t(i,e,n,r,s,o){var u=i._gsap,a=s||sr(i,true),f=u.xOrigin||0,h=u.yOrigin||0,l=u.xOffset||0,c=u.yOffset||0,d=a[0],m=a[1],v=a[2],p=a[3],g=a[4],C=a[5],w=e.split(" "),y=parseFloat(w[0])||0,M=parseFloat(w[1])||0,j,b,x,k;if(!n){j=Vn(i);y=j.x+(~w[0].indexOf("%")?y/100*j.width:y);M=j.y+(~(w[1]||w[0]).indexOf("%")?M/100*j.height:M);// if (!("xOrigin" in cache) && (xOrigin || yOrigin)) { // added in 3.12.3, reverted in 3.12.4; requires more exploration
634
634
  // xOrigin -= bounds.x;
635
635
  // yOrigin -= bounds.y;
636
636
  // }
@@ -638,7 +638,7 @@ u=i.nextElementSibling;Ke.appendChild(i);//we must add it to the DOM in order to
638
638
  //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.
639
639
  x=y*(p/b)+M*(-v/b)+(v*C-p*g)/b;k=y*(-m/b)+M*(d/b)-(d*C-m*g)/b;y=x;M=k;// theory: we only had to do this for smoothing and it assumes that the previous one was not originIsAbsolute.
640
640
  }if(r||r!==false&&u.smooth){g=y-f;C=M-h;u.xOffset=l+(g*d+C*v)-g;u.yOffset=c+(g*m+C*p)-C}else{u.xOffset=u.yOffset=0}u.xOrigin=y;u.yOrigin=M;u.smooth=!!r;u.origin=e;u.originIsAbsolute=!!n;i.style[On]="0px 0px";//otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).
641
- if(o){Un(o,u,"xOrigin",f,y);Un(o,u,"yOrigin",h,M);Un(o,u,"xOffset",l,u.xOffset);Un(o,u,"yOffset",c,u.yOffset)}i.setAttribute("data-svg-origin",y+" "+M)},ur=function t(i,e){var n=i._gsap||new oe(i);if("x"in n&&!e&&!n.uncache){return n}var r=i.style,s=n.scaleX<0,o="px",u="deg",a=getComputedStyle(i),f=Sn(i,On)||"0",h,l,c,d,v,p,g,C,w,y,M,j,b,x,k,F,_,P,O,Z,E,B,T,R,Y,S,z,H,I,D,L,X;h=l=c=p=g=C=w=y=M=0;d=v=1;n.svg=!!(i.getCTM&&Vn(i));if(a.translate){
641
+ if(o){Un(o,u,"xOrigin",f,y);Un(o,u,"yOrigin",h,M);Un(o,u,"xOffset",l,u.xOffset);Un(o,u,"yOffset",c,u.yOffset)}i.setAttribute("data-svg-origin",y+" "+M)},ur=function t(i,e){var n=i._gsap||new oe(i);if("x"in n&&!e&&!n.uncache){return n}var r=i.style,s=n.scaleX<0,o="px",u="deg",a=getComputedStyle(i),f=Sn(i,On)||"0",h,l,c,d,v,p,g,C,w,y,M,j,b,x,k,F,_,P,O,Z,E,B,T,R,Y,S,z,H,I,D,L,V;h=l=c=p=g=C=w=y=M=0;d=v=1;n.svg=!!(i.getCTM&&Xn(i));if(a.translate){
642
642
  // accommodate independent transforms by combining them into normal ones.
643
643
  if(a.translate!=="none"||a.scale!=="none"||a.rotate!=="none"){r[Pn]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[Pn]!=="none"?a[Pn]:"")}r.scale=r.rotate=r.translate="none"}x=sr(i,n.svg);if(n.svg){if(n.uncache){
644
644
  // if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + "px " + (cache.yOrigin - bbox.y) + "px". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.
@@ -650,12 +650,12 @@ E=x[3];//a41
650
650
  h=B=x[4];l=T=x[5];//2D matrix
651
651
  if(x.length===6){d=Math.sqrt(P*P+O*O);v=Math.sqrt(E*E+Z*Z);p=P||O?fn(O,P)*un:0;//note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).
652
652
  w=Z||E?fn(Z,E)*un+p:0;w&&(v*=Math.abs(Math.cos(w*an)));if(n.svg){h-=j-(j*P+b*Z);l-=b-(j*O+b*E)}//3D matrix
653
- }else{X=x[6];D=x[7];z=x[8];H=x[9];I=x[10];L=x[11];h=x[12];l=x[13];c=x[14];k=fn(X,I);g=k*un;//rotationX
654
- if(k){F=Math.cos(-k);_=Math.sin(-k);R=B*F+z*_;Y=T*F+H*_;S=X*F+I*_;z=B*-_+z*F;H=T*-_+H*F;I=X*-_+I*F;L=D*-_+L*F;B=R;T=Y;X=S}//rotationY
653
+ }else{V=x[6];D=x[7];z=x[8];H=x[9];I=x[10];L=x[11];h=x[12];l=x[13];c=x[14];k=fn(V,I);g=k*un;//rotationX
654
+ if(k){F=Math.cos(-k);_=Math.sin(-k);R=B*F+z*_;Y=T*F+H*_;S=V*F+I*_;z=B*-_+z*F;H=T*-_+H*F;I=V*-_+I*F;L=D*-_+L*F;B=R;T=Y;V=S}//rotationY
655
655
  k=fn(-Z,I);C=k*un;if(k){F=Math.cos(-k);_=Math.sin(-k);R=P*F-z*_;Y=O*F-H*_;S=Z*F-I*_;L=E*_+L*F;P=R;O=Y;Z=S}//rotationZ
656
656
  k=fn(O,P);p=k*un;if(k){F=Math.cos(k);_=Math.sin(k);R=P*F+O*_;Y=B*F+T*_;O=O*F-P*_;T=T*F-B*_;P=R;B=Y}if(g&&Math.abs(g)+Math.abs(p)>359.9){
657
657
  //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.
658
- g=p=0;C=180-C}d=yt(Math.sqrt(P*P+O*O+Z*Z));v=yt(Math.sqrt(T*T+X*X));k=fn(B,T);w=Math.abs(k)>2e-4?k*un:0;M=L?1/(L<0?-L:L):0}if(n.svg){
658
+ g=p=0;C=180-C}d=yt(Math.sqrt(P*P+O*O+Z*Z));v=yt(Math.sqrt(T*T+V*V));k=fn(B,T);w=Math.abs(k)>2e-4?k*un:0;M=L?1/(L<0?-L:L):0}if(n.svg){
659
659
  //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).
660
660
  R=i.getAttribute("transform");n.forceCSS=i.setAttribute("transform","")||!nr(Sn(i,Pn));R&&i.setAttribute("transform",R)}}if(Math.abs(w)>90&&Math.abs(w)<270){if(s){d*=-1;w+=p<=0?180:-180;p+=p<=0?180:-180}else{v*=-1;w+=w<=0?180:-180}}e=e||n.uncache;n.x=h-((n.xPercent=h&&(!e&&n.xPercent||(Math.round(i.offsetWidth/2)===Math.round(-h)?-50:0)))?i.offsetWidth*n.xPercent/100:0)+o;n.y=l-((n.yPercent=l&&(!e&&n.yPercent||(Math.round(i.offsetHeight/2)===Math.round(-l)?-50:0)))?i.offsetHeight*n.yPercent/100:0)+o;n.z=c+o;n.scaleX=yt(d);n.scaleY=yt(v);n.rotation=yt(p)+u;n.rotationX=yt(g)+u;n.rotationY=yt(C)+u;n.skewX=w+u;n.skewY=y+u;n.transformPerspective=M+o;if(n.zOrigin=parseFloat(f.split(" ")[2])||!e&&n.zOrigin||0){r[On]=ar(f)}n.xOffset=n.yOffset=0;n.force3D=m.force3D;n.renderTransform=n.svg?vr:Rn?mr:hr;n.uncache=0;return n},ar=function t(i){return(i=i.split(" "))[0]+" "+i[1]},
661
661
  //for handling transformOrigin values, stripping out the 3rd dimension
@@ -679,7 +679,7 @@ this.styles=this.styles||Tn(i);k=this.styles.props;this.tween=n;for(p in e){if(p
679
679
  // plugins
680
680
  continue}d=typeof h;v=tr[p];if(d==="function"){h=h.call(n,r,i,s);d=typeof h}if(d==="string"&&~h.indexOf("random(")){h=_i(h)}if(v){v(this,i,p,h,n)&&(x=1)}else if(p.substr(0,2)==="--"){
681
681
  //CSS variable
682
- f=(getComputedStyle(i).getPropertyValue(p)+"").trim();h+="";Xi.lastIndex=0;if(!Xi.test(f)){
682
+ f=(getComputedStyle(i).getPropertyValue(p)+"").trim();h+="";Vi.lastIndex=0;if(!Vi.test(f)){
683
683
  // colors don't have units
684
684
  g=fi(f);C=fi(h);C?g!==C&&(f=Wn(i,p,f,C)+C):g&&(h+=g)}this.add(u,"setProperty",f,h,r,s,0,0,p);o.push(p);k.push(p,0,u[p])}else if(d!=="undefined"){if(a&&p in a){
685
685
  // in case someone hard-codes a complex value as the start, like top: "calc(2vh / 2)". Without this, it'd use the computed value (always in px)
@@ -720,14 +720,23 @@ this.expressionAnimations=[];
720
720
  // How far the thinking hand slides in and out, as a share of its own size: a
721
721
  // viewBox independent value, so the gesture reads the same on Mia (24 units) and
722
722
  // on Simi (440 units).
723
- this.handEntryOffset=25;this.wasFollowingMouse=false;this.wasBlinking=false;this.headOffsetX=0;this.headOffsetY=0;this.headOffset=0;this.eyesOffsetX=0;this.eyesOffsetY=0;this.eyesOffset=1;this.mouthOffsetX=0;this.mouthOffsetY=0;this.mouthOffset=1;this.handOffsetX=0;this.handOffsetY=0;this.handOffset=2;this.gadgetOffsetX=0;this.gadgetOffsetY=0;this.gadgetOffset=2;this.eyebrowsOffsetX=0;this.eyebrowsOffsetY=0;this.eyebrowsOffset=2;this.earsOffsetX=0;this.earsOffsetY=0;this.earsOffset=2;this.mouseX=0;this.mouseY=0;this.currentRotateX=0;this.currentRotateY=0;this.expressionAngleMax=16;// massimo angolo di rotazione della emoji
723
+ this.handEntryOffset=25;this.wasFollowingMouse=false;this.wasBlinking=false;this.headOffsetX=0;this.headOffsetY=0;this.headOffset=0;this.eyesOffsetX=0;this.eyesOffsetY=0;this.eyesOffset=1;this.mouthOffsetX=0;this.mouthOffsetY=0;this.mouthOffset=1;this.handOffsetX=0;this.handOffsetY=0;this.handOffset=2;this.gadgetOffsetX=0;this.gadgetOffsetY=0;this.gadgetOffset=2;this.eyebrowsOffsetX=0;this.eyebrowsOffsetY=0;this.eyebrowsOffset=2;this.earsOffsetX=0;this.earsOffsetY=0;this.earsOffset=2;this.mouseX=0;this.mouseY=0;this.currentRotateX=0;this.currentRotateY=0;
724
+ // Whether the values below come from the computed style. They are read lazily
725
+ // by rotate until it is available: see updateCSSCustomProps.
726
+ this.cssCustomPropsRead=false;this.expressionAngleMax=16;// massimo angolo di rotazione della emoji
724
727
  this.expressionFollowMouseHeadDuration=.3;// durata dell'animazione di rotazione della testa quando segue il mouse
725
728
  this.expressionFollowMouseTraitsDuration=.2;// durata dell'animazione di rotazione degli occhi e della bocca quando segue il mouse
726
729
  this.blinkTimeline=null;this.blinkDelay=null;this.svgLibrary={mia:Mr,simi:jr};
727
730
  /**
728
731
  * Stops the tracking and recentres the face, keeping whether it was on: an expression pauses
729
732
  * it this way and restoreFollowMouse resumes it when the expression ends.
730
- */this.pauseFollowMouse=function(){if(!e.isFollowingMouse)return Promise.resolve();e.isFollowingMouse=false;e.rotate(0,0);return new Promise((function(t){return setTimeout(t,e.expressionFollowMouseTraitsDuration*1e3)}))};this.isEmojiName=function(t){return t!=null&&{}.hasOwnProperty.call(e.svgLibrary,t)};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(e.host);e.expressionAngleMax=o(t.getPropertyValue("--mds-emoji-expression-max-rotation"),16);e.expressionFollowMouseHeadDuration=u(t.getPropertyValue("--mds-emoji-expression-follow-mouse-head-duration"));e.expressionFollowMouseTraitsDuration=u(t.getPropertyValue("--mds-emoji-expression-follow-mouse-traits-duration"));e.headOffset=a(t.getPropertyValue("--mds-emoji-offset-head"),1);e.eyesOffset=a(t.getPropertyValue("--mds-emoji-offset-eyes"),1);e.mouthOffset=a(t.getPropertyValue("--mds-emoji-offset-mouth"),1);e.handOffset=a(t.getPropertyValue("--mds-emoji-offset-hands"),1);e.gadgetOffset=a(t.getPropertyValue("--mds-emoji-offset-gadget"),1);e.eyebrowsOffset=a(t.getPropertyValue("--mds-emoji-offset-eyebrows"),1);e.earsOffset=a(t.getPropertyValue("--mds-emoji-offset-ears"),1)};this.updateSvgDictionary=function(t){if(typeof window==="undefined")return;var i=document.createElement("template");i.innerHTML=e.svgLibrary[t].trim();e.svgRootEl=i.content.firstElementChild;e.updateCSSCustomProps();
733
+ */this.pauseFollowMouse=function(){if(!e.isFollowingMouse)return Promise.resolve();e.isFollowingMouse=false;e.rotate(0,0);return new Promise((function(t){return setTimeout(t,e.expressionFollowMouseTraitsDuration*1e3)}))};this.isEmojiName=function(t){return t!=null&&{}.hasOwnProperty.call(e.svgLibrary,t)};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(e.host);
734
+ // Stencil loads children before their parents, so a slotted emoji reaches
735
+ // componentDidLoad while its host's shadow DOM has not rendered the slot yet.
736
+ // Outside the flat tree the computed style is empty, every value fell back and
737
+ // the durations became 1000 seconds: the head took minutes to follow the
738
+ // pointer. Keep the current values and let rotate read them again later.
739
+ if(t.display===""){e.cssCustomPropsRead=false;return}e.cssCustomPropsRead=true;e.expressionAngleMax=o(t.getPropertyValue("--mds-emoji-expression-max-rotation"),16);e.expressionFollowMouseHeadDuration=u(t.getPropertyValue("--mds-emoji-expression-follow-mouse-head-duration"),.3);e.expressionFollowMouseTraitsDuration=u(t.getPropertyValue("--mds-emoji-expression-follow-mouse-traits-duration"),.2);e.headOffset=a(t.getPropertyValue("--mds-emoji-offset-head"),1);e.eyesOffset=a(t.getPropertyValue("--mds-emoji-offset-eyes"),1);e.mouthOffset=a(t.getPropertyValue("--mds-emoji-offset-mouth"),1);e.handOffset=a(t.getPropertyValue("--mds-emoji-offset-hands"),1);e.gadgetOffset=a(t.getPropertyValue("--mds-emoji-offset-gadget"),1);e.eyebrowsOffset=a(t.getPropertyValue("--mds-emoji-offset-eyebrows"),1);e.earsOffset=a(t.getPropertyValue("--mds-emoji-offset-ears"),1)};this.updateSvgDictionary=function(t){if(typeof window==="undefined")return;var i=document.createElement("template");i.innerHTML=e.svgLibrary[t].trim();e.svgRootEl=i.content.firstElementChild;e.updateCSSCustomProps();
731
740
  // The shadow DOM is fully replaced, so every cached node/setter/timeline now
732
741
  // points at detached elements: drop them so they rebuild against the new SVG.
733
742
  e.resetAnimationState();if(e.host.shadowRoot)e.host.shadowRoot.innerHTML=e.svgRootEl.outerHTML;if(e.isBlinking){e.blinkTimeline=e.buildBlinkTimeline();e.scheduleBlink()}
@@ -869,7 +878,7 @@ e.mouseX=t.clientX;e.mouseY=t.clientY;if(!e.isFollowingMouse)return;e.followMous
869
878
  if(f())return;if(e.isFollowingMouse){e.moveHead(e.mouseX,e.mouseY);return}var t=e.getEmojiCenter(),i=t.centerX,n=t.centerY;e.moveHead(i,n)};
870
879
  // The one place the pointer becomes a pose: the direction of the point from the centre,
871
880
  // with a reach that depends on the viewport, not on the size of the emoji (#800).
872
- this.moveHead=function(t,i,n){if(n===void 0){n=false}var r=e.getEmojiCenter(),s=r.centerX,o=r.centerY;var u=h(t-s,i-o,l(window.innerWidth,window.innerHeight));e.rotate(u.x,u.y,n)};this.rotate=function(t,i,n){if(n===void 0){n=false}var r="power1.out";
881
+ this.moveHead=function(t,i,n){if(n===void 0){n=false}var r=e.getEmojiCenter(),s=r.centerX,o=r.centerY;var u=h(t-s,i-o,l(window.innerWidth,window.innerHeight));e.rotate(u.x,u.y,n)};this.rotate=function(t,i,n){if(n===void 0){n=false}if(!e.cssCustomPropsRead)e.updateCSSCustomProps();var r="power1.out";
873
882
  // The traits can be put in place at once instead of eased there: an expression
874
883
  // about to take the face over owns them from this very frame, and a tween still
875
884
  // on its way would be killed halfway through, leaving them offset toward the
@@ -881,7 +890,18 @@ e.currentRotateY=o(e.expressionAngleMax,t);e.headOffsetX=o(e.headOffset,t);e.hea
881
890
  overwrite:"auto"};
882
891
  // Each facial element is tweened independently with its own offset so they
883
892
  // move by different amounts, giving the emoji a layered, parallax-like depth.
884
- yr.to(e.host,{rotateX:e.currentRotateX,rotateY:e.currentRotateY,transformOrigin:"50% 50%",duration:e.expressionFollowMouseHeadDuration,ease:r});if(e.eyesEl){yr.to(e.eyesEl,Object.assign({translateX:e.eyesOffsetX,translateY:e.eyesOffsetY,transformOrigin:"50% 50%"},u))}if(e.handEl){yr.to(e.handEl,Object.assign({translateX:e.handOffsetX,translateY:e.handOffsetY,transformOrigin:"50% 50%"},u))}if(e.headEl){yr.to(e.headEl,Object.assign({translateX:e.headOffsetX,translateY:e.headOffsetY,transformOrigin:"0% 100%"},u))}if(e.mouthEl){yr.to(e.mouthEl,Object.assign({translateX:e.mouthOffsetX,translateY:e.mouthOffsetY,transformOrigin:"50% 50%"},u))}if(e.gadgetEl){yr.to(e.gadgetEl,Object.assign({translateX:e.gadgetOffsetX,translateY:e.gadgetOffsetY,transformOrigin:"50% 50%"},u))}if(e.eyebrowsEl){yr.to(e.eyebrowsEl,Object.assign({translateX:e.eyebrowsOffsetX,translateY:e.eyebrowsOffsetY,transformOrigin:"50% 50%"},u))}if(e.earsEl){yr.to(e.earsEl,Object.assign({translateX:e.earsOffsetX,translateY:e.earsOffsetY,transformOrigin:"50% 50%"},u))}}}t.prototype.componentDidLoad=function(){if(typeof window==="undefined")return;this.updateCSSCustomProps();window.addEventListener("mousemove",this.handleFollowMouse);this.checkNameChanged(this.name)};t.prototype.disconnectedCallback=function(){var t,i;if(typeof window==="undefined")return;window.removeEventListener("mousemove",this.handleFollowMouse);this.isThinking=false;this.isBlinking=false;this.isFollowingMouse=false;this.killExpressionAnimations();(t=this.blinkDelay)===null||t===void 0?void 0:t.kill();(i=this.blinkTimeline)===null||i===void 0?void 0:i.kill();[this.host,this.eyesEl,this.handEl,this.headEl,this.mouthEl,this.gadgetEl,this.eyebrowsEl,this.earsEl].forEach((function(t){return t&&yr.killTweensOf(t)}))};
893
+ yr.to(e.host,{rotateX:e.currentRotateX,rotateY:e.currentRotateY,transformOrigin:"50% 50%",duration:e.expressionFollowMouseHeadDuration,ease:r,
894
+ // A newer pose replaces the previous one: without it a slower tween still
895
+ // running kept writing its own angles once the newer one had finished.
896
+ overwrite:"auto"});if(e.eyesEl){yr.to(e.eyesEl,Object.assign({translateX:e.eyesOffsetX,translateY:e.eyesOffsetY,transformOrigin:"50% 50%"},u))}if(e.handEl){yr.to(e.handEl,Object.assign({translateX:e.handOffsetX,translateY:e.handOffsetY,transformOrigin:"50% 50%"},u))}if(e.headEl){yr.to(e.headEl,Object.assign({translateX:e.headOffsetX,translateY:e.headOffsetY,transformOrigin:"0% 100%"},u))}if(e.mouthEl){yr.to(e.mouthEl,Object.assign({translateX:e.mouthOffsetX,translateY:e.mouthOffsetY,transformOrigin:"50% 50%"},u))}if(e.gadgetEl){yr.to(e.gadgetEl,Object.assign({translateX:e.gadgetOffsetX,translateY:e.gadgetOffsetY,transformOrigin:"50% 50%"},u))}if(e.eyebrowsEl){yr.to(e.eyebrowsEl,Object.assign({translateX:e.eyebrowsOffsetX,translateY:e.eyebrowsOffsetY,transformOrigin:"50% 50%"},u))}if(e.earsEl){yr.to(e.earsEl,Object.assign({translateX:e.earsOffsetX,translateY:e.earsOffsetY,transformOrigin:"50% 50%"},u))}}}
897
+ // A move disconnects the host and connects it again, while componentDidLoad runs
898
+ // once: the pointer listener follows the connection, so a moved emoji still hears it.
899
+ t.prototype.connectedCallback=function(){if(typeof window==="undefined")return;window.addEventListener("mousemove",this.handleFollowMouse)};t.prototype.componentDidLoad=function(){if(typeof window==="undefined")return;this.updateCSSCustomProps();this.checkNameChanged(this.name)};t.prototype.disconnectedCallback=function(){var t,i;if(typeof window==="undefined")return;
900
+ // In the lazy build the instance can hear of a disconnect after the host is back on
901
+ // the page. GSAP causes one: to read the transform of a host that is not drawn (a
902
+ // slotted emoji before its slot is rendered) it appends it to <html> for a moment
903
+ // and puts it back. The emoji is still mounted then, nothing to tear down.
904
+ if(this.host.isConnected)return;window.removeEventListener("mousemove",this.handleFollowMouse);this.isThinking=false;this.isBlinking=false;this.isFollowingMouse=false;this.killExpressionAnimations();(t=this.blinkDelay)===null||t===void 0?void 0:t.kill();(i=this.blinkTimeline)===null||i===void 0?void 0:i.kill();[this.host,this.eyesEl,this.handEl,this.headEl,this.mouthEl,this.gadgetEl,this.eyebrowsEl,this.earsEl].forEach((function(t){return t&&yr.killTweensOf(t)}))};
885
905
  /**
886
906
  * Emoji agrees, useful for confirm actions.
887
907
  */t.prototype.agree=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:t=this.beginExpression();return[4/*yield*/,this.setAgreeAnimation(t)];case 1:i.sent();return[2/*return*/,Promise.resolve()]}}))}))};
@@ -943,4 +963,4 @@ if(!this.isEmojiName(t)){if(t!=null){console.warn('mds-emoji: ignoring the unkno
943
963
  // attributeChangedCallback is a no-op because the value did not change.
944
964
  if(this.host.getAttribute("name")!==t)this.host.setAttribute("name",t);this.updateSvgDictionary(t)};t.prototype.svgPartState=function(t,i){var e,n,r,s;var o=(n=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.firstElementChild)===null||n===void 0?void 0:n.querySelectorAll("[id^='".concat(t,"-']"));if(!o||o.length===0)return null;if((i===undefined||i==="")&&o){o===null||o===void 0?void 0:o.forEach((function(t){
945
965
  // const currentState = el.id.split('-')[1]
946
- t.style.visibility="hidden";if(t.id.split("-")[1]==="default")t.style.visibility="visible"}));return o}var u=(s=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(t,"-default']"));o===null||o===void 0?void 0:o.forEach((function(t){t.style.visibility="hidden";if(t.id.split("-")[1]===i){u=t}}));if(!u)return null;u.style.visibility="visible";return u};t.prototype.render=function(){return e(n,{key:"675f1b4d903aace1d61bf4b9a5e10fda8e947109"})};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:[{checkNameChanged:0}]}},enumerable:false,configurable:true});return t}());xr.style=br()}}}));
966
+ t.style.visibility="hidden";if(t.id.split("-")[1]==="default")t.style.visibility="visible"}));return o}var u=(s=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(t,"-default']"));o===null||o===void 0?void 0:o.forEach((function(t){t.style.visibility="hidden";if(t.id.split("-")[1]===i){u=t}}));if(!u)return null;u.style.visibility="visible";return u};t.prototype.render=function(){return e(n,{key:"228ea1ce5afd636026b77ac0a00462a7e2471470"})};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:[{checkNameChanged:0}]}},enumerable:false,configurable:true});return t}());xr.style=br()}}}));
@@ -1 +1 @@
1
- import{r as t,d as o,h as i,e as a,g as s}from"./p-CPRkNQdE.js";import{c as n}from"./p-ChV9xqsO.js";import{h as e}from"./p-AEckDMXh.js";import{c as r}from"./p-D8eZRaSQ.js";import{p as d}from"./p-C25F_FlB.js";import{m as l}from"./p-J-ikDhyq.js";import{L as m}from"./p-BmT_DEV2.js";var h={close:"Κλείσιμο"},c={close:"Close"},p={close:"Cerrar"},w={close:"Chiudi"};const f=class{constructor(i){t(this,i),this.openEvent=o(this,"mdsModalOpen",7),this.showEvent=o(this,"mdsModalShow",7),this.closeEvent=o(this,"mdsModalClose",7),this.hideEvent=o(this,"mdsModalHide",7),this.t=new m({el:h,en:c,es:p,it:w}),this.bodyOverflow="",this.cssTransitionDuration="500",this.openAfterRender=!1,this.touchMargin=50,this.hasBottom=!1,this.hasTop=!1,this.hasWindow=!1,this.windowHeaderHeight=0,this.windowFooterHeight=0,this.opened=!1,this.hideBackdrop=!1,this.position="center",this.animation="slide",this.overflow="auto",this.interaction="relaxed",this.updateCSSCustomProps=()=>{var t;if("undefined"==typeof window)return;const o=window.getComputedStyle(this.host);this.cssTransitionDuration=null!==(t=o.getPropertyValue("--mds-modal-transition-duration"))&&void 0!==t?t:"500"},this.stopIntroAnimationWindow=()=>{this.setContentOverflow("auto"),this.showEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.stopOutroAnimationWindow=()=>{this.hideEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.disableOverflow=()=>{"undefined"!=typeof document&&(""!==document.body.style.overflow&&(this.bodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden")},this.enableOverflow=()=>{"undefined"!=typeof document&&(""!==this.bodyOverflow?document.body.style.overflow=this.bodyOverflow:document.body.style.removeProperty("overflow"))},this.setContentOverflow=t=>{this.windowContentWrapper&&(this.windowContentWrapper.style.overflow=t)},this.handleWindowTransitionEnd=t=>{"transform"===t.propertyName&&(this.opened?this.stopIntroAnimationWindow():this.stopOutroAnimationWindow())},this.animateOpenWindow=()=>{this.setContentOverflow("hidden"),clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopIntroAnimationWindow.bind(this),r(this.cssTransitionDuration)+100)},this.animateCloseWindow=()=>{this.setContentOverflow("hidden"),clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopOutroAnimationWindow.bind(this),r(this.cssTransitionDuration)+100)},this.setTouchStart=t=>{this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY},this.setTouchEnd=t=>{if("strict"===this.interaction)return;const o=this.touchStartX-t.changedTouches[0].clientX,i=this.touchStartY-t.changedTouches[0].clientY;if(Math.abs(o)>Math.abs(i)){if("right"===this.position&&o>0)return;if("left"===this.position&&o<0)return;Math.abs(o)>Math.abs(this.touchMargin)&&(this.opened=void 0)}},this.addMobileEvents=()=>{this.windowElement.addEventListener("touchstart",this.setTouchStart),this.windowElement.addEventListener("touchend",this.setTouchEnd)},this.updateSlots=()=>{this.hasBottom=e(this.host,"bottom"),this.hasTop=e(this.host,"top"),this.hasWindow=e(this.host,"window")},this.updateWindowPaddings=()=>{var t,o,i,a;const s=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".window-header"),n=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".window-footer"),e=null!==(i=null==s?void 0:s.offsetHeight)&&void 0!==i?i:0,r=null!==(a=null==n?void 0:n.offsetHeight)&&void 0!==a?a:0;e!==this.windowHeaderHeight&&(this.windowHeaderHeight=e),r!==this.windowFooterHeight&&(this.windowFooterHeight=r)},this.showDialog=()=>{this.dialogEl&&!this.dialogEl.open&&(this.hideBackdrop?this.dialogEl.show():this.dialogEl.showModal(),this.updateWindowPaddings())},this.closeDialog=()=>{var t;(null===(t=this.dialogEl)||void 0===t?void 0:t.open)&&this.dialogEl.close()},this.handleBackdropClick=t=>{"strict"!==this.interaction&&t.target===this.dialogEl&&(this.opened=void 0)},this.handleCancel=t=>{t.preventDefault(),"strict"!==this.interaction&&(this.opened=void 0)}}componentWillLoad(){this.updateSlots(),"auto"===this.overflow&&this.opened&&this.disableOverflow()}componentDidLoad(){var t,o;this.windowElement=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".window"),this.windowContentWrapper=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".window-content-wrapper"),this.updateWindowPaddings(),null!=this.windowElement&&(this.addMobileEvents(),this.windowElement.addEventListener("transitionend",this.handleWindowTransitionEnd)),this.updateCSSCustomProps(),this.opened&&(this.showDialog(),this.animateOpenWindow(),this.openEvent.emit())}componentDidUpdate(){this.openAfterRender&&(this.openAfterRender=!1,this.showDialog(),this.animateOpenWindow(),this.openEvent.emit()),this.updateWindowPaddings()}disconnectedCallback(){this.enableOverflow(),clearTimeout(this.animationDelayTimeout),this.windowElement&&(this.windowElement.removeEventListener("touchstart",this.setTouchStart),this.windowElement.removeEventListener("touchend",this.setTouchEnd),this.windowElement.removeEventListener("transitionend",this.handleWindowTransitionEnd)),this.enableOverflow()}handleOpenProp(t,o){if(t)return"auto"===this.overflow&&this.disableOverflow(),void(this.openAfterRender=!0);this.openAfterRender=!1,o&&(this.opened=void 0,this.closeDialog(),"auto"===this.overflow&&this.enableOverflow(),this.animateCloseWindow(),this.closeEvent.emit())}handleHideBackdropProp(t){!1===t&&(this.hideBackdrop=void 0)}async close(){this.opened=void 0}render(){return i(a,{key:"130854f62fac138b6591a2ec4c1705ca05ca8b70","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},i("dialog",{key:"7084dc11565c61097496422c4486a67f8762b207","aria-label":this.accessibleName,class:"dialog",part:"dialog",ref:t=>this.dialogEl=t,onClick:t=>{this.handleBackdropClick(t)},onCancel:t=>{this.handleCancel(t)}},i("slot",{key:"2e4f92244d7b44818e41c4fef3e74a6cf7bb4f26",name:"window",onSlotchange:this.updateSlots}),!this.hasWindow&&i("div",{key:"0324ceeefcf87b8556f566b64c07d61d8b6c1998",class:"window",part:"window"},i("div",{key:"cf265fba1368260edc2fde502f73b9e62f611e1a",class:n("window-header",!this.hasTop&&"window-content--empty")},i("slot",{key:"6fac90e8dc333bd542aedb90fc3f9acaa90c1c20",name:"top",onSlotchange:this.updateSlots})),i("div",{key:"5c5757b36ad8b91ee0fdeae786a0563c81021d27",class:"window-content-wrapper"},i("div",{key:"31fef2b38cdeb2aa139641fa0ced9dd91705e004",class:"window-content",style:{paddingTop:`${this.windowHeaderHeight}px`,paddingBottom:`${this.windowFooterHeight}px`}},i("slot",{key:"ada016f6844b9f6dd87e74fde3f2e79de5f94f2c"}))),i("div",{key:"a44d2269acb2029442a4c6163039e93289445fcf",class:n("window-footer",!this.hasBottom&&"window-content--empty")},i("slot",{key:"311e1e5c11cb387f40cbd417de0ffa0d5a9dc01f",name:"bottom",onSlotchange:this.updateSlots}))),!this.hasWindow&&i("mds-button",{key:"05f78ff75554f0ce42415f7ad2f73b5f142482ad","aria-label":this.t.get("close"),class:"action-close",icon:l,variant:"light",tone:"text",size:"xl",onClick:()=>{this.opened=void 0},part:"action-close"})))}get host(){return s(this)}static get watchers(){return{opened:[{handleOpenProp:0}],hideBackdrop:[{handleHideBackdropProp:0}]}}};f.style='@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button: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-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0));--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-function:var(--mds-modal-transition-timing-funciton,var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1)));--mds-modal-window-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index,3000);--private-modal-transition-duration:var(--mds-modal-transition-duration,.5s);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-opened-transform:none;--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);display:contents}.dialog{align-items:center;background-color:#0000;border:0;box-sizing:border-box;color:inherit;display:none;fill:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));height:auto;inset:0;justify-content:center;margin:0;max-height:none;max-width:none;overflow:clip;padding:0;perspective:600px;position:fixed;transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function);width:auto;z-index:var(--mds-modal-z-index,1000)}.dialog[open]{display:flex}.dialog::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0);transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function)}:host([hide-backdrop]) .dialog{pointer-events:none}.action-close{--mds-button-color:rgb(var(--magma-on-backdrop,252 252 252));opacity:0;pointer-events:none;position:absolute;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,bottom,color,fill,opacity,top,transform;transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]){--private-modal-opened-transform:var(--private-modal-custom-opened-transform);--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([position=top-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,100%)}.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)))}@starting-style{.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0)}}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-modal-window-radius,0);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:0;grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:hidden}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}.dialog .window,.dialog ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform);transition-duration:var(--private-modal-transition-duration);transition-property:transform,opacity;transition-timing-function:var(--mds-modal-transition-timing-function)}.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:1;pointer-events:auto;transform:var(--private-modal-opened-transform)}@starting-style{.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform)}.window-content-wrapper{overflow:hidden}}:host([position=top-left]) .dialog,:host([position=top-right]) .dialog,:host([position=top]) .dialog{align-items:flex-start}:host([position=center]) .dialog,:host([position=left]) .dialog,:host([position=right]) .dialog{align-items:center}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=bottom]) .dialog{align-items:flex-end}:host([position=bottom-left]) .dialog,:host([position=left]) .dialog,:host([position=top-left]) .dialog{justify-content:flex-start}:host([position=bottom]) .dialog,:host([position=center]) .dialog,:host([position=top]) .dialog{justify-content:center}:host([position=bottom-right]) .dialog,:host([position=right]) .dialog,:host([position=top-right]) .dialog{justify-content:flex-end}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}: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-modal-transition-duration:0s}:host([pref-contrast=more]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@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-modal-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}';export{f as mds_modal}
1
+ import{r as t,d as o,h as i,e as a,g as s}from"./p-CPRkNQdE.js";import{c as n}from"./p-ChV9xqsO.js";import{h as e}from"./p-AEckDMXh.js";import{c as r}from"./p-CWk1SCJg.js";import{p as d}from"./p-C25F_FlB.js";import{m as l}from"./p-J-ikDhyq.js";import{L as m}from"./p-BmT_DEV2.js";var h={close:"Κλείσιμο"},c={close:"Close"},p={close:"Cerrar"},w={close:"Chiudi"};const f=class{constructor(i){t(this,i),this.openEvent=o(this,"mdsModalOpen",7),this.showEvent=o(this,"mdsModalShow",7),this.closeEvent=o(this,"mdsModalClose",7),this.hideEvent=o(this,"mdsModalHide",7),this.t=new m({el:h,en:c,es:p,it:w}),this.bodyOverflow="",this.cssTransitionDuration="500",this.openAfterRender=!1,this.touchMargin=50,this.hasBottom=!1,this.hasTop=!1,this.hasWindow=!1,this.windowHeaderHeight=0,this.windowFooterHeight=0,this.opened=!1,this.hideBackdrop=!1,this.position="center",this.animation="slide",this.overflow="auto",this.interaction="relaxed",this.updateCSSCustomProps=()=>{var t;if("undefined"==typeof window)return;const o=window.getComputedStyle(this.host);this.cssTransitionDuration=null!==(t=o.getPropertyValue("--mds-modal-transition-duration"))&&void 0!==t?t:"500"},this.stopIntroAnimationWindow=()=>{this.setContentOverflow("auto"),this.showEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.stopOutroAnimationWindow=()=>{this.hideEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.disableOverflow=()=>{"undefined"!=typeof document&&(""!==document.body.style.overflow&&(this.bodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden")},this.enableOverflow=()=>{"undefined"!=typeof document&&(""!==this.bodyOverflow?document.body.style.overflow=this.bodyOverflow:document.body.style.removeProperty("overflow"))},this.setContentOverflow=t=>{this.windowContentWrapper&&(this.windowContentWrapper.style.overflow=t)},this.handleWindowTransitionEnd=t=>{"transform"===t.propertyName&&(this.opened?this.stopIntroAnimationWindow():this.stopOutroAnimationWindow())},this.animateOpenWindow=()=>{this.setContentOverflow("hidden"),clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopIntroAnimationWindow.bind(this),r(this.cssTransitionDuration)+100)},this.animateCloseWindow=()=>{this.setContentOverflow("hidden"),clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopOutroAnimationWindow.bind(this),r(this.cssTransitionDuration)+100)},this.setTouchStart=t=>{this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY},this.setTouchEnd=t=>{if("strict"===this.interaction)return;const o=this.touchStartX-t.changedTouches[0].clientX,i=this.touchStartY-t.changedTouches[0].clientY;if(Math.abs(o)>Math.abs(i)){if("right"===this.position&&o>0)return;if("left"===this.position&&o<0)return;Math.abs(o)>Math.abs(this.touchMargin)&&(this.opened=void 0)}},this.addMobileEvents=()=>{this.windowElement.addEventListener("touchstart",this.setTouchStart),this.windowElement.addEventListener("touchend",this.setTouchEnd)},this.updateSlots=()=>{this.hasBottom=e(this.host,"bottom"),this.hasTop=e(this.host,"top"),this.hasWindow=e(this.host,"window")},this.updateWindowPaddings=()=>{var t,o,i,a;const s=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".window-header"),n=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".window-footer"),e=null!==(i=null==s?void 0:s.offsetHeight)&&void 0!==i?i:0,r=null!==(a=null==n?void 0:n.offsetHeight)&&void 0!==a?a:0;e!==this.windowHeaderHeight&&(this.windowHeaderHeight=e),r!==this.windowFooterHeight&&(this.windowFooterHeight=r)},this.showDialog=()=>{this.dialogEl&&!this.dialogEl.open&&(this.hideBackdrop?this.dialogEl.show():this.dialogEl.showModal(),this.updateWindowPaddings())},this.closeDialog=()=>{var t;(null===(t=this.dialogEl)||void 0===t?void 0:t.open)&&this.dialogEl.close()},this.handleBackdropClick=t=>{"strict"!==this.interaction&&t.target===this.dialogEl&&(this.opened=void 0)},this.handleCancel=t=>{t.preventDefault(),"strict"!==this.interaction&&(this.opened=void 0)}}componentWillLoad(){this.updateSlots(),"auto"===this.overflow&&this.opened&&this.disableOverflow()}componentDidLoad(){var t,o;this.windowElement=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".window"),this.windowContentWrapper=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".window-content-wrapper"),this.updateWindowPaddings(),null!=this.windowElement&&(this.addMobileEvents(),this.windowElement.addEventListener("transitionend",this.handleWindowTransitionEnd)),this.updateCSSCustomProps(),this.opened&&(this.showDialog(),this.animateOpenWindow(),this.openEvent.emit())}componentDidUpdate(){this.openAfterRender&&(this.openAfterRender=!1,this.showDialog(),this.animateOpenWindow(),this.openEvent.emit()),this.updateWindowPaddings()}disconnectedCallback(){this.enableOverflow(),clearTimeout(this.animationDelayTimeout),this.windowElement&&(this.windowElement.removeEventListener("touchstart",this.setTouchStart),this.windowElement.removeEventListener("touchend",this.setTouchEnd),this.windowElement.removeEventListener("transitionend",this.handleWindowTransitionEnd)),this.enableOverflow()}handleOpenProp(t,o){if(t)return"auto"===this.overflow&&this.disableOverflow(),void(this.openAfterRender=!0);this.openAfterRender=!1,o&&(this.opened=void 0,this.closeDialog(),"auto"===this.overflow&&this.enableOverflow(),this.animateCloseWindow(),this.closeEvent.emit())}handleHideBackdropProp(t){!1===t&&(this.hideBackdrop=void 0)}async close(){this.opened=void 0}render(){return i(a,{key:"130854f62fac138b6591a2ec4c1705ca05ca8b70","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},i("dialog",{key:"7084dc11565c61097496422c4486a67f8762b207","aria-label":this.accessibleName,class:"dialog",part:"dialog",ref:t=>this.dialogEl=t,onClick:t=>{this.handleBackdropClick(t)},onCancel:t=>{this.handleCancel(t)}},i("slot",{key:"2e4f92244d7b44818e41c4fef3e74a6cf7bb4f26",name:"window",onSlotchange:this.updateSlots}),!this.hasWindow&&i("div",{key:"0324ceeefcf87b8556f566b64c07d61d8b6c1998",class:"window",part:"window"},i("div",{key:"cf265fba1368260edc2fde502f73b9e62f611e1a",class:n("window-header",!this.hasTop&&"window-content--empty")},i("slot",{key:"6fac90e8dc333bd542aedb90fc3f9acaa90c1c20",name:"top",onSlotchange:this.updateSlots})),i("div",{key:"5c5757b36ad8b91ee0fdeae786a0563c81021d27",class:"window-content-wrapper"},i("div",{key:"31fef2b38cdeb2aa139641fa0ced9dd91705e004",class:"window-content",style:{paddingTop:`${this.windowHeaderHeight}px`,paddingBottom:`${this.windowFooterHeight}px`}},i("slot",{key:"ada016f6844b9f6dd87e74fde3f2e79de5f94f2c"}))),i("div",{key:"a44d2269acb2029442a4c6163039e93289445fcf",class:n("window-footer",!this.hasBottom&&"window-content--empty")},i("slot",{key:"311e1e5c11cb387f40cbd417de0ffa0d5a9dc01f",name:"bottom",onSlotchange:this.updateSlots}))),!this.hasWindow&&i("mds-button",{key:"05f78ff75554f0ce42415f7ad2f73b5f142482ad","aria-label":this.t.get("close"),class:"action-close",icon:l,variant:"light",tone:"text",size:"xl",onClick:()=>{this.opened=void 0},part:"action-close"})))}get host(){return s(this)}static get watchers(){return{opened:[{handleOpenProp:0}],hideBackdrop:[{handleHideBackdropProp:0}]}}};f.style='@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button: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-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0));--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-function:var(--mds-modal-transition-timing-funciton,var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1)));--mds-modal-window-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index,3000);--private-modal-transition-duration:var(--mds-modal-transition-duration,.5s);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-opened-transform:none;--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);display:contents}.dialog{align-items:center;background-color:#0000;border:0;box-sizing:border-box;color:inherit;display:none;fill:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));height:auto;inset:0;justify-content:center;margin:0;max-height:none;max-width:none;overflow:clip;padding:0;perspective:600px;position:fixed;transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function);width:auto;z-index:var(--mds-modal-z-index,1000)}.dialog[open]{display:flex}.dialog::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0);transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function)}:host([hide-backdrop]) .dialog{pointer-events:none}.action-close{--mds-button-color:rgb(var(--magma-on-backdrop,252 252 252));opacity:0;pointer-events:none;position:absolute;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,bottom,color,fill,opacity,top,transform;transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]){--private-modal-opened-transform:var(--private-modal-custom-opened-transform);--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([position=top-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,100%)}.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)))}@starting-style{.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0)}}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-modal-window-radius,0);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:0;grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:hidden}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}.dialog .window,.dialog ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform);transition-duration:var(--private-modal-transition-duration);transition-property:transform,opacity;transition-timing-function:var(--mds-modal-transition-timing-function)}.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:1;pointer-events:auto;transform:var(--private-modal-opened-transform)}@starting-style{.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform)}.window-content-wrapper{overflow:hidden}}:host([position=top-left]) .dialog,:host([position=top-right]) .dialog,:host([position=top]) .dialog{align-items:flex-start}:host([position=center]) .dialog,:host([position=left]) .dialog,:host([position=right]) .dialog{align-items:center}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=bottom]) .dialog{align-items:flex-end}:host([position=bottom-left]) .dialog,:host([position=left]) .dialog,:host([position=top-left]) .dialog{justify-content:flex-start}:host([position=bottom]) .dialog,:host([position=center]) .dialog,:host([position=top]) .dialog{justify-content:center}:host([position=bottom-right]) .dialog,:host([position=right]) .dialog,:host([position=top-right]) .dialog{justify-content:flex-end}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}: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-modal-transition-duration:0s}:host([pref-contrast=more]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@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-modal-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}';export{f as mds_modal}
@@ -1 +1 @@
1
- import{r as i,h as a,e,g as n}from"./p-CPRkNQdE.js";import{b as s}from"./p-AEckDMXh.js";import{m as t}from"./p-J-ikDhyq.js";import{c as d}from"./p-ChV9xqsO.js";import{B as r}from"./p-ZaZnuNvg.js";import{L as m}from"./p-BmT_DEV2.js";import"./p-BaFfIZGB.js";import"./p-D8eZRaSQ.js";import"./p-Cvhn9asj.js";import"./p-C25F_FlB.js";var o={closeMenu:"Κλείσιμο μενού",openMenu:"Άνοιγμα μενού"},l={closeMenu:"Close menu",openMenu:"Open menu"},u={closeMenu:"Cerrar el menú",openMenu:"Abrir el menú"},c={closeMenu:"Chiudi il menu",openMenu:"Apri il menu"};const h=class{constructor(a){i(this,a),this.t=new m({el:o,en:l,es:u,it:c}),this.backdropController=new r("mds-radial-menu-backdrop"),this.direction="clockwise",this.backdrop=!1,this.interaction="click",this.variant="dark",this.tone="strong",this.size="lg",this.toggleMenu=()=>{this.opened=!0!==this.opened||void 0},this.setItemSize=()=>{var i;null===(i=this.items)||void 0===i||i.forEach((i=>{i.size=this.size}))},this.setItemIndex=()=>{this.items.forEach(((i,a)=>{i.style.setProperty("--mds-radial-menu-item-index",a.toString())}))},this.writeGeometry=(i,a,e)=>{"number"==typeof a&&Number.isFinite(a)?this.hostElement.style.setProperty(i,`${a}${e}`):this.hostElement.style.removeProperty(i)},this.updateItems=()=>{this.items=s(this.hostElement,"item"),this.setItemSize(),this.setItemIndex(),this.hostElement.style.setProperty("--mds-radial-menu-nth-siblings",(this.items.length-1).toString())},this.handleOutsideClick=i=>{i.composedPath().includes(this.hostElement)||(this.opened=void 0)},this.handleEscape=i=>{var a,e;if("Escape"!==i.key)return;const n=this.hostElement.matches(":focus-within");this.opened=void 0,n&&"click"===this.interaction&&(null===(e=null===(a=this.hostElement.shadowRoot)||void 0===a?void 0:a.querySelector(".menu-button"))||void 0===e||e.focus())},this.listenOutside=i=>{"undefined"!=typeof document&&(document.removeEventListener("click",this.handleOutsideClick),document.removeEventListener("keydown",this.handleEscape),i&&(document.addEventListener("click",this.handleOutsideClick),document.addEventListener("keydown",this.handleEscape)))},this.toggleRightClickMenu=i=>{i.preventDefault(),this.hostElement.style.top=i.clientY-this.hostElement.offsetHeight/2+"px",this.hostElement.style.left=i.clientX-this.hostElement.offsetWidth/2+"px",this.toggleMenu()},this.handleBackdrop=()=>{this.backdrop&&this.opened?this.backdropController.attachBackdrop():this.backdropController.detachBackdrop()}}componentWillLoad(){var i;this.icon=null!==(i=this.icon)&&void 0!==i?i:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z"/></svg>',this.onAngleStartChange(this.angleStart),this.onAngleEndChange(this.angleEnd),this.onRadiusChange(this.radius),this.onSizeChange()}componentDidLoad(){this.updateItems(),this.onOpenedChange(this.opened),this.onInteractionChange(this.interaction)}disconnectedCallback(){"undefined"!=typeof document&&(document.removeEventListener("contextmenu",this.toggleRightClickMenu),this.listenOutside(!1))}onDiscChanged(i){!1===i&&(this.disc=void 0)}backdropChanged(i){!1===i&&(this.backdrop=void 0),this.handleBackdrop()}onInteractionChange(i){"undefined"!=typeof document&&("rightclick"!==i?document.removeEventListener("contextmenu",this.toggleRightClickMenu):document.addEventListener("contextmenu",this.toggleRightClickMenu))}onAngleStartChange(i){this.writeGeometry("--mds-radial-menu-angle-start",i,"deg")}onAngleEndChange(i){this.writeGeometry("--mds-radial-menu-angle-end",i,"deg")}onRadiusChange(i){this.writeGeometry("--mds-radial-menu-radius",i,"rem")}onSizeChange(){this.setItemSize()}onOpenedChange(i){!1===i&&(this.opened=void 0),this.handleBackdrop(),this.listenOutside(!!i)}render(){return a(e,{key:"c5a582982c21659ccfd9bd98087618684cd63f9e"},a("mds-button",{key:"e0e1ebac3cbbc01309ac5d00f1be700de5684d7d","aria-label":this.t.get(this.opened?"closeMenu":"openMenu"),class:d("menu-button","click"!==this.interaction&&"menu-button--hidden"),icon:this.opened?t:this.icon,tone:this.tone,variant:this.variant,size:this.size,onClick:this.toggleMenu}),a("div",{key:"d1ab37944bcbb3e1a29864505dce944f57664e8e",class:"radial-menu",part:"radial-menu"},a("slot",{key:"257fd5627010baeea6f7ffef7df9b1fc5d213bba",name:"item",onSlotchange:this.updateItems})),a("div",{key:"053a8e63406762eacc41f8f46340e9f3f86625c5",class:"disc"}))}get hostElement(){return n(this)}static get watchers(){return{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}}};h.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button: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-radial-menu-angle-start:0deg;--mds-radial-menu-angle-end:360deg;--mds-radial-menu-context-menu-z-index:var(--magma-context-menu-z-index,8000);--mds-radial-menu-delay:10ms;--mds-radial-menu-direction:-1;--mds-radial-menu-disc-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))/.5);--mds-radial-menu-disc-filter:blur(8px);--mds-radial-menu-disc-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-radial-menu-disc-size:calc(var(--mds-radial-menu-radius,5rem)*2);--mds-radial-menu-radius:5rem;--mds-radial-menu-transition-duration:.5s;--mds-radial-menu-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-radial-menu-nth-siblings:0;--mds-radial-menu-disc-delay:0s;--mds-radial-menu-disc-scale:0;--mds-radial-menu-radius-current:0;--private-radial-menu-sweep:calc(var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg));--mds-radial-menu-is-full-circle:cos(clamp(0deg,max(var(--private-radial-menu-sweep) - 360deg,360deg - var(--private-radial-menu-sweep)) * 1000,90deg));--mds-radial-menu-is-start-greater-than-end:sin(clamp(-90deg,var(--private-radial-menu-sweep) * 1000,90deg));display:inline-flex;position:relative;transition-duration:var(--mds-radial-menu-transition-duration);transition-property:top,left;transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:var(--magma-dropdown-z-index,5000)}:host([direction=clockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*-1)}:host([direction=counterclockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*1)}.menu-button{border-radius:100%;position:relative;transform:scale(1);transition-duration:var(--mds-radial-menu-transition-duration);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:2}:host(:not([opened])) .menu-button--hidden{transform:scale(0)}.radial-menu{inset:0;pointer-events:none;position:absolute;transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-property:z-index;z-index:3}:host(:not([opened])) .radial-menu{transition-delay:0s;z-index:1}:host(:not([opened])){--mds-radial-menu-radius-current:0}:host([opened]){--mds-radial-menu-radius-current:var(--mds-radial-menu-radius,5rem)}:host([opened]) ::slotted(mds-radial-menu-item){pointer-events:auto;transform:scale(1)}::slotted(mds-radial-menu-item){--mds-radial-menu-item-offset-per-child:calc((var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg))/(var(--mds-radial-menu-nth-siblings) + var(--mds-radial-menu-is-full-circle)));--mds-radial-menu-item-angle-offset:calc(var(--mds-radial-menu-direction,-1)*var(--mds-radial-menu-item-index)*var(--mds-radial-menu-item-offset-per-child));--mds-radial-menu-item-delay:calc((var(--mds-radial-menu-item-index) + 1)*var(--mds-radial-menu-delay,10ms));--mds-radial-menu-item-translate:calc(cos((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current)) calc(sin((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current) * -1)}.disc{--size:calc(var(--mds-radial-menu-disc-size,calc(5rem * 2)) + var(--mds-radial-menu-radius,5rem));-webkit-backdrop-filter:var(--mds-radial-menu-disc-filter);backdrop-filter:var(--mds-radial-menu-disc-filter);background-color:var(--mds-radial-menu-disc-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))/.5));border-radius:100%;box-shadow:var(--mds-radial-menu-disc-shadow);display:inline-flex;height:var(--size);inset:50%;position:absolute;transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));transition-delay:var(--mds-radial-menu-disc-delay);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:height,transform,width;transition-timing-function:var(--mds-radial-menu-transition-timing-function);width:var(--size);z-index:0}:host(:not([opened][disc])){--mds-radial-menu-disc-scale:0;--mds-radial-menu-disc-delay:calc((var(--mds-radial-menu-nth-siblings) + 1)*var(--mds-radial-menu-delay,10ms))}:host([opened][disc]){--mds-radial-menu-disc-scale:1;--mds-radial-menu-disc-delay:0s}:host([interaction=rightclick]){position:fixed;z-index:var(--mds-radial-menu-context-menu-z-index,var(--magma-context-menu-z-index,8000))}";export{h as mds_radial_menu}
1
+ import{r as i,h as a,e,g as n}from"./p-CPRkNQdE.js";import{b as s}from"./p-AEckDMXh.js";import{m as t}from"./p-J-ikDhyq.js";import{c as d}from"./p-ChV9xqsO.js";import{B as r}from"./p-DmFo8_MF.js";import{L as m}from"./p-BmT_DEV2.js";import"./p-BaFfIZGB.js";import"./p-CWk1SCJg.js";import"./p-Cvhn9asj.js";import"./p-C25F_FlB.js";var o={closeMenu:"Κλείσιμο μενού",openMenu:"Άνοιγμα μενού"},l={closeMenu:"Close menu",openMenu:"Open menu"},u={closeMenu:"Cerrar el menú",openMenu:"Abrir el menú"},c={closeMenu:"Chiudi il menu",openMenu:"Apri il menu"};const h=class{constructor(a){i(this,a),this.t=new m({el:o,en:l,es:u,it:c}),this.backdropController=new r("mds-radial-menu-backdrop"),this.direction="clockwise",this.backdrop=!1,this.interaction="click",this.variant="dark",this.tone="strong",this.size="lg",this.toggleMenu=()=>{this.opened=!0!==this.opened||void 0},this.setItemSize=()=>{var i;null===(i=this.items)||void 0===i||i.forEach((i=>{i.size=this.size}))},this.setItemIndex=()=>{this.items.forEach(((i,a)=>{i.style.setProperty("--mds-radial-menu-item-index",a.toString())}))},this.writeGeometry=(i,a,e)=>{"number"==typeof a&&Number.isFinite(a)?this.hostElement.style.setProperty(i,`${a}${e}`):this.hostElement.style.removeProperty(i)},this.updateItems=()=>{this.items=s(this.hostElement,"item"),this.setItemSize(),this.setItemIndex(),this.hostElement.style.setProperty("--mds-radial-menu-nth-siblings",(this.items.length-1).toString())},this.handleOutsideClick=i=>{i.composedPath().includes(this.hostElement)||(this.opened=void 0)},this.handleEscape=i=>{var a,e;if("Escape"!==i.key)return;const n=this.hostElement.matches(":focus-within");this.opened=void 0,n&&"click"===this.interaction&&(null===(e=null===(a=this.hostElement.shadowRoot)||void 0===a?void 0:a.querySelector(".menu-button"))||void 0===e||e.focus())},this.listenOutside=i=>{"undefined"!=typeof document&&(document.removeEventListener("click",this.handleOutsideClick),document.removeEventListener("keydown",this.handleEscape),i&&(document.addEventListener("click",this.handleOutsideClick),document.addEventListener("keydown",this.handleEscape)))},this.toggleRightClickMenu=i=>{i.preventDefault(),this.hostElement.style.top=i.clientY-this.hostElement.offsetHeight/2+"px",this.hostElement.style.left=i.clientX-this.hostElement.offsetWidth/2+"px",this.toggleMenu()},this.handleBackdrop=()=>{this.backdrop&&this.opened?this.backdropController.attachBackdrop():this.backdropController.detachBackdrop()}}componentWillLoad(){var i;this.icon=null!==(i=this.icon)&&void 0!==i?i:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z"/></svg>',this.onAngleStartChange(this.angleStart),this.onAngleEndChange(this.angleEnd),this.onRadiusChange(this.radius),this.onSizeChange()}componentDidLoad(){this.updateItems(),this.onOpenedChange(this.opened),this.onInteractionChange(this.interaction)}disconnectedCallback(){"undefined"!=typeof document&&(document.removeEventListener("contextmenu",this.toggleRightClickMenu),this.listenOutside(!1))}onDiscChanged(i){!1===i&&(this.disc=void 0)}backdropChanged(i){!1===i&&(this.backdrop=void 0),this.handleBackdrop()}onInteractionChange(i){"undefined"!=typeof document&&("rightclick"!==i?document.removeEventListener("contextmenu",this.toggleRightClickMenu):document.addEventListener("contextmenu",this.toggleRightClickMenu))}onAngleStartChange(i){this.writeGeometry("--mds-radial-menu-angle-start",i,"deg")}onAngleEndChange(i){this.writeGeometry("--mds-radial-menu-angle-end",i,"deg")}onRadiusChange(i){this.writeGeometry("--mds-radial-menu-radius",i,"rem")}onSizeChange(){this.setItemSize()}onOpenedChange(i){!1===i&&(this.opened=void 0),this.handleBackdrop(),this.listenOutside(!!i)}render(){return a(e,{key:"c5a582982c21659ccfd9bd98087618684cd63f9e"},a("mds-button",{key:"e0e1ebac3cbbc01309ac5d00f1be700de5684d7d","aria-label":this.t.get(this.opened?"closeMenu":"openMenu"),class:d("menu-button","click"!==this.interaction&&"menu-button--hidden"),icon:this.opened?t:this.icon,tone:this.tone,variant:this.variant,size:this.size,onClick:this.toggleMenu}),a("div",{key:"d1ab37944bcbb3e1a29864505dce944f57664e8e",class:"radial-menu",part:"radial-menu"},a("slot",{key:"257fd5627010baeea6f7ffef7df9b1fc5d213bba",name:"item",onSlotchange:this.updateItems})),a("div",{key:"053a8e63406762eacc41f8f46340e9f3f86625c5",class:"disc"}))}get hostElement(){return n(this)}static get watchers(){return{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}}};h.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button: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-radial-menu-angle-start:0deg;--mds-radial-menu-angle-end:360deg;--mds-radial-menu-context-menu-z-index:var(--magma-context-menu-z-index,8000);--mds-radial-menu-delay:10ms;--mds-radial-menu-direction:-1;--mds-radial-menu-disc-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))/.5);--mds-radial-menu-disc-filter:blur(8px);--mds-radial-menu-disc-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-radial-menu-disc-size:calc(var(--mds-radial-menu-radius,5rem)*2);--mds-radial-menu-radius:5rem;--mds-radial-menu-transition-duration:.5s;--mds-radial-menu-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-radial-menu-nth-siblings:0;--mds-radial-menu-disc-delay:0s;--mds-radial-menu-disc-scale:0;--mds-radial-menu-radius-current:0;--private-radial-menu-sweep:calc(var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg));--mds-radial-menu-is-full-circle:cos(clamp(0deg,max(var(--private-radial-menu-sweep) - 360deg,360deg - var(--private-radial-menu-sweep)) * 1000,90deg));--mds-radial-menu-is-start-greater-than-end:sin(clamp(-90deg,var(--private-radial-menu-sweep) * 1000,90deg));display:inline-flex;position:relative;transition-duration:var(--mds-radial-menu-transition-duration);transition-property:top,left;transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:var(--magma-dropdown-z-index,5000)}:host([direction=clockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*-1)}:host([direction=counterclockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*1)}.menu-button{border-radius:100%;position:relative;transform:scale(1);transition-duration:var(--mds-radial-menu-transition-duration);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:2}:host(:not([opened])) .menu-button--hidden{transform:scale(0)}.radial-menu{inset:0;pointer-events:none;position:absolute;transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-property:z-index;z-index:3}:host(:not([opened])) .radial-menu{transition-delay:0s;z-index:1}:host(:not([opened])){--mds-radial-menu-radius-current:0}:host([opened]){--mds-radial-menu-radius-current:var(--mds-radial-menu-radius,5rem)}:host([opened]) ::slotted(mds-radial-menu-item){pointer-events:auto;transform:scale(1)}::slotted(mds-radial-menu-item){--mds-radial-menu-item-offset-per-child:calc((var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg))/(var(--mds-radial-menu-nth-siblings) + var(--mds-radial-menu-is-full-circle)));--mds-radial-menu-item-angle-offset:calc(var(--mds-radial-menu-direction,-1)*var(--mds-radial-menu-item-index)*var(--mds-radial-menu-item-offset-per-child));--mds-radial-menu-item-delay:calc((var(--mds-radial-menu-item-index) + 1)*var(--mds-radial-menu-delay,10ms));--mds-radial-menu-item-translate:calc(cos((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current)) calc(sin((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current) * -1)}.disc{--size:calc(var(--mds-radial-menu-disc-size,calc(5rem * 2)) + var(--mds-radial-menu-radius,5rem));-webkit-backdrop-filter:var(--mds-radial-menu-disc-filter);backdrop-filter:var(--mds-radial-menu-disc-filter);background-color:var(--mds-radial-menu-disc-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))/.5));border-radius:100%;box-shadow:var(--mds-radial-menu-disc-shadow);display:inline-flex;height:var(--size);inset:50%;position:absolute;transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));transition-delay:var(--mds-radial-menu-disc-delay);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:height,transform,width;transition-timing-function:var(--mds-radial-menu-transition-timing-function);width:var(--size);z-index:0}:host(:not([opened][disc])){--mds-radial-menu-disc-scale:0;--mds-radial-menu-disc-delay:calc((var(--mds-radial-menu-nth-siblings) + 1)*var(--mds-radial-menu-delay,10ms))}:host([opened][disc]){--mds-radial-menu-disc-scale:1;--mds-radial-menu-disc-delay:0s}:host([interaction=rightclick]){position:fixed;z-index:var(--mds-radial-menu-context-menu-z-index,var(--magma-context-menu-z-index,8000))}";export{h as mds_radial_menu}