@maggioli-design-system/magma 2.0.0-beta.5 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/cjs/index.cjs.js +64 -22
- package/dist/cjs/{locale.it-D-rxNDkm.js → locale.it-CfUV2hxK.js} +13 -10
- package/dist/cjs/mds-avatar.cjs.entry.js +27 -32
- package/dist/cjs/mds-badge.cjs.entry.js +3 -2
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -2
- package/dist/cjs/mds-bibliography.cjs.entry.js +4 -3
- package/dist/cjs/mds-button_3.cjs.entry.js +36 -10
- package/dist/cjs/mds-dropdown.cjs.entry.js +4 -3
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +18 -18
- package/dist/cjs/mds-file.cjs.entry.js +1 -1
- package/dist/cjs/mds-header.cjs.entry.js +17 -8
- package/dist/cjs/mds-img.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-date-range.cjs.entry.js +7 -5
- package/dist/cjs/mds-input-select.cjs.entry.js +10 -8
- package/dist/cjs/mds-input-upload.cjs.entry.js +10 -6
- package/dist/cjs/mds-input.cjs.entry.js +4 -4
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +8 -5
- package/dist/cjs/mds-keyboard.cjs.entry.js +6 -3
- package/dist/cjs/mds-mention.cjs.entry.js +3 -2
- package/dist/cjs/mds-notification.cjs.entry.js +11 -8
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -2
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +3 -2
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +5 -3
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +3 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-text.cjs.entry.js +2 -1
- package/dist/cjs/mds-toast.cjs.entry.js +9 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +4 -4
- package/dist/collection/common/file.js +13 -10
- package/dist/collection/components/mds-avatar/mds-avatar.js +27 -32
- package/dist/collection/components/mds-badge/mds-badge.js +3 -2
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -2
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -3
- package/dist/collection/components/mds-button/mds-button.js +7 -6
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -3
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +6 -7
- package/dist/collection/components/mds-header/mds-header.js +17 -8
- package/dist/collection/components/mds-icon/mds-icon.js +29 -4
- package/dist/collection/components/mds-icon/services/icons-set.service.js +47 -18
- package/dist/collection/components/mds-img/mds-img.js +3 -3
- package/dist/collection/components/mds-input/mds-input.js +4 -4
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +7 -5
- package/dist/collection/components/mds-input-select/mds-input-select.js +10 -8
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +10 -6
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -3
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +8 -5
- package/dist/collection/components/mds-mention/mds-mention.js +3 -2
- package/dist/collection/components/mds-notification/mds-notification.js +11 -8
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +3 -2
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +5 -3
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +3 -2
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -2
- package/dist/collection/components/mds-text/mds-text.js +2 -1
- package/dist/collection/components/mds-toast/mds-toast.js +9 -3
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +4 -4
- package/dist/collection/dictionary/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/{p-D3-GP4KF.js → p-6K9sFzLr.js} +1 -1
- package/dist/components/p-BBhbQT2f.js +1 -0
- package/dist/components/{p-B2A_hlV2.js → p-BFpRu7yD.js} +1 -1
- package/dist/components/p-BL63WAAq.js +8 -0
- package/dist/components/{p-Deh5Aia-.js → p-BShLEry5.js} +1 -1
- package/dist/components/{p-BJNK4p33.js → p-BYxxgEE_.js} +1 -1
- package/dist/components/p-BZFyAX-6.js +1 -0
- package/dist/components/p-BtMdmkID.js +1 -0
- package/dist/components/{p-Caksrfcd.js → p-ByaUOMp0.js} +1 -1
- package/dist/components/p-C1xZO_fq.js +1 -0
- package/dist/components/{p-cBZsPiMJ.js → p-C6Q4zFh6.js} +1 -1
- package/dist/components/{p-DLE5TNTp.js → p-CUQ7WIXh.js} +1 -1
- package/dist/components/p-Cd_8zD_I.js +1 -0
- package/dist/components/{p-DtxB7DYE.js → p-CnAeawmf.js} +1 -1
- package/dist/components/{p-Bt4xX5ww.js → p-DCrjf0F0.js} +1 -1
- package/dist/components/p-DlHJvYE7.js +1 -0
- package/dist/components/{p-BH3bWzRT.js → p-DlaJNPdd.js} +1 -1
- package/dist/components/{p-sqRs6oj4.js → p-DnrQaRnh.js} +1 -1
- package/dist/components/{p-CBLAz3_J.js → p-OPg_Naue.js} +1 -1
- package/dist/components/{p-C03KYHGv.js → p-RS4yyl41.js} +1 -1
- package/dist/components/{p--8aaJX-p.js → p-gv3eu44S.js} +1 -1
- package/dist/components/p-kff6xSdW.js +1 -0
- package/dist/components/p-pys1EQ60.js +1 -0
- package/dist/components/p-qketFgr0.js +1 -0
- package/dist/components/{p-B14Ci2fO.js → p-s2Gu6hY7.js} +1 -1
- package/dist/components/p-zml3K7nx.js +1 -0
- package/dist/documentation.json +5 -5
- package/dist/esm/index.js +64 -22
- package/dist/esm/{locale.it-Dj8sWDfj.js → locale.it-Cvxh7La5.js} +13 -10
- package/dist/esm/mds-avatar.entry.js +27 -32
- package/dist/esm/mds-badge.entry.js +3 -2
- package/dist/esm/mds-benchmark-bar.entry.js +3 -2
- package/dist/esm/mds-bibliography.entry.js +4 -3
- package/dist/esm/mds-button_3.entry.js +36 -10
- package/dist/esm/mds-dropdown.entry.js +4 -3
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +18 -18
- package/dist/esm/mds-file.entry.js +1 -1
- package/dist/esm/mds-header.entry.js +17 -8
- package/dist/esm/mds-img.entry.js +3 -3
- package/dist/esm/mds-input-date-range.entry.js +7 -5
- package/dist/esm/mds-input-select.entry.js +10 -8
- package/dist/esm/mds-input-upload.entry.js +10 -6
- package/dist/esm/mds-input.entry.js +4 -4
- package/dist/esm/mds-keyboard-key.entry.js +8 -5
- package/dist/esm/mds-keyboard.entry.js +6 -3
- package/dist/esm/mds-mention.entry.js +3 -2
- package/dist/esm/mds-notification.entry.js +11 -8
- package/dist/esm/mds-pref-language-item.entry.js +3 -2
- package/dist/esm/mds-pref-theme-item.entry.js +3 -2
- package/dist/esm/mds-push-notification-item.entry.js +1 -1
- package/dist/esm/mds-stepper-bar.entry.js +5 -3
- package/dist/esm/mds-tab-bar-item.entry.js +3 -2
- package/dist/esm/mds-table-header-cell.entry.js +2 -2
- package/dist/esm/mds-text.entry.js +2 -1
- package/dist/esm/mds-toast.entry.js +9 -3
- package/dist/esm/mds-tooltip.entry.js +4 -4
- package/dist/esm-es5/index.js +37 -26
- package/dist/esm-es5/locale.it-Cvxh7La5.js +6 -0
- package/dist/esm-es5/mds-avatar.entry.js +4 -2
- package/dist/esm-es5/mds-badge.entry.js +2 -3
- package/dist/esm-es5/mds-benchmark-bar.entry.js +2 -3
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +14 -9
- package/dist/esm-es5/mds-dropdown.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +13 -11
- package/dist/esm-es5/mds-file.entry.js +6 -6
- package/dist/esm-es5/mds-header.entry.js +8 -6
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +5 -3
- package/dist/esm-es5/mds-input-select.entry.js +8 -6
- package/dist/esm-es5/mds-input-upload.entry.js +3 -1
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +3 -1
- package/dist/esm-es5/mds-keyboard.entry.js +4 -2
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +4 -2
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -4
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +4 -2
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/hydrate/index.js +283 -174
- package/dist/hydrate/index.mjs +283 -174
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-005172ba.entry.js +1 -0
- package/dist/magma-components/{p-9ca7932d.system.entry.js → p-05fa40aa.system.entry.js} +5 -3
- package/dist/magma-components/p-0827a5bd.entry.js +1 -0
- package/dist/magma-components/{p-1a8c5086.system.entry.js → p-15c77a98.system.entry.js} +2 -2
- package/dist/magma-components/p-18473d2f.entry.js +1 -0
- package/dist/magma-components/{p-f0a168f4.system.entry.js → p-18667ae7.system.entry.js} +3 -3
- package/dist/magma-components/p-19adde9d.entry.js +1 -0
- package/dist/magma-components/p-2217a7be.entry.js +1 -0
- package/dist/magma-components/{p-5a7ead55.system.entry.js → p-2386f0d6.system.entry.js} +2 -2
- package/dist/magma-components/p-2b56fc14.entry.js +1 -0
- package/dist/magma-components/p-3f747a63.system.entry.js +1 -0
- package/dist/magma-components/p-3ff30842.system.entry.js +16 -0
- package/dist/magma-components/{p-be692266.system.entry.js → p-49b120cb.system.entry.js} +2 -2
- package/dist/magma-components/{p-6cd7cfe3.entry.js → p-4af76eb3.entry.js} +1 -1
- package/dist/magma-components/p-4ba6cb3f.entry.js +1 -0
- package/dist/magma-components/p-4cadbd49.entry.js +1 -0
- package/dist/magma-components/{p-7f2e3b74.system.entry.js → p-4f107cb2.system.entry.js} +31 -31
- package/dist/magma-components/p-4oB0woT9.system.js +6 -0
- package/dist/magma-components/p-518b55f3.entry.js +1 -0
- package/dist/magma-components/{p-960dc9b5.system.entry.js → p-5eec629c.system.entry.js} +4 -2
- package/dist/magma-components/{p-a8ec3080.system.entry.js → p-646034cb.system.entry.js} +1 -1
- package/dist/magma-components/{p-ce4e1a41.system.entry.js → p-677ab154.system.entry.js} +3 -1
- package/dist/magma-components/p-759133b3.entry.js +1 -0
- package/dist/magma-components/{p-cd5866c8.entry.js → p-7912f877.entry.js} +1 -1
- package/dist/magma-components/{p-3d8e63a2.system.entry.js → p-7d304fd4.system.entry.js} +3 -1
- package/dist/magma-components/{p-07fde74d.system.entry.js → p-7f6d708c.system.entry.js} +6 -4
- package/dist/magma-components/{p-6edc4f16.system.entry.js → p-88564e9b.system.entry.js} +1 -1
- package/dist/magma-components/{p-8103d4d4.system.entry.js → p-8b1abf81.system.entry.js} +12 -10
- package/dist/magma-components/p-8bbee38d.entry.js +1 -0
- package/dist/magma-components/{p-481008e9.system.entry.js → p-8bf680d6.system.entry.js} +5 -3
- package/dist/magma-components/{p-ce0ecc75.system.entry.js → p-8cb3a071.system.entry.js} +2 -2
- package/dist/magma-components/p-8f229eaf.entry.js +1 -0
- package/dist/magma-components/{p-3f7d3060.system.entry.js → p-94fa3396.system.entry.js} +14 -9
- package/dist/magma-components/{p-0ad3b4da.system.entry.js → p-9bbd4193.system.entry.js} +6 -6
- package/dist/magma-components/p-9caffe14.entry.js +1 -0
- package/dist/magma-components/p-9de1ac7f.entry.js +1 -0
- package/dist/magma-components/p-B6mQg6yQ.js +1 -0
- package/dist/magma-components/p-CnXBPjmc.system.js +1 -1
- package/dist/magma-components/{p-CBam2PI8.system.js → p-DVd2EM-q.system.js} +29 -18
- package/dist/magma-components/{p-f1462410.system.entry.js → p-a15da479.system.entry.js} +3 -4
- package/dist/magma-components/{p-e05d2df8.system.entry.js → p-ab997243.system.entry.js} +2 -2
- package/dist/magma-components/{p-efe8d359.entry.js → p-aea6081f.entry.js} +1 -1
- package/dist/magma-components/{p-1c0a7e24.system.entry.js → p-b0539d61.system.entry.js} +7 -5
- package/dist/magma-components/{p-9d9a947b.entry.js → p-b35c26f8.entry.js} +2 -2
- package/dist/magma-components/p-cc033985.system.entry.js +14 -0
- package/dist/magma-components/{p-a3fc2ea4.system.entry.js → p-cd84a264.system.entry.js} +7 -5
- package/dist/magma-components/p-d0457835.entry.js +1 -0
- package/dist/magma-components/p-d64311e2.entry.js +1 -0
- package/dist/magma-components/{p-54b995c2.system.entry.js → p-da4dc390.system.entry.js} +1 -1
- package/dist/magma-components/p-dda7a33b.entry.js +1 -0
- package/dist/magma-components/p-e375c8b1.entry.js +1 -0
- package/dist/magma-components/p-e3fce8ca.entry.js +1 -0
- package/dist/magma-components/{p-9626eaff.system.entry.js → p-e9a16f22.system.entry.js} +3 -3
- package/dist/magma-components/p-ea0091b6.entry.js +1 -0
- package/dist/magma-components/{p-a3279a73.system.entry.js → p-ec00defc.system.entry.js} +6 -4
- package/dist/magma-components/p-edfb0d7a.entry.js +1 -0
- package/dist/magma-components/{p-0715a2cb.system.entry.js → p-f9d9cf7c.system.entry.js} +2 -3
- package/dist/magma-components/p-fa163e86.entry.js +1 -0
- package/dist/magma-components/p-fe19080a.entry.js +8 -0
- package/dist/magma-components/p-ff49fb35.entry.js +1 -0
- package/dist/stats.json +411 -411
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
- package/dist/types/components/mds-header/mds-header.d.ts +1 -0
- package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +10 -9
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +1 -0
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
- package/package.json +11 -11
- package/dist/components/p-B9DJLgwr.js +0 -1
- package/dist/components/p-BouRLCYL.js +0 -1
- package/dist/components/p-CVgKDZPF.js +0 -1
- package/dist/components/p-CatD1iUY.js +0 -1
- package/dist/components/p-CbufYCNj.js +0 -1
- package/dist/components/p-Cehcn85x.js +0 -1
- package/dist/components/p-D8I1RblC.js +0 -1
- package/dist/components/p-DaI5QqNu.js +0 -1
- package/dist/components/p-Dj_oN194.js +0 -1
- package/dist/components/p-DmELzfvf.js +0 -1
- package/dist/components/p-sUKtonkE.js +0 -8
- package/dist/esm-es5/locale.it-Dj8sWDfj.js +0 -1
- package/dist/magma-components/p-03be5c0c.entry.js +0 -1
- package/dist/magma-components/p-0af8d821.entry.js +0 -1
- package/dist/magma-components/p-1780b8ba.entry.js +0 -1
- package/dist/magma-components/p-1dcfb13e.entry.js +0 -1
- package/dist/magma-components/p-241dbf61.entry.js +0 -1
- package/dist/magma-components/p-4297da23.system.entry.js +0 -1
- package/dist/magma-components/p-454c4774.entry.js +0 -1
- package/dist/magma-components/p-59de81ac.entry.js +0 -1
- package/dist/magma-components/p-5e43274a.system.entry.js +0 -15
- package/dist/magma-components/p-66ce2dee.entry.js +0 -1
- package/dist/magma-components/p-69d1b815.entry.js +0 -1
- package/dist/magma-components/p-75fcf1a4.entry.js +0 -1
- package/dist/magma-components/p-78fef00a.entry.js +0 -1
- package/dist/magma-components/p-7d317ff0.entry.js +0 -8
- package/dist/magma-components/p-7fc29447.entry.js +0 -1
- package/dist/magma-components/p-8b7fa8d7.entry.js +0 -1
- package/dist/magma-components/p-9b2ee3fe.entry.js +0 -1
- package/dist/magma-components/p-CSb7Iu19.js +0 -1
- package/dist/magma-components/p-a5ac5e0b.entry.js +0 -1
- package/dist/magma-components/p-a906a02f.system.entry.js +0 -16
- package/dist/magma-components/p-ac544ab1.entry.js +0 -1
- package/dist/magma-components/p-b23a6c83.entry.js +0 -1
- package/dist/magma-components/p-b9fecfd5.entry.js +0 -1
- package/dist/magma-components/p-c1fb2eb7.entry.js +0 -1
- package/dist/magma-components/p-c70d7159.entry.js +0 -1
- package/dist/magma-components/p-ddbdce09.entry.js +0 -1
- package/dist/magma-components/p-e3e893c4.entry.js +0 -1
- package/dist/magma-components/p-e4868ade.entry.js +0 -1
- package/dist/magma-components/p-ihVfCXG4.system.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,d as s,h as a,c as r,t as
|
|
1
|
+
import{p as t,H as e,d as s,h as a,c as r,t as o}from"./p-BhFTcUD0.js";import{m as i}from"./p-XQgkfNpn.js";import{L as m}from"./p-Bss3F51Q.js";import{p as n}from"./p-CvIFS8oA.js";import{d as l}from"./p-kff6xSdW.js";import{d}from"./p-qketFgr0.js";import{d as c}from"./p-C58NKMEE.js";import{d as f}from"./p-wq6nWuWE.js";import{d as h}from"./p-6K9sFzLr.js";import{d as p}from"./p-BZFyAX-6.js";var u={contrastMore:"Περισσότερο",contrastDefault:"Προεπιλογή",label:"Αντίθεση",systemSettings:"Ρυθμίσεις συστήματος"},b={contrastMore:"More",contrastDefault:"Default",label:"Contrast",systemSettings:"System settings"},g={contrastMore:"Mayor",contrastDefault:"Predeterminado",label:"Contraste",systemSettings:"Sistema operativo"},y={contrastMore:"Maggiore",contrastDefault:"Predefinito",label:"Contrasto",systemSettings:"Sistema operativo"};const v=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.prefChangeEvent=s(this,"mdsPrefChange",7),this.localStorageAlias="mdsPrefContrast",this.customPropertyAlias="--magma-pref-contrast",this.defaultMode="system",this.t=new m({el:u,en:b,es:g,it:y}),this.prefersDefaults={custom:"no-preference",less:"no-preference",more:"more","no-preference":"no-preference"},this.contrast={more:{selector:"pref-contrast-more",label:"contrastMore"},system:{selector:"pref-contrast-system",label:"systemSettings"},"no-preference":{selector:"pref-contrast-no-preference",label:"contrastDefault"}},this.rollbackContrast=()=>{if("undefined"==typeof window)return this.defaultMode;for(const t in this.prefersDefaults)if({}.hasOwnProperty.call(this.prefersDefaults,t)&&window.matchMedia(`(prefers-contrast: ${t})`).matches)return this.prefersDefaults[t];return this.defaultMode},this.setContrast=t=>{if(this.prefChangeEvent.emit({preference:"contrast"}),this.rollbackContrast(),this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.contrast)({}).hasOwnProperty.call(this.contrast,t)&&(null==e||e.classList.remove(this.contrast[t].selector));null==e||e.classList.add(this.contrast[t].selector),null==e||e.style.setProperty(this.customPropertyAlias,this.mode)}n.state.contrast=t},this.handleModeClick=t=>()=>{this.setContrast(t)}}componentWillRender(){var t,e;this.setContrast(null!==(e=null!==(t=this.mode)&&void 0!==t?t:localStorage.getItem(this.localStorageAlias))&&void 0!==e?e:this.defaultMode)}modeChanged(t,e){t!==e&&this.setContrast(t)}render(){var t;return a(r,{key:"dfa5f7d0811bb1acc4e0ef9be168c857ab5704af","pref-contrast":n.state.contrast},a("mds-text",{key:"4cc4662732f75c2197a7f32f812aa1ff7cb94d5e",class:"info",typography:"caption"},a("b",{key:"ea29991f41f4241aa2f89eabe8a244e9c383cd7d"},this.t.get("label"))," ",this.t.get(this.contrast[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label)),a("mds-tab",{key:"e2138c0af0e534a75bd92fe1e11620efa4415957",fill:!0,size:this.size},a("mds-tab-item",{key:"5a7c2fb077c0874ac731de09cfb735d70b7bc9bc",selected:"more"===this.mode,onClick:this.handleModeClick("more"),class:"item item--more",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2S2 6.48 2 12s4.48 10 10 10zm1-17.93c3.94.49 7 3.85 7 7.93s-3.05 7.44-7 7.93V4.07z"/></svg>',title:this.t.get(this.contrast.more.label)}),a("mds-tab-item",{key:"8eb4c0663165f538f8f4b5ed535a2d1e27c7df44",selected:"system"===this.mode,onClick:this.handleModeClick("system"),class:"item item--system",icon:i,title:this.t.get(this.contrast.system.label)}),a("mds-tab-item",{key:"feb3300e7e4f21f76bd544c41433056fa28bae54",selected:"no-preference"===this.mode,onClick:this.handleModeClick("no-preference"),class:"item item--default",icon:"no-preference"===this.mode?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4L6.5 9.5L1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4L6.5 9.5L1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18l2.18.99l-2.18.99z"/></svg>',title:this.t.get(this.contrast["no-preference"].label)})))}static get watchers(){return{mode:[{modeChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*100)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));flex-basis:0;flex-grow:1}.item--default,.item--more,.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([pref-contrast=more]) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"}},[1,"mds-pref-contrast",{size:[513],mode:[1537]},void 0,{mode:[{modeChanged:0}]}]),L=v,w=function(){"undefined"!=typeof customElements&&["mds-pref-contrast","mds-button","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((t=>{switch(t){case"mds-pref-contrast":customElements.get(o(t))||customElements.define(o(t),v);break;case"mds-button":customElements.get(o(t))||l();break;case"mds-icon":customElements.get(o(t))||d();break;case"mds-spinner":customElements.get(o(t))||c();break;case"mds-tab":customElements.get(o(t))||f();break;case"mds-tab-item":customElements.get(o(t))||h();break;case"mds-text":customElements.get(o(t))||p()}}))};export{L as MdsPrefContrast,w as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as s,H as e,d as a,h as t,c as o,t as i}from"./p-BhFTcUD0.js";import{L as n}from"./p-Bss3F51Q.js";import{m as r}from"./p-BFhO-KUe.js";import{m as d}from"./p-lZldSMeV.js";import{d as m}from"./p-kff6xSdW.js";import{d as l}from"./p-qketFgr0.js";import{d as h}from"./p-C58NKMEE.js";import{d as u}from"./p-BZFyAX-6.js";var c={af:"Afrikaans",ar:"العربية",az:"Azərbaycanca",be:"Беларуская",bg:"Български",bn:"বাংলা",bs:"Bosanski",ca:"Català",ceb:"Cebuano",cs:"Čeština",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"Ελληνικά",en:"English",eo:"Esperanto",es:"Español",et:"Eesti",eu:"Euskara",fa:"فارسی",fi:"Suomi",fr:"Français",fy:"Frysk",ga:"Gaeilge",gd:"Gàidhlig",gl:"Galego",gu:"ગુજરાતી",ha:"Hausa",haw:"ʻŌlelo Hawaiʻi",he:"עברית",hi:"हिन्दी",hmn:"Hmoob",hr:"Hrvatski",ht:"Kreyòl ayisyen",hu:"Magyar",hy:"Հայերեն",id:"Bahasa Indonesia",ig:"Igbo",is:"Íslenska",it:"Italiano",ja:"日本語",jv:"Basa Jawa",ka:"ქართული",kk:"Қазақ тілі",km:"ភាសាខ្មែរ",kn:"ಕನ್ನಡ",ko:"한국어",ku:"Kurdî",ky:"Кыргызча",la:"Latina",lb:"Lëtzebuergesch",lo:"ພາສາລາວ",lt:"Lietuvių",lv:"Latviešu",mg:"Malagasy",mi:"Māori",mk:"Македонски",ml:"മലയാളം",mn:"Монгол",mr:"मराठी",ms:"Bahasa Melayu",mt:"Malti",my:"မြန်မာ",ne:"नेपाली",nl:"Nederlands",no:"Norsk",ny:"Chinyanja",or:"ଓଡ଼ିଆ",pa:"ਪੰਜਾਬੀ",pl:"Polski",ps:"پښتو",pt:"Português",ro:"Română",ru:"Русский",sd:"سنڌي",si:"සිංහල",sk:"Slovenčina",sl:"Slovenščina",sm:"Gagana Sāmoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"Српски",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"தமிழ்",te:"తెలుగు",tg:"Тоҷикӣ",th:"ไทย",tr:"Türkçe",tt:"Tatarça",uk:"Українська",ur:"اردو",uz:"Oʻzbek",vi:"Tiếng Việt",xh:"isiXhosa",yi:"ייִדיש",yo:"Yorùbá",zh:"中文",zu:"isiZulu"},g={noCode:"Nessun code impostato"},p={noCode:"No code set"};const k=s(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.selectLanguageEvent=a(this,"mdsPrefLanguageItemSelect",7),this.t=new n({en:p,it:g}),this.selected=!1,this.validateCode=s=>{if(null!=s&&""!==s&&void 0===c[s])throw Error("Language code not found: "+s)},this.handleClick=()=>{this.selectLanguageEvent.emit({language:this.code})}}componentWillLoad(){this.validateCode(this.code)}handleCodeChange(s){this.validateCode(s)}render(){var s;return t(o,{key:"968d0f761a2c4b2de6652069dc1db4f51d61ee76",onClick:this.handleClick,role:"menuitem"},""!==(null!==(s=this.code)&&void 0!==s?s:"")?t("mds-button",{icon:this.selected?r:d,variant:"dark",tone:"text",label:c[this.code]}):t("mds-button",{icon:r,variant:"error",tone:"text",label:this.t.get("noCode")}))}static get watchers(){return{code:[{handleCodeChange:0}]}}static get style(){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{display:block}"}},[1,"mds-pref-language-item",{code:[513],selected:[516]},void 0,{code:[{handleCodeChange:0}]}]),b=k,y=function(){"undefined"!=typeof customElements&&["mds-pref-language-item","mds-button","mds-icon","mds-spinner","mds-text"].forEach((s=>{switch(s){case"mds-pref-language-item":customElements.get(i(s))||customElements.define(i(s),k);break;case"mds-button":customElements.get(i(s))||m();break;case"mds-icon":customElements.get(i(s))||l();break;case"mds-spinner":customElements.get(i(s))||h();break;case"mds-text":customElements.get(i(s))||u()}}))};export{b as MdsPrefLanguageItem,y as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,H as e,d as s,h as i,c as t,t as o}from"./p-BhFTcUD0.js";import{L as n}from"./p-Bss3F51Q.js";import{p as r}from"./p-CvIFS8oA.js";import{m as l}from"./p-DiWN48aq.js";import{m as d}from"./p-Ccz0jCNB.js";import{d as m}from"./p-CVgKDZPF.js";import{d as u}from"./p-Cehcn85x.js";import{d as h}from"./p-CatD1iUY.js";import{d as g}from"./p-C58NKMEE.js";import{d as c}from"./p-wq6nWuWE.js";import{d as b}from"./p-D3-GP4KF.js";import{d as p}from"./p-B9DJLgwr.js";var f={auto:"Αυτόματο",label:"Γλώσσα",af:"Αφρικάανς",ar:"Αραβικά",az:"Αζερμπαϊτζανικά",be:"Λευκορωσικά",bg:"Βουλγαρικά",bn:"Μπενγκάλι",bs:"Βοσνιακά",ca:"Καταλανικά",ceb:"Σεμπουάνο",cs:"Τσεχικά",cy:"Ουαλικά",da:"Δανικά",de:"Γερμανικά",el:"Ελληνικά",en:"Αγγλικά",eo:"Εσπεράντο",es:"Ισπανικά",et:"Εσθονικά",eu:"Βασκικά",fa:"Περσικά",fi:"Φινλανδικά",fr:"Γαλλικά",fy:"Φριζικά",ga:"Ιρλανδικά",gd:"Σκωτικά Κέλτικα",gl:"Γαλικιανά",gu:"Γκουτζαράτι",ha:"Χάουσα",haw:"Χαβαϊκά",he:"Εβραϊκά",hi:"Χίντι",hmn:"Χμονγκ",hr:"Κροατικά",ht:"Κρεολικά Αϊτής",hu:"Ουγγρικά",hy:"Αρμενικά",id:"Ινδονησιακά",ig:"Ίγκμπο",is:"Ισλανδικά",it:"Ιταλικά",ja:"Ιαπωνικά",jv:"Ιαβανικά",ka:"Γεωργιανά",kk:"Καζακικά",km:"Χμερ",kn:"Κανάντα",ko:"Κορεατικά",ku:"Κουρδικά",ky:"Κιργιζικά",la:"Λατινικά",lb:"Λουξεμβουργιανά",lo:"Λάο",lt:"Λιθουανικά",lv:"Λετονικά",mg:"Μαλαγάσι",mi:"Μαορί",mk:"Μακεδονικά",ml:"Μαλαγιαλαμικά",mn:"Μογγολικά",mr:"Μαράθι",ms:"Μαλαϊκά",mt:"Μαλτέζικα",my:"Βιρμανικά",ne:"Νεπαλικά",nl:"Ολλανδικά",no:"Νορβηγικά",ny:"Τσιτσέουα",or:"Ορίγια",pa:"Παντζαπικά",pl:"Πολωνικά",ps:"Πάστο",pt:"Πορτογαλικά",ro:"Ρουμανικά",ru:"Ρωσικά",sd:"Σιντ",si:"Σινχαλέζικα",sk:"Σλοβακικά",sl:"Σλοβενικά",sm:"Σαμοανά",sn:"Σόνα",so:"Σομαλικά",sq:"Αλβανικά",sr:"Σερβικά",st:"Σόθο",su:"Σουνδανικά",sv:"Σουηδικά",sw:"Σουαχίλι",ta:"Ταμίλ",te:"Τελούγκου",tg:"Τατζικικά",th:"Ταϊλανδικά",tr:"Τουρκικά",tt:"Ταταρικά",uk:"Ουκρανικά",ur:"Ουρντού",uz:"Ουζμπεκικά",vi:"Βιετναμέζικα",xh:"Ξόσα",yi:"Γίντις",yo:"Γιορούμπα",zh:"Κινέζικα",zu:"Ζουλού",defaultLanguage:"Εάν η μετάφραση δεν είναι διαθέσιμη, θα χρησιμοποιηθούν τα Αγγλικά"},k={auto:"Automatic",label:"Language",af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",bn:"Bengali",bs:"Bosnian",ca:"Catalan",ceb:"Cebuano",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jv:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",or:"Odia",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tr:"Turkish",tt:"Tatar",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Chinese",zu:"Zulu",defaultLanguage:"If the translation is not available, English will be used"},y={auto:"Automático",label:"Idioma",af:"Afrikáans",ar:"Árabe",az:"Azerbaiyano",be:"Bielorruso",bg:"Búlgaro",bn:"Bengalí",bs:"Bosnio",ca:"Catalán",ceb:"Cebuano",cs:"Checo",cy:"Galés",da:"Danés",de:"Alemán",el:"Griego",en:"Inglés",eo:"Esperanto",es:"Español",et:"Estonio",eu:"Vasco",fa:"Persa",fi:"Finlandés",fr:"Francés",fy:"Frisón",ga:"Irlandés",gd:"Gaélico escocés",gl:"Gallego",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Hebreo",hi:"Hindi",hmn:"Hmong",hr:"Croata",ht:"Criollo haitiano",hu:"Húngaro",hy:"Armenio",id:"Indonesio",ig:"Igbo",is:"Islandés",it:"Italiano",ja:"Japonés",jv:"Javanés",ka:"Georgiano",kk:"Kazajo",km:"Jemer",kn:"Canarés",ko:"Coreano",ku:"Kurdo",ky:"Kirguís",la:"Latín",lb:"Luxemburgués",lo:"Lao",lt:"Lituano",lv:"Letón",mg:"Malgache",mi:"Maorí",mk:"Macedonio",ml:"Malayalam",mn:"Mongol",mr:"Maratí",ms:"Malayo",mt:"Maltés",my:"Birmano",ne:"Nepalí",nl:"Holandés",no:"Noruego",ny:"Chichewa",or:"Oriya",pa:"Panyabí",pl:"Polaco",ps:"Pastún",pt:"Portugués",ro:"Rumano",ru:"Ruso",sd:"Sindhi",si:"Cingalés",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",sn:"Shona",so:"Somalí",sq:"Albanés",sr:"Serbio",st:"Sesotho",su:"Sundanés",sv:"Sueco",sw:"Suajili",ta:"Tamil",te:"Telugu",tg:"Tayiko",th:"Tailandés",tr:"Turco",tt:"Tártaro",uk:"Ucraniano",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yidis",yo:"Yoruba",zh:"Chino",zu:"Zulú",defaultLanguage:"Si la traducción no está disponible, se utilizará el inglés"},v={auto:"Automatico",label:"Lingua",af:"Afrikaans",ar:"Arabo",az:"Azero",be:"Bielorusso",bg:"Bulgaro",bn:"Bengalese",bs:"Bosniaco",ca:"Catalano",ceb:"Cebuano",cs:"Ceco",cy:"Gallese",da:"Danese",de:"Tedesco",el:"Greco",en:"Inglese",eo:"Esperanto",es:"Spagnolo",et:"Estone",eu:"Basco",fa:"Persiano",fi:"Finlandese",fr:"Francese",fy:"Frisone",ga:"Irlandese",gd:"Gaelico scozzese",gl:"Galiziano",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Ebraico",hi:"Hindi",hmn:"Hmong",hr:"Croato",ht:"Creolo haitiano",hu:"Ungherese",hy:"Armeno",id:"Indonesiano",ig:"Igbo",is:"Islandese",it:"Italiano",ja:"Giapponese",jv:"Giavanese",ka:"Georgiano",kk:"Kazako",km:"Khmer",kn:"Kannada",ko:"Coreano",ku:"Curdo",ky:"Kirghiso",la:"Latino",lb:"Lussemburghese",lo:"Lao",lt:"Lituano",lv:"Lettone",mg:"Malgascio",mi:"Maori",mk:"Macedone",ml:"Malayalam",mn:"Mongolo",mr:"Marathi",ms:"Malese",mt:"Maltese",my:"Birmano",ne:"Nepalese",nl:"Olandese",no:"Norvegese",ny:"Chichewa",or:"Oriya",pa:"Punjabi",pl:"Polacco",ps:"Pashtu",pt:"Portoghese",ro:"Rumeno",ru:"Russo",sd:"Sindhi",si:"Singalese",sk:"Slovacco",sl:"Sloveno",sm:"Samoano",sn:"Shona",so:"Somalo",sq:"Albanese",sr:"Serbo",st:"Sesotho",su:"Sundanese",sv:"Svedese",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tagico",th:"Thai",tr:"Turco",tt:"Tataro",uk:"Ucraino",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Cinese",zu:"Zulu",defaultLanguage:"Se la traduzione non è disponibile, verrà utilizzato l'Inglese"};const S=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.languageChangeEvent=s(this,"mdsPrefLanguageChange",7),this.prefChangeEvent=s(this,"mdsPrefChange",7),this.showDropdown=!1,this.localStorageAlias="mdsPrefLanguage",this.defaultLanguage="en",this.t=new n({el:f,en:k,es:y,it:v}),this.set="auto",this.toggleDropdown=()=>{this.showDropdown=!this.showDropdown},this.hideLanguageSelectDropdown=()=>{this.showDropdown=!1},this.changeLanguageSelectItem=()=>{this.elPreferLanguageItems.forEach((a=>{a.selected=!1}))},this.checkLanguageSelect=()=>{this.elPreferLanguageItems=this.element.querySelectorAll("mds-pref-language-item"),this.elPreferLanguageItems.forEach((a=>{a.addEventListener("mdsPrefLanguageItemSelect",(a=>{this.changeLanguageSelectItem(),this.currentSelectedItem=a.currentTarget,this.currentSelectedItem.selected=!0,this.languageChangeEvent.emit({language:this.currentSelectedItem.code}),this.showDropdown=!1,this.setLanguage(a.detail.language)}))})),this.elPreferLanguageItems.forEach((a=>{a.selected=a.code===this.set}))},this.sanitizeLanguage=a=>a.includes("-")?a.split("-")[0].toLowerCase():a,this.setLanguage=a=>{var e,s,i,t,o;if(!/(auto)|^[a-z]{2}(-[A-Z]{2})?$/gm.exec(a))throw Error("Language code set not reconized: "+a);const n=this.sanitizeLanguage(null!==(e=navigator.language)&&void 0!==e?e:"en"),l=localStorage.getItem(this.localStorageAlias),d=null!==(i=null===(s=document.querySelector("html"))||void 0===s?void 0:s.getAttribute("lang"))&&void 0!==i?i:null,m="auto"===a?null!==(t=null!=l?l:d)&&void 0!==t?t:n:this.sanitizeLanguage(a);if(this.set=m,m===this.appliedLanguage)return;const u=void 0===this.appliedLanguage;this.appliedLanguage=m,localStorage.setItem(this.localStorageAlias,m),"undefined"!=typeof document&&(null===(o=document.querySelector("html"))||void 0===o||o.setAttribute("lang",m)),r.state.language=m,u||this.prefChangeEvent.emit({preference:"language"})}}componentWillLoad(){this.setLanguage(this.set)}componentDidLoad(){this.checkLanguageSelect()}handleSetChange(a){this.setLanguage(a)}render(){var a;return i(t,{key:"21129a3d751feb56d928d2bc9f5e39f0f548f909"},i("div",{key:"bcfbe0dd6918f8a37d26ecfd57da156c78e94582",class:"menu"},i("mds-text",{key:"6386b4d771c1fca8efbede23f69ea56dbbee4947",class:"info",typography:"caption"},i("b",{key:"4d309028a088aacfac87ee401daaafdc75163d4c"},this.t.get("label"))),i("mds-tab",{key:"ad09f6d0f37a6570d77341456b7b2fcc0a6987a6",fill:!0,size:this.size},i("mds-tab-item",{key:"8230f8238bd9e68211d41098af53d78e86711c97",selected:!0,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-language-nav",class:"item item--custom-language","icon-position":"right",icon:this.showDropdown?d:l,label:this.t.get(null!==(a=this.set)&&void 0!==a?a:"auto")}))),i("mds-dropdown",{key:"333d1c56ea5e1a7ec3266d25fb4fd46481b18829",class:"mds-pref-language-dropdown",target:"#mds-pref-language-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideLanguageSelectDropdown},i("slot",{key:"82f649867dbf53c395dcbdc17690512019f0e6b3"})),this.set!==this.defaultLanguage&&i("mds-text",{key:"0ecda6e3832b41bb0e8127ff88a9122eab4459e7",typography:"caption"},this.t.get("defaultLanguage")))}get element(){return this}static get watchers(){return{set:[{handleSetChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.mds-pref-language-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));flex-basis:0;flex-grow:1}.item--custom-language{cursor:pointer}.item--auto,.item--custom-language{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}"}},[257,"mds-pref-language",{size:[513],set:[1537],showDropdown:[32]},void 0,{set:[{handleSetChange:0}]}]),z=S,C=function(){"undefined"!=typeof customElements&&["mds-pref-language","mds-button","mds-dropdown","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((a=>{switch(a){case"mds-pref-language":customElements.get(o(a))||customElements.define(o(a),S);break;case"mds-button":customElements.get(o(a))||m();break;case"mds-dropdown":customElements.get(o(a))||u();break;case"mds-icon":customElements.get(o(a))||h();break;case"mds-spinner":customElements.get(o(a))||g();break;case"mds-tab":customElements.get(o(a))||c();break;case"mds-tab-item":customElements.get(o(a))||b();break;case"mds-text":customElements.get(o(a))||p()}}))};export{z as MdsPrefLanguage,C as defineCustomElement}
|
|
1
|
+
import{p as a,H as e,d as s,h as i,c as t,t as o}from"./p-BhFTcUD0.js";import{L as n}from"./p-Bss3F51Q.js";import{p as r}from"./p-CvIFS8oA.js";import{m as l}from"./p-DiWN48aq.js";import{m as d}from"./p-Ccz0jCNB.js";import{d as m}from"./p-kff6xSdW.js";import{d as u}from"./p-pys1EQ60.js";import{d as h}from"./p-qketFgr0.js";import{d as g}from"./p-C58NKMEE.js";import{d as c}from"./p-wq6nWuWE.js";import{d as b}from"./p-6K9sFzLr.js";import{d as p}from"./p-BZFyAX-6.js";var f={auto:"Αυτόματο",label:"Γλώσσα",af:"Αφρικάανς",ar:"Αραβικά",az:"Αζερμπαϊτζανικά",be:"Λευκορωσικά",bg:"Βουλγαρικά",bn:"Μπενγκάλι",bs:"Βοσνιακά",ca:"Καταλανικά",ceb:"Σεμπουάνο",cs:"Τσεχικά",cy:"Ουαλικά",da:"Δανικά",de:"Γερμανικά",el:"Ελληνικά",en:"Αγγλικά",eo:"Εσπεράντο",es:"Ισπανικά",et:"Εσθονικά",eu:"Βασκικά",fa:"Περσικά",fi:"Φινλανδικά",fr:"Γαλλικά",fy:"Φριζικά",ga:"Ιρλανδικά",gd:"Σκωτικά Κέλτικα",gl:"Γαλικιανά",gu:"Γκουτζαράτι",ha:"Χάουσα",haw:"Χαβαϊκά",he:"Εβραϊκά",hi:"Χίντι",hmn:"Χμονγκ",hr:"Κροατικά",ht:"Κρεολικά Αϊτής",hu:"Ουγγρικά",hy:"Αρμενικά",id:"Ινδονησιακά",ig:"Ίγκμπο",is:"Ισλανδικά",it:"Ιταλικά",ja:"Ιαπωνικά",jv:"Ιαβανικά",ka:"Γεωργιανά",kk:"Καζακικά",km:"Χμερ",kn:"Κανάντα",ko:"Κορεατικά",ku:"Κουρδικά",ky:"Κιργιζικά",la:"Λατινικά",lb:"Λουξεμβουργιανά",lo:"Λάο",lt:"Λιθουανικά",lv:"Λετονικά",mg:"Μαλαγάσι",mi:"Μαορί",mk:"Μακεδονικά",ml:"Μαλαγιαλαμικά",mn:"Μογγολικά",mr:"Μαράθι",ms:"Μαλαϊκά",mt:"Μαλτέζικα",my:"Βιρμανικά",ne:"Νεπαλικά",nl:"Ολλανδικά",no:"Νορβηγικά",ny:"Τσιτσέουα",or:"Ορίγια",pa:"Παντζαπικά",pl:"Πολωνικά",ps:"Πάστο",pt:"Πορτογαλικά",ro:"Ρουμανικά",ru:"Ρωσικά",sd:"Σιντ",si:"Σινχαλέζικα",sk:"Σλοβακικά",sl:"Σλοβενικά",sm:"Σαμοανά",sn:"Σόνα",so:"Σομαλικά",sq:"Αλβανικά",sr:"Σερβικά",st:"Σόθο",su:"Σουνδανικά",sv:"Σουηδικά",sw:"Σουαχίλι",ta:"Ταμίλ",te:"Τελούγκου",tg:"Τατζικικά",th:"Ταϊλανδικά",tr:"Τουρκικά",tt:"Ταταρικά",uk:"Ουκρανικά",ur:"Ουρντού",uz:"Ουζμπεκικά",vi:"Βιετναμέζικα",xh:"Ξόσα",yi:"Γίντις",yo:"Γιορούμπα",zh:"Κινέζικα",zu:"Ζουλού",defaultLanguage:"Εάν η μετάφραση δεν είναι διαθέσιμη, θα χρησιμοποιηθούν τα Αγγλικά"},k={auto:"Automatic",label:"Language",af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",bn:"Bengali",bs:"Bosnian",ca:"Catalan",ceb:"Cebuano",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jv:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",or:"Odia",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tr:"Turkish",tt:"Tatar",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Chinese",zu:"Zulu",defaultLanguage:"If the translation is not available, English will be used"},y={auto:"Automático",label:"Idioma",af:"Afrikáans",ar:"Árabe",az:"Azerbaiyano",be:"Bielorruso",bg:"Búlgaro",bn:"Bengalí",bs:"Bosnio",ca:"Catalán",ceb:"Cebuano",cs:"Checo",cy:"Galés",da:"Danés",de:"Alemán",el:"Griego",en:"Inglés",eo:"Esperanto",es:"Español",et:"Estonio",eu:"Vasco",fa:"Persa",fi:"Finlandés",fr:"Francés",fy:"Frisón",ga:"Irlandés",gd:"Gaélico escocés",gl:"Gallego",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Hebreo",hi:"Hindi",hmn:"Hmong",hr:"Croata",ht:"Criollo haitiano",hu:"Húngaro",hy:"Armenio",id:"Indonesio",ig:"Igbo",is:"Islandés",it:"Italiano",ja:"Japonés",jv:"Javanés",ka:"Georgiano",kk:"Kazajo",km:"Jemer",kn:"Canarés",ko:"Coreano",ku:"Kurdo",ky:"Kirguís",la:"Latín",lb:"Luxemburgués",lo:"Lao",lt:"Lituano",lv:"Letón",mg:"Malgache",mi:"Maorí",mk:"Macedonio",ml:"Malayalam",mn:"Mongol",mr:"Maratí",ms:"Malayo",mt:"Maltés",my:"Birmano",ne:"Nepalí",nl:"Holandés",no:"Noruego",ny:"Chichewa",or:"Oriya",pa:"Panyabí",pl:"Polaco",ps:"Pastún",pt:"Portugués",ro:"Rumano",ru:"Ruso",sd:"Sindhi",si:"Cingalés",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",sn:"Shona",so:"Somalí",sq:"Albanés",sr:"Serbio",st:"Sesotho",su:"Sundanés",sv:"Sueco",sw:"Suajili",ta:"Tamil",te:"Telugu",tg:"Tayiko",th:"Tailandés",tr:"Turco",tt:"Tártaro",uk:"Ucraniano",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yidis",yo:"Yoruba",zh:"Chino",zu:"Zulú",defaultLanguage:"Si la traducción no está disponible, se utilizará el inglés"},v={auto:"Automatico",label:"Lingua",af:"Afrikaans",ar:"Arabo",az:"Azero",be:"Bielorusso",bg:"Bulgaro",bn:"Bengalese",bs:"Bosniaco",ca:"Catalano",ceb:"Cebuano",cs:"Ceco",cy:"Gallese",da:"Danese",de:"Tedesco",el:"Greco",en:"Inglese",eo:"Esperanto",es:"Spagnolo",et:"Estone",eu:"Basco",fa:"Persiano",fi:"Finlandese",fr:"Francese",fy:"Frisone",ga:"Irlandese",gd:"Gaelico scozzese",gl:"Galiziano",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Ebraico",hi:"Hindi",hmn:"Hmong",hr:"Croato",ht:"Creolo haitiano",hu:"Ungherese",hy:"Armeno",id:"Indonesiano",ig:"Igbo",is:"Islandese",it:"Italiano",ja:"Giapponese",jv:"Giavanese",ka:"Georgiano",kk:"Kazako",km:"Khmer",kn:"Kannada",ko:"Coreano",ku:"Curdo",ky:"Kirghiso",la:"Latino",lb:"Lussemburghese",lo:"Lao",lt:"Lituano",lv:"Lettone",mg:"Malgascio",mi:"Maori",mk:"Macedone",ml:"Malayalam",mn:"Mongolo",mr:"Marathi",ms:"Malese",mt:"Maltese",my:"Birmano",ne:"Nepalese",nl:"Olandese",no:"Norvegese",ny:"Chichewa",or:"Oriya",pa:"Punjabi",pl:"Polacco",ps:"Pashtu",pt:"Portoghese",ro:"Rumeno",ru:"Russo",sd:"Sindhi",si:"Singalese",sk:"Slovacco",sl:"Sloveno",sm:"Samoano",sn:"Shona",so:"Somalo",sq:"Albanese",sr:"Serbo",st:"Sesotho",su:"Sundanese",sv:"Svedese",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tagico",th:"Thai",tr:"Turco",tt:"Tataro",uk:"Ucraino",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Cinese",zu:"Zulu",defaultLanguage:"Se la traduzione non è disponibile, verrà utilizzato l'Inglese"};const S=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.languageChangeEvent=s(this,"mdsPrefLanguageChange",7),this.prefChangeEvent=s(this,"mdsPrefChange",7),this.showDropdown=!1,this.localStorageAlias="mdsPrefLanguage",this.defaultLanguage="en",this.t=new n({el:f,en:k,es:y,it:v}),this.set="auto",this.toggleDropdown=()=>{this.showDropdown=!this.showDropdown},this.hideLanguageSelectDropdown=()=>{this.showDropdown=!1},this.changeLanguageSelectItem=()=>{this.elPreferLanguageItems.forEach((a=>{a.selected=!1}))},this.checkLanguageSelect=()=>{this.elPreferLanguageItems=this.element.querySelectorAll("mds-pref-language-item"),this.elPreferLanguageItems.forEach((a=>{a.addEventListener("mdsPrefLanguageItemSelect",(a=>{this.changeLanguageSelectItem(),this.currentSelectedItem=a.currentTarget,this.currentSelectedItem.selected=!0,this.languageChangeEvent.emit({language:this.currentSelectedItem.code}),this.showDropdown=!1,this.setLanguage(a.detail.language)}))})),this.elPreferLanguageItems.forEach((a=>{a.selected=a.code===this.set}))},this.sanitizeLanguage=a=>a.includes("-")?a.split("-")[0].toLowerCase():a,this.setLanguage=a=>{var e,s,i,t,o;if(!/(auto)|^[a-z]{2}(-[A-Z]{2})?$/gm.exec(a))throw Error("Language code set not reconized: "+a);const n=this.sanitizeLanguage(null!==(e=navigator.language)&&void 0!==e?e:"en"),l=localStorage.getItem(this.localStorageAlias),d=null!==(i=null===(s=document.querySelector("html"))||void 0===s?void 0:s.getAttribute("lang"))&&void 0!==i?i:null,m="auto"===a?null!==(t=null!=l?l:d)&&void 0!==t?t:n:this.sanitizeLanguage(a);if(this.set=m,m===this.appliedLanguage)return;const u=void 0===this.appliedLanguage;this.appliedLanguage=m,localStorage.setItem(this.localStorageAlias,m),"undefined"!=typeof document&&(null===(o=document.querySelector("html"))||void 0===o||o.setAttribute("lang",m)),r.state.language=m,u||this.prefChangeEvent.emit({preference:"language"})}}componentWillLoad(){this.setLanguage(this.set)}componentDidLoad(){this.checkLanguageSelect()}handleSetChange(a){this.setLanguage(a)}render(){var a;return i(t,{key:"21129a3d751feb56d928d2bc9f5e39f0f548f909"},i("div",{key:"bcfbe0dd6918f8a37d26ecfd57da156c78e94582",class:"menu"},i("mds-text",{key:"6386b4d771c1fca8efbede23f69ea56dbbee4947",class:"info",typography:"caption"},i("b",{key:"4d309028a088aacfac87ee401daaafdc75163d4c"},this.t.get("label"))),i("mds-tab",{key:"ad09f6d0f37a6570d77341456b7b2fcc0a6987a6",fill:!0,size:this.size},i("mds-tab-item",{key:"8230f8238bd9e68211d41098af53d78e86711c97",selected:!0,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-language-nav",class:"item item--custom-language","icon-position":"right",icon:this.showDropdown?d:l,label:this.t.get(null!==(a=this.set)&&void 0!==a?a:"auto")}))),i("mds-dropdown",{key:"333d1c56ea5e1a7ec3266d25fb4fd46481b18829",class:"mds-pref-language-dropdown",target:"#mds-pref-language-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideLanguageSelectDropdown},i("slot",{key:"82f649867dbf53c395dcbdc17690512019f0e6b3"})),this.set!==this.defaultLanguage&&i("mds-text",{key:"0ecda6e3832b41bb0e8127ff88a9122eab4459e7",typography:"caption"},this.t.get("defaultLanguage")))}get element(){return this}static get watchers(){return{set:[{handleSetChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.mds-pref-language-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));flex-basis:0;flex-grow:1}.item--custom-language{cursor:pointer}.item--auto,.item--custom-language{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}"}},[257,"mds-pref-language",{size:[513],set:[1537],showDropdown:[32]},void 0,{set:[{handleSetChange:0}]}]),z=S,w=function(){"undefined"!=typeof customElements&&["mds-pref-language","mds-button","mds-dropdown","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((a=>{switch(a){case"mds-pref-language":customElements.get(o(a))||customElements.define(o(a),S);break;case"mds-button":customElements.get(o(a))||m();break;case"mds-dropdown":customElements.get(o(a))||u();break;case"mds-icon":customElements.get(o(a))||h();break;case"mds-spinner":customElements.get(o(a))||g();break;case"mds-tab":customElements.get(o(a))||c();break;case"mds-tab-item":customElements.get(o(a))||b();break;case"mds-text":customElements.get(o(a))||p()}}))};export{z as MdsPrefLanguage,w as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,d as s,h as i,c as a,t as o}from"./p-BhFTcUD0.js";import{c as d}from"./p-D8eZRaSQ.js";import{m as r}from"./p-XQgkfNpn.js";import{L as m}from"./p-Bss3F51Q.js";import{i as h}from"./p-Dje8Mggf.js";import{p as l}from"./p-CvIFS8oA.js";import{d as c}from"./p-CVgKDZPF.js";import{d as n}from"./p-CatD1iUY.js";import{d as f}from"./p-C58NKMEE.js";import{d as g}from"./p-wq6nWuWE.js";import{d as p}from"./p-D3-GP4KF.js";import{d as b}from"./p-B9DJLgwr.js";var u={darkMode:"Σκούρο",label:"Λειτουργία",lightMode:"Ανοιχτό{{#forced}} (επιβεβλημένο στο Safari){{/forced}}",systemSettings:"Με βάση το λειτουργικό σύστημα"},v={darkMode:"Dark",label:"Mode",lightMode:"Light{{#forced}} (forced on Safari){{/forced}}",systemSettings:"Based on operating system"},y={darkMode:"Oscura",label:"Modo",lightMode:"Clara{{#forced}} (forzada en Safari){{/forced}}",systemSettings:"Basado en el sistema operativo"},k={darkMode:"Scura",label:"Modalità",lightMode:"Chiara{{#forced}} (forzata su Safari){{/forced}}",systemSettings:"Basato sul sistema operativo"};const w=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.prefChangeEvent=s(this,"mdsPrefChange",7),this.defaultMode="system",this.t=new m({el:u,en:v,es:y,it:k}),this.localStorageAlias="mdsPrefMode",this.customPropertyAlias="--magma-pref-mode",this.overlayBackgroundVisible="rgb(var(--magma-surface-default))",this.overlayBackgroundHidden="rgb(var(--magma-surface-default) / 0)",this.cssOverlayShowDuration="300",this.cssOverlayFadeoutDuration="200",this.cssOverlayZIndex="6000",this.overlayId="mds-pref-mode-overlay",this.overlayShow=!1,this.disabled=!1,this.updateCSSCustomProps=()=>{var t,e,s;if("undefined"==typeof window)return;const i=window.getComputedStyle(this.element);this.cssOverlayShowDuration=null!==(t=i.getPropertyValue("--mds-pref-mode-overlay-show-duration"))&&void 0!==t?t:"300",this.cssOverlayFadeoutDuration=null!==(e=i.getPropertyValue("--mds-pref-mode-overlay-fadeout-duration"))&&void 0!==e?e:"200",this.cssOverlayZIndex=null!==(s=i.getPropertyValue("--mds-pref-mode-overlay-z-index"))&&void 0!==s?s:"6000"},this.transition="smooth",this.modes={dark:{selector:"pref-mode-dark",label:"darkMode"},system:{selector:"pref-mode-system",label:"systemSettings"},light:{selector:"pref-mode-light",label:"lightMode"}},this.setMode=t=>{if(this.prefChangeEvent.emit({preference:"mode"}),this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.modes)({}).hasOwnProperty.call(this.modes,t)&&(null==e||e.classList.remove(this.modes[t].selector));null==e||e.classList.add(this.modes[t].selector),null==e||e.style.setProperty(this.customPropertyAlias,this.mode)}l.state.mode=t},this.isDarkMode=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.getColorScheme=t=>void 0!==t?"system"===t?this.isDarkMode()?"dark":"light":t:"system"===this.mode?this.isDarkMode()?"dark":"light":this.mode,this.instanceOverlay=()=>{null==this.overlayEl&&(this.overlayEl=document.createElement("div"),this.overlayEl.className=this.overlayId,this.overlayEl.style.inset="0",this.overlayEl.style.pointerEvents="none",this.overlayEl.style.position="fixed",this.overlayEl.style.transition=`background-color ${this.cssOverlayFadeoutDuration} ease-out`,this.overlayEl.style.zIndex=this.cssOverlayZIndex),this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden},this.attachFlashOverlayTransition=()=>{this.overlayShow=!0,this.instanceOverlay(),this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,document.body.appendChild(this.overlayEl),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),d(this.cssOverlayShowDuration))},this.attachSmoothOverlayTransition=t=>{this.overlayShow=!0,this.instanceOverlay(),document.body.appendChild(this.overlayEl),clearTimeout(this.overlaySmoothTimer),this.overlaySmoothTimer=setTimeout((()=>{this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.setMode(t),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),d(this.cssOverlayFadeoutDuration))}),d(this.cssOverlayShowDuration))}),1)},this.isModeDisabled=t=>!!this.disabled||("light"===this.lockedScheme?"dark"===t:"dark"===this.lockedScheme&&"light"===t),this.changeMode=t=>{if(!this.isModeDisabled(t))if(this.getColorScheme()!==this.getColorScheme(t))switch(this.transition){case"none":default:this.setMode(t);break;case"flash":this.setMode(t),this.attachFlashOverlayTransition();break;case"smooth":this.attachSmoothOverlayTransition(t)}else this.setMode(t)},this.handleModeClick=t=>()=>{this.overlayShow||this.changeMode(t)}}componentWillRender(){var t,e;h()?(this.disabled=!0,this.mode="light"):this.setMode(null!==(e=null!==(t=this.mode)&&void 0!==t?t:localStorage.getItem(this.localStorageAlias))&&void 0!==e?e:this.defaultMode)}componentDidLoad(){this.updateCSSCustomProps()}modeChanged(t,e){t!==e&&this.setMode(t)}detachOverlayTransition(){null!=this.overlayEl&&(this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayEl.remove()}),d(this.cssOverlayFadeoutDuration)))}render(){var t,e;return i(a,{key:"93052dfea650c0b96b0818b6ded53b40b35c7490","pref-contrast":l.state.contrast,"pref-mode":l.state.mode,"pref-theme-scheme":l.state["theme-scheme"]},i("mds-text",{key:"b19e1fde7bdc84765cee7145dc6fdfd3c779339e",class:"info",typography:"caption"},i("b",{key:"5eae911ede8699c5b53d293ec195957e67a2716e"},this.t.get("label"))," ",this.disabled?this.t.get(this.modes[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label,{forced:!0}):this.t.get(this.modes[null!==(e=this.mode)&&void 0!==e?e:this.defaultMode].label,{forced:!1})),i("mds-tab",{key:"6d7ad904ef9072c72502dcf0e49584b3784531f7",fill:!0,size:this.size},i("mds-tab-item",{key:"410152bae335d83120e70f60339abe481106042d",disabled:this.isModeDisabled("light"),selected:"light"===this.mode,onClick:this.handleModeClick("light"),class:"item item--light",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"/></svg>',title:this.t.get(this.modes.light.label,{forced:!1})}),i("mds-tab-item",{key:"ce522eddaeab3dec97e65d5b4ed0e7b31a8767c7",disabled:this.isModeDisabled("system"),selected:"system"===this.mode,onClick:this.handleModeClick("system"),class:"item item--system",icon:r,title:this.t.get(this.modes.system.label)}),i("mds-tab-item",{key:"67889e2b7d49ab1832cb1a874624d2c5896c8738",disabled:this.isModeDisabled("dark"),selected:"dark"===this.mode,onClick:this.handleModeClick("dark"),class:"item item--dark",icon:"dark"===this.mode?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.37 5.51A7.35 7.35 0 0 0 9.1 7.5c0 4.08 3.32 7.4 7.4 7.4c.68 0 1.35-.09 1.99-.27A7.014 7.014 0 0 1 12 19c-3.86 0-7-3.14-7-7c0-2.93 1.81-5.45 4.37-6.49zM12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>',title:this.t.get(this.modes.dark.label)})))}get element(){return this}static get watchers(){return{mode:[{modeChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-pref-mode-overlay-fadeout-duration:.2s;--mds-pref-mode-overlay-show-duration:.3s;--mds-pref-mode-overlay-z-index:var(--magma-theme-overlay-z-index,7000);display:grid;gap:calc(var(--spacing,.0025rem)*100)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));flex-basis:0;flex-grow:1}.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}.item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-06,214 163 7))}.item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-06,47 182 243))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}}"}},[1,"mds-pref-mode",{size:[513],mode:[1537],transition:[1537],lockedScheme:[513,"locked-scheme"],disabled:[32]},void 0,{mode:[{modeChanged:0}]}]),x=w,M=function(){"undefined"!=typeof customElements&&["mds-pref-mode","mds-button","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((t=>{switch(t){case"mds-pref-mode":customElements.get(o(t))||customElements.define(o(t),w);break;case"mds-button":customElements.get(o(t))||c();break;case"mds-icon":customElements.get(o(t))||n();break;case"mds-spinner":customElements.get(o(t))||f();break;case"mds-tab":customElements.get(o(t))||g();break;case"mds-tab-item":customElements.get(o(t))||p();break;case"mds-text":customElements.get(o(t))||b()}}))};export{x as MdsPrefMode,M as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,d as s,h as i,c as a,t as o}from"./p-BhFTcUD0.js";import{c as d}from"./p-D8eZRaSQ.js";import{m as r}from"./p-XQgkfNpn.js";import{L as m}from"./p-Bss3F51Q.js";import{i as h}from"./p-Dje8Mggf.js";import{p as l}from"./p-CvIFS8oA.js";import{d as c}from"./p-kff6xSdW.js";import{d as n}from"./p-qketFgr0.js";import{d as f}from"./p-C58NKMEE.js";import{d as g}from"./p-wq6nWuWE.js";import{d as p}from"./p-6K9sFzLr.js";import{d as b}from"./p-BZFyAX-6.js";var u={darkMode:"Σκούρο",label:"Λειτουργία",lightMode:"Ανοιχτό{{#forced}} (επιβεβλημένο στο Safari){{/forced}}",systemSettings:"Με βάση το λειτουργικό σύστημα"},v={darkMode:"Dark",label:"Mode",lightMode:"Light{{#forced}} (forced on Safari){{/forced}}",systemSettings:"Based on operating system"},y={darkMode:"Oscura",label:"Modo",lightMode:"Clara{{#forced}} (forzada en Safari){{/forced}}",systemSettings:"Basado en el sistema operativo"},k={darkMode:"Scura",label:"Modalità",lightMode:"Chiara{{#forced}} (forzata su Safari){{/forced}}",systemSettings:"Basato sul sistema operativo"};const w=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.prefChangeEvent=s(this,"mdsPrefChange",7),this.defaultMode="system",this.t=new m({el:u,en:v,es:y,it:k}),this.localStorageAlias="mdsPrefMode",this.customPropertyAlias="--magma-pref-mode",this.overlayBackgroundVisible="rgb(var(--magma-surface-default))",this.overlayBackgroundHidden="rgb(var(--magma-surface-default) / 0)",this.cssOverlayShowDuration="300",this.cssOverlayFadeoutDuration="200",this.cssOverlayZIndex="6000",this.overlayId="mds-pref-mode-overlay",this.overlayShow=!1,this.disabled=!1,this.updateCSSCustomProps=()=>{var t,e,s;if("undefined"==typeof window)return;const i=window.getComputedStyle(this.element);this.cssOverlayShowDuration=null!==(t=i.getPropertyValue("--mds-pref-mode-overlay-show-duration"))&&void 0!==t?t:"300",this.cssOverlayFadeoutDuration=null!==(e=i.getPropertyValue("--mds-pref-mode-overlay-fadeout-duration"))&&void 0!==e?e:"200",this.cssOverlayZIndex=null!==(s=i.getPropertyValue("--mds-pref-mode-overlay-z-index"))&&void 0!==s?s:"6000"},this.transition="smooth",this.modes={dark:{selector:"pref-mode-dark",label:"darkMode"},system:{selector:"pref-mode-system",label:"systemSettings"},light:{selector:"pref-mode-light",label:"lightMode"}},this.setMode=t=>{if(this.prefChangeEvent.emit({preference:"mode"}),this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.modes)({}).hasOwnProperty.call(this.modes,t)&&(null==e||e.classList.remove(this.modes[t].selector));null==e||e.classList.add(this.modes[t].selector),null==e||e.style.setProperty(this.customPropertyAlias,this.mode)}l.state.mode=t},this.isDarkMode=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.getColorScheme=t=>void 0!==t?"system"===t?this.isDarkMode()?"dark":"light":t:"system"===this.mode?this.isDarkMode()?"dark":"light":this.mode,this.instanceOverlay=()=>{null==this.overlayEl&&(this.overlayEl=document.createElement("div"),this.overlayEl.className=this.overlayId,this.overlayEl.style.inset="0",this.overlayEl.style.pointerEvents="none",this.overlayEl.style.position="fixed",this.overlayEl.style.transition=`background-color ${this.cssOverlayFadeoutDuration} ease-out`,this.overlayEl.style.zIndex=this.cssOverlayZIndex),this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden},this.attachFlashOverlayTransition=()=>{this.overlayShow=!0,this.instanceOverlay(),this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,document.body.appendChild(this.overlayEl),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),d(this.cssOverlayShowDuration))},this.attachSmoothOverlayTransition=t=>{this.overlayShow=!0,this.instanceOverlay(),document.body.appendChild(this.overlayEl),clearTimeout(this.overlaySmoothTimer),this.overlaySmoothTimer=setTimeout((()=>{this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.setMode(t),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),d(this.cssOverlayFadeoutDuration))}),d(this.cssOverlayShowDuration))}),1)},this.isModeDisabled=t=>!!this.disabled||("light"===this.lockedScheme?"dark"===t:"dark"===this.lockedScheme&&"light"===t),this.changeMode=t=>{if(!this.isModeDisabled(t))if(this.getColorScheme()!==this.getColorScheme(t))switch(this.transition){case"none":default:this.setMode(t);break;case"flash":this.setMode(t),this.attachFlashOverlayTransition();break;case"smooth":this.attachSmoothOverlayTransition(t)}else this.setMode(t)},this.handleModeClick=t=>()=>{this.overlayShow||this.changeMode(t)}}componentWillRender(){var t,e;h()?(this.disabled=!0,this.mode="light"):this.setMode(null!==(e=null!==(t=this.mode)&&void 0!==t?t:localStorage.getItem(this.localStorageAlias))&&void 0!==e?e:this.defaultMode)}componentDidLoad(){this.updateCSSCustomProps()}modeChanged(t,e){t!==e&&this.setMode(t)}detachOverlayTransition(){null!=this.overlayEl&&(this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayEl.remove()}),d(this.cssOverlayFadeoutDuration)))}render(){var t,e;return i(a,{key:"93052dfea650c0b96b0818b6ded53b40b35c7490","pref-contrast":l.state.contrast,"pref-mode":l.state.mode,"pref-theme-scheme":l.state["theme-scheme"]},i("mds-text",{key:"b19e1fde7bdc84765cee7145dc6fdfd3c779339e",class:"info",typography:"caption"},i("b",{key:"5eae911ede8699c5b53d293ec195957e67a2716e"},this.t.get("label"))," ",this.disabled?this.t.get(this.modes[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label,{forced:!0}):this.t.get(this.modes[null!==(e=this.mode)&&void 0!==e?e:this.defaultMode].label,{forced:!1})),i("mds-tab",{key:"6d7ad904ef9072c72502dcf0e49584b3784531f7",fill:!0,size:this.size},i("mds-tab-item",{key:"410152bae335d83120e70f60339abe481106042d",disabled:this.isModeDisabled("light"),selected:"light"===this.mode,onClick:this.handleModeClick("light"),class:"item item--light",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"/></svg>',title:this.t.get(this.modes.light.label,{forced:!1})}),i("mds-tab-item",{key:"ce522eddaeab3dec97e65d5b4ed0e7b31a8767c7",disabled:this.isModeDisabled("system"),selected:"system"===this.mode,onClick:this.handleModeClick("system"),class:"item item--system",icon:r,title:this.t.get(this.modes.system.label)}),i("mds-tab-item",{key:"67889e2b7d49ab1832cb1a874624d2c5896c8738",disabled:this.isModeDisabled("dark"),selected:"dark"===this.mode,onClick:this.handleModeClick("dark"),class:"item item--dark",icon:"dark"===this.mode?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.37 5.51A7.35 7.35 0 0 0 9.1 7.5c0 4.08 3.32 7.4 7.4 7.4c.68 0 1.35-.09 1.99-.27A7.014 7.014 0 0 1 12 19c-3.86 0-7-3.14-7-7c0-2.93 1.81-5.45 4.37-6.49zM12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>',title:this.t.get(this.modes.dark.label)})))}get element(){return this}static get watchers(){return{mode:[{modeChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-pref-mode-overlay-fadeout-duration:.2s;--mds-pref-mode-overlay-show-duration:.3s;--mds-pref-mode-overlay-z-index:var(--magma-theme-overlay-z-index,7000);display:grid;gap:calc(var(--spacing,.0025rem)*100)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));flex-basis:0;flex-grow:1}.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}.item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-06,214 163 7))}.item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-06,47 182 243))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}}"}},[1,"mds-pref-mode",{size:[513],mode:[1537],transition:[1537],lockedScheme:[513,"locked-scheme"],disabled:[32]},void 0,{mode:[{modeChanged:0}]}]),x=w,M=function(){"undefined"!=typeof customElements&&["mds-pref-mode","mds-button","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((t=>{switch(t){case"mds-pref-mode":customElements.get(o(t))||customElements.define(o(t),w);break;case"mds-button":customElements.get(o(t))||c();break;case"mds-icon":customElements.get(o(t))||n();break;case"mds-spinner":customElements.get(o(t))||f();break;case"mds-tab":customElements.get(o(t))||g();break;case"mds-tab-item":customElements.get(o(t))||p();break;case"mds-text":customElements.get(o(t))||b()}}))};export{x as MdsPrefMode,M as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as a,d as r,h as s,c as t,t as m}from"./p-BhFTcUD0.js";import{m as o}from"./p-BFhO-KUe.js";import{m as
|
|
1
|
+
import{p as e,H as a,d as r,h as s,c as t,t as m}from"./p-BhFTcUD0.js";import{m as o}from"./p-BFhO-KUe.js";import{m as c}from"./p-lZldSMeV.js";import{d as i}from"./p-kff6xSdW.js";import{d as n}from"./p-qketFgr0.js";import{d}from"./p-C58NKMEE.js";import{d as l}from"./p-BZFyAX-6.js";const h=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.selectThemeEvent=r(this,"mdsPrefThemeItemSelect",7),this.name="default",this.scheme="all",this.selected=!1,this.handleClick=()=>{this.selectThemeEvent.emit({name:this.name,scheme:this.scheme})}}componentWillRender(){var e;""===(null!==(e=this.label)&&void 0!==e?e:"")&&(this.label=this.name.charAt(0).toUpperCase()+this.name.slice(1).replace(/-/g," "))}render(){return s(t,{key:"d14e86d120deb8ce9c1425dafb96c93e9cba4005",onClick:this.handleClick,role:"menuitem"},s("mds-button",{key:"60a1cf50d3875d1a6aa5493d6436edab1d96349e",icon:this.selected?o:c,variant:"dark",tone:"text"},s("div",{key:"b6cd3b716ea2bf811c90c63156ad5d57e5bd7aed",class:"label"},s("div",{key:"cf8468e4b9f3d3b03d5060c9531ae1035555270e",class:"theme-preview"},s("div",{key:"b634d507168fdec1c9536d7cac619ff1195ca9f1",class:"theme-color theme-color--variant-primary"}),s("div",{key:"67c459ade780433bde32a6a2ba302ae9814a275c",class:"theme-color theme-color--status-success"}),s("div",{key:"e68b927681b50d439bf937c55fb33b06b01463f6",class:"theme-color theme-color--status-warning"}),s("div",{key:"eb392e74cecbeb00d06989d3fe5650977e0328ea",class:"theme-color theme-color--status-error"})),this.label)))}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host{--mds-pref-theme-item-color-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));--mds-pref-theme-item-color-status-error:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-pref-theme-item-color-status-success:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-pref-theme-item-color-status-warning:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-pref-theme-item-color-variant-primary:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));display:flex}.label{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.theme-preview{background-color:var(--mds-pref-theme-item-color-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));border-radius:var(--radius-md,12px);-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-sizing:border-box;display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*600);margin:1px;padding:calc(var(--spacing,.0025rem)*100);width:calc(var(--spacing,.0025rem)*600)}.theme-color{background-color:var(--color-tone-neutral-09,rgb(var(--tone-neutral-09,225 225 225)));border-radius:var(--radius-lg,16px);height:calc(var(--spacing,.0025rem)*150);position:relative;width:calc(var(--spacing,.0025rem)*150)}.theme-color:after{border-radius:inherit;-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;content:"";display:flex;inset:0;position:absolute}.theme-color--variant-primary{background-color:var(--mds-pref-theme-item-color-variant-primary,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))))}.theme-color--status-success{background-color:var(--mds-pref-theme-item-color-status-success,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))))}.theme-color--status-warning{background-color:var(--mds-pref-theme-item-color-status-warning,rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))))}.theme-color--status-error{background-color:var(--mds-pref-theme-item-color-status-error,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))))}'}},[1,"mds-pref-theme-item",{label:[1537],name:[513],scheme:[513],selected:[516]}]),p=h,b=function(){"undefined"!=typeof customElements&&["mds-pref-theme-item","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-pref-theme-item":customElements.get(m(e))||customElements.define(m(e),h);break;case"mds-button":customElements.get(m(e))||i();break;case"mds-icon":customElements.get(m(e))||n();break;case"mds-spinner":customElements.get(m(e))||d();break;case"mds-text":customElements.get(m(e))||l()}}))};export{p as MdsPrefThemeItem,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,d as s,h as i,c as a,t as m}from"./p-BhFTcUD0.js";import{L as r}from"./p-Bss3F51Q.js";import{M as h,p as o}from"./p-CvIFS8oA.js";import{m as d}from"./p-DiWN48aq.js";import{m as n}from"./p-Ccz0jCNB.js";import{d as l}from"./p-
|
|
1
|
+
import{p as e,H as t,d as s,h as i,c as a,t as m}from"./p-BhFTcUD0.js";import{L as r}from"./p-Bss3F51Q.js";import{M as h,p as o}from"./p-CvIFS8oA.js";import{m as d}from"./p-DiWN48aq.js";import{m as n}from"./p-Ccz0jCNB.js";import{d as l}from"./p-kff6xSdW.js";import{d as c}from"./p-pys1EQ60.js";import{d as p}from"./p-qketFgr0.js";import{d as f}from"./p-C58NKMEE.js";import{d as u}from"./p-wq6nWuWE.js";import{d as b}from"./p-6K9sFzLr.js";import{d as g}from"./p-BZFyAX-6.js";const v=["bevel","notch","round","scoop","square","squircle","default"];var y={label:"Θέμα"},k={label:"Theme"},w={label:"Tema"},x={label:"Tema"};const E=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.themeChangeEvent=s(this,"mdsPrefThemeChange",7),this.prefChangeEvent=s(this,"mdsPrefChange",7),this.showDropdown=!1,this.localStorageAliasThemeName="mdsPrefTheme",this.localStorageAliasThemeScheme="mdsPrefThemeScheme",this.localStorageAliasCornerShape="mdsPrefCornerShape",this.t=new r({el:y,en:k,es:w,it:x}),this.clasNameThemeNamePrefix="pref-theme-",this.previousName=null,this.customPropertyAliasThemeScheme="--magma-pref-theme-scheme",this.customPropertyAliasThemeName="--magma-pref-theme",this.schemeSet={light:"pref-theme-scheme-light",dark:"pref-theme-scheme-dark",all:"pref-theme-scheme-all"},this.name="default",this.scheme="all",this.toggleDropdown=()=>{this.showDropdown=!this.showDropdown},this.hideThemeDropdownSelect=()=>{this.showDropdown=!1},this.changeThemeItem=()=>{this.themeItems.forEach((e=>{e.selected=!1}))},this.checkThemeSelect=()=>{this.themeItems=this.element.querySelectorAll("mds-pref-theme-item"),this.themeItems.forEach((e=>{e.addEventListener("mdsPrefThemeItemSelect",(e=>{this.changeThemeItem(),this.currentSelectedItem=e.currentTarget,this.currentSelectedItem.selected=!0;const t=e.detail.name.toLowerCase(),s=e.detail.scheme.toLowerCase();this.themeChangeEvent.emit({name:t,scheme:s}),this.showDropdown=!1,this.setTheme(t,s)}))})),this.themeItems.forEach((e=>{e.selected=e.name===this.name}))},this.setTheme=(e,t)=>{if(!/^[a-z]+(-[a-z]+)*$/gm.exec(e))throw Error("Theme name not valid: "+e);if(h.includes(e)||"scheme"===e||e.startsWith("scheme-"))throw Error("Theme name reserved: "+e);if(this.name=e,this.scheme=t,this.prefChangeEvent.emit({preference:"theme"}),localStorage.setItem(this.localStorageAliasThemeName,this.name),localStorage.setItem(this.localStorageAliasThemeScheme,this.scheme),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.schemeSet)({}).hasOwnProperty.call(this.schemeSet,t)&&(null==e||e.classList.remove(this.schemeSet[t]));null!==this.previousName&&""!==this.previousName&&(null==e||e.classList.remove(this.clasNameThemeNamePrefix+this.previousName)),null==e||e.setAttribute("data-theme-name",this.name),null==e||e.classList.add(this.schemeSet[this.scheme]),null==e||e.classList.add(this.clasNameThemeNamePrefix+this.name),null==e||e.style.setProperty(this.customPropertyAliasThemeName,this.name),null==e||e.style.setProperty(this.customPropertyAliasThemeScheme,this.scheme),this.previousName=this.name}o.state["theme-scheme"]=this.scheme},this.setCornerShape=e=>{if(null!=e){if(!v.includes(e))throw Error("Corner shape not valid: "+e);if(this.cornerShape=e,this.prefChangeEvent.emit({preference:"corner-shape"}),localStorage.setItem(this.localStorageAliasCornerShape,e),"undefined"!=typeof document){const t=document.querySelector("html");"default"===e?null==t||t.removeAttribute("data-corner-shape"):null==t||t.setAttribute("data-corner-shape",e)}o.state["corner-shape"]="default"===e?void 0:e}}}componentDidLoad(){this.checkThemeSelect()}componentWillRender(){var e,t,s;this.userThemeName=localStorage.getItem(this.localStorageAliasThemeName),this.userThemeScheme=localStorage.getItem(this.localStorageAliasThemeScheme),this.setTheme(null!==(e=this.userThemeName)&&void 0!==e?e:this.name,null!==(t=this.userThemeScheme)&&void 0!==t?t:this.scheme),this.userCornerShape=localStorage.getItem(this.localStorageAliasCornerShape),this.setCornerShape(null!==(s=this.userCornerShape)&&void 0!==s?s:this.cornerShape)}render(){return i(a,{key:"a987a2b4933078d3452f78dc04744e9d9885092c"},i("div",{key:"4c439a804622caae8194d846b5480ac29bb5251d",class:"menu"},i("mds-text",{key:"7e623faaab3bb6658baeb122e47c890fd85447ca",class:"info",typography:"caption"},i("b",{key:"2ff9690158e739206c6537deab6d35e09278f0ba"},this.t.get("label"))),i("mds-tab",{key:"fa84137e83f74c4a971d0996b34f08231d1a389e",fill:!0,size:this.size},i("mds-tab-item",{key:"2ab9c8235ffd1c30c71bee6c7a4f4f26d8d4edb1",selected:!0,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-theme-nav",class:"item item--theme","icon-position":"right",icon:this.showDropdown?n:d,label:this.name}))),i("mds-dropdown",{key:"e8a39c2158e253c3da5ee64156f499545b1ecd79",class:"mds-pref-theme-dropdown",target:"#mds-pref-theme-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideThemeDropdownSelect},i("slot",{key:"03d9ede427f0fca46ba54e46cdb625855910e421"})))}get element(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.mds-pref-theme-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));flex-basis:0;flex-grow:1}.item--theme{cursor:pointer}.item--auto,.item--theme{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}"}},[257,"mds-pref-theme",{size:[513],name:[1537],scheme:[1537],cornerShape:[1537,"corner-shape"],showDropdown:[32]}]),j=E,S=function(){"undefined"!=typeof customElements&&["mds-pref-theme","mds-button","mds-dropdown","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((e=>{switch(e){case"mds-pref-theme":customElements.get(m(e))||customElements.define(m(e),E);break;case"mds-button":customElements.get(m(e))||l();break;case"mds-dropdown":customElements.get(m(e))||c();break;case"mds-icon":customElements.get(m(e))||p();break;case"mds-spinner":customElements.get(m(e))||f();break;case"mds-tab":customElements.get(m(e))||u();break;case"mds-tab-item":customElements.get(m(e))||b();break;case"mds-text":customElements.get(m(e))||g()}}))};export{j as MdsPrefTheme,S as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as s,h as t,c as i,t as a}from"./p-BhFTcUD0.js";import{L as o}from"./p-Bss3F51Q.js";import{d as r}from"./p-
|
|
1
|
+
import{p as e,H as s,h as t,c as i,t as a}from"./p-BhFTcUD0.js";import{L as o}from"./p-Bss3F51Q.js";import{d as r}from"./p-BZFyAX-6.js";var n={reloadPageToSeeChanges:"Πρέπει να ανανεώσετε τη σελίδα για να δείτε όλες τις αλλαγές, διαφορετικά θα είναι ορατές μόνο για τα πρόσφατα μεταφορτωμένα στοιχεία."},h={reloadPageToSeeChanges:"You must refresh the page to see all changes, or they will only be visible for new items uploaded."},d={reloadPageToSeeChanges:"Es necesario actualizar la página para ver todos los cambios, o solo serán visibles para los nuevos elementos cargados."},l={reloadPageToSeeChanges:"È necessario aggiornare la pagina per vedere tutti i cambiamenti, oppure saranno visibili solo per i nuovi elementi caricati."};const m=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.showReload=!1,this.prefNeedsReload=["consumption","language"],this.t=new o({el:n,en:h,es:d,it:l}),this.addPerfEvents=()=>{this.addEvent(this.host.querySelector("mds-pref-consumption")),this.addEvent(this.host.querySelector("mds-pref-contrast")),this.addEvent(this.host.querySelector("mds-pref-language")),this.addEvent(this.host.querySelector("mds-pref-mode")),this.addEvent(this.host.querySelector("mds-pref-theme"))},this.removePerfEvents=()=>{this.removeEvent(this.host.querySelector("mds-pref-consumption")),this.removeEvent(this.host.querySelector("mds-pref-contrast")),this.removeEvent(this.host.querySelector("mds-pref-language")),this.removeEvent(this.host.querySelector("mds-pref-mode")),this.removeEvent(this.host.querySelector("mds-pref-theme"))},this.handlePrefChangeEvent=e=>{this.prefNeedsReload.includes(e.detail.preference)&&(this.showReload=!0)},this.addEvent=e=>{e&&e.addEventListener("mdsPrefChange",this.handlePrefChangeEvent.bind(this))},this.removeEvent=e=>{e&&e.removeEventListener("mdsPrefChange",this.handlePrefChangeEvent.bind(this))},this.handleThemeChangeEvent=e=>{const s=e.detail;this.applySchemeLock(null==s?void 0:s.scheme)},this.addThemeEvent=e=>{e&&e.addEventListener("mdsPrefThemeChange",this.handleThemeChangeEvent)},this.removeThemeEvent=e=>{e&&e.removeEventListener("mdsPrefThemeChange",this.handleThemeChangeEvent)},this.applySchemeLock=e=>{const s=this.host.querySelector("mds-pref-mode");s&&(s.lockedScheme="light"===e||"dark"===e?e:void 0)},this.applyInitialSchemeLock=()=>{const e=this.host.querySelector("mds-pref-theme");this.applySchemeLock(null==e?void 0:e.scheme)}}handleControllerChange(e){!1===e&&(this.controller=void 0)}handleSizeChange(e){Array.from(this.host.querySelectorAll("*")).filter((e=>e.tagName.toLowerCase().startsWith("mds-pref-"))).forEach((s=>{s.size=e}))}componentDidLoad(){var e;"undefined"!=typeof window&&(null===(e=document.documentElement)||void 0===e||e.setAttribute("data-magma-pref","")),this.controller&&this.addPerfEvents(),this.addThemeEvent(this.host.querySelector("mds-pref-theme")),this.applyInitialSchemeLock()}disconnectedCallback(){var e;"undefined"!=typeof window&&(null===(e=document.documentElement)||void 0===e||e.removeAttribute("data-magma-pref")),this.removePerfEvents(),this.removeThemeEvent(this.host.querySelector("mds-pref-theme"))}render(){return t(i,{key:"75bd4a024ef7e6fbf97a1bcb90f5927423959565"},t("slot",{key:"68400b48511b1089063665c6b33331629207135f"}),this.showReload&&t("div",{key:"d07255c793b3f93c42b6c86e972416651d13a701",class:"reload-required"},t("mds-text",{key:"d19ea1765dea329590fa7d7a81186f3d4775106b",typography:"caption"},this.t.get("reloadPageToSeeChanges"))))}get host(){return this}static get watchers(){return{controller:[{handleControllerChange:0}],size:[{handleSizeChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*400)}:host(:empty),:host([controller]){display:none}.reload-required{display:grid;gap:calc(var(--spacing,.0025rem)*200)}"}},[257,"mds-pref",{size:[513],controller:[1540],showReload:[32]},void 0,{controller:[{handleControllerChange:0}],size:[{handleSizeChange:0}]}]),c=m,p=function(){"undefined"!=typeof customElements&&["mds-pref","mds-text"].forEach((e=>{switch(e){case"mds-pref":customElements.get(a(e))||customElements.define(a(e),m);break;case"mds-text":customElements.get(a(e))||r()}}))};export{c as MdsPref,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as r,c as a,t as o}from"./p-BhFTcUD0.js";import{p as i}from"./p-CvIFS8oA.js";import{m as s}from"./p-BFhO-KUe.js";import{m as l}from"./p-BE8xuIpS.js";import{d as n}from"./p-
|
|
1
|
+
import{p as e,H as t,h as r,c as a,t as o}from"./p-BhFTcUD0.js";import{p as i}from"./p-CvIFS8oA.js";import{m as s}from"./p-BFhO-KUe.js";import{m as l}from"./p-BE8xuIpS.js";import{d as n}from"./p-BZFyAX-6.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.type="text"}render(){return r(a,{key:"6672e980cb96c65971d4bfa8fe61ee6043f0fc09","pref-animation":i.state.animation,"pref-contrast":i.state.contrast,"pref-mode":i.state.mode,"pref-theme-scheme":i.state["theme-scheme"]},"supported"===this.type&&r("i",{key:"3bbfede28639b01f1f06620e6295ed0007c3c8dd",class:"icon icon--supported",innerHTML:s,part:"icon"}),"unsupported"===this.type&&r("i",{key:"f465be7d986b13a119a8a43c880e2789c3e03304",class:"icon icon--unsupported",innerHTML:l,part:"icon"}),"text"===this.type&&r("mds-text",{key:"00b63cc837f7abd6b394f41fe0c066287c7d7755",part:"text",typography:"detail"},r("slot",{key:"279f5010a519b0adbe2aa4f84275ec7cd590a42c"})),"custom"===this.type&&r("slot",{key:"aba0dd7e32e62baafe4f2eb78bebf3a12bdfe2c5"}),"label"===this.type&&r("slot",{key:"5571dff3f60a05d615f8b75c5e883def96ab20df"}))}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-price-table-features-cell-padding:var(--mds-price-table-features-padding,calc(var(--spacing,.0025rem)*300));--mds-price-table-features-cell-icon-supported-color-hover:rgb(var(--label-green-06,34 195 93));--mds-price-table-features-cell-icon-supported-color:rgb(var(--label-green-06,34 195 93));--mds-price-table-features-cell-icon-unsupported-color-hover:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-price-table-features-cell-icon-unsupported-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-price-table-features-cell-border-color:rgb(var(--magma-border-muted,var(--magma-tint-border-muted,var(--border-neutral-muted,219 219 219))));--mds-price-table-features-cell-transition-duration:var(--duration-200,.2s);--private-price-table-features-cell-transition-duration:var(--mds-price-table-features-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-bottom:1px solid var(--mds-price-table-features-cell-border-color,rgb(var(--magma-border-muted,var(--magma-tint-border-muted,var(--border-neutral-muted,219 219 219)))));display:table-cell;padding:var(--mds-price-table-features-cell-padding,calc(var(--spacing,.0025rem)*300));-webkit-transition-duration:var(--private-price-table-features-cell-transition-duration);transition-duration:var(--private-price-table-features-cell-transition-duration);transition-property:border-color,transform;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.icon{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));display:flex;fill:var(--icon-fill-color,currentColor);height:calc(var(--spacing,.0025rem)*600);-webkit-transition-duration:var(--private-price-table-features-cell-transition-duration);transition-duration:var(--private-price-table-features-cell-transition-duration);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:calc(var(--spacing,.0025rem)*600)}.icon--supported{--icon-fill-color:var(--mds-price-table-features-cell-icon-supported-color,rgb(var(--label-green-06,34 195 93)))}.icon--unsupported{--icon-fill-color:var(--mds-price-table-features-cell-icon-unsupported-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}: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-price-table-features-cell-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-price-table-features-cell-icon-supported-color:rgb(var(--label-green-03,18 103 49));--mds-price-table-features-cell-icon-supported-color-hover:rgb(var(--label-green-02,14 80 38));--mds-price-table-features-cell-icon-unsupported-color-hover:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]){--mds-price-table-features-cell-icon-supported-color-hover:rgb(var(--label-green-01,9 52 25));--mds-price-table-features-cell-icon-supported-color:rgb(var(--label-green-02,14 80 38));--mds-price-table-features-cell-icon-unsupported-color-hover:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-price-table-features-cell-icon-unsupported-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-price-table-features-cell-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-price-table-features-cell-icon-supported-color:rgb(var(--label-green-03,18 103 49));--mds-price-table-features-cell-icon-supported-color-hover:rgb(var(--label-green-02,14 80 38));--mds-price-table-features-cell-icon-unsupported-color-hover:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-price-table-features-cell-icon-supported-color-hover:rgb(var(--label-green-01,9 52 25));--mds-price-table-features-cell-icon-supported-color:rgb(var(--label-green-02,14 80 38));--mds-price-table-features-cell-icon-unsupported-color-hover:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-price-table-features-cell-icon-unsupported-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}'}},[257,"mds-price-table-features-cell",{type:[513]}]),d=c,p=function(){"undefined"!=typeof customElements&&["mds-price-table-features-cell","mds-text"].forEach((e=>{switch(e){case"mds-price-table-features-cell":customElements.get(o(e))||customElements.define(o(e),c);break;case"mds-text":customElements.get(o(e))||n()}}))};export{d as MdsPriceTableFeaturesCell,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as r,c as a,t as i}from"./p-BhFTcUD0.js";import{p as o}from"./p-CvIFS8oA.js";import{d as s}from"./p-
|
|
1
|
+
import{p as e,H as t,h as r,c as a,t as i}from"./p-BhFTcUD0.js";import{p as o}from"./p-CvIFS8oA.js";import{d as s}from"./p-BZFyAX-6.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(a,{key:"4cea40f8e29d671ebd61fba34cb9a7edb7517b3b","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},r("div",{key:"7e8b20fafe83f27b3c7d031e8875c0e254e3c82c",class:"table-wrapper"},this.label&&r("header",{key:"7ff3827ecf98976e0f73a8c1dbefc55aa0ec21b1",part:"header"},r("mds-text",{key:"e5f383837d852c48ffd2fdc9555b667cc4822f2f",typography:"detail"},r("b",{key:"0df39a3221f8a463a3d677a89d429d5f3b9f1827"},this.label))),r("table",{key:"6ff8b551d1ac18d48bbf4c98c86a30e057f56b33"},r("tbody",{key:"3daa55e6d546ebffe8695b35340536b73338045c"},r("slot",{key:"6dc5df72184166bd4b444801466f8decbe7db006"})))))}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host{--mds-price-table-features-border-color:rgb(var(--magma-border-muted,var(--magma-tint-border-muted,var(--border-neutral-muted,219 219 219))));--mds-price-table-features-padding:calc(var(--spacing,.0025rem)*300);--mds-price-table-features-transition-duration:var(--duration-200,.2s);--private-price-table-features-transition-duration:var(--mds-price-table-features-transition-duration);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));display:flex;-webkit-transition-duration:var(--private-price-table-features-transition-duration);transition-duration:var(--private-price-table-features-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));width:100%}.table-wrapper{scroll-margin-inline:calc(var(--spacing,.0025rem)*600);width:100%}table{border-collapse:collapse;min-width:100%;table-layout:fixed}header{border-bottom:1px solid var(--mds-price-table-features-border-color,rgb(var(--magma-border-muted,var(--magma-tint-border-muted,var(--border-neutral-muted,219 219 219)))));padding:var(--mds-price-table-features-padding) var(--mds-price-table-features-padding) var(--mds-price-table-features-padding) 0}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-price-table-features-transition-duration:0s}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-price-table-features-transition-duration:0s}}'}},[257,"mds-price-table-features",{label:[1]}]),d=n,m=function(){"undefined"!=typeof customElements&&["mds-price-table-features","mds-text"].forEach((e=>{switch(e){case"mds-price-table-features":customElements.get(i(e))||customElements.define(i(e),n);break;case"mds-text":customElements.get(i(e))||s()}}))};export{d as MdsPriceTableFeatures,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,c as
|
|
1
|
+
import{p as t,H as e,h as i,c as a,t as r}from"./p-BhFTcUD0.js";import{m as s}from"./p-BFhO-KUe.js";import{m as o}from"./p-BE8xuIpS.js";import{d as n}from"./p-BZFyAX-6.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.supported=!1,this.typography="detail"}render(){return i(a,{key:"9f970a01728c3729c604119a3f9e8ba520754ee9",slot:"item"},i("mds-text",{key:"07f98b7344b20804848c534460eaa84fa3d9c402",class:"icon-container",typography:this.typography},i("i",this.supported?{class:"icon",innerHTML:s,part:"icon"}:{class:"icon",innerHTML:o,part:"icon"})),i("mds-text",{key:"992dc84f0b8fd8ed025e971c3537ce98b675985a",class:"text",typography:this.typography},i("slot",{key:"ff21af191088a6f5555002508e1ef6bf71f61aaf"})))}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-price-table-list-item-supported-icon-color-hover:rgb(var(--label-green-05,26 148 71));--mds-price-table-list-item-supported-icon-color:rgb(var(--label-green-06,34 195 93));--mds-price-table-list-item-unsupported-icon-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:flex-start;display:flex;gap:calc(var(--spacing,.0025rem)*100)}.text{flex-grow:1}.icon-container{flex-shrink:0}.icon{display:flex;--tw-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));fill:var(--mds-price-table-list-item-unsupported-icon-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));height:calc(var(--spacing,.0025rem)*600);-webkit-transition-duration:var(--duration-500,.5s);transition-duration:var(--duration-500,.5s);transition-property:fill;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:calc(var(--spacing,.0025rem)*600)}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([supported]:not([supported=false])) .icon{fill:var(--mds-price-table-list-item-supported-icon-color,rgb(var(--label-green-06,34 195 93)))}@property --tw-ease{syntax:"*";inherits:false}'}},[257,"mds-price-table-list-item",{supported:[516],typography:[513]}]),c=l,d=function(){"undefined"!=typeof customElements&&["mds-price-table-list-item","mds-text"].forEach((t=>{switch(t){case"mds-price-table-list-item":customElements.get(r(t))||customElements.define(r(t),l);break;case"mds-text":customElements.get(r(t))||n()}}))};export{c as MdsPriceTableListItem,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as o,d as
|
|
1
|
+
import{M as o,d as r}from"./p-DCrjf0F0.js";const s=o,p=r;export{s as MdsProgress,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as a,d as i,h as o,c as n,t as r}from"./p-BhFTcUD0.js";import{g as e}from"./p-E-ZsRS8r.js";import{m as s}from"./p-BJ8rpzfj.js";import{h as c}from"./p-CsgCQiHG.js";import{c as m}from"./p-ChV9xqsO.js";import{L as u}from"./p-Bss3F51Q.js";import{s as d}from"./p-CACEYk42.js";import{p as h}from"./p-CvIFS8oA.js";import{d as l}from"./p-CbufYCNj.js";import{d as f}from"./p-CVgKDZPF.js";import{d as p}from"./p-CatD1iUY.js";import{d as v}from"./p-Dj_oN194.js";import{d as g}from"./p-C58NKMEE.js";import{d as b}from"./p-B9DJLgwr.js";var y,k,w={exports:{}},x=e((y||(y=1,w.exports=function(){var t=6e4,a=36e5,i="millisecond",o="second",n="minute",r="hour",e="day",s="week",c="month",m="quarter",u="year",d="date",h="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var a=["th","st","nd","rd"],i=t%100;return"["+t+(a[(i-20)%10]||a[i]||"th")+"]"}},v=function(t,a,i){var o=t+"";return!o||o.length>=a?t:""+Array(a+1-o.length).join(i)+t},g={s:v,z:function(t){var a=-t.utcOffset(),i=Math.abs(a),o=i%60;return(a<=0?"+":"-")+v(Math.floor(i/60),2,"0")+":"+v(o,2,"0")},m:function t(a,i){if(a.date()<i.date())return-t(i,a);var o=12*(i.year()-a.year())+(i.month()-a.month()),n=a.clone().add(o,c),r=i-n<0,e=a.clone().add(o+(r?-1:1),c);return+(-(o+(i-n)/(r?n-e:e-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:u,w:s,d:e,D:d,h:r,m:n,s:o,ms:i,Q:m}[t]||((t||"")+"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",y={};y[b]=p;var k="$isDayjsObject",w=function(t){return t instanceof j||!(!t||!t[k])},x=function t(a,i,o){var n;if(!a)return b;if("string"==typeof a){var r=a.toLowerCase();y[r]&&(n=r),i&&(y[r]=i,n=r);var e=a.split("-");if(!n&&e.length>1)return t(e[0])}else{var s=a.name;y[s]=a,n=s}return!o&&n&&(b=n),n||!o&&b},M=function(t,a){if(w(t))return t.clone();var i="object"==typeof a?a:{};return i.date=t,i.args=arguments,new j(i)},D=g;D.l=x,D.i=w,D.w=function(t,a){return M(t,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var j=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[k]=!0}var v=p.prototype;return v.parse=function(t){this.$d=function(t){var a=t.date,i=t.utc;if(null===a)return new Date(NaN);if(D.u(a))return new Date;if(a instanceof Date)return new Date(a);if("string"==typeof a&&!/Z$/i.test(a)){var o=a.match(l);if(o){var n=o[2]-1||0,r=(o[7]||"0").substring(0,3);return i?new Date(Date.UTC(o[1],n,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)):new Date(o[1],n,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)}}return new Date(a)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return D},v.isValid=function(){return!(""+this.$d===h)},v.isSame=function(t,a){var i=M(t);return this.startOf(a)<=i&&i<=this.endOf(a)},v.isAfter=function(t,a){return M(t)<this.startOf(a)},v.isBefore=function(t,a){return this.endOf(a)<M(t)},v.$g=function(t,a,i){return D.u(t)?this[a]:this.set(i,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,a){var i=this,m=!!D.u(a)||a,h=D.p(t),l=function(t,a){var o=D.w(i.$u?Date.UTC(i.$y,a,t):new Date(i.$y,a,t),i);return m?o:o.endOf(e)},f=function(t,a){return D.w(i.toDate()[t].apply(i.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(a)),i)},p=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case u:return m?l(1,0):l(31,11);case c:return m?l(1,v):l(0,v+1);case s:var y=this.$locale().weekStart||0,k=(p<y?p+7:p)-y;return l(m?g-k:g+(6-k),v);case e:case d:return f(b+"Hours",0);case r:return f(b+"Minutes",1);case n:return f(b+"Seconds",2);case o:return f(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,a){var s,m=D.p(t),h="set"+(this.$u?"UTC":""),l=(s={},s[e]=h+"Date",s[d]=h+"Date",s[c]=h+"Month",s[u]=h+"FullYear",s[r]=h+"Hours",s[n]=h+"Minutes",s[o]=h+"Seconds",s[i]=h+"Milliseconds",s)[m],f=m===e?this.$D+(a-this.$W):a;if(m===c||m===u){var p=this.clone().set(d,1);p.$d[l](f),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else l&&this.$d[l](f);return this.init(),this},v.set=function(t,a){return this.clone().$set(t,a)},v.get=function(t){return this[D.p(t)]()},v.add=function(i,m){var d,h=this;i=Number(i);var l=D.p(m),f=function(t){var a=M(h);return D.w(a.date(a.date()+Math.round(t*i)),h)};if(l===c)return this.set(c,this.$M+i);if(l===u)return this.set(u,this.$y+i);if(l===e)return f(1);if(l===s)return f(7);var p=(d={},d[n]=t,d[r]=a,d[o]=1e3,d)[l]||1,v=this.$d.getTime()+i*p;return D.w(v,this)},v.subtract=function(t,a){return this.add(-1*t,a)},v.format=function(t){var a=this,i=this.$locale();if(!this.isValid())return i.invalidDate||h;var o=t||"YYYY-MM-DDTHH:mm:ssZ",n=D.z(this),r=this.$H,e=this.$m,s=this.$M,c=i.weekdays,m=i.months,u=function(t,i,n,r){return t&&(t[i]||t(a,o))||n[i].slice(0,r)},d=function(t){return D.s(r%12||12,t,"0")},l=i.meridiem||function(t,a,i){var o=t<12?"AM":"PM";return i?o.toLowerCase():o};return o.replace(f,(function(t,o){return o||function(t){switch(t){case"YY":return(a.$y+"").slice(-2);case"YYYY":return D.s(a.$y,4,"0");case"M":return s+1;case"MM":return D.s(s+1,2,"0");case"MMM":return u(i.monthsShort,s,m,3);case"MMMM":return u(m,s);case"D":return a.$D;case"DD":return D.s(a.$D,2,"0");case"d":return a.$W+"";case"dd":return u(i.weekdaysMin,a.$W,c,2);case"ddd":return u(i.weekdaysShort,a.$W,c,3);case"dddd":return c[a.$W];case"H":return r+"";case"HH":return D.s(r,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return l(r,e,!0);case"A":return l(r,e,!1);case"m":return e+"";case"mm":return D.s(e,2,"0");case"s":return a.$s+"";case"ss":return D.s(a.$s,2,"0");case"SSS":return D.s(a.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,d,h){var l,f=this,p=D.p(d),v=M(i),g=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=function(){return D.m(f,v)};switch(p){case u:l=y()/12;break;case c:l=y();break;case m:l=y()/3;break;case s:l=(b-g)/6048e5;break;case e:l=(b-g)/864e5;break;case r:l=b/a;break;case n:l=b/t;break;case o:l=b/1e3;break;default:l=b}return h?l:D.a(l)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(t,a){if(!t)return this.$L;var i=this.clone(),o=x(t,a,!0);return o&&(i.$L=o),i},v.clone=function(){return D.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},p}(),C=j.prototype;return M.prototype=C,[["$ms",i],["$s",o],["$m",n],["$H",r],["$W",e],["$M",c],["$y",u],["$D",d]].forEach((function(t){C[t[1]]=function(a){return this.$g(a,t[0],t[1])}})),M.extend=function(t,a){return t.$i||(t(a,j,M),t.$i=!0),M},M.locale=x,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=y[b],M.Ls=y,M.p={},M}()),w.exports)),M={dismiss:"Κλείσιμο",future:"σε %s",past:"πριν από %s",s:"λίγα δευτ.",m:"1 λεπτό",mm:"%d λεπτά",h:"1 ώρα",hh:"%d ώρες",d:"1 ημέρα",dd:"%d ημέρες",M:"1 μήνας",MM:"%d μήνες",y:"1 έτος",yy:"%d έτη"},D={dismiss:"Close",future:"in %s",past:"%s ago",s:"few sec",m:"1 min",mm:"%d mins",h:"1 hour",hh:"%d hours",d:"1 day",dd:"%d days",M:"1 month",MM:"%d months",y:"1 year",yy:"%d years"},j={dismiss:"Cerrar",future:"en %s",past:"hace %s",s:"pocos seg",m:"1 min",mm:"%d mins",h:"1 hora",hh:"%d horas",d:"1 día",dd:"%d días",M:"1 mes",MM:"%d meses",y:"1 año",yy:"%d años"},C={dismiss:"Chiudi",future:"tra %s",past:"%s fa",s:"pochi sec",m:"1 min",mm:"%d min",h:"1 ora",hh:"%d ore",d:"1 giorno",dd:"%d giorni",M:"1 mese",MM:"%d mesi",y:"1 anno",yy:"%d anni"},_={exports:{}},S=e((k||(k=1,_.exports=function(t,a,i){t=t||{};var o=a.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function r(t,a,i,n){return o.fromToBase(t,a,i,n)}i.en.relativeTime=n,o.fromToBase=function(a,o,r,e,s){for(var c,m,u,d=r.$locale().relativeTime||n,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],l=h.length,f=0;f<l;f+=1){var p=h[f];p.d&&(c=e?i(a).diff(r,p.d,!0):r.diff(a,p.d,!0));var v=(t.rounding||Math.round)(Math.abs(c));if(u=c>0,v<=p.r||!p.r){v<=1&&f>0&&(p=h[f-1]);var g=d[p.l];s&&(v=s(""+v)),m="string"==typeof g?g.replace("%d",v):g(v,o,p.l,u);break}}if(o)return m;var b=u?d.future:d.past;return"function"==typeof b?b(m):b.replace("%s",m)},o.to=function(t,a){return r(t,a,this,!0)},o.from=function(t,a){return r(t,a,this)};var e=function(t){return t.$u?i.utc():i()};o.toNow=function(t){return this.to(e(this),t)},o.fromNow=function(t){return this.from(e(this),t)}}),_.exports));const Y=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closedEvent=i(this,"mdsPushNotificationItemClose",7),this.t=new u({el:M,en:D,es:j,it:C}),this.dateFormat="timeago",this.deletable=!1,this.message="Nessun messaggio disponibile",this.preview="image",this.tone="weak",this.onClickClose=t=>{t.stopPropagation(),this.closedEvent.emit()},this.onSlotChange=()=>{this.hasActions=c(this.host,"action"),this.hasBadge=c(this.host,"badge")}}componentDidLoad(){this.handleDeletableChange(this.deletable)}componentWillLoad(){var t;x.extend(S),this.onSlotChange(),void 0!==this.datetime&&""!==this.datetime&&(this.datetime=null!==(t=d(""+this.datetime))&&void 0!==t?t:void 0);const a={future:this.t.get("future"),past:this.t.get("past"),s:this.t.get("s"),m:this.t.get("m"),mm:this.t.get("mm"),h:this.t.get("h"),hh:this.t.get("hh"),d:this.t.get("d"),dd:this.t.get("dd"),M:this.t.get("M"),MM:this.t.get("MM"),y:this.t.get("y"),yy:this.t.get("yy")};x.locale("custom-locale",{relativeTime:a})}handleDeletableChange(t){!1===t&&(this.deletable=void 0)}render(){var t;return o(n,{key:"44ada1005f4b353654c1f6ea16750e78247bb954","pref-animation":h.state.animation,"pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},(null!==(t=this.icon)&&void 0!==t?t:"avatar"===this.preview)&&o("mds-avatar",{key:"803434ac217118fc5a3147936cef4795c4e85701",class:"avatar",icon:this.icon,initials:this.initials,part:"avatar",src:this.src,tone:this.tone,variant:this.variant}),this.src&&"avatar"!==this.preview&&o("mds-img",{key:"0dd4c581adbc411f9429aadc8b3d8a4ea679e86d",class:"picture",part:"picture",src:this.src}),o("div",{key:"ef2bc48eaa2a1894678e8fac420e3b72d131782f",class:"content",part:"content"},o("div",{key:"b34e5ad851f0f3a2d8d349e4435c05b6b42cd040",class:"header"},o("div",{key:"321b618924ab8280d1d6d7846f0193e0aa27d691",class:"infos"},o("div",{key:"7efed5a22e7cf676f9f75867dc753a4c5af86b4b",class:m("badge",!this.hasBadge&&"badge--hidden")},o("slot",{key:"afe8def12f9dc475906e933ed41e403c07bff4f8",name:"badge",onSlotchange:this.onSlotChange})),this.subject&&o("mds-text",{key:"23fe7b51985ea6815ac337f388c11f59f7b2a7c2",class:"subject",typography:"h6",variant:"title",truncate:"all"},this.subject)),this.datetime&&o("mds-text",{key:"1cdf001ea8c0b3aee55e5c51e7fd5583cb6d6c48",class:"time",typography:"option"},"timeago"===this.dateFormat?x(this.datetime).fromNow():x(this.datetime).format(this.dateFormat))),o("mds-text",{key:"e0ef2a95cbd8c2194db91206c9f22800b36c99d0",class:"message",truncate:"all",typography:"caption",variant:"info"},this.message),o("div",{key:"d05a9eaa20ccb045225c50248faeadf839fbdb41",class:m("actions",!this.hasActions&&"actions--hidden"),part:"actions"},o("slot",{key:"58cdc624c7a23838ff5a9ceb234485610077ccc9",name:"action",onSlotchange:this.onSlotChange}))),this.deletable&&o("mds-button",{key:"68c176fb51d477024a7b26dd18f7618c7e0cc424",class:"close-button",variant:"dark",tone:"text",title:this.t.get("dismiss"),icon:s,onClick:this.onClickClose}))}get host(){return this}static get watchers(){return{deletable:[{handleDeletableChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-button,mds-img,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-push-notification-item-duration:.3s;--private-push-notification-item-duration:var(--mds-push-notification-item-duration,.3s);--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-push-notification-item-message-line-clamp:2;--mds-push-notification-item-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-push-notification-item-subject-line-clamp:1;--mds-push-notification-item-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));align-items:flex-start;background-color:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--mds-push-notification-item-shadow);box-shadow:var(--mds-push-notification-item-shadow);color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));display:flex;gap:calc(var(--spacing,.0025rem)*400);max-width:calc(var(--spacing,.0025rem)*8000);min-width:calc(var(--spacing,.0025rem)*7200);padding:calc(var(--spacing,.0025rem)*400);pointer-events:auto;position:relative;-webkit-transition-duration:var(--private-push-notification-item-duration);transition-duration:var(--private-push-notification-item-duration);transition-property:background-color,box-shadow,color,margin,transform;-webkit-transition-timing-function:var(--mds-push-notification-item-timing-function);transition-timing-function:var(--mds-push-notification-item-timing-function)}:host([deletable]:not([deletable=false])){padding-right:calc(var(--spacing,.0025rem)*800)}.content{display:grid;flex-grow:1}.actions{display:flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*200);min-width:1px;padding-top:calc(var(--spacing,.0025rem)*200)}.actions--hidden,.badge--hidden{display:none}.avatar,.picture{flex-shrink:0}.picture{border-radius:var(--radius-3xs,4px);-webkit-box-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);box-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);max-width:calc(var(--spacing,.0025rem)*1200);width:100%}.close-button{opacity:0;padding:calc(var(--spacing,.0025rem)*150);position:absolute;right:0;top:0;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function)}:host(:hover) .close-button{opacity:1}.close-button:focus-visible,.close-button:hover{fill:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));opacity:1}.header{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*100);justify-content:space-between;min-width:0;overflow:hidden;text-overflow:ellipsis}.infos{display:flex;flex-direction:column}.time{flex-shrink:0;margin-right:calc(var(--spacing,.0025rem)*100);white-space:nowrap}.subject{--mds-text-line-clamp:var(--mds-push-notification-item-subject-line-clamp,1);line-height:var(--leading-sm,1.25rem)}.message,.subject{text-overflow:ellipsis}.message{--mds-text-line-clamp:var(--mds-push-notification-item-message-line-clamp,2)}.avatar{background-color:var(--mds-push-notification-item-icon-background-color,#0000);border-radius:var(--radius-full,1000px);fill:var(--mds-push-notification-item-icon-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.avatar::part(svg){width:calc(var(--spacing,.0025rem)*600)}:host([src]) .avatar{background-color:#0000}:host([icon]) .avatar::part(wrapper){padding:calc(var(--spacing,.0025rem)*150)}: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-push-notification-item-duration:0s}:host([pref-contrast=more]){--mds-push-notification-item-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)) inset;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=primary][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-push-notification-item-icon-color:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=primary]),:host([variant=primary][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-push-notification-item-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}:host([variant=primary][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}:host([variant=orange][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orange-05,213 90 5));--mds-push-notification-item-icon-color:rgb(var(--label-orange-10,254 233 219))}:host([variant=orange]),:host([variant=orange][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orange-09,253 217 191));--mds-push-notification-item-icon-color:rgb(var(--label-orange-05,213 90 5))}:host([variant=orange][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-orange-05,213 90 5))}:host([variant=amaranth][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-amaranth-05,242 37 72));--mds-push-notification-item-icon-color:rgb(var(--label-amaranth-10,254 232 236))}:host([variant=amaranth]),:host([variant=amaranth][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-amaranth-09,253 214 221));--mds-push-notification-item-icon-color:rgb(var(--label-amaranth-05,242 37 72))}:host([variant=amaranth][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-amaranth-05,242 37 72))}:host([variant=orchid][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orchid-05,233 44 137));--mds-push-notification-item-icon-color:rgb(var(--label-orchid-10,253 231 242))}:host([variant=orchid]),:host([variant=orchid][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orchid-09,251 213 232));--mds-push-notification-item-icon-color:rgb(var(--label-orchid-05,233 44 137))}:host([variant=orchid][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-orchid-05,233 44 137))}:host([variant=purple][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-purple-05,168 86 247));--mds-push-notification-item-icon-color:rgb(var(--label-purple-10,244 233 254))}:host([variant=purple]),:host([variant=purple][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-purple-09,235 216 253));--mds-push-notification-item-icon-color:rgb(var(--label-purple-05,168 86 247))}:host([variant=purple][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-purple-05,168 86 247))}:host([variant=red][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-red-05,230 66 66));--mds-push-notification-item-icon-color:rgb(var(--label-red-10,252 233 233))}:host([variant=red]),:host([variant=red][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-red-09,250 215 215));--mds-push-notification-item-icon-color:rgb(var(--label-red-05,230 66 66))}:host([variant=red][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-red-05,230 66 66))}:host([variant=violet][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-violet-05,145 100 246));--mds-push-notification-item-icon-color:rgb(var(--label-violet-10,240 234 254))}:host([variant=violet]),:host([variant=violet][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-violet-09,229 218 253));--mds-push-notification-item-icon-color:rgb(var(--label-violet-05,145 100 246))}:host([variant=violet][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-violet-05,145 100 246))}:host([variant=blue][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-blue-05,90 117 249));--mds-push-notification-item-icon-color:rgb(var(--label-blue-10,233 236 254))}:host([variant=blue]),:host([variant=blue][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-blue-09,216 222 254));--mds-push-notification-item-icon-color:rgb(var(--label-blue-05,90 117 249))}:host([variant=blue][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-blue-05,90 117 249))}:host([variant=sky][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-sky-05,12 136 193));--mds-push-notification-item-icon-color:rgb(var(--label-sky-10,217 241 253))}:host([variant=sky]),:host([variant=sky][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-sky-09,185 231 251));--mds-push-notification-item-icon-color:rgb(var(--label-sky-05,12 136 193))}:host([variant=sky][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-sky-05,12 136 193))}:host([variant=aqua][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-aqua-05,5 141 165));--mds-push-notification-item-icon-color:rgb(var(--label-aqua-10,199 245 253))}:host([variant=aqua]),:host([variant=aqua][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-aqua-09,151 237 252));--mds-push-notification-item-icon-color:rgb(var(--label-aqua-05,5 141 165))}:host([variant=aqua][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-aqua-05,5 141 165))}:host([variant=green][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-green-05,26 148 71));--mds-push-notification-item-icon-color:rgb(var(--label-green-10,206 247 221))}:host([variant=green]),:host([variant=green][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-green-09,165 240 193));--mds-push-notification-item-icon-color:rgb(var(--label-green-05,26 148 71))}:host([variant=green][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-green-05,26 148 71))}:host([variant=lime][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-lime-05,93 143 15));--mds-push-notification-item-icon-color:rgb(var(--label-lime-10,219 247 178))}:host([variant=lime]),:host([variant=lime][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-lime-09,189 239 111));--mds-push-notification-item-icon-color:rgb(var(--label-lime-05,93 143 15))}:host([variant=lime][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-lime-05,93 143 15))}:host([variant=yellow][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-yellow-05,161 124 6));--mds-push-notification-item-icon-color:rgb(var(--label-yellow-10,253 236 186))}:host([variant=yellow]),:host([variant=yellow][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-yellow-09,251 221 131));--mds-push-notification-item-icon-color:rgb(var(--label-yellow-05,161 124 6))}:host([variant=yellow][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-yellow-05,161 124 6))}:host([variant=error][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-push-notification-item-icon-color:rgb(var(--magma-danger-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]),:host([variant=error][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-push-notification-item-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=warning][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-push-notification-item-icon-color:rgb(var(--magma-warning-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=warning]),:host([variant=warning][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-push-notification-item-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=success][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-push-notification-item-icon-color:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=success]),:host([variant=success][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-push-notification-item-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=info][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-push-notification-item-icon-color:rgb(var(--magma-info-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=info]),:host([variant=info][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-push-notification-item-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}@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-push-notification-item-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-push-notification-item-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)) inset;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"}},[257,"mds-push-notification-item",{datetime:[1537],dateFormat:[513,"date-format"],deletable:[1540],icon:[513],initials:[1537],message:[513],preview:[513],src:[513],subject:[513],tone:[513],variant:[513],hasActions:[32],hasBadge:[32]},void 0,{deletable:[{handleDeletableChange:0}]}]),E=Y,$=function(){"undefined"!=typeof customElements&&["mds-push-notification-item","mds-avatar","mds-button","mds-icon","mds-img","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-push-notification-item":customElements.get(r(t))||customElements.define(r(t),Y);break;case"mds-avatar":customElements.get(r(t))||l();break;case"mds-button":customElements.get(r(t))||f();break;case"mds-icon":customElements.get(r(t))||p();break;case"mds-img":customElements.get(r(t))||v();break;case"mds-spinner":customElements.get(r(t))||g();break;case"mds-text":customElements.get(r(t))||b()}}))};export{E as MdsPushNotificationItem,$ as defineCustomElement}
|
|
1
|
+
import{p as t,H as a,d as i,h as o,c as n,t as r}from"./p-BhFTcUD0.js";import{g as e}from"./p-E-ZsRS8r.js";import{m as s}from"./p-BJ8rpzfj.js";import{h as c}from"./p-CsgCQiHG.js";import{c as m}from"./p-ChV9xqsO.js";import{L as u}from"./p-Bss3F51Q.js";import{s as d}from"./p-CACEYk42.js";import{p as h}from"./p-CvIFS8oA.js";import{d as l}from"./p-BtMdmkID.js";import{d as f}from"./p-kff6xSdW.js";import{d as p}from"./p-qketFgr0.js";import{d as v}from"./p-Cd_8zD_I.js";import{d as g}from"./p-C58NKMEE.js";import{d as b}from"./p-BZFyAX-6.js";var y,k,w={exports:{}},x=e((y||(y=1,w.exports=function(){var t=6e4,a=36e5,i="millisecond",o="second",n="minute",r="hour",e="day",s="week",c="month",m="quarter",u="year",d="date",h="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var a=["th","st","nd","rd"],i=t%100;return"["+t+(a[(i-20)%10]||a[i]||"th")+"]"}},v=function(t,a,i){var o=t+"";return!o||o.length>=a?t:""+Array(a+1-o.length).join(i)+t},g={s:v,z:function(t){var a=-t.utcOffset(),i=Math.abs(a),o=i%60;return(a<=0?"+":"-")+v(Math.floor(i/60),2,"0")+":"+v(o,2,"0")},m:function t(a,i){if(a.date()<i.date())return-t(i,a);var o=12*(i.year()-a.year())+(i.month()-a.month()),n=a.clone().add(o,c),r=i-n<0,e=a.clone().add(o+(r?-1:1),c);return+(-(o+(i-n)/(r?n-e:e-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:u,w:s,d:e,D:d,h:r,m:n,s:o,ms:i,Q:m}[t]||((t||"")+"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",y={};y[b]=p;var k="$isDayjsObject",w=function(t){return t instanceof j||!(!t||!t[k])},x=function t(a,i,o){var n;if(!a)return b;if("string"==typeof a){var r=a.toLowerCase();y[r]&&(n=r),i&&(y[r]=i,n=r);var e=a.split("-");if(!n&&e.length>1)return t(e[0])}else{var s=a.name;y[s]=a,n=s}return!o&&n&&(b=n),n||!o&&b},M=function(t,a){if(w(t))return t.clone();var i="object"==typeof a?a:{};return i.date=t,i.args=arguments,new j(i)},D=g;D.l=x,D.i=w,D.w=function(t,a){return M(t,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var j=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[k]=!0}var v=p.prototype;return v.parse=function(t){this.$d=function(t){var a=t.date,i=t.utc;if(null===a)return new Date(NaN);if(D.u(a))return new Date;if(a instanceof Date)return new Date(a);if("string"==typeof a&&!/Z$/i.test(a)){var o=a.match(l);if(o){var n=o[2]-1||0,r=(o[7]||"0").substring(0,3);return i?new Date(Date.UTC(o[1],n,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)):new Date(o[1],n,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)}}return new Date(a)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return D},v.isValid=function(){return!(""+this.$d===h)},v.isSame=function(t,a){var i=M(t);return this.startOf(a)<=i&&i<=this.endOf(a)},v.isAfter=function(t,a){return M(t)<this.startOf(a)},v.isBefore=function(t,a){return this.endOf(a)<M(t)},v.$g=function(t,a,i){return D.u(t)?this[a]:this.set(i,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,a){var i=this,m=!!D.u(a)||a,h=D.p(t),l=function(t,a){var o=D.w(i.$u?Date.UTC(i.$y,a,t):new Date(i.$y,a,t),i);return m?o:o.endOf(e)},f=function(t,a){return D.w(i.toDate()[t].apply(i.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(a)),i)},p=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case u:return m?l(1,0):l(31,11);case c:return m?l(1,v):l(0,v+1);case s:var y=this.$locale().weekStart||0,k=(p<y?p+7:p)-y;return l(m?g-k:g+(6-k),v);case e:case d:return f(b+"Hours",0);case r:return f(b+"Minutes",1);case n:return f(b+"Seconds",2);case o:return f(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,a){var s,m=D.p(t),h="set"+(this.$u?"UTC":""),l=(s={},s[e]=h+"Date",s[d]=h+"Date",s[c]=h+"Month",s[u]=h+"FullYear",s[r]=h+"Hours",s[n]=h+"Minutes",s[o]=h+"Seconds",s[i]=h+"Milliseconds",s)[m],f=m===e?this.$D+(a-this.$W):a;if(m===c||m===u){var p=this.clone().set(d,1);p.$d[l](f),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else l&&this.$d[l](f);return this.init(),this},v.set=function(t,a){return this.clone().$set(t,a)},v.get=function(t){return this[D.p(t)]()},v.add=function(i,m){var d,h=this;i=Number(i);var l=D.p(m),f=function(t){var a=M(h);return D.w(a.date(a.date()+Math.round(t*i)),h)};if(l===c)return this.set(c,this.$M+i);if(l===u)return this.set(u,this.$y+i);if(l===e)return f(1);if(l===s)return f(7);var p=(d={},d[n]=t,d[r]=a,d[o]=1e3,d)[l]||1,v=this.$d.getTime()+i*p;return D.w(v,this)},v.subtract=function(t,a){return this.add(-1*t,a)},v.format=function(t){var a=this,i=this.$locale();if(!this.isValid())return i.invalidDate||h;var o=t||"YYYY-MM-DDTHH:mm:ssZ",n=D.z(this),r=this.$H,e=this.$m,s=this.$M,c=i.weekdays,m=i.months,u=function(t,i,n,r){return t&&(t[i]||t(a,o))||n[i].slice(0,r)},d=function(t){return D.s(r%12||12,t,"0")},l=i.meridiem||function(t,a,i){var o=t<12?"AM":"PM";return i?o.toLowerCase():o};return o.replace(f,(function(t,o){return o||function(t){switch(t){case"YY":return(a.$y+"").slice(-2);case"YYYY":return D.s(a.$y,4,"0");case"M":return s+1;case"MM":return D.s(s+1,2,"0");case"MMM":return u(i.monthsShort,s,m,3);case"MMMM":return u(m,s);case"D":return a.$D;case"DD":return D.s(a.$D,2,"0");case"d":return a.$W+"";case"dd":return u(i.weekdaysMin,a.$W,c,2);case"ddd":return u(i.weekdaysShort,a.$W,c,3);case"dddd":return c[a.$W];case"H":return r+"";case"HH":return D.s(r,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return l(r,e,!0);case"A":return l(r,e,!1);case"m":return e+"";case"mm":return D.s(e,2,"0");case"s":return a.$s+"";case"ss":return D.s(a.$s,2,"0");case"SSS":return D.s(a.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,d,h){var l,f=this,p=D.p(d),v=M(i),g=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=function(){return D.m(f,v)};switch(p){case u:l=y()/12;break;case c:l=y();break;case m:l=y()/3;break;case s:l=(b-g)/6048e5;break;case e:l=(b-g)/864e5;break;case r:l=b/a;break;case n:l=b/t;break;case o:l=b/1e3;break;default:l=b}return h?l:D.a(l)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(t,a){if(!t)return this.$L;var i=this.clone(),o=x(t,a,!0);return o&&(i.$L=o),i},v.clone=function(){return D.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},p}(),_=j.prototype;return M.prototype=_,[["$ms",i],["$s",o],["$m",n],["$H",r],["$W",e],["$M",c],["$y",u],["$D",d]].forEach((function(t){_[t[1]]=function(a){return this.$g(a,t[0],t[1])}})),M.extend=function(t,a){return t.$i||(t(a,j,M),t.$i=!0),M},M.locale=x,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=y[b],M.Ls=y,M.p={},M}()),w.exports)),M={dismiss:"Κλείσιμο",future:"σε %s",past:"πριν από %s",s:"λίγα δευτ.",m:"1 λεπτό",mm:"%d λεπτά",h:"1 ώρα",hh:"%d ώρες",d:"1 ημέρα",dd:"%d ημέρες",M:"1 μήνας",MM:"%d μήνες",y:"1 έτος",yy:"%d έτη"},D={dismiss:"Close",future:"in %s",past:"%s ago",s:"few sec",m:"1 min",mm:"%d mins",h:"1 hour",hh:"%d hours",d:"1 day",dd:"%d days",M:"1 month",MM:"%d months",y:"1 year",yy:"%d years"},j={dismiss:"Cerrar",future:"en %s",past:"hace %s",s:"pocos seg",m:"1 min",mm:"%d mins",h:"1 hora",hh:"%d horas",d:"1 día",dd:"%d días",M:"1 mes",MM:"%d meses",y:"1 año",yy:"%d años"},_={dismiss:"Chiudi",future:"tra %s",past:"%s fa",s:"pochi sec",m:"1 min",mm:"%d min",h:"1 ora",hh:"%d ore",d:"1 giorno",dd:"%d giorni",M:"1 mese",MM:"%d mesi",y:"1 anno",yy:"%d anni"},C={exports:{}},Y=e((k||(k=1,C.exports=function(t,a,i){t=t||{};var o=a.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function r(t,a,i,n){return o.fromToBase(t,a,i,n)}i.en.relativeTime=n,o.fromToBase=function(a,o,r,e,s){for(var c,m,u,d=r.$locale().relativeTime||n,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],l=h.length,f=0;f<l;f+=1){var p=h[f];p.d&&(c=e?i(a).diff(r,p.d,!0):r.diff(a,p.d,!0));var v=(t.rounding||Math.round)(Math.abs(c));if(u=c>0,v<=p.r||!p.r){v<=1&&f>0&&(p=h[f-1]);var g=d[p.l];s&&(v=s(""+v)),m="string"==typeof g?g.replace("%d",v):g(v,o,p.l,u);break}}if(o)return m;var b=u?d.future:d.past;return"function"==typeof b?b(m):b.replace("%s",m)},o.to=function(t,a){return r(t,a,this,!0)},o.from=function(t,a){return r(t,a,this)};var e=function(t){return t.$u?i.utc():i()};o.toNow=function(t){return this.to(e(this),t)},o.fromNow=function(t){return this.from(e(this),t)}}),C.exports));const S=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closedEvent=i(this,"mdsPushNotificationItemClose",7),this.t=new u({el:M,en:D,es:j,it:_}),this.dateFormat="timeago",this.deletable=!1,this.message="Nessun messaggio disponibile",this.preview="image",this.tone="weak",this.onClickClose=t=>{t.stopPropagation(),this.closedEvent.emit()},this.onSlotChange=()=>{this.hasActions=c(this.host,"action"),this.hasBadge=c(this.host,"badge")}}componentDidLoad(){this.handleDeletableChange(this.deletable)}componentWillLoad(){var t;x.extend(Y),this.onSlotChange(),void 0!==this.datetime&&""!==this.datetime&&(this.datetime=null!==(t=d(""+this.datetime))&&void 0!==t?t:void 0);const a={future:this.t.get("future"),past:this.t.get("past"),s:this.t.get("s"),m:this.t.get("m"),mm:this.t.get("mm"),h:this.t.get("h"),hh:this.t.get("hh"),d:this.t.get("d"),dd:this.t.get("dd"),M:this.t.get("M"),MM:this.t.get("MM"),y:this.t.get("y"),yy:this.t.get("yy")};x.locale("custom-locale",{relativeTime:a})}handleDeletableChange(t){!1===t&&(this.deletable=void 0)}render(){var t;return o(n,{key:"44ada1005f4b353654c1f6ea16750e78247bb954","pref-animation":h.state.animation,"pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},(null!==(t=this.icon)&&void 0!==t?t:"avatar"===this.preview)&&o("mds-avatar",{key:"803434ac217118fc5a3147936cef4795c4e85701",class:"avatar",icon:this.icon,initials:this.initials,part:"avatar",src:this.src,tone:this.tone,variant:this.variant}),this.src&&"avatar"!==this.preview&&o("mds-img",{key:"0dd4c581adbc411f9429aadc8b3d8a4ea679e86d",class:"picture",part:"picture",src:this.src}),o("div",{key:"ef2bc48eaa2a1894678e8fac420e3b72d131782f",class:"content",part:"content"},o("div",{key:"b34e5ad851f0f3a2d8d349e4435c05b6b42cd040",class:"header"},o("div",{key:"321b618924ab8280d1d6d7846f0193e0aa27d691",class:"infos"},o("div",{key:"7efed5a22e7cf676f9f75867dc753a4c5af86b4b",class:m("badge",!this.hasBadge&&"badge--hidden")},o("slot",{key:"afe8def12f9dc475906e933ed41e403c07bff4f8",name:"badge",onSlotchange:this.onSlotChange})),this.subject&&o("mds-text",{key:"23fe7b51985ea6815ac337f388c11f59f7b2a7c2",class:"subject",typography:"h6",variant:"title",truncate:"all"},this.subject)),this.datetime&&o("mds-text",{key:"1cdf001ea8c0b3aee55e5c51e7fd5583cb6d6c48",class:"time",typography:"option"},"timeago"===this.dateFormat?x(this.datetime).fromNow():x(this.datetime).format(this.dateFormat))),o("mds-text",{key:"e0ef2a95cbd8c2194db91206c9f22800b36c99d0",class:"message",truncate:"all",typography:"caption",variant:"info"},this.message),o("div",{key:"d05a9eaa20ccb045225c50248faeadf839fbdb41",class:m("actions",!this.hasActions&&"actions--hidden"),part:"actions"},o("slot",{key:"58cdc624c7a23838ff5a9ceb234485610077ccc9",name:"action",onSlotchange:this.onSlotChange}))),this.deletable&&o("mds-button",{key:"68c176fb51d477024a7b26dd18f7618c7e0cc424",class:"close-button",variant:"dark",tone:"text",title:this.t.get("dismiss"),icon:s,onClick:this.onClickClose}))}get host(){return this}static get watchers(){return{deletable:[{handleDeletableChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-button,mds-img,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-push-notification-item-duration:.3s;--private-push-notification-item-duration:var(--mds-push-notification-item-duration,.3s);--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-push-notification-item-message-line-clamp:2;--mds-push-notification-item-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-push-notification-item-subject-line-clamp:1;--mds-push-notification-item-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));align-items:flex-start;background-color:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--mds-push-notification-item-shadow);box-shadow:var(--mds-push-notification-item-shadow);color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));display:flex;gap:calc(var(--spacing,.0025rem)*400);max-width:calc(var(--spacing,.0025rem)*8000);min-width:calc(var(--spacing,.0025rem)*7200);padding:calc(var(--spacing,.0025rem)*400);pointer-events:auto;position:relative;-webkit-transition-duration:var(--private-push-notification-item-duration);transition-duration:var(--private-push-notification-item-duration);transition-property:background-color,box-shadow,color,margin,transform;-webkit-transition-timing-function:var(--mds-push-notification-item-timing-function);transition-timing-function:var(--mds-push-notification-item-timing-function)}:host([deletable]:not([deletable=false])){padding-right:calc(var(--spacing,.0025rem)*800)}.content{display:grid;flex-grow:1}.actions{display:flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*200);min-width:1px;padding-top:calc(var(--spacing,.0025rem)*200)}.actions--hidden,.badge--hidden{display:none}.avatar,.picture{flex-shrink:0}.picture{border-radius:var(--radius-3xs,4px);-webkit-box-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);box-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);max-width:calc(var(--spacing,.0025rem)*1200);width:100%}.close-button{opacity:0;padding:calc(var(--spacing,.0025rem)*150);position:absolute;right:0;top:0;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function)}:host(:hover) .close-button{opacity:1}.close-button:focus-visible,.close-button:hover{fill:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));opacity:1}.header{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*100);justify-content:space-between;min-width:0;overflow:hidden;text-overflow:ellipsis}.infos{display:flex;flex-direction:column}.time{flex-shrink:0;margin-right:calc(var(--spacing,.0025rem)*100);white-space:nowrap}.subject{--mds-text-line-clamp:var(--mds-push-notification-item-subject-line-clamp,1);line-height:var(--leading-sm,1.25rem)}.message,.subject{text-overflow:ellipsis}.message{--mds-text-line-clamp:var(--mds-push-notification-item-message-line-clamp,2)}.avatar{background-color:var(--mds-push-notification-item-icon-background-color,#0000);border-radius:var(--radius-full,1000px);fill:var(--mds-push-notification-item-icon-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.avatar::part(svg){width:calc(var(--spacing,.0025rem)*600)}:host([src]) .avatar{background-color:#0000}:host([icon]) .avatar::part(wrapper){padding:calc(var(--spacing,.0025rem)*150)}: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-push-notification-item-duration:0s}:host([pref-contrast=more]){--mds-push-notification-item-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)) inset;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=primary][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-push-notification-item-icon-color:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=primary]),:host([variant=primary][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-push-notification-item-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}:host([variant=primary][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}:host([variant=orange][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orange-05,213 90 5));--mds-push-notification-item-icon-color:rgb(var(--label-orange-10,254 233 219))}:host([variant=orange]),:host([variant=orange][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orange-09,253 217 191));--mds-push-notification-item-icon-color:rgb(var(--label-orange-05,213 90 5))}:host([variant=orange][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-orange-05,213 90 5))}:host([variant=amaranth][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-amaranth-05,242 37 72));--mds-push-notification-item-icon-color:rgb(var(--label-amaranth-10,254 232 236))}:host([variant=amaranth]),:host([variant=amaranth][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-amaranth-09,253 214 221));--mds-push-notification-item-icon-color:rgb(var(--label-amaranth-05,242 37 72))}:host([variant=amaranth][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-amaranth-05,242 37 72))}:host([variant=orchid][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orchid-05,233 44 137));--mds-push-notification-item-icon-color:rgb(var(--label-orchid-10,253 231 242))}:host([variant=orchid]),:host([variant=orchid][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-orchid-09,251 213 232));--mds-push-notification-item-icon-color:rgb(var(--label-orchid-05,233 44 137))}:host([variant=orchid][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-orchid-05,233 44 137))}:host([variant=purple][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-purple-05,168 86 247));--mds-push-notification-item-icon-color:rgb(var(--label-purple-10,244 233 254))}:host([variant=purple]),:host([variant=purple][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-purple-09,235 216 253));--mds-push-notification-item-icon-color:rgb(var(--label-purple-05,168 86 247))}:host([variant=purple][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-purple-05,168 86 247))}:host([variant=red][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-red-05,230 66 66));--mds-push-notification-item-icon-color:rgb(var(--label-red-10,252 233 233))}:host([variant=red]),:host([variant=red][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-red-09,250 215 215));--mds-push-notification-item-icon-color:rgb(var(--label-red-05,230 66 66))}:host([variant=red][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-red-05,230 66 66))}:host([variant=violet][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-violet-05,145 100 246));--mds-push-notification-item-icon-color:rgb(var(--label-violet-10,240 234 254))}:host([variant=violet]),:host([variant=violet][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-violet-09,229 218 253));--mds-push-notification-item-icon-color:rgb(var(--label-violet-05,145 100 246))}:host([variant=violet][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-violet-05,145 100 246))}:host([variant=blue][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-blue-05,90 117 249));--mds-push-notification-item-icon-color:rgb(var(--label-blue-10,233 236 254))}:host([variant=blue]),:host([variant=blue][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-blue-09,216 222 254));--mds-push-notification-item-icon-color:rgb(var(--label-blue-05,90 117 249))}:host([variant=blue][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-blue-05,90 117 249))}:host([variant=sky][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-sky-05,12 136 193));--mds-push-notification-item-icon-color:rgb(var(--label-sky-10,217 241 253))}:host([variant=sky]),:host([variant=sky][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-sky-09,185 231 251));--mds-push-notification-item-icon-color:rgb(var(--label-sky-05,12 136 193))}:host([variant=sky][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-sky-05,12 136 193))}:host([variant=aqua][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-aqua-05,5 141 165));--mds-push-notification-item-icon-color:rgb(var(--label-aqua-10,199 245 253))}:host([variant=aqua]),:host([variant=aqua][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-aqua-09,151 237 252));--mds-push-notification-item-icon-color:rgb(var(--label-aqua-05,5 141 165))}:host([variant=aqua][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-aqua-05,5 141 165))}:host([variant=green][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-green-05,26 148 71));--mds-push-notification-item-icon-color:rgb(var(--label-green-10,206 247 221))}:host([variant=green]),:host([variant=green][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-green-09,165 240 193));--mds-push-notification-item-icon-color:rgb(var(--label-green-05,26 148 71))}:host([variant=green][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-green-05,26 148 71))}:host([variant=lime][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-lime-05,93 143 15));--mds-push-notification-item-icon-color:rgb(var(--label-lime-10,219 247 178))}:host([variant=lime]),:host([variant=lime][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-lime-09,189 239 111));--mds-push-notification-item-icon-color:rgb(var(--label-lime-05,93 143 15))}:host([variant=lime][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-lime-05,93 143 15))}:host([variant=yellow][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--label-yellow-05,161 124 6));--mds-push-notification-item-icon-color:rgb(var(--label-yellow-10,253 236 186))}:host([variant=yellow]),:host([variant=yellow][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--label-yellow-09,251 221 131));--mds-push-notification-item-icon-color:rgb(var(--label-yellow-05,161 124 6))}:host([variant=yellow][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--label-yellow-05,161 124 6))}:host([variant=error][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-push-notification-item-icon-color:rgb(var(--magma-danger-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]),:host([variant=error][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-push-notification-item-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=warning][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-push-notification-item-icon-color:rgb(var(--magma-warning-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=warning]),:host([variant=warning][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-push-notification-item-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=success][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-push-notification-item-icon-color:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=success]),:host([variant=success][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-push-notification-item-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=info][tone=strong]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-push-notification-item-icon-color:rgb(var(--magma-info-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=info]),:host([variant=info][tone=weak]){--mds-push-notification-item-icon-background-color:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-push-notification-item-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=text]){--mds-push-notification-item-icon-background-color:#0000;--mds-push-notification-item-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}@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-push-notification-item-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-push-notification-item-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)) inset;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"}},[257,"mds-push-notification-item",{datetime:[1537],dateFormat:[513,"date-format"],deletable:[1540],icon:[513],initials:[1537],message:[513],preview:[513],src:[513],subject:[513],tone:[513],variant:[513],hasActions:[32],hasBadge:[32]},void 0,{deletable:[{handleDeletableChange:0}]}]),q=S,E=function(){"undefined"!=typeof customElements&&["mds-push-notification-item","mds-avatar","mds-button","mds-icon","mds-img","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-push-notification-item":customElements.get(r(t))||customElements.define(r(t),S);break;case"mds-avatar":customElements.get(r(t))||l();break;case"mds-button":customElements.get(r(t))||f();break;case"mds-icon":customElements.get(r(t))||p();break;case"mds-img":customElements.get(r(t))||v();break;case"mds-spinner":customElements.get(r(t))||g();break;case"mds-text":customElements.get(r(t))||b()}}))};export{q as MdsPushNotificationItem,E as defineCustomElement}
|