@ganpatiinfo/gids-core-web 14.0.0 → 15.1.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/dist/css/index.css +6063 -4966
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-header-navigation-item.d.ts +11 -0
- package/dist/gids-header-navigation-item.js +1 -0
- package/dist/gids-header-navigation.d.ts +11 -0
- package/dist/gids-header-navigation.js +1 -0
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.d.ts +11 -0
- package/dist/gids-profile-menu-header.js +1 -0
- package/dist/gids-profile-menu.d.ts +11 -0
- package/dist/gids-profile-menu.js +1 -0
- package/dist/gids-profile.d.ts +11 -0
- package/dist/gids-profile.js +1 -0
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-skeleton.d.ts +11 -0
- package/dist/gids-skeleton.js +1 -0
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +11 -0
- package/dist/gids-transfer-list.js +1 -0
- package/dist/p-BrYLEey4.js +1 -0
- package/dist/p-Bs8TP3Rb.js +1 -0
- package/dist/p-Bw2pVReY.js +1 -0
- package/dist/{p-BYt-9DKT.js → p-Bzjuvoza.js} +1 -1
- package/dist/p-C-HyXFGR.js +1 -0
- package/dist/{p-CU5JIcEp.js → p-CCpxJ8wu.js} +1 -1
- package/dist/p-CXFvqDBs.js +1 -0
- package/dist/{p-D5DRatg0.js → p-CZBiavxU.js} +1 -1
- package/dist/p-CcpdJCql.js +1 -0
- package/dist/{p-jzl-rPxB.js → p-Chb2OeFe.js} +1 -1
- package/dist/{p-DslOQITw.js → p-CiWZdp48.js} +1 -1
- package/dist/{p-DMVCMnTe.js → p-Co23kQaH.js} +1 -1
- package/dist/{p-BV0jg2ix.js → p-DAuO4g6g.js} +1 -1
- package/dist/{p-Bab1qxsC.js → p-DELTZ9Fh.js} +1 -1
- package/dist/{p-DAnkY5ik.js → p-DGXqnrKo.js} +1 -1
- package/dist/p-DObJEzlz.js +1 -0
- package/dist/{p-CatvDz2b.js → p-DbaNvRpS.js} +1 -1
- package/dist/{p-DUUxlY-K.js → p-Dd-ec-e0.js} +1 -1
- package/dist/{p-1fMG8D4t.js → p-DiTjFG30.js} +1 -1
- package/dist/{p-BzzDNTlP.js → p-DxX3B1f0.js} +1 -1
- package/dist/{p-Bh8qYmAS.js → p-UDG6tkD1.js} +1 -1
- package/dist/p-bhEHIxPv.js +1 -0
- package/dist/{p-BVA1LAFM.js → p-d-t7__OQ.js} +1 -1
- package/dist/p-oJFgjzK5.js +1 -0
- package/dist/p-pVSQxFDF.js +1 -0
- package/dist/{p-CnVmK0dH.js → p-u06XOrpj.js} +1 -1
- package/dist/types/components/html/GidsCrossTable/GidsCrossTable.d.ts +17 -0
- package/dist/types/components/html/GidsCrossTableBody/GidsCrossTableBody.d.ts +12 -0
- package/dist/types/components/html/GidsCrossTableRow/GidsCrossTableRow.d.ts +12 -0
- package/dist/types/components/html/GidsDialog/GidsDialog.d.ts +12 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +20 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +20 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +3 -3
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +3 -3
- package/dist/types/components/html/GidsTable/GidsTable.d.ts +1 -1
- package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +3 -3
- package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +1 -1
- package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +1 -1
- package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +1 -1
- package/dist/types/components/html/_GidsDialogControl/GidsDialogControl.d.ts +8 -0
- package/dist/types/components/webComponents/GidsHeaderNavigation/GidsHeaderNavigation.d.ts +51 -0
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +42 -0
- package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +64 -0
- package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +29 -0
- package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +30 -0
- package/dist/types/components/webComponents/GidsSkeleton/GidsSkeleton.d.ts +11 -0
- package/dist/types/components/webComponents/GidsTransferList/GidsTransferList.d.ts +49 -0
- package/dist/types/components.d.ts +725 -2
- package/dist-bundled/es/gids-action-bar.js +18 -16
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +2 -2
- package/dist-bundled/es/gids-calendar.js +9 -9
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +11 -11
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +10 -10
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +12 -12
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +2 -2
- package/dist-bundled/es/gids-header-navigation-item.js +6 -0
- package/dist-bundled/es/gids-header-navigation.js +134 -0
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +31 -31
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +20 -20
- package/dist-bundled/es/gids-password-field.js +45 -45
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +6 -0
- package/dist-bundled/es/gids-profile-menu.js +6 -0
- package/dist-bundled/es/gids-profile.js +184 -0
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-skeleton.js +41 -0
- package/dist-bundled/es/gids-tab-item.js +16 -36
- package/dist-bundled/es/gids-tab.js +1 -1
- package/dist-bundled/es/gids-text-field.js +14 -14
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +1 -1
- package/dist-bundled/es/gids-transfer-list.js +196 -0
- package/dist-bundled/es/p-BrYLEey4-DuajY4uD.js +52 -0
- package/dist-bundled/es/p-Bs8TP3Rb-BdcS7d5q.js +20 -0
- package/dist-bundled/es/{p-_HwuS8vK-C0w4T5rV.js → p-Bw2pVReY-K9pdG-hw.js} +2 -2
- package/dist-bundled/es/{p-BYt-9DKT-DByyhIUd.js → p-Bzjuvoza-CzNs69NV.js} +10 -10
- package/dist-bundled/es/{p-Dan1sCNk-mWcyyplK.js → p-C-HyXFGR-UnFcWLOQ.js} +12 -11
- package/dist-bundled/es/{p-CU5JIcEp-CuVpd-eZ.js → p-CCpxJ8wu-CMYQqNoP.js} +10 -10
- package/dist-bundled/es/{p-CHGTBObD-EN4cCwtX.js → p-CHGTBObD-D_K9_Tmh.js} +15 -15
- package/dist-bundled/es/p-CXFvqDBs-offadaUn.js +27 -0
- package/dist-bundled/es/{p-D5DRatg0-DtQL-DQg.js → p-CZBiavxU-CIstIm2b.js} +8 -8
- package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +64 -0
- package/dist-bundled/es/{p-jzl-rPxB-CC735zJp.js → p-Chb2OeFe-DDv_WPhe.js} +7 -7
- package/dist-bundled/es/{p-DslOQITw-BfwtLWqG.js → p-CiWZdp48-1vf7Xh2R.js} +6 -6
- package/dist-bundled/es/{p-DMVCMnTe-D4eJKJsj.js → p-Co23kQaH-QJyKkzgc.js} +4 -4
- package/dist-bundled/es/{p-CoS0NuDU-CqmDcRWj.js → p-CoS0NuDU-ByDvQAzA.js} +1 -1
- package/dist-bundled/es/{p-BV0jg2ix-DI0fZl_6.js → p-DAuO4g6g-C8miaL-N.js} +6 -6
- package/dist-bundled/es/{p-Bab1qxsC-BMbD0lEy.js → p-DELTZ9Fh-Byr0nLtY.js} +3 -3
- package/dist-bundled/es/{p-DAnkY5ik-ChPtRpOX.js → p-DGXqnrKo-C7feKS94.js} +5 -5
- package/dist-bundled/es/{p-DMNS1d8v-CHF62UXm.js → p-DMNS1d8v-BX8e_AsY.js} +14 -14
- package/dist-bundled/es/p-DObJEzlz-tt9h5cuI.js +17 -0
- package/dist-bundled/es/{p-CatvDz2b-C-Hlv2Xb.js → p-DbaNvRpS-r7kCW1TY.js} +1 -1
- package/dist-bundled/es/{p-DUUxlY-K-mypBhVt6.js → p-Dd-ec-e0-BqX_F6y0.js} +5 -5
- package/dist-bundled/es/{p-Degg_WJz-BLua06el.js → p-Degg_WJz-ORZcjc8G.js} +1 -1
- package/dist-bundled/es/{p-Dg2yoUxw-Cca8ROd_.js → p-Dg2yoUxw-DliMstZy.js} +8 -8
- package/dist-bundled/es/{p-1fMG8D4t-CIEDM74u.js → p-DiTjFG30-CQkxfu2K.js} +3 -3
- package/dist-bundled/es/{p-BzzDNTlP-BkSyrafk.js → p-DxX3B1f0-D1URliVh.js} +6 -6
- package/dist-bundled/es/{p-Bh8qYmAS-DhSpwB20.js → p-UDG6tkD1-JTLPxkEn.js} +6 -6
- package/dist-bundled/es/{p-UVmSPzTd-6vjXok6h.js → p-UVmSPzTd-CR1higgJ.js} +1 -1
- package/dist-bundled/es/p-bhEHIxPv-ujyxL30O.js +136 -0
- package/dist-bundled/es/{p-BVA1LAFM-DdsY_n8R.js → p-d-t7__OQ-CKPQZt2t.js} +7 -7
- package/dist-bundled/es/p-oJFgjzK5-CzagP1qD.js +99 -0
- package/dist-bundled/es/{p-C_RW9IFo-DNQqJS8t.js → p-pVSQxFDF-CsWxUaZX.js} +16 -15
- package/dist-bundled/es/{p-CnVmK0dH-CbmnN-RR.js → p-u06XOrpj-C1tNznDd.js} +4 -4
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +5 -0
- package/dist-bundled/umd/gids-header-navigation.umd.js +5 -0
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +5 -0
- package/dist-bundled/umd/gids-profile-menu.umd.js +5 -0
- package/dist-bundled/umd/gids-profile.umd.js +5 -0
- package/dist-bundled/umd/gids-progress-circle.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +5 -0
- package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-transfer-list.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +60 -4
- package/dist/p-C_RW9IFo.js +0 -1
- package/dist/p-D6lxqcxP.js +0 -1
- package/dist/p-Dan1sCNk.js +0 -1
- package/dist/p-_HwuS8vK.js +0 -1
- package/dist-bundled/es/p-D6lxqcxP-C6BOC0kV.js +0 -74
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let m=0;m<b.length;m++){const f=b[m]["s-nr"]||void 0;f&&f.isConnected&&v.push(f)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&p.push(b)})),c?p.filter((b=>b.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===n.O&&e.S&&De(e.S)),r},De=e=>{C.i|=1;const t=e.closest(z.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(E(t,n,i??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===z&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==z&&n["s-ol"]&&(E(F(n).parentNode,n,F(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},ze=(e,t,i,s,n,r)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===z&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);n<=r;++n)s[n]&&(a=Y(null,i,n),a&&(s[n].S=a,E(l,a,F(t))))},Ie=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const r=n.S;Re(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,M=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,a=t.O,l=t.h;let o;l==null?(N=a==="svg"||a!=="foreignObject"&&N,a!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),de(e,t,N),n!==null&&r!==null?((d,h,c,g,p=!1)=>{let u,S,b=0,v=0,m=0,f=0,k=h.length-1,y=h[0],x=h[k],$=g.length-1,O=g[0],j=g[$];const nt=c.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=h[++b];else if(x==null)x=h[--k];else if(O==null)O=g[++v];else if(j==null)j=g[--$];else if(J(y,O,p))M(y,O,p),y=h[++b],O=g[++v];else if(J(x,j,p))M(x,j,p),x=h[--k],j=g[--$];else if(J(y,j,p))y.O!=="slot"&&j.O!=="slot"||Z(y.S.parentNode,!1),M(y,j,p),E(nt,y.S,x.S.nextSibling),y=h[++b],j=g[--$];else if(J(x,O,p))y.O!=="slot"&&j.O!=="slot"||Z(x.S.parentNode,!1),M(x,O,p),E(nt,x.S,y.S),x=h[--k],O=g[++v];else{for(m=-1,f=b;f<=k;++f)if(h[f]&&h[f].$!==null&&h[f].$===O.$){m=f;break}m>=0?(S=h[m],S.O!==O.O?u=Y(h&&h[v],c,m):(M(S,O,p),h[m]=void 0,u=S.S),O=g[++v]):(u=Y(h&&h[v],c,v),O=g[++v]),u&&E(F(y.S).parentNode,u,F(y.S))}b>k?ze(d,g[$+1]==null?null:g[$+1].S,c,g,v,$):v>$&&Ie(h,b,k)})(s,n,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),ze(s,null,t,r,0,r.length-1)):!i&&n!==null&&Ie(n,0,n.length-1),N&&a==="svg"&&(N=!1)):(o=s["s-cr"])?o.parentNode.textContent=l:e.h!==l&&(s.data=l)},A=[],Me=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=r["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,a)){let l=A.find((o=>o.k===t));q=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=r["s-hn"],l.N=r):(t["s-sh"]=r["s-hn"],A.push({N:r,k:t})),t["s-sr"]&&A.map((o=>{Ne(o.k,t["s-sn"])&&(l=A.find((d=>d.k===t)),l&&!o.N&&(o.N=l.N))}))}else A.some((l=>l.k===t))||A.push({k:t})}r.nodeType===1&&Me(r)}},Re=e=>{e.v&&e.v.ref&&he.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},yt=(e,t)=>{ge.push((()=>e(t)))},E=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(r,a){var l;if(!(a=a||((l=r["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const o=r["s-sn"]=V(r)||"";return{slotNode:oe(le(a,"childNodes"),a.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},bt=(e,t,i=!1)=>{var s,n,r,a,l;const o=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const g=(c=t)&&c.O===gt?t:_(null,null,t);if(z=o.tagName,d.C&&(g.v=g.v||{},d.C.forEach((([p,u])=>{g.v[u]=o[p]}))),i&&g.v)for(const p of Object.keys(g.v))o.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(g.v[p]=o[p]);if(g.O=null,g.i|=4,e.M=g,g.S=h.S=o.shadowRoot||o,B=!(!(1&d.i)||128&d.i),ae=o["s-cr"],q=!1,M(h,g,i),C.i|=1,K){Me(g.S);for(const p of A){const u=p.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,E(u.parentNode,u["s-ol"]=S,u,i)}}for(const p of A){const u=p.k,S=p.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let f=(r=m["s-nr"])!=null?r:null;if(f&&f["s-sn"]===u["s-sn"]&&b===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===u||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){v=f;break}}m=m.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(E(b,u,v,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,E(u.parentNode,m,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(a=u["s-ih"])!=null&&a)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(q&&Ce(g.S),C.i&=-2,A.length=0,!B&&!(1&d.i)&&o["s-cr"]){const p=g.S.__childNodes||g.S.childNodes;for(const u of p)if(u["s-hn"]!==z&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],E(u.parentNode,S,u,i),u.parentNode.removeChild(u)}}}ae=void 0,he.forEach((p=>p())),he.length=0,ge.forEach((p=>p())),ge.length=0},Ge=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ge(e,e.R);const i=()=>_t(e,t);if(!t)return ct(i);queueMicrotask((()=>{i()}))},_t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ve(n,(()=>H(s,"componentWillRender",void 0,i))),Ve(n,(()=>wt(e,s,t)))},Ve=(e,t)=>St(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),St=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,i)=>{var s;const n=e.$hostElement$,r=n["s-rc"];i&&(a=>{const l=a.o,o=a.$hostElement$,d=l.i,h=((c,g)=>{var p,u,S;const b=$e(g),v=W.get(b);if(!w.document)return b;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,f=T.get(c=c.head||c);if(f||T.set(c,f=new Set),!f.has(b)){m=w.document.createElement("style"),m.textContent=v;const k=(p=C._)!=null?p:(function(){var y,x,$;return($=(x=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(k!=null&&m.setAttribute("nonce",k),!(1&g.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),x=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,x?.parentNode===c?x:null)}else if("host"in c)if(te){const y=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),se?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(m)}else c.append(m);1&g.i&&c.insertBefore(m,null),4&g.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(b)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(b)){const f=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let k;if(v.constructor===f.CSSStyleSheet)k=v;else{k=new f.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}se?c.adoptedStyleSheets.push(k):c.adoptedStyleSheets=[...c.adoptedStyleSheets,k],m.add(b)}}return b})(o.shadowRoot?o.shadowRoot:o.getRootNode(),l);10&d&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),xt(e,t,n,i),r&&(r.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],l=()=>kt(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},xt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,bt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Nt(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||Ct()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>ue(e,!1))),e.i&=-517},Ct=()=>{re((()=>ft(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){D(n,s)}},Nt=e=>e.classList.add("hydrated"),Be=(e,t,i,s)=>{const n=P(e);if(!n)return;const r=e,a=n.l.get(t),l=n.i,o=r;i=je(i,s.t[t][0],!!(64&s.i));const d=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!d){if(n.l.set(t,i),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[g,p]]=Object.entries(c);(128&l||1&p)&&(o?o[g](i,a,t):n.T.push((()=>{n.D[g](i,a,t)})))}catch(g){D(g,r)}}))}if(2&l){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||ue(n,!1)}}},$t=(e,t,i)=>{var s,n;const r=e.prototype;64&t.i&&1&i&&ot.forEach((a=>{const l=r[a];Object.defineProperty(r,a,{value(...o){var d;const h=P(this),c=this;c?typeof l=="function"&&l.call(c,...o):(d=h?.H)==null||d.then((g=>{const p=g[a];typeof p=="function"&&p.call(g,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ee(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[o]])=>{if(31&o||32&o){const{get:d,set:h}=I(r,l)||{};d&&(t.t[l][0]|=2048),h&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return d?d.apply(this):(c=l,P(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(c){const g=P(this);if(g){if(h)return(32&o?this[l]:g.$hostElement$[l])===void 0&&g.l.get(l)&&(c=g.l.get(l)),h.apply(this,[je(c,o,!!(64&t.i))]),void Be(this,l,c=32&o?this[l]:g.$hostElement$[l],t);Be(this,l,c,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(o,d,h){C.jmp((()=>{var c;const g=l.get(o),p=P(this);if(this.hasOwnProperty(g),r.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==h)return;if(g==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const f=this,k=(c=t.F)==null?void 0:c[o];k?.forEach((y=>{const[[x,$]]=Object.entries(y);f[x]!=null&&(128&m||1&$)&&f[x].call(f,h,d,o)}))}return}const u=a.find((([m])=>m===g)),S=u&&4&u[1][0],b=S&&h===null&&this[g]===void 0;S&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(r,g);b||h==this[g]||v.get&&!v.set||(this[g]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,d])=>31&d[0])).map((([o,d])=>{var h;const c=d[1]||o;return l.set(c,o),512&d[0]&&((h=t.C)==null||h.push([o,c])),c}))]))}}return e},pe=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ee(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,a)=>{const l={i:0,$hostElement$:r,o:a,l:new Map,B:new Map};l.H=new Promise((d=>l.L=d)),r["s-p"]=[],r["s-rc"]=[];const o=l;r.__stencil__getHostRef=()=>o,512&a.i&&rt(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=P(this);if(!r)return;Fe(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&C.i)){const a=P(r);if(!a)return;const l=a.o;if(1&a.i)Fe(r,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(o=>{if(!w.document)return;const d=o["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(o,d,o.firstChild)})(r);{let o=r;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ge(a,a.R=o);break}}l.t&&Object.entries(l.t).map((([o,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,o)){const h=r[o];delete r[o],r[o]=h}})),(async(o,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=o.constructor,customElements.whenDefined(o.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const S=$e(h);W.has(S)||((b,v,m)=>{let f=W.get(b);te&&m?(f=f||new CSSStyleSheet,typeof f=="string"?f=v:f.replaceSync(v)):f=v,W.set(b,f)})(S,u,!!(1&h.i))}const g=d.R,p=()=>ue(d,!0);g&&g["s-rc"]?g["s-rc"].push(p):p()}catch(g){D(g,o),d.A&&(d.A(),d.A=void 0),d.L&&d.L(o)}})(r,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&C.i)){const a=P(r);a?.V&&(a.V.map((l=>l())),a.V=void 0)}T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else dt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),$t(e,i,3)}catch(s){return D(s),e}},Fe=(e,t,i)=>{i&&w.document&&i.map((([s,n,r])=>{const a=Et(w.document,e,s),l=Ot(t,r),o=jt(s);C.ael(a,n,l,o),(t.V=t.V||[]).push((()=>C.rel(a,n,l,o)))}))},Ot=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){D(s,e.$hostElement$)}},Et=(e,t,i)=>8&i?w:t,jt=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function hs(e){return e}function He(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=He(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function R(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=He(e))&&(s&&(s+=" "),s+=t);return s}const Pt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>R("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>R("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>R("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,n=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:n}}},Symbol.toStringTag,{value:"Module"})),Q=64,We=10,Ue=Q/2-We/2,Dt=Q/2,fe=2*Math.PI*Ue,zt=`0 0 ${Q} ${Q}`,It=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,r=(fe*n/100).toFixed(2),a=(fe-parseFloat(r)).toFixed(2);return`${r} ${a}`},centerPosition:Dt,circumference:fe,radius:Ue,thickness:We,viewBox:zt},Symbol.toStringTag,{value:"Module"})),Mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>R("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>R("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>R("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),me=Symbol("defaultPath"),qe=Symbol("pathSet"),ve="gids-asset-paths-set";class Vt extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(me,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(me,i)}this.#e(qe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(me);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),Bt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Ft=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Vt),t[e]};function be(){return Ft("@ganpatiinfo/gids-web-shared")}function Ht(){return be().haveAssetPathsBeenSet()}function Ke(e){return be().getAssetFilePath(e)}function Wt(e){return be().onAssetPathsSet(e)}let Ut=0;const qt=(e,t="gids")=>e||`${t}-${Ut++}`,{getGidsSpinnerControlClassNames:Kt}=Pt,{calculateStrokeDasharray:Yt,thickness:Ye,radius:Ze,centerPosition:X,viewBox:Zt}=It,Jt=({size:e,indeterminate:t,value:i,max:s,...n})=>{let r;return t||(r={strokeDashArray:Yt(i,s||0),strokeDashoffset:"0"}),_("svg",{class:Kt({size:e,indeterminate:t,value:i}),viewBox:Zt,...n},_("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ze,"stroke-width":Ye}),_("circle",{style:r,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ze,"stroke-width":Ye}))},{getGidsSpinnerClassNames:Qt}=At,{getElementVisibility:Xt}=Lt,es=({label:e,supportingText:t,size:i,indeterminate:s,value:n,max:r,class:a,...l})=>{const{hasLabel:o,hasSupportingText:d}=Xt({label:e,supportingText:t});return _("span",{class:Qt({size:i},a),...l},_(Jt,{size:i,indeterminate:s,value:n,max:r}),o&&_("span",{class:"gids-spinner__label"},e),d&&_("span",{class:"gids-spinner__supporting-text"},t))},{getGidsChartLegendClassNames:ts}=Rt,ss=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=ts({orientation:this.orientation});return _("div",{key:"97408478636d27b5898b241ba555cf38e5076a6c",class:e},_("slot",{key:"b895d069db35e4d37a54bd98fc732b40a12ad9f0"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function Je(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,ss))}))}Je();const Qe={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Xe=new Map;for(const e in Qe)for(const t of Qe[e])Xe.set(t,e);function is(e){return Xe.get(e)}function et(e,t="regular",i){const s=is(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ns}=Tt,rs=({name:e,size:t,appearance:i,alt:s,class:n,titleId:r,src:a,...l})=>{const o=qt(r);let d=a;return d===void 0&&Ht()&&(d=et(e,i,Ke)),_("svg",{ref:h=>{d===void 0&&Wt((()=>{(function(c,g,p){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",et(g,p,Ke)),c.appendChild(u)})(h,e,i)}))},width:"16",height:"16",class:ns({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...l},s!==""&&_("title",{id:o},s||e),d!==void 0?_("use",{href:d}):null)},{getGidsChartLegendItemClassNames:os}=Mt,ls=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}handleSeriesColorChange(e){this.seriesColor=e}render(){const e=this.seriesColor,t=e&&e!=="",i=os({seriesType:t?"none":this.seriesType,orientation:this.orientation});return _("div",{key:"fc8dd82b51491a682d1b63d2830971d6f3af262b",class:i},_("div",{key:"31247bb0d3f67953fe13eca31af5f546307c5968",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},_(rs,{key:"daee92872cf487b7430b7cdce5756a1b7b3a9faf",name:"new",alt:"new_icon",appearance:"filled",style:t?{"--gidsIcon-color":e}:{}})),_("span",{key:"a5d6e1d6c6326b70db1b8066267454b6d06d1e80",class:"gids-chart-legend-item__label"},_("slot",{key:"ed798a7c0f897fd2a36342007640110d72a0cd8a"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"],seriesColor:[1,"series-color"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}]);function tt(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,ls))}))}tt();const{getGidsPieChartClassNames:as}=Gt,st=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return _("div",{class:"gids-pie-chart__no-data"},_(es,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((l,o)=>l+(o.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,n=as({breakpoint:this.breakpoint}),r=2*Math.PI*25;let a=0;return _("div",{class:n},_("div",{class:"gids-pie-chart__main-container"},_("div",{class:"gids-pie-chart__chart-stage-container"},_("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},_("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},_("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((l,o)=>{const d=(l.value||0)/s,h=`${d*r} ${r}`,c=-a*r;return a+=d,_("circle",{key:l.label||o,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${o+1}`,"stroke-dasharray":h,"stroke-dashoffset":c,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?_("div",{class:"gids-pie-chart__legend-container"},_("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((l,o)=>_("gids-chart-legend-item",{key:l.label,seriesType:`${o+1}`,orientation:"vertical"},l.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function it(){typeof customElements<"u"&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-pie-chart":customElements.get(e)||customElements.define(e,st);break;case"gids-chart-legend":customElements.get(e)||Je();break;case"gids-chart-legend-item":customElements.get(e)||tt()}}))}it();const cs=st,ds=it;L.GidsPieChart=cs,L.defineCustomElement=ds,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let m=0;m<b.length;m++){const f=b[m]["s-nr"]||void 0;f&&f.isConnected&&v.push(f)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&p.push(b)})),c?p.filter((b=>b.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===n.O&&e.S&&De(e.S)),r},De=e=>{C.i|=1;const t=e.closest(z.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(E(t,n,i??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===z&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==z&&n["s-ol"]&&(E(F(n).parentNode,n,F(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},ze=(e,t,i,s,n,r)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===z&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);n<=r;++n)s[n]&&(a=Y(null,i,n),a&&(s[n].S=a,E(l,a,F(t))))},Ie=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const r=n.S;Re(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,M=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,a=t.O,l=t.h;let o;l==null?(N=a==="svg"||a!=="foreignObject"&&N,a!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),de(e,t,N),n!==null&&r!==null?((d,h,c,g,p=!1)=>{let u,S,b=0,v=0,m=0,f=0,k=h.length-1,y=h[0],x=h[k],$=g.length-1,O=g[0],j=g[$];const nt=c.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=h[++b];else if(x==null)x=h[--k];else if(O==null)O=g[++v];else if(j==null)j=g[--$];else if(J(y,O,p))M(y,O,p),y=h[++b],O=g[++v];else if(J(x,j,p))M(x,j,p),x=h[--k],j=g[--$];else if(J(y,j,p))y.O!=="slot"&&j.O!=="slot"||Z(y.S.parentNode,!1),M(y,j,p),E(nt,y.S,x.S.nextSibling),y=h[++b],j=g[--$];else if(J(x,O,p))y.O!=="slot"&&j.O!=="slot"||Z(x.S.parentNode,!1),M(x,O,p),E(nt,x.S,y.S),x=h[--k],O=g[++v];else{for(m=-1,f=b;f<=k;++f)if(h[f]&&h[f].$!==null&&h[f].$===O.$){m=f;break}m>=0?(S=h[m],S.O!==O.O?u=Y(h&&h[v],c,m):(M(S,O,p),h[m]=void 0,u=S.S),O=g[++v]):(u=Y(h&&h[v],c,v),O=g[++v]),u&&E(F(y.S).parentNode,u,F(y.S))}b>k?ze(d,g[$+1]==null?null:g[$+1].S,c,g,v,$):v>$&&Ie(h,b,k)})(s,n,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),ze(s,null,t,r,0,r.length-1)):!i&&n!==null&&Ie(n,0,n.length-1),N&&a==="svg"&&(N=!1)):(o=s["s-cr"])?o.parentNode.textContent=l:e.h!==l&&(s.data=l)},A=[],Me=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=r["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,a)){let l=A.find((o=>o.k===t));q=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=r["s-hn"],l.N=r):(t["s-sh"]=r["s-hn"],A.push({N:r,k:t})),t["s-sr"]&&A.map((o=>{Ne(o.k,t["s-sn"])&&(l=A.find((d=>d.k===t)),l&&!o.N&&(o.N=l.N))}))}else A.some((l=>l.k===t))||A.push({k:t})}r.nodeType===1&&Me(r)}},Re=e=>{e.v&&e.v.ref&&he.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},yt=(e,t)=>{ge.push((()=>e(t)))},E=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(r,a){var l;if(!(a=a||((l=r["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const o=r["s-sn"]=V(r)||"";return{slotNode:oe(le(a,"childNodes"),a.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},bt=(e,t,i=!1)=>{var s,n,r,a,l;const o=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const g=(c=t)&&c.O===gt?t:_(null,null,t);if(z=o.tagName,d.C&&(g.v=g.v||{},d.C.forEach((([p,u])=>{g.v[u]=o[p]}))),i&&g.v)for(const p of Object.keys(g.v))o.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(g.v[p]=o[p]);if(g.O=null,g.i|=4,e.M=g,g.S=h.S=o.shadowRoot||o,B=!(!(1&d.i)||128&d.i),ae=o["s-cr"],q=!1,M(h,g,i),C.i|=1,K){Me(g.S);for(const p of A){const u=p.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,E(u.parentNode,u["s-ol"]=S,u,i)}}for(const p of A){const u=p.k,S=p.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let f=(r=m["s-nr"])!=null?r:null;if(f&&f["s-sn"]===u["s-sn"]&&b===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===u||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){v=f;break}}m=m.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(E(b,u,v,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,E(u.parentNode,m,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(a=u["s-ih"])!=null&&a)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(q&&Ce(g.S),C.i&=-2,A.length=0,!B&&!(1&d.i)&&o["s-cr"]){const p=g.S.__childNodes||g.S.childNodes;for(const u of p)if(u["s-hn"]!==z&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],E(u.parentNode,S,u,i),u.parentNode.removeChild(u)}}}ae=void 0,he.forEach((p=>p())),he.length=0,ge.forEach((p=>p())),ge.length=0},Ge=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ge(e,e.R);const i=()=>_t(e,t);if(!t)return ct(i);queueMicrotask((()=>{i()}))},_t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ve(n,(()=>H(s,"componentWillRender",void 0,i))),Ve(n,(()=>wt(e,s,t)))},Ve=(e,t)=>St(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),St=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,i)=>{var s;const n=e.$hostElement$,r=n["s-rc"];i&&(a=>{const l=a.o,o=a.$hostElement$,d=l.i,h=((c,g)=>{var p,u,S;const b=$e(g),v=W.get(b);if(!w.document)return b;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,f=T.get(c=c.head||c);if(f||T.set(c,f=new Set),!f.has(b)){m=w.document.createElement("style"),m.textContent=v;const k=(p=C._)!=null?p:(function(){var y,x,$;return($=(x=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(k!=null&&m.setAttribute("nonce",k),!(1&g.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),x=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,x?.parentNode===c?x:null)}else if("host"in c)if(te){const y=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),se?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(m)}else c.append(m);1&g.i&&c.insertBefore(m,null),4&g.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(b)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(b)){const f=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let k;if(v.constructor===f.CSSStyleSheet)k=v;else{k=new f.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}se?c.adoptedStyleSheets.push(k):c.adoptedStyleSheets=[...c.adoptedStyleSheets,k],m.add(b)}}return b})(o.shadowRoot?o.shadowRoot:o.getRootNode(),l);10&d&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),xt(e,t,n,i),r&&(r.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],l=()=>kt(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},xt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,bt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Nt(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||Ct()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>ue(e,!1))),e.i&=-517},Ct=()=>{re((()=>ft(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){D(n,s)}},Nt=e=>e.classList.add("hydrated"),Be=(e,t,i,s)=>{const n=P(e);if(!n)return;const r=e,a=n.l.get(t),l=n.i,o=r;i=je(i,s.t[t][0],!!(64&s.i));const d=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!d){if(n.l.set(t,i),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[g,p]]=Object.entries(c);(128&l||1&p)&&(o?o[g](i,a,t):n.T.push((()=>{n.D[g](i,a,t)})))}catch(g){D(g,r)}}))}if(2&l){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||ue(n,!1)}}},$t=(e,t,i)=>{var s,n;const r=e.prototype;64&t.i&&1&i&&ot.forEach((a=>{const l=r[a];Object.defineProperty(r,a,{value(...o){var d;const h=P(this),c=this;c?typeof l=="function"&&l.call(c,...o):(d=h?.H)==null||d.then((g=>{const p=g[a];typeof p=="function"&&p.call(g,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ee(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[o]])=>{if(31&o||32&o){const{get:d,set:h}=I(r,l)||{};d&&(t.t[l][0]|=2048),h&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return d?d.apply(this):(c=l,P(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(c){const g=P(this);if(g){if(h)return(32&o?this[l]:g.$hostElement$[l])===void 0&&g.l.get(l)&&(c=g.l.get(l)),h.apply(this,[je(c,o,!!(64&t.i))]),void Be(this,l,c=32&o?this[l]:g.$hostElement$[l],t);Be(this,l,c,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(o,d,h){C.jmp((()=>{var c;const g=l.get(o),p=P(this);if(this.hasOwnProperty(g),r.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==h)return;if(g==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const f=this,k=(c=t.F)==null?void 0:c[o];k?.forEach((y=>{const[[x,$]]=Object.entries(y);f[x]!=null&&(128&m||1&$)&&f[x].call(f,h,d,o)}))}return}const u=a.find((([m])=>m===g)),S=u&&4&u[1][0],b=S&&h===null&&this[g]===void 0;S&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(r,g);b||h==this[g]||v.get&&!v.set||(this[g]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,d])=>31&d[0])).map((([o,d])=>{var h;const c=d[1]||o;return l.set(c,o),512&d[0]&&((h=t.C)==null||h.push([o,c])),c}))]))}}return e},pe=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ee(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,a)=>{const l={i:0,$hostElement$:r,o:a,l:new Map,B:new Map};l.H=new Promise((d=>l.L=d)),r["s-p"]=[],r["s-rc"]=[];const o=l;r.__stencil__getHostRef=()=>o,512&a.i&&rt(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=P(this);if(!r)return;Fe(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&C.i)){const a=P(r);if(!a)return;const l=a.o;if(1&a.i)Fe(r,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(o=>{if(!w.document)return;const d=o["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(o,d,o.firstChild)})(r);{let o=r;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ge(a,a.R=o);break}}l.t&&Object.entries(l.t).map((([o,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,o)){const h=r[o];delete r[o],r[o]=h}})),(async(o,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=o.constructor,customElements.whenDefined(o.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const S=$e(h);W.has(S)||((b,v,m)=>{let f=W.get(b);te&&m?(f=f||new CSSStyleSheet,typeof f=="string"?f=v:f.replaceSync(v)):f=v,W.set(b,f)})(S,u,!!(1&h.i))}const g=d.R,p=()=>ue(d,!0);g&&g["s-rc"]?g["s-rc"].push(p):p()}catch(g){D(g,o),d.A&&(d.A(),d.A=void 0),d.L&&d.L(o)}})(r,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&C.i)){const a=P(r);a?.V&&(a.V.map((l=>l())),a.V=void 0)}T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else dt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),$t(e,i,3)}catch(s){return D(s),e}},Fe=(e,t,i)=>{i&&w.document&&i.map((([s,n,r])=>{const a=Et(w.document,e,s),l=Ot(t,r),o=jt(s);C.ael(a,n,l,o),(t.V=t.V||[]).push((()=>C.rel(a,n,l,o)))}))},Ot=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){D(s,e.$hostElement$)}},Et=(e,t,i)=>8&i?w:t,jt=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function hs(e){return e}function He(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=He(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function R(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=He(e))&&(s&&(s+=" "),s+=t);return s}const Pt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,n=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:n}}},Symbol.toStringTag,{value:"Module"})),Q=64,We=10,Ue=Q/2-We/2,At=Q/2,fe=2*Math.PI*Ue,Tt=`0 0 ${Q} ${Q}`,Lt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,r=(fe*n/100).toFixed(2),a=(fe-parseFloat(r)).toFixed(2);return`${r} ${a}`},centerPosition:At,circumference:fe,radius:Ue,thickness:We,viewBox:Tt},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>R("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>R("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>R("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>R("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>R("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>R("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),me=Symbol("defaultPath"),qe=Symbol("pathSet"),ve="gids-asset-paths-set";class Vt extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(me,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(me,i)}this.#e(qe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(me);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),Bt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Ft=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Vt),t[e]};function be(){return Ft("@ganpatiinfo/gids-web-shared")}function Ht(){return be().haveAssetPathsBeenSet()}function Ke(e){return be().getAssetFilePath(e)}function Wt(e){return be().onAssetPathsSet(e)}let Ut=0;const qt=(e,t="gids")=>e||`${t}-${Ut++}`,{getGidsSpinnerControlClassNames:Kt}=Rt,{calculateStrokeDasharray:Yt,thickness:Ye,radius:Ze,centerPosition:X,viewBox:Zt}=Lt,Jt=({size:e,indeterminate:t,value:i,max:s,...n})=>{let r;return t||(r={strokeDashArray:Yt(i,s||0),strokeDashoffset:"0"}),_("svg",{class:Kt({size:e,indeterminate:t,value:i}),viewBox:Zt,...n},_("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ze,"stroke-width":Ye}),_("circle",{style:r,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ze,"stroke-width":Ye}))},{getGidsSpinnerClassNames:Qt}=Gt,{getElementVisibility:Xt}=Pt,es=({label:e,supportingText:t,size:i,indeterminate:s,value:n,max:r,class:a,...l})=>{const{hasLabel:o,hasSupportingText:d}=Xt({label:e,supportingText:t});return _("span",{class:Qt({size:i},a),...l},_(Jt,{size:i,indeterminate:s,value:n,max:r}),o&&_("span",{class:"gids-spinner__label"},e),d&&_("span",{class:"gids-spinner__supporting-text"},t))},{getGidsChartLegendClassNames:ts}=zt,ss=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=ts({orientation:this.orientation});return _("div",{key:"272620a7f72242f5e3559ee178c520f641bdca35",class:e},_("slot",{key:"e67141f00bb68f420b8af53c0f75ea55e1ccbe95"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function Je(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,ss))}))}Je();const Qe={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Xe=new Map;for(const e in Qe)for(const t of Qe[e])Xe.set(t,e);function is(e){return Xe.get(e)}function et(e,t="regular",i){const s=is(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ns}=It,rs=({name:e,size:t,appearance:i,alt:s,class:n,titleId:r,src:a,...l})=>{const o=qt(r);let d=a;return d===void 0&&Ht()&&(d=et(e,i,Ke)),_("svg",{ref:h=>{d===void 0&&Wt((()=>{(function(c,g,p){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",et(g,p,Ke)),c.appendChild(u)})(h,e,i)}))},width:"16",height:"16",class:ns({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...l},s!==""&&_("title",{id:o},s||e),d!==void 0?_("use",{href:d}):null)},{getGidsChartLegendItemClassNames:os}=Dt,ls=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}handleSeriesColorChange(e){this.seriesColor=e}render(){const e=this.seriesColor,t=e&&e!=="",i=os({seriesType:t?"none":this.seriesType,orientation:this.orientation});return _("div",{key:"ca543ca5462e15113d66a6be93e565751433bb96",class:i},_("div",{key:"78951ec28f3ae6753ca538e456f393514229ff4b",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},_(rs,{key:"81aa6b456c2bcad7fcf9fbad82d66906f3cf4959",name:"new",alt:"new_icon",appearance:"filled",style:t?{"--gidsIcon-color":e}:{}})),_("span",{key:"9d23d232d1351d8d535c213118b2f0cc2caed629",class:"gids-chart-legend-item__label"},_("slot",{key:"33e5ef6da9de59e00057baa5e61e5a448999ac8a"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"],seriesColor:[1,"series-color"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}]);function tt(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,ls))}))}tt();const{getGidsPieChartClassNames:as}=Mt,st=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return _("div",{class:"gids-pie-chart__no-data"},_(es,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((l,o)=>l+(o.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,n=as({breakpoint:this.breakpoint}),r=2*Math.PI*25;let a=0;return _("div",{class:n},_("div",{class:"gids-pie-chart__main-container"},_("div",{class:"gids-pie-chart__chart-stage-container"},_("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},_("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},_("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((l,o)=>{const d=(l.value||0)/s,h=`${d*r} ${r}`,c=-a*r;return a+=d,_("circle",{key:l.label||o,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${o+1}`,"stroke-dasharray":h,"stroke-dashoffset":c,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?_("div",{class:"gids-pie-chart__legend-container"},_("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((l,o)=>_("gids-chart-legend-item",{key:l.label,seriesType:`${o+1}`,orientation:"vertical"},l.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function it(){typeof customElements<"u"&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-pie-chart":customElements.get(e)||customElements.define(e,st);break;case"gids-chart-legend":customElements.get(e)||Je();break;case"gids-chart-legend-item":customElements.get(e)||tt()}}))}it();const cs=st,ds=it;L.GidsPieChart=cs,L.defineCustomElement=ds,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===de(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Nt(e.S)),s},Nt=e=>{N.i|=1;const t=e.closest(Z.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Ne=!0)}N.i&=-2},Re=(e,t)=>{N.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Z&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==Z&&i["s-ol"]&&(_(pe(i).parentNode,i,pe(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ne=!0),t&&Re(i,t)}N.i&=-2},At=(e,t,o,n,i,s)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===Z&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(r=Ae(null,o,i),r&&(n[i].S=r,_(c,r,pe(t))))},Rt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;Tt(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),pe=e=>e&&e["s-ol"]||e,re=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,r=t.O,c=t.h;let l;c==null?(P=r==="svg"||r!=="foreignObject"&&P,r!=="slot"||he||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Nt(t.S.parentElement)),Xe(e,t,P),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,E=u.length-1,b=u[0],x=u[E],S=d.length-1,C=d[0],A=d[S];const k=a.O==="template"?f.content:f;for(;w<=E&&g<=S;)if(b==null)b=u[++w];else if(x==null)x=u[--E];else if(C==null)C=d[++g];else if(A==null)A=d[--S];else if(Pe(b,C,p))re(b,C,p),b=u[++w],C=d[++g];else if(Pe(x,A,p))re(x,A,p),x=u[--E],A=d[--S];else if(Pe(b,A,p))b.O!=="slot"&&A.O!=="slot"||Re(b.S.parentNode,!1),re(b,A,p),_(k,b.S,x.S.nextSibling),b=u[++w],A=d[--S];else if(Pe(x,C,p))b.O!=="slot"&&A.O!=="slot"||Re(x.S.parentNode,!1),re(x,C,p),_(k,x.S,b.S),x=u[--E],C=d[++g];else{for(y=-1,m=w;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===C.$){y=m;break}y>=0?(v=u[y],v.O!==C.O?h=Ae(u&&u[g],a,y):(re(v,C,p),u[y]=void 0,h=v.S),C=d[++g]):(h=Ae(u&&u[g],a,g),C=d[++g]),h&&_(pe(b.S).parentNode,h,pe(b.S))}w>E?At(f,d[S+1]==null?null:d[S+1].S,a,d,g,S):g>S&&Rt(u,w,E)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),At(n,null,t,s,0,s.length-1)):!o&&i!==null&&Rt(i,0,i.length-1),P&&r==="svg"&&(P=!1)):(l=n["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],Pt=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(yt(t,r)){let c=V.find((l=>l.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((l=>{yt(l.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!l.N&&(l.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&Pt(s)}},Tt=e=>{e.v&&e.v.ref&&Ye.push((()=>e.v.ref(null))),e.m&&e.m.map(Tt)},yn=(e,t)=>{Ke.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,r){var c;if(!(r=r||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=s["s-sn"]=de(s)||"";return{slotNode:Be(ze(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},vn=(e,t,o=!1)=>{var n,i,s,r,c;const l=e.$hostElement$,f=e.o,u=e.M||Oe(null,null);var a;const d=(a=t)&&a.O===un?t:U(null,null,t);if(Z=l.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=l[p]}))),o&&d.v)for(const p of Object.keys(d.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=l[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=l.shadowRoot||l,he=!(!(1&f.i)||128&f.i),Ue=l["s-cr"],Ce=!1,re(u,d,o),N.i|=1,Ne){Pt(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&>(d.S),N.i&=-2,V.length=0,!he&&!(1&f.i)&&l["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==Z&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}Ue=void 0,Ye.forEach((p=>p())),Ye.length=0,Ke.forEach((p=>p())),Ke.length=0},kt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);kt(e,e.R);const o=()=>wn(e,t);if(!t)return cn(o);queueMicrotask((()=>{o()}))},wn=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=me(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=_t(i,(()=>me(n,"componentWillRender",void 0,o))),_t(i,(()=>En(e,n,t)))},_t=(e,t)=>bn(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",En=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(r=>{const c=r.o,l=r.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=vt(d),g=Se.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=z.get(a=a.head||a);if(m||z.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const E=(p=N._)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&y.setAttribute("nonce",E),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,x?.parentNode===a?x:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),We?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=z.get(a);if(y||z.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let E;if(g.constructor===m.CSSStyleSheet)E=g;else{E=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)E.insertRule(g.cssRules[b].cssText,b)}We?a.adoptedStyleSheets.push(E):a.adoptedStyleSheets=[...a.adoptedStyleSheets,E],y.add(w)}}return w})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&f&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),xn(e,t,i,o),s&&(s.map((r=>r())),i["s-rc"]=void 0);{const r=(n=i["s-p"])!=null?n:[],c=()=>Sn(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},xn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,vn(e,t,n)}catch(i){G(i,e.$hostElement$)}return null},Sn=e=>{const t=e.$hostElement$,o=t,n=e.R;me(o,"componentDidRender",void 0,t),64&e.i?me(o,"componentDidUpdate",void 0,t):(e.i|=64,Cn(t),me(o,"componentDidLoad",void 0,t),e.L(t),n||On()),e.A&&(e.A(),e.A=void 0),512&e.i&&He((()=>Ge(e,!1))),e.i&=-517},On=()=>{He((()=>pn(O,"appload",{detail:{namespace:"gids-core-web"}})))},me=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){G(i,n)}},Cn=e=>e.classList.add("hydrated"),Lt=(e,t,o,n)=>{const i=W(e);if(!i)return;const s=e,r=i.l.get(t),c=i.i,l=s;o=Et(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(l?l[d](o,r,t):i.T.push((()=>{i.D[d](o,r,t)})))}catch(d){G(d,s)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},Nn=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&sn.forEach((r=>{const c=s[r];Object.defineProperty(s,r,{value(...l){var f;const u=W(this),a=this;a?typeof c=="function"&&c.call(a,...l):(f=u?.H)==null||f.then((d=>{const p=d[r];typeof p=="function"&&p.call(d,...l)}))}})}));{e.watchers&&!t.F&&(t.F=bt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([c,[l]])=>{if(31&l||32&l){const{get:f,set:u}=se(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,W(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=W(this);if(d){if(u)return(32&l?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[Et(a,l,!!(64&t.i))]),void Lt(this,c,a=32&l?this[c]:d.$hostElement$[c],t);Lt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(l,f,u){N.jmp((()=>{var a;const d=c.get(l),p=W(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,E=(a=t.F)==null?void 0:a[l];E?.forEach((b=>{const[[x,S]]=Object.entries(b);m[x]!=null&&(128&y||1&S)&&m[x].call(m,u,f,l)}))}return}const h=r.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,f])=>31&f[0])).map((([l,f])=>{var u;const a=f[1]||l;return c.set(a,l),512&f[0]&&((u=t.C)==null||u.push([l,a])),a}))]))}}return e},An=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=bt(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,r)=>{const c={i:0,$hostElement$:s,o:r,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const l=c;s.__stencil__getHostRef=()=>l,512&r.i&&on(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=W(this);if(!s)return;Ft(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&N.i)){const r=W(s);if(!r)return;const c=r.o;if(1&r.i)Ft(s,r,c.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&c.i&&(l=>{if(!O.document)return;const f=l["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(l,f,l.firstChild)})(s);{let l=s;for(;l=l.parentNode||l.host;)if(l["s-p"]){kt(r,r.R=l);break}}c.t&&Object.entries(c.t).map((([l,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,l)){const u=s[l];delete s[l],s[l]=u}})),(async(l,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=l.constructor,customElements.whenDefined(l.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=vt(u);Se.has(v)||((w,g,y)=>{let m=Se.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Se.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ge(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){G(d,l),f.A&&(f.A(),f.A=void 0),f.L&&f.L(l)}})(s,r,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&N.i)){const r=W(s);r?.V&&(r.V.map((c=>c())),r.V=void 0)}z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else an.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Nn(e,o,3)}catch(n){return G(n),e}},Rn=(e,t)=>t,Ft=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const r=Tn(O.document,e,n),c=Pn(t,s),l=kn(n);N.ael(r,i,c,l),(t.V=t.V||[]).push((()=>N.rel(r,i,c,l)))}))},Pn=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){G(n,e.$hostElement$)}},Tn=(e,t,o)=>8&o?O:t,kn=e=>rn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ro(e){return e}const le=Math.min,J=Math.max,Te=Math.round,ke=Math.floor,M=e=>({x:e,y:e}),_n={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,o){return J(e,le(t,o))}function ge(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return $t(q(e))}function Ln(e,t,o){o===void 0&&(o=!1);const n=ye(e),i=Qe(e),s=Je(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=_e(r)),[r,_e(r)]}function Fn(e){const t=_e(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Mt=["right","left"],$n=["top","bottom"],Dn=["bottom","top"];function Mn(e,t,o){switch(e){case"top":case"bottom":return o?t?Mt:Dt:t?Dt:Mt;case"left":case"right":return t?$n:Dn;default:return[]}}function jn(e,t,o,n){const i=ye(e);let s=Mn(Q(e),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),t&&(s=s.concat(s.map(et)))),s}function _e(e){const t=Q(e);return _n[t]+e.slice(t.length)}function Wn(e){return{top:0,right:0,bottom:0,left:0,...e}}function jt(e){return typeof e!="number"?Wn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Wt(e,t,o){let{reference:n,floating:i}=e;const s=q(t),r=Qe(t),c=Je(r),l=Q(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ye(t)){case"start":p[r]-=d*(o&&f?-1:1);break;case"end":p[r]+=d*(o&&f?-1:1);break}return p}async function Vn(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ge(t,e),h=jt(p),w=c[d?a==="floating"?"reference":"floating":a],g=Le(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),y=a==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:l}):y);return{top:(g.top-b.top+h.top)/E.y,bottom:(b.bottom-g.bottom+h.bottom)/E.y,left:(g.left-b.left+h.left)/E.x,right:(b.right-g.right+h.right)/E.x}}const In=50,Hn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:r}=o,c=r.detectOverflow?r:{...r,detectOverflow:Vn},l=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Wt(f,n,l),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:E,data:b,reset:x}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=E??a,h[g]={...h[g],...b},x&&p<In&&(p++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(f=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:a}=Wt(f,d,l)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},Bn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:r,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=ge(e,t)||{};if(f==null)return{};const a=jt(u),d={x:o,y:n},p=Qe(i),h=Je(p),v=await r.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",E=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let S=x?x[m]:0;(!S||!await(r.isElement==null?void 0:r.isElement(x)))&&(S=c.floating[m]||s.floating[h]);const C=E/2-b/2,A=S/2-v[h]/2-1,k=le(a[g],A),Ee=le(a[y],A),oe=k,xe=S-v[h]-Ee,R=S/2-v[h]/2+C,ie=Ze(oe,R,xe),B=!l.arrow&&ye(i)!=null&&R!==ie&&s.reference[h]/2-(R<oe?k:Ee)-v[h]/2<0,$=B?R<oe?R-oe:R-xe:0;return{[p]:d[p]+$,data:{[p]:ie,centerOffset:R-ie-$,...B&&{alignmentOffset:$}},reset:B}}}),zn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ge(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=Q(i),y=q(c),m=Q(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(f.floating)),b=d||(m||!v?[_e(c)]:Fn(c)),x=h!=="none";!d&&x&&b.push(...jn(c,v,h,E));const S=[c,...b],C=await l.detectOverflow(t,w),A=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&A.push(C[g]),a){const R=Ln(i,r,E);A.push(C[R[0]],C[R[1]])}if(k=[...k,{placement:i,overflows:A}],!A.every(R=>R<=0)){var Ee,oe;const R=(((Ee=s.flip)==null?void 0:Ee.index)||0)+1,ie=S[R];if(ie&&(!(a==="alignment"?y!==q(ie):!1)||k.every(D=>q(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:R,overflows:k},reset:{placement:ie}};let B=(oe=k.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:oe.placement;if(!B)switch(p){case"bestFit":{var xe;const $=(xe=k.filter(D=>{if(x){const Y=q(D.placement);return Y===y||Y==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Y=>Y>0).reduce((Y,Ao)=>Y+Ao,0)]).sort((D,Y)=>D[1]-Y[1])[0])==null?void 0:xe[0];$&&(B=$);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Un=new Set(["left","top"]);async function qn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=Q(o),c=ye(o),l=q(o)==="y",f=Un.has(r)?-1:1,u=s&&l?-1:1,a=ge(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),l?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:r,middlewareData:c}=t,l=await qn(t,e);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},Yn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:r=!0,crossAxis:c=!1,limiter:l={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ge(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=q(Q(i)),p=$t(d);let h=u[p],v=u[d];if(r){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],E=h-a[y];h=Ze(m,h,E)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],E=v-a[y];v=Ze(m,v,E)}const w=l.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:r,[d]:c}}}}}};function Fe(){return typeof window<"u"}function ce(e){return Vt(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(Vt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vt(e){return Fe()?e instanceof Node||e instanceof T(e).Node:!1}function L(e){return Fe()?e instanceof Element||e instanceof T(e).Element:!1}function I(e){return Fe()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function It(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Kn(e){return/^(table|td|th)$/.test(ce(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Gn=/transform|translate|scale|rotate|perspective|filter/,Zn=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let tt;function nt(e){const t=L(e)?F(e):e;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||!ot()&&(ee(t.backdropFilter)||ee(t.filter))||Gn.test(t.willChange||"")||Zn.test(t.contain||"")}function Jn(e){let t=X(e);for(;I(t)&&!ae(t);){if(nt(t))return t;if($e(t))return null;t=X(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function ae(e){return/^(html|body|#document)$/.test(ce(e))}function F(e){return T(e).getComputedStyle(e)}function De(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||j(e);return It(t)?t.host:t}function Ht(e){const t=X(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&ve(t)?t:Ht(t)}function we(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ht(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),r=T(i);if(s){const c=it(r);return t.concat(r,r.visualViewport||[],ve(i)?i:[],c&&o?we(c):[])}else return t.concat(i,we(i,[],o))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bt(e){const t=F(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=I(e),s=i?e.offsetWidth:o,r=i?e.offsetHeight:n,c=Te(o)!==s||Te(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function st(e){return L(e)?e:e.contextElement}function fe(e){const t=st(e);if(!I(t))return M(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=Bt(t);let r=(s?Te(o.width):o.width)/n,c=(s?Te(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Qn=M(0);function zt(e){const t=T(e);return!ot()||!t.visualViewport?Qn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eo(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==T(e)?!1:t}function te(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=st(e);let r=M(1);t&&(n?L(n)&&(r=fe(n)):r=fe(e));const c=eo(s,o,n)?zt(s):M(0);let l=(i.left+c.x)/r.x,f=(i.top+c.y)/r.y,u=i.width/r.x,a=i.height/r.y;if(s){const d=T(s),p=n&&L(n)?T(n):n;let h=d,v=it(h);for(;v&&n&&p!==h;){const w=fe(v),g=v.getBoundingClientRect(),y=F(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,E=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,f*=w.y,u*=w.x,a*=w.y,l+=m,f+=E,h=T(v),v=it(h)}}return Le({width:u,height:a,x:l,y:f})}function Me(e,t){const o=De(e).scrollLeft;return t?t.left+o:te(j(e)).left+o}function Ut(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Me(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function to(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",r=j(n),c=t?$e(t.floating):!1;if(n===r||c&&s)return o;let l={scrollLeft:0,scrollTop:0},f=M(1);const u=M(0),a=I(n);if((a||!a&&!s)&&((ce(n)!=="body"||ve(r))&&(l=De(n)),a)){const p=te(n);f=fe(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=r&&!a&&!s?Ut(r,l):M(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-l.scrollTop*f.y+u.y+d.y}}function no(e){return Array.from(e.getClientRects())}function oo(e){const t=j(e),o=De(e),n=e.ownerDocument.body,i=J(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=J(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+Me(e);const c=-o.scrollTop;return F(n).direction==="rtl"&&(r+=J(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const qt=25;function io(e,t){const o=T(e),n=j(e),i=o.visualViewport;let s=n.clientWidth,r=n.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const u=ot();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const f=Me(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=qt&&(s-=h)}else f<=qt&&(s+=f);return{width:s,height:r,x:c,y:l}}function so(e,t){const o=te(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=I(e)?fe(e):M(1),r=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,f=n*s.y;return{width:r,height:c,x:l,y:f}}function Xt(e,t,o){let n;if(t==="viewport")n=io(e,o);else if(t==="document")n=oo(j(e));else if(L(t))n=so(t,o);else{const i=zt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(n)}function Yt(e,t){const o=X(e);return o===t||!L(o)||ae(o)?!1:F(o).position==="fixed"||Yt(o,t)}function ro(e,t){const o=t.get(e);if(o)return o;let n=we(e,[],!1).filter(c=>L(c)&&ce(c)!=="body"),i=null;const s=F(e).position==="fixed";let r=s?X(e):e;for(;L(r)&&!ae(r);){const c=F(r),l=nt(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ve(r)&&!l&&Yt(e,r))?n=n.filter(u=>u!==r):i=c,r=X(r)}return t.set(e,n),n}function lo(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const r=[...o==="clippingAncestors"?$e(t)?[]:ro(t,this._c):[].concat(o),n],c=Xt(t,r[0],i);let l=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<r.length;d++){const p=Xt(t,r[d],i);l=J(p.top,l),f=le(p.right,f),u=le(p.bottom,u),a=J(p.left,a)}return{width:f-a,height:u-l,x:a,y:l}}function co(e){const{width:t,height:o}=Bt(e);return{width:t,height:o}}function ao(e,t,o){const n=I(t),i=j(t),s=o==="fixed",r=te(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=M(0);function f(){l.x=Me(i)}if(n||!n&&!s)if((ce(t)!=="body"||ve(i))&&(c=De(t)),n){const p=te(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Ut(i,c):M(0),a=r.left+c.scrollLeft-l.x-u.x,d=r.top+c.scrollTop-l.y-u.y;return{x:a,y:d,width:r.width,height:r.height}}function rt(e){return F(e).position==="static"}function Kt(e,t){if(!I(e)||F(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return j(e)===o&&(o=o.ownerDocument.body),o}function Gt(e,t){const o=T(e);if($e(e))return o;if(!I(e)){let i=X(e);for(;i&&!ae(i);){if(L(i)&&!rt(i))return i;i=X(i)}return o}let n=Kt(e,t);for(;n&&Kn(n)&&rt(n);)n=Kt(n,t);return n&&ae(n)&&rt(n)&&!nt(n)?o:n||Jn(e)||o}const fo=async function(e){const t=this.getOffsetParent||Gt,o=this.getDimensions,n=await o(e.floating);return{reference:ao(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function uo(e){return F(e).direction==="rtl"}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:j,getClippingRect:lo,getOffsetParent:Gt,getElementRects:fo,getClientRects:no,getDimensions:co,getScale:fe,isElement:L,isRTL:uo};function Zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ho(e,t){let o=null,n;const i=j(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=ke(a),v=ke(i.clientWidth-(u+d)),w=ke(i.clientHeight-(a+p)),g=ke(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:J(0,le(1,l))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!E)return r();S?r(!1,S):n=setTimeout(()=>{r(!1,1e-7)},1e3)}S===1&&!Zt(f,e.getBoundingClientRect())&&r(),E=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return r(!0),s}function po(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=st(e),u=i||s?[...f?we(f):[],...t?we(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?ho(f,o):null;let d=-1,p=null;r&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!l&&p.observe(f),t&&p.observe(t));let h,v=l?te(e):null;l&&w();function w(){const g=te(e);v&&!Zt(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const mo=Xn,go=Yn,yo=zn,vo=Bn,wo=(e,t,o)=>{const n=new Map,i={platform:lt,...o},s={...i.platform,_c:n};return Hn(e,t,{...i,platform:s})};function Jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const bo=/transform|translate|scale|rotate|perspective|filter/,Eo=/paint|layout|strict|content/,ne=e=>!!e&&e!=="none";let ct;function xo(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof Jt(o).Element)?Jt(n=e).getComputedStyle(n):e);var o,n;return ne(t.transform)||ne(t.translate)||ne(t.scale)||ne(t.rotate)||ne(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(ne(t.backdropFilter)||ne(t.filter)))||bo.test(t.willChange||"")||Eo.test(t.contain||"")}function So(e){return(function(t){for(let o=t;o;o=at(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=at(t);o;o=at(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||xo(n)||o.tagName==="BODY"))return o}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var be;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(be||(be={}));let Oo=(H=class{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=po(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[mo(this.offset)],o=yo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===be.POPOVER,i=go({padding:this.offset,mainAxis:this.config.elementType===be.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(vo({element:this.arrowEl,padding:this.offset})),wo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...lt,getOffsetParent:s=>lt.getOffsetParent(s,So)}}).then((({x:s,y:r,middlewareData:c,placement:l})=>{if(n){const d=l.startsWith("left")||l.startsWith("right"),p=l.startsWith("top")||l.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=l,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=l.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const r=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(r,10),l=window.getComputedStyle?.(s).position??"";(r===""||r==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,l!==""&&l!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),H.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=H.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),H.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}},H.currentFloatingElements=new Map,H);const Qt=An(class extends dt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const o=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!o&&this.floatingElementManager.isVisible()?this.onPopoverShow():o&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new Oo(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:be.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],o=tn(e);t.push(...o);const n=this._el.shadowRoot?.querySelector("slot:not([name])");n&&n.assignedElements({flatten:!0}).forEach((i=>{const s=tn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const r=i.compareDocumentPosition(s),c=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let n=document.activeElement;if(n===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(n=s)}const i=this.focusableElements.indexOf(n)!==-1;e.shiftKey?n!==t&&i||(e.preventDefault(),o&&o.focus()):n!==o&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return U(Rn,{key:"7072ac10af27e4e27d9d8fd0a8771403f9314e6e"},U("slot",{key:"917ac8886b35e170cfa3ba32092602ed941d3bfc",name:"anchor"}),U("div",{key:"0285fe8576af9adb85d1380be12dc2bda8fe88db",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},U("span",{key:"8e03c6bdfcf4168768398892301a3185160db725",id:"arrow"}),U("div",{key:"7fe7510c89274cb9aedd44af3f2fa0ddf18acd4a"},U("slot",{key:"facbdafa78fd2076d2cdb90d55714120bd9c33ba"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),en=e=>{if(!(e instanceof dt)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const o=e.tabIndex;e.tabIndex=-1,e.focus();const n=document.activeElement===e;return e.tabIndex=o,n&&e.blur(),n}catch{return!1}},tn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>en(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];en(e)&&o.push(e);let n=t.nextNode();for(;n!==null;)o.push(n),n=t.nextNode();return o};function nn(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,Qt))}))}nn();const Co=Qt,No=nn;K.GidsPopover=Co,K.defineCustomElement=No,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===de(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Nt(e.S)),s},Nt=e=>{N.i|=1;const t=e.closest(Z.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Ne=!0)}N.i&=-2},Re=(e,t)=>{N.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Z&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==Z&&i["s-ol"]&&(_(pe(i).parentNode,i,pe(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ne=!0),t&&Re(i,t)}N.i&=-2},At=(e,t,o,n,i,s)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===Z&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(r=Ae(null,o,i),r&&(n[i].S=r,_(c,r,pe(t))))},Rt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;Tt(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),pe=e=>e&&e["s-ol"]||e,re=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,r=t.O,c=t.h;let l;c==null?(P=r==="svg"||r!=="foreignObject"&&P,r!=="slot"||he||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Nt(t.S.parentElement)),Xe(e,t,P),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,E=u.length-1,b=u[0],x=u[E],S=d.length-1,C=d[0],A=d[S];const k=a.O==="template"?f.content:f;for(;w<=E&&g<=S;)if(b==null)b=u[++w];else if(x==null)x=u[--E];else if(C==null)C=d[++g];else if(A==null)A=d[--S];else if(Pe(b,C,p))re(b,C,p),b=u[++w],C=d[++g];else if(Pe(x,A,p))re(x,A,p),x=u[--E],A=d[--S];else if(Pe(b,A,p))b.O!=="slot"&&A.O!=="slot"||Re(b.S.parentNode,!1),re(b,A,p),_(k,b.S,x.S.nextSibling),b=u[++w],A=d[--S];else if(Pe(x,C,p))b.O!=="slot"&&A.O!=="slot"||Re(x.S.parentNode,!1),re(x,C,p),_(k,x.S,b.S),x=u[--E],C=d[++g];else{for(y=-1,m=w;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===C.$){y=m;break}y>=0?(v=u[y],v.O!==C.O?h=Ae(u&&u[g],a,y):(re(v,C,p),u[y]=void 0,h=v.S),C=d[++g]):(h=Ae(u&&u[g],a,g),C=d[++g]),h&&_(pe(b.S).parentNode,h,pe(b.S))}w>E?At(f,d[S+1]==null?null:d[S+1].S,a,d,g,S):g>S&&Rt(u,w,E)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),At(n,null,t,s,0,s.length-1)):!o&&i!==null&&Rt(i,0,i.length-1),P&&r==="svg"&&(P=!1)):(l=n["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],Pt=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(yt(t,r)){let c=V.find((l=>l.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((l=>{yt(l.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!l.N&&(l.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&Pt(s)}},Tt=e=>{e.v&&e.v.ref&&Ye.push((()=>e.v.ref(null))),e.m&&e.m.map(Tt)},yn=(e,t)=>{Ke.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,r){var c;if(!(r=r||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=s["s-sn"]=de(s)||"";return{slotNode:Be(ze(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},vn=(e,t,o=!1)=>{var n,i,s,r,c;const l=e.$hostElement$,f=e.o,u=e.M||Oe(null,null);var a;const d=(a=t)&&a.O===un?t:U(null,null,t);if(Z=l.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=l[p]}))),o&&d.v)for(const p of Object.keys(d.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=l[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=l.shadowRoot||l,he=!(!(1&f.i)||128&f.i),Ue=l["s-cr"],Ce=!1,re(u,d,o),N.i|=1,Ne){Pt(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&>(d.S),N.i&=-2,V.length=0,!he&&!(1&f.i)&&l["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==Z&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}Ue=void 0,Ye.forEach((p=>p())),Ye.length=0,Ke.forEach((p=>p())),Ke.length=0},kt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);kt(e,e.R);const o=()=>wn(e,t);if(!t)return cn(o);queueMicrotask((()=>{o()}))},wn=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=me(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=_t(i,(()=>me(n,"componentWillRender",void 0,o))),_t(i,(()=>En(e,n,t)))},_t=(e,t)=>bn(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",En=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(r=>{const c=r.o,l=r.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=vt(d),g=Se.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=z.get(a=a.head||a);if(m||z.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const E=(p=N._)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&y.setAttribute("nonce",E),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,x?.parentNode===a?x:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),We?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=z.get(a);if(y||z.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let E;if(g.constructor===m.CSSStyleSheet)E=g;else{E=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)E.insertRule(g.cssRules[b].cssText,b)}We?a.adoptedStyleSheets.push(E):a.adoptedStyleSheets=[...a.adoptedStyleSheets,E],y.add(w)}}return w})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&f&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),xn(e,t,i,o),s&&(s.map((r=>r())),i["s-rc"]=void 0);{const r=(n=i["s-p"])!=null?n:[],c=()=>Sn(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},xn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,vn(e,t,n)}catch(i){G(i,e.$hostElement$)}return null},Sn=e=>{const t=e.$hostElement$,o=t,n=e.R;me(o,"componentDidRender",void 0,t),64&e.i?me(o,"componentDidUpdate",void 0,t):(e.i|=64,Cn(t),me(o,"componentDidLoad",void 0,t),e.L(t),n||On()),e.A&&(e.A(),e.A=void 0),512&e.i&&He((()=>Ge(e,!1))),e.i&=-517},On=()=>{He((()=>pn(O,"appload",{detail:{namespace:"gids-core-web"}})))},me=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){G(i,n)}},Cn=e=>e.classList.add("hydrated"),Lt=(e,t,o,n)=>{const i=W(e);if(!i)return;const s=e,r=i.l.get(t),c=i.i,l=s;o=Et(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(l?l[d](o,r,t):i.T.push((()=>{i.D[d](o,r,t)})))}catch(d){G(d,s)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},Nn=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&sn.forEach((r=>{const c=s[r];Object.defineProperty(s,r,{value(...l){var f;const u=W(this),a=this;a?typeof c=="function"&&c.call(a,...l):(f=u?.H)==null||f.then((d=>{const p=d[r];typeof p=="function"&&p.call(d,...l)}))}})}));{e.watchers&&!t.F&&(t.F=bt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([c,[l]])=>{if(31&l||32&l){const{get:f,set:u}=se(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,W(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=W(this);if(d){if(u)return(32&l?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[Et(a,l,!!(64&t.i))]),void Lt(this,c,a=32&l?this[c]:d.$hostElement$[c],t);Lt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(l,f,u){N.jmp((()=>{var a;const d=c.get(l),p=W(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,E=(a=t.F)==null?void 0:a[l];E?.forEach((b=>{const[[x,S]]=Object.entries(b);m[x]!=null&&(128&y||1&S)&&m[x].call(m,u,f,l)}))}return}const h=r.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,f])=>31&f[0])).map((([l,f])=>{var u;const a=f[1]||l;return c.set(a,l),512&f[0]&&((u=t.C)==null||u.push([l,a])),a}))]))}}return e},An=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=bt(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,r)=>{const c={i:0,$hostElement$:s,o:r,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const l=c;s.__stencil__getHostRef=()=>l,512&r.i&&on(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=W(this);if(!s)return;Ft(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&N.i)){const r=W(s);if(!r)return;const c=r.o;if(1&r.i)Ft(s,r,c.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&c.i&&(l=>{if(!O.document)return;const f=l["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(l,f,l.firstChild)})(s);{let l=s;for(;l=l.parentNode||l.host;)if(l["s-p"]){kt(r,r.R=l);break}}c.t&&Object.entries(c.t).map((([l,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,l)){const u=s[l];delete s[l],s[l]=u}})),(async(l,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=l.constructor,customElements.whenDefined(l.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=vt(u);Se.has(v)||((w,g,y)=>{let m=Se.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Se.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ge(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){G(d,l),f.A&&(f.A(),f.A=void 0),f.L&&f.L(l)}})(s,r,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&N.i)){const r=W(s);r?.V&&(r.V.map((c=>c())),r.V=void 0)}z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else an.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Nn(e,o,3)}catch(n){return G(n),e}},Rn=(e,t)=>t,Ft=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const r=Tn(O.document,e,n),c=Pn(t,s),l=kn(n);N.ael(r,i,c,l),(t.V=t.V||[]).push((()=>N.rel(r,i,c,l)))}))},Pn=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){G(n,e.$hostElement$)}},Tn=(e,t,o)=>8&o?O:t,kn=e=>rn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ro(e){return e}const le=Math.min,J=Math.max,Te=Math.round,ke=Math.floor,M=e=>({x:e,y:e}),_n={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,o){return J(e,le(t,o))}function ge(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return $t(q(e))}function Ln(e,t,o){o===void 0&&(o=!1);const n=ye(e),i=Qe(e),s=Je(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=_e(r)),[r,_e(r)]}function Fn(e){const t=_e(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Mt=["right","left"],$n=["top","bottom"],Dn=["bottom","top"];function Mn(e,t,o){switch(e){case"top":case"bottom":return o?t?Mt:Dt:t?Dt:Mt;case"left":case"right":return t?$n:Dn;default:return[]}}function jn(e,t,o,n){const i=ye(e);let s=Mn(Q(e),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),t&&(s=s.concat(s.map(et)))),s}function _e(e){const t=Q(e);return _n[t]+e.slice(t.length)}function Wn(e){return{top:0,right:0,bottom:0,left:0,...e}}function jt(e){return typeof e!="number"?Wn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Wt(e,t,o){let{reference:n,floating:i}=e;const s=q(t),r=Qe(t),c=Je(r),l=Q(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ye(t)){case"start":p[r]-=d*(o&&f?-1:1);break;case"end":p[r]+=d*(o&&f?-1:1);break}return p}async function Vn(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ge(t,e),h=jt(p),w=c[d?a==="floating"?"reference":"floating":a],g=Le(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),y=a==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:l}):y);return{top:(g.top-b.top+h.top)/E.y,bottom:(b.bottom-g.bottom+h.bottom)/E.y,left:(g.left-b.left+h.left)/E.x,right:(b.right-g.right+h.right)/E.x}}const In=50,Hn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:r}=o,c=r.detectOverflow?r:{...r,detectOverflow:Vn},l=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Wt(f,n,l),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:E,data:b,reset:x}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=E??a,h[g]={...h[g],...b},x&&p<In&&(p++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(f=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:a}=Wt(f,d,l)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},Bn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:r,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=ge(e,t)||{};if(f==null)return{};const a=jt(u),d={x:o,y:n},p=Qe(i),h=Je(p),v=await r.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",E=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let S=x?x[m]:0;(!S||!await(r.isElement==null?void 0:r.isElement(x)))&&(S=c.floating[m]||s.floating[h]);const C=E/2-b/2,A=S/2-v[h]/2-1,k=le(a[g],A),Ee=le(a[y],A),oe=k,xe=S-v[h]-Ee,R=S/2-v[h]/2+C,ie=Ze(oe,R,xe),B=!l.arrow&&ye(i)!=null&&R!==ie&&s.reference[h]/2-(R<oe?k:Ee)-v[h]/2<0,$=B?R<oe?R-oe:R-xe:0;return{[p]:d[p]+$,data:{[p]:ie,centerOffset:R-ie-$,...B&&{alignmentOffset:$}},reset:B}}}),zn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ge(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=Q(i),y=q(c),m=Q(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(f.floating)),b=d||(m||!v?[_e(c)]:Fn(c)),x=h!=="none";!d&&x&&b.push(...jn(c,v,h,E));const S=[c,...b],C=await l.detectOverflow(t,w),A=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&A.push(C[g]),a){const R=Ln(i,r,E);A.push(C[R[0]],C[R[1]])}if(k=[...k,{placement:i,overflows:A}],!A.every(R=>R<=0)){var Ee,oe;const R=(((Ee=s.flip)==null?void 0:Ee.index)||0)+1,ie=S[R];if(ie&&(!(a==="alignment"?y!==q(ie):!1)||k.every(D=>q(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:R,overflows:k},reset:{placement:ie}};let B=(oe=k.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:oe.placement;if(!B)switch(p){case"bestFit":{var xe;const $=(xe=k.filter(D=>{if(x){const Y=q(D.placement);return Y===y||Y==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Y=>Y>0).reduce((Y,Ao)=>Y+Ao,0)]).sort((D,Y)=>D[1]-Y[1])[0])==null?void 0:xe[0];$&&(B=$);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Un=new Set(["left","top"]);async function qn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=Q(o),c=ye(o),l=q(o)==="y",f=Un.has(r)?-1:1,u=s&&l?-1:1,a=ge(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),l?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:r,middlewareData:c}=t,l=await qn(t,e);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},Yn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:r=!0,crossAxis:c=!1,limiter:l={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ge(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=q(Q(i)),p=$t(d);let h=u[p],v=u[d];if(r){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],E=h-a[y];h=Ze(m,h,E)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],E=v-a[y];v=Ze(m,v,E)}const w=l.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:r,[d]:c}}}}}};function Fe(){return typeof window<"u"}function ce(e){return Vt(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(Vt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vt(e){return Fe()?e instanceof Node||e instanceof T(e).Node:!1}function L(e){return Fe()?e instanceof Element||e instanceof T(e).Element:!1}function I(e){return Fe()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function It(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Kn(e){return/^(table|td|th)$/.test(ce(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Gn=/transform|translate|scale|rotate|perspective|filter/,Zn=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let tt;function nt(e){const t=L(e)?F(e):e;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||!ot()&&(ee(t.backdropFilter)||ee(t.filter))||Gn.test(t.willChange||"")||Zn.test(t.contain||"")}function Jn(e){let t=X(e);for(;I(t)&&!ae(t);){if(nt(t))return t;if($e(t))return null;t=X(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function ae(e){return/^(html|body|#document)$/.test(ce(e))}function F(e){return T(e).getComputedStyle(e)}function De(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||j(e);return It(t)?t.host:t}function Ht(e){const t=X(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&ve(t)?t:Ht(t)}function we(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ht(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),r=T(i);if(s){const c=it(r);return t.concat(r,r.visualViewport||[],ve(i)?i:[],c&&o?we(c):[])}else return t.concat(i,we(i,[],o))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bt(e){const t=F(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=I(e),s=i?e.offsetWidth:o,r=i?e.offsetHeight:n,c=Te(o)!==s||Te(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function st(e){return L(e)?e:e.contextElement}function fe(e){const t=st(e);if(!I(t))return M(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=Bt(t);let r=(s?Te(o.width):o.width)/n,c=(s?Te(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Qn=M(0);function zt(e){const t=T(e);return!ot()||!t.visualViewport?Qn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eo(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==T(e)?!1:t}function te(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=st(e);let r=M(1);t&&(n?L(n)&&(r=fe(n)):r=fe(e));const c=eo(s,o,n)?zt(s):M(0);let l=(i.left+c.x)/r.x,f=(i.top+c.y)/r.y,u=i.width/r.x,a=i.height/r.y;if(s){const d=T(s),p=n&&L(n)?T(n):n;let h=d,v=it(h);for(;v&&n&&p!==h;){const w=fe(v),g=v.getBoundingClientRect(),y=F(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,E=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,f*=w.y,u*=w.x,a*=w.y,l+=m,f+=E,h=T(v),v=it(h)}}return Le({width:u,height:a,x:l,y:f})}function Me(e,t){const o=De(e).scrollLeft;return t?t.left+o:te(j(e)).left+o}function Ut(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Me(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function to(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",r=j(n),c=t?$e(t.floating):!1;if(n===r||c&&s)return o;let l={scrollLeft:0,scrollTop:0},f=M(1);const u=M(0),a=I(n);if((a||!a&&!s)&&((ce(n)!=="body"||ve(r))&&(l=De(n)),a)){const p=te(n);f=fe(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=r&&!a&&!s?Ut(r,l):M(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-l.scrollTop*f.y+u.y+d.y}}function no(e){return Array.from(e.getClientRects())}function oo(e){const t=j(e),o=De(e),n=e.ownerDocument.body,i=J(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=J(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+Me(e);const c=-o.scrollTop;return F(n).direction==="rtl"&&(r+=J(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const qt=25;function io(e,t){const o=T(e),n=j(e),i=o.visualViewport;let s=n.clientWidth,r=n.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const u=ot();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const f=Me(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=qt&&(s-=h)}else f<=qt&&(s+=f);return{width:s,height:r,x:c,y:l}}function so(e,t){const o=te(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=I(e)?fe(e):M(1),r=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,f=n*s.y;return{width:r,height:c,x:l,y:f}}function Xt(e,t,o){let n;if(t==="viewport")n=io(e,o);else if(t==="document")n=oo(j(e));else if(L(t))n=so(t,o);else{const i=zt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(n)}function Yt(e,t){const o=X(e);return o===t||!L(o)||ae(o)?!1:F(o).position==="fixed"||Yt(o,t)}function ro(e,t){const o=t.get(e);if(o)return o;let n=we(e,[],!1).filter(c=>L(c)&&ce(c)!=="body"),i=null;const s=F(e).position==="fixed";let r=s?X(e):e;for(;L(r)&&!ae(r);){const c=F(r),l=nt(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ve(r)&&!l&&Yt(e,r))?n=n.filter(u=>u!==r):i=c,r=X(r)}return t.set(e,n),n}function lo(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const r=[...o==="clippingAncestors"?$e(t)?[]:ro(t,this._c):[].concat(o),n],c=Xt(t,r[0],i);let l=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<r.length;d++){const p=Xt(t,r[d],i);l=J(p.top,l),f=le(p.right,f),u=le(p.bottom,u),a=J(p.left,a)}return{width:f-a,height:u-l,x:a,y:l}}function co(e){const{width:t,height:o}=Bt(e);return{width:t,height:o}}function ao(e,t,o){const n=I(t),i=j(t),s=o==="fixed",r=te(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=M(0);function f(){l.x=Me(i)}if(n||!n&&!s)if((ce(t)!=="body"||ve(i))&&(c=De(t)),n){const p=te(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Ut(i,c):M(0),a=r.left+c.scrollLeft-l.x-u.x,d=r.top+c.scrollTop-l.y-u.y;return{x:a,y:d,width:r.width,height:r.height}}function rt(e){return F(e).position==="static"}function Kt(e,t){if(!I(e)||F(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return j(e)===o&&(o=o.ownerDocument.body),o}function Gt(e,t){const o=T(e);if($e(e))return o;if(!I(e)){let i=X(e);for(;i&&!ae(i);){if(L(i)&&!rt(i))return i;i=X(i)}return o}let n=Kt(e,t);for(;n&&Kn(n)&&rt(n);)n=Kt(n,t);return n&&ae(n)&&rt(n)&&!nt(n)?o:n||Jn(e)||o}const fo=async function(e){const t=this.getOffsetParent||Gt,o=this.getDimensions,n=await o(e.floating);return{reference:ao(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function uo(e){return F(e).direction==="rtl"}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:j,getClippingRect:lo,getOffsetParent:Gt,getElementRects:fo,getClientRects:no,getDimensions:co,getScale:fe,isElement:L,isRTL:uo};function Zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ho(e,t){let o=null,n;const i=j(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=ke(a),v=ke(i.clientWidth-(u+d)),w=ke(i.clientHeight-(a+p)),g=ke(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:J(0,le(1,l))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!E)return r();S?r(!1,S):n=setTimeout(()=>{r(!1,1e-7)},1e3)}S===1&&!Zt(f,e.getBoundingClientRect())&&r(),E=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return r(!0),s}function po(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=st(e),u=i||s?[...f?we(f):[],...t?we(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?ho(f,o):null;let d=-1,p=null;r&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!l&&p.observe(f),t&&p.observe(t));let h,v=l?te(e):null;l&&w();function w(){const g=te(e);v&&!Zt(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const mo=Xn,go=Yn,yo=zn,vo=Bn,wo=(e,t,o)=>{const n=new Map,i={platform:lt,...o},s={...i.platform,_c:n};return Hn(e,t,{...i,platform:s})};function Jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const bo=/transform|translate|scale|rotate|perspective|filter/,Eo=/paint|layout|strict|content/,ne=e=>!!e&&e!=="none";let ct;function xo(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof Jt(o).Element)?Jt(n=e).getComputedStyle(n):e);var o,n;return ne(t.transform)||ne(t.translate)||ne(t.scale)||ne(t.rotate)||ne(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(ne(t.backdropFilter)||ne(t.filter)))||bo.test(t.willChange||"")||Eo.test(t.contain||"")}function So(e){return(function(t){for(let o=t;o;o=at(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=at(t);o;o=at(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||xo(n)||o.tagName==="BODY"))return o}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var be;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(be||(be={}));let Oo=(H=class{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=po(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[mo(this.offset)],o=yo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===be.POPOVER,i=go({padding:this.offset,mainAxis:this.config.elementType===be.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(vo({element:this.arrowEl,padding:this.offset})),wo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...lt,getOffsetParent:s=>lt.getOffsetParent(s,So)}}).then((({x:s,y:r,middlewareData:c,placement:l})=>{if(n){const d=l.startsWith("left")||l.startsWith("right"),p=l.startsWith("top")||l.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=l,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=l.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const r=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(r,10),l=window.getComputedStyle?.(s).position??"";(r===""||r==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,l!==""&&l!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),H.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=H.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),H.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}},H.currentFloatingElements=new Map,H);const Qt=An(class extends dt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const o=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!o&&this.floatingElementManager.isVisible()?this.onPopoverShow():o&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new Oo(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:be.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],o=tn(e);t.push(...o);const n=this._el.shadowRoot?.querySelector("slot:not([name])");n&&n.assignedElements({flatten:!0}).forEach((i=>{const s=tn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const r=i.compareDocumentPosition(s),c=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let n=document.activeElement;if(n===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(n=s)}const i=this.focusableElements.indexOf(n)!==-1;e.shiftKey?n!==t&&i||(e.preventDefault(),o&&o.focus()):n!==o&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return U(Rn,{key:"069d0a9b27894896c2404c8f944745706522717a"},U("slot",{key:"181cbaf400aaa8601fa5d5e0c33c526e6f0978d8",name:"anchor"}),U("div",{key:"b45cde4ef3461c11ec9d79401b7cb2574f9019b7",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},U("span",{key:"2552aaa4f343229e4bf302677e7680f2f180b6f4",id:"arrow"}),U("div",{key:"824fc2495120d154e9b190cd11f3cac48cee3890"},U("slot",{key:"60e1718fb6b9e02f5aa84a2b93d40d58d1fcceca"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),en=e=>{if(!(e instanceof dt)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const o=e.tabIndex;e.tabIndex=-1,e.focus();const n=document.activeElement===e;return e.tabIndex=o,n&&e.blur(),n}catch{return!1}},tn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>en(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];en(e)&&o.push(e);let n=t.nextNode();for(;n!==null;)o.push(n),n=t.nextNode();return o};function nn(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,Qt))}))}nn();const Co=Qt,No=nn;K.GidsPopover=Co,K.defineCustomElement=No,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(H,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(H=typeof globalThis<"u"?globalThis:H||self,M(H.gidsCoreWebGidsProfileMenuHeader={}))})(this,(function(H){"use strict";function M(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}}var R,et=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[r]])=>{if(31&r||32&r){const o=e[s],i=M(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(l){i.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},k=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},me=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),F=new Map,ve="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],_=typeof window<"u"?window:{},st=_.HTMLElement||class{},P={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},nt=(()=>{var e;let t=!1;try{(e=_.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),X=(()=>{try{return!!_.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ee=!!X&&!!_.document&&Object.getOwnPropertyDescriptor(_.document.adoptedStyleSheets,"length").writable,te=!1,ye=[],be=[],rt=(e,t)=>n=>{e.push(n),te||(te=!0,4&P.i?ne(se):P.raf(se))},Se=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){I(n)}e.length=0},se=()=>{Se(ye),Se(be),(te=ye.length>0)&&P.raf(se)},ne=e=>Promise.resolve(void 0).then(e),ot=rt(be);function at(){const e=this.attachShadow({mode:"open"});R===void 0&&(R=null),R&&(ee?e.adoptedStyleSheets.push(R):e.adoptedStyleSheets=[...e.adoptedStyleSheets,R])}var _e=e=>{const t=oe(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&re(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!it(s,B(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&oe(s,"childNodes").length&&_e(s)}};function re(e,t,n){let s,r=0,o=[];for(;r<e.length;r++){if(s=e[r],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||B(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...re(s.childNodes,t,n)]}return o}var it=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let r=e;for(;r=r.nextSibling;)B(r)!==t||!n&&r["s-sr"]||s.push(r);return s},we=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function oe(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ae,z,E=new WeakMap,xe=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",N=(e,t,...n)=>{let s=null,r=null,o=null,i=!1,l=!1;const a=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!ie(s))&&(s=String(s)),i&&l?a[a.length-1].h+=s:a.push(i?W(null,s):s),l=i)};if(c(n),t){t.key&&(r=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,lt);const h=W(e,null);return h.v=t,a.length>0&&(h.m=a),h.$=r,h.j=o,h},W=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Pe={},lt={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(dt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),dt=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),N(e.vtag,n,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ce=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const r of t){if(n)break;for(const o of e[r])if(typeof o=="string"){n=!0;break}}if(!n)return e;const s={};for(const r of t)s[r]=e[r].map((o=>typeof o=="string"?{[o]:0}:o));return s},Te=(e,t,n)=>e==null||ie(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ct=(e,t,n)=>{const s=P.ce(t,n);return e.dispatchEvent(s),s},Ae=(e,t,n,s,r,o)=>{if(n===s)return;let i=me(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=$e(n);let h=$e(s);a.remove(...c.filter((d=>d&&!h.includes(d)))),a.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in n)s&&s[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)n&&s[a]===n[a]||(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key"){if(t==="ref")s&&pt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const h=k(e);if(h&&h.o&&h.o.t){const d=h.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const a=t.slice(5);try{e[a]=s}catch{}return}{const a=ie(s);if((i||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?i=!1:n!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!i||4&o||r)&&!a&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):me(_,l)?l.slice(2):l[2]+t.slice(3),n||s){const a=t.endsWith(Oe);t=t.replace(ut,""),n&&P.rel(e,t,n,a),s&&P.ael(e,t,s,a)}}},ht=/\s/,$e=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ht):[]),Oe="Capture",ut=new RegExp(Oe+"$"),le=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,r=e&&e.v||{},o=t.v||{};for(const i of ke(Object.keys(r)))i in o||Ae(s,i,r[i],void 0,n,t.i);for(const i of ke(Object.keys(o)))Ae(s,i,r[i],o[i],n,t.i)};function ke(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var L=!1,U=!1,q=!1,C=!1,de=[],ce=[],K=(e,t,n)=>{var s;const r=t.m[n];let o,i,l,a=0;if(L||(q=!0,r.O==="slot"&&(r.i|=r.m?2:1)),r.h!=null)o=r.S=_.document.createTextNode(r.h);else if(1&r.i)o=r.S=_.document.createTextNode(""),le(null,r,C);else{if(C||(C=r.O==="svg"),!_.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=r.S=_.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!L&&2&r.i?"slot-fb":r.O),C&&r.O==="foreignObject"&&(C=!1),le(null,r,C),r.m){const c=r.O==="template"?o.content:o;for(a=0;a<r.m.length;++a)i=K(e,r,a),i&&c.appendChild(i)}r.O==="svg"?C=!1:o.tagName==="foreignObject"&&(C=!0)}return o["s-hn"]=z,3&r.i&&(o["s-sr"]=!0,o["s-cr"]=ae,o["s-sn"]=r.j||"",o["s-rf"]=(s=r.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const f=[],p=this["s-sn"];u?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let m=0;m<b.length;m++){const g=b[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(S.childNodes)).forEach((b=>{p===B(b)&&f.push(b)})),d?f.filter((b=>b.nodeType===1)):f}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===r.O&&e.S&&je(e.S)),o},je=e=>{P.i|=1;const t=e.closest(z.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const r of n?s.reverse():s)r["s-sh"]!=null&&($(t,r,n??null),r["s-sh"]=void 0,q=!0)}P.i&=-2},Y=(e,t)=>{P.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===z&&n.push(s)}for(let s=n.length-1;s>=0;s--){const r=n[s];r["s-hn"]!==z&&r["s-ol"]&&($(G(r).parentNode,r,G(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Y(r,t)}P.i&=-2},Ee=(e,t,n,s,r,o)=>{let i,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===z&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);r<=o;++r)s[r]&&(i=K(null,n,r),i&&(s[r].S=i,$(l,i,G(t))))},He=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const o=r.S;ze(r),o&&(U=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,V=(e,t,n=!1)=>{const s=t.S=e.S,r=e.m,o=t.m,i=t.O,l=t.h;let a;l==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||L||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,C),r!==null&&o!==null?((c,h,d,u,f=!1)=>{let p,S,b=0,v=0,m=0,g=0,x=h.length-1,y=h[0],w=h[x],T=u.length-1,A=u[0],O=u[T];const Xe=d.O==="template"?c.content:c;for(;b<=x&&v<=T;)if(y==null)y=h[++b];else if(w==null)w=h[--x];else if(A==null)A=u[++v];else if(O==null)O=u[--T];else if(Z(y,A,f))V(y,A,f),y=h[++b],A=u[++v];else if(Z(w,O,f))V(w,O,f),w=h[--x],O=u[--T];else if(Z(y,O,f))y.O!=="slot"&&O.O!=="slot"||Y(y.S.parentNode,!1),V(y,O,f),$(Xe,y.S,w.S.nextSibling),y=h[++b],O=u[--T];else if(Z(w,A,f))y.O!=="slot"&&O.O!=="slot"||Y(w.S.parentNode,!1),V(w,A,f),$(Xe,w.S,y.S),w=h[--x],A=u[++v];else{for(m=-1,g=b;g<=x;++g)if(h[g]&&h[g].$!==null&&h[g].$===A.$){m=g;break}m>=0?(S=h[m],S.O!==A.O?p=K(h&&h[v],d,m):(V(S,A,f),h[m]=void 0,p=S.S),A=u[++v]):(p=K(h&&h[v],d,v),A=u[++v]),p&&$(G(y.S).parentNode,p,G(y.S))}b>x?Ee(c,u[T+1]==null?null:u[T+1].S,d,u,v,T):v>T&&He(h,b,x)})(s,r,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,o,0,o.length-1)):!n&&r!==null&&He(r,0,r.length-1),C&&i==="svg"&&(C=!1)):(a=s["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(s.data=l)},j=[],Ie=e=>{let t,n,s;const r=e.__childNodes||e.childNodes;for(const o of r){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const i=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(we(t,i)){let l=j.find((a=>a.k===t));U=!0,t["s-sn"]=t["s-sn"]||i,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],j.push({N:o,k:t})),t["s-sr"]&&j.map((a=>{we(a.k,t["s-sn"])&&(l=j.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else j.some((l=>l.k===t))||j.push({k:t})}o.nodeType===1&&Ie(o)}},ze=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},pt=(e,t)=>{ce.push((()=>e(t)))},$=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:r}=(function(o,i){var l;if(!(i=i||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=o["s-sn"]=B(o)||"";return{slotNode:re(oe(i,"childNodes"),i.tagName,a)[0],slotName:a}})(t);return r&&!s&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},ft=(e,t,n=!1)=>{var s,r,o,i,l;const a=e.$hostElement$,c=e.o,h=e.M||W(null,null);var d;const u=(d=t)&&d.O===Pe?t:N(null,null,t);if(z=a.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,p])=>{u.v[p]=a[f]}))),n&&u.v)for(const f of Object.keys(u.v))a.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=a[f]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=a.shadowRoot||a,L=!(!(1&c.i)||128&c.i),ae=a["s-cr"],U=!1,V(h,u,n),P.i|=1,q){Ie(u.S);for(const f of j){const p=f.k;if(!p["s-ol"]&&_.document){const S=_.document.createTextNode("");S["s-nr"]=p,$(p.parentNode,p["s-ol"]=S,p,n)}}for(const f of j){const p=f.k,S=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(r=p["s-ol"])==null?void 0:r.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o:null;if(g&&g["s-sn"]===p["s-sn"]&&b===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===p||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&b!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if($(b,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const m=_.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=p["s-hn"],m["s-sn"]=p["s-sn"],m["s-sh"]=p["s-sh"],m["s-sr"]=p["s-sr"],m["s-ol"]=p["s-ol"],m["s-ol"]["s-nr"]=m,$(p.parentNode,m,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(i=p["s-ih"])!=null&&i)}p&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else p.nodeType===1&&(p.hidden=!0)}}if(U&&_e(u.S),P.i&=-2,j.length=0,!L&&!(1&c.i)&&a["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const p of f)if(p["s-hn"]!==z&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(l=p.hidden)!=null&&l),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const S=_.document.createComment("s-nt-"+p.nodeValue);S["s-sn"]=p["s-sn"],$(p.parentNode,S,p,n),p.parentNode.removeChild(p)}}}ae=void 0,de.forEach((f=>f())),de.length=0,ce.forEach((f=>f())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},he=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const n=()=>gt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},gt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=D(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),r=Ve(r,(()=>D(s,"componentWillRender",void 0,n))),Ve(r,(()=>vt(e,s,t)))},Ve=(e,t)=>mt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const r=e.$hostElement$,o=r["s-rc"];n&&(i=>{const l=i.o,a=i.$hostElement$,c=l.i,h=((d,u)=>{var f,p,S;const b=xe(u),v=F.get(b);if(!_.document)return b;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let m,g=E.get(d=d.head||d);if(g||E.set(d,g=new Set),!g.has(b)){m=_.document.createElement("style"),m.textContent=v;const x=(f=P._)!=null?f:(function(){var y,w,T;return(T=(w=(y=_.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?T:void 0})();if(x!=null&&m.setAttribute("nonce",x),!(1&u.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),w=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,w?.parentNode===d?w:null)}else if("host"in d)if(X){const y=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(m)}else d.append(m);1&u.i&&d.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(b)}}else{let m=E.get(d);if(m||E.set(d,m=new Set),!m.has(b)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let x;if(v.constructor===g.CSSStyleSheet)x=v;else{x=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)x.insertRule(v.cssRules[y].cssText,y)}ee?d.adoptedStyleSheets.push(x):d.adoptedStyleSheets=[...d.adoptedStyleSheets,x],m.add(b)}}return b})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=h,a.classList.add(h+"-h"))})(e),yt(e,t,r,n),o&&(o.map((i=>i())),r["s-rc"]=void 0);{const i=(s=r["s-p"])!=null?s:[],l=()=>bt(e);i.length===0?l():(Promise.all(i).then(l).catch(l),e.i|=4,i.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ft(e,t,s)}catch(r){I(r,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.R;D(n,"componentDidRender",void 0,t),64&e.i?D(n,"componentDidUpdate",void 0,t):(e.i|=64,_t(t),D(n,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>he(e,!1))),e.i&=-517},St=()=>{ne((()=>ct(_,"appload",{detail:{namespace:"gids-core-web"}})))},D=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(r){I(r,s)}},_t=e=>e.classList.add("hydrated"),Re=(e,t,n,s)=>{const r=k(e);if(!r)return;const o=e,i=r.l.get(t),l=r.i,a=o;n=Te(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!c){if(r.l.set(t,n),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,f]]=Object.entries(d);(128&l||1&f)&&(a?a[u](n,i,t):r.T.push((()=>{r.D[u](n,i,t)})))}catch(u){I(u,o)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,i,t)===!1&&!(16&l))return;16&l||he(r,!1)}}},wt=(e,t,n)=>{var s,r;const o=e.prototype;64&t.i&&1&n&&tt.forEach((i=>{const l=o[i];Object.defineProperty(o,i,{value(...a){var c;const h=k(this),d=this;d?typeof l=="function"&&l.call(d,...a):(c=h?.H)==null||c.then((u=>{const f=u[i];typeof f=="function"&&f.call(u,...a)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([l,[a]])=>{if(31&a||32&a){const{get:c,set:h}=M(o,l)||{};c&&(t.t[l][0]|=2048),h&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return c?c.apply(this):(d=l,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(d){const u=k(this);if(u){if(h)return(32&a?this[l]:u.$hostElement$[l])===void 0&&u.l.get(l)&&(d=u.l.get(l)),h.apply(this,[Te(d,a,!!(64&t.i))]),void Re(this,l,d=32&a?this[l]:u.$hostElement$[l],t);Re(this,l,d,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(a,c,h){P.jmp((()=>{var d;const u=l.get(a),f=k(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=f?.i;if(f&&m&&!(8&m)&&h!==c){const g=this,x=(d=t.F)==null?void 0:d[a];x?.forEach((y=>{const[[w,T]]=Object.entries(y);g[w]!=null&&(128&m||1&T)&&g[w].call(g,h,c,a)}))}return}const p=i.find((([m])=>m===u)),S=p&&4&p[1][0],b=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(o,u);b||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...i.filter((([a,c])=>31&c[0])).map((([a,c])=>{var h;const d=c[1]||a;return l.set(d,a),512&c[0]&&((h=t.C)==null||h.push([a,d])),d}))]))}}return e},xt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,i)=>{const l={i:0,$hostElement$:o,o:i,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),o["s-p"]=[],o["s-rc"]=[];const a=l;o.__stencil__getHostRef=()=>a,512&i.i&&et(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=k(this);if(!o)return;Be(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&P.i)){const i=k(o);if(!i)return;const l=i.o;if(1&i.i)Be(o,i,l.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&l.i&&(a=>{if(!_.document)return;const c=a["s-cr"]=_.document.createComment("");c["s-cn"]=!0,$(a,c,a.firstChild)})(o);{let a=o;for(;a=a.parentNode||a.host;)if(a["s-p"]){Me(i,i.R=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,a)){const h=o[a];delete o[a],o[a]=h}})),(async(a,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const S=xe(h);F.has(S)||((b,v,m)=>{let g=F.get(b);X&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,F.set(b,g)})(S,p,!!(1&h.i))}const u=c.R,f=()=>he(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){I(u,a),c.A&&(c.A(),c.A=void 0),c.L&&c.L(a)}})(o,i,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&P.i)){const i=k(o);i?.V&&(i.V.map((l=>l())),i.V=void 0)}E.has(o)&&E.delete(o),o.shadowRoot&&E.has(o.shadowRoot)&&E.delete(o.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),wt(e,n,3)}catch(s){return I(s),e}},Be=(e,t,n)=>{n&&_.document&&n.map((([s,r,o])=>{const i=Nt(_.document,e,s),l=Pt(t,o),a=Ct(s);P.ael(i,r,l,a),(t.V=t.V||[]).push((()=>P.rel(i,r,l,a)))}))},Pt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){I(s,e.$hostElement$)}},Nt=(e,t,n)=>8&n?_:t,Ct=e=>nt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ns(e){return e}function Le(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Le(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function J(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const Tt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,At=5,Ge=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*At)+1}`,shouldTextBeHiddenFromAt:Tt},Symbol.toStringTag,{value:"Module"})),Q=99,$t=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Q?`${Q}+`:e.toString(),maxCount:Q,shouldIncludeA11yText:(e,t,n)=>e==="dot"||t!==void 0&&t>Q||n},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:kt}=Ge,jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},n)=>{const s=e==="random"?kt():e;return J("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},s&&s!=="brand"&&`gids-avatar--${s}`,n)}},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>J("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":n},s)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>J("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),ue=Symbol("defaultPath"),De=Symbol("pathSet"),pe="gids-asset-paths-set";class zt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(De)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ue,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ue,n)}this.#e(De,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(ue);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const fe=Symbol.for("GIDS"),Mt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Vt=e=>{const t=Mt().assetPaths;return t[e]===void 0&&(t[e]=new zt),t[e]};function ge(){return Vt("@ganpatiinfo/gids-web-shared")}function Rt(){return ge().haveAssetPathsBeenSet()}function Fe(e){return ge().getAssetFilePath(e)}function Bt(e){return ge().onAssetPathsSet(e)}let Lt=0;const Gt=(e,t="gids")=>e||`${t}-${Lt++}`,We=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Ue={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},qe=new Map;for(const e in Ue)for(const t of Ue[e])qe.set(t,e);function Dt(e){return qe.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let r=s??"";return n&&s&&(r=n(s)??s),`${r}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ft}=Ht,Wt=({name:e,size:t,appearance:n,alt:s,class:r,titleId:o,src:i,...l})=>{const a=Gt(o);let c=i;return c===void 0&&Rt()&&(c=Ke(e,n,Fe)),N("svg",{ref:h=>{c===void 0&&Bt((()=>{(function(d,u,f){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Ke(u,f,Fe)),d.appendChild(p)})(h,e,n)}))},width:"16",height:"16",class:Ft({size:t},r),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:a,...l},s!==""&&N("title",{id:a},s||e),c!==void 0?N("use",{href:c}):null)};function Ye(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ye(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Ut(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ye(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:Ze,shouldIncludeA11yText:qt}=$t,{getGidsBadgeClassNames:Kt}=Et,Yt=({appearance:e,type:t,count:n,accessibleText:s,outline:r,class:o,...i})=>{const l=qt(t,n,We(s));return N("span",{class:Kt({appearance:e,type:t,outline:r},o),...i},l&&N("span",{class:"gids-visually-hidden"},We(s)?s:n),t==="notification"?l?N("span",{"aria-hidden":"true"},Ze(n,s)):Ze(n,s):null)},{shouldTextBeHiddenFromAt:Zt}=Ge,{getGidsAvatarClassNames:Jt}=jt,Qt=({appearance:e,color:t,size:n,badge:s,text:r,imageSrc:o,alt:i,iconTitleId:l,class:a,...c})=>{const h=Zt({text:r,alt:i});return N("span",{class:Jt({color:t,size:n},a),...c},e==="image"?N("img",{src:o,alt:i??r??"",width:"100",height:"100"}):e==="icon"?N(Wt,{name:"user",alt:i??r,titleId:l}):N("span",{role:h?void 0:"img","aria-hidden":h?"true":void 0,"aria-label":h?void 0:i??r},r),s)},{getGidsProfileMenuHeaderClassNames:Xt}=It,{getProfileHeaderMenuAvatarText:es}=Ot,Je=xt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const n=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...n})},this.onHeaderItemTitlePress=t=>{const n=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...n})},this.onHeaderItemSupportingTextPress=t=>{const n=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...n})},this.pressHeaderItems=t=>{const n=this.avatarProps,s=n?.badgeProps??{};return{originalEvent:t,appearance:n?.appearance??"text",color:n?.color??"brand",imageSrc:n?.imageSrc??"",size:n?.size??"xl",text:this.getAvatarText(),badgeProps:{...s},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,n=this?.headerTitle;return t?.text??es({headerTitle:n})}}avatarPropsChanged(e){this.avatarProps=e}headerItemsPositionChanged(e){this.headerItemsPosition=e}headerTitleChanged(e){this.headerTitle=e}headerSupportingTextChanged(e){this.headerSupportingText=e}avatarVisibilityChanged(e){this.avatarVisible=e}avatarBadgeVisibilityChanged(e){this.avatarBadgeVisible=e}connectedCallback(){}render(){const e=this?.headerItemsPosition??"default",t=this?.headerTitle,n=this?.headerSupportingText,s=this?.avatarVisible??!1,r=this?.avatarBadgeVisible??!1,o=this?.avatarProps,i=o?.badgeProps,l=Xt({headerItemsPosition:e}),a=o?.size??"xl";return N(Pe,{key:"9b46b9581c3bdba759a9d4b8506a9acc8d44e144",class:l},s?N(Qt,{onClick:this.onAvatarItemPress,appearance:o?.appearance??"text",color:o?.color??"brand",size:a,text:this.getAvatarText(),imageSrc:o?.imageSrc??"",alt:o?.alt??"alt-img",badge:r?N(Yt,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,N("div",{key:"3a1758aef7a6393efcd87f52fbf21ba93977b62b",class:Ut("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},N("span",{key:"26ea32d71575058291f0b0df78046d5c4dc642fd",onClick:this.onHeaderItemTitlePress},t),N("p",{key:"e559efb7c4860826925d021cceee93f058380430",onClick:this.onHeaderItemSupportingTextPress},n)))}get hostElement(){return this}static get watchers(){return{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}}static get style(){return".gids-profile-menu-header{display:flex;gap:var(--gids-gap-100);align-items:center;justify-content:flex-start;width:100%}.gids-profile-menu-header .gids-avatar{cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header .gids-avatar:hover{transform:scale(1.2)}.gids-profile-menu-header .gids-avatar:active{transform:scale(1)}.gids-profile-menu-header--position-centralized{flex-direction:column;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-profile-menu-header__content-container-default{display:flex;flex-direction:column;text-align:left}.gids-profile-menu-header__content-container-default span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default span:active{transform:scale(1)}.gids-profile-menu-header__content-container-default p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default p:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized{text-align:center}.gids-profile-menu-header__content-container-centralized span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized span:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized p:active{transform:scale(1)}"}},[0,"gids-profile-menu-header",{avatarProps:[16],headerItemsPosition:[1,"header-items-position"],headerTitle:[1,"header-title"],headerSupportingText:[1,"header-supporting-text"],avatarVisible:[4,"avatar-visible"],avatarBadgeVisible:[4,"avatar-badge-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16]},void 0,{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}]);function Qe(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const ts=Je,ss=Qe;H.GidsProfileMenuHeader=ts,H.defineCustomElement=ss,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})}));
|