@ganpatiinfo/gids-core-web 15.0.0 → 16.0.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 +598 -0
- 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 +1 -1
- package/dist/gids-skeleton.js +1 -1
- 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 +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/{p-Iqbf3Pja.js → p-BrYLEey4.js} +1 -1
- package/dist/p-Bs8TP3Rb.js +1 -0
- package/dist/p-Bw2pVReY.js +1 -0
- package/dist/{p-BtKwhIx5.js → p-Bzjuvoza.js} +1 -1
- package/dist/p-C-HyXFGR.js +1 -0
- package/dist/{p-Cyant-dw.js → p-CCpxJ8wu.js} +1 -1
- package/dist/p-CXFvqDBs.js +1 -0
- package/dist/{p-DLauG0q8.js → p-CZBiavxU.js} +1 -1
- package/dist/p-CcpdJCql.js +1 -0
- package/dist/{p-BKIsp763.js → p-Chb2OeFe.js} +1 -1
- package/dist/{p-Df5xaj-o.js → p-CiWZdp48.js} +1 -1
- package/dist/{p-DaqhrFRM.js → p-Co23kQaH.js} +1 -1
- package/dist/{p-DshXkAUj.js → p-DAuO4g6g.js} +1 -1
- package/dist/{p-BF46eY8H.js → p-DELTZ9Fh.js} +1 -1
- package/dist/{p-CLm5opt9.js → p-DGXqnrKo.js} +1 -1
- package/dist/p-DObJEzlz.js +1 -0
- package/dist/{p-MnCDY1k9.js → p-DbaNvRpS.js} +1 -1
- package/dist/{p-Dvh4sPkD.js → p-Dd-ec-e0.js} +1 -1
- package/dist/{p-DhtEw_C2.js → p-DiTjFG30.js} +1 -1
- package/dist/{p-Db4qRSmH.js → p-DxX3B1f0.js} +1 -1
- package/dist/{p-B0Nc9rVM.js → p-UDG6tkD1.js} +1 -1
- package/dist/p-bhEHIxPv.js +1 -0
- package/dist/{p-BgvpzBUx.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-DGenc1qz.js → p-u06XOrpj.js} +1 -1
- 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 +66 -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.d.ts +596 -2
- package/dist-bundled/es/gids-action-bar.js +22 -21
- 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 +4 -4
- package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
- 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 +24 -24
- 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 +7 -7
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +2 -2
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +5 -5
- package/dist-bundled/es/gids-expansion.js +1 -1
- package/dist-bundled/es/gids-field.js +2 -2
- 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 +2 -2
- package/dist-bundled/es/gids-line-chart.js +3 -3
- package/dist-bundled/es/gids-md-table.js +59 -59
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +12 -12
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- 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 +199 -0
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +16 -36
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +6 -6
- 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 +3 -3
- package/dist-bundled/es/p-Bs8TP3Rb-BdcS7d5q.js +20 -0
- package/dist-bundled/es/{p-9NZjfY_u-CnjUEy1y.js → p-Bw2pVReY-K9pdG-hw.js} +2 -2
- package/dist-bundled/es/{p-BtKwhIx5-DTEmfdxe.js → p-Bzjuvoza-CzNs69NV.js} +12 -12
- package/dist-bundled/es/{p-D7qanqNO-Dby5jSjA.js → p-C-HyXFGR-UnFcWLOQ.js} +6 -5
- package/dist-bundled/es/{p-Cyant-dw-Ch2zYNkx.js → p-CCpxJ8wu-CMYQqNoP.js} +6 -6
- package/dist-bundled/es/p-CXFvqDBs-offadaUn.js +27 -0
- package/dist-bundled/es/{p-DLauG0q8-CCUuzYl9.js → p-CZBiavxU-CIstIm2b.js} +9 -9
- package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +64 -0
- package/dist-bundled/es/{p-BKIsp763-CqL9MgyZ.js → p-Chb2OeFe-DDv_WPhe.js} +1 -1
- package/dist-bundled/es/{p-Df5xaj-o-fxAXUmag.js → p-CiWZdp48-1vf7Xh2R.js} +5 -5
- package/dist-bundled/es/{p-DaqhrFRM-2PqBeu5o.js → p-Co23kQaH-QJyKkzgc.js} +3 -3
- package/dist-bundled/es/{p-DshXkAUj-DgCiQIA2.js → p-DAuO4g6g-C8miaL-N.js} +6 -6
- package/dist-bundled/es/{p-BF46eY8H-Xn8Fl9EI.js → p-DELTZ9Fh-Byr0nLtY.js} +2 -2
- package/dist-bundled/es/{p-CLm5opt9-DlxkI38w.js → p-DGXqnrKo-C7feKS94.js} +5 -5
- package/dist-bundled/es/p-DObJEzlz-tt9h5cuI.js +17 -0
- package/dist-bundled/es/{p-MnCDY1k9-CgbTyJ5R.js → p-DbaNvRpS-r7kCW1TY.js} +9 -9
- package/dist-bundled/es/{p-Dvh4sPkD-B-T5C03p.js → p-Dd-ec-e0-BqX_F6y0.js} +5 -5
- package/dist-bundled/es/{p-DhtEw_C2-D_91JSPC.js → p-DiTjFG30-CQkxfu2K.js} +2 -2
- package/dist-bundled/es/{p-Db4qRSmH-B5pzOeve.js → p-DxX3B1f0-D1URliVh.js} +5 -5
- package/dist-bundled/es/{p-B0Nc9rVM-SBit1KrF.js → p-UDG6tkD1-JTLPxkEn.js} +5 -5
- package/dist-bundled/es/p-bhEHIxPv-ujyxL30O.js +136 -0
- package/dist-bundled/es/{p-BgvpzBUx-iq-eKBVZ.js → p-d-t7__OQ-CKPQZt2t.js} +3 -3
- package/dist-bundled/es/p-oJFgjzK5-CzagP1qD.js +99 -0
- package/dist-bundled/es/{p-CZxn31uZ-BBHM983b.js → p-pVSQxFDF-CsWxUaZX.js} +10 -9
- package/dist-bundled/es/{p-DGenc1qz-CMwVEtCm.js → p-u06XOrpj-C1tNznDd.js} +6 -6
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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-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-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +44 -4
- package/dist/p-474lVBcu.js +0 -1
- package/dist/p-9NZjfY_u.js +0 -1
- package/dist/p-CZxn31uZ.js +0 -1
- package/dist/p-D7qanqNO.js +0 -1
- package/dist-bundled/es/p-474lVBcu-B1f8x2o1.js +0 -31
- /package/dist-bundled/es/{p-Iqbf3Pja-DuajY4uD.js → p-BrYLEey4-DuajY4uD.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(E,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(E=typeof globalThis<"u"?globalThis:E||self,V(E.gidsCoreWebGidsProfileMenu={}))})(this,(function(E){"use strict";function V(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var L,pt=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],a=V(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);a&&Object.defineProperty(e,s,{get(){return a.get.call(this)},set(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},j=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},xe=(e,t)=>t in e,G=(e,t)=>(0,console.error)(e,t),W=new Map,Pe="http://www.w3.org/1999/xlink",ht=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],P=typeof window<"u"?window:{},we=P.HTMLElement||class{},$={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},ft=(()=>{var e;let t=!1;try{(e=P.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),se=(()=>{try{return!!P.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ie=!!se&&!!P.document&&Object.getOwnPropertyDescriptor(P.document.adoptedStyleSheets,"length").writable,ne=!1,Ce=[],Ne=[],mt=(e,t)=>i=>{e.push(i),ne||(ne=!0,4&$.i?oe(re):$.raf(re))},$e=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){G(i)}e.length=0},re=()=>{$e(Ce),$e(Ne),(ne=Ce.length>0)&&$.raf(re)},oe=e=>Promise.resolve(void 0).then(e),vt=mt(Ne);function yt(){const e=this.attachShadow({mode:"open"});L===void 0&&(L=null),L&&(ie?e.adoptedStyleSheets.push(L):e.adoptedStyleSheets=[...e.adoptedStyleSheets,L])}var Te=e=>{const t=le(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ae(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!bt(s,B(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&le(s,"childNodes").length&&Te(s)}};function ae(e,t,i){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||B(s)===i)&&(r.push(s),i!==void 0))return r;r=[...r,...ae(s.childNodes,t,i)]}return r}var bt=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!i&&n["s-sr"]||s.push(n);return s},Ie=(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 le(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var de,H,M=new WeakMap,Oe=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",h=(e,t,...i)=>{let s=null,n=null,r=null,a=!1,l=!1;const o=[],d=c=>{for(let g=0;g<c.length;g++)s=c[g],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!ce(s))&&(s=String(s)),a&&l?o[o.length-1].h+=s:o.push(a?U(null,s):s),l=a)};if(d(i),t){t.key&&(n=t.key),t.name&&(r=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((g=>c[g])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,o,_t);const u=U(e,null);return u.v=t,o.length>0&&(u.m=o),u.$=n,u.j=r,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ue={},_t={forEach:(e,t)=>e.map(Ae).forEach(t),map:(e,t)=>e.map(Ae).map(t).map(St)},Ae=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),St=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),h(e.vtag,i,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},je=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const n of t){if(i)break;for(const r of e[n])if(typeof r=="string"){i=!0;break}}if(!i)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},ke=(e,t,i)=>e==null||ce(e)?e:4&t?(i&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,xt=(e,t,i)=>{const s=$.ce(t,i);return e.dispatchEvent(s),s},Me=(e,t,i,s,n,r)=>{if(i===s)return;let a=xe(e,t),l=t.toLowerCase();if(t==="class"){const o=e.classList,d=Ee(i);let u=Ee(s);o.remove(...d.filter((c=>c&&!u.includes(c)))),o.add(...u.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const o in i)s&&s[o]!=null||(o.includes("-")?e.style.removeProperty(o):e.style[o]="");for(const o in s)i&&s[o]===i[o]||(o.includes("-")?e.style.setProperty(o,s[o]):e.style[o]=s[o])}else if(t!=="key"){if(t==="ref")s&&Ct(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const o=t.slice(5);let d;{const u=j(e);if(u&&u.o&&u.o.t){const c=u.o.t[o];c&&c[1]&&(d=c[1])}}return d||(d=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const o=t.slice(5);try{e[o]=s}catch{}return}{const o=ce(s);if((a||o&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?a=!1:i!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let d=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(Pe,t):e.removeAttribute(t)):(!a||4&r||n)&&!o&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(Pe,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):xe(P,l)?l.slice(2):l[2]+t.slice(3),i||s){const o=t.endsWith(Ge);t=t.replace(wt,""),i&&$.rel(e,t,i,o),s&&$.ael(e,t,s,o)}}},Pt=/\s/,Ee=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Pt):[]),Ge="Capture",wt=new RegExp(Ge+"$"),ge=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const a of He(Object.keys(n)))a in r||Me(s,a,n[a],void 0,i,t.i);for(const a of He(Object.keys(r)))Me(s,a,n[a],r[a],i,t.i)};function He(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,q=!1,K=!1,T=!1,pe=[],he=[],Y=(e,t,i)=>{var s;const n=t.m[i];let r,a,l,o=0;if(D||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=P.document.createTextNode(n.h);else if(1&n.i)r=n.S=P.document.createTextNode(""),ge(null,n,T);else{if(T||(T=n.O==="svg"),!P.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=P.document.createElementNS(T?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),T&&n.O==="foreignObject"&&(T=!1),ge(null,n,T),n.m){const d=n.O==="template"?r.content:r;for(o=0;o<n.m.length;++o)a=Y(e,n,o),a&&d.appendChild(a)}n.O==="svg"?T=!1:r.tagName==="foreignObject"&&(T=!0)}return r["s-hn"]=H,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=de,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=c=>(function(g){const f=[],p=this["s-sn"];g?.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 _=this["s-cr"].parentElement;return(_.__childNodes?_.childNodes:(S=>{const y=[];for(let v=0;v<S.length;v++){const m=S[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(_.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===n.O&&e.S&&Ve(e.S)),r},Ve=e=>{$.i|=1;const t=e.closest(H.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&&(A(t,n,i??null),n["s-sh"]=void 0,K=!0)}$.i&=-2},Z=(e,t)=>{$.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"]===H&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==H&&n["s-ol"]&&(A(R(n).parentNode,n,R(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}$.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===H&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);n<=r;++n)s[n]&&(a=Y(null,i,n),a&&(s[n].S=a,A(l,a,R(t))))},Le=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const r=n.S;De(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.$),R=e=>e&&e["s-ol"]||e,z=(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?(T=a==="svg"||a!=="foreignObject"&&T,a!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ve(t.S.parentElement)),ge(e,t,T),n!==null&&r!==null?((d,u,c,g,f=!1)=>{let p,_,S=0,y=0,v=0,m=0,C=u.length-1,b=u[0],x=u[C],N=g.length-1,w=g[0],O=g[N];const gt=c.O==="template"?d.content:d;for(;S<=C&&y<=N;)if(b==null)b=u[++S];else if(x==null)x=u[--C];else if(w==null)w=g[++y];else if(O==null)O=g[--N];else if(J(b,w,f))z(b,w,f),b=u[++S],w=g[++y];else if(J(x,O,f))z(x,O,f),x=u[--C],O=g[--N];else if(J(b,O,f))b.O!=="slot"&&O.O!=="slot"||Z(b.S.parentNode,!1),z(b,O,f),A(gt,b.S,x.S.nextSibling),b=u[++S],O=g[--N];else if(J(x,w,f))b.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),z(x,w,f),A(gt,x.S,b.S),x=u[--C],w=g[++y];else{for(v=-1,m=S;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===w.$){v=m;break}v>=0?(_=u[v],_.O!==w.O?p=Y(u&&u[y],c,v):(z(_,w,f),u[v]=void 0,p=_.S),w=g[++y]):(p=Y(u&&u[y],c,y),w=g[++y]),p&&A(R(b.S).parentNode,p,R(b.S))}S>C?ze(d,g[N+1]==null?null:g[N+1].S,c,g,y,N):y>N&&Le(u,S,C)})(s,n,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),ze(s,null,t,r,0,r.length-1)):!i&&n!==null&&Le(n,0,n.length-1),T&&a==="svg"&&(T=!1)):(o=s["s-cr"])?o.parentNode.textContent=l:e.h!==l&&(s.data=l)},k=[],Be=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(Ie(t,a)){let l=k.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"],k.push({N:r,k:t})),t["s-sr"]&&k.map((o=>{Ie(o.k,t["s-sn"])&&(l=k.find((d=>d.k===t)),l&&!o.N&&(o.N=l.N))}))}else k.some((l=>l.k===t))||k.push({k:t})}r.nodeType===1&&Be(r)}},De=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},Ct=(e,t)=>{he.push((()=>e(t)))},A=(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"]=B(r)||"";return{slotNode:ae(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)},Nt=(e,t,i=!1)=>{var s,n,r,a,l;const o=e.$hostElement$,d=e.o,u=e.M||U(null,null);var c;const g=(c=t)&&c.O===ue?t:h(null,null,t);if(H=o.tagName,d.C&&(g.v=g.v||{},d.C.forEach((([f,p])=>{g.v[p]=o[f]}))),i&&g.v)for(const f of Object.keys(g.v))o.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(g.v[f]=o[f]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=o.shadowRoot||o,D=!(!(1&d.i)||128&d.i),de=o["s-cr"],q=!1,z(u,g,i),$.i|=1,K){Be(g.S);for(const f of k){const p=f.k;if(!p["s-ol"]&&P.document){const _=P.document.createTextNode("");_["s-nr"]=p,A(p.parentNode,p["s-ol"]=_,p,i)}}for(const f of k){const p=f.k,_=f.N;if(p.nodeType===1&&i&&(p["s-ih"]=(s=p.hidden)!=null&&s),_){const S=_.parentNode;let y=_.nextSibling;if(y&&y.nodeType===1){let v=(n=p["s-ol"])==null?void 0:n.previousSibling;for(;v;){let m=(r=v["s-nr"])!=null?r:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(A(S,p,y,i),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const v=P.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=p["s-hn"],v["s-sn"]=p["s-sn"],v["s-sh"]=p["s-sh"],v["s-sr"]=p["s-sr"],v["s-ol"]=p["s-ol"],v["s-ol"]["s-nr"]=v,A(p.parentNode,v,p,i),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof _["s-rf"]=="function"&&_["s-rf"](_)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Te(g.S),$.i&=-2,k.length=0,!D&&!(1&d.i)&&o["s-cr"]){const f=g.S.__childNodes||g.S.childNodes;for(const p of f)if(p["s-hn"]!==H&&!p["s-sh"]){if(i&&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 _=P.document.createComment("s-nt-"+p.nodeValue);_["s-sn"]=p["s-sn"],A(p.parentNode,_,p,i),p.parentNode.removeChild(p)}}}de=void 0,pe.forEach((f=>f())),pe.length=0,he.forEach((f=>f())),he.length=0},Re=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const i=()=>$t(e,t);if(!t)return vt(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=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Fe(n,(()=>F(s,"componentWillRender",void 0,i))),Fe(n,(()=>It(e,s,t)))},Fe=(e,t)=>Tt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",It=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,u=((c,g)=>{var f,p,_;const S=Oe(g),y=W.get(S);if(!P.document)return S;if(c=c.nodeType===11?c:P.document,y)if(typeof y=="string"){let v,m=M.get(c=c.head||c);if(m||M.set(c,m=new Set),!m.has(S)){v=P.document.createElement("style"),v.textContent=y;const C=(f=$._)!=null?f:(function(){var b,x,N;return(N=(x=(b=P.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?N:void 0})();if(C!=null&&v.setAttribute("nonce",C),!(1&g.i))if(c.nodeName==="HEAD"){const b=c.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:c.querySelector("style");c.insertBefore(v,x?.parentNode===c?x:null)}else if("host"in c)if(se){const b=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),ie?c.adoptedStyleSheets.unshift(b):c.adoptedStyleSheets=[b,...c.adoptedStyleSheets]}else{const b=c.querySelector("style");b?b.textContent=y+b.textContent:c.prepend(v)}else c.append(v);1&g.i&&c.insertBefore(v,null),4&g.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let v=M.get(c);if(v||M.set(c,v=new Set),!v.has(S)){const m=(_=c.defaultView)!=null?_:c.ownerDocument.defaultView;let C;if(y.constructor===m.CSSStyleSheet)C=y;else{C=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)C.insertRule(y.cssRules[b].cssText,b)}ie?c.adoptedStyleSheets.push(C):c.adoptedStyleSheets=[...c.adoptedStyleSheets,C],v.add(S)}}return S})(o.shadowRoot?o.shadowRoot:o.getRootNode(),l);10&d&&(o["s-sc"]=u,o.classList.add(u+"-h"))})(e),Ot(e,t,n,i),r&&(r.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],l=()=>At(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},Ot=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Nt(e,t,s)}catch(n){G(n,e.$hostElement$)}return null},At=e=>{const t=e.$hostElement$,i=t,s=e.R;F(i,"componentDidRender",void 0,t),64&e.i?F(i,"componentDidUpdate",void 0,t):(e.i|=64,kt(t),F(i,"componentDidLoad",void 0,t),e.L(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>fe(e,!1))),e.i&=-517},jt=()=>{oe((()=>xt(P,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){G(n,s)}},kt=e=>e.classList.add("hydrated"),We=(e,t,i,s)=>{const n=j(e);if(!n)return;const r=e,a=n.l.get(t),l=n.i,o=r;i=ke(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 u=s.F[t];u&&u.map((c=>{try{const[[g,f]]=Object.entries(c);(128&l||1&f)&&(o?o[g](i,a,t):n.T.push((()=>{n.D[g](i,a,t)})))}catch(g){G(g,r)}}))}if(2&l){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||fe(n,!1)}}},Mt=(e,t,i)=>{var s,n;const r=e.prototype;64&t.i&&1&i&&ht.forEach((a=>{const l=r[a];Object.defineProperty(r,a,{value(...o){var d;const u=j(this),c=this;c?typeof l=="function"&&l.call(c,...o):(d=u?.H)==null||d.then((g=>{const f=g[a];typeof f=="function"&&f.call(g,...o)}))}})}));{e.watchers&&!t.F&&(t.F=je(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:u}=V(r,l)||{};d&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return d?d.apply(this):(c=l,j(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(c){const g=j(this);if(g){if(u)return(32&o?this[l]:g.$hostElement$[l])===void 0&&g.l.get(l)&&(c=g.l.get(l)),u.apply(this,[ke(c,o,!!(64&t.i))]),void We(this,l,c=32&o?this[l]:g.$hostElement$[l],t);We(this,l,c,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(o,d,u){$.jmp((()=>{var c;const g=l.get(o),f=j(this);if(this.hasOwnProperty(g),r.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const v=f?.i;if(f&&v&&!(8&v)&&u!==d){const m=this,C=(c=t.F)==null?void 0:c[o];C?.forEach((b=>{const[[x,N]]=Object.entries(b);m[x]!=null&&(128&v||1&N)&&m[x].call(m,u,d,o)}))}return}const p=a.find((([v])=>v===g)),_=p&&4&p[1][0],S=_&&u===null&&this[g]===void 0;_&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,g);S||u==this[g]||y.get&&!y.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,d])=>31&d[0])).map((([o,d])=>{var u;const c=d[1]||o;return l.set(c,o),512&d[0]&&((u=t.C)==null||u.push([o,c])),c}))]))}}return e},Ue=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=je(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&&pt(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=j(this);if(!r)return;Ke(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&$.i)){const a=j(r);if(!a)return;const l=a.o;if(1&a.i)Ke(r,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(o=>{if(!P.document)return;const d=o["s-cr"]=P.document.createComment("");d["s-cn"]=!0,A(o,d,o.firstChild)})(r);{let o=r;for(;o=o.parentNode||o.host;)if(o["s-p"]){Re(a,a.R=o);break}}l.t&&Object.entries(l.t).map((([o,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,o)){const u=r[o];delete r[o],r[o]=u}})),(async(o,d,u)=>{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 p;typeof c.style=="string"&&(p=c.style);const _=Oe(u);W.has(_)||((S,y,v)=>{let m=W.get(S);se&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,W.set(S,m)})(_,p,!!(1&u.i))}const g=d.R,f=()=>fe(d,!0);g&&g["s-rc"]?g["s-rc"].push(f):f()}catch(g){G(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&$.i)){const a=j(r);a?.V&&(a.V.map((l=>l())),a.V=void 0)}M.has(r)&&M.delete(r),r.shadowRoot&&M.has(r.shadowRoot)&&M.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 yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Mt(e,i,3)}catch(s){return G(s),e}},qe=(e,t)=>t,Ke=(e,t,i)=>{i&&P.document&&i.map((([s,n,r])=>{const a=Gt(P.document,e,s),l=Et(t,r),o=Ht(s);$.ael(a,n,l,o),(t.V=t.V||[]).push((()=>$.rel(a,n,l,o)))}))},Et=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){G(s,e.$hostElement$)}},Gt=(e,t,i)=>8&i?P:t,Ht=e=>ft?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Zs(e){return e}function Ye(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=Ye(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function I(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=Ye(e))&&(s&&(s+=" "),s+=t);return s}const Vt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,zt=5,Ze=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*zt)+1}`,shouldTextBeHiddenFromAt:Vt},Symbol.toStringTag,{value:"Module"})),Q=99,Lt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Q?`${Q}+`:e.toString(),maxCount:Q,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>Q||i},Symbol.toStringTag,{value:"Module"})),Bt=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"})),X=64,Je=10,Qe=X/2-Je/2,Dt=X/2,me=2*Math.PI*Qe,Rt=`0 0 ${X} ${X}`,Ft=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=(me*n/100).toFixed(2),a=(me-parseFloat(r)).toFixed(2);return`${r} ${a}`},centerPosition:Dt,circumference:me,radius:Qe,thickness:Je,viewBox:Rt},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:Ut}=Ze,qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const s=e==="random"?Ut():e;return I("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},s&&s!=="brand"&&`gids-avatar--${s}`,i)}},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},s)=>I("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":i},s)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>I("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>I("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>I("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>I("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>I("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>I("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>I("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"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>I("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>I("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),ns=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>I("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),rs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>I("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"})),os=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>I("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"})),ve=Symbol("defaultPath"),Xe=Symbol("pathSet"),ye="gids-asset-paths-set";class as 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(ye))};haveAssetPathsBeenSet(){return this.#t(Xe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(Xe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ye,t,{once:!0}),()=>{this.removeEventListener(ye,t)}}}const be=Symbol.for("GIDS"),ls=()=>(globalThis[be]===void 0&&(globalThis[be]={assetPaths:{}}),globalThis[be]),ds=e=>{const t=ls().assetPaths;return t[e]===void 0&&(t[e]=new as),t[e]};function _e(){return ds("@ganpatiinfo/gids-web-shared")}function cs(){return _e().haveAssetPathsBeenSet()}function et(e){return _e().getAssetFilePath(e)}function us(e){return _e().onAssetPathsSet(e)}let gs=0;const ps=(e,t="gids")=>e||`${t}-${gs++}`,tt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"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"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function hs(e){return it.get(e)}function nt(e,t="regular",i){const s=hs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:fs}=ts,ee=({name:e,size:t,appearance:i,alt:s,class:n,titleId:r,src:a,...l})=>{const o=ps(r);let d=a;return d===void 0&&cs()&&(d=nt(e,i,et)),h("svg",{ref:u=>{d===void 0&&us((()=>{(function(c,g,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",nt(g,f,et)),c.appendChild(p)})(u,e,i)}))},width:"16",height:"16",class:fs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...l},s!==""&&h("title",{id:o},s||e),d!==void 0?h("use",{href:d}):null)},{getGidsButtonGroupClassNames:ms}=Yt,vs=({layout:e,class:t},i)=>h("span",{class:ms({layout:e},t)},i),{getGidsHeadingClassNames:ys,getGidsHeadingSupportingTextTypographyClass:bs}=es,_s=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:n,class:r})=>h("div",{class:ys(r)},h("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?h("span",{class:i==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?h("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${bs(n)}`},t):null:t:null),s?h(vs,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Ss}=Xt,xs=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:n,class:r,...a})=>h("button",{class:Ss({size:i},r),...a,onClick:n,disabled:e},s==="custom"&&t?h("div",null,t):s==="add"?h("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},h(ee,{name:"add",appearance:"filled",size:i})):s==="remove"?h("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},h(ee,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:Ps}=Zt,Se=({orientation:e})=>h("hr",{class:Ps({orientation:e})}),{getGidsListItemClassNames:ws}=ss,Cs=({id:e,value:t,index:i,defaultSelected:s,disabled:n,selected:r,editButton:a,onPressEditButton:l,onPressListItem:o,leadingAccessory:d,leadingSupport:u,leadingParagraph:c,trailingContent:g,trailingAccessory:f,trailingSupport:p,trailingParagraph:_,divider:S,role:y="list-item-option",isPlaceholderItem:v,class:m,...C},b)=>{const x=r||s;return h("button",{type:"button",id:e,class:ws({selected:x,disabled:n},m),role:y,"aria-selected":x?"true":"false",disabled:n,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const N=b;return N?(Array.isArray(N)?N:[N]).map((w=>typeof w=="string"||typeof w=="number"?String(w):w&&typeof w=="object"&&"text"in w?w.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:N=>{const w=N.currentTarget;if(!w||N.defaultPrevented||w.disabled)return;const O=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:v}});o?.(O)},"is-placeholder-item":v?"true":"false",...C},h("div",{class:"gids-list-item__main-container"},a==null||a==="none"||n?null:h(xs,{size:"md",editButtonType:a,onPressEditButton:l}),d!=null?h("div",{class:n?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},d):null,h("div",{class:"gids-list-item__middle-content-container"},h("div",{class:"gids-list-item__leading-content-container"},h(qe,null,b!=null?h("span",{class:n?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},b):null,h("div",{class:"gids-list-item__leading-support-content"},u!=null?typeof u=="string"?h("p",{class:n?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},u):u:null,c!=null?typeof c=="string"?h("p",{class:n?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},c):c:null))),h("div",{class:"gids-list-item__trailing-content-container"},h(qe,null,g!=null?typeof g=="string"?h("span",{class:n?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},g):g:null,h("div",{class:"gids-list-item__trailing-support-content"},p!=null?typeof p=="string"?h("p",{class:n?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},p):p:null,_!=null?typeof _=="string"?h("p",{class:n?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},_):_:null)))),x?h("div",{class:n?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},h(ee,{name:"checkmark",size:"md",appearance:"regular"})):null,x||f==null?null:h("div",{class:n?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f)),S&&!x?h("div",{class:"gids-list-item__divider"},h(Se,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:Ns}=rs,{calculateStrokeDasharray:$s,thickness:rt,radius:ot,centerPosition:te,viewBox:Ts}=Ft,Is=({size:e,indeterminate:t,value:i,max:s,...n})=>{let r;return t||(r={strokeDashArray:$s(i,s||0),strokeDashoffset:"0"}),h("svg",{class:Ns({size:e,indeterminate:t,value:i}),viewBox:Ts,...n},h("circle",{class:"gids-spinner-control__track",cx:te,cy:te,r:ot,"stroke-width":rt}),h("circle",{style:r,class:"gids-spinner-control__progress",cx:te,cy:te,r:ot,"stroke-width":rt}))},{getGidsSpinnerClassNames:Os}=os,{getElementVisibility:As}=Bt,js=({label:e,supportingText:t,size:i,indeterminate:s,value:n,max:r,class:a,...l})=>{const{hasLabel:o,hasSupportingText:d}=As({label:e,supportingText:t});return h("span",{class:Os({size:i},a),...l},h(Is,{size:i,indeterminate:s,value:n,max:r}),o&&h("span",{class:"gids-spinner__label"},e),d&&h("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:ks}=Jt,Ms=({type:e="no-options",supportingText:t="No options",class:i,...s},n)=>h("div",{class:ks({type:e},i),...s},e==="loading"?h(js,{indeterminate:!0,size:"md"}):null,e==="no-options"?h("span",null,t):null,e==="default"&&n!=null?n:null),{getGidsDropdownMenuClassNames:Es}=Qt,Gs=({sectionLabel:e,class:t,...i},s)=>h("div",{class:Es(t),...i},e!=null&&e!==""?h(_s,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?h("div",{class:"gids-dropdown-menu__children"},s):null);function at(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=at(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Hs(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=at(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:lt,shouldIncludeA11yText:Vs}=Lt,{getGidsBadgeClassNames:zs}=Kt,Ls=({appearance:e,type:t,count:i,accessibleText:s,outline:n,class:r,...a})=>{const l=Vs(t,i,tt(s));return h("span",{class:zs({appearance:e,type:t,outline:n},r),...a},l&&h("span",{class:"gids-visually-hidden"},tt(s)?s:i),t==="notification"?l?h("span",{"aria-hidden":"true"},lt(i,s)):lt(i,s):null)},{shouldTextBeHiddenFromAt:Bs}=Ze,{getGidsAvatarClassNames:Ds}=qt,Rs=({appearance:e,color:t,size:i,badge:s,text:n,imageSrc:r,alt:a,iconTitleId:l,class:o,...d})=>{const u=Bs({text:n,alt:a});return h("span",{class:Ds({color:t,size:i},o),...d},e==="image"?h("img",{src:r,alt:a??n??"",width:"100",height:"100"}):e==="icon"?h(ee,{name:"user",alt:a??n,titleId:l}):h("span",{role:u?void 0:"img","aria-hidden":u?"true":void 0,"aria-label":u?void 0:a??n},n),s)},{getGidsProfileMenuHeaderClassNames:Fs}=is,{getProfileHeaderMenuAvatarText:Ws}=Wt,Us=Ue(class extends we{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...i})},this.onHeaderItemTitlePress=t=>{const i=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...i})},this.onHeaderItemSupportingTextPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...i})},this.pressHeaderItems=t=>{const i=this.avatarProps,s=i?.badgeProps??{};return{originalEvent:t,appearance:i?.appearance??"text",color:i?.color??"brand",imageSrc:i?.imageSrc??"",size:i?.size??"xl",text:this.getAvatarText(),badgeProps:{...s},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,i=this?.headerTitle;return t?.text??Ws({headerTitle:i})}}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,i=this?.headerSupportingText,s=this?.avatarVisible??!1,n=this?.avatarBadgeVisible??!1,r=this?.avatarProps,a=r?.badgeProps,l=Fs({headerItemsPosition:e}),o=r?.size??"xl";return h(ue,{key:"9b46b9581c3bdba759a9d4b8506a9acc8d44e144",class:l},s?h(Rs,{onClick:this.onAvatarItemPress,appearance:r?.appearance??"text",color:r?.color??"brand",size:o,text:this.getAvatarText(),imageSrc:r?.imageSrc??"",alt:r?.alt??"alt-img",badge:n?h(Ls,{appearance:a?.appearance??"information",type:a?.type,count:a?.count,outline:a?.outline}):void 0}):void 0,h("div",{key:"3a1758aef7a6393efcd87f52fbf21ba93977b62b",class:Hs("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},h("span",{key:"26ea32d71575058291f0b0df78046d5c4dc642fd",onClick:this.onHeaderItemTitlePress},t),h("p",{key:"e559efb7c4860826925d021cceee93f058380430",onClick:this.onHeaderItemSupportingTextPress},i)))}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 dt(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,Us))}))}dt();const{getGidsProfileMenuClassNames:qs}=ns,ct=Ue(class extends we{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerVisible=!1,this.listSectionDividerVisible=!1,this.headerDividerVisible=!0,this.profileMenuItems=[],this.selectedProfileMenuItem=void 0,this.onListItemPress=({event:t,sectionIndex:i,itemIndex:s,item:n})=>{const r={...n,sectionIndex:i,itemIndex:s};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(r)&&this.onProfileMenuItemPress({originalEvent:t,id:n.id,sectionIndex:i,itemIndex:s,leadingLabel:n?.leadingLabel,leadingSupport:n?.leadingSupport,trailingLabel:n?.trailingLabel,trailingSupport:n?.trailingSupport}),this.profileMenuItemSelection(r)},this.profileMenuItemSelection=t=>{t?.id&&(this.isItemAlreadySelected(t)||(this.selectedProfileMenuItem=t))},this.isItemAlreadySelected=t=>t.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.isThisItemSelected=t=>t?.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasProfileMenuItems=()=>{const t=this?.profileMenuItems??[];return!!(t.length>0&&t[0]?.items&&t[0].items.length>0||this.hasHeaderItem())}}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}profileMenuItemsChanged(e){this.profileMenuItems=e}connectedCallback(){}render(){const e=this?.headerItem,t=this?.headerVisible,i=this?.headerDividerVisible,s=this?.listSectionDividerVisible,n=this?.profileMenuItems??[],r=qs();return h(ue,{key:"407f61b49299da79647d4896ae4aa5b5e1e47646",class:r},h(Ms,{key:"6fb114148ee80d37e707f6c7fe74670b6f9b5fd2",type:this.hasProfileMenuItems()?"default":"no-options"},t?h("div",{class:"gids-profile-menu__header-container"},h("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?h("div",{class:"gids-profile-menu__header-divider-container"},h(Se,null)):void 0,n.map(((a,l)=>h(Gs,{key:`${l+1}`,sectionLabel:a?.sectionLabel??""},(a?.items??[]).map(((o,d)=>h(Cs,{...o,key:`${d+1}`,id:o.id,index:d,onPressListItem:u=>this.onListItemPress({event:u,sectionIndex:l,itemIndex:d,item:o}),selected:this.isThisItemSelected({...o,sectionIndex:l,itemIndex:d})},o?.leadingLabel))),l<n.length-1&&s?h(Se,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile-menu .gids-divider{width:100%}.gids-profile-menu__header-divider-container{width:100%;padding-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-profile-menu__header-container{display:flex;width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) 0px}"}},[0,"gids-profile-menu",{headerItem:[16],headerVisible:[4,"header-visible"],listSectionDividerVisible:[4,"list-section-divider-visible"],headerDividerVisible:[4,"header-divider-visible"],profileMenuItems:[16],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],selectedProfileMenuItem:[32]},void 0,{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function ut(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,ct);break;case"gids-profile-menu-header":customElements.get(e)||dt()}}))}ut();const Ks=ct,Ys=ut;E.GidsProfileMenu=Ks,E.defineCustomElement=Ys,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(E,z){typeof exports=="object"&&typeof module<"u"?z(exports):typeof define=="function"&&define.amd?define(["exports"],z):(E=typeof globalThis<"u"?globalThis:E||self,z(E.gidsCoreWebGidsProfile={}))})(this,(function(E){"use strict";function z(e,t,i){const r=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==r;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!i||s.get))return s;e=Object.getPrototypeOf(e)}}var L,bt=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([r,[s]])=>{if(31&s||32&s){const o=e[r],a=z(Object.getPrototypeOf(e),r,!0)||Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(e,r,{get(){return a.get.call(this)},set(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(r)?e[r]=t.l.get(r):o!==void 0&&(e[r]=o)}}))},M=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Te=(e,t)=>t in e,j=(e,t)=>(0,console.error)(e,t),U=new Map,Ie="http://www.w3.org/1999/xlink",_t=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],P=typeof window<"u"?window:{},se=P.HTMLElement||class{},I={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,r)=>e.addEventListener(t,i,r),rel:(e,t,i,r)=>e.removeEventListener(t,i,r),ce:(e,t)=>new CustomEvent(e,t)},yt=(()=>{var e;let t=!1;try{(e=P.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),oe=(()=>{try{return!!P.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ne=!!oe&&!!P.document&&Object.getOwnPropertyDescriptor(P.document.adoptedStyleSheets,"length").writable,ae=!1,ke=[],Ae=[],Ct=(e,t)=>i=>{e.push(i),ae||(ae=!0,4&I.i?de(le):I.raf(le))},$e=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){j(i)}e.length=0},le=()=>{$e(ke),$e(Ae),(ae=ke.length>0)&&I.raf(le)},de=e=>Promise.resolve(void 0).then(e),xt=Ct(Ae);function St(){const e=this.attachShadow({mode:"open"});L===void 0&&(L=null),L&&(ne?e.adoptedStyleSheets.push(L):e.adoptedStyleSheets=[...e.adoptedStyleSheets,L])}var Ne=e=>{const t=pe(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ce(t,e.tagName).forEach((r=>{r.nodeType===1&&r.tagName==="SLOT-FB"&&(r.hidden=!!Pt(r,B(r),!1).length)}));let i=0;for(i=0;i<t.length;i++){const r=t[i];r.nodeType===1&&pe(r,"childNodes").length&&Ne(r)}};function ce(e,t,i){let r,s=0,o=[];for(;s<e.length;s++){if(r=e[s],r["s-sr"]&&(!t||r["s-hn"]===t)&&(i===void 0||B(r)===i)&&(o.push(r),i!==void 0))return o;o=[...o,...ce(r.childNodes,t,i)]}return o}var Pt=(e,t,i=!0)=>{const r=[];(i&&e["s-sr"]||!e["s-sr"])&&r.push(e);let s=e;for(;s=s.nextSibling;)B(s)!==t||!i&&s["s-sr"]||r.push(s);return r},Me=(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 pe(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ge,H,O=new WeakMap,Ve=e=>"sc-"+e.p,ue=e=>(e=typeof e)=="object"||e==="function",g=(e,t,...i)=>{let r=null,s=null,o=null,a=!1,l=!1;const n=[],c=d=>{for(let u=0;u<d.length;u++)r=d[u],Array.isArray(r)?c(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!ue(r))&&(r=String(r)),a&&l?n[n.length-1].h+=r:n.push(a?q(null,r):r),l=a)};if(c(i),t){t.key&&(s=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,n,wt);const p=q(e,null);return p.v=t,n.length>0&&(p.m=n),p.$=s,p.j=o,p},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),K={},wt={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(Tt)},Oe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Tt=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),g(e.vtag,i,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ee=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const s of t){if(i)break;for(const o of e[s])if(typeof o=="string"){i=!0;break}}if(!i)return e;const r={};for(const s of t)r[s]=e[s].map((o=>typeof o=="string"?{[o]:0}:o));return r},je=(e,t,i)=>e==null||ue(e)?e:4&t?(i&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,It=(e,t,i)=>{const r=I.ce(t,i);return e.dispatchEvent(r),r},He=(e,t,i,r,s,o)=>{if(i===r)return;let a=Te(e,t),l=t.toLowerCase();if(t==="class"){const n=e.classList,c=ze(i);let p=ze(r);n.remove(...c.filter((d=>d&&!p.includes(d)))),n.add(...p.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const n in i)r&&r[n]!=null||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in r)i&&r[n]===i[n]||(n.includes("-")?e.style.setProperty(n,r[n]):e.style[n]=r[n])}else if(t!=="key"){if(t==="ref")r&&$t(r,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let c;{const p=M(e);if(p&&p.o&&p.o.t){const d=p.o.t[n];d&&d[1]&&(c=d[1])}}return c||(c=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(r==null||r===!1?r===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,r===!0?"":r))}if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch{}return}{const n=ue(r);if((a||n&&r!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==r&&(e[t]=r);else{const p=r??"";t==="list"?a=!1:i!=null&&e[t]===p||(typeof e.__lookupSetter__(t)=="function"?e[t]=p:e.setAttribute(t,p))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),r==null||r===!1?r===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Ie,t):e.removeAttribute(t)):(!a||4&o||s)&&!n&&e.nodeType===1&&(r=r===!0?"":r,c?e.setAttributeNS(Ie,t,r):e.setAttribute(t,r))}}else if(t=t[2]==="-"?t.slice(3):Te(P,l)?l.slice(2):l[2]+t.slice(3),i||r){const n=t.endsWith(Ge);t=t.replace(At,""),i&&I.rel(e,t,i,n),r&&I.ael(e,t,r,n)}}},kt=/\s/,ze=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(kt):[]),Ge="Capture",At=new RegExp(Ge+"$"),he=(e,t,i)=>{const r=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},o=t.v||{};for(const a of De(Object.keys(s)))a in o||He(r,a,s[a],void 0,i,t.i);for(const a of De(Object.keys(o)))He(r,a,s[a],o[a],i,t.i)};function De(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var R=!1,Y=!1,Z=!1,A=!1,fe=[],me=[],J=(e,t,i)=>{var r;const s=t.m[i];let o,a,l,n=0;if(R||(Z=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)o=s.S=P.document.createTextNode(s.h);else if(1&s.i)o=s.S=P.document.createTextNode(""),he(null,s,A);else{if(A||(A=s.O==="svg"),!P.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=s.S=P.document.createElementNS(A?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!R&&2&s.i?"slot-fb":s.O),A&&s.O==="foreignObject"&&(A=!1),he(null,s,A),s.m){const c=s.O==="template"?o.content:o;for(n=0;n<s.m.length;++n)a=J(e,s,n),a&&c.appendChild(a)}s.O==="svg"?A=!1:o.tagName==="foreignObject"&&(A=!0)}return o["s-hn"]=H,3&s.i&&(o["s-sr"]=!0,o["s-cr"]=ge,o["s-sn"]=s.j||"",o["s-rf"]=(r=s.v)==null?void 0:r.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const p=d=>(function(u){const f=[],h=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 y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(C=>{const b=[];for(let m=0;m<C.length;m++){const v=C[m]["s-nr"]||void 0;v&&v.isConnected&&b.push(v)}return b})(y.childNodes)).forEach((C=>{h===B(C)&&f.push(C)})),d?f.filter((C=>C.nodeType===1)):f}).bind(c);c.assignedElements=p(!0),c.assignedNodes=p(!1)})(o),l=e&&e.m&&e.m[i],l&&l.O===s.O&&e.S&&Le(e.S)),o},Le=e=>{I.i|=1;const t=e.closest(H.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),r=Array.from(e.__childNodes||e.childNodes);for(const s of i?r.reverse():r)s["s-sh"]!=null&&(N(t,s,i??null),s["s-sh"]=void 0,Z=!0)}I.i&=-2},Q=(e,t)=>{I.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let r=e;for(;r=r.nextSibling;)r&&r["s-sn"]===e["s-sn"]&&r["s-sh"]===H&&i.push(r)}for(let r=i.length-1;r>=0;r--){const s=i[r];s["s-hn"]!==H&&s["s-ol"]&&(N(F(s).parentNode,s,F(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Z=!0),t&&Q(s,t)}I.i&=-2},Be=(e,t,i,r,s,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===H&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);s<=o;++s)r[s]&&(a=J(null,i,s),a&&(r[s].S=a,N(l,a,F(t))))},Re=(e,t,i)=>{for(let r=t;r<=i;++r){const s=e[r];if(s){const o=s.S;We(s),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Q(o,!0),o.remove())}}},X=(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,G=(e,t,i=!1)=>{const r=t.S=e.S,s=e.m,o=t.m,a=t.O,l=t.h;let n;l==null?(A=a==="svg"||a!=="foreignObject"&&A,a!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Le(t.S.parentElement)),he(e,t,A),s!==null&&o!==null?((c,p,d,u,f=!1)=>{let h,y,C=0,b=0,m=0,v=0,w=p.length-1,_=p[0],x=p[w],T=u.length-1,S=u[0],$=u[T];const re=d.O==="template"?c.content:c;for(;C<=w&&b<=T;)if(_==null)_=p[++C];else if(x==null)x=p[--w];else if(S==null)S=u[++b];else if($==null)$=u[--T];else if(X(_,S,f))G(_,S,f),_=p[++C],S=u[++b];else if(X(x,$,f))G(x,$,f),x=p[--w],$=u[--T];else if(X(_,$,f))_.O!=="slot"&&$.O!=="slot"||Q(_.S.parentNode,!1),G(_,$,f),N(re,_.S,x.S.nextSibling),_=p[++C],$=u[--T];else if(X(x,S,f))_.O!=="slot"&&$.O!=="slot"||Q(x.S.parentNode,!1),G(x,S,f),N(re,x.S,_.S),x=p[--w],S=u[++b];else{for(m=-1,v=C;v<=w;++v)if(p[v]&&p[v].$!==null&&p[v].$===S.$){m=v;break}m>=0?(y=p[m],y.O!==S.O?h=J(p&&p[b],d,m):(G(y,S,f),p[m]=void 0,h=y.S),S=u[++b]):(h=J(p&&p[b],d,b),S=u[++b]),h&&N(F(_.S).parentNode,h,F(_.S))}C>w?Be(c,u[T+1]==null?null:u[T+1].S,d,u,b,T):b>T&&Re(p,C,w)})(r,s,t,o,i):o!==null?(e.h!==null&&(r.textContent=""),Be(r,null,t,o,0,o.length-1)):!i&&s!==null&&Re(s,0,s.length-1),A&&a==="svg"&&(A=!1)):(n=r["s-cr"])?n.parentNode.textContent=l:e.h!==l&&(r.data=l)},V=[],Fe=e=>{let t,i,r;const s=e.__childNodes||e.childNodes;for(const o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(r=i.length-1;r>=0;r--)if(t=i[r],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Me(t,a)){let l=V.find((n=>n.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((n=>{Me(n.k,t["s-sn"])&&(l=V.find((c=>c.k===t)),l&&!n.N&&(n.N=l.N))}))}else V.some((l=>l.k===t))||V.push({k:t})}o.nodeType===1&&Fe(o)}},We=e=>{e.v&&e.v.ref&&fe.push((()=>e.v.ref(null))),e.m&&e.m.map(We)},$t=(e,t)=>{me.push((()=>e(t)))},N=(e,t,i,r)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:s}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const n=o["s-sn"]=B(o)||"";return{slotNode:ce(pe(a,"childNodes"),a.tagName,n)[0],slotName:n}})(t);return s&&!r&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Nt=(e,t,i=!1)=>{var r,s,o,a,l;const n=e.$hostElement$,c=e.o,p=e.M||q(null,null);var d;const u=(d=t)&&d.O===K?t:g(null,null,t);if(H=n.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,h])=>{u.v[h]=n[f]}))),i&&u.v)for(const f of Object.keys(u.v))n.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=n[f]);if(u.O=null,u.i|=4,e.M=u,u.S=p.S=n.shadowRoot||n,R=!(!(1&c.i)||128&c.i),ge=n["s-cr"],Y=!1,G(p,u,i),I.i|=1,Z){Fe(u.S);for(const f of V){const h=f.k;if(!h["s-ol"]&&P.document){const y=P.document.createTextNode("");y["s-nr"]=h,N(h.parentNode,h["s-ol"]=y,h,i)}}for(const f of V){const h=f.k,y=f.N;if(h.nodeType===1&&i&&(h["s-ih"]=(r=h.hidden)!=null&&r),y){const C=y.parentNode;let b=y.nextSibling;if(b&&b.nodeType===1){let m=(s=h["s-ol"])==null?void 0:s.previousSibling;for(;m;){let v=(o=m["s-nr"])!=null?o:null;if(v&&v["s-sn"]===h["s-sn"]&&C===(v.__parentNode||v.parentNode)){for(v=v.nextSibling;v===h||v?.["s-sr"];)v=v?.nextSibling;if(!v||!v["s-nr"]){b=v;break}}m=m.previousSibling}}if((!b&&C!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if(N(C,h,b,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=P.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,N(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null&&a)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Y&&Ne(u.S),I.i&=-2,V.length=0,!R&&!(1&c.i)&&n["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const h of f)if(h["s-hn"]!==H&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(l=h.hidden)!=null&&l),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const y=P.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],N(h.parentNode,y,h,i),h.parentNode.removeChild(h)}}}ge=void 0,fe.forEach((f=>f())),fe.length=0,me.forEach((f=>f())),me.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((r=>e.A=()=>{t["s-p"].splice(i-1,1),r()})))}},ve=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const i=()=>Mt(e,t);if(!t)return xt(i);queueMicrotask((()=>{i()}))},Mt=(e,t)=>{const i=e.$hostElement$,r=i;if(!r)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 s;return s=W(r,t?"componentWillLoad":"componentWillUpdate",void 0,i),s=qe(s,(()=>W(r,"componentWillRender",void 0,i))),qe(s,(()=>Ot(e,r,t)))},qe=(e,t)=>Vt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var r;const s=e.$hostElement$,o=s["s-rc"];i&&(a=>{const l=a.o,n=a.$hostElement$,c=l.i,p=((d,u)=>{var f,h,y;const C=Ve(u),b=U.get(C);if(!P.document)return C;if(d=d.nodeType===11?d:P.document,b)if(typeof b=="string"){let m,v=O.get(d=d.head||d);if(v||O.set(d,v=new Set),!v.has(C)){m=P.document.createElement("style"),m.textContent=b;const w=(f=I._)!=null?f:(function(){var _,x,T;return(T=(x=(_=P.document.head)==null?void 0:_.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const _=d.querySelectorAll("link[rel=preconnect]"),x=_.length>0?_[_.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(oe){const _=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;_.replaceSync(b),ne?d.adoptedStyleSheets.unshift(_):d.adoptedStyleSheets=[_,...d.adoptedStyleSheets]}else{const _=d.querySelector("style");_?_.textContent=b+_.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}"),v&&v.add(C)}}else{let m=O.get(d);if(m||O.set(d,m=new Set),!m.has(C)){const v=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let w;if(b.constructor===v.CSSStyleSheet)w=b;else{w=new v.CSSStyleSheet;for(let _=0;_<b.cssRules.length;_++)w.insertRule(b.cssRules[_].cssText,_)}ne?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(C)}}return C})(n.shadowRoot?n.shadowRoot:n.getRootNode(),l);10&c&&(n["s-sc"]=p,n.classList.add(p+"-h"))})(e),Et(e,t,s,i),o&&(o.map((a=>a())),s["s-rc"]=void 0);{const a=(r=s["s-p"])!=null?r:[],l=()=>jt(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},Et=(e,t,i,r)=>{try{t=t.render(),e.i&=-17,e.i|=2,Nt(e,t,r)}catch(s){j(s,e.$hostElement$)}return null},jt=e=>{const t=e.$hostElement$,i=t,r=e.R;W(i,"componentDidRender",void 0,t),64&e.i?W(i,"componentDidUpdate",void 0,t):(e.i|=64,zt(t),W(i,"componentDidLoad",void 0,t),e.L(t),r||Ht()),e.A&&(e.A(),e.A=void 0),512&e.i&&de((()=>ve(e,!1))),e.i&=-517},Ht=()=>{de((()=>It(P,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,i,r)=>{if(e&&e[t])try{return e[t](i)}catch(s){j(s,r)}},zt=e=>e.classList.add("hydrated"),Ke=(e,t,i,r)=>{const s=M(e);if(!s)return;const o=e,a=s.l.get(t),l=s.i,n=o;i=je(i,r.t[t][0],!!(64&r.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(s.l.set(t,i),r.F){const p=r.F[t];p&&p.map((d=>{try{const[[u,f]]=Object.entries(d);(128&l||1&f)&&(n?n[u](i,a,t):s.T.push((()=>{s.D[u](i,a,t)})))}catch(u){j(u,o)}}))}if(2&l){if(n.componentShouldUpdate&&n.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||ve(s,!1)}}},Gt=(e,t,i)=>{var r,s;const o=e.prototype;64&t.i&&1&i&&_t.forEach((a=>{const l=o[a];Object.defineProperty(o,a,{value(...n){var c;const p=M(this),d=this;d?typeof l=="function"&&l.call(d,...n):(c=p?.H)==null||c.then((u=>{const f=u[a];typeof f=="function"&&f.call(u,...n)}))}})}));{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((r=t.t)!=null?r:{});a.map((([l,[n]])=>{if(31&n||32&n){const{get:c,set:p}=z(o,l)||{};c&&(t.t[l][0]|=2048),p&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return c?c.apply(this):(d=l,M(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(d){const u=M(this);if(u){if(p)return(32&n?this[l]:u.$hostElement$[l])===void 0&&u.l.get(l)&&(d=u.l.get(l)),p.apply(this,[je(d,n,!!(64&t.i))]),void Ke(this,l,d=32&n?this[l]:u.$hostElement$[l],t);Ke(this,l,d,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(n,c,p){I.jmp((()=>{var d;const u=l.get(n),f=M(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==p)return;if(u==null){const m=f?.i;if(f&&m&&!(8&m)&&p!==c){const v=this,w=(d=t.F)==null?void 0:d[n];w?.forEach((_=>{const[[x,T]]=Object.entries(_);v[x]!=null&&(128&m||1&T)&&v[x].call(v,p,c,n)}))}return}const h=a.find((([m])=>m===u)),y=h&&4&h[1][0],C=y&&p===null&&this[u]===void 0;y&&(p=p!==null&&p!=="false");const b=Object.getOwnPropertyDescriptor(o,u);C||p==this[u]||b.get&&!b.set||(this[u]=p)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.F)!=null?s:{}),...a.filter((([n,c])=>31&c[0])).map((([n,c])=>{var p;const d=c[1]||n;return l.set(d,n),512&c[0]&&((p=t.C)==null||p.push([n,d])),d}))]))}}return e},be=(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 r=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),o["s-p"]=[],o["s-rc"]=[];const n=l;o.__stencil__getHostRef=()=>n,512&a.i&&bt(o,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=M(this);if(!o)return;Ze(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&I.i)){const a=M(o);if(!a)return;const l=a.o;if(1&a.i)Ze(o,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(n=>{if(!P.document)return;const c=n["s-cr"]=P.document.createComment("");c["s-cn"]=!0,N(n,c,n.firstChild)})(o);{let n=o;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ue(a,a.R=n);break}}l.t&&Object.entries(l.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,n)){const p=o[n];delete o[n],o[n]=p}})),(async(n,c,p)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const y=Ve(p);U.has(y)||((C,b,m)=>{let v=U.get(C);oe&&m?(v=v||new CSSStyleSheet,typeof v=="string"?v=b:v.replaceSync(b)):v=b,U.set(C,v)})(y,h,!!(1&p.i))}const u=c.R,f=()=>ve(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){j(u,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(o,a,l)}}})(this),r&&r.call(this)},disconnectedCallback(){(async o=>{if(!(1&I.i)){const a=M(o);a?.V&&(a.V.map((l=>l())),a.V=void 0)}O.has(o)&&O.delete(o),o.shadowRoot&&O.has(o.shadowRoot)&&O.delete(o.shadowRoot)})(this),s&&s.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 St.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Gt(e,i,3)}catch(r){return j(r),e}},Ye=(e,t)=>t,Ze=(e,t,i)=>{i&&P.document&&i.map((([r,s,o])=>{const a=Lt(P.document,e,r),l=Dt(t,o),n=Bt(r);I.ael(a,s,l,n),(t.V=t.V||[]).push((()=>I.rel(a,s,l,n)))}))},Dt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(r){j(r,e.$hostElement$)}},Lt=(e,t,i)=>8&i?P:t,Bt=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function sr(e){return e}function Je(e){var t,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=Je(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function k(){for(var e,t,i=0,r="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=Je(e))&&(r&&(r+=" "),r+=t);return r}const Rt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,Ft=5,Qe=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*Ft)+1}`,shouldTextBeHiddenFromAt:Rt},Symbol.toStringTag,{value:"Module"})),ee=99,Wt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>ee?`${ee}+`:e.toString(),maxCount:ee,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>ee||i},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,r=typeof t=="string"&&t.trim().length>0,s=typeof i=="string"&&i.trim().length>0;return{hasLabel:r,hasSupportingText:s}}},Symbol.toStringTag,{value:"Module"})),te=64,Xe=10,et=te/2-Xe/2,qt=te/2,_e=2*Math.PI*et,Kt=`0 0 ${te} ${te}`,Yt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(i,e))/i*100,o=(_e*s/100).toFixed(2),a=(_e-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:qt,circumference:_e,radius:et,thickness:Xe,viewBox:Kt},Symbol.toStringTag,{value:"Module"})),tt=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:Zt}=Qe,Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const r=e==="random"?Zt():e;return k("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},r&&r!=="brand"&&`gids-avatar--${r}`,i)}},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},r)=>k("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":i},r)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>k("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),ei=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>k("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ti=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>k("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),ii=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>k("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),ri=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>k("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),si=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>k("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),oi=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>k("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"})),ni=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>k("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),ai=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>k("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),li=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>k("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),di=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileClassNames:({profileControlAppearance:e,profileControlBorderRadius:t,profileControlShadow:i,expanded:r},s)=>k("gids-profile",{"gids-profile--appearance-brand":e==="brand","gids-profile--appearance-danger":e==="danger","gids-profile--appearance-information":e==="information","gids-profile--appearance-positive":e==="positive","gids-profile--appearance-subtle":e==="subtle","gids-profile--appearance-warning":e==="warning","gids-profile--border-radius-sm":t==="sm","gids-profile--border-radius-md":t==="md","gids-profile--border-radius-lg":t==="lg","gids-profile--border-radius-full":t==="full","gids-profile--shadow-overflow":i==="overflow","gids-profile--shadow-overlay":i==="overlay","gids-profile--shadow-raised":i==="raised","gids-profile--expanded":r},s),getGidsProfileTextClassNames:({profileControlAppearance:e})=>{switch(e){case"brand":return{titleClasses:"gids-profile__title-typography gids-profile__title-brand",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-brand"};case"subtle":return{titleClasses:"gids-profile__title-typography gids-profile__title-subtle",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-subtle"};case"positive":return{titleClasses:"gids-profile__title-typography gids-profile__title-positive",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-positive"};case"information":return{titleClasses:"gids-profile__title-typography gids-profile__title-information",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-information"};case"warning":return{titleClasses:"gids-profile__title-typography gids-profile__title-warning",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-warning"};case"danger":return{titleClasses:"gids-profile__title-typography gids-profile__title-danger",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-danger"};default:return{titleClasses:"gids-profile__title-typography gids-profile__title-default",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-default"}}}},Symbol.toStringTag,{value:"Module"})),ci=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},r)=>k("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,r)},Symbol.toStringTag,{value:"Module"})),pi=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>k("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"})),ye=Symbol("defaultPath"),it=Symbol("pathSet"),Ce="gids-asset-paths-set";class gi extends EventTarget{#i=new Map;constructor(){super()}#e(t,i){this.#i.set(t,i)}#t(t){return this.#i.get(t)??null}#r=()=>{this.dispatchEvent(new Event(Ce))};haveAssetPathsBeenSet(){return this.#t(it)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ye,t);else{for(const r in t)this.#e(r,t[r]);i&&this.#e(ye,i)}this.#e(it,"true"),setTimeout(this.#r,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const r=this.#t(ye);if(r!==null)return`${r}${r.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Ce,t,{once:!0}),()=>{this.removeEventListener(Ce,t)}}}const xe=Symbol.for("GIDS"),ui=()=>(globalThis[xe]===void 0&&(globalThis[xe]={assetPaths:{}}),globalThis[xe]),hi=e=>{const t=ui().assetPaths;return t[e]===void 0&&(t[e]=new gi),t[e]};function Se(){return hi("@ganpatiinfo/gids-web-shared")}function fi(){return Se().haveAssetPathsBeenSet()}function rt(e){return Se().getAssetFilePath(e)}function mi(e){return Se().onAssetPathsSet(e)}let vi=0;const bi=(e,t="gids")=>e||`${t}-${vi++}`,st=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ot={"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"]},nt=new Map;for(const e in ot)for(const t of ot[e])nt.set(t,e);function _i(e){return nt.get(e)}function at(e,t="regular",i){const r=_i(e);let s=r??"";return i&&r&&(s=i(r)??r),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:yi}=oi,D=({name:e,size:t,appearance:i,alt:r,class:s,titleId:o,src:a,...l})=>{const n=bi(o);let c=a;return c===void 0&&fi()&&(c=at(e,i,rt)),g("svg",{ref:p=>{c===void 0&&mi((()=>{(function(d,u,f){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",at(u,f,rt)),d.appendChild(h)})(p,e,i)}))},width:"16",height:"16",class:yi({size:t},s),role:"img","aria-hidden":r===""?"true":void 0,"aria-labelledby":r===""?void 0:n,...l},r!==""&&g("title",{id:n},r||e),c!==void 0?g("use",{href:c}):null)};function lt(e){var t,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=lt(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function Ci(){for(var e,t,i=0,r="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=lt(e))&&(r&&(r+=" "),r+=t);return r}const{getDisplayContent:dt,shouldIncludeA11yText:xi}=Wt,{getGidsBadgeClassNames:Si}=Qt,ct=({appearance:e,type:t,count:i,accessibleText:r,outline:s,class:o,...a})=>{const l=xi(t,i,st(r));return g("span",{class:Si({appearance:e,type:t,outline:s},o),...a},l&&g("span",{class:"gids-visually-hidden"},st(r)?r:i),t==="notification"?l?g("span",{"aria-hidden":"true"},dt(i,r)):dt(i,r):null)},{shouldTextBeHiddenFromAt:Pi}=Qe,{getGidsAvatarClassNames:wi}=Jt,pt=({appearance:e,color:t,size:i,badge:r,text:s,imageSrc:o,alt:a,iconTitleId:l,class:n,...c})=>{const p=Pi({text:s,alt:a});return g("span",{class:wi({color:t,size:i},n),...c},e==="image"?g("img",{src:o,alt:a??s??"",width:"100",height:"100"}):e==="icon"?g(D,{name:"user",alt:a??s,titleId:l}):g("span",{role:p?void 0:"img","aria-hidden":p?"true":void 0,"aria-label":p?void 0:a??s},s),r)},{getGidsProfileMenuHeaderClassNames:Ti}=ai,{getProfileHeaderMenuAvatarText:Ii}=tt,ki=be(class extends se{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...i})},this.onHeaderItemTitlePress=t=>{const i=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...i})},this.onHeaderItemSupportingTextPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...i})},this.pressHeaderItems=t=>{const i=this.avatarProps,r=i?.badgeProps??{};return{originalEvent:t,appearance:i?.appearance??"text",color:i?.color??"brand",imageSrc:i?.imageSrc??"",size:i?.size??"xl",text:this.getAvatarText(),badgeProps:{...r},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,i=this?.headerTitle;return t?.text??Ii({headerTitle:i})}}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,i=this?.headerSupportingText,r=this?.avatarVisible??!1,s=this?.avatarBadgeVisible??!1,o=this?.avatarProps,a=o?.badgeProps,l=Ti({headerItemsPosition:e}),n=o?.size??"xl";return g(K,{key:"9b46b9581c3bdba759a9d4b8506a9acc8d44e144",class:l},r?g(pt,{onClick:this.onAvatarItemPress,appearance:o?.appearance??"text",color:o?.color??"brand",size:n,text:this.getAvatarText(),imageSrc:o?.imageSrc??"",alt:o?.alt??"alt-img",badge:s?g(ct,{appearance:a?.appearance??"information",type:a?.type,count:a?.count,outline:a?.outline}):void 0}):void 0,g("div",{key:"3a1758aef7a6393efcd87f52fbf21ba93977b62b",class:Ci("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},g("span",{key:"26ea32d71575058291f0b0df78046d5c4dc642fd",onClick:this.onHeaderItemTitlePress},t),g("p",{key:"e559efb7c4860826925d021cceee93f058380430",onClick:this.onHeaderItemSupportingTextPress},i)))}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 Pe(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,ki))}))}Pe();const{getGidsButtonGroupClassNames:Ai}=Xt,$i=({layout:e,class:t},i)=>g("span",{class:Ai({layout:e},t)},i),{getGidsHeadingClassNames:Ni,getGidsHeadingSupportingTextTypographyClass:Mi}=si,Vi=({heading:e,supportingText:t,level:i="section",children:r,supportingTextTypography:s,class:o})=>g("div",{class:Ni(o)},g("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?g("span",{class:i==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?g("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${Mi(s)}`},t):null:t:null),r?g($i,{layout:"wrap"},r):null),{getGidsEditButtonClassNames:Oi}=ri,Ei=({disabled:e,children:t,size:i="md",editButtonType:r="add",onPressEditButton:s,class:o,...a})=>g("button",{class:Oi({size:i},o),...a,onClick:s,disabled:e},r==="custom"&&t?g("div",null,t):r==="add"?g("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},g(D,{name:"add",appearance:"filled",size:i})):r==="remove"?g("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},g(D,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:ji}=ei,we=({orientation:e})=>g("hr",{class:ji({orientation:e})}),{getGidsListItemClassNames:Hi}=ni,zi=({id:e,value:t,index:i,defaultSelected:r,disabled:s,selected:o,editButton:a,onPressEditButton:l,onPressListItem:n,leadingAccessory:c,leadingSupport:p,leadingParagraph:d,trailingContent:u,trailingAccessory:f,trailingSupport:h,trailingParagraph:y,divider:C,role:b="list-item-option",isPlaceholderItem:m,class:v,...w},_)=>{const x=o||r;return g("button",{type:"button",id:e,class:Hi({selected:x,disabled:s},v),role:b,"aria-selected":x?"true":"false",disabled:s,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const T=_;return T?(Array.isArray(T)?T:[T]).map((S=>typeof S=="string"||typeof S=="number"?String(S):S&&typeof S=="object"&&"text"in S?S.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:T=>{const S=T.currentTarget;if(!S||T.defaultPrevented||S.disabled)return;const $=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:r,isPlaceholderItem:m}});n?.($)},"is-placeholder-item":m?"true":"false",...w},g("div",{class:"gids-list-item__main-container"},a==null||a==="none"||s?null:g(Ei,{size:"md",editButtonType:a,onPressEditButton:l}),c!=null?g("div",{class:s?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,g("div",{class:"gids-list-item__middle-content-container"},g("div",{class:"gids-list-item__leading-content-container"},g(Ye,null,_!=null?g("span",{class:s?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},_):null,g("div",{class:"gids-list-item__leading-support-content"},p!=null?typeof p=="string"?g("p",{class:s?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},p):p:null,d!=null?typeof d=="string"?g("p",{class:s?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),g("div",{class:"gids-list-item__trailing-content-container"},g(Ye,null,u!=null?typeof u=="string"?g("span",{class:s?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},u):u:null,g("div",{class:"gids-list-item__trailing-support-content"},h!=null?typeof h=="string"?g("p",{class:s?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},h):h:null,y!=null?typeof y=="string"?g("p",{class:s?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},y):y:null)))),x?g("div",{class:s?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},g(D,{name:"checkmark",size:"md",appearance:"regular"})):null,x||f==null?null:g("div",{class:s?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f)),C&&!x?g("div",{class:"gids-list-item__divider"},g(we,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:Gi}=ci,{calculateStrokeDasharray:Di,thickness:gt,radius:ut,centerPosition:ie,viewBox:Li}=Yt,Bi=({size:e,indeterminate:t,value:i,max:r,...s})=>{let o;return t||(o={strokeDashArray:Di(i,r||0),strokeDashoffset:"0"}),g("svg",{class:Gi({size:e,indeterminate:t,value:i}),viewBox:Li,...s},g("circle",{class:"gids-spinner-control__track",cx:ie,cy:ie,r:ut,"stroke-width":gt}),g("circle",{style:o,class:"gids-spinner-control__progress",cx:ie,cy:ie,r:ut,"stroke-width":gt}))},{getGidsSpinnerClassNames:Ri}=pi,{getElementVisibility:Fi}=Ut,Wi=({label:e,supportingText:t,size:i,indeterminate:r,value:s,max:o,class:a,...l})=>{const{hasLabel:n,hasSupportingText:c}=Fi({label:e,supportingText:t});return g("span",{class:Ri({size:i},a),...l},g(Bi,{size:i,indeterminate:r,value:s,max:o}),n&&g("span",{class:"gids-spinner__label"},e),c&&g("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:Ui}=ti,qi=({type:e="no-options",supportingText:t="No options",class:i,...r},s)=>g("div",{class:Ui({type:e},i),...r},e==="loading"?g(Wi,{indeterminate:!0,size:"md"}):null,e==="no-options"?g("span",null,t):null,e==="default"&&s!=null?s:null),{getGidsDropdownMenuClassNames:Ki}=ii,Yi=({sectionLabel:e,class:t,...i},r)=>g("div",{class:Ki(t),...i},e!=null&&e!==""?g(Vi,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,r!=null?g("div",{class:"gids-dropdown-menu__children"},r):null),{getGidsProfileMenuClassNames:Zi}=li,Ji=be(class extends se{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerVisible=!1,this.listSectionDividerVisible=!1,this.headerDividerVisible=!0,this.profileMenuItems=[],this.selectedProfileMenuItem=void 0,this.onListItemPress=({event:t,sectionIndex:i,itemIndex:r,item:s})=>{const o={...s,sectionIndex:i,itemIndex:r};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(o)&&this.onProfileMenuItemPress({originalEvent:t,id:s.id,sectionIndex:i,itemIndex:r,leadingLabel:s?.leadingLabel,leadingSupport:s?.leadingSupport,trailingLabel:s?.trailingLabel,trailingSupport:s?.trailingSupport}),this.profileMenuItemSelection(o)},this.profileMenuItemSelection=t=>{t?.id&&(this.isItemAlreadySelected(t)||(this.selectedProfileMenuItem=t))},this.isItemAlreadySelected=t=>t.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.isThisItemSelected=t=>t?.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasProfileMenuItems=()=>{const t=this?.profileMenuItems??[];return!!(t.length>0&&t[0]?.items&&t[0].items.length>0||this.hasHeaderItem())}}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}profileMenuItemsChanged(e){this.profileMenuItems=e}connectedCallback(){}render(){const e=this?.headerItem,t=this?.headerVisible,i=this?.headerDividerVisible,r=this?.listSectionDividerVisible,s=this?.profileMenuItems??[],o=Zi();return g(K,{key:"407f61b49299da79647d4896ae4aa5b5e1e47646",class:o},g(qi,{key:"6fb114148ee80d37e707f6c7fe74670b6f9b5fd2",type:this.hasProfileMenuItems()?"default":"no-options"},t?g("div",{class:"gids-profile-menu__header-container"},g("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?g("div",{class:"gids-profile-menu__header-divider-container"},g(we,null)):void 0,s.map(((a,l)=>g(Yi,{key:`${l+1}`,sectionLabel:a?.sectionLabel??""},(a?.items??[]).map(((n,c)=>g(zi,{...n,key:`${c+1}`,id:n.id,index:c,onPressListItem:p=>this.onListItemPress({event:p,sectionIndex:l,itemIndex:c,item:n}),selected:this.isThisItemSelected({...n,sectionIndex:l,itemIndex:c})},n?.leadingLabel))),l<s.length-1&&r?g(we,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile-menu .gids-divider{width:100%}.gids-profile-menu__header-divider-container{width:100%;padding-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-profile-menu__header-container{display:flex;width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) 0px}"}},[0,"gids-profile-menu",{headerItem:[16],headerVisible:[4,"header-visible"],listSectionDividerVisible:[4,"list-section-divider-visible"],headerDividerVisible:[4,"header-divider-visible"],profileMenuItems:[16],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],selectedProfileMenuItem:[32]},void 0,{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function ht(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,Ji);break;case"gids-profile-menu-header":customElements.get(e)||Pe()}}))}ht();const{getGidsProfileClassNames:Qi,getGidsProfileTextClassNames:Xi}=di,{getProfileHeaderMenuAvatarText:er}=tt,ft=be(class extends se{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.profileControlAppearance="default",this.profileControlAvatarVisible=!0,this.profileControlAvatarBadgeVisible=!0,this.profileControlBorderRadius="none",this.profileControlShadow="none",this.profileControlLeadingIconSize="sm",this.profileControlTrailingIconSize="sm",this.profileControlLeadingIconAppearance="filled",this.profileControlTrailingIconAppearance="filled",this.profileMenuItems=[],this.headerDividerVisible=!1,this.headerVisible=!1,this.listSectionDividerVisible=!1,this.isMenuExpanded=!1,this.onProfileControlPress=t=>{if(this.hasMenu()){const i=!this.isMenuExpanded;this.isMenuExpanded=i,this.onPressProfileControl&&this.onPressProfileControl({originalEvent:t,id:this.id,menuId:this?.menuId,expanded:i,profileControlTitle:this?.profileControlTitle,profileControlSupportingText:this?.profileControlSupportingText})}},this.onPressProfileMenuItem=t=>{this.isMenuExpanded=!1,this.onPressProfileMenuItem&&this.onPressProfileMenuItem({...t})},this.positionProfileMenu=()=>{const t=this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),r=window.innerWidth,s=window.innerHeight;t.style.maxHeight="none";const o=t.getBoundingClientRect(),a=s-i.bottom-8,l=i.top-4,n=o.height>a&&l>a,c=n?l:a;t.style.maxHeight=o.height>c?c+"px":"none";const p=t.getBoundingClientRect();let d=i.left;d+p.width>r-4&&(d=r-p.width-4),d<4&&(d=4),t.style.left=d-i.left+"px",t.style.top=n?-p.height-4+"px":i.height+4+"px"},this.getProfileControlAvatarText=()=>{const t=this?.profileControlAvatarProps,i=this?.profileControlTitle;return t?.text??er({headerTitle:i})},this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasMenu=()=>!!(this?.profileMenuItems&&this.profileMenuItems.length>0||this.hasHeaderItem()),this.handleDocumentClick=t=>{this.isMenuExpanded&&(t.composedPath().includes(this.hostElement)||(this.isMenuExpanded=!1))}}idChanged(e){this.id=e}profileControlAppearanceChanged(e){this.profileControlAppearance=e}profileControlAvatarPropsChanged(e){this.profileControlAvatarProps=e}expansionChanged(e){this.expanded=e,this.isMenuExpanded=e}profileControlAvatarVisibleChanged(e){this.profileControlAvatarVisible=e}profileControlAvatarBadgeVisibleChanged(e){this.profileControlAvatarBadgeVisible=e}profileControlBorderRadiusChanged(e){this.profileControlBorderRadius=e}profileControlShadowChanged(e){this.profileControlShadow=e}listSectionDividerVisibleChanged(e){this.listSectionDividerVisible=e}profileControlLeadingIconChanged(e){this.profileControlLeadingIcon=e}profileControlTrailingIconChanged(e){this.profileControlTrailingIcon=e}profileControlTitleChanged(e){this.profileControlTitle=e}profileControlSupportingTextChanged(e){this.profileControlSupportingText=e}headerDividerVisibleChanged(e){this.headerDividerVisible=e}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}profileMenuItemsChanged(e){this.profileMenuItems=e}connectedCallback(){this.isMenuExpanded=this?.expanded??!1}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick)}componentDidRender(){this.isMenuExpanded&&this.hasMenu()&&requestAnimationFrame((()=>{this.positionProfileMenu()}))}disconnectedCallback(){document.removeEventListener("click",this.handleDocumentClick)}render(){const e=this?.profileControlAppearance??"default",t=this?.profileControlAvatarProps,i=t?.badgeProps,r=this?.profileControlAvatarVisible??!1,s=this?.profileControlAvatarBadgeVisible??!1,o=this?.profileControlBorderRadius??"none",a=this?.profileControlShadow??"none",l=this?.profileControlLeadingIcon,n=this?.profileControlTrailingIcon,c=this?.profileControlTitle??"",p=this?.profileControlSupportingText??"",d=this?.profileMenuItems??[],u=this?.headerDividerVisible??!1,f=this?.headerVisible??!1,h=this?.headerItem,y=this?.listSectionDividerVisible??!1,C=this?.menuId,b=this?.isMenuExpanded??!1,m=this.hasMenu(),v=this?.profileControlLeadingIconSize??"sm",w=this?.profileControlTrailingIconSize??"sm",_=this?.profileControlLeadingIconAppearance??"filled",x=this?.profileControlTrailingIconAppearance??"filled",T=Qi({profileControlAppearance:e,profileControlBorderRadius:o,profileControlShadow:a,expanded:b&&m}),S=t?.size??"sm",{titleClasses:$,supportingTextClasses:re}=Xi({profileControlAppearance:e});let vt=t?.color??"brand";return e==="brand"&&(vt=t?.color??"default"),g(K,{key:"e3b93542314bfff5a8f7c901b83fb66aa6339df5",class:T,onClick:this.onProfileControlPress,"menu-expanded":b},l?g(D,{name:l,size:v,appearance:_}):void 0,g("div",{key:"4d9c9cb57ead65b8f9df399f1aca1588d34d9746",class:"gids-profile__main-container"},r?g(pt,{appearance:t?.appearance??"text",color:vt,size:S,text:this.getProfileControlAvatarText(),imageSrc:t?.imageSrc??"",alt:t?.alt??"alt-img",badge:s?g(ct,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,g("div",{key:"0f77df6a414da0a0c4322aff50790354ff43d0a0",class:"gids-profile__content-container"},g("span",{key:"a5b101bb070f00b90615e5589f31db479d0c9dc2",class:$},c),g("p",{key:"d55873ea2defcd4d456a513daecc8e3e907984fe",class:re},p))),n?g(D,{name:n,size:w,appearance:x}):void 0,m&&b?g("div",{class:"gids-profile__dropdown-menu-container",id:C,role:"profilePickerbox",onClick:rr=>rr.stopPropagation()},g("gids-profile-menu",{headerItem:h,headerDividerVisible:u,headerVisible:f,listSectionDividerVisible:y,profileMenuItems:d,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress,onProfileMenuItemPress:this.onPressProfileMenuItem})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],profileControlAppearance:[{profileControlAppearanceChanged:0}],profileControlAvatarProps:[{profileControlAvatarPropsChanged:0}],expanded:[{expansionChanged:0}],profileControlAvatarVisible:[{profileControlAvatarVisibleChanged:0}],profileControlAvatarBadgeVisible:[{profileControlAvatarBadgeVisibleChanged:0}],profileControlBorderRadius:[{profileControlBorderRadiusChanged:0}],profileControlShadow:[{profileControlShadowChanged:0}],listSectionDividerVisible:[{listSectionDividerVisibleChanged:0}],profileControlLeadingIcon:[{profileControlLeadingIconChanged:0}],profileControlTrailingIcon:[{profileControlTrailingIconChanged:0}],profileControlTitle:[{profileControlTitleChanged:0}],profileControlSupportingText:[{profileControlSupportingTextChanged:0}],headerDividerVisible:[{headerDividerVisibleChanged:0}],headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--gids-gap-150);cursor:pointer;background-color:var(--gids-color-background-neutral-default);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);--gidsIcon-color:var(--gids-color-icon-subtle);border-radius:var(--gids-border-radius-none)}.gids-profile:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-profile:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-profile__main-container{display:flex;align-items:center;flex:1;gap:var(--gids-gap-100)}.gids-profile__content-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.gids-profile__title-typography{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)}.gids-profile__supporting-text-typography{margin:0;padding:0;font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-profile__title-default{color:var(--gids-color-text-default)}.gids-profile__supporting-text-default{color:var(--gids-color-text-subtlest)}.gids-profile__title-brand{color:var(--gids-color-text-default)}.gids-profile__supporting-text-brand{color:var(--gids-color-text-subtlest)}.gids-profile__title-subtle{color:var(--gids-color-text-default)}.gids-profile__supporting-text-subtle{color:var(--gids-color-text-subtlest)}.gids-profile__title-positive{color:var(--gids-color-text-default)}.gids-profile__supporting-text-positive{color:var(--gids-color-text-subtlest)}.gids-profile__title-information{color:var(--gids-color-text-default)}.gids-profile__supporting-text-information{color:var(--gids-color-text-subtlest)}.gids-profile__title-warning{color:var(--gids-color-text-default)}.gids-profile__supporting-text-warning{color:var(--gids-color-text-subtlest)}.gids-profile__title-danger{color:var(--gids-color-text-default)}.gids-profile__supporting-text-danger{color:var(--gids-color-text-subtlest)}.gids-profile--appearance-brand{background-color:var(--gids-color-background-brand-subtlest-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-brand:hover{background-color:var(--gids-color-background-brand-subtlest-hovered)}.gids-profile--appearance-brand:active{background-color:var(--gids-color-background-brand-subtlest-pressed)}.gids-profile--appearance-danger{background-color:var(--gids-color-background-danger-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-danger:hover{background-color:var(--gids-color-background-danger-hovered)}.gids-profile--appearance-danger:active{background-color:var(--gids-color-background-danger-pressed)}.gids-profile--appearance-information{background-color:var(--gids-color-background-information-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-information:hover{background-color:var(--gids-color-background-information-hovered)}.gids-profile--appearance-information:active{background-color:var(--gids-color-background-information-pressed)}.gids-profile--appearance-positive{background-color:var(--gids-color-background-positive-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-positive:hover{background-color:var(--gids-color-background-positive-hovered)}.gids-profile--appearance-positive:active{background-color:var(--gids-color-background-positive-pressed)}.gids-profile--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-profile--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-profile--appearance-warning{background-color:var(--gids-color-background-warning-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-warning:hover{background-color:var(--gids-color-background-warning-hovered)}.gids-profile--appearance-warning:active{background-color:var(--gids-color-background-warning-pressed)}.gids-profile--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-profile--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-profile--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-profile--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-profile--shadow-overflow{box-shadow:var(--gids-elevation-shadow-overflow)}.gids-profile--shadow-overlay{box-shadow:var(--gids-elevation-shadow-overlay)}.gids-profile--shadow-raised{box-shadow:var(--gids-elevation-shadow-raised)}.gids-profile__dropdown-menu-container{position:absolute;left:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-profile__dropdown-menu-container>*{flex-shrink:0}.gids-profile--expanded .gids-profile__dropdown-menu-container{display:flex}.gids-profile--expanded .gids-profile__chevron{transform:rotate(180deg)}"}},[0,"gids-profile",{id:[1],menuId:[1,"menu-id"],expanded:[4],profileControlAppearance:[1,"profile-control-appearance"],profileControlAvatarProps:[16],profileControlAvatarVisible:[4,"profile-control-avatar-visible"],profileControlAvatarBadgeVisible:[4,"profile-control-avatar-badge-visible"],profileControlBorderRadius:[1,"profile-control-border-radius"],profileControlShadow:[1,"profile-control-shadow"],profileControlLeadingIcon:[1,"profile-control-leading-icon"],profileControlTrailingIcon:[1,"profile-control-trailing-icon"],profileControlLeadingIconSize:[1,"profile-control-leading-icon-size"],profileControlTrailingIconSize:[1,"profile-control-trailing-icon-size"],profileControlLeadingIconAppearance:[1,"profile-control-leading-icon-appearance"],profileControlTrailingIconAppearance:[1,"profile-control-trailing-icon-appearance"],profileControlTitle:[1,"profile-control-title"],profileControlSupportingText:[1,"profile-control-supporting-text"],profileMenuItems:[16],headerDividerVisible:[4,"header-divider-visible"],headerVisible:[4,"header-visible"],headerItem:[16],listSectionDividerVisible:[4,"list-section-divider-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],onPressProfileControl:[16],isMenuExpanded:[32]},void 0,{id:[{idChanged:0}],profileControlAppearance:[{profileControlAppearanceChanged:0}],profileControlAvatarProps:[{profileControlAvatarPropsChanged:0}],expanded:[{expansionChanged:0}],profileControlAvatarVisible:[{profileControlAvatarVisibleChanged:0}],profileControlAvatarBadgeVisible:[{profileControlAvatarBadgeVisibleChanged:0}],profileControlBorderRadius:[{profileControlBorderRadiusChanged:0}],profileControlShadow:[{profileControlShadowChanged:0}],listSectionDividerVisible:[{listSectionDividerVisibleChanged:0}],profileControlLeadingIcon:[{profileControlLeadingIconChanged:0}],profileControlTrailingIcon:[{profileControlTrailingIconChanged:0}],profileControlTitle:[{profileControlTitleChanged:0}],profileControlSupportingText:[{profileControlSupportingTextChanged:0}],headerDividerVisible:[{headerDividerVisibleChanged:0}],headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function mt(){typeof customElements<"u"&&["gids-profile","gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile":customElements.get(e)||customElements.define(e,ft);break;case"gids-profile-menu":customElements.get(e)||ht();break;case"gids-profile-menu-header":customElements.get(e)||Pe()}}))}mt();const tr=ft,ir=mt;E.GidsProfile=tr,E.defineCustomElement=ir,Object.defineProperty(E,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 b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const g=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),a?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Ee(e.S)),l},Ee=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,Y=!0)}_.i&=-2},J=(e,t)=>{_.i|=1;const o=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"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}_.i&=-2},je=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,E(c,i,B(t))))},xe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ee(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,a,f,m=!1)=>{let h,b,S=0,g=0,y=0,p=0,O=u.length-1,v=u[0],N=u[O],k=f.length-1,$=f[0],j=f[k];const Ue=a.O==="template"?d.content:d;for(;S<=O&&g<=k;)if(v==null)v=u[++S];else if(N==null)N=u[--O];else if($==null)$=f[++g];else if(j==null)j=f[--k];else if(K(v,$,m))D(v,$,m),v=u[++S],$=f[++g];else if(K(N,j,m))D(N,j,m),N=u[--O],j=f[--k];else if(K(v,j,m))v.O!=="slot"&&j.O!=="slot"||J(v.S.parentNode,!1),D(v,j,m),E(Ue,v.S,N.S.nextSibling),v=u[++S],j=f[--k];else if(K(N,$,m))v.O!=="slot"&&j.O!=="slot"||J(N.S.parentNode,!1),D(N,$,m),E(Ue,N.S,v.S),N=u[--O],$=f[++g];else{for(y=-1,p=S;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===$.$){y=p;break}y>=0?(b=u[y],b.O!==$.O?h=Z(u&&u[g],a,y):(D(b,$,m),u[y]=void 0,h=b.S),$=f[++g]):(h=Z(u&&u[g],a,g),$=f[++g]),h&&E(B(v.S).parentNode,h,B(v.S))}S>O?je(d,f[k+1]==null?null:f[k+1].S,a,f,g,k):g>k&&xe(u,S,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),je(s,null,t,l,0,l.length-1)):!o&&n!==null&&xe(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let c=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!r.N&&(r.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},nt=(e,t)=>{ae.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},lt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var a;const f=(a=t)&&a.O===Qe?t:G(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,D(u,f,o),_.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,E(h.parentNode,h["s-ol"]=b,h,o)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),b){const S=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(E(S,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.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,E(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ve(f.S),_.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!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 b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],E(h.parentNode,b,h,o),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((m=>m())),ce.length=0,ae.forEach((m=>m())),ae.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const o=()=>rt(e,t);if(!t)return Ze(o);queueMicrotask((()=>{o()}))},rt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=U(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>U(s,"componentWillRender",void 0,o))),Pe(n,(()=>ct(e,s,t)))},Pe=(e,t)=>it(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ct=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,d=c.i,u=((a,f)=>{var m,h,b;const S=be(f),g=q.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,g)if(typeof g=="string"){let y,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=g;const O=(m=_._)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(O!=null&&y.setAttribute("nonce",O),!(1&f.i))if(a.nodeName==="HEAD"){const v=a.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,N?.parentNode===a?N:null)}else if("host"in a)if(Q){const v=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(g),X?a.adoptedStyleSheets.unshift(v):a.adoptedStyleSheets=[v,...a.adoptedStyleSheets]}else{const v=a.querySelector("style");v?v.textContent=g+v.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(a);if(y||T.set(a,y=new Set),!y.has(S)){const p=(b=a.defaultView)!=null?b:a.ownerDocument.defaultView;let O;if(g.constructor===p.CSSStyleSheet)O=g;else{O=new p.CSSStyleSheet;for(let v=0;v<g.cssRules.length;v++)O.insertRule(g.cssRules[v].cssText,v)}X?a.adoptedStyleSheets.push(O):a.adoptedStyleSheets=[...a.adoptedStyleSheets,O],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>dt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},at=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,lt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},dt=e=>{const t=e.$hostElement$,o=t,s=e.R;U(o,"componentDidRender",void 0,t),64&e.i?U(o,"componentDidUpdate",void 0,t):(e.i|=64,ft(t),U(o,"componentDidLoad",void 0,t),e.L(t),s||ut()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},ut=()=>{se((()=>tt(w,"appload",{detail:{namespace:"gids-core-web"}})))},U=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},ft=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=x(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Oe(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((a=>{try{const[[f,m]]=Object.entries(a);(128&c||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){P(f,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||de(n,!1)}}},ht=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ge.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),a=this;a?typeof c=="function"&&c.call(a,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ne(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((([c,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(l,c)||{};d&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return d?d.apply(this):(a=c,x(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const f=x(this);if(f){if(u)return(32&r?this[c]:f.$hostElement$[c])===void 0&&f.l.get(c)&&(a=f.l.get(c)),u.apply(this,[Oe(a,r,!!(64&t.i))]),void Le(this,c,a=32&r?this[c]:f.$hostElement$[c],t);Le(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var a;const f=c.get(r),m=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,O=(a=t.F)==null?void 0:a[r];O?.forEach((v=>{const[[N,k]]=Object.entries(v);p[N]!=null&&(128&y||1&k)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||g.get&&!g.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const a=d[1]||r;return c.set(a,r),512&d[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},pt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ne(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((d=>c.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&qe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=x(this);if(!l)return;Me(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=x(l);if(!i)return;const c=i.o;if(1&i.i)Me(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const b=be(u);q.has(b)||((S,g,y)=>{let p=q.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=x(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Je.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),ht(e,o,3)}catch(s){return P(s),e}},Me=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=yt(w.document,e,s),c=mt(t,l),r=gt(s);_.ael(i,n,c,r),(t.V=t.V||[]).push((()=>_.rel(i,n,c,r)))}))},mt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},yt=(e,t,o)=>8&o?w:t,gt=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ot(e){return e}const H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let De=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),H.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(De||(De=He()),H);function Fe(e){var t,o,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]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function St(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>St("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:Ve}=bt,We=pt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ve(e)}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ve(this.extraClasses)}render(){return G("div",{key:"6eb29ef0727480d68dde79ff61f76c2fe12ff1ac",class:this.activeClasses,part:"root"},G("slot",{key:"97c7b27716ed3bd06a2746f5f5abd3b1983cfc85"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const wt=We,Nt=Be;R.GidsScrim=wt,R.defineCustomElement=Nt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const g=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),a?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Ee(e.S)),l},Ee=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,Y=!0)}_.i&=-2},J=(e,t)=>{_.i|=1;const o=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"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}_.i&=-2},je=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,E(c,i,B(t))))},xe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ee(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,a,f,m=!1)=>{let h,b,S=0,g=0,y=0,p=0,O=u.length-1,v=u[0],N=u[O],k=f.length-1,$=f[0],j=f[k];const Ue=a.O==="template"?d.content:d;for(;S<=O&&g<=k;)if(v==null)v=u[++S];else if(N==null)N=u[--O];else if($==null)$=f[++g];else if(j==null)j=f[--k];else if(K(v,$,m))D(v,$,m),v=u[++S],$=f[++g];else if(K(N,j,m))D(N,j,m),N=u[--O],j=f[--k];else if(K(v,j,m))v.O!=="slot"&&j.O!=="slot"||J(v.S.parentNode,!1),D(v,j,m),E(Ue,v.S,N.S.nextSibling),v=u[++S],j=f[--k];else if(K(N,$,m))v.O!=="slot"&&j.O!=="slot"||J(N.S.parentNode,!1),D(N,$,m),E(Ue,N.S,v.S),N=u[--O],$=f[++g];else{for(y=-1,p=S;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===$.$){y=p;break}y>=0?(b=u[y],b.O!==$.O?h=Z(u&&u[g],a,y):(D(b,$,m),u[y]=void 0,h=b.S),$=f[++g]):(h=Z(u&&u[g],a,g),$=f[++g]),h&&E(B(v.S).parentNode,h,B(v.S))}S>O?je(d,f[k+1]==null?null:f[k+1].S,a,f,g,k):g>k&&xe(u,S,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),je(s,null,t,l,0,l.length-1)):!o&&n!==null&&xe(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let c=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!r.N&&(r.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},nt=(e,t)=>{ae.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},lt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var a;const f=(a=t)&&a.O===Qe?t:G(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,D(u,f,o),_.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,E(h.parentNode,h["s-ol"]=b,h,o)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),b){const S=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(E(S,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.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,E(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ve(f.S),_.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!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 b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],E(h.parentNode,b,h,o),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((m=>m())),ce.length=0,ae.forEach((m=>m())),ae.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const o=()=>rt(e,t);if(!t)return Ze(o);queueMicrotask((()=>{o()}))},rt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=U(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>U(s,"componentWillRender",void 0,o))),Pe(n,(()=>ct(e,s,t)))},Pe=(e,t)=>it(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ct=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,d=c.i,u=((a,f)=>{var m,h,b;const S=be(f),g=q.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,g)if(typeof g=="string"){let y,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=g;const O=(m=_._)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(O!=null&&y.setAttribute("nonce",O),!(1&f.i))if(a.nodeName==="HEAD"){const v=a.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,N?.parentNode===a?N:null)}else if("host"in a)if(Q){const v=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(g),X?a.adoptedStyleSheets.unshift(v):a.adoptedStyleSheets=[v,...a.adoptedStyleSheets]}else{const v=a.querySelector("style");v?v.textContent=g+v.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(a);if(y||T.set(a,y=new Set),!y.has(S)){const p=(b=a.defaultView)!=null?b:a.ownerDocument.defaultView;let O;if(g.constructor===p.CSSStyleSheet)O=g;else{O=new p.CSSStyleSheet;for(let v=0;v<g.cssRules.length;v++)O.insertRule(g.cssRules[v].cssText,v)}X?a.adoptedStyleSheets.push(O):a.adoptedStyleSheets=[...a.adoptedStyleSheets,O],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>dt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},at=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,lt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},dt=e=>{const t=e.$hostElement$,o=t,s=e.R;U(o,"componentDidRender",void 0,t),64&e.i?U(o,"componentDidUpdate",void 0,t):(e.i|=64,ft(t),U(o,"componentDidLoad",void 0,t),e.L(t),s||ut()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},ut=()=>{se((()=>tt(w,"appload",{detail:{namespace:"gids-core-web"}})))},U=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},ft=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=x(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Oe(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((a=>{try{const[[f,m]]=Object.entries(a);(128&c||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){P(f,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||de(n,!1)}}},ht=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ge.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),a=this;a?typeof c=="function"&&c.call(a,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ne(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((([c,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(l,c)||{};d&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return d?d.apply(this):(a=c,x(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const f=x(this);if(f){if(u)return(32&r?this[c]:f.$hostElement$[c])===void 0&&f.l.get(c)&&(a=f.l.get(c)),u.apply(this,[Oe(a,r,!!(64&t.i))]),void Le(this,c,a=32&r?this[c]:f.$hostElement$[c],t);Le(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var a;const f=c.get(r),m=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,O=(a=t.F)==null?void 0:a[r];O?.forEach((v=>{const[[N,k]]=Object.entries(v);p[N]!=null&&(128&y||1&k)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||g.get&&!g.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const a=d[1]||r;return c.set(a,r),512&d[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},pt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ne(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((d=>c.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&qe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=x(this);if(!l)return;Me(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=x(l);if(!i)return;const c=i.o;if(1&i.i)Me(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const b=be(u);q.has(b)||((S,g,y)=>{let p=q.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=x(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Je.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),ht(e,o,3)}catch(s){return P(s),e}},Me=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=yt(w.document,e,s),c=mt(t,l),r=gt(s);_.ael(i,n,c,r),(t.V=t.V||[]).push((()=>_.rel(i,n,c,r)))}))},mt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},yt=(e,t,o)=>8&o?w:t,gt=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ot(e){return e}const H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let De=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),H.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(De||(De=He()),H);function Fe(e){var t,o,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]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function St(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>St("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:Ve}=bt,We=pt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ve(e)}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ve(this.extraClasses)}render(){return G("div",{key:"dfe5f3ca193fe3c81b79d43391052b06103de249",class:this.activeClasses,part:"root"},G("slot",{key:"ae8ccbb1edf80ba2913c0af0bf06674a81e9e679"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const wt=We,Nt=Be;R.GidsScrim=wt,R.defineCustomElement=Nt,Object.defineProperty(R,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 S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),r},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,X=!0)}O.i&=-2},G=(e,t)=>{O.i|=1;const o=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"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,X=!0),t&&G(n,t)}O.i&=-2},Ee=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,$(a,i,B(t))))},$e=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ae(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():G(r,!0),r.remove())}}},I=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?(_=i==="svg"||i!=="foreignObject"&&_,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,_),n!==null&&r!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,N=u.length-1,v=u[0],w=u[N],j=f.length-1,E=f[0],C=f[j];const Me=c.O==="template"?d.content:d;for(;b<=N&&y<=j;)if(v==null)v=u[++b];else if(w==null)w=u[--N];else if(E==null)E=f[++y];else if(C==null)C=f[--j];else if(I(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(I(w,C,m))H(w,C,m),w=u[--N],C=f[--j];else if(I(v,C,m))v.O!=="slot"&&C.O!=="slot"||G(v.S.parentNode,!1),H(v,C,m),$(Me,v.S,w.S.nextSibling),v=u[++b],C=f[--j];else if(I(w,E,m))v.O!=="slot"&&C.O!=="slot"||G(w.S.parentNode,!1),H(w,E,m),$(Me,w.S,v.S),w=u[--N],E=f[++y];else{for(g=-1,p=b;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&$(B(v.S).parentNode,h,B(v.S))}b>N?Ee(d,f[j+1]==null?null:f[j+1].S,c,f,y,j):y>j&&$e(u,b,N)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,r,0,r.length-1)):!o&&n!==null&&$e(n,0,n.length-1),_&&i==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},x=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(ge(t,i)){let a=x.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],x.push({N:r,k:t})),t["s-sr"]&&x.map((l=>{ge(l.k,t["s-sn"])&&(a=x.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else x.some((a=>a.k===t))||x.push({k:t})}r.nodeType===1&&Ce(r)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Ke=(e,t)=>{ae.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:te(se(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===ve?t:re(null,null,t);if(L=l.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,V=!(!(1&d.i)||128&d.i),oe=l["s-cr"],z=!1,H(u,f,o),O.i|=1,X){Ce(f.S);for(const m of x){const h=m.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of x){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if($(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,$(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(z&&me(f.S),O.i&=-2,x.length=0,!V&&!(1&d.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}oe=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},xe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);xe(e,e.R);const o=()=>et(e,t);if(!t)return qe(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Te(n,(()=>W(s,"componentWillRender",void 0,o))),Te(n,(()=>st(e,s,t)))},Te=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=U.get(b);if(!k.document)return b;if(c=c.nodeType===11?c:k.document,y)if(typeof y=="string"){let g,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(b)){g=k.document.createElement("style"),g.textContent=y;const N=(m=O._)!=null?m:(function(){var v,w,j;return(j=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?j:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(Z){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),J?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)N.insertRule(y.cssRules[v].cssText,v)}J?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),ot(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,lt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||rt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ee((()=>ce(e,!1))),e.i&=-517},rt=()=>{ee((()=>Ie(k,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},lt=e=>e.classList.add("hydrated"),Pe=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=ke(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(l?l[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Se(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((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=D(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const f=A(this);if(f){if(u)return(32&l?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[ke(c,l,!!(64&t.i))]),void Pe(this,a,c=32&l?this[a]:f.$hostElement$[a],t);Pe(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const f=a.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((v=>{const[[w,j]]=Object.entries(v);p[w]!=null&&(128&g||1&j)&&p[w].call(p,u,d,l)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Fe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Re(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=A(r);if(!i)return;const a=i.o;if(1&i.i)Re(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!k.document)return;const d=l["s-cr"]=k.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){xe(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);U.has(S)||((b,y,g)=>{let p=U.get(b);Z&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,U.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=A(r);i?.V&&(i.V.map((a=>a())),i.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ze.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&k.document&&o.map((([s,n,r])=>{const i=dt(k.document,e,s),a=ct(t,r),l=ut(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?k:t,ut=e=>We?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,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]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>ft("gids-skeleton",{"gids-skeleton--variant-circular":e==="circular","gids-skeleton--variant-rectangular":e==="rectangular","gids-skeleton--variant-rounded":e==="rounded","gids-skeleton--animation-pulse":t==="pulse","gids-skeleton--animation-wave":t==="wave"})},Symbol.toStringTag,{value:"Module"})),{getSkeletonBaseClassNames:pt}=ht,De=at(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.variant="text",this.animation="none"}getDimension(e){if(e!=null)return typeof e=="number"?e+"px":e}getStyle(){const e={},t=this.getDimension(this.width),o=this.getDimension(this.height);return t!==void 0&&(e.width=t),o!==void 0&&(e.height=o),e}render(){const e=pt({variant:this.variant??"text",animation:this.animation??"none"});return re(ve,{key:"c0ab347f9aa9073e5161f3737200c4e34e6be5d5",class:e,style:this.getStyle(),"aria-hidden":"true"})}static get style(){return'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}'}},[0,"gids-skeleton",{variant:[1],animation:[1],width:[8],height:[8]}]);function He(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;P.GidsSkeleton=mt,P.defineCustomElement=gt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),r},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,X=!0)}O.i&=-2},G=(e,t)=>{O.i|=1;const o=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"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,X=!0),t&&G(n,t)}O.i&=-2},Ee=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,$(a,i,B(t))))},$e=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ae(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():G(r,!0),r.remove())}}},I=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?(_=i==="svg"||i!=="foreignObject"&&_,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,_),n!==null&&r!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,N=u.length-1,v=u[0],w=u[N],j=f.length-1,E=f[0],C=f[j];const Me=c.O==="template"?d.content:d;for(;b<=N&&y<=j;)if(v==null)v=u[++b];else if(w==null)w=u[--N];else if(E==null)E=f[++y];else if(C==null)C=f[--j];else if(I(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(I(w,C,m))H(w,C,m),w=u[--N],C=f[--j];else if(I(v,C,m))v.O!=="slot"&&C.O!=="slot"||G(v.S.parentNode,!1),H(v,C,m),$(Me,v.S,w.S.nextSibling),v=u[++b],C=f[--j];else if(I(w,E,m))v.O!=="slot"&&C.O!=="slot"||G(w.S.parentNode,!1),H(w,E,m),$(Me,w.S,v.S),w=u[--N],E=f[++y];else{for(g=-1,p=b;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&$(B(v.S).parentNode,h,B(v.S))}b>N?Ee(d,f[j+1]==null?null:f[j+1].S,c,f,y,j):y>j&&$e(u,b,N)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,r,0,r.length-1)):!o&&n!==null&&$e(n,0,n.length-1),_&&i==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},x=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(ge(t,i)){let a=x.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],x.push({N:r,k:t})),t["s-sr"]&&x.map((l=>{ge(l.k,t["s-sn"])&&(a=x.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else x.some((a=>a.k===t))||x.push({k:t})}r.nodeType===1&&Ce(r)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Ke=(e,t)=>{ae.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:te(se(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===ve?t:re(null,null,t);if(L=l.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,V=!(!(1&d.i)||128&d.i),oe=l["s-cr"],z=!1,H(u,f,o),O.i|=1,X){Ce(f.S);for(const m of x){const h=m.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of x){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if($(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,$(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(z&&me(f.S),O.i&=-2,x.length=0,!V&&!(1&d.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}oe=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},xe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);xe(e,e.R);const o=()=>et(e,t);if(!t)return qe(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Te(n,(()=>W(s,"componentWillRender",void 0,o))),Te(n,(()=>st(e,s,t)))},Te=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=U.get(b);if(!k.document)return b;if(c=c.nodeType===11?c:k.document,y)if(typeof y=="string"){let g,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(b)){g=k.document.createElement("style"),g.textContent=y;const N=(m=O._)!=null?m:(function(){var v,w,j;return(j=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?j:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(Z){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),J?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)N.insertRule(y.cssRules[v].cssText,v)}J?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),ot(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,lt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||rt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ee((()=>ce(e,!1))),e.i&=-517},rt=()=>{ee((()=>Ie(k,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},lt=e=>e.classList.add("hydrated"),Pe=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=ke(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(l?l[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Se(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((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=D(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const f=A(this);if(f){if(u)return(32&l?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[ke(c,l,!!(64&t.i))]),void Pe(this,a,c=32&l?this[a]:f.$hostElement$[a],t);Pe(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const f=a.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((v=>{const[[w,j]]=Object.entries(v);p[w]!=null&&(128&g||1&j)&&p[w].call(p,u,d,l)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Fe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Re(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=A(r);if(!i)return;const a=i.o;if(1&i.i)Re(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!k.document)return;const d=l["s-cr"]=k.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){xe(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);U.has(S)||((b,y,g)=>{let p=U.get(b);Z&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,U.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=A(r);i?.V&&(i.V.map((a=>a())),i.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ze.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&k.document&&o.map((([s,n,r])=>{const i=dt(k.document,e,s),a=ct(t,r),l=ut(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?k:t,ut=e=>We?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,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]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>ft("gids-skeleton",{"gids-skeleton--variant-circular":e==="circular","gids-skeleton--variant-rectangular":e==="rectangular","gids-skeleton--variant-rounded":e==="rounded","gids-skeleton--animation-pulse":t==="pulse","gids-skeleton--animation-wave":t==="wave"})},Symbol.toStringTag,{value:"Module"})),{getSkeletonBaseClassNames:pt}=ht,De=at(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.variant="text",this.animation="none"}getDimension(e){if(e!=null)return typeof e=="number"?e+"px":e}getStyle(){const e={},t=this.getDimension(this.width),o=this.getDimension(this.height);return t!==void 0&&(e.width=t),o!==void 0&&(e.height=o),e}render(){const e=pt({variant:this.variant??"text",animation:this.animation??"none"});return re(ve,{key:"08f348685310371a41275cc52d9142b2bc50c01e",class:e,style:this.getStyle(),"aria-hidden":"true"})}static get style(){return'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}'}},[0,"gids-skeleton",{variant:[1],animation:[1],width:[8],height:[8]}]);function He(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;P.GidsSkeleton=mt,P.defineCustomElement=gt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|