@maggioli-design-system/magma 2.7.0 → 2.9.0
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/AGENTS.md +1 -1
- package/CHANGELOG.md +45 -0
- package/agents/lint.md +20 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +7 -6
- package/dist/cjs/mds-book.cjs.entry.js +53 -5
- package/dist/cjs/mds-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-emoji.cjs.entry.js +39 -9
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +1 -1
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +17 -4
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/collection/components/mds-accordion/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +4 -2
- package/dist/collection/components/mds-author/AGENTS.md +2 -1
- package/dist/collection/components/mds-author/documentation.json +4 -2
- package/dist/collection/components/mds-avatar/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar/documentation.json +4 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +4 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +4 -2
- package/dist/collection/components/mds-badge/AGENTS.md +2 -1
- package/dist/collection/components/mds-badge/documentation.json +4 -2
- package/dist/collection/components/mds-banner/AGENTS.md +7 -4
- package/dist/collection/components/mds-banner/antipattern.md +5 -5
- package/dist/collection/components/mds-banner/documentation.json +40 -6
- package/dist/collection/components/mds-banner/mds-banner.css +7 -10
- package/dist/collection/components/mds-banner/mds-banner.js +30 -7
- package/dist/collection/components/mds-banner/pattern.md +4 -4
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +4 -2
- package/dist/collection/components/mds-bibliography/AGENTS.md +2 -1
- package/dist/collection/components/mds-bibliography/documentation.json +4 -2
- package/dist/collection/components/mds-book/AGENTS.md +9 -4
- package/dist/collection/components/mds-book/documentation.json +46 -6
- package/dist/collection/components/mds-book/mds-book.css +91 -7
- package/dist/collection/components/mds-book/mds-book.js +79 -7
- package/dist/collection/components/mds-book/pattern.md +14 -0
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +2 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +4 -2
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +4 -2
- package/dist/collection/components/mds-button/AGENTS.md +2 -1
- package/dist/collection/components/mds-button/documentation.json +4 -2
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +4 -2
- package/dist/collection/components/mds-button-group/AGENTS.md +2 -1
- package/dist/collection/components/mds-button-group/documentation.json +4 -2
- package/dist/collection/components/mds-calendar/AGENTS.md +2 -1
- package/dist/collection/components/mds-calendar/documentation.json +4 -2
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +4 -2
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +4 -1
- package/dist/collection/components/mds-card/AGENTS.md +2 -1
- package/dist/collection/components/mds-card/documentation.json +4 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-content/documentation.json +4 -2
- package/dist/collection/components/mds-card-footer/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-footer/documentation.json +4 -2
- package/dist/collection/components/mds-card-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-header/documentation.json +4 -2
- package/dist/collection/components/mds-card-media/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-media/documentation.json +4 -2
- package/dist/collection/components/mds-chip/AGENTS.md +2 -1
- package/dist/collection/components/mds-chip/documentation.json +4 -2
- package/dist/collection/components/mds-details/AGENTS.md +2 -1
- package/dist/collection/components/mds-details/documentation.json +4 -2
- package/dist/collection/components/mds-dropdown/AGENTS.md +2 -1
- package/dist/collection/components/mds-dropdown/documentation.json +4 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -1
- package/dist/collection/components/mds-emoji/asset/simi.svg +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +4 -2
- package/dist/collection/components/mds-emoji/mds-emoji.js +38 -8
- package/dist/collection/components/mds-entity/AGENTS.md +2 -1
- package/dist/collection/components/mds-entity/documentation.json +4 -2
- package/dist/collection/components/mds-file/AGENTS.md +2 -1
- package/dist/collection/components/mds-file/documentation.json +4 -2
- package/dist/collection/components/mds-file-preview/AGENTS.md +2 -1
- package/dist/collection/components/mds-file-preview/documentation.json +4 -2
- package/dist/collection/components/mds-filter/AGENTS.md +3 -2
- package/dist/collection/components/mds-filter/documentation.json +10 -2
- package/dist/collection/components/mds-filter/mds-filter.css +5 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-filter-item/documentation.json +4 -2
- package/dist/collection/components/mds-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-header/documentation.json +5 -3
- package/dist/collection/components/mds-header/pattern.md +3 -3
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-header-bar/documentation.json +4 -2
- package/dist/collection/components/mds-help/AGENTS.md +2 -1
- package/dist/collection/components/mds-help/documentation.json +4 -2
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +4 -2
- package/dist/collection/components/mds-hr/AGENTS.md +2 -1
- package/dist/collection/components/mds-hr/documentation.json +4 -2
- package/dist/collection/components/mds-icon/AGENTS.md +2 -1
- package/dist/collection/components/mds-icon/documentation.json +4 -2
- package/dist/collection/components/mds-img/AGENTS.md +2 -1
- package/dist/collection/components/mds-img/documentation.json +4 -2
- package/dist/collection/components/mds-input/AGENTS.md +2 -1
- package/dist/collection/components/mds-input/documentation.json +4 -2
- package/dist/collection/components/mds-input-date/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date/documentation.json +4 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +4 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +4 -2
- package/dist/collection/components/mds-input-field/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-field/documentation.json +4 -2
- package/dist/collection/components/mds-input-otp/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-otp/documentation.json +5 -3
- package/dist/collection/components/mds-input-otp/pattern.md +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-range/documentation.json +4 -2
- package/dist/collection/components/mds-input-range/mds-input-range.css +7 -5
- package/dist/collection/components/mds-input-select/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-select/documentation.json +4 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-switch/documentation.json +4 -2
- package/dist/collection/components/mds-input-tip/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-tip/documentation.json +4 -2
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +4 -2
- package/dist/collection/components/mds-input-upload/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-upload/documentation.json +4 -2
- package/dist/collection/components/mds-keyboard/AGENTS.md +2 -1
- package/dist/collection/components/mds-keyboard/documentation.json +4 -2
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +2 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +4 -2
- package/dist/collection/components/mds-kpi/AGENTS.md +2 -1
- package/dist/collection/components/mds-kpi/documentation.json +4 -2
- package/dist/collection/components/mds-kpi-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +4 -2
- package/dist/collection/components/mds-label/AGENTS.md +2 -1
- package/dist/collection/components/mds-label/documentation.json +4 -2
- package/dist/collection/components/mds-link/AGENTS.md +2 -1
- package/dist/collection/components/mds-link/documentation.json +4 -2
- package/dist/collection/components/mds-list/AGENTS.md +2 -1
- package/dist/collection/components/mds-list/documentation.json +4 -2
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-list-item/documentation.json +4 -2
- package/dist/collection/components/mds-mention/AGENTS.md +2 -1
- package/dist/collection/components/mds-mention/documentation.json +4 -2
- package/dist/collection/components/mds-modal/AGENTS.md +5 -1
- package/dist/collection/components/mds-modal/documentation.json +5 -3
- package/dist/collection/components/mds-modal/mds-modal.css +136 -3
- package/dist/collection/components/mds-note/AGENTS.md +2 -1
- package/dist/collection/components/mds-note/documentation.json +4 -2
- package/dist/collection/components/mds-notification/AGENTS.md +2 -1
- package/dist/collection/components/mds-notification/documentation.json +4 -2
- package/dist/collection/components/mds-paginator/AGENTS.md +2 -1
- package/dist/collection/components/mds-paginator/documentation.json +4 -2
- package/dist/collection/components/mds-paginator-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +4 -2
- package/dist/collection/components/mds-policy-ai/AGENTS.md +2 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +4 -2
- package/dist/collection/components/mds-pref/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref/documentation.json +4 -2
- package/dist/collection/components/mds-pref-animation/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +4 -2
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +4 -2
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +4 -2
- package/dist/collection/components/mds-pref-language/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-language/documentation.json +4 -2
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +4 -2
- package/dist/collection/components/mds-pref-mode/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-mode/documentation.json +4 -2
- package/dist/collection/components/mds-pref-theme/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +4 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +4 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-list/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +4 -2
- package/dist/collection/components/mds-progress/AGENTS.md +2 -1
- package/dist/collection/components/mds-progress/documentation.json +4 -2
- package/dist/collection/components/mds-push-notification/AGENTS.md +3 -2
- package/dist/collection/components/mds-push-notification/documentation.json +6 -4
- package/dist/collection/components/mds-push-notification/pattern.md +2 -2
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +6 -3
- package/dist/collection/components/mds-push-notification-item/documentation.json +38 -5
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +1 -0
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +40 -5
- package/dist/collection/components/mds-push-notification-item/pattern.md +3 -3
- package/dist/collection/components/mds-quote/AGENTS.md +2 -1
- package/dist/collection/components/mds-quote/documentation.json +4 -2
- package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +4 -2
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +4 -2
- package/dist/collection/components/mds-radial-progress/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +4 -2
- package/dist/collection/components/mds-separator/AGENTS.md +2 -1
- package/dist/collection/components/mds-separator/documentation.json +4 -2
- package/dist/collection/components/mds-spinner/AGENTS.md +2 -1
- package/dist/collection/components/mds-spinner/documentation.json +5 -3
- package/dist/collection/components/mds-spinner/pattern.md +9 -6
- package/dist/collection/components/mds-status-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-status-bar/documentation.json +4 -2
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +4 -2
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +4 -2
- package/dist/collection/components/mds-tab/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab/documentation.json +4 -2
- package/dist/collection/components/mds-tab-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +4 -2
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +4 -2
- package/dist/collection/components/mds-tab-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-item/documentation.json +4 -2
- package/dist/collection/components/mds-table/AGENTS.md +2 -1
- package/dist/collection/components/mds-table/documentation.json +4 -2
- package/dist/collection/components/mds-table-body/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-body/documentation.json +4 -2
- package/dist/collection/components/mds-table-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-cell/documentation.json +4 -2
- package/dist/collection/components/mds-table-footer/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-footer/documentation.json +4 -2
- package/dist/collection/components/mds-table-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-header/documentation.json +4 -2
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +4 -2
- package/dist/collection/components/mds-table-row/AGENTS.md +7 -2
- package/dist/collection/components/mds-table-row/documentation.json +11 -3
- package/dist/collection/components/mds-table-row/mds-table-row.css +1 -0
- package/dist/collection/components/mds-table-row/pattern.md +14 -1
- package/dist/collection/components/mds-text/AGENTS.md +2 -1
- package/dist/collection/components/mds-text/documentation.json +4 -2
- package/dist/collection/components/mds-toast/AGENTS.md +8 -5
- package/dist/collection/components/mds-toast/antipattern.md +2 -2
- package/dist/collection/components/mds-toast/documentation.json +40 -6
- package/dist/collection/components/mds-toast/mds-toast.js +26 -4
- package/dist/collection/components/mds-toast/pattern.md +2 -2
- package/dist/collection/components/mds-toast-region/AGENTS.md +2 -1
- package/dist/collection/components/mds-toast-region/documentation.json +5 -3
- package/dist/collection/components/mds-toast-region/pattern.md +10 -2
- package/dist/collection/components/mds-tooltip/AGENTS.md +2 -1
- package/dist/collection/components/mds-tooltip/documentation.json +4 -2
- package/dist/collection/components/mds-tree/AGENTS.md +3 -2
- package/dist/collection/components/mds-tree/documentation.json +5 -3
- package/dist/collection/components/mds-tree/pattern.md +13 -13
- package/dist/collection/components/mds-tree-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tree-item/documentation.json +4 -2
- package/dist/collection/components/mds-url-view/AGENTS.md +2 -1
- package/dist/collection/components/mds-url-view/documentation.json +4 -2
- package/dist/collection/components/mds-usage/AGENTS.md +2 -1
- package/dist/collection/components/mds-usage/documentation.json +4 -2
- package/dist/collection/components/mds-video-wall/AGENTS.md +2 -1
- package/dist/collection/components/mds-video-wall/documentation.json +4 -2
- package/dist/collection/components/mds-zero/AGENTS.md +2 -1
- package/dist/collection/components/mds-zero/documentation.json +4 -2
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-book.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header.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-range.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/p-BeZGLnJJ.js +1 -0
- package/dist/components/p-Chk4rI7N.js +1 -0
- package/dist/components/{p-CNpL55c-.js → p-Cwg4vtOr.js} +1 -1
- package/dist/components/p-Dzkiu-es.js +1 -0
- package/dist/documentation.json +406 -143
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +7 -6
- package/dist/esm/mds-book.entry.js +53 -5
- package/dist/esm/mds-calendar_2.entry.js +1 -1
- package/dist/esm/mds-emoji.entry.js +39 -9
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +1 -1
- package/dist/esm/mds-push-notification-item.entry.js +17 -4
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +2 -2
- package/dist/esm-es5/mds-book.entry.js +33 -26
- package/dist/esm-es5/mds-calendar_2.entry.js +8 -8
- package/dist/esm-es5/mds-emoji.entry.js +40 -31
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-modal.entry.js +15 -15
- package/dist/esm-es5/mds-push-notification-item.entry.js +7 -3
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/hydrate/index.js +130 -32
- package/dist/hydrate/index.mjs +130 -32
- package/dist/lint/core/checks.d.ts +5 -0
- package/dist/lint/core/checks.js +17 -0
- package/dist/lint/core/data.d.ts +4 -1
- package/dist/lint/core/data.js +3 -1
- package/dist/lint/eslint/index.js +6 -4
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-354a5b47.entry.js → p-02b106c2.entry.js} +1 -1
- package/dist/magma-components/{p-17ccfc01.system.entry.js → p-3bc65166.system.entry.js} +55 -48
- package/dist/magma-components/p-425ca155.entry.js +1 -0
- package/dist/magma-components/p-523f0c30.system.entry.js +80 -0
- package/dist/magma-components/{p-07d35da6.entry.js → p-5306606b.entry.js} +1 -1
- package/dist/magma-components/{p-1b67b149.system.entry.js → p-798f460b.system.entry.js} +1 -1
- package/dist/magma-components/{p-e5f893f9.system.entry.js → p-7db14777.system.entry.js} +1 -1
- package/dist/magma-components/{p-e8452cce.entry.js → p-8641b7b2.entry.js} +1 -1
- package/dist/magma-components/{p-3a7c4314.system.entry.js → p-95ccf46d.system.entry.js} +4 -4
- package/dist/magma-components/p-968a2237.entry.js +1 -0
- package/dist/magma-components/p-9dd9eadd.entry.js +1 -0
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-160cd923.entry.js → p-a25327a1.entry.js} +1 -1
- package/dist/magma-components/p-a67381bf.entry.js +1 -0
- package/dist/magma-components/{p-c2c693ed.system.entry.js → p-b27cb1ac.system.entry.js} +14 -5
- package/dist/magma-components/{p-6df26141.system.entry.js → p-c0286dc3.system.entry.js} +1 -1
- package/dist/magma-components/p-c89060ec.system.entry.js +41 -0
- package/dist/magma-components/p-eb12be86.system.entry.js +24 -0
- package/dist/magma-components/p-ebeb3fff.entry.js +1 -0
- package/dist/stats.json +383 -139
- package/dist/types/components/mds-banner/mds-banner.d.ts +9 -2
- package/dist/types/components/mds-book/mds-book.d.ts +19 -2
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +1 -0
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +10 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +7 -1
- package/dist/types/components.d.ts +56 -12
- package/package.json +8 -8
- package/dist/components/p-B8hgyXdE.js +0 -1
- package/dist/components/p-CYK2Xr_v.js +0 -1
- package/dist/components/p-DbVGGhs_.js +0 -1
- package/dist/magma-components/p-14b13850.entry.js +0 -1
- package/dist/magma-components/p-386bb24e.system.entry.js +0 -41
- package/dist/magma-components/p-6d96d223.entry.js +0 -1
- package/dist/magma-components/p-79fd07e7.system.entry.js +0 -80
- package/dist/magma-components/p-7e7391fd.entry.js +0 -1
- package/dist/magma-components/p-df387755.entry.js +0 -1
- package/dist/magma-components/p-ee780f82.system.entry.js +0 -20
- package/dist/magma-components/p-f2211b1f.entry.js +0 -1
|
@@ -314,7 +314,7 @@ d=new PropTween(this._pt,t,i,+_||0,n-(_||0),typeof h==="boolean"?_renderBoolean:
|
|
|
314
314
|
_processVars=function e(t,i,r,n,s){_isFunction(t)&&(t=_parseFuncOrString(t,s,i,r,n));if(!_isObject(t)||t.style&&t.nodeType||_isArray(t)||_isTypedArray(t)){return _isString(t)?_parseFuncOrString(t,s,i,r,n):t}var o={},a;for(a in t){o[a]=_parseFuncOrString(t[a],s,i,r,n)}return o},_checkPlugin=function e(t,i,r,n,s,o){var a,u,f,l;if(_plugins[t]&&(a=new _plugins[t]).init(s,a.rawVars?i[t]:_processVars(i[t],n,s,o,r),r,n,o)!==false){r._pt=u=new PropTween(r._pt,s,t,0,1,a.render,a,0,a.priority);if(r!==_quickTween){f=r._ptLookup[r._targets.indexOf(s)];//note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.
|
|
315
315
|
l=a._props.length;while(l--){f[a._props[l]]=u}}}return a},_overwritingTween,
|
|
316
316
|
//store a reference temporarily so we can avoid overwriting itself.
|
|
317
|
-
_forceAllPropTweens,_initTween=function e(t,i,r){var n=t.vars,s=n.ease,o=n.startAt,a=n.immediateRender,u=n.lazy,f=n.onUpdate,l=n.runBackwards,h=n.yoyoEase,_=n.keyframes,c=n.autoRevert,d=t._dur,m=t._startAt,p=t._targets,g=t.parent,v=g&&g.data==="nested"?g.vars.targets:p,C=t._overwrite==="auto"&&!_suppressOverwrites,y=t.timeline,w=n.easeReverse||h,P,T,S,x,
|
|
317
|
+
_forceAllPropTweens,_initTween=function e(t,i,r){var n=t.vars,s=n.ease,o=n.startAt,a=n.immediateRender,u=n.lazy,f=n.onUpdate,l=n.runBackwards,h=n.yoyoEase,_=n.keyframes,c=n.autoRevert,d=t._dur,m=t._startAt,p=t._targets,g=t.parent,v=g&&g.data==="nested"?g.vars.targets:p,C=t._overwrite==="auto"&&!_suppressOverwrites,y=t.timeline,w=n.easeReverse||h,P,T,S,b,x,M,k,F,E,N,j,A,O;y&&(!_||!s)&&(s="none");t._ease=_parseEase(s,_defaults.ease);t._rEase=w&&(_parseEase(w)||t._ease);t._from=!y&&!!n.runBackwards;//nested timelines should never run backwards - the backwards-ness is in the child tweens.
|
|
318
318
|
if(t._from)t.ratio=1;if(!y||_&&!n.stagger){
|
|
319
319
|
//if there's an internal timeline, skip all the parsing because we passed that task down the chain.
|
|
320
320
|
F=p[0]?_getCache(p[0]).harness:0;A=F&&n[F.prop];//someone may need to specify CSS-specific values AND non-CSS values, like if the element has an "x" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.
|
|
@@ -339,10 +339,10 @@ stagger:0,parent:g},P);A&&(S[F.prop]=A);// in case someone does something like .
|
|
|
339
339
|
_removeFromParent(t._startAt=Tween.set(p,S));t._startAt._dp=0;// don't allow it to get put back into root timeline!
|
|
340
340
|
t._startAt._sat=t;// used in globalTime()
|
|
341
341
|
i<0&&(_reverting$1?t._startAt.revert(_revertConfigNoKill):t._startAt.render(-1,true));t._zTime=i;if(!a){e(t._startAt,_tinyNum,_tinyNum);//ensures that the initial values are recorded
|
|
342
|
-
}else if(!i){return}}}t._pt=t._ptCache=0;u=d&&_isNotFalse(u)||u&&!d;for(T=0;T<p.length;T++){
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}t._onUpdate=f;t._initted=(!t._op||t._pt)&&!
|
|
342
|
+
}else if(!i){return}}}t._pt=t._ptCache=0;u=d&&_isNotFalse(u)||u&&!d;for(T=0;T<p.length;T++){x=p[T];k=x._gsap||_harness(p)[T]._gsap;t._ptLookup[T]=N={};_lazyLookup[k.id]&&_lazyTweens.length&&_lazyRender();//if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)
|
|
343
|
+
j=v===p?T:v.indexOf(x);if(F&&(E=new F).init(x,A||P,t,j,v)!==false){t._pt=b=new PropTween(t._pt,x,E.name,0,1,E.render,E,0,E.priority);E._props.forEach((function(e){N[e]=b}));E.priority&&(M=1)}if(!F||A){for(S in P){if(_plugins[S]&&(E=_checkPlugin(S,P,t,j,x,v))){E.priority&&(M=1)}else{N[S]=b=_addPropTween.call(t,x,S,"get",P[S],j,v,0,n.stringFilter)}}}t._op&&t._op[T]&&t.kill(x,t._op[T]);if(C&&t._pt){_overwritingTween=t;_globalTimeline.killTweensOf(x,N,t.globalTime(i));// make sure the overwriting doesn't overwrite THIS tween!!!
|
|
344
|
+
O=!t.parent;_overwritingTween=0}t._pt&&u&&(_lazyLookup[k.id]=1)}M&&_sortPropTweensByPriority(t);t._onInit&&t._onInit(t);//plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.
|
|
345
|
+
}t._onUpdate=f;t._initted=(!t._op||t._pt)&&!O;// if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.
|
|
346
346
|
_&&i<=0&&y.render(_bigNum$1,true,true);// if there's a 0% keyframe, it'll render in the "before" state for any staggered/delayed animations thus when the following tween initializes, it'll use the "before" state instead of the "after" state as the initial values.
|
|
347
347
|
},_updatePropTweens=function e(t,i,r,n,s,o,a,u){var f=(t._pt&&t._ptCache||(t._ptCache={}))[i],l,h,_,c;if(!f){f=t._ptCache[i]=[];_=t._ptLookup;c=t._targets.length;while(c--){l=_[c][i];if(l&&l.d&&l.d._pt){
|
|
348
348
|
// it's a plugin, so find the nested PropTween
|
|
@@ -365,15 +365,15 @@ i.forEach((function(e,t){return a.push({t:t/(i.length-1)*100,v:e,e:s})}))}else{f
|
|
|
365
365
|
* TWEEN
|
|
366
366
|
* --------------------------------------------------------------------------------------
|
|
367
367
|
*/var Tween=function(e){_inheritsLoose(t,e);function t(t,i,r,n){var s;if(typeof i==="number"){r.duration=i;i=r;r=null}s=e.call(this,n?i:_inheritDefaults(i))||this;var o=s.vars,a=o.duration,u=o.delay,f=o.immediateRender,l=o.stagger,h=o.overwrite,_=o.keyframes,c=o.defaults,d=o.scrollTrigger,m=i.parent||_globalTimeline,p=(_isArray(t)||_isTypedArray(t)?_isNumber(t[0]):"length"in i)?[t]:toArray(t),g,v,C,y,w,P,T,S;s._targets=p.length?_harness(p):_warn("GSAP target "+t+" not found. https://gsap.com",!_config.nullTargetWarn)||[];s._ptLookup=[];//PropTween lookup. An array containing an object for each target, having keys for each tweening property
|
|
368
|
-
s._overwrite=h;if(_||l||_isFuncOrString(a)||_isFuncOrString(u)){i=s.vars;var
|
|
368
|
+
s._overwrite=h;if(_||l||_isFuncOrString(a)||_isFuncOrString(u)){i=s.vars;var b=i.easeReverse||i.yoyoEase;g=s.timeline=new Timeline({data:"nested",defaults:c||{},targets:m&&m.data==="nested"?m.vars.targets:p});// we need to store the targets because for staggers and keyframes, we end up creating an individual tween for each but function-based values need to know the index and the whole Array of targets.
|
|
369
369
|
g.kill();g.parent=g._dp=_assertThisInitialized(s);g._start=0;if(l||_isFuncOrString(a)||_isFuncOrString(u)){y=p.length;T=l&&distribute(l);if(_isObject(l)){
|
|
370
370
|
//users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.
|
|
371
|
-
for(w in l){if(~_staggerTweenProps.indexOf(w)){S||(S={});S[w]=l[w]}}}for(v=0;v<y;v++){C=_copyExcluding(i,_staggerPropsToSkip);C.stagger=0;
|
|
371
|
+
for(w in l){if(~_staggerTweenProps.indexOf(w)){S||(S={});S[w]=l[w]}}}for(v=0;v<y;v++){C=_copyExcluding(i,_staggerPropsToSkip);C.stagger=0;b&&(C.easeReverse=b);S&&_merge(C,S);P=p[v];//don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.
|
|
372
372
|
C.duration=+_parseFuncOrString(a,_assertThisInitialized(s),v,P,p);C.delay=(+_parseFuncOrString(u,_assertThisInitialized(s),v,P,p)||0)-s._delay;if(!l&&y===1&&C.delay){
|
|
373
373
|
// if someone does delay:"random(1, 5)", repeat:-1, for example, the delay shouldn't be inside the repeat.
|
|
374
374
|
s._delay=u=C.delay;s._start+=u;C.delay=0}g.to(P,C,T?T(v,P,p):0);g._ease=_easeMap.none}g.duration()?a=u=0:s.timeline=0;// if the timeline's duration is 0, we don't need a timeline internally!
|
|
375
|
-
}else if(_){_inheritDefaults(_setDefaults(g.vars.defaults,{ease:"none"}));g._ease=_parseEase(_.ease||i.ease||"none");var
|
|
376
|
-
}else{C={};for(w in _){w==="ease"||w==="easeEach"||_parseKeyframe(w,_[w],C,_.easeEach)}for(w in C){M=C[w].sort((function(e,t){return e.t-t.t}));
|
|
375
|
+
}else if(_){_inheritDefaults(_setDefaults(g.vars.defaults,{ease:"none"}));g._ease=_parseEase(_.ease||i.ease||"none");var x=0,M,k,F;if(_isArray(_)){_.forEach((function(e){return g.to(p,e,">")}));g.duration();// to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.
|
|
376
|
+
}else{C={};for(w in _){w==="ease"||w==="easeEach"||_parseKeyframe(w,_[w],C,_.easeEach)}for(w in C){M=C[w].sort((function(e,t){return e.t-t.t}));x=0;for(v=0;v<M.length;v++){k=M[v];F={ease:k.e,duration:(k.t-(v?M[v-1].t:0))/100*a};F[w]=k.v;g.to(p,F,x);x+=F.duration}}g.duration()<a&&g.to({},{duration:a-g.duration()});// in case keyframes didn't go to 100%
|
|
377
377
|
}}a||s.duration(a=g.duration())}else{s.timeline=0;//speed optimization, faster lookups (no going up the prototype chain)
|
|
378
378
|
}if(h===true&&!_suppressOverwrites){_overwritingTween=_assertThisInitialized(s);_globalTimeline.killTweensOf(p);_overwritingTween=0}_addToTimeline(m,_assertThisInitialized(s),r);i.reversed&&s.reverse();i.paused&&s.paused(true);if(f||!a&&!_&&s._start===_roundPrecise(m._time)&&_isNotFalse(f)&&_hasNoPausedAncestors(_assertThisInitialized(s))&&m.data!=="nested"){s._tTime=-_tinyNum;//forces a render without having to set the render() "force" parameter to true because we want to allow lazying by default (using the "force" parameter always forces an immediate full render)
|
|
379
379
|
s.render(Math.max(0,-u)||0);//in case delay is negative
|
|
@@ -629,41 +629,41 @@ u=n.display;n.display="block";o=t.parentNode;if(!o||!t.offsetParent&&!t.getBound
|
|
|
629
629
|
// note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375. Note: position: fixed elements report a null offsetParent but they could also be invisible because they're in an ancestor with display: none, so we check getBoundingClientRect(). We only want to alter the DOM if we absolutely have to because it can cause iframe content to reload, like a Vimeo video.
|
|
630
630
|
f=1;//flag
|
|
631
631
|
a=t.nextElementSibling;_docElement.appendChild(t);//we must add it to the DOM in order to get values properly
|
|
632
|
-
}s=_getComputedTransformMatrixAsArray(t);u?n.display=u:_removeProperty(t,"display");if(f){a?o.insertBefore(t,a):o?o.appendChild(t):_docElement.removeChild(t)}}return i&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},_applySVGOrigin=function e(t,i,r,n,s,o){var a=t._gsap,u=s||_getMatrix(t,true),f=a.xOrigin||0,l=a.yOrigin||0,h=a.xOffset||0,_=a.yOffset||0,c=u[0],d=u[1],m=u[2],p=u[3],g=u[4],v=u[5],C=i.split(" "),y=parseFloat(C[0])||0,w=parseFloat(C[1])||0,P,T,S,
|
|
632
|
+
}s=_getComputedTransformMatrixAsArray(t);u?n.display=u:_removeProperty(t,"display");if(f){a?o.insertBefore(t,a):o?o.appendChild(t):_docElement.removeChild(t)}}return i&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},_applySVGOrigin=function e(t,i,r,n,s,o){var a=t._gsap,u=s||_getMatrix(t,true),f=a.xOrigin||0,l=a.yOrigin||0,h=a.xOffset||0,_=a.yOffset||0,c=u[0],d=u[1],m=u[2],p=u[3],g=u[4],v=u[5],C=i.split(" "),y=parseFloat(C[0])||0,w=parseFloat(C[1])||0,P,T,S,b;if(!r){P=_getBBox(t);y=P.x+(~C[0].indexOf("%")?y/100*P.width:y);w=P.y+(~(C[1]||C[0]).indexOf("%")?w/100*P.height:w);// if (!("xOrigin" in cache) && (xOrigin || yOrigin)) { // added in 3.12.3, reverted in 3.12.4; requires more exploration
|
|
633
633
|
// xOrigin -= bounds.x;
|
|
634
634
|
// yOrigin -= bounds.y;
|
|
635
635
|
// }
|
|
636
636
|
}else if(u!==_identity2DMatrix&&(T=c*p-d*m)){
|
|
637
637
|
//if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.
|
|
638
|
-
S=y*(p/T)+w*(-m/T)+(m*v-p*g)/T;
|
|
638
|
+
S=y*(p/T)+w*(-m/T)+(m*v-p*g)/T;b=y*(-d/T)+w*(c/T)-(c*v-d*g)/T;y=S;w=b;// theory: we only had to do this for smoothing and it assumes that the previous one was not originIsAbsolute.
|
|
639
639
|
}if(n||n!==false&&a.smooth){g=y-f;v=w-l;a.xOffset=h+(g*c+v*m)-g;a.yOffset=_+(g*d+v*p)-v}else{a.xOffset=a.yOffset=0}a.xOrigin=y;a.yOrigin=w;a.smooth=!!n;a.origin=i;a.originIsAbsolute=!!r;t.style[_transformOriginProp]="0px 0px";//otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).
|
|
640
|
-
if(o){_addNonTweeningPT(o,a,"xOrigin",f,y);_addNonTweeningPT(o,a,"yOrigin",l,w);_addNonTweeningPT(o,a,"xOffset",h,a.xOffset);_addNonTweeningPT(o,a,"yOffset",_,a.yOffset)}t.setAttribute("data-svg-origin",y+" "+w)},_parseTransform=function e(t,i){var r=t._gsap||new GSCache(t);if("x"in r&&!i&&!r.uncache){return r}var n=t.style,s=r.scaleX<0,o="px",a="deg",u=getComputedStyle(t),f=_getComputedProperty(t,_transformOriginProp)||"0",l,h,_,c,d,m,p,g,v,C,y,w,P,T,S,x,
|
|
640
|
+
if(o){_addNonTweeningPT(o,a,"xOrigin",f,y);_addNonTweeningPT(o,a,"yOrigin",l,w);_addNonTweeningPT(o,a,"xOffset",h,a.xOffset);_addNonTweeningPT(o,a,"yOffset",_,a.yOffset)}t.setAttribute("data-svg-origin",y+" "+w)},_parseTransform=function e(t,i){var r=t._gsap||new GSCache(t);if("x"in r&&!i&&!r.uncache){return r}var n=t.style,s=r.scaleX<0,o="px",a="deg",u=getComputedStyle(t),f=_getComputedProperty(t,_transformOriginProp)||"0",l,h,_,c,d,m,p,g,v,C,y,w,P,T,S,b,x,M,k,F,E,N,j,A,O,R,D,I,z,W,B,L;l=h=_=m=p=g=v=C=y=0;c=d=1;r.svg=!!(t.getCTM&&_isSVG(t));if(u.translate){
|
|
641
641
|
// accommodate independent transforms by combining them into normal ones.
|
|
642
642
|
if(u.translate!=="none"||u.scale!=="none"||u.rotate!=="none"){n[_transformProp]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[_transformProp]!=="none"?u[_transformProp]:"")}n.scale=n.rotate=n.translate="none"}T=_getMatrix(t,r.svg);if(r.svg){if(r.uncache){
|
|
643
643
|
// if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + "px " + (cache.yOrigin - bbox.y) + "px". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.
|
|
644
|
-
|
|
644
|
+
O=t.getBBox();f=r.xOrigin-O.x+"px "+(r.yOrigin-O.y)+"px";A=""}else{A=!i&&t.getAttribute("data-svg-origin");// Remember, to work around browser inconsistencies we always force SVG elements' transformOrigin to 0,0 and offset the translation accordingly.
|
|
645
645
|
}_applySVGOrigin(t,A||f,!!A||r.originIsAbsolute,r.smooth!==false,T)}w=r.xOrigin||0;P=r.yOrigin||0;if(T!==_identity2DMatrix){M=T[0];//a11
|
|
646
646
|
k=T[1];//a21
|
|
647
647
|
F=T[2];//a31
|
|
648
648
|
E=T[3];//a41
|
|
649
|
-
l=
|
|
649
|
+
l=N=T[4];h=j=T[5];//2D matrix
|
|
650
650
|
if(T.length===6){c=Math.sqrt(M*M+k*k);d=Math.sqrt(E*E+F*F);m=M||k?_atan2(k,M)*_RAD2DEG:0;//note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).
|
|
651
651
|
v=F||E?_atan2(F,E)*_RAD2DEG+m:0;v&&(d*=Math.abs(Math.cos(v*_DEG2RAD)));if(r.svg){l-=w-(w*M+P*F);h-=P-(w*k+P*E)}//3D matrix
|
|
652
|
-
}else{L=T[6];W=T[7];
|
|
653
|
-
if(S){
|
|
654
|
-
S=_atan2(-F,
|
|
655
|
-
S=_atan2(k,M);m=S*_RAD2DEG;if(S){
|
|
652
|
+
}else{L=T[6];W=T[7];D=T[8];I=T[9];z=T[10];B=T[11];l=T[12];h=T[13];_=T[14];S=_atan2(L,z);p=S*_RAD2DEG;//rotationX
|
|
653
|
+
if(S){b=Math.cos(-S);x=Math.sin(-S);A=N*b+D*x;O=j*b+I*x;R=L*b+z*x;D=N*-x+D*b;I=j*-x+I*b;z=L*-x+z*b;B=W*-x+B*b;N=A;j=O;L=R}//rotationY
|
|
654
|
+
S=_atan2(-F,z);g=S*_RAD2DEG;if(S){b=Math.cos(-S);x=Math.sin(-S);A=M*b-D*x;O=k*b-I*x;R=F*b-z*x;B=E*x+B*b;M=A;k=O;F=R}//rotationZ
|
|
655
|
+
S=_atan2(k,M);m=S*_RAD2DEG;if(S){b=Math.cos(S);x=Math.sin(S);A=M*b+k*x;O=N*b+j*x;k=k*b-M*x;j=j*b-N*x;M=A;N=O}if(p&&Math.abs(p)+Math.abs(m)>359.9){
|
|
656
656
|
//when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.
|
|
657
|
-
p=m=0;g=180-g}c=_round(Math.sqrt(M*M+k*k+F*F));d=_round(Math.sqrt(
|
|
657
|
+
p=m=0;g=180-g}c=_round(Math.sqrt(M*M+k*k+F*F));d=_round(Math.sqrt(j*j+L*L));S=_atan2(N,j);v=Math.abs(S)>2e-4?S*_RAD2DEG:0;y=B?1/(B<0?-B:B):0}if(r.svg){
|
|
658
658
|
//sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).
|
|
659
659
|
A=t.getAttribute("transform");r.forceCSS=t.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(t,_transformProp));A&&t.setAttribute("transform",A)}}if(Math.abs(v)>90&&Math.abs(v)<270){if(s){c*=-1;v+=m<=0?180:-180;m+=m<=0?180:-180}else{d*=-1;v+=v<=0?180:-180}}i=i||r.uncache;r.x=l-((r.xPercent=l&&(!i&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-l)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+o;r.y=h-((r.yPercent=h&&(!i&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+o;r.z=_+o;r.scaleX=_round(c);r.scaleY=_round(d);r.rotation=_round(m)+a;r.rotationX=_round(p)+a;r.rotationY=_round(g)+a;r.skewX=v+a;r.skewY=C+a;r.transformPerspective=y+o;if(r.zOrigin=parseFloat(f.split(" ")[2])||!i&&r.zOrigin||0){n[_transformOriginProp]=_firstTwoOnly(f)}r.xOffset=r.yOffset=0;r.force3D=_config.force3D;r.renderTransform=r.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms;r.uncache=0;return r},_firstTwoOnly=function e(t){return(t=t.split(" "))[0]+" "+t[1]},
|
|
660
660
|
//for handling transformOrigin values, stripping out the 3rd dimension
|
|
661
661
|
_addPxTranslate=function e(t,i,r){var n=getUnit(i);return _round(parseFloat(i)+parseFloat(_convertToUnit(t,"x",r+"px",n)))+n},_renderNon3DTransforms=function e(t,i){i.z="0px";i.rotationY=i.rotationX="0deg";i.force3D=0;_renderCSSTransforms(t,i)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function e(t,i){var r=i||this,n=r.xPercent,s=r.yPercent,o=r.x,a=r.y,u=r.z,f=r.rotation,l=r.rotationY,h=r.rotationX,_=r.skewX,c=r.skewY,d=r.scaleX,m=r.scaleY,p=r.transformPerspective,g=r.force3D,v=r.target,C=r.zOrigin,y="",w=g==="auto"&&t&&t!==1||g===true;// Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)
|
|
662
|
-
if(C&&(h!==_zeroDeg||l!==_zeroDeg)){var P=parseFloat(l)*_DEG2RAD,T=Math.sin(P),S=Math.cos(P),
|
|
662
|
+
if(C&&(h!==_zeroDeg||l!==_zeroDeg)){var P=parseFloat(l)*_DEG2RAD,T=Math.sin(P),S=Math.cos(P),b;P=parseFloat(h)*_DEG2RAD;b=Math.cos(P);o=_addPxTranslate(v,o,T*b*-C);a=_addPxTranslate(v,a,-Math.sin(P)*-C);u=_addPxTranslate(v,u,S*b*-C+C)}if(p!==_zeroPx){y+="perspective("+p+_endParenthesis}if(n||s){y+="translate("+n+"%, "+s+"%) "}if(w||o!==_zeroPx||a!==_zeroPx||u!==_zeroPx){y+=u!==_zeroPx||w?"translate3d("+o+", "+a+", "+u+") ":"translate("+o+", "+a+_endParenthesis}if(f!==_zeroDeg){y+="rotate("+f+_endParenthesis}if(l!==_zeroDeg){y+="rotateY("+l+_endParenthesis}if(h!==_zeroDeg){y+="rotateX("+h+_endParenthesis}if(_!==_zeroDeg||c!==_zeroDeg){y+="skew("+_+", "+c+_endParenthesis}if(d!==1||m!==1){y+="scale("+d+", "+m+_endParenthesis}v.style[_transformProp]=y||"translate(0, 0)"},_renderSVGTransforms=function e(t,i){var r=i||this,n=r.xPercent,s=r.yPercent,o=r.x,a=r.y,u=r.rotation,f=r.skewX,l=r.skewY,h=r.scaleX,_=r.scaleY,c=r.target,d=r.xOrigin,m=r.yOrigin,p=r.xOffset,g=r.yOffset,v=r.forceCSS,C=parseFloat(o),y=parseFloat(a),w,P,T,S,b;u=parseFloat(u);f=parseFloat(f);l=parseFloat(l);if(l){
|
|
663
663
|
//for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.
|
|
664
|
-
l=parseFloat(l);f+=l;u+=l}if(u||f){u*=_DEG2RAD;f*=_DEG2RAD;w=Math.cos(u)*h;P=Math.sin(u)*h;T=Math.sin(u-f)*-_;S=Math.cos(u-f)*_;if(f){l*=_DEG2RAD;
|
|
664
|
+
l=parseFloat(l);f+=l;u+=l}if(u||f){u*=_DEG2RAD;f*=_DEG2RAD;w=Math.cos(u)*h;P=Math.sin(u)*h;T=Math.sin(u-f)*-_;S=Math.cos(u-f)*_;if(f){l*=_DEG2RAD;b=Math.tan(f-l);b=Math.sqrt(1+b*b);T*=b;S*=b;if(l){b=Math.tan(l);b=Math.sqrt(1+b*b);w*=b;P*=b}}w=_round(w);P=_round(P);T=_round(T);S=_round(S)}else{w=h;S=_;P=T=0}if(C&&!~(o+"").indexOf("px")||y&&!~(a+"").indexOf("px")){C=_convertToUnit(c,"x",o,"px");y=_convertToUnit(c,"y",a,"px")}if(d||m||p||g){C=_round(C+d-(d*w+m*T)+p);y=_round(y+m-(d*P+m*S)+g)}if(n||s){
|
|
665
665
|
//The SVG spec doesn't support percentage-based translation in the "transform" attribute, so we merge it into the translation to simulate it.
|
|
666
|
-
|
|
666
|
+
b=c.getBBox();C=_round(C+n/100*b.width);y=_round(y+s/100*b.height)}b="matrix("+w+","+P+","+T+","+S+","+C+","+y+")";c.setAttribute("transform",b);v&&(c.style[_transformProp]=b);//some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)
|
|
667
667
|
},_addRotationalPropTween=function e(t,i,r,n,s){var o=360,a=_isString(s),u=parseFloat(s)*(a&&~s.indexOf("rad")?_RAD2DEG:1),f=u-n,l=n+f+"deg",h,_;if(a){h=s.split("_")[1];if(h==="short"){f%=o;if(f!==f%(o/2)){f+=f<0?o:-o}}if(h==="cw"&&f<0){f=(f+o*_bigNum)%o-~~(f/o)*o}else if(h==="ccw"&&f>0){f=(f-o*_bigNum)%o-~~(f/o)*o}}t._pt=_=new PropTween(t._pt,i,r,n,f,_renderPropWithEnd);_.e=l;_.u="deg";t._props.push(r);return _},_assign=function e(t,i){
|
|
668
668
|
// Internet Explorer doesn't have Object.assign(), so we recreate it here.
|
|
669
669
|
for(var r in i){t[r]=i[r]}return t},_addRawTransformPTs=function e(t,i,r){
|
|
@@ -673,7 +673,7 @@ var n=_assign({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.
|
|
|
673
673
|
c=getUnit(f);d=getUnit(l);h=c!==d?_convertToUnit(r,u,f,d):parseFloat(f);_=parseFloat(l);t._pt=new PropTween(t._pt,a,u,h,_-h,_renderCSSProp);t._pt.u=d||0;t._props.push(u)}}_assign(a,n)};// handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.
|
|
674
674
|
_forEachName("padding,margin,Width,Radius",(function(e,t){var i="Top",r="Right",n="Bottom",s="Left",o=(t<3?[i,r,n,s]:[i+s,i+r,n+r,n+s]).map((function(i){return t<2?e+i:"border"+i+e}));_specialProps[t>1?"border"+e:e]=function(e,t,i,r,n){var s,a;if(arguments.length<4){
|
|
675
675
|
// getter, passed target, property, and unit (from _get())
|
|
676
|
-
s=o.map((function(t){return _get(e,t,i)}));a=s.join(" ");return a.split(s[0]).length===5?s[0]:a}s=(r+"").split(" ");a={};o.forEach((function(e,t){return a[e]=s[t]=s[t]||s[(t-1)/2|0]}));e.init(t,a,n)}}));var CSSPlugin={name:"css",register:_initCore,targetTest:function e(t){return t.style&&t.nodeType},init:function e(t,i,r,n,s){var o=this._props,a=t.style,u=r.vars.startAt,f,l,h,_,c,d,m,p,g,v,C,y,w,P,T,S,
|
|
676
|
+
s=o.map((function(t){return _get(e,t,i)}));a=s.join(" ");return a.split(s[0]).length===5?s[0]:a}s=(r+"").split(" ");a={};o.forEach((function(e,t){return a[e]=s[t]=s[t]||s[(t-1)/2|0]}));e.init(t,a,n)}}));var CSSPlugin={name:"css",register:_initCore,targetTest:function e(t){return t.style&&t.nodeType},init:function e(t,i,r,n,s){var o=this._props,a=t.style,u=r.vars.startAt,f,l,h,_,c,d,m,p,g,v,C,y,w,P,T,S,b;_pluginInitted||_initCore();// we may call init() multiple times on the same plugin instance, like when adding special properties, so make sure we don't overwrite the revert data or inlineProps
|
|
677
677
|
this.styles=this.styles||_getStyleSaver(t);S=this.styles.props;this.tween=r;for(m in i){if(m==="autoRound"){continue}l=i[m];if(_plugins[m]&&_checkPlugin(m,i,r,n,t,s)){
|
|
678
678
|
// plugins
|
|
679
679
|
continue}c=typeof l;d=_specialProps[m];if(c==="function"){l=l.call(r,n,t,s);c=typeof l}if(c==="string"&&~l.indexOf("random(")){l=_replaceRandom(l)}if(d){d(this,t,m,l,r)&&(T=1)}else if(m.substr(0,2)==="--"){
|
|
@@ -689,20 +689,27 @@ f=typeof u[m]==="function"?u[m].call(r,n,t,s):u[m];_isString(f)&&~f.indexOf("ran
|
|
|
689
689
|
if(_===1&&_get(t,"visibility")==="hidden"&&h){
|
|
690
690
|
//if visibility is initially set to "hidden", we should interpret that as intent to make opacity 0 (a convenience)
|
|
691
691
|
_=0}S.push("visibility",0,a.visibility);_addNonTweeningPT(this,a,"visibility",_?"inherit":"hidden",h?"inherit":"hidden",!h)}if(m!=="scale"&&m!=="transform"){m=_propertyAliases[m];~m.indexOf(",")&&(m=m.split(",")[0])}}C=m in _transformProps;//--- TRANSFORM-RELATED ---
|
|
692
|
-
if(C){this.styles.save(m);
|
|
693
|
-
if(c==="string"&&l.substring(0,6)==="var(--"){l=_getComputedProperty(t,l.substring(4,l.indexOf(")")));if(l.substring(0,5)==="calc("){var
|
|
692
|
+
if(C){this.styles.save(m);b=l;// this is always the same as endValue except when it's a var(--) value, in which case we need to calculate the end value.
|
|
693
|
+
if(c==="string"&&l.substring(0,6)==="var(--"){l=_getComputedProperty(t,l.substring(4,l.indexOf(")")));if(l.substring(0,5)==="calc("){var x=t.style.perspective;t.style.perspective=l;l=_getComputedProperty(t,"perspective");x?t.style.perspective=x:_removeProperty(t,"perspective")}h=parseFloat(l)}if(!y){w=t._gsap;w.renderTransform&&!i.parseTransform||_parseTransform(t,i.parseTransform);// if, for example, gsap.set(... {transform:"translateX(50vw)"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.
|
|
694
694
|
P=i.smoothOrigin!==false&&w.smooth;y=this._pt=new PropTween(this._pt,a,_transformProp,0,1,w.renderTransform,w,0,-1);//the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)
|
|
695
695
|
y.dep=1;//flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.
|
|
696
696
|
}if(m==="scale"){this._pt=new PropTween(this._pt,w,"scaleY",w.scaleY,(v?_parseRelative(w.scaleY,v+h):h)-w.scaleY||0,_renderCSSProp);this._pt.u=0;o.push("scaleY",m);m+="X"}else if(m==="transformOrigin"){S.push(_transformOriginProp,0,a[_transformOriginProp]);l=_convertKeywordsToPercentages(l);//in case something like "left top" or "bottom right" is passed in. Convert to percentages.
|
|
697
697
|
if(w.svg){_applySVGOrigin(t,l,0,P,0,this)}else{g=parseFloat(l.split(" ")[2])||0;//handle the zOrigin separately!
|
|
698
698
|
g!==w.zOrigin&&_addNonTweeningPT(this,w,"zOrigin",w.zOrigin,g);_addNonTweeningPT(this,a,m,_firstTwoOnly(f),_firstTwoOnly(l))}continue}else if(m==="svgOrigin"){_applySVGOrigin(t,l,1,P,0,this);continue}else if(m in _rotationalProperties){_addRotationalPropTween(this,w,m,_,v?_parseRelative(_,v+l):l);continue}else if(m==="smoothOrigin"){_addNonTweeningPT(this,w,"smooth",w.smooth,l);continue}else if(m==="force3D"){w[m]=l;continue}else if(m==="transform"){_addRawTransformPTs(this,l,t);continue}}else if(!(m in a)){m=_checkPropPrefix(m)||m}if(C||(h||h===0)&&(_||_===0)&&!_complexExp.test(l)&&m in a){p=(f+"").substr((_+"").length);h||(h=0);// protect against NaN
|
|
699
|
-
g=getUnit(l)||(m in _config.units?_config.units[m]:p);p!==g&&(_=_convertToUnit(t,m,f,g));this._pt=new PropTween(this._pt,C?w:a,m,_,(v?_parseRelative(_,v+h):h)-_,!C&&(g==="px"||m==="zIndex")&&i.autoRound!==false?_renderRoundedCSSProp:_renderCSSProp);this._pt.u=g||0;if(C&&
|
|
699
|
+
g=getUnit(l)||(m in _config.units?_config.units[m]:p);p!==g&&(_=_convertToUnit(t,m,f,g));this._pt=new PropTween(this._pt,C?w:a,m,_,(v?_parseRelative(_,v+h):h)-_,!C&&(g==="px"||m==="zIndex")&&i.autoRound!==false?_renderRoundedCSSProp:_renderCSSProp);this._pt.u=g||0;if(C&&b!==l){this._pt.b=f;this._pt.e=b;this._pt.r=_renderCSSPropWithBeginningAndEnd}else if(p!==g&&g!=="%"){
|
|
700
700
|
//when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a "b" (beginning) property and point to a render method that handles that. (performance optimization)
|
|
701
701
|
this._pt.b=f;this._pt.r=_renderCSSPropWithBeginning}}else if(!(m in a)){if(m in t){
|
|
702
702
|
//maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.
|
|
703
703
|
this.add(t,m,f||t[m],v?v+l:l,n,s)}else if(m!=="parseTransform"){_missingPlugin(m,l);continue}}else{_tweenComplexCSSString.call(this,t,m,f,v?v+l:l)}C||(m in a?S.push(m,0,a[m]):typeof t[m]==="function"?S.push(m,2,t[m]()):S.push(m,1,f||t[m]));o.push(m)}}T&&_sortPropTweensByPriority(this)},render:function e(t,i){if(i.tween._time||!_reverting()){var r=i._pt;while(r){r.r(t,r.d);r=r._next}}else{i.styles.revert()}},get:_get,aliases:_propertyAliases,getSetter:function e(t,i,r){
|
|
704
704
|
//returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like "x" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.
|
|
705
|
-
var n=_propertyAliases[i];n&&n.indexOf(",")<0&&(i=n);return i in _transformProps&&i!==_transformOriginProp&&(t._gsap.x||_get(t,"x"))?r&&_recentSetterPlugin===r?i==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=r||{})&&(i==="scale"?_setterScaleWithRender:_setterTransformWithRender):t.style&&!_isUndefined(t.style[i])?_setterCSSStyle:~i.indexOf("-")?_setterCSSProp:_getSetter(t,i)},core:{_removeProperty:_removeProperty,_getMatrix:_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix;gsap.core.getStyleSaver=_getStyleSaver;(function(e,t,i,r){var n=_forEachName(e+","+t+","+i,(function(e){_transformProps[e]=1}));_forEachName(t,(function(e){_config.units[e]="deg";_rotationalProperties[e]=1}));_propertyAliases[n[13]]=e+","+t;_forEachName(r,(function(e){var t=e.split(":");_propertyAliases[t[1]]=n[t[0]]}))})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){_config.units[e]="px"}));gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap;var miaSvg='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="head-default">\n <path id="border-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" stroke="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))" stroke-width="var(--mds-emoji-mia-head-stroke-width, 2px)" fill="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))"/>\n <path id="path-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" fill="var(--mds-emoji-mia-head-color, rgb(224 207 253))"/>\n </g>\n <g id="eyes-default">\n <path id="left-eye" d="M8 8H10V12H8V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye" d="M14 8H16V12H14V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <g id="eyes-closed" style="visibility:hidden;">\n <path id="left-eye-closed" d="M6 10H10V12H6V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye-closed" d="M14 10H18V12H14V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <path id="mouth-default" d="M16.707 15.707C15.4771 16.937 13.6985 17.5 12 17.5C10.3015 17.5 8.52294 16.937 7.29297 15.707L8.70703 14.293C9.47706 15.063 10.6985 15.5 12 15.5C13.3015 15.5 14.5229 15.063 15.293 14.293L16.707 15.707Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-smile" style="visibility:hidden;" d="M16 14H8C8.33333 15.3333 9 18 12 18C15 18 15.6667 15.3333 16 14Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-serious" style="visibility:hidden;" d="M8 15H16V17H8V15Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="hand-think" style="visibility:hidden;" d="M6 16C6.55228 16 7 16.4477 7 17V18H13C13.5523 18 14 18.4477 14 19C14 19.5523 13.5523 20 13 20H10.3818C11.1252 20 11.6088 20.7824 11.2764 21.4473L10.2764 23.4473C10.107 23.786 9.76059 24 9.38184 24H4V20L5 18V16H6Z" fill="var(--mds-emoji-mia-hands-color, rgb(98 12 245))"/>\n</svg>\n';var simiSvg='<svg width="440" height="440" viewBox="0 0 440 440" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="ears-default">\n <g id="ear-right">\n <path id="ear-right-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M351.676 53.2891C356.294 52.7076 360.415 52.9806 363.838 54.3252C364.658 54.6472 365.437 55.0331 366.178 55.4746C368.347 56.9073 370.299 58.8573 372.053 61.2344C385.423 81.3621 375.744 133.891 368.078 161.119C374.135 161.321 386.734 162.455 388.672 165.367C391.094 169.008 380.992 189.032 358.387 195.1C357.17 195.426 355.929 195.687 354.667 195.888C317.523 201.796 244.693 161.119 265.859 130.788C281.528 108.336 324.274 59.2313 351.676 53.2891Z"/>\n <path id="ear-right-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M350.023 84.8079C329.105 90.1196 311.307 114.384 305.023 125.853C299.251 136.387 303.53 147.927 311.277 155C320.553 163.469 334.801 165.535 342.726 151.808C361.778 118.808 355.529 93.3915 350.023 84.8079Z"/>\n <path id="ear-right-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M349.523 84.5C334.523 89 291.523 121 306.523 149"/>\n </g>\n <g id="ear-left">\n <path id="ear-left-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M89.3476 53.2891C84.7294 52.7076 80.6085 52.9806 77.1855 54.3252C76.3658 54.6472 75.5869 55.0331 74.8457 55.4746C72.6763 56.9073 70.7246 58.8573 68.9707 61.2344C55.6008 81.3621 65.2794 133.891 72.9453 161.119C66.8883 161.321 54.2898 162.455 52.3516 165.367C49.9291 169.008 60.0319 189.032 82.6367 195.1C83.8533 195.426 85.0943 195.687 86.3564 195.888C123.5 201.796 196.33 161.119 175.164 130.788C159.496 108.336 116.75 59.2313 89.3476 53.2891Z"/>\n <path id="ear-left-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M91 84.8079C111.919 90.1196 129.716 114.384 136 125.853C141.772 136.387 137.494 147.927 129.747 155C120.471 163.469 106.223 165.535 98.2973 151.808C79.2451 118.808 85.494 93.3915 91 84.8079Z"/>\n <path id="ear-left-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M91.5 84.5C106.5 89 149.5 121 134.5 149"/>\n </g>\n </g>\n <g id="head-default">\n <path id="shape-head" fill="var(--mds-emoji-simi-skin, #F36320)" d="M378.732 217.557C340.98 122.357 268.622 107.557 219.909 107.557C171.197 107.557 98.8384 122.357 61.0863 217.557C50.181 245.057 52.6419 250.557 21.1818 271.057C19.6595 281.557 27.7783 295.057 42.4935 297.057C38.7724 298.224 30.5183 300.557 27.2708 300.557C23.2115 300.557 65.1456 387.557 219.909 387.557C374.673 387.557 416.789 300.057 412.729 300.057C409.482 300.057 401.228 297.724 397.507 296.557C412.222 294.557 420.34 281.057 418.818 270.557C387.358 250.057 389.637 245.057 378.732 217.557Z"/>\n <g id="ear-tufts">\n <g id="right-tuft">\n <path id="right-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M336.411 123.628C333.005 118.799 313.911 124.433 304.789 127.853C295.789 132.254 282.34 139.697 296.289 146.057C313.289 153.808 342.492 168.294 342.492 153.808C343.708 143.547 331.749 140.126 326.681 139.321C331.343 136.102 339.816 128.457 336.411 123.628Z"/>\n <path id="right-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M304.789 127.853C313.911 124.433 333.005 118.799 336.411 123.628C339.816 128.457 331.343 136.102 326.681 139.321C331.749 140.126 343.708 143.547 342.492 153.808"/>\n </g>\n <g id="left-tuft">\n <path id="left-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M104.167 122.628C107.573 117.799 126.667 123.433 135.789 126.853C144.789 131.254 158.239 138.697 144.289 145.057C127.289 152.808 98.0863 167.294 98.0863 152.808C96.8701 142.547 108.83 139.126 113.897 138.321C109.235 135.102 100.762 127.457 104.167 122.628Z"/>\n <path id="left-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M135.789 126.853C126.667 123.433 107.573 117.799 104.167 122.628C100.762 127.457 109.235 135.102 113.897 138.321C108.83 139.126 96.8701 142.547 98.0864 152.808"/>\n </g>\n </g>\n <g id="cheeks">\n <path id="right-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M380.5 290.057C364 262.557 340 266.355 318 279.057C344.5 305.557 344 327.557 330 361.557C384.8 341.157 386.5 305.39 380.5 290.057Z"/>\n <path id="left-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M59.3658 290.057C75.8658 262.557 99.8658 266.355 121.866 279.057C95.3658 305.557 95.8658 327.557 109.866 361.557C55.0658 341.157 53.3658 305.39 59.3658 290.057Z"/>\n </g>\n <path id="chin" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 372.557C256.675 372.557 286 352.186 286 327.057C286 301.928 256.675 260.557 220.5 260.557C184.325 260.557 155 301.928 155 327.057C155 352.186 184.325 372.557 220.5 372.557Z"/>\n </g>\n <g id="eyebrows-default">\n <path id="left-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M175.248 176.007C177.691 183.997 168.289 189.539 152.865 194.255C137.442 198.97 131.072 201.193 128.629 193.203C126.186 185.212 132.802 175.371 148.226 170.655C163.649 165.94 172.805 168.016 175.248 176.007Z"/>\n <path id="right-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M265.189 175.007C262.746 182.997 272.148 188.539 287.572 193.255C302.995 197.97 309.365 200.193 311.808 192.203C314.251 184.212 307.635 174.371 292.211 169.655C276.788 164.94 267.632 167.016 265.189 175.007Z"/>\n </g>\n <g id="eyes-default" style="transform-origin:50% 50%;">\n <g id="right-eye">\n <ellipse id="right-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(12 287.002 249.057)"/>\n <circle id="right-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye">\n <ellipse id="left-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-0.978148 0.207912 0.207912 0.978148 165.139 221.541)"/>\n <circle id="left-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <g id="eyes-closed" style="visibility: hidden;">\n <path id="left-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M125 248.5C137.5 240.5 167.1 241.3 179.5 248.5"/>\n <path id="right-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M315.5 248.5C303 240.5 273.4 241.3 261 248.5"/>\n </g>\n <g id="eyes-focused" style="visibility: hidden;">\n <g id="right-eye-focused">\n <ellipse id="right-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(-90 287.002 249.057)"/>\n <circle id="right-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye-focused">\n <ellipse id="left-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-4.37114e-08 1 1 4.37114e-08 127.637 230.852)"/>\n <circle id="left-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <path id="gadget-default" fill="var(--mds-emoji-simi-gadget, #2B1C15)" fill-rule="evenodd" clip-rule="evenodd" d="M296 186C327.723 186 353.88 209.825 357.557 240.558H367C370.314 240.558 373 243.244 373 246.558C373 249.871 370.314 252.558 367 252.558H357.834C355.501 284.671 328.709 310 296 310C262.189 310 234.7 282.936 234.014 249.289C230.711 246.983 225.885 245.558 220.5 245.558C215.114 245.558 210.288 246.983 206.985 249.289C206.299 282.936 178.811 310 145 310C112.291 310 85.4993 284.671 83.166 252.558H74C70.6864 252.558 68.0002 249.871 68 246.558C68 243.244 70.6863 240.558 74 240.558H83.4434C87.12 209.825 113.277 186 145 186C175.248 186 200.437 207.662 205.9 236.318C210.539 234.42 215.652 233.558 220.5 233.558C225.348 233.558 230.461 234.419 235.099 236.317C240.563 207.661 265.752 186 296 186ZM145 198C117.386 198 95 220.386 95 248C95 275.614 117.386 298 145 298C172.614 298 195 275.614 195 248C195 220.386 172.614 198 145 198ZM296 198C268.386 198 246 220.386 246 248C246 275.614 268.386 298 296 298C323.614 298 346 275.614 346 248C346 220.386 323.614 198 296 198Z"/>\n <g id="mouth-default">\n <path id="muzzle-shape-mouth-default" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-mouth-default" fill="var(--mds-emoji-simi-mouth, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-default">\n <path id="node-shape-mouth-default" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-default" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-smile" style="visibility: hidden;">\n <g id="inner-mouth">\n <ellipse id="throat-mouth-smile" fill="var(--mds-emoji-simi-mouth-throat, #C3481B)" cx="220.5" cy="326" rx="32.5" ry="29" />\n <path id="teeth-mouth-smile" fill="var(--mds-emoji-simi-mouth-teeth, #FFFFFF)" d="M220.5 329C235.689 329 248.003 331.686 248.003 335C248.003 338.314 235.689 341 220.5 341C205.311 341 192.997 338.314 192.997 335C192.997 331.686 205.311 329 220.5 329Z"/>\n <path id="lips-mouth-smile" stroke="var(--mds-emoji-simi-nose, #2B1C15)" stroke-width="7" d="M220.5 300.5C236.62 300.5 249.5 313.138 249.5 328.5C249.5 343.862 236.62 356.5 220.5 356.5C204.38 356.5 191.5 343.862 191.5 328.5C191.5 313.138 204.38 300.5 220.5 300.5Z" />\n </g>\n <path id="muzzle-shape-mouth-smile" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-smile">\n <path id="nose-shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-smile" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-serious" style="visibility: hidden;">\n <path id="muzzle-shape-mouth-serious" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298C221.933 298 223.5 299.567 223.5 301.5V326.675C224.663 326.774 225.818 326.903 226.821 327.026C227.869 327.155 228.796 327.283 229.462 327.38C229.795 327.428 230.064 327.469 230.251 327.497C230.344 327.511 230.418 327.522 230.469 327.53C230.494 327.534 230.514 327.538 230.527 327.54C230.534 327.541 230.539 327.541 230.543 327.542C230.545 327.542 230.547 327.543 230.548 327.543H230.55C232.459 327.847 233.76 329.641 233.456 331.55C233.152 333.459 231.359 334.76 229.45 334.456C229.45 334.456 229.448 334.456 229.447 334.456C229.445 334.456 229.441 334.455 229.436 334.454C229.426 334.452 229.41 334.451 229.389 334.447C229.345 334.441 229.28 334.43 229.194 334.417C229.023 334.391 228.772 334.353 228.458 334.308C227.83 334.217 226.954 334.095 225.968 333.974C223.947 333.725 221.629 333.5 220 333.5C218.371 333.5 216.053 333.725 214.032 333.974C213.046 334.095 212.17 334.217 211.542 334.308C211.228 334.353 210.977 334.391 210.806 334.417C210.72 334.43 210.655 334.441 210.611 334.447C210.59 334.451 210.574 334.452 210.563 334.454C210.559 334.455 210.555 334.456 210.553 334.456C210.552 334.456 210.55 334.456 210.55 334.456C208.641 334.76 206.848 333.459 206.544 331.55C206.24 329.641 207.541 327.848 209.45 327.544L209.452 327.543C209.453 327.543 209.455 327.542 209.457 327.542C209.461 327.541 209.466 327.541 209.473 327.54C209.486 327.538 209.506 327.534 209.531 327.53C209.582 327.522 209.656 327.511 209.749 327.497C209.936 327.469 210.205 327.428 210.538 327.38C211.204 327.283 212.131 327.155 213.179 327.026C214.182 326.903 215.337 326.774 216.5 326.675V301.5C216.5 299.567 218.067 298 220 298Z" />\n <g id="nose-mouth-serious">\n <path id="nose-shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-serious" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="hand-think" style="visibility: hidden;">\n <path id="shape-hand-think" fill="var(--mds-emoji-simi-skin, #F36320)" d="M237.5 438C238.5 435 241 428.5 243.5 421.5C257.989 413.451 258.739 397.302 255.5 383.467C278 367.934 263.5 350 255.5 350C251.5 340.4 242.5 339 238.5 339.5C244.5 324 233 323.5 229 323.5C225 323.5 202.5 323 189 351C183.4 374.6 195 400.833 201.5 411C200.667 411.5 199 414.5 195.5 420C211 426.5 204 423.5 237.5 438Z" />\n <path id="palm-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M251 369C267 409.5 249.5 416.5 242 423.5L236.5 437.5"/>\n <path id="finger-3-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 382.5C262.5 379.333 273.7 370.1 266.5 358.5C257.5 344 234 360 230 363"/>\n <path id="finger-2-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 350.5C256 338 236.1 329.9 208.5 357.5"/>\n <path id="finger-1-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M196.5 420.5L201.5 410.5C195.167 400 183.8 373.6 189 352C194.2 330.4 218.833 323.667 230.5 323C235.333 322.5 243.9 325.1 239.5 339.5"/>\n </g>\n</svg>\n';var mdsEmojiCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:var(--duration-200,.2s);--mds-emoji-expression-follow-mouse-head-duration:var(--duration-300,.3s);--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:calc(var(--spacing,.0025rem)*10000);align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,calc(var(--spacing,.0025rem)*10000));perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;transition:transform var(--duration-200,.2s) ease-out;width:100%}:host([name=mia]){--mds-emoji-mia-eyes-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)));--mds-emoji-mia-hands-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-mia-head-color:rgb(var(--magma-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)));--mds-emoji-mia-head-stroke-color:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-emoji-mia-head-stroke-width:0px;--mds-emoji-mia-mouth-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-offset-eyes:1px;--mds-emoji-offset-gadget:1px;--mds-emoji-offset-hands:2px;--mds-emoji-offset-head:0;--mds-emoji-offset-mouth:1px;container-type:size}:host([name=simi]){--mds-emoji-offset-ears:0;--mds-emoji-offset-eyebrows:10px;--mds-emoji-offset-eyes:7px;--mds-emoji-offset-gadget:14px;--mds-emoji-offset-hands:18px;--mds-emoji-offset-head:5px;--mds-emoji-offset-mouth:16px;--mds-emoji-simi-eye-light:#fff;--mds-emoji-simi-eye:#40281b;--mds-emoji-simi-eyebrow:#feefd8;--mds-emoji-simi-gadget:#2b1c15;--mds-emoji-simi-mouth-teeth:#fff;--mds-emoji-simi-mouth-throat:#c3481b;--mds-emoji-simi-mouth:#2b1c15;--mds-emoji-simi-nose-light:#7e695f;--mds-emoji-simi-nose:#2b1c15;--mds-emoji-simi-outline:#2b1c15;--mds-emoji-simi-skin-dark:#c3481b;--mds-emoji-simi-skin-light:#feefd8;--mds-emoji-simi-skin:#f36320}"};var MdsEmoji=/** @class */function(){function e(e){var t=this;registerInstance(this,e);
|
|
705
|
+
var n=_propertyAliases[i];n&&n.indexOf(",")<0&&(i=n);return i in _transformProps&&i!==_transformOriginProp&&(t._gsap.x||_get(t,"x"))?r&&_recentSetterPlugin===r?i==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=r||{})&&(i==="scale"?_setterScaleWithRender:_setterTransformWithRender):t.style&&!_isUndefined(t.style[i])?_setterCSSStyle:~i.indexOf("-")?_setterCSSProp:_getSetter(t,i)},core:{_removeProperty:_removeProperty,_getMatrix:_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix;gsap.core.getStyleSaver=_getStyleSaver;(function(e,t,i,r){var n=_forEachName(e+","+t+","+i,(function(e){_transformProps[e]=1}));_forEachName(t,(function(e){_config.units[e]="deg";_rotationalProperties[e]=1}));_propertyAliases[n[13]]=e+","+t;_forEachName(r,(function(e){var t=e.split(":");_propertyAliases[t[1]]=n[t[0]]}))})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){_config.units[e]="px"}));gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap;var miaSvg='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="head-default">\n <path id="border-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" stroke="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))" stroke-width="var(--mds-emoji-mia-head-stroke-width, 2px)" fill="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))"/>\n <path id="path-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" fill="var(--mds-emoji-mia-head-color, rgb(224 207 253))"/>\n </g>\n <g id="eyes-default">\n <path id="left-eye" d="M8 8H10V12H8V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye" d="M14 8H16V12H14V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <g id="eyes-closed" style="visibility:hidden;">\n <path id="left-eye-closed" d="M6 10H10V12H6V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye-closed" d="M14 10H18V12H14V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <path id="mouth-default" d="M16.707 15.707C15.4771 16.937 13.6985 17.5 12 17.5C10.3015 17.5 8.52294 16.937 7.29297 15.707L8.70703 14.293C9.47706 15.063 10.6985 15.5 12 15.5C13.3015 15.5 14.5229 15.063 15.293 14.293L16.707 15.707Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-smile" style="visibility:hidden;" d="M16 14H8C8.33333 15.3333 9 18 12 18C15 18 15.6667 15.3333 16 14Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-serious" style="visibility:hidden;" d="M8 15H16V17H8V15Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="hand-think" style="visibility:hidden;" d="M6 16C6.55228 16 7 16.4477 7 17V18H13C13.5523 18 14 18.4477 14 19C14 19.5523 13.5523 20 13 20H10.3818C11.1252 20 11.6088 20.7824 11.2764 21.4473L10.2764 23.4473C10.107 23.786 9.76059 24 9.38184 24H4V20L5 18V16H6Z" fill="var(--mds-emoji-mia-hands-color, rgb(98 12 245))"/>\n</svg>\n';var simiSvg='<svg width="440" height="440" viewBox="0 0 440 440" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="ears-default">\n <g id="ear-right">\n <path id="ear-right-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M351.676 53.2891C356.294 52.7076 360.415 52.9806 363.838 54.3252C364.658 54.6472 365.437 55.0331 366.178 55.4746C368.347 56.9073 370.299 58.8573 372.053 61.2344C385.423 81.3621 375.744 133.891 368.078 161.119C374.135 161.321 386.734 162.455 388.672 165.367C391.094 169.008 380.992 189.032 358.387 195.1C357.17 195.426 355.929 195.687 354.667 195.888C317.523 201.796 244.693 161.119 265.859 130.788C281.528 108.336 324.274 59.2313 351.676 53.2891Z"/>\n <path id="ear-right-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M350.023 84.8079C329.105 90.1196 311.307 114.384 305.023 125.853C299.251 136.387 303.53 147.927 311.277 155C320.553 163.469 334.801 165.535 342.726 151.808C361.778 118.808 355.529 93.3915 350.023 84.8079Z"/>\n <path id="ear-right-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M349.523 84.5C334.523 89 291.523 121 306.523 149"/>\n </g>\n <g id="ear-left">\n <path id="ear-left-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M89.3476 53.2891C84.7294 52.7076 80.6085 52.9806 77.1855 54.3252C76.3658 54.6472 75.5869 55.0331 74.8457 55.4746C72.6763 56.9073 70.7246 58.8573 68.9707 61.2344C55.6008 81.3621 65.2794 133.891 72.9453 161.119C66.8883 161.321 54.2898 162.455 52.3516 165.367C49.9291 169.008 60.0319 189.032 82.6367 195.1C83.8533 195.426 85.0943 195.687 86.3564 195.888C123.5 201.796 196.33 161.119 175.164 130.788C159.496 108.336 116.75 59.2313 89.3476 53.2891Z"/>\n <path id="ear-left-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M91 84.8079C111.919 90.1196 129.716 114.384 136 125.853C141.772 136.387 137.494 147.927 129.747 155C120.471 163.469 106.223 165.535 98.2973 151.808C79.2451 118.808 85.494 93.3915 91 84.8079Z"/>\n <path id="ear-left-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M91.5 84.5C106.5 89 149.5 121 134.5 149"/>\n </g>\n </g>\n <g id="head-default">\n <path id="shape-head" fill="var(--mds-emoji-simi-skin, #F36320)" d="M378.732 217.557C340.98 122.357 268.622 107.557 219.909 107.557C171.197 107.557 98.8384 122.357 61.0863 217.557C50.181 245.057 52.6419 250.557 21.1818 271.057C19.6595 281.557 27.7783 295.057 42.4935 297.057C38.7724 298.224 30.5183 300.557 27.2708 300.557C23.2115 300.557 65.1456 387.557 219.909 387.557C374.673 387.557 416.789 300.057 412.729 300.057C409.482 300.057 401.228 297.724 397.507 296.557C412.222 294.557 420.34 281.057 418.818 270.557C387.358 250.057 389.637 245.057 378.732 217.557Z"/>\n <g id="ear-tufts">\n <g id="right-tuft">\n <path id="right-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M336.411 123.628C333.005 118.799 313.911 124.433 304.789 127.853C295.789 132.254 282.34 139.697 296.289 146.057C313.289 153.808 342.492 168.294 342.492 153.808C343.708 143.547 331.749 140.126 326.681 139.321C331.343 136.102 339.816 128.457 336.411 123.628Z"/>\n <path id="right-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M304.789 127.853C313.911 124.433 333.005 118.799 336.411 123.628C339.816 128.457 331.343 136.102 326.681 139.321C331.749 140.126 343.708 143.547 342.492 153.808"/>\n </g>\n <g id="left-tuft">\n <path id="left-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M104.167 122.628C107.573 117.799 126.667 123.433 135.789 126.853C144.789 131.254 158.239 138.697 144.289 145.057C127.289 152.808 98.0863 167.294 98.0863 152.808C96.8701 142.547 108.83 139.126 113.897 138.321C109.235 135.102 100.762 127.457 104.167 122.628Z"/>\n <path id="left-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M135.789 126.853C126.667 123.433 107.573 117.799 104.167 122.628C100.762 127.457 109.235 135.102 113.897 138.321C108.83 139.126 96.8701 142.547 98.0864 152.808"/>\n </g>\n </g>\n <g id="cheeks">\n <path id="right-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M380.5 290.057C364 262.557 340 266.355 318 279.057C344.5 305.557 344 327.557 330 361.557C384.8 341.157 386.5 305.39 380.5 290.057Z"/>\n <path id="left-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M59.3658 290.057C75.8658 262.557 99.8658 266.355 121.866 279.057C95.3658 305.557 95.8658 327.557 109.866 361.557C55.0658 341.157 53.3658 305.39 59.3658 290.057Z"/>\n </g>\n <path id="chin" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 372.557C256.675 372.557 286 352.186 286 327.057C286 301.928 256.675 260.557 220.5 260.557C184.325 260.557 155 301.928 155 327.057C155 352.186 184.325 372.557 220.5 372.557Z"/>\n </g>\n <g id="eyebrows-default">\n <path id="left-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M175.248 176.007C177.691 183.997 168.289 189.539 152.865 194.255C137.442 198.97 131.072 201.193 128.629 193.203C126.186 185.212 132.802 175.371 148.226 170.655C163.649 165.94 172.805 168.016 175.248 176.007Z"/>\n <path id="right-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M265.189 175.007C262.746 182.997 272.148 188.539 287.572 193.255C302.995 197.97 309.365 200.193 311.808 192.203C314.251 184.212 307.635 174.371 292.211 169.655C276.788 164.94 267.632 167.016 265.189 175.007Z"/>\n </g>\n <g id="eyes-default">\n <g id="right-eye">\n <ellipse id="right-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(12 287.002 249.057)"/>\n <circle id="right-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye">\n <ellipse id="left-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-0.978148 0.207912 0.207912 0.978148 165.139 221.541)"/>\n <circle id="left-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <g id="eyes-closed" style="visibility: hidden;">\n <path id="left-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M125 248.5C137.5 240.5 167.1 241.3 179.5 248.5"/>\n <path id="right-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M315.5 248.5C303 240.5 273.4 241.3 261 248.5"/>\n </g>\n <g id="eyes-focused" style="visibility: hidden;">\n <g id="right-eye-focused">\n <ellipse id="right-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(-90 287.002 249.057)"/>\n <circle id="right-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye-focused">\n <ellipse id="left-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-4.37114e-08 1 1 4.37114e-08 127.637 230.852)"/>\n <circle id="left-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <path id="gadget-default" fill="var(--mds-emoji-simi-gadget, #2B1C15)" fill-rule="evenodd" clip-rule="evenodd" d="M296 186C327.723 186 353.88 209.825 357.557 240.558H367C370.314 240.558 373 243.244 373 246.558C373 249.871 370.314 252.558 367 252.558H357.834C355.501 284.671 328.709 310 296 310C262.189 310 234.7 282.936 234.014 249.289C230.711 246.983 225.885 245.558 220.5 245.558C215.114 245.558 210.288 246.983 206.985 249.289C206.299 282.936 178.811 310 145 310C112.291 310 85.4993 284.671 83.166 252.558H74C70.6864 252.558 68.0002 249.871 68 246.558C68 243.244 70.6863 240.558 74 240.558H83.4434C87.12 209.825 113.277 186 145 186C175.248 186 200.437 207.662 205.9 236.318C210.539 234.42 215.652 233.558 220.5 233.558C225.348 233.558 230.461 234.419 235.099 236.317C240.563 207.661 265.752 186 296 186ZM145 198C117.386 198 95 220.386 95 248C95 275.614 117.386 298 145 298C172.614 298 195 275.614 195 248C195 220.386 172.614 198 145 198ZM296 198C268.386 198 246 220.386 246 248C246 275.614 268.386 298 296 298C323.614 298 346 275.614 346 248C346 220.386 323.614 198 296 198Z"/>\n <g id="mouth-default">\n <path id="muzzle-shape-mouth-default" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-mouth-default" fill="var(--mds-emoji-simi-mouth, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-default">\n <path id="node-shape-mouth-default" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-default" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-smile" style="visibility: hidden;">\n <g id="inner-mouth">\n <ellipse id="throat-mouth-smile" fill="var(--mds-emoji-simi-mouth-throat, #C3481B)" cx="220.5" cy="326" rx="32.5" ry="29" />\n <path id="teeth-mouth-smile" fill="var(--mds-emoji-simi-mouth-teeth, #FFFFFF)" d="M220.5 329C235.689 329 248.003 331.686 248.003 335C248.003 338.314 235.689 341 220.5 341C205.311 341 192.997 338.314 192.997 335C192.997 331.686 205.311 329 220.5 329Z"/>\n <path id="lips-mouth-smile" stroke="var(--mds-emoji-simi-nose, #2B1C15)" stroke-width="7" d="M220.5 300.5C236.62 300.5 249.5 313.138 249.5 328.5C249.5 343.862 236.62 356.5 220.5 356.5C204.38 356.5 191.5 343.862 191.5 328.5C191.5 313.138 204.38 300.5 220.5 300.5Z" />\n </g>\n <path id="muzzle-shape-mouth-smile" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-smile">\n <path id="nose-shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-smile" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-serious" style="visibility: hidden;">\n <path id="muzzle-shape-mouth-serious" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298C221.933 298 223.5 299.567 223.5 301.5V326.675C224.663 326.774 225.818 326.903 226.821 327.026C227.869 327.155 228.796 327.283 229.462 327.38C229.795 327.428 230.064 327.469 230.251 327.497C230.344 327.511 230.418 327.522 230.469 327.53C230.494 327.534 230.514 327.538 230.527 327.54C230.534 327.541 230.539 327.541 230.543 327.542C230.545 327.542 230.547 327.543 230.548 327.543H230.55C232.459 327.847 233.76 329.641 233.456 331.55C233.152 333.459 231.359 334.76 229.45 334.456C229.45 334.456 229.448 334.456 229.447 334.456C229.445 334.456 229.441 334.455 229.436 334.454C229.426 334.452 229.41 334.451 229.389 334.447C229.345 334.441 229.28 334.43 229.194 334.417C229.023 334.391 228.772 334.353 228.458 334.308C227.83 334.217 226.954 334.095 225.968 333.974C223.947 333.725 221.629 333.5 220 333.5C218.371 333.5 216.053 333.725 214.032 333.974C213.046 334.095 212.17 334.217 211.542 334.308C211.228 334.353 210.977 334.391 210.806 334.417C210.72 334.43 210.655 334.441 210.611 334.447C210.59 334.451 210.574 334.452 210.563 334.454C210.559 334.455 210.555 334.456 210.553 334.456C210.552 334.456 210.55 334.456 210.55 334.456C208.641 334.76 206.848 333.459 206.544 331.55C206.24 329.641 207.541 327.848 209.45 327.544L209.452 327.543C209.453 327.543 209.455 327.542 209.457 327.542C209.461 327.541 209.466 327.541 209.473 327.54C209.486 327.538 209.506 327.534 209.531 327.53C209.582 327.522 209.656 327.511 209.749 327.497C209.936 327.469 210.205 327.428 210.538 327.38C211.204 327.283 212.131 327.155 213.179 327.026C214.182 326.903 215.337 326.774 216.5 326.675V301.5C216.5 299.567 218.067 298 220 298Z" />\n <g id="nose-mouth-serious">\n <path id="nose-shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-serious" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="hand-think" style="visibility: hidden;">\n <path id="shape-hand-think" fill="var(--mds-emoji-simi-skin, #F36320)" d="M237.5 438C238.5 435 241 428.5 243.5 421.5C257.989 413.451 258.739 397.302 255.5 383.467C278 367.934 263.5 350 255.5 350C251.5 340.4 242.5 339 238.5 339.5C244.5 324 233 323.5 229 323.5C225 323.5 202.5 323 189 351C183.4 374.6 195 400.833 201.5 411C200.667 411.5 199 414.5 195.5 420C211 426.5 204 423.5 237.5 438Z" />\n <path id="palm-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M251 369C267 409.5 249.5 416.5 242 423.5L236.5 437.5"/>\n <path id="finger-3-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 382.5C262.5 379.333 273.7 370.1 266.5 358.5C257.5 344 234 360 230 363"/>\n <path id="finger-2-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 350.5C256 338 236.1 329.9 208.5 357.5"/>\n <path id="finger-1-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M196.5 420.5L201.5 410.5C195.167 400 183.8 373.6 189 352C194.2 330.4 218.833 323.667 230.5 323C235.333 322.5 243.9 325.1 239.5 339.5"/>\n </g>\n</svg>\n';var mdsEmojiCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:var(--duration-200,.2s);--mds-emoji-expression-follow-mouse-head-duration:var(--duration-300,.3s);--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:calc(var(--spacing,.0025rem)*10000);align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,calc(var(--spacing,.0025rem)*10000));perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;transition:transform var(--duration-200,.2s) ease-out;width:100%}:host([name=mia]){--mds-emoji-mia-eyes-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)));--mds-emoji-mia-hands-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-mia-head-color:rgb(var(--magma-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)));--mds-emoji-mia-head-stroke-color:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-emoji-mia-head-stroke-width:0px;--mds-emoji-mia-mouth-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-offset-eyes:1px;--mds-emoji-offset-gadget:1px;--mds-emoji-offset-hands:2px;--mds-emoji-offset-head:0;--mds-emoji-offset-mouth:1px;container-type:size}:host([name=simi]){--mds-emoji-offset-ears:0;--mds-emoji-offset-eyebrows:10px;--mds-emoji-offset-eyes:7px;--mds-emoji-offset-gadget:14px;--mds-emoji-offset-hands:18px;--mds-emoji-offset-head:5px;--mds-emoji-offset-mouth:16px;--mds-emoji-simi-eye-light:#fff;--mds-emoji-simi-eye:#40281b;--mds-emoji-simi-eyebrow:#feefd8;--mds-emoji-simi-gadget:#2b1c15;--mds-emoji-simi-mouth-teeth:#fff;--mds-emoji-simi-mouth-throat:#c3481b;--mds-emoji-simi-mouth:#2b1c15;--mds-emoji-simi-nose-light:#7e695f;--mds-emoji-simi-nose:#2b1c15;--mds-emoji-simi-outline:#2b1c15;--mds-emoji-simi-skin-dark:#c3481b;--mds-emoji-simi-skin-light:#feefd8;--mds-emoji-simi-skin:#f36320}"};
|
|
706
|
+
/**
|
|
707
|
+
* The transform origin of each part of a face, in the box of the part: the head turns from its
|
|
708
|
+
* bottom left corner, the others from their centre. Every state of a part gets it as soon as
|
|
709
|
+
* the face is in the shadow root, and the tweens of moveHead repeat it (#1140): a tween that
|
|
710
|
+
* moves the origin of a part while a blink has it scaled makes GSAP add a translation to keep
|
|
711
|
+
* the part still, and the translation stays once the scale is back to 1.
|
|
712
|
+
*/var PART_ORIGINS={ears:"50% 50%",eyebrows:"50% 50%",eyes:"50% 50%",gadget:"50% 50%",hand:"50% 50%",head:"0% 100%",mouth:"50% 50%"};var MdsEmoji=/** @class */function(){function e(e){var t=this;registerInstance(this,e);
|
|
706
713
|
/**
|
|
707
714
|
* Specifies which emoji to display.
|
|
708
715
|
*/this.name="mia";this.isFollowingMouse=false;this.isBusy=false;this.isSmiling=false;this.isAgreeing=false;this.isThinking=false;this.isBlinking=false;this.isDisagreeing=false;
|
|
@@ -738,7 +745,9 @@ this.blinkTimeline=null;this.blinkDelay=null;this.svgLibrary={mia:miaSvg,simi:si
|
|
|
738
745
|
if(e.display===""){t.cssCustomPropsRead=false;return}t.cssCustomPropsRead=true;t.expressionAngleMax=cssRotationToNumber(e.getPropertyValue("--mds-emoji-expression-max-rotation"),16);t.expressionFollowMouseHeadDuration=cssDurationToSeconds(e.getPropertyValue("--mds-emoji-expression-follow-mouse-head-duration"),.3);t.expressionFollowMouseTraitsDuration=cssDurationToSeconds(e.getPropertyValue("--mds-emoji-expression-follow-mouse-traits-duration"),.2);t.headOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-head"),1);t.eyesOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-eyes"),1);t.mouthOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-mouth"),1);t.handOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-hands"),1);t.gadgetOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-gadget"),1);t.eyebrowsOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-eyebrows"),1);t.earsOffset=cssSizeToNumber(e.getPropertyValue("--mds-emoji-offset-ears"),1)};this.updateSvgDictionary=function(e){if(typeof window==="undefined")return;var i=document.createElement("template");i.innerHTML=t.svgLibrary[e].trim();t.svgRootEl=i.content.firstElementChild;t.updateCSSCustomProps();
|
|
739
746
|
// The shadow DOM is fully replaced, so every cached node/setter/timeline now
|
|
740
747
|
// points at detached elements: drop them so they rebuild against the new SVG.
|
|
741
|
-
t.resetAnimationState();if(t.host.shadowRoot)t.host.shadowRoot.innerHTML=t.svgRootEl.outerHTML;
|
|
748
|
+
t.resetAnimationState();if(t.host.shadowRoot)t.host.shadowRoot.innerHTML=t.svgRootEl.outerHTML;
|
|
749
|
+
// before the blink timeline, whose fromTo scales the eyes at once: see PART_ORIGINS
|
|
750
|
+
if(Build.isBrowser)t.setPartOrigins();if(t.isBlinking){t.blinkTimeline=t.buildBlinkTimeline();t.scheduleBlink()}
|
|
742
751
|
// The face that just arrived must not inherit the pose of the one it replaces.
|
|
743
752
|
// Two distinct leftovers, both visible on the open eyes after a name switch:
|
|
744
753
|
// 1. the trait offsets still held the values computed with the PREVIOUS emoji's
|
|
@@ -759,7 +768,7 @@ if(!Build.isBrowser)return;t.resetEyesToDefault();if(t.isFollowingMouse){t.moveH
|
|
|
759
768
|
// the hand and the focused eyes belong to the state, not to the SVG that is
|
|
760
769
|
// leaving, so they are put back in place at once, without replaying the
|
|
761
770
|
// entrance on a face that is only now appearing.
|
|
762
|
-
if(t.isThinking)t.setStartThinkingAnimation(0)};this.resetAnimationState=function(){var e,i;t.killExpressionAnimations();(e=t.blinkDelay)===null||e===void 0?void 0:e.kill();t.blinkDelay=null;(i=t.blinkTimeline)===null||i===void 0?void 0:i.kill();t.blinkTimeline=null;t.headEl=null;t.eyesEl=null;t.handEl=null;t.mouthEl=null;t.gadgetEl=null;t.eyebrowsEl=null;t.earsEl=null};this.queryPart=function(e){var i,r,n;return(n=(r=(i=t.host.shadowRoot)===null||i===void 0?void 0:i.firstElementChild)===null||r===void 0?void 0:r.querySelector("[id='".concat(e,"']")))!==null&&n!==void 0?n:null};this.resetEyesToDefault=function(){t.svgPartState("eyes","default");var e=t.queryPart("eyes-default");if(e)gsapWithCSS.set(e,{scaleY:1})};this.getEmojiCenter=function(){var e=t.host.getBoundingClientRect();return{centerX:e.left+e.width/2,centerY:e.top+e.height/2}};
|
|
771
|
+
if(t.isThinking)t.setStartThinkingAnimation(0)};this.resetAnimationState=function(){var e,i;t.killExpressionAnimations();(e=t.blinkDelay)===null||e===void 0?void 0:e.kill();t.blinkDelay=null;(i=t.blinkTimeline)===null||i===void 0?void 0:i.kill();t.blinkTimeline=null;t.headEl=null;t.eyesEl=null;t.handEl=null;t.mouthEl=null;t.gadgetEl=null;t.eyebrowsEl=null;t.earsEl=null};this.setPartOrigins=function(){var e;var i=(e=t.host.shadowRoot)===null||e===void 0?void 0:e.firstElementChild;if(!i)return;for(var r=0,n=Object.entries(PART_ORIGINS);r<n.length;r++){var s=n[r],o=s[0],a=s[1];var u=i.querySelectorAll("[id^='".concat(o,"-']"));if(u.length>0)gsapWithCSS.set(u,{transformOrigin:a})}};this.queryPart=function(e){var i,r,n;return(n=(r=(i=t.host.shadowRoot)===null||i===void 0?void 0:i.firstElementChild)===null||r===void 0?void 0:r.querySelector("[id='".concat(e,"']")))!==null&&n!==void 0?n:null};this.resetEyesToDefault=function(){t.svgPartState("eyes","default");var e=t.queryPart("eyes-default");if(e)gsapWithCSS.set(e,{scaleY:1})};this.getEmojiCenter=function(){var e=t.host.getBoundingClientRect();return{centerX:e.left+e.width/2,centerY:e.top+e.height/2}};
|
|
763
772
|
// Takes the face over for a new expression: whatever was playing is stopped, the
|
|
764
773
|
// traits go back to their rest pose and the token that identifies the new owner
|
|
765
774
|
// is returned.
|
|
@@ -892,7 +901,7 @@ overwrite:"auto"};
|
|
|
892
901
|
gsapWithCSS.to(t.host,{rotateX:t.currentRotateX,rotateY:t.currentRotateY,transformOrigin:"50% 50%",duration:t.expressionFollowMouseHeadDuration,ease:n,
|
|
893
902
|
// A newer pose replaces the previous one: without it a slower tween still
|
|
894
903
|
// running kept writing its own angles once the newer one had finished.
|
|
895
|
-
overwrite:"auto"});if(t.eyesEl){gsapWithCSS.to(t.eyesEl,Object.assign({translateX:t.eyesOffsetX,translateY:t.eyesOffsetY,transformOrigin:
|
|
904
|
+
overwrite:"auto"});if(t.eyesEl){gsapWithCSS.to(t.eyesEl,Object.assign({translateX:t.eyesOffsetX,translateY:t.eyesOffsetY,transformOrigin:PART_ORIGINS.eyes},a))}if(t.handEl){gsapWithCSS.to(t.handEl,Object.assign({translateX:t.handOffsetX,translateY:t.handOffsetY,transformOrigin:PART_ORIGINS.hand},a))}if(t.headEl){gsapWithCSS.to(t.headEl,Object.assign({translateX:t.headOffsetX,translateY:t.headOffsetY,transformOrigin:PART_ORIGINS.head},a))}if(t.mouthEl){gsapWithCSS.to(t.mouthEl,Object.assign({translateX:t.mouthOffsetX,translateY:t.mouthOffsetY,transformOrigin:PART_ORIGINS.mouth},a))}if(t.gadgetEl){gsapWithCSS.to(t.gadgetEl,Object.assign({translateX:t.gadgetOffsetX,translateY:t.gadgetOffsetY,transformOrigin:PART_ORIGINS.gadget},a))}if(t.eyebrowsEl){gsapWithCSS.to(t.eyebrowsEl,Object.assign({translateX:t.eyebrowsOffsetX,translateY:t.eyebrowsOffsetY,transformOrigin:PART_ORIGINS.eyebrows},a))}if(t.earsEl){gsapWithCSS.to(t.earsEl,Object.assign({translateX:t.earsOffsetX,translateY:t.earsOffsetY,transformOrigin:PART_ORIGINS.ears},a))}}}
|
|
896
905
|
// A move disconnects the host and connects it again, while componentDidLoad runs
|
|
897
906
|
// once: the pointer listener follows the connection, so a moved emoji still hears it.
|
|
898
907
|
e.prototype.connectedCallback=function(){if(typeof window==="undefined")return;window.addEventListener("mousemove",this.handleFollowMouse)};e.prototype.componentDidLoad=function(){if(typeof window==="undefined")return;this.updateCSSCustomProps();this.checkNameChanged(this.name)};e.prototype.disconnectedCallback=function(){var e,t;if(typeof window==="undefined")return;
|
|
@@ -962,4 +971,4 @@ if(!this.isEmojiName(e)){if(e!=null){console.warn('mds-emoji: ignoring the unkno
|
|
|
962
971
|
// attributeChangedCallback is a no-op because the value did not change.
|
|
963
972
|
if(this.host.getAttribute("name")!==e)this.host.setAttribute("name",e);this.updateSvgDictionary(e)};e.prototype.svgPartState=function(e,t){var i,r,n,s;var o=(r=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.firstElementChild)===null||r===void 0?void 0:r.querySelectorAll("[id^='".concat(e,"-']"));if(!o||o.length===0)return null;if((t===undefined||t==="")&&o){o===null||o===void 0?void 0:o.forEach((function(e){
|
|
964
973
|
// const currentState = el.id.split('-')[1]
|
|
965
|
-
e.style.visibility="hidden";if(e.id.split("-")[1]==="default")e.style.visibility="visible"}));return o}var a=(s=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(e,"-default']"));o===null||o===void 0?void 0:o.forEach((function(e){e.style.visibility="hidden";if(e.id.split("-")[1]===t){a=e}}));if(!a)return null;a.style.visibility="visible";return a};e.prototype.render=function(){return h(Host,{key:"
|
|
974
|
+
e.style.visibility="hidden";if(e.id.split("-")[1]==="default")e.style.visibility="visible"}));return o}var a=(s=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(e,"-default']"));o===null||o===void 0?void 0:o.forEach((function(e){e.style.visibility="hidden";if(e.id.split("-")[1]===t){a=e}}));if(!a)return null;a.style.visibility="visible";return a};e.prototype.render=function(){return h(Host,{key:"550c06664af9d33f4a0217b09c6eeb5194c64ba7"})};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:[{checkNameChanged:0}]}},enumerable:false,configurable:true});return e}();MdsEmoji.style=mdsEmojiCss();export{MdsEmoji as mds_emoji};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement,B as Build}from"./index-CvLLN-QH.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{p as preferenceStore}from"./preference-C5XjgGCb.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";import{L as Locale}from"./locale-B6cOkl4I.js";var clearFilters$3="Εκκαθάριση φίλτρων";var localeEl={clearFilters:clearFilters$3};var clearFilters$2="Clear filters";var localeEn={clearFilters:clearFilters$2};var clearFilters$1="Borrar filtros";var localeEs={clearFilters:clearFilters$1};var clearFilters="Rimuovi i filtri";var localeIt={clearFilters:clearFilters};var mdsFilterCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-filter-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-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-gap:calc(var(--spacing,.0025rem)*200);--mds-filter-items-padding:calc(var(--spacing,.0025rem)*200);--mds-filter-items-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-filter-items-scroll-behavior:smooth;--mds-filter-items-transition-duration:var(--duration-300,.3s);--private-filter-items-transition-duration:var(--mds-filter-items-transition-duration);--mds-filter-label-padding:0 calc(var(--spacing,.0025rem)*600);--mds-filter-wrapper-shadow-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset;--mds-filter-wrapper-shadow-opacity:.1;display:grid;gap:calc(var(--spacing,.0025rem)*
|
|
1
|
+
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement,B as Build}from"./index-CvLLN-QH.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{p as preferenceStore}from"./preference-C5XjgGCb.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";import{L as Locale}from"./locale-B6cOkl4I.js";var clearFilters$3="Εκκαθάριση φίλτρων";var localeEl={clearFilters:clearFilters$3};var clearFilters$2="Clear filters";var localeEn={clearFilters:clearFilters$2};var clearFilters$1="Borrar filtros";var localeEs={clearFilters:clearFilters$1};var clearFilters="Rimuovi i filtri";var localeIt={clearFilters:clearFilters};var mdsFilterCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-filter-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-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-gap:calc(var(--spacing,.0025rem)*200);--mds-filter-items-padding:calc(var(--spacing,.0025rem)*200);--mds-filter-items-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-filter-items-scroll-behavior:smooth;--mds-filter-items-transition-duration:var(--duration-300,.3s);--private-filter-items-transition-duration:var(--mds-filter-items-transition-duration);--mds-filter-label-gap:calc(var(--spacing,.0025rem)*300);--mds-filter-label-padding:0 calc(var(--spacing,.0025rem)*600);--mds-filter-wrapper-shadow-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset;--mds-filter-wrapper-shadow-opacity:.1;display:grid;gap:var(--mds-filter-label-gap,calc(var(--spacing,.0025rem)*300));grid-auto-rows:min-content}.items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;background-color:var(--mds-filter-items-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));display:flex;gap:var(--mds-filter-items-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-filter-items-padding,calc(var(--spacing,.0025rem)*200));position:relative;scroll-behavior:var(--mds-filter-items-scroll-behavior,smooth);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-filter-items-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.items-wrapper{display:grid;overflow:hidden;position:relative}.items-wrapper:after{border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));box-shadow:var(--mds-filter-wrapper-shadow);content:"";inset:0;opacity:var(--mds-filter-wrapper-shadow-opacity,.1);pointer-events:none;position:absolute}.items::-webkit-scrollbar{display:none}.label{padding:var(--mds-filter-label-padding,0 calc(var(--spacing,.0025rem)*600))}.active{background-color:var(--mds-filter-items-background-active,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))))}.reset{display:flex;flex-grow:1;justify-content:flex-end;transform-origin:50%}.reset,.reset-button{transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.reset-button-opened,:host([reset]:not([reset=false])) .reset{transform:scale(1)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-items-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}@media (prefers-reduced-motion:reduce){:host{--mds-filter-items-scroll-behavior:auto}: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-filter-items-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}}'};var MdsFilter=/** @class */function(){function e(e){var r=this;registerInstance(this,e);this.changedEvent=createEvent(this,"mdsFilterChange",7);this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.itemsSelected=0;this.queryItems=function(){return r.element.querySelectorAll("mds-filter-item")};
|
|
2
2
|
/**
|
|
3
3
|
* Centres the selected item in the strip. The measure is taken from the boxes
|
|
4
4
|
* and applied as a delta on the current scroll: `offsetLeft` would mix two
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-CvLLN-QH.js";import{s as setFormValue}from"./form-wI0alRSO.js";import{p as preferenceStore}from"./preference-C5XjgGCb.js";var mdsInputRangeCss=function(){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{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}: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-input-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-
|
|
1
|
+
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-CvLLN-QH.js";import{s as setFormValue}from"./form-wI0alRSO.js";import{p as preferenceStore}from"./preference-C5XjgGCb.js";var mdsInputRangeCss=function(){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{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}: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-input-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host(:disabled:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}@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-input-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}"};var MdsInputRange=/** @class */function(){function a(a){var r=this;registerInstance(this,a);this.changeEvent=createEvent(this,"mdsInputRangeChange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}
|
|
2
2
|
// the disabled state of the host as a form control: its own disabled, or a disabled fieldset
|
|
3
3
|
// around it, which disables the host but not the native control in its shadow root
|
|
4
4
|
this.formDisabled=false;
|
|
@@ -14,19 +14,19 @@ this.formDisabled=false;
|
|
|
14
14
|
*/this.step=1;this.onInput=function(){
|
|
15
15
|
// a range input always holds a number: the browser sanitizes anything else
|
|
16
16
|
// trigger valueChanged that update progress and emit event
|
|
17
|
-
|
|
17
|
+
r.value=Number(r.inputElement.value)};this.isDisabled=function(){return!!r.disabled||r.formDisabled}}
|
|
18
18
|
/** As on a native input, a step that is not a positive number falls back to the default, 1. */a.prototype.allowedStep=function(){var a=Number(this.step);return a>0?a:1};a.prototype.calculateProgress=function(){
|
|
19
19
|
// validate value
|
|
20
|
-
var a=Number(this.inputElement.value);var
|
|
20
|
+
var a=Number(this.inputElement.value);var r=this.allowedStep();
|
|
21
21
|
// multiplier is needed to manage decimal value and step, so we can work with integer value and avoid decimal division
|
|
22
|
-
var
|
|
22
|
+
var t=Math.pow(10,this.countDecimals(r));if(a>this.max)a=this.max;else if(a<this.min)a=this.min;if((a-this.min)*t%(r*t)!==0){a=(Math.round((a*t-this.min*t)/(r*t))*(r*t)+this.min*t)/t}this.value=a;setFormValue(this.internals,this.value.toString());var e=this.max-this.min;var n=this.value-this.min;this.progress=n/e*100};a.prototype.countDecimals=function(a){if(Math.floor(a)===a)return 0;return a.toString().split(".")[1].length||0};a.prototype.disabledChanged=function(a){
|
|
23
23
|
/**
|
|
24
24
|
* This is related to ALL disabled attributes set on Magma input components
|
|
25
25
|
* if solved, please check mds-button, mds-input, mds-input-*
|
|
26
26
|
* https://github.com/ionic-team/stencil/issues/5461
|
|
27
27
|
*/
|
|
28
|
-
if(a){setFormValue(this.internals,null)}};a.prototype.valueChanged=function(a,
|
|
28
|
+
if(a){setFormValue(this.internals,null)}};a.prototype.valueChanged=function(a,r){if(a===r)return;this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};a.prototype.minChanged=function(){this.calculateProgress()};a.prototype.maxChanged=function(){this.calculateProgress()};a.prototype.stepChanged=function(){this.calculateProgress()};a.prototype.formDisabledCallback=function(a){this.formDisabled=a};
|
|
29
29
|
/** Like a native input, a form reset brings back the value of load, thumb included. */a.prototype.formResetCallback=function(){
|
|
30
30
|
// an empty value makes the native input take its default, the middle of the range
|
|
31
|
-
this.inputElement.value=this.loadValue===undefined?"":String(this.loadValue);this.onInput()};a.prototype.componentWillLoad=function(){var a;var
|
|
32
|
-
this.label=(a=this.element.textContent)!==null&&a!==void 0?a:"";this.calculateProgress()};a.prototype.render=function(){var a=this;var
|
|
31
|
+
this.inputElement.value=this.loadValue===undefined?"":String(this.loadValue);this.onInput()};a.prototype.componentWillLoad=function(){var a;var r=Number((a=this.value)!==null&&a!==void 0?a:NaN);this.loadValue=Number.isNaN(r)?undefined:r};a.prototype.componentDidLoad=function(){var a;this.onInput();// define value
|
|
32
|
+
this.label=(a=this.element.textContent)!==null&&a!==void 0?a:"";this.calculateProgress()};a.prototype.render=function(){var a=this;var r;return h(Host,{key:"b1bb72d1ce011daf8b9789552582dc322c669c7b","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("header",{key:"c1d1b18c93995b14620443d6be50a082b8636944",class:"header",part:"header"},h("mds-text",{key:"37fc5d597ed5619d77863a361405d9e9968c8a1a",class:"label",typography:"label"},h("slot",{key:"7252b13a7883cb3b24c2ddcffa69063a851bdb6a"})),h("mds-text",{key:"8114e8abc0fa86ba7b36186c2101da009c3586e6",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),h("div",{key:"8d057e743855fb1f7319f02eb09ba9ade58e8ae0",class:"range"},h("div",{key:"e987fcd7360c4749cf8bc5a69d655f3a50a9ce07",class:"track",part:"track"},h("div",{key:"af736932ab9f24030342dc7356b2425fcc46a20b",class:"contrast-area"}),h("div",{key:"97029a596bde3c6f0d43ec3a641094a75da03f04",class:"track-total"},h("div",{key:"ec03d154670b09bcfac52cdc2f604c131ce15d62",class:"track-progress",style:{"--mds-input-range-progress":"".concat((r=this.progress)!==null&&r!==void 0?r:0)}}))),h("input",{key:"38652b6913977164bc43754353ab02eb3e949e3d",ref:function(r){return a.inputElement=r},class:"field","aria-label":this.label,disabled:this.isDisabled(),max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))};Object.defineProperty(a,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}},enumerable:false,configurable:true});return a}();MdsInputRange.style=mdsInputRangeCss();export{MdsInputRange as mds_input_range};
|