@ganpatiinfo/gids-core-web 18.0.0 → 20.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 +160 -17
- package/dist/css/index.css.map +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/types/components/html/GidsEcosystemCard/GidsEcosystemCard.d.ts +7 -0
- package/dist/types/components/html/GidsEcosystemIcon/GidsEcosystemIcon.d.ts +7 -0
- package/dist/types/components/html/GidsIconMarker/GidsIconMarker.d.ts +7 -0
- package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +3 -1
- package/dist/types/components.d.ts +11 -2
- package/dist-bundled/es/gids-bento-card.js +21 -16
- package/dist-bundled/umd/gids-bento-card.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(w,ve){typeof exports=="object"&&typeof module<"u"?ve(exports):typeof define=="function"&&define.amd?define(["exports"],ve):(w=typeof globalThis<"u"?globalThis:w||self,ve(w.gidsCoreWeb={}))})(this,(function(w){"use strict";var ie,oe;function ve(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const a=Object.getOwnPropertyDescriptor(e,t);if(a&&(!i||a.get))return a;e=Object.getPrototypeOf(e)}}var Me,bn=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[a]])=>{if(31&a||32&a){const r=e[s],o=ve(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(e,s,{get(){return o.get.call(this)},set(l){o.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()},yi=(e,t)=>t in e,pe=(e,t)=>(0,console.error)(e,t),
|
|
1
|
+
(function(w,ve){typeof exports=="object"&&typeof module<"u"?ve(exports):typeof define=="function"&&define.amd?define(["exports"],ve):(w=typeof globalThis<"u"?globalThis:w||self,ve(w.gidsCoreWeb={}))})(this,(function(w){"use strict";var ie,oe;function ve(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const a=Object.getOwnPropertyDescriptor(e,t);if(a&&(!i||a.get))return a;e=Object.getPrototypeOf(e)}}var Me,bn=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[a]])=>{if(31&a||32&a){const r=e[s],o=ve(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(e,s,{get(){return o.get.call(this)},set(l){o.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()},yi=(e,t)=>t in e,pe=(e,t)=>(0,console.error)(e,t),qe=new Map,_i="http://www.w3.org/1999/xlink",vn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],D=typeof window<"u"?window:{},E=D.HTMLElement||class{},N={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)},yn=(()=>{var e;let t=!1;try{(e=D.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),yt=(()=>{try{return!!D.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),_t=!!yt&&!!D.document&&Object.getOwnPropertyDescriptor(D.document.adoptedStyleSheets,"length").writable,xt=!1,xi=[],Ci=[],_n=(e,t)=>i=>{e.push(i),xt||(xt=!0,4&N.i?wt(Ct):N.raf(Ct))},wi=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){pe(i)}e.length=0},Ct=()=>{wi(xi),wi(Ci),(xt=xi.length>0)&&N.raf(Ct)},wt=e=>Promise.resolve(void 0).then(e),xn=_n(Ci),Cn=e=>{const t=new URL(e,N.u);return t.origin!==D.location.origin?t.href:t.pathname},wn=e=>N.u=e;function Sn(){const e=this.attachShadow({mode:"open"});Me===void 0&&(Me=null),Me&&(_t?e.adoptedStyleSheets.push(Me):e.adoptedStyleSheets=[...e.adoptedStyleSheets,Me])}var Si=e=>{const t=It(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&St(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!In(s,Ae(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&It(s,"childNodes").length&&Si(s)}};function St(e,t,i){let s,a=0,r=[];for(;a<e.length;a++){if(s=e[a],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||Ae(s)===i)&&(r.push(s),i!==void 0))return r;r=[...r,...St(s.childNodes,t,i)]}return r}var In=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let a=e;for(;a=a.nextSibling;)Ae(a)!==t||!i&&a["s-sr"]||s.push(a);return s},Ii=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",Ae=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function It(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 kt,ue,le=new WeakMap,ki=e=>"sc-"+e.p,Et=e=>(e=typeof e)=="object"||e==="function",n=(e,t,...i)=>{let s=null,a=null,r=null,o=!1,l=!1;const d=[],h=g=>{for(let p=0;p<g.length;p++)s=g[p],Array.isArray(s)?h(s):s!=null&&typeof s!="boolean"&&((o=typeof e!="function"&&!Et(s))&&(s=String(s)),o&&l?d[d.length-1].h+=s:d.push(o?We(null,s):s),l=o)};if(h(i),t){t.key&&(a=t.key),t.name&&(r=t.name);{const g=t.className||t.class;g&&(t.class=typeof g!="object"?g:Object.keys(g).filter((p=>g[p])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,d,kn);const c=We(e,null);return c.v=t,d.length>0&&(c.m=d),c.$=a,c.j=r,c},We=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),$={},kn={forEach:(e,t)=>e.map(Ei).forEach(t),map:(e,t)=>e.map(Ei).map(t).map(En)},Ei=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),En=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),n(e.vtag,i,...e.vchildren||[])}const t=We(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ti=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const a of t){if(i)break;for(const r of e[a])if(typeof r=="string"){i=!0;break}}if(!i)return e;const s={};for(const a of t)s[a]=e[a].map((r=>typeof r=="string"?{[r]:0}:r));return s},Li=(e,t,i)=>e==null||Et(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,De=(e,t)=>{const i=e;return{emit:s=>Pi(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},Pi=(e,t,i)=>{const s=N.ce(t,i);return e.dispatchEvent(s),s},Mi=(e,t,i,s,a,r)=>{if(i===s)return;let o=yi(e,t),l=t.toLowerCase();if(t==="class"){const d=e.classList,h=Ai(i);let c=Ai(s);d.remove(...h.filter((g=>g&&!c.includes(g)))),d.add(...c.filter((g=>g&&!h.includes(g))))}else if(t==="style"){for(const d in i)s&&s[d]!=null||(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(const d in s)i&&s[d]===i[d]||(d.includes("-")?e.style.setProperty(d,s[d]):e.style[d]=s[d])}else if(t!=="key"){if(t==="ref")s&&Pn(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const d=t.slice(5);let h;{const c=J(e);if(c&&c.o&&c.o.t){const g=c.o.t[d];g&&g[1]&&(h=g[1])}}return h||(h=d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(h)!==""||e.removeAttribute(h):e.setAttribute(h,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const d=t.slice(5);try{e[d]=s}catch{}return}{const d=Et(s);if((o||d&&s!==null)&&!a)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const c=s??"";t==="list"?o=!1:i!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}let h=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,h=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(h?e.removeAttributeNS(_i,t):e.removeAttribute(t)):(!o||4&r||a)&&!d&&e.nodeType===1&&(s=s===!0?"":s,h?e.setAttributeNS(_i,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):yi(D,l)?l.slice(2):l[2]+t.slice(3),i||s){const d=t.endsWith(Di);t=t.replace(Ln,""),i&&N.rel(e,t,i,d),s&&N.ael(e,t,s,d)}}},Tn=/\s/,Ai=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Tn):[]),Di="Capture",Ln=new RegExp(Di+"$"),Tt=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,a=e&&e.v||{},r=t.v||{};for(const o of zi(Object.keys(a)))o in r||Mi(s,o,a[o],void 0,i,t.i);for(const o of zi(Object.keys(r)))Mi(s,o,a[o],r[o],i,t.i)};function zi(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var ze=!1,Ue=!1,Xe=!1,j=!1,Lt=[],Pt=[],Ke=(e,t,i)=>{var s;const a=t.m[i];let r,o,l,d=0;if(ze||(Xe=!0,a.O==="slot"&&(a.i|=a.m?2:1)),a.h!=null)r=a.S=D.document.createTextNode(a.h);else if(1&a.i)r=a.S=D.document.createTextNode(""),Tt(null,a,j);else{if(j||(j=a.O==="svg"),!D.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=a.S=D.document.createElementNS(j?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ze&&2&a.i?"slot-fb":a.O),j&&a.O==="foreignObject"&&(j=!1),Tt(null,a,j),a.m){const h=a.O==="template"?r.content:r;for(d=0;d<a.m.length;++d)o=Ke(e,a,d),o&&h.appendChild(o)}a.O==="svg"?j=!1:r.tagName==="foreignObject"&&(j=!0)}return r["s-hn"]=ue,3&a.i&&(r["s-sr"]=!0,r["s-cr"]=kt,r["s-sn"]=a.j||"",r["s-rf"]=(s=a.v)==null?void 0:s.ref,(function(h){if(h.assignedElements||h.assignedNodes||!h["s-sr"])return;const c=g=>(function(p){const m=[],u=this["s-sn"];p?.flatten&&console.error(`
|
|
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 f=this["s-cr"].parentElement;return(f.__childNodes?f.childNodes:(v=>{const y=[];for(let _=0;_<v.length;_++){const b=v[_]["s-nr"]||void 0;b&&b.isConnected&&y.push(b)}return y})(f.childNodes)).forEach((v=>{u===Ae(v)&&m.push(v)})),g?m.filter((v=>v.nodeType===1)):m}).bind(h);h.assignedElements=c(!0),h.assignedNodes=c(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===a.O&&e.S&&Ni(e.S)),r},Ni=e=>{N.i|=1;const t=e.closest(ue.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((a=>a["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const a of i?s.reverse():s)a["s-sh"]!=null&&(K(t,a,i??null),a["s-sh"]=void 0,Ue=!0)}N.i&=-2},Ke=(e,t)=>{N.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"]===ue&&i.push(s)}for(let s=i.length-1;s>=0;s--){const a=i[s];a["s-hn"]!==ue&&a["s-ol"]&&(K(Ne(a).parentNode,a,Ne(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Ue=!0),t&&Ke(a,t)}N.i&=-2},$i=(e,t,i,s,a,r)=>{let o,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===ue&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);a<=r;++a)s[a]&&(o=Xe(null,i,a),o&&(s[a].S=o,K(l,o,Ne(t))))},Fi=(e,t,i)=>{for(let s=t;s<=i;++s){const a=e[s];if(a){const r=a.S;Bi(a),r&&(We=!0,r["s-ol"]?r["s-ol"].remove():Ke(r,!0),r.remove())}}},Qe=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Ne=e=>e&&e["s-ol"]||e,ye=(e,t,i=!1)=>{const s=t.S=e.S,a=e.m,r=t.m,o=t.O,l=t.h;let d;l==null?(j=o==="svg"||o!=="foreignObject"&&j,o!=="slot"||ze||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ni(t.S.parentElement)),Tt(e,t,j),a!==null&&r!==null?((h,c,g,p,m=!1)=>{let u,f,v=0,y=0,_=0,b=0,x=c.length-1,C=c[0],I=c[x],k=p.length-1,L=p[0],M=p[k];const A=g.O==="template"?h.content:h;for(;v<=x&&y<=k;)if(C==null)C=c[++v];else if(I==null)I=c[--x];else if(L==null)L=p[++y];else if(M==null)M=p[--k];else if(Qe(C,L,m))ye(C,L,m),C=c[++v],L=p[++y];else if(Qe(I,M,m))ye(I,M,m),I=c[--x],M=p[--k];else if(Qe(C,M,m))C.O!=="slot"&&M.O!=="slot"||Ke(C.S.parentNode,!1),ye(C,M,m),K(A,C.S,I.S.nextSibling),C=c[++v],M=p[--k];else if(Qe(I,L,m))C.O!=="slot"&&M.O!=="slot"||Ke(I.S.parentNode,!1),ye(I,L,m),K(A,I.S,C.S),I=c[--x],L=p[++y];else{for(_=-1,b=v;b<=x;++b)if(c[b]&&c[b].$!==null&&c[b].$===L.$){_=b;break}_>=0?(f=c[_],f.O!==L.O?u=Xe(c&&c[y],g,_):(ye(f,L,m),c[_]=void 0,u=f.S),L=p[++y]):(u=Xe(c&&c[y],g,y),L=p[++y]),u&&K(Ne(C.S).parentNode,u,Ne(C.S))}v>x?$i(h,p[k+1]==null?null:p[k+1].S,g,p,y,k):y>k&&Fi(c,v,x)})(s,a,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),$i(s,null,t,r,0,r.length-1)):!i&&a!==null&&Fi(a,0,a.length-1),j&&o==="svg"&&(j=!1)):(d=s["s-cr"])?d.parentNode.textContent=l:e.h!==l&&(s.data=l)},se=[],Oi=e=>{let t,i,s;const a=e.__childNodes||e.childNodes;for(const r of a){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const o=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(Ii(t,o)){let l=se.find((d=>d.k===t));We=!0,t["s-sn"]=t["s-sn"]||o,l?(l.k["s-sh"]=r["s-hn"],l.N=r):(t["s-sh"]=r["s-hn"],se.push({N:r,k:t})),t["s-sr"]&&se.map((d=>{Ii(d.k,t["s-sn"])&&(l=se.find((h=>h.k===t)),l&&!d.N&&(d.N=l.N))}))}else se.some((l=>l.k===t))||se.push({k:t})}r.nodeType===1&&Oi(r)}},Bi=e=>{e.v&&e.v.ref&&Lt.push((()=>e.v.ref(null))),e.m&&e.m.map(Bi)},Pn=(e,t)=>{Pt.push((()=>e(t)))},K=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:a}=(function(r,o){var l;if(!(o=o||((l=r["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const d=r["s-sn"]=Ae(r)||"";return{slotNode:St(It(o,"childNodes"),o.tagName,d)[0],slotName:d}})(t);return a&&!s&&a.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Vi=(e,t,i=!1)=>{var s,a,r,o,l;const d=e.$hostElement$,h=e.o,c=e.M||qe(null,null);var g;const p=(g=t)&&g.O===$?t:n(null,null,t);if(ue=d.tagName,h.C&&(p.v=p.v||{},h.C.forEach((([m,u])=>{p.v[u]=d[m]}))),i&&p.v)for(const m of Object.keys(p.v))d.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(p.v[m]=d[m]);if(p.O=null,p.i|=4,e.M=p,p.S=c.S=d.shadowRoot||d,ze=!(!(1&h.i)||128&h.i),kt=d["s-cr"],We=!1,ye(c,p,i),N.i|=1,Ue){Oi(p.S);for(const m of se){const u=m.k;if(!u["s-ol"]&&D.document){const f=D.document.createTextNode("");f["s-nr"]=u,K(u.parentNode,u["s-ol"]=f,u,i)}}for(const m of se){const u=m.k,f=m.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),f){const v=f.parentNode;let y=f.nextSibling;if(y&&y.nodeType===1){let _=(a=u["s-ol"])==null?void 0:a.previousSibling;for(;_;){let b=(r=_["s-nr"])!=null?r:null;if(b&&b["s-sn"]===u["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===u||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){y=b;break}}_=_.previousSibling}}if((!y&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(K(v,u,y,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const _=D.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));_["s-hn"]=u["s-hn"],_["s-sn"]=u["s-sn"],_["s-sh"]=u["s-sh"],_["s-sr"]=u["s-sr"],_["s-ol"]=u["s-ol"],_["s-ol"]["s-nr"]=_,K(u.parentNode,_,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(o=u["s-ih"])!=null&&o)}u&&typeof f["s-rf"]=="function"&&f["s-rf"](f)}else u.nodeType===1&&(u.hidden=!0)}}if(We&&Si(p.S),N.i&=-2,se.length=0,!ze&&!(1&h.i)&&d["s-cr"]){const m=p.S.__childNodes||p.S.childNodes;for(const u of m)if(u["s-hn"]!==ue&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const f=D.document.createComment("s-nt-"+u.nodeValue);f["s-sn"]=u["s-sn"],K(u.parentNode,f,u,i),u.parentNode.removeChild(u)}}}kt=void 0,Lt.forEach((m=>m())),Lt.length=0,Pt.forEach((m=>m())),Pt.length=0},Ri=(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()})))}},Ze=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ri(e,e.R);const i=()=>Mn(e,t);if(!t)return xn(i);queueMicrotask((()=>{i()}))},Mn=(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 a;return a=$e(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),a=Gi(a,(()=>$e(s,"componentWillRender",void 0,i))),Gi(a,(()=>Dn(e,s,t)))},Gi=(e,t)=>An(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),An=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Dn=async(e,t,i)=>{var s;const a=e.$hostElement$,r=a["s-rc"];i&&(o=>{const l=o.o,d=o.$hostElement$,h=l.i,c=((g,p)=>{var m,u,f;const v=ki(p),y=Ye.get(v);if(!D.document)return v;if(g=g.nodeType===11?g:D.document,y)if(typeof y=="string"){let _,b=le.get(g=g.head||g);if(b||le.set(g,b=new Set),!b.has(v)){_=D.document.createElement("style"),_.textContent=y;const x=(m=N._)!=null?m:(function(){var C,I,k;return(k=(I=(C=D.document.head)==null?void 0:C.querySelector('meta[name="csp-nonce"]'))==null?void 0:I.getAttribute("content"))!=null?k:void 0})();if(x!=null&&_.setAttribute("nonce",x),!(1&p.i))if(g.nodeName==="HEAD"){const C=g.querySelectorAll("link[rel=preconnect]"),I=C.length>0?C[C.length-1].nextSibling:g.querySelector("style");g.insertBefore(_,I?.parentNode===g?I:null)}else if("host"in g)if(yt){const C=new((u=g.defaultView)!=null?u:g.ownerDocument.defaultView).CSSStyleSheet;C.replaceSync(y),_t?g.adoptedStyleSheets.unshift(C):g.adoptedStyleSheets=[C,...g.adoptedStyleSheets]}else{const C=g.querySelector("style");C?C.textContent=y+C.textContent:g.prepend(_)}else g.append(_);1&p.i&&g.insertBefore(_,null),4&p.i&&(_.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let _=le.get(g);if(_||le.set(g,_=new Set),!_.has(v)){const b=(f=g.defaultView)!=null?f:g.ownerDocument.defaultView;let x;if(y.constructor===b.CSSStyleSheet)x=y;else{x=new b.CSSStyleSheet;for(let C=0;C<y.cssRules.length;C++)x.insertRule(y.cssRules[C].cssText,C)}_t?g.adoptedStyleSheets.push(x):g.adoptedStyleSheets=[...g.adoptedStyleSheets,x],_.add(v)}}return v})(d.shadowRoot?d.shadowRoot:d.getRootNode(),l);10&h&&(d["s-sc"]=c,d.classList.add(c+"-h"))})(e),zn(e,t,a,i),r&&(r.map((o=>o())),a["s-rc"]=void 0);{const o=(s=a["s-p"])!=null?s:[],l=()=>Nn(e);o.length===0?l():(Promise.all(o).then(l).catch(l),e.i|=4,o.length=0)}},zn=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Vi(e,t,s)}catch(a){pe(a,e.$hostElement$)}return null},Nn=e=>{const t=e.$hostElement$,i=t,s=e.R;$e(i,"componentDidRender",void 0,t),64&e.i?$e(i,"componentDidUpdate",void 0,t):(e.i|=64,Fn(t),$e(i,"componentDidLoad",void 0,t),e.L(t),s||$n()),e.A&&(e.A(),e.A=void 0),512&e.i&&wt((()=>Ze(e,!1))),e.i&=-517},Hi=e=>{var t;{const i=J(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Ze(i,!1),s}},$n=()=>{wt((()=>Pi(D,"appload",{detail:{namespace:"gids-core-web"}})))},$e=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(a){pe(a,s)}},Fn=e=>e.classList.add("hydrated"),ji=(e,t,i,s)=>{const a=J(e);if(!a)return;const r=e,o=a.l.get(t),l=a.i,d=r;i=Li(i,s.t[t][0],!!(64&s.i));const h=Number.isNaN(o)&&Number.isNaN(i);if(i!==o&&!h){if(a.l.set(t,i),s.F){const c=s.F[t];c&&c.map((g=>{try{const[[p,m]]=Object.entries(g);(128&l||1&m)&&(d?d[p](i,o,t):a.T.push((()=>{a.D[p](i,o,t)})))}catch(p){pe(p,r)}}))}if(2&l){if(d.componentShouldUpdate&&d.componentShouldUpdate(i,o,t)===!1&&!(16&l))return;16&l||Ze(a,!1)}}},On=(e,t,i)=>{var s,a;const r=e.prototype;64&t.i&&1&i&&vn.forEach((o=>{const l=r[o];Object.defineProperty(r,o,{value(...d){var h;const c=J(this),g=this;g?typeof l=="function"&&l.call(g,...d):(h=c?.H)==null||h.then((p=>{const m=p[o];typeof m=="function"&&m.call(p,...d)}))}})}));{e.watchers&&!t.F&&(t.F=Ti(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([l,[d]])=>{if(31&d||32&d){const{get:h,set:c}=ve(r,l)||{};h&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return h?h.apply(this):(g=l,J(this).l.get(g));var g},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(g){const p=J(this);if(p){if(c)return(32&d?this[l]:p.$hostElement$[l])===void 0&&p.l.get(l)&&(g=p.l.get(l)),c.apply(this,[Li(g,d,!!(64&t.i))]),void ji(this,l,g=32&d?this[l]:p.$hostElement$[l],t);ji(this,l,g,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(d,h,c){N.jmp((()=>{var g;const p=l.get(d),m=J(this);if(this.hasOwnProperty(p),r.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==c)return;if(p==null){const _=m?.i;if(m&&_&&!(8&_)&&c!==h){const b=this,x=(g=t.F)==null?void 0:g[d];x?.forEach((C=>{const[[I,k]]=Object.entries(C);b[I]!=null&&(128&_||1&k)&&b[I].call(b,c,h,d)}))}return}const u=o.find((([_])=>_===p)),f=u&&4&u[1][0],v=f&&c===null&&this[p]===void 0;f&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(r,p);v||c==this[p]||y.get&&!y.set||(this[p]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.F)!=null?a:{}),...o.filter((([d,h])=>31&h[0])).map((([d,h])=>{var c;const g=h[1]||d;return l.set(g,d),512&h[0]&&((c=t.C)==null||c.push([d,g])),g}))]))}}return e},T=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ti(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,o)=>{const l={i:0,$hostElement$:r,o,l:new Map,B:new Map};l.H=new Promise((h=>l.L=h)),r["s-p"]=[],r["s-rc"]=[];const d=l;r.__stencil__getHostRef=()=>d,512&o.i&&bn(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=J(this);if(!r)return;Yi(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&N.i)){const o=J(r);if(!o)return;const l=o.o;if(1&o.i)Yi(r,o,l.W),o?.D||o?.H&&o.H.then((()=>{}));else{o.i|=1,12&l.i&&(d=>{if(!D.document)return;const h=d["s-cr"]=D.document.createComment("");h["s-cn"]=!0,K(d,h,d.firstChild)})(r);{let d=r;for(;d=d.parentNode||d.host;)if(d["s-p"]){Ri(o,o.R=d);break}}l.t&&Object.entries(l.t).map((([d,[h]])=>{if(31&h&&Object.prototype.hasOwnProperty.call(r,d)){const c=r[d];delete r[d],r[d]=c}})),(async(d,h,c)=>{let g;try{if(!(32&h.i)&&(h.i|=32,g=d.constructor,customElements.whenDefined(d.localName).then((()=>h.i|=128)),g&&g.style)){let u;typeof g.style=="string"&&(u=g.style);const f=ki(c);Ye.has(f)||((v,y,_)=>{let b=Ye.get(v);yt&&_?(b=b||new CSSStyleSheet,typeof b=="string"?b=y:b.replaceSync(y)):b=y,Ye.set(v,b)})(f,u,!!(1&c.i))}const p=h.R,m=()=>Ze(h,!0);p&&p["s-rc"]?p["s-rc"].push(m):m()}catch(p){pe(p,d),h.A&&(h.A(),h.A=void 0),h.L&&h.L(d)}})(r,o,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&N.i)){const o=J(r);o?.V&&(o.V.map((l=>l())),o.V=void 0)}le.has(r)&&le.delete(r),r.shadowRoot&&le.has(r.shadowRoot)&&le.delete(r.shadowRoot)})(this),a&&a.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 Sn.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),On(e,i,3)}catch(s){return pe(s),e}},ae=(e,t)=>t,Yi=(e,t,i)=>{i&&D.document&&i.map((([s,a,r])=>{const o=Vn(D.document,e,s),l=Bn(t,r),d=Rn(s);N.ael(o,a,l,d),(t.V=t.V||[]).push((()=>N.rel(o,a,l,d)))}))},Bn=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){pe(s,e.$hostElement$)}},Vn=(e,t,i)=>8&i?D:t,Rn=e=>yn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),Gn=e=>N._=e,Hn=e=>Object.assign(N,e),qi=new WeakMap;function jn(e,t){let i=qi.get(t);i||(i={i:0,o:{i:0,p:t.tagName},$hostElement$:t},qi.set(t,i)),Vi(i,e)}function gh(e){return e}function Wi(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=Wi(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function S(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=Wi(e))&&(s&&(s+=" "),s+=t);return s}const Yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsActionBarClassNames:e=>S("gids-action-bar",e)},Symbol.toStringTag,{value:"Module"})),qn=Object.freeze(Object.defineProperty({__proto__:null,getGidsActivityGaugeClassNames:({breakpoint:e},t)=>S("gids-activity-gauge",{"gids-activity-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Wn=Object.freeze(Object.defineProperty({__proto__:null,getGidsAdvancedTooltipClassNames:({visible:e},t)=>S("gids-advanced-tooltip",{"gids-advanced-tooltip--visible":e},t)},Symbol.toStringTag,{value:"Module"})),Un=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,Xn=5,Ui=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*Xn)+1}`,shouldTextBeHiddenFromAt:Un},Symbol.toStringTag,{value:"Module"})),Je=99,Kn=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Je?`${Je}+`:e.toString(),maxCount:Je,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>Je||i},Symbol.toStringTag,{value:"Module"})),Xi=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Qn=/\w/,Zn=e=>e.replace(Qn,t=>t.toLocaleUpperCase()),Ki=(e,t)=>typeof e=="function"?e(t):t?Zn(e):e,Jn=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:a})=>{const r=a?a(e):Xi(e);if(t==="required")return Ki(s&&s.length>0?s:"(required)",r);if(t==="optional")return Ki(i&&i.length>0?i:"(optional)",r)},isSentence:Xi},Symbol.toStringTag,{value:"Module"})),er=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),tr=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),Mt=/[A-Z]/,At=/[a-z]/,Dt=/[0-9]/,zt=/[^A-Za-z0-9]/,ir=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const i=t>0?e/t*100:0;return i<=20?"is-weak":i<=40?"is-medium":i<=60?"is-good-enough":i<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:i=0})=>{if(!e||e==="")return 0;let s=0;return t.includes("1-uppercase")&&Mt.test(e)&&s++,t.includes("1-lowercase")&&At.test(e)&&s++,t.includes("1-digit")&&Dt.test(e)&&s++,t.includes("1-special-character")&&zt.test(e)&&s++,t.includes("include-min-length")&&i&&i>0&&e.length>=i&&s++,s},include1DigitReg:Dt,include1LowercaseLetterReg:At,include1SpecialCharReg:zt,include1UppercaseLetterReg:Mt},Symbol.toStringTag,{value:"Module"})),Fe=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Nt=e=>{const t=[];return e&&e.length>0&&e.map(i=>{i?.requirementRule&&t.push(i.requirementRule)}),t},sr=({rule:e,textMinLength:t=0,text:i})=>{if(!i||i===""||!e&&!t)return!1;switch(e){case"1-uppercase":return Mt.test(i);case"1-lowercase":return At.test(i);case"1-digit":return Dt.test(i);case"1-special-character":return zt.test(i);case"include-min-length":return Fe({requirementRule:"include-min-length",textMinLength:t})===!0&&i.length>=t;default:return!1}},$t=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return Fe({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Nt(t),defaultRequirementsMeterRules:t}},ar=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:sr,getDefaultRulesAndRequirementsForMeters:$t,getMeterRulesFromRequirements:Nt,minLengthRuleCanBeApplied:Fe},Symbol.toStringTag,{value:"Module"})),nr=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),rr=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,a=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:a}}},Symbol.toStringTag,{value:"Module"})),et=64,Qi=10,Zi=et/2-Qi/2,or=et/2,Ft=2*Math.PI*Zi,lr=`0 0 ${et} ${et}`,dr=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,a=Math.max(0,Math.min(i,e))/i*100,r=(Ft*a/100).toFixed(2),o=(Ft-parseFloat(r)).toFixed(2);return`${r} ${o}`},centerPosition:or,circumference:Ft,radius:Zi,thickness:Qi,viewBox:lr},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,getTableCellBtnIcon:({cellActionButton:e,neededIconType:t="leading"})=>t==="trailing"?{cellIconName:e?.trailingIconName,cellIconAppearance:e?.trailingIconAppearance,cellIconSize:e?.trailingIconSize}:{cellIconName:e?.leadingIconName,cellIconAppearance:e?.leadingIconAppearance,cellIconSize:e?.leadingIconSize},isTableCellActionButtonVisible:e=>!!(e?.buttonLabel&&e.buttonLabel!==""||e?.leadingIconName&&e.leadingIconName!==""||e?.trailingIconName&&e.trailingIconName!=="")},Symbol.toStringTag,{value:"Module"})),Ji=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),es=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),gr="No Data!",hr=e=>`There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`,ts=100,pr=50,is="Invalid Progress Value!",ss=e=>`The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`,ur="Invalid Chart Type!",mr=e=>`You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`,{getRandomColor:fr}=Ui,br=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const s=e==="random"?fr():e;return S("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"})),vr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},s)=>S("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"})),yr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>S("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),_r=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableHeaderClassNames:({width:e},t)=>S("gids-basic-table-header",{"gids-basic-table-header--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),xr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableRowClassNames:({width:e},t)=>S("gids-basic-table-row",{"gids-basic-table-row--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Cr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBentoCardClassNames:({appearance:e,hasAccessorySlot:t},i)=>S("gids-bento-card",{"gids-bento-card--appearance-positive":e==="positive","gids-bento-card--appearance-warning":e==="warning","gids-bento-card--appearance-information":e==="information","gids-bento-card--appearance-danger":e==="danger","gids-bento-card--appearance-brand":e==="brand","gids-bento-card--accessory-slot-gapping":t},i)},Symbol.toStringTag,{value:"Module"})),wr=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonDockClassNames:e=>S("gids-button-dock",e)},Symbol.toStringTag,{value:"Module"})),Sr=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>S("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Ir=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:a,loading:r},o,l)=>S("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":i==="full","gids-button--destructive":s&&!a,"gids-button--positive":a&&!s,"gids-button--icon-only":o,"gids-button--loading":r},l)},Symbol.toStringTag,{value:"Module"})),kr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarCellClassNames:({disabled:e,selected:t,today:i,cellType:s,dot:a},r)=>S("gids-calendar-cell",{"gids-calendar-cell--selected":t&&!e&&!i,"gids-calendar-cell--today":i&&!e&&!a,"gids-calendar-cell--label-non-effective":s==="non-effective","gids-calendar-cell--default-effective":s==="effective"&&!e&&!i&&!t,"gids-calendar-cell--selected-effective":t&&s==="effective"&&!e&&!i,"gids-calendar-cell--today-effective":i&&s==="effective"&&!e&&!a,"gids-calendar-cell--default-disabled":e&&!i&&!t,"gids-calendar-cell--selected-disabled":e&&t&&!i,"gids-calendar-cell--today-disabled":e&&i&&!a,"gids-calendar-cell--today-dot":i&&!e&&a,"gids-calendar-cell--today-dot-effective":i&&s==="effective"&&!e&&a,"gids-calendar-cell--today-dot-disabled":e&&i&&a},r)},Symbol.toStringTag,{value:"Module"})),Er=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarDayCellClassNames:e=>S("gids-calendar-day-cell",e)},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getCalendarMonthNameViaMonthNumber:(e,t="en-US")=>{const i=new Date(2e3,e-1,1);return new Intl.DateTimeFormat(t,{month:"long"}).format(i)},getGidsCalendarHeaderPanelClassNames:e=>S("gids-calendar-header-panel",e)},Symbol.toStringTag,{value:"Module"})),Tr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarMonthListClassNames:e=>S("gids-calendar-month-list",e),getGidsCalendarMonthListMonths:()=>{const e=[],t=new Intl.DateTimeFormat("en-US",{month:"long"});for(let i=1;i<=12;i+=1){const s=new Date(2e3,i-1,1),a=t.format(s);e.push({id:`${i}`,title:a,value:i})}return e}},Symbol.toStringTag,{value:"Module"})),Lr=Object.freeze(Object.defineProperty({__proto__:null,generateCalendarDays:({currentMonth:e,currentYear:t})=>{if(!t||!e)return[];const i=t,s=e-1,a=new Date(i,s,1).getDay(),r=new Date(i,s+1,0).getDate(),o=new Date(i,s,0).getDate(),l=[],d=new Date().toISOString().split("T")[0];for(let c=a-1;c>=0;c--){const g=o-c,p=s===0?12:s,u=`${s===0?i-1:i}-${String(p).padStart(2,"0")}-${String(g).padStart(2,"0")}`;l.push({day:g,isCurrentMonth:!1,dateString:u,isToday:d===u})}for(let c=1;c<=r;c++){const g=`${i}-${String(e).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!0,dateString:g,isToday:d===g})}const h=42-l.length;for(let c=1;c<=h;c++){const g=s===11?1:s+2,m=`${s===11?i+1:i}-${String(g).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!1,dateString:m,isToday:d===m})}return l},generateCalendarWeekdays:()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],getGidsCalendarClassNames:({width:e},t)=>S("gids-calendar",{"gids-calendar--width-fixed":e==="fixed","gids-calendar--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Pr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>S("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const i=[];let s=1;for(let a=e;a<=t;a+=1)i.push({id:`${s}_${a}`,title:`${a}`,value:a}),s=s+1;return i},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),Mr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselControlBtnClassNames:({size:e="md"})=>{switch(e){case"xs":return"gids-carousel-control--xs gids-carousel-control__control";case"sm":return"gids-carousel-control__control gids-carousel-control--sm";case"lg":return"gids-carousel-control__control gids-carousel-control--lg";case"xl":return"gids-carousel-control__control gids-carousel-control--xl";default:return"gids-carousel-control__control gids-carousel-control--md"}},getGidsCarouselControlClassNames:e=>S("gids-carousel-control",e)},Symbol.toStringTag,{value:"Module"})),Ar=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselPaginationItemClassNames:({active:e,size:t},i)=>S("gids-carousel-pagination-item",{"gids-carousel-pagination-item--active":e,"gids-carousel-pagination-item--active-sm":t==="sm"&&e,"gids-carousel-pagination-item--active-md":t==="md"&&e,"gids-carousel-pagination-item--active-lg":t==="lg"&&e,"gids-carousel-pagination-item--active-xl":t==="xl"&&e,"gids-carousel-pagination-item--sm":t==="sm"&&!e,"gids-carousel-pagination-item--md":t==="md"&&!e,"gids-carousel-pagination-item--lg":t==="lg"&&!e,"gids-carousel-pagination-item--xl":t==="xl"&&!e},i)},Symbol.toStringTag,{value:"Module"})),Dr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselPaginationClassNames:e=>S("gids-carousel-pagination",e)},Symbol.toStringTag,{value:"Module"})),zr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselClassNames:e=>S("gids-carousel",e)},Symbol.toStringTag,{value:"Module"})),Nr=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>S("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),$r=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>S("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Fr=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartClassNames:e=>S("gids-chart",e)},Symbol.toStringTag,{value:"Module"})),Or=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxControlClassNames:e=>S("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),Br=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonClassNames:({size:e},t)=>S("gids-chevron-button",{"gids-chevron-button--sm":e==="sm","gids-chevron-button--md":e==="md","gids-chevron-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Vr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>S("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Rr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:i},s)=>S("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&i==="accent-1","gids-display-tag--accent-2":t==="subtle"&&i==="accent-2","gids-display-tag--accent-3":t==="subtle"&&i==="accent-3","gids-display-tag--accent-4":t==="subtle"&&i==="accent-4","gids-display-tag--accent-5":t==="subtle"&&i==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&i==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&i==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&i==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&i==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&i==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),Gr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>S("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Hr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:i},s)=>S("gids-dot",{"gids-dot--disabled":i,"gids-dot--subtle":e==="subtle"&&!i,"gids-dot--static-inverse":e==="static-inverse"&&!i,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),jr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>S("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),Yr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>S("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"})),qr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>S("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Wr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>S("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Ur=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>S("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>S("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Xr=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>S("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"})),Kr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionBodyListItemClassNames:e=>S("gids-expansion-body-list-item",e)},Symbol.toStringTag,{value:"Module"})),Qr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionBodyListClassNames:e=>S("gids-expansion-body-list",e)},Symbol.toStringTag,{value:"Module"})),Zr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionGroupClassNames:e=>S("gids-expansion-group",e)},Symbol.toStringTag,{value:"Module"})),Jr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionClassNames:({expanded:e},t)=>S("gids-expansion",{"gids-expansion--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),eo=Object.freeze(Object.defineProperty({__proto__:null,getGidsFeedbackBlockClassNames:e=>S("gids-feedback-block",e)},Symbol.toStringTag,{value:"Module"})),to=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>S("gids-field",e)},Symbol.toStringTag,{value:"Module"})),io=Object.freeze(Object.defineProperty({__proto__:null,getGidsFilterClassNames:({expanded:e},t)=>S("gids-filter",{"gids-filter--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),so=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeaderNavigationItemClassNames:({selected:e,appearance:t,selectionAppearance:i,size:s,expanded:a,borderRadius:r,applyShadow:o},l)=>S("gids-header-navigation-item",{"gids-header-navigation-item--appearance-primary":t==="primary"&&!e,"gids-header-navigation-item--appearance-subtle":t==="subtle"&&!e,"gids-header-navigation-item--appearance-positive":t==="positive"&&!e,"gids-header-navigation-item--appearance-danger":t==="danger"&&!e,"gids-header-navigation-item--appearance-information":t==="information"&&!e,"gids-header-navigation-item--appearance-warning":t==="warning"&&!e,"gids-header-navigation-item--selection-appearance-default":i==="default"&&e,"gids-header-navigation-item--selection-appearance-primary":i==="primary"&&e,"gids-header-navigation-item--selection-appearance-subtle":i==="subtle"&&e,"gids-header-navigation-item--selection-appearance-positive":i==="positive"&&e,"gids-header-navigation-item--selection-appearance-danger":i==="danger"&&e,"gids-header-navigation-item--selection-appearance-information":i==="information"&&e,"gids-header-navigation-item--selection-appearance-warning":i==="warning"&&e,"gids-header-navigation-item--size-md":s==="md","gids-header-navigation-item--size-lg":s==="lg","gids-header-navigation-item--size-xl":s==="xl","gids-header-navigation-item--expanded":a,"gids-header-navigation-item--shadow":o&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-sm":r==="sm"&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-md":r==="md"&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-lg":r==="lg"&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-full":r==="full"&&t!=="subtle"&&i!=="subtle"},l)},Symbol.toStringTag,{value:"Module"})),ao=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeaderNavigationClassNames:({mode:e,type:t},i)=>S("gids-header-navigation",{"gids-header-navigation--mode-scroll":e==="scroll","gids-header-navigation--type-standard":t==="standard"},i)},Symbol.toStringTag,{value:"Module"})),no=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>S("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),ro=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>S("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"})),oo=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>S("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),lo=Object.freeze(Object.defineProperty({__proto__:null,getGidsLevelGaugeClassNames:({breakpoint:e},t)=>S("gids-level-gauge",{"gids-level-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),co=Object.freeze(Object.defineProperty({__proto__:null,getGidsLineChartClassNames:({breakpoint:e},t)=>S("gids-line-chart",{"gids-line-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),go=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>S("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),ho=Object.freeze(Object.defineProperty({__proto__:null,getGidsMdTableClassNames:({width:e},t)=>S("gids-md-table",{"gids-md-table--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),po=Object.freeze(Object.defineProperty({__proto__:null,getGidsMenuGroupClassNames:({type:e},t)=>S("gids-menu-group",{"gids-menu-group--default":e==="default","gids-menu-group--no-options":e==="no-options","gids-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),uo=Object.freeze(Object.defineProperty({__proto__:null,getGidsMenuClassNames:e=>S("gids-menu",e)},Symbol.toStringTag,{value:"Module"})),mo=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>S("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),ns=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},rs=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},fo=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:i})=>i.includes(t)?rs(e):ns(e),getComponentEntryClasses:ns,getComponentExitClasses:rs,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:bo}=tr,vo=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":bo(e)},Symbol.toStringTag,{value:"Module"})),yo=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>S("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),_o=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>S("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),xo=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>S("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),Co=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileClassNames:({profileControlAppearance:e,profileControlBorderRadius:t,profileControlShadow:i,expanded:s},a)=>S("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":s},a),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"})),wo=Object.freeze(Object.defineProperty({__proto__:null,getGidsProgressCircleClassNames:({breakpoint:e},t)=>S("gids-progress-circle",{"gids-progress-circle--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),So=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>S("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),Io=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>S("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),ko=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>S("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Eo=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>S("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"})),To=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>S("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Lo=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>S("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"})),Po=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>S("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"})),Mo=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>S("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Ao=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabItemClassNames:({appearance:e,width:t="intrinsic",active:i},s)=>S("gids-tab-item",{"gids-tab-item--full":t==="full","gids-tab-item--active-default":e==="default"&&i,"gids-tab-item--active-primary":e==="primary"&&i,"gids-tab-item--active-bordered":e==="bordered"&&i,"gids-tab-item--active-underlined":e==="underlined"&&i,"gids-tab-item--active-subtle":e==="subtle"&&i,"gids-tab-item--default":e==="default"&&!i,"gids-tab-item--primary":e==="primary"&&!i,"gids-tab-item--bordered":e==="bordered"&&!i,"gids-tab-item--underlined":e==="underlined"&&!i,"gids-tab-item--subtle":e==="subtle"&&!i},s)},Symbol.toStringTag,{value:"Module"})),Do=Object.freeze(Object.defineProperty({__proto__:null,getGidsTableCellClassNames:({borderSides:e,borderRadiusSides:t,appearance:i,textAlignment:s,width:a},r)=>S("gids-table-cell",{"gids-table-cell--border-side-top":e?.includes("top"),"gids-table-cell--border-side-bottom":e?.includes("bottom"),"gids-table-cell--border-side-left":e?.includes("left"),"gids-table-cell--border-side-right":e?.includes("right"),"gids-table-cell--border-radius-side-top-left":t?.includes("top-left"),"gids-table-cell--border-radius-side-bottom-left":t?.includes("bottom-left"),"gids-table-cell--border-radius-side-top-right":t?.includes("top-right"),"gids-table-cell--border-radius-side-bottom-right":t?.includes("bottom-right"),"gids-table-cell--appearance-default":i==="default","gids-table-cell--appearance-primal":i==="primal","gids-table-cell--appearance-neutral-default":i==="neutral-default","gids-table-cell--appearance-info":i==="info","gids-table-cell--appearance-warning":i==="warning","gids-table-cell--appearance-positive":i==="positive","gids-table-cell--appearance-danger":i==="danger","gids-table-cell--text-alignment-left":s==="left","gids-table-cell--text-alignment-right":s==="right","gids-table-cell--text-alignment-center":s==="center","gids-table-cell--width-intrinsic":a==="intrinsic"},r),getGidsTableCellLabelTypographyClass:e=>e&&e.toString()!==""?`gids-typography-${e}`:"gids-typography-label-medium"},Symbol.toStringTag,{value:"Module"})),zo=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabClassNames:({width:e,appearance:t},i)=>S("gids-tab",{"gids-tab--full":e==="full","gids-tab--item-subtle":t==="subtle","gids-tab--item-underlined":t==="underlined"},i)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:No}=Ji,$o=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":No(e)},Symbol.toStringTag,{value:"Module"})),Fo=Object.freeze(Object.defineProperty({__proto__:null,getGidsTransferListClassNames:e=>S("gids-transfer-list",e)},Symbol.toStringTag,{value:"Module"})),Ot=Symbol("defaultPath"),os=Symbol("pathSet"),Bt="gids-asset-paths-set";class Oo extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#i(t){return this.#t.get(t)??null}#s=()=>{this.dispatchEvent(new Event(Bt))};haveAssetPathsBeenSet(){return this.#i(os)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Ot,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(Ot,i)}this.#e(os,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const i=this.#i(t);if(i===null){const s=this.#i(Ot);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Bt,t,{once:!0}),()=>{this.removeEventListener(Bt,t)}}}const Vt=Symbol.for("GIDS"),Bo=()=>(globalThis[Vt]===void 0&&(globalThis[Vt]={assetPaths:{}}),globalThis[Vt]),Vo=e=>{const t=Bo().assetPaths;return t[e]===void 0&&(t[e]=new Oo),t[e]};function tt(){return Vo("@ganpatiinfo/gids-web-shared")}function Ro(){return tt().haveAssetPathsBeenSet()}function Go(e,t){tt().setAssetPaths(e,t)}function ls(e){return tt().getAssetFilePath(e)}function Ho(e){return tt().onAssetPathsSet(e)}let jo=0;const it=(e,t="gids")=>e||`${t}-${jo++}`,Yo=e=>e.type==="hidden",qo=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Yo(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},st=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ds={"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"]},cs=new Map;for(const e in ds)for(const t of ds[e])cs.set(t,e);function Wo(e){return cs.get(e)}function gs(e,t="regular",i){const s=Wo(e);let a=s??"";return i&&s&&(a=i(s)??s),`${a}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Uo}=ro,P=({name:e,size:t,appearance:i,alt:s,class:a,titleId:r,src:o,...l})=>{const d=it(r);let h=o;return h===void 0&&Ro()&&(h=gs(e,i,ls)),n("svg",{ref:c=>{h===void 0&&Ho((()=>{(function(g,p,m){if(!g)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",gs(p,m,ls)),g.appendChild(u)})(c,e,i)}))},width:"16",height:"16",class:Uo({size:t},a),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:d,...l},s!==""&&n("title",{id:d},s||e),h!==void 0?n("use",{href:h}):null)},{getGidsButtonGroupClassNames:Xo}=Sr,Rt=({layout:e,class:t},i)=>n("span",{class:Xo({layout:e},t)},i),{getGidsHeadingClassNames:Ko,getGidsHeadingSupportingTextTypographyClass:Qo}=no,hs=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:a,class:r})=>n("div",{class:Ko(r)},n("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?n("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!==""?n("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${Qo(a)}`},t):null:t:null),s?n(Rt,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Zo}=Xr,Jo=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:a,class:r,...o})=>n("button",{class:Zo({size:i},r),...o,onClick:a,disabled:e},s==="custom"&&t?n("div",null,t):s==="add"?n("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},n(P,{name:"add",appearance:"filled",size:i})):s==="remove"?n("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},n(P,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:el}=Gr,Oe=({orientation:e})=>n("hr",{class:el({orientation:e})}),{getGidsListItemClassNames:tl}=go,at=({id:e,value:t,index:i,defaultSelected:s,disabled:a,selected:r,editButton:o,onPressEditButton:l,onPressListItem:d,leadingAccessory:h,leadingSupport:c,leadingParagraph:g,trailingContent:p,trailingAccessory:m,trailingSupport:u,trailingParagraph:f,divider:v,role:y="list-item-option",isPlaceholderItem:_,class:b,...x},C)=>{const I=r||s;return n("button",{type:"button",id:e,class:tl({selected:I,disabled:a},b),role:y,"aria-selected":I?"true":"false",disabled:a,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const k=C;return k?(Array.isArray(k)?k:[k]).map((L=>typeof L=="string"||typeof L=="number"?String(L):L&&typeof L=="object"&&"text"in L?L.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:k=>{const L=k.currentTarget;if(!L||k.defaultPrevented||L.disabled)return;const M=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:_}});d?.(M)},"is-placeholder-item":_?"true":"false",...x},n("div",{class:"gids-list-item__main-container"},o==null||o==="none"||a?null:n(Jo,{size:"md",editButtonType:o,onPressEditButton:l}),h!=null?n("div",{class:a?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},h):null,n("div",{class:"gids-list-item__middle-content-container"},n("div",{class:"gids-list-item__leading-content-container"},n(ae,null,C!=null?n("span",{class:a?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},C):null,n("div",{class:"gids-list-item__leading-support-content"},c!=null?typeof c=="string"?n("p",{class:a?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},c):c:null,g!=null?typeof g=="string"?n("p",{class:a?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},g):g:null))),n("div",{class:"gids-list-item__trailing-content-container"},n(ae,null,p!=null?typeof p=="string"?n("span",{class:a?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},p):p:null,n("div",{class:"gids-list-item__trailing-support-content"},u!=null?typeof u=="string"?n("p",{class:a?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},u):u:null,f!=null?typeof f=="string"?n("p",{class:a?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},f):f:null)))),I?n("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},n(P,{name:"checkmark",size:"md",appearance:"regular"})):null,I||m==null?null:n("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},m)),v&&!I?n("div",{class:"gids-list-item__divider"},n(Oe,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:il}=Lo,{calculateStrokeDasharray:sl,thickness:ps,radius:us,centerPosition:nt,viewBox:al}=dr,Gt=({size:e,indeterminate:t,value:i,max:s,...a})=>{let r;return t||(r={strokeDashArray:sl(i,s||0),strokeDashoffset:"0"}),n("svg",{class:il({size:e,indeterminate:t,value:i}),viewBox:al,...a},n("circle",{class:"gids-spinner-control__track",cx:nt,cy:nt,r:us,"stroke-width":ps}),n("circle",{style:r,class:"gids-spinner-control__progress",cx:nt,cy:nt,r:us,"stroke-width":ps}))},{getGidsSpinnerClassNames:nl}=Po,{getElementVisibility:rl}=rr,de=({label:e,supportingText:t,size:i,indeterminate:s,value:a,max:r,class:o,...l})=>{const{hasLabel:d,hasSupportingText:h}=rl({label:e,supportingText:t});return n("span",{class:nl({size:i},o),...l},n(Gt,{size:i,indeterminate:s,value:a,max:r}),d&&n("span",{class:"gids-spinner__label"},e),h&&n("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:ol}=Yr,_e=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>n("div",{class:ol({type:e},i),...s},e==="loading"?n(de,{indeterminate:!0,size:"md"}):null,e==="no-options"?n("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsDropdownMenuClassNames:ll}=qr,xe=({sectionLabel:e,class:t,...i},s)=>n("div",{class:ll(t),...i},e!=null&&e!==""?n(hs,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?n("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsDropdownItemClassNames:dl}=jr,Be=({id:e,title:t,class:i,selected:s=!1,disabled:a=!1,role:r="list-item-option",value:o,name:l,onPressDropdownItem:d,index:h,defaultSelected:c,leadingAccessory:g,divider:p,isPlaceholderItem:m,...u})=>{const f=dl(typeof i=="string"?i:void 0);return n(at,{id:e,index:h??0,defaultSelected:c,selected:s,disabled:a,role:r,value:o,name:l,leadingAccessory:g,class:f,onPressListItem:v=>{if(v.defaultPrevented)return;const y=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:o,disabled:a,selectedIndex:h,defaultSelected:c,isPlaceholderItem:m}});d?.(y)},divider:p,isPlaceholderItem:m,...u},t)},{getGidsButtonClassNames:cl}=Ir,R=({appearance:e,size:t,destructive:i,positive:s,loading:a,width:r,leadingIcon:o,trailingIcon:l,as:d,disabled:h,class:c,forceIconOnly:g=!1,...p},m)=>{const u=d||"button",f=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in p||(p.type="button"),n(u,{class:cl({appearance:e,size:t,destructive:i,loading:a,width:r,positive:s},g||m.length===0&&st(o)&&!st(l),c),disabled:u==="button"?h:void 0,...p},n("span",{class:"gids-button__content"},o,m),a&&n(Gt,{size:f,indeterminate:!0}),l)},Ce=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ms=!1;Ce&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(Ce):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Ht=null;const jt=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Yt()})):void 0,Yt=()=>{if(Ce===void 0)return!1;const e=(()=>{if(Ce===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let a=-1,r=0;for(let o=0;o<s.cssRules.length;o++){const l=s.cssRules.item(o);if(l?.cssText.startsWith("gids-global-styles-start"))a=o;else if(a>-1){if(l?.cssText.startsWith("gids-global-styles-end")){r=o-a+1;break}t.push(l)}}if(a>-1)return{rulesStartIndex:a,originalRulesCount:r,rules:t,styleSheet:s}}catch(a){if(!(a instanceof DOMException))throw a}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return jt!==void 0&&t!==Ht&&(Ht&&jt.disconnect(),t instanceof Element&&jt.observe(t,{childList:!0,characterData:!0,subtree:!0}),Ht=t),Ce.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:a,styleSheet:r}=i;for(let o=0;o<a;o++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Y=()=>(ms||(ms=Yt()),Ce),fs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=De(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected!==e&&(this.selected=e)}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e),this.selected=e}render(){return n($,{key:"330cebe4e29e06299465abf676035ac3f2268d47"},n("style",{key:"416c5a345c486676384e859125ccc493c5be5020"},`:host {
|
|
5
|
+
`);const f=this["s-cr"].parentElement;return(f.__childNodes?f.childNodes:(v=>{const y=[];for(let _=0;_<v.length;_++){const b=v[_]["s-nr"]||void 0;b&&b.isConnected&&y.push(b)}return y})(f.childNodes)).forEach((v=>{u===Ae(v)&&m.push(v)})),g?m.filter((v=>v.nodeType===1)):m}).bind(h);h.assignedElements=c(!0),h.assignedNodes=c(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===a.O&&e.S&&Ni(e.S)),r},Ni=e=>{N.i|=1;const t=e.closest(ue.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((a=>a["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const a of i?s.reverse():s)a["s-sh"]!=null&&(K(t,a,i??null),a["s-sh"]=void 0,Xe=!0)}N.i&=-2},Qe=(e,t)=>{N.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"]===ue&&i.push(s)}for(let s=i.length-1;s>=0;s--){const a=i[s];a["s-hn"]!==ue&&a["s-ol"]&&(K(Ne(a).parentNode,a,Ne(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Xe=!0),t&&Qe(a,t)}N.i&=-2},$i=(e,t,i,s,a,r)=>{let o,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===ue&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);a<=r;++a)s[a]&&(o=Ke(null,i,a),o&&(s[a].S=o,K(l,o,Ne(t))))},Fi=(e,t,i)=>{for(let s=t;s<=i;++s){const a=e[s];if(a){const r=a.S;Bi(a),r&&(Ue=!0,r["s-ol"]?r["s-ol"].remove():Qe(r,!0),r.remove())}}},Ze=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Ne=e=>e&&e["s-ol"]||e,ye=(e,t,i=!1)=>{const s=t.S=e.S,a=e.m,r=t.m,o=t.O,l=t.h;let d;l==null?(j=o==="svg"||o!=="foreignObject"&&j,o!=="slot"||ze||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ni(t.S.parentElement)),Tt(e,t,j),a!==null&&r!==null?((h,c,g,p,m=!1)=>{let u,f,v=0,y=0,_=0,b=0,x=c.length-1,C=c[0],I=c[x],k=p.length-1,L=p[0],M=p[k];const A=g.O==="template"?h.content:h;for(;v<=x&&y<=k;)if(C==null)C=c[++v];else if(I==null)I=c[--x];else if(L==null)L=p[++y];else if(M==null)M=p[--k];else if(Ze(C,L,m))ye(C,L,m),C=c[++v],L=p[++y];else if(Ze(I,M,m))ye(I,M,m),I=c[--x],M=p[--k];else if(Ze(C,M,m))C.O!=="slot"&&M.O!=="slot"||Qe(C.S.parentNode,!1),ye(C,M,m),K(A,C.S,I.S.nextSibling),C=c[++v],M=p[--k];else if(Ze(I,L,m))C.O!=="slot"&&M.O!=="slot"||Qe(I.S.parentNode,!1),ye(I,L,m),K(A,I.S,C.S),I=c[--x],L=p[++y];else{for(_=-1,b=v;b<=x;++b)if(c[b]&&c[b].$!==null&&c[b].$===L.$){_=b;break}_>=0?(f=c[_],f.O!==L.O?u=Ke(c&&c[y],g,_):(ye(f,L,m),c[_]=void 0,u=f.S),L=p[++y]):(u=Ke(c&&c[y],g,y),L=p[++y]),u&&K(Ne(C.S).parentNode,u,Ne(C.S))}v>x?$i(h,p[k+1]==null?null:p[k+1].S,g,p,y,k):y>k&&Fi(c,v,x)})(s,a,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),$i(s,null,t,r,0,r.length-1)):!i&&a!==null&&Fi(a,0,a.length-1),j&&o==="svg"&&(j=!1)):(d=s["s-cr"])?d.parentNode.textContent=l:e.h!==l&&(s.data=l)},se=[],Oi=e=>{let t,i,s;const a=e.__childNodes||e.childNodes;for(const r of a){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const o=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(Ii(t,o)){let l=se.find((d=>d.k===t));Ue=!0,t["s-sn"]=t["s-sn"]||o,l?(l.k["s-sh"]=r["s-hn"],l.N=r):(t["s-sh"]=r["s-hn"],se.push({N:r,k:t})),t["s-sr"]&&se.map((d=>{Ii(d.k,t["s-sn"])&&(l=se.find((h=>h.k===t)),l&&!d.N&&(d.N=l.N))}))}else se.some((l=>l.k===t))||se.push({k:t})}r.nodeType===1&&Oi(r)}},Bi=e=>{e.v&&e.v.ref&&Lt.push((()=>e.v.ref(null))),e.m&&e.m.map(Bi)},Pn=(e,t)=>{Pt.push((()=>e(t)))},K=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:a}=(function(r,o){var l;if(!(o=o||((l=r["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const d=r["s-sn"]=Ae(r)||"";return{slotNode:St(It(o,"childNodes"),o.tagName,d)[0],slotName:d}})(t);return a&&!s&&a.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Vi=(e,t,i=!1)=>{var s,a,r,o,l;const d=e.$hostElement$,h=e.o,c=e.M||We(null,null);var g;const p=(g=t)&&g.O===$?t:n(null,null,t);if(ue=d.tagName,h.C&&(p.v=p.v||{},h.C.forEach((([m,u])=>{p.v[u]=d[m]}))),i&&p.v)for(const m of Object.keys(p.v))d.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(p.v[m]=d[m]);if(p.O=null,p.i|=4,e.M=p,p.S=c.S=d.shadowRoot||d,ze=!(!(1&h.i)||128&h.i),kt=d["s-cr"],Ue=!1,ye(c,p,i),N.i|=1,Xe){Oi(p.S);for(const m of se){const u=m.k;if(!u["s-ol"]&&D.document){const f=D.document.createTextNode("");f["s-nr"]=u,K(u.parentNode,u["s-ol"]=f,u,i)}}for(const m of se){const u=m.k,f=m.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),f){const v=f.parentNode;let y=f.nextSibling;if(y&&y.nodeType===1){let _=(a=u["s-ol"])==null?void 0:a.previousSibling;for(;_;){let b=(r=_["s-nr"])!=null?r:null;if(b&&b["s-sn"]===u["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===u||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){y=b;break}}_=_.previousSibling}}if((!y&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(K(v,u,y,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const _=D.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));_["s-hn"]=u["s-hn"],_["s-sn"]=u["s-sn"],_["s-sh"]=u["s-sh"],_["s-sr"]=u["s-sr"],_["s-ol"]=u["s-ol"],_["s-ol"]["s-nr"]=_,K(u.parentNode,_,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(o=u["s-ih"])!=null&&o)}u&&typeof f["s-rf"]=="function"&&f["s-rf"](f)}else u.nodeType===1&&(u.hidden=!0)}}if(Ue&&Si(p.S),N.i&=-2,se.length=0,!ze&&!(1&h.i)&&d["s-cr"]){const m=p.S.__childNodes||p.S.childNodes;for(const u of m)if(u["s-hn"]!==ue&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const f=D.document.createComment("s-nt-"+u.nodeValue);f["s-sn"]=u["s-sn"],K(u.parentNode,f,u,i),u.parentNode.removeChild(u)}}}kt=void 0,Lt.forEach((m=>m())),Lt.length=0,Pt.forEach((m=>m())),Pt.length=0},Ri=(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()})))}},Je=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ri(e,e.R);const i=()=>Mn(e,t);if(!t)return xn(i);queueMicrotask((()=>{i()}))},Mn=(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 a;return a=$e(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),a=Gi(a,(()=>$e(s,"componentWillRender",void 0,i))),Gi(a,(()=>Dn(e,s,t)))},Gi=(e,t)=>An(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),An=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Dn=async(e,t,i)=>{var s;const a=e.$hostElement$,r=a["s-rc"];i&&(o=>{const l=o.o,d=o.$hostElement$,h=l.i,c=((g,p)=>{var m,u,f;const v=ki(p),y=qe.get(v);if(!D.document)return v;if(g=g.nodeType===11?g:D.document,y)if(typeof y=="string"){let _,b=le.get(g=g.head||g);if(b||le.set(g,b=new Set),!b.has(v)){_=D.document.createElement("style"),_.textContent=y;const x=(m=N._)!=null?m:(function(){var C,I,k;return(k=(I=(C=D.document.head)==null?void 0:C.querySelector('meta[name="csp-nonce"]'))==null?void 0:I.getAttribute("content"))!=null?k:void 0})();if(x!=null&&_.setAttribute("nonce",x),!(1&p.i))if(g.nodeName==="HEAD"){const C=g.querySelectorAll("link[rel=preconnect]"),I=C.length>0?C[C.length-1].nextSibling:g.querySelector("style");g.insertBefore(_,I?.parentNode===g?I:null)}else if("host"in g)if(yt){const C=new((u=g.defaultView)!=null?u:g.ownerDocument.defaultView).CSSStyleSheet;C.replaceSync(y),_t?g.adoptedStyleSheets.unshift(C):g.adoptedStyleSheets=[C,...g.adoptedStyleSheets]}else{const C=g.querySelector("style");C?C.textContent=y+C.textContent:g.prepend(_)}else g.append(_);1&p.i&&g.insertBefore(_,null),4&p.i&&(_.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let _=le.get(g);if(_||le.set(g,_=new Set),!_.has(v)){const b=(f=g.defaultView)!=null?f:g.ownerDocument.defaultView;let x;if(y.constructor===b.CSSStyleSheet)x=y;else{x=new b.CSSStyleSheet;for(let C=0;C<y.cssRules.length;C++)x.insertRule(y.cssRules[C].cssText,C)}_t?g.adoptedStyleSheets.push(x):g.adoptedStyleSheets=[...g.adoptedStyleSheets,x],_.add(v)}}return v})(d.shadowRoot?d.shadowRoot:d.getRootNode(),l);10&h&&(d["s-sc"]=c,d.classList.add(c+"-h"))})(e),zn(e,t,a,i),r&&(r.map((o=>o())),a["s-rc"]=void 0);{const o=(s=a["s-p"])!=null?s:[],l=()=>Nn(e);o.length===0?l():(Promise.all(o).then(l).catch(l),e.i|=4,o.length=0)}},zn=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Vi(e,t,s)}catch(a){pe(a,e.$hostElement$)}return null},Nn=e=>{const t=e.$hostElement$,i=t,s=e.R;$e(i,"componentDidRender",void 0,t),64&e.i?$e(i,"componentDidUpdate",void 0,t):(e.i|=64,Fn(t),$e(i,"componentDidLoad",void 0,t),e.L(t),s||$n()),e.A&&(e.A(),e.A=void 0),512&e.i&&wt((()=>Je(e,!1))),e.i&=-517},Hi=e=>{var t;{const i=J(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Je(i,!1),s}},$n=()=>{wt((()=>Pi(D,"appload",{detail:{namespace:"gids-core-web"}})))},$e=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(a){pe(a,s)}},Fn=e=>e.classList.add("hydrated"),ji=(e,t,i,s)=>{const a=J(e);if(!a)return;const r=e,o=a.l.get(t),l=a.i,d=r;i=Li(i,s.t[t][0],!!(64&s.i));const h=Number.isNaN(o)&&Number.isNaN(i);if(i!==o&&!h){if(a.l.set(t,i),s.F){const c=s.F[t];c&&c.map((g=>{try{const[[p,m]]=Object.entries(g);(128&l||1&m)&&(d?d[p](i,o,t):a.T.push((()=>{a.D[p](i,o,t)})))}catch(p){pe(p,r)}}))}if(2&l){if(d.componentShouldUpdate&&d.componentShouldUpdate(i,o,t)===!1&&!(16&l))return;16&l||Je(a,!1)}}},On=(e,t,i)=>{var s,a;const r=e.prototype;64&t.i&&1&i&&vn.forEach((o=>{const l=r[o];Object.defineProperty(r,o,{value(...d){var h;const c=J(this),g=this;g?typeof l=="function"&&l.call(g,...d):(h=c?.H)==null||h.then((p=>{const m=p[o];typeof m=="function"&&m.call(p,...d)}))}})}));{e.watchers&&!t.F&&(t.F=Ti(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([l,[d]])=>{if(31&d||32&d){const{get:h,set:c}=ve(r,l)||{};h&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return h?h.apply(this):(g=l,J(this).l.get(g));var g},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(g){const p=J(this);if(p){if(c)return(32&d?this[l]:p.$hostElement$[l])===void 0&&p.l.get(l)&&(g=p.l.get(l)),c.apply(this,[Li(g,d,!!(64&t.i))]),void ji(this,l,g=32&d?this[l]:p.$hostElement$[l],t);ji(this,l,g,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(d,h,c){N.jmp((()=>{var g;const p=l.get(d),m=J(this);if(this.hasOwnProperty(p),r.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==c)return;if(p==null){const _=m?.i;if(m&&_&&!(8&_)&&c!==h){const b=this,x=(g=t.F)==null?void 0:g[d];x?.forEach((C=>{const[[I,k]]=Object.entries(C);b[I]!=null&&(128&_||1&k)&&b[I].call(b,c,h,d)}))}return}const u=o.find((([_])=>_===p)),f=u&&4&u[1][0],v=f&&c===null&&this[p]===void 0;f&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(r,p);v||c==this[p]||y.get&&!y.set||(this[p]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.F)!=null?a:{}),...o.filter((([d,h])=>31&h[0])).map((([d,h])=>{var c;const g=h[1]||d;return l.set(g,d),512&h[0]&&((c=t.C)==null||c.push([d,g])),g}))]))}}return e},T=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ti(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,o)=>{const l={i:0,$hostElement$:r,o,l:new Map,B:new Map};l.H=new Promise((h=>l.L=h)),r["s-p"]=[],r["s-rc"]=[];const d=l;r.__stencil__getHostRef=()=>d,512&o.i&&bn(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=J(this);if(!r)return;Yi(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&N.i)){const o=J(r);if(!o)return;const l=o.o;if(1&o.i)Yi(r,o,l.W),o?.D||o?.H&&o.H.then((()=>{}));else{o.i|=1,12&l.i&&(d=>{if(!D.document)return;const h=d["s-cr"]=D.document.createComment("");h["s-cn"]=!0,K(d,h,d.firstChild)})(r);{let d=r;for(;d=d.parentNode||d.host;)if(d["s-p"]){Ri(o,o.R=d);break}}l.t&&Object.entries(l.t).map((([d,[h]])=>{if(31&h&&Object.prototype.hasOwnProperty.call(r,d)){const c=r[d];delete r[d],r[d]=c}})),(async(d,h,c)=>{let g;try{if(!(32&h.i)&&(h.i|=32,g=d.constructor,customElements.whenDefined(d.localName).then((()=>h.i|=128)),g&&g.style)){let u;typeof g.style=="string"&&(u=g.style);const f=ki(c);qe.has(f)||((v,y,_)=>{let b=qe.get(v);yt&&_?(b=b||new CSSStyleSheet,typeof b=="string"?b=y:b.replaceSync(y)):b=y,qe.set(v,b)})(f,u,!!(1&c.i))}const p=h.R,m=()=>Je(h,!0);p&&p["s-rc"]?p["s-rc"].push(m):m()}catch(p){pe(p,d),h.A&&(h.A(),h.A=void 0),h.L&&h.L(d)}})(r,o,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&N.i)){const o=J(r);o?.V&&(o.V.map((l=>l())),o.V=void 0)}le.has(r)&&le.delete(r),r.shadowRoot&&le.has(r.shadowRoot)&&le.delete(r.shadowRoot)})(this),a&&a.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 Sn.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),On(e,i,3)}catch(s){return pe(s),e}},ae=(e,t)=>t,Yi=(e,t,i)=>{i&&D.document&&i.map((([s,a,r])=>{const o=Vn(D.document,e,s),l=Bn(t,r),d=Rn(s);N.ael(o,a,l,d),(t.V=t.V||[]).push((()=>N.rel(o,a,l,d)))}))},Bn=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){pe(s,e.$hostElement$)}},Vn=(e,t,i)=>8&i?D:t,Rn=e=>yn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),Gn=e=>N._=e,Hn=e=>Object.assign(N,e),qi=new WeakMap;function jn(e,t){let i=qi.get(t);i||(i={i:0,o:{i:0,p:t.tagName},$hostElement$:t},qi.set(t,i)),Vi(i,e)}function gh(e){return e}function Wi(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=Wi(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function S(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=Wi(e))&&(s&&(s+=" "),s+=t);return s}const Yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsActionBarClassNames:e=>S("gids-action-bar",e)},Symbol.toStringTag,{value:"Module"})),qn=Object.freeze(Object.defineProperty({__proto__:null,getGidsActivityGaugeClassNames:({breakpoint:e},t)=>S("gids-activity-gauge",{"gids-activity-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Wn=Object.freeze(Object.defineProperty({__proto__:null,getGidsAdvancedTooltipClassNames:({visible:e},t)=>S("gids-advanced-tooltip",{"gids-advanced-tooltip--visible":e},t)},Symbol.toStringTag,{value:"Module"})),Un=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,Xn=5,Ui=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*Xn)+1}`,shouldTextBeHiddenFromAt:Un},Symbol.toStringTag,{value:"Module"})),et=99,Kn=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>et?`${et}+`:e.toString(),maxCount:et,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>et||i},Symbol.toStringTag,{value:"Module"})),Xi=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Qn=/\w/,Zn=e=>e.replace(Qn,t=>t.toLocaleUpperCase()),Ki=(e,t)=>typeof e=="function"?e(t):t?Zn(e):e,Jn=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:a})=>{const r=a?a(e):Xi(e);if(t==="required")return Ki(s&&s.length>0?s:"(required)",r);if(t==="optional")return Ki(i&&i.length>0?i:"(optional)",r)},isSentence:Xi},Symbol.toStringTag,{value:"Module"})),er=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),tr=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),Mt=/[A-Z]/,At=/[a-z]/,Dt=/[0-9]/,zt=/[^A-Za-z0-9]/,ir=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const i=t>0?e/t*100:0;return i<=20?"is-weak":i<=40?"is-medium":i<=60?"is-good-enough":i<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:i=0})=>{if(!e||e==="")return 0;let s=0;return t.includes("1-uppercase")&&Mt.test(e)&&s++,t.includes("1-lowercase")&&At.test(e)&&s++,t.includes("1-digit")&&Dt.test(e)&&s++,t.includes("1-special-character")&&zt.test(e)&&s++,t.includes("include-min-length")&&i&&i>0&&e.length>=i&&s++,s},include1DigitReg:Dt,include1LowercaseLetterReg:At,include1SpecialCharReg:zt,include1UppercaseLetterReg:Mt},Symbol.toStringTag,{value:"Module"})),Fe=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Nt=e=>{const t=[];return e&&e.length>0&&e.map(i=>{i?.requirementRule&&t.push(i.requirementRule)}),t},sr=({rule:e,textMinLength:t=0,text:i})=>{if(!i||i===""||!e&&!t)return!1;switch(e){case"1-uppercase":return Mt.test(i);case"1-lowercase":return At.test(i);case"1-digit":return Dt.test(i);case"1-special-character":return zt.test(i);case"include-min-length":return Fe({requirementRule:"include-min-length",textMinLength:t})===!0&&i.length>=t;default:return!1}},$t=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return Fe({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Nt(t),defaultRequirementsMeterRules:t}},ar=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:sr,getDefaultRulesAndRequirementsForMeters:$t,getMeterRulesFromRequirements:Nt,minLengthRuleCanBeApplied:Fe},Symbol.toStringTag,{value:"Module"})),nr=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),rr=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,a=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:a}}},Symbol.toStringTag,{value:"Module"})),tt=64,Qi=10,Zi=tt/2-Qi/2,or=tt/2,Ft=2*Math.PI*Zi,lr=`0 0 ${tt} ${tt}`,dr=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,a=Math.max(0,Math.min(i,e))/i*100,r=(Ft*a/100).toFixed(2),o=(Ft-parseFloat(r)).toFixed(2);return`${r} ${o}`},centerPosition:or,circumference:Ft,radius:Zi,thickness:Qi,viewBox:lr},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,getTableCellBtnIcon:({cellActionButton:e,neededIconType:t="leading"})=>t==="trailing"?{cellIconName:e?.trailingIconName,cellIconAppearance:e?.trailingIconAppearance,cellIconSize:e?.trailingIconSize}:{cellIconName:e?.leadingIconName,cellIconAppearance:e?.leadingIconAppearance,cellIconSize:e?.leadingIconSize},isTableCellActionButtonVisible:e=>!!(e?.buttonLabel&&e.buttonLabel!==""||e?.leadingIconName&&e.leadingIconName!==""||e?.trailingIconName&&e.trailingIconName!=="")},Symbol.toStringTag,{value:"Module"})),Ji=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),es=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),gr="No Data!",hr=e=>`There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`,ts=100,pr=50,is="Invalid Progress Value!",ss=e=>`The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`,ur="Invalid Chart Type!",mr=e=>`You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`,{getRandomColor:fr}=Ui,br=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const s=e==="random"?fr():e;return S("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"})),vr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},s)=>S("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"})),yr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>S("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),_r=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableHeaderClassNames:({width:e},t)=>S("gids-basic-table-header",{"gids-basic-table-header--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),xr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableRowClassNames:({width:e},t)=>S("gids-basic-table-row",{"gids-basic-table-row--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Cr=Object.freeze(Object.defineProperty({__proto__:null,getGidsBentoCardClassNames:({appearance:e,hasAccessorySlot:t},i)=>S("gids-bento-card",{"gids-bento-card--appearance-subtle":e==="subtle","gids-bento-card--appearance-positive":e==="positive","gids-bento-card--appearance-warning":e==="warning","gids-bento-card--appearance-information":e==="information","gids-bento-card--appearance-danger":e==="danger","gids-bento-card--appearance-brand":e==="brand","gids-bento-card--accessory-slot-gapping":t},i)},Symbol.toStringTag,{value:"Module"})),wr=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonDockClassNames:e=>S("gids-button-dock",e)},Symbol.toStringTag,{value:"Module"})),Sr=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>S("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Ir=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:a,loading:r},o,l)=>S("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":i==="full","gids-button--destructive":s&&!a,"gids-button--positive":a&&!s,"gids-button--icon-only":o,"gids-button--loading":r},l)},Symbol.toStringTag,{value:"Module"})),kr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarCellClassNames:({disabled:e,selected:t,today:i,cellType:s,dot:a},r)=>S("gids-calendar-cell",{"gids-calendar-cell--selected":t&&!e&&!i,"gids-calendar-cell--today":i&&!e&&!a,"gids-calendar-cell--label-non-effective":s==="non-effective","gids-calendar-cell--default-effective":s==="effective"&&!e&&!i&&!t,"gids-calendar-cell--selected-effective":t&&s==="effective"&&!e&&!i,"gids-calendar-cell--today-effective":i&&s==="effective"&&!e&&!a,"gids-calendar-cell--default-disabled":e&&!i&&!t,"gids-calendar-cell--selected-disabled":e&&t&&!i,"gids-calendar-cell--today-disabled":e&&i&&!a,"gids-calendar-cell--today-dot":i&&!e&&a,"gids-calendar-cell--today-dot-effective":i&&s==="effective"&&!e&&a,"gids-calendar-cell--today-dot-disabled":e&&i&&a},r)},Symbol.toStringTag,{value:"Module"})),Er=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarDayCellClassNames:e=>S("gids-calendar-day-cell",e)},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getCalendarMonthNameViaMonthNumber:(e,t="en-US")=>{const i=new Date(2e3,e-1,1);return new Intl.DateTimeFormat(t,{month:"long"}).format(i)},getGidsCalendarHeaderPanelClassNames:e=>S("gids-calendar-header-panel",e)},Symbol.toStringTag,{value:"Module"})),Tr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarMonthListClassNames:e=>S("gids-calendar-month-list",e),getGidsCalendarMonthListMonths:()=>{const e=[],t=new Intl.DateTimeFormat("en-US",{month:"long"});for(let i=1;i<=12;i+=1){const s=new Date(2e3,i-1,1),a=t.format(s);e.push({id:`${i}`,title:a,value:i})}return e}},Symbol.toStringTag,{value:"Module"})),Lr=Object.freeze(Object.defineProperty({__proto__:null,generateCalendarDays:({currentMonth:e,currentYear:t})=>{if(!t||!e)return[];const i=t,s=e-1,a=new Date(i,s,1).getDay(),r=new Date(i,s+1,0).getDate(),o=new Date(i,s,0).getDate(),l=[],d=new Date().toISOString().split("T")[0];for(let c=a-1;c>=0;c--){const g=o-c,p=s===0?12:s,u=`${s===0?i-1:i}-${String(p).padStart(2,"0")}-${String(g).padStart(2,"0")}`;l.push({day:g,isCurrentMonth:!1,dateString:u,isToday:d===u})}for(let c=1;c<=r;c++){const g=`${i}-${String(e).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!0,dateString:g,isToday:d===g})}const h=42-l.length;for(let c=1;c<=h;c++){const g=s===11?1:s+2,m=`${s===11?i+1:i}-${String(g).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!1,dateString:m,isToday:d===m})}return l},generateCalendarWeekdays:()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],getGidsCalendarClassNames:({width:e},t)=>S("gids-calendar",{"gids-calendar--width-fixed":e==="fixed","gids-calendar--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Pr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>S("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const i=[];let s=1;for(let a=e;a<=t;a+=1)i.push({id:`${s}_${a}`,title:`${a}`,value:a}),s=s+1;return i},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),Mr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselControlBtnClassNames:({size:e="md"})=>{switch(e){case"xs":return"gids-carousel-control--xs gids-carousel-control__control";case"sm":return"gids-carousel-control__control gids-carousel-control--sm";case"lg":return"gids-carousel-control__control gids-carousel-control--lg";case"xl":return"gids-carousel-control__control gids-carousel-control--xl";default:return"gids-carousel-control__control gids-carousel-control--md"}},getGidsCarouselControlClassNames:e=>S("gids-carousel-control",e)},Symbol.toStringTag,{value:"Module"})),Ar=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselPaginationItemClassNames:({active:e,size:t},i)=>S("gids-carousel-pagination-item",{"gids-carousel-pagination-item--active":e,"gids-carousel-pagination-item--active-sm":t==="sm"&&e,"gids-carousel-pagination-item--active-md":t==="md"&&e,"gids-carousel-pagination-item--active-lg":t==="lg"&&e,"gids-carousel-pagination-item--active-xl":t==="xl"&&e,"gids-carousel-pagination-item--sm":t==="sm"&&!e,"gids-carousel-pagination-item--md":t==="md"&&!e,"gids-carousel-pagination-item--lg":t==="lg"&&!e,"gids-carousel-pagination-item--xl":t==="xl"&&!e},i)},Symbol.toStringTag,{value:"Module"})),Dr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselPaginationClassNames:e=>S("gids-carousel-pagination",e)},Symbol.toStringTag,{value:"Module"})),zr=Object.freeze(Object.defineProperty({__proto__:null,getGidsCarouselClassNames:e=>S("gids-carousel",e)},Symbol.toStringTag,{value:"Module"})),Nr=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>S("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),$r=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>S("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Fr=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartClassNames:e=>S("gids-chart",e)},Symbol.toStringTag,{value:"Module"})),Or=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxControlClassNames:e=>S("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),Br=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonClassNames:({size:e},t)=>S("gids-chevron-button",{"gids-chevron-button--sm":e==="sm","gids-chevron-button--md":e==="md","gids-chevron-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Vr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>S("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Rr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:i},s)=>S("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&i==="accent-1","gids-display-tag--accent-2":t==="subtle"&&i==="accent-2","gids-display-tag--accent-3":t==="subtle"&&i==="accent-3","gids-display-tag--accent-4":t==="subtle"&&i==="accent-4","gids-display-tag--accent-5":t==="subtle"&&i==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&i==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&i==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&i==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&i==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&i==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),Gr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>S("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Hr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:i},s)=>S("gids-dot",{"gids-dot--disabled":i,"gids-dot--subtle":e==="subtle"&&!i,"gids-dot--static-inverse":e==="static-inverse"&&!i,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),jr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>S("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),Yr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>S("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"})),qr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>S("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Wr=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>S("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Ur=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>S("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>S("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Xr=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>S("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"})),Kr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionBodyListItemClassNames:e=>S("gids-expansion-body-list-item",e)},Symbol.toStringTag,{value:"Module"})),Qr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionBodyListClassNames:e=>S("gids-expansion-body-list",e)},Symbol.toStringTag,{value:"Module"})),Zr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionGroupClassNames:e=>S("gids-expansion-group",e)},Symbol.toStringTag,{value:"Module"})),Jr=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionClassNames:({expanded:e},t)=>S("gids-expansion",{"gids-expansion--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),eo=Object.freeze(Object.defineProperty({__proto__:null,getGidsFeedbackBlockClassNames:e=>S("gids-feedback-block",e)},Symbol.toStringTag,{value:"Module"})),to=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>S("gids-field",e)},Symbol.toStringTag,{value:"Module"})),io=Object.freeze(Object.defineProperty({__proto__:null,getGidsFilterClassNames:({expanded:e},t)=>S("gids-filter",{"gids-filter--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),so=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeaderNavigationItemClassNames:({selected:e,appearance:t,selectionAppearance:i,size:s,expanded:a,borderRadius:r,applyShadow:o},l)=>S("gids-header-navigation-item",{"gids-header-navigation-item--appearance-primary":t==="primary"&&!e,"gids-header-navigation-item--appearance-subtle":t==="subtle"&&!e,"gids-header-navigation-item--appearance-positive":t==="positive"&&!e,"gids-header-navigation-item--appearance-danger":t==="danger"&&!e,"gids-header-navigation-item--appearance-information":t==="information"&&!e,"gids-header-navigation-item--appearance-warning":t==="warning"&&!e,"gids-header-navigation-item--selection-appearance-default":i==="default"&&e,"gids-header-navigation-item--selection-appearance-primary":i==="primary"&&e,"gids-header-navigation-item--selection-appearance-subtle":i==="subtle"&&e,"gids-header-navigation-item--selection-appearance-positive":i==="positive"&&e,"gids-header-navigation-item--selection-appearance-danger":i==="danger"&&e,"gids-header-navigation-item--selection-appearance-information":i==="information"&&e,"gids-header-navigation-item--selection-appearance-warning":i==="warning"&&e,"gids-header-navigation-item--size-md":s==="md","gids-header-navigation-item--size-lg":s==="lg","gids-header-navigation-item--size-xl":s==="xl","gids-header-navigation-item--expanded":a,"gids-header-navigation-item--shadow":o&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-sm":r==="sm"&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-md":r==="md"&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-lg":r==="lg"&&t!=="subtle"&&i!=="subtle","gids-header-navigation-item--border-radius-full":r==="full"&&t!=="subtle"&&i!=="subtle"},l)},Symbol.toStringTag,{value:"Module"})),ao=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeaderNavigationClassNames:({mode:e,type:t},i)=>S("gids-header-navigation",{"gids-header-navigation--mode-scroll":e==="scroll","gids-header-navigation--type-standard":t==="standard"},i)},Symbol.toStringTag,{value:"Module"})),no=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>S("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),ro=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>S("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"})),oo=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>S("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),lo=Object.freeze(Object.defineProperty({__proto__:null,getGidsLevelGaugeClassNames:({breakpoint:e},t)=>S("gids-level-gauge",{"gids-level-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),co=Object.freeze(Object.defineProperty({__proto__:null,getGidsLineChartClassNames:({breakpoint:e},t)=>S("gids-line-chart",{"gids-line-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),go=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>S("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),ho=Object.freeze(Object.defineProperty({__proto__:null,getGidsMdTableClassNames:({width:e},t)=>S("gids-md-table",{"gids-md-table--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),po=Object.freeze(Object.defineProperty({__proto__:null,getGidsMenuGroupClassNames:({type:e},t)=>S("gids-menu-group",{"gids-menu-group--default":e==="default","gids-menu-group--no-options":e==="no-options","gids-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),uo=Object.freeze(Object.defineProperty({__proto__:null,getGidsMenuClassNames:e=>S("gids-menu",e)},Symbol.toStringTag,{value:"Module"})),mo=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>S("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),ns=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},rs=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},fo=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:i})=>i.includes(t)?rs(e):ns(e),getComponentEntryClasses:ns,getComponentExitClasses:rs,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:bo}=tr,vo=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":bo(e)},Symbol.toStringTag,{value:"Module"})),yo=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>S("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),_o=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>S("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),xo=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>S("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),Co=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileClassNames:({profileControlAppearance:e,profileControlBorderRadius:t,profileControlShadow:i,expanded:s},a)=>S("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":s},a),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"})),wo=Object.freeze(Object.defineProperty({__proto__:null,getGidsProgressCircleClassNames:({breakpoint:e},t)=>S("gids-progress-circle",{"gids-progress-circle--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),So=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>S("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),Io=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>S("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),ko=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>S("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Eo=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>S("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"})),To=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>S("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Lo=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>S("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"})),Po=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>S("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"})),Mo=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>S("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Ao=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabItemClassNames:({appearance:e,width:t="intrinsic",active:i},s)=>S("gids-tab-item",{"gids-tab-item--full":t==="full","gids-tab-item--active-default":e==="default"&&i,"gids-tab-item--active-primary":e==="primary"&&i,"gids-tab-item--active-bordered":e==="bordered"&&i,"gids-tab-item--active-underlined":e==="underlined"&&i,"gids-tab-item--active-subtle":e==="subtle"&&i,"gids-tab-item--default":e==="default"&&!i,"gids-tab-item--primary":e==="primary"&&!i,"gids-tab-item--bordered":e==="bordered"&&!i,"gids-tab-item--underlined":e==="underlined"&&!i,"gids-tab-item--subtle":e==="subtle"&&!i},s)},Symbol.toStringTag,{value:"Module"})),Do=Object.freeze(Object.defineProperty({__proto__:null,getGidsTableCellClassNames:({borderSides:e,borderRadiusSides:t,appearance:i,textAlignment:s,width:a},r)=>S("gids-table-cell",{"gids-table-cell--border-side-top":e?.includes("top"),"gids-table-cell--border-side-bottom":e?.includes("bottom"),"gids-table-cell--border-side-left":e?.includes("left"),"gids-table-cell--border-side-right":e?.includes("right"),"gids-table-cell--border-radius-side-top-left":t?.includes("top-left"),"gids-table-cell--border-radius-side-bottom-left":t?.includes("bottom-left"),"gids-table-cell--border-radius-side-top-right":t?.includes("top-right"),"gids-table-cell--border-radius-side-bottom-right":t?.includes("bottom-right"),"gids-table-cell--appearance-default":i==="default","gids-table-cell--appearance-primal":i==="primal","gids-table-cell--appearance-neutral-default":i==="neutral-default","gids-table-cell--appearance-info":i==="info","gids-table-cell--appearance-warning":i==="warning","gids-table-cell--appearance-positive":i==="positive","gids-table-cell--appearance-danger":i==="danger","gids-table-cell--text-alignment-left":s==="left","gids-table-cell--text-alignment-right":s==="right","gids-table-cell--text-alignment-center":s==="center","gids-table-cell--width-intrinsic":a==="intrinsic"},r),getGidsTableCellLabelTypographyClass:e=>e&&e.toString()!==""?`gids-typography-${e}`:"gids-typography-label-medium"},Symbol.toStringTag,{value:"Module"})),zo=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabClassNames:({width:e,appearance:t},i)=>S("gids-tab",{"gids-tab--full":e==="full","gids-tab--item-subtle":t==="subtle","gids-tab--item-underlined":t==="underlined"},i)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:No}=Ji,$o=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":No(e)},Symbol.toStringTag,{value:"Module"})),Fo=Object.freeze(Object.defineProperty({__proto__:null,getGidsTransferListClassNames:e=>S("gids-transfer-list",e)},Symbol.toStringTag,{value:"Module"})),Ot=Symbol("defaultPath"),os=Symbol("pathSet"),Bt="gids-asset-paths-set";class Oo extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#i(t){return this.#t.get(t)??null}#s=()=>{this.dispatchEvent(new Event(Bt))};haveAssetPathsBeenSet(){return this.#i(os)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Ot,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(Ot,i)}this.#e(os,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const i=this.#i(t);if(i===null){const s=this.#i(Ot);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Bt,t,{once:!0}),()=>{this.removeEventListener(Bt,t)}}}const Vt=Symbol.for("GIDS"),Bo=()=>(globalThis[Vt]===void 0&&(globalThis[Vt]={assetPaths:{}}),globalThis[Vt]),Vo=e=>{const t=Bo().assetPaths;return t[e]===void 0&&(t[e]=new Oo),t[e]};function it(){return Vo("@ganpatiinfo/gids-web-shared")}function Ro(){return it().haveAssetPathsBeenSet()}function Go(e,t){it().setAssetPaths(e,t)}function ls(e){return it().getAssetFilePath(e)}function Ho(e){return it().onAssetPathsSet(e)}let jo=0;const st=(e,t="gids")=>e||`${t}-${jo++}`,Yo=e=>e.type==="hidden",qo=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Yo(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},at=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ds={"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"]},cs=new Map;for(const e in ds)for(const t of ds[e])cs.set(t,e);function Wo(e){return cs.get(e)}function gs(e,t="regular",i){const s=Wo(e);let a=s??"";return i&&s&&(a=i(s)??s),`${a}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Uo}=ro,P=({name:e,size:t,appearance:i,alt:s,class:a,titleId:r,src:o,...l})=>{const d=st(r);let h=o;return h===void 0&&Ro()&&(h=gs(e,i,ls)),n("svg",{ref:c=>{h===void 0&&Ho((()=>{(function(g,p,m){if(!g)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",gs(p,m,ls)),g.appendChild(u)})(c,e,i)}))},width:"16",height:"16",class:Uo({size:t},a),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:d,...l},s!==""&&n("title",{id:d},s||e),h!==void 0?n("use",{href:h}):null)},{getGidsButtonGroupClassNames:Xo}=Sr,Rt=({layout:e,class:t},i)=>n("span",{class:Xo({layout:e},t)},i),{getGidsHeadingClassNames:Ko,getGidsHeadingSupportingTextTypographyClass:Qo}=no,hs=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:a,class:r})=>n("div",{class:Ko(r)},n("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?n("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!==""?n("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${Qo(a)}`},t):null:t:null),s?n(Rt,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Zo}=Xr,Jo=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:a,class:r,...o})=>n("button",{class:Zo({size:i},r),...o,onClick:a,disabled:e},s==="custom"&&t?n("div",null,t):s==="add"?n("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},n(P,{name:"add",appearance:"filled",size:i})):s==="remove"?n("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},n(P,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:el}=Gr,Oe=({orientation:e})=>n("hr",{class:el({orientation:e})}),{getGidsListItemClassNames:tl}=go,nt=({id:e,value:t,index:i,defaultSelected:s,disabled:a,selected:r,editButton:o,onPressEditButton:l,onPressListItem:d,leadingAccessory:h,leadingSupport:c,leadingParagraph:g,trailingContent:p,trailingAccessory:m,trailingSupport:u,trailingParagraph:f,divider:v,role:y="list-item-option",isPlaceholderItem:_,class:b,...x},C)=>{const I=r||s;return n("button",{type:"button",id:e,class:tl({selected:I,disabled:a},b),role:y,"aria-selected":I?"true":"false",disabled:a,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const k=C;return k?(Array.isArray(k)?k:[k]).map((L=>typeof L=="string"||typeof L=="number"?String(L):L&&typeof L=="object"&&"text"in L?L.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:k=>{const L=k.currentTarget;if(!L||k.defaultPrevented||L.disabled)return;const M=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:_}});d?.(M)},"is-placeholder-item":_?"true":"false",...x},n("div",{class:"gids-list-item__main-container"},o==null||o==="none"||a?null:n(Jo,{size:"md",editButtonType:o,onPressEditButton:l}),h!=null?n("div",{class:a?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},h):null,n("div",{class:"gids-list-item__middle-content-container"},n("div",{class:"gids-list-item__leading-content-container"},n(ae,null,C!=null?n("span",{class:a?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},C):null,n("div",{class:"gids-list-item__leading-support-content"},c!=null?typeof c=="string"?n("p",{class:a?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},c):c:null,g!=null?typeof g=="string"?n("p",{class:a?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},g):g:null))),n("div",{class:"gids-list-item__trailing-content-container"},n(ae,null,p!=null?typeof p=="string"?n("span",{class:a?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},p):p:null,n("div",{class:"gids-list-item__trailing-support-content"},u!=null?typeof u=="string"?n("p",{class:a?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},u):u:null,f!=null?typeof f=="string"?n("p",{class:a?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},f):f:null)))),I?n("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},n(P,{name:"checkmark",size:"md",appearance:"regular"})):null,I||m==null?null:n("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},m)),v&&!I?n("div",{class:"gids-list-item__divider"},n(Oe,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:il}=Lo,{calculateStrokeDasharray:sl,thickness:ps,radius:us,centerPosition:rt,viewBox:al}=dr,Gt=({size:e,indeterminate:t,value:i,max:s,...a})=>{let r;return t||(r={strokeDashArray:sl(i,s||0),strokeDashoffset:"0"}),n("svg",{class:il({size:e,indeterminate:t,value:i}),viewBox:al,...a},n("circle",{class:"gids-spinner-control__track",cx:rt,cy:rt,r:us,"stroke-width":ps}),n("circle",{style:r,class:"gids-spinner-control__progress",cx:rt,cy:rt,r:us,"stroke-width":ps}))},{getGidsSpinnerClassNames:nl}=Po,{getElementVisibility:rl}=rr,de=({label:e,supportingText:t,size:i,indeterminate:s,value:a,max:r,class:o,...l})=>{const{hasLabel:d,hasSupportingText:h}=rl({label:e,supportingText:t});return n("span",{class:nl({size:i},o),...l},n(Gt,{size:i,indeterminate:s,value:a,max:r}),d&&n("span",{class:"gids-spinner__label"},e),h&&n("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:ol}=Yr,_e=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>n("div",{class:ol({type:e},i),...s},e==="loading"?n(de,{indeterminate:!0,size:"md"}):null,e==="no-options"?n("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsDropdownMenuClassNames:ll}=qr,xe=({sectionLabel:e,class:t,...i},s)=>n("div",{class:ll(t),...i},e!=null&&e!==""?n(hs,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?n("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsDropdownItemClassNames:dl}=jr,Be=({id:e,title:t,class:i,selected:s=!1,disabled:a=!1,role:r="list-item-option",value:o,name:l,onPressDropdownItem:d,index:h,defaultSelected:c,leadingAccessory:g,divider:p,isPlaceholderItem:m,...u})=>{const f=dl(typeof i=="string"?i:void 0);return n(nt,{id:e,index:h??0,defaultSelected:c,selected:s,disabled:a,role:r,value:o,name:l,leadingAccessory:g,class:f,onPressListItem:v=>{if(v.defaultPrevented)return;const y=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:o,disabled:a,selectedIndex:h,defaultSelected:c,isPlaceholderItem:m}});d?.(y)},divider:p,isPlaceholderItem:m,...u},t)},{getGidsButtonClassNames:cl}=Ir,R=({appearance:e,size:t,destructive:i,positive:s,loading:a,width:r,leadingIcon:o,trailingIcon:l,as:d,disabled:h,class:c,forceIconOnly:g=!1,...p},m)=>{const u=d||"button",f=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in p||(p.type="button"),n(u,{class:cl({appearance:e,size:t,destructive:i,loading:a,width:r,positive:s},g||m.length===0&&at(o)&&!at(l),c),disabled:u==="button"?h:void 0,...p},n("span",{class:"gids-button__content"},o,m),a&&n(Gt,{size:f,indeterminate:!0}),l)},Ce=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ms=!1;Ce&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(Ce):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Ht=null;const jt=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Yt()})):void 0,Yt=()=>{if(Ce===void 0)return!1;const e=(()=>{if(Ce===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let a=-1,r=0;for(let o=0;o<s.cssRules.length;o++){const l=s.cssRules.item(o);if(l?.cssText.startsWith("gids-global-styles-start"))a=o;else if(a>-1){if(l?.cssText.startsWith("gids-global-styles-end")){r=o-a+1;break}t.push(l)}}if(a>-1)return{rulesStartIndex:a,originalRulesCount:r,rules:t,styleSheet:s}}catch(a){if(!(a instanceof DOMException))throw a}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return jt!==void 0&&t!==Ht&&(Ht&&jt.disconnect(),t instanceof Element&&jt.observe(t,{childList:!0,characterData:!0,subtree:!0}),Ht=t),Ce.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:a,styleSheet:r}=i;for(let o=0;o<a;o++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Y=()=>(ms||(ms=Yt()),Ce),fs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=De(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected!==e&&(this.selected=e)}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e),this.selected=e}render(){return n($,{key:"330cebe4e29e06299465abf676035ac3f2268d47"},n("style",{key:"416c5a345c486676384e859125ccc493c5be5020"},`:host {
|
|
6
6
|
display: ${this.width==="full"?"block":"inline-block"}
|
|
7
|
-
}`),n(R,{key:"c073ff03d8910844a6f7dbb86d6c1141a9dd1c2e",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:n("slot",{name:"leadingIcon"}),trailingIcon:n("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},n("slot",{key:"9d49f9106e4f3313363e878364d1261ba9ebd7c1"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function qt(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,fs))}))}qt();const{getGidsFilterClassNames:gl}=io,bs=T((ie=class extends E{constructor(t){super(),t!==!1&&this.__registerHost(),this.expanded=!1,this.type="none",this.filterItemType="primary",this.filterSelected=!1,this.filterDefaultSelected=!1,this.disabled=!1,this.size="sm",this.loading=!1,this.filterIndex=0,this.hasSlottedMenu=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.setupDefaultSelctedFilterEmission=()=>{this.setupDefaultSelectedNoneAllFilterEmission()},this.setupDefaultSelectedNoneAllFilterEmission=()=>{const i=`${this.filterId||"default"}_${this.value}`;if(this.filterDefaultSelected&&!ie.emittedValuesTracker.has(i)&&(this.type==="none"&&this.filterItemType==="secondary"||this.type==="all")){ie.emittedValuesTracker.add(i);const s={id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:void 0,filterSelected:!0,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1};setTimeout((()=>{this.onFilterMenuItemChange?.(s)}),0)}},this.handleFilterPickerItemSelect=i=>{const{value:s,title:a,disabled:r,id:o,selectedIndex:l,isPlaceholderItem:d,defaultSelected:h}=i.detail;r||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,filterId:this?.filterId,value:s,title:a,disabled:!1,selectedFilterMenuIndex:l,defaultSelected:h,filterType:this.type,filterItemType:this.filterItemType,filterTitle:a,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!d,isPlaceholderItem:d||!1}))},this.handleMenuClick=i=>{if(this.suppressNextMenuClickSelection)return;const s=i.target;if(!(s instanceof Element))return;const a=s.closest(".gids-dropdown-item");if(!a||!this.hostElement.contains(a)||a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true")return;const r=a instanceof HTMLButtonElement?a.value:a.getAttribute("value")??"";if(typeof r!="string"||r.length===0)return;const o=a instanceof HTMLButtonElement?a.id:a.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const l=a instanceof HTMLButtonElement?a.tabIndex:a.getAttribute("tabIndex")??"",d=a.getAttribute("is-placeholder-item")??"",h=a.querySelector(".gids-dropdown-item__label")||a.querySelector("span"),c=h?h.textContent?.trim():a.firstChild?.textContent?.trim()||r,g=!(!d||d!=="true");this.applySelection({id:o,filterId:this.filterId,value:r,title:c,disabled:!1,selectedFilterMenuIndex:Number(l),defaultSelected:this.filterDefaultSelected,filterType:this.type,filterItemType:this.filterItemType,filterTitle:c,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!g,isPlaceholderItem:g})},this.handleTriggerToggle=i=>{this.isInteractive()&&this.setExpandedState(!this.expanded,i)},this.handleFilterButtonClickToggle=i=>{if(!i.defaultPrevented)if(i.stopPropagation(),this.isMenuToggler())this.handleTriggerToggle(i);else{this.filterSelected=i.detail,i?.detail===!1&&this.handleFormReset(),this.applySelection({id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:i,filterSelected:i.detail,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1});const s={expanded:!1,originalEvent:i};this.onToggle?.(s)}},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=this.initialValue,this.filterSelected=!1,this.isMenuToggler()?this.setExpandedState(!1):this.expanded=!1},this.setFilterDropdownPosition=()=>{if(!this.hostElement)return;const i=this.hostElement.querySelector(".gids-filter__menu");if(!i)return;const s=window.innerWidth/2,a=this.hostElement.getBoundingClientRect();a.left+a.width/2>s?i.classList.add("gids-filter__menu--align-right"):i.classList.remove("gids-filter__menu--align-right")}}handleExpandedChange(t){t&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}handleFilterTypeChange(t){this.type=t}handleFilterIdArrival(t){t!=null&&this.setupDefaultSelctedFilterEmission()}handleFilterSelectedChange(t){this.filterSelected=t}handleFilterDefaultSelectedChange(t){const i=`${this.filterId||"default"}_${this.value}`;t?(ie.emittedValuesTracker.delete(i),this.setupDefaultSelctedFilterEmission()):ie.emittedValuesTracker.delete(i)}connectedCallback(){this.attachItemListener(),this.attachFormListener()}componentDidLoad(){this.initialValue=this.value,this.evaluateSlottedMenuExistence(),this.filterId!=null&&this.setupDefaultSelctedFilterEmission()}disconnectedCallback(){this.detachItemListener(),this.detachFormListener()}getFilterButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}evaluateSlottedMenuExistence(){const t=this.hostElement.querySelector(".gids-filter__menu");if(!t)return void(this.hasSlottedMenu=!1);const i=Array.from(t.childNodes).filter((s=>s.nodeType!==Node.COMMENT_NODE&&!(s.nodeType===Node.TEXT_NODE&&!s.textContent?.trim())));this.hasSlottedMenu=i.length>0}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!1)}applySelection(t){this.value=t.value,this.selectedItemTitle=typeof t.title=="string"?t.title:void 0,this.clearActive(),this.isMenuToggler()?this.setExpandedState(!1,this.coerceEvent(t.originalEvent)):this.expanded=!1,this.onFilterMenuItemChange?.(t),this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange",{bubbles:!0,composed:!0,detail:t}))}clearActive(){this.getItemElements().forEach((t=>t.classList.remove("gids-dropdown-item--active")))}setExpandedState(t,i){const s=!!t;if(this.setFilterDropdownPosition(),s&&!this.isInteractive()||this.expanded===s)return;this.expanded=s,s||(this.clearActive(),this.syncFilterDisplayValue());const a={expanded:s,originalEvent:i};this.onToggle?.(a)}syncFilterDisplayValue(){const t=this.getFilterButtonControl();t&&t.value!==(this.selectedItemTitle??"")&&(t.value=this.selectedItemTitle??"")}attachFormListener(){const t=this.hostElement.closest("form");this.patternForm!==t&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=t??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(t){if(typeof Event<"u"&&t!==null)return t instanceof Event?t:void 0}isMenuToggler(){return(this.type==="none"||this.type==="more")&&this.hasSlottedMenu}handleWindowClick(t){this.expanded&&(t.composedPath().includes(this.hostElement)||this.setExpandedState(!1,t))}render(){const t=this.expanded&&this.isInteractive(),i=gl({expanded:t}),s=this.isMenuToggler(),a=typeof this.filterPickerId=="string"?this.filterPickerId:void 0,r=a?`${a}__menu`:void 0,o=this.selectedItemTitle??this.value??"",l=this.type==="more",d=this.type==="all",h=this.type==="none";return n("div",{key:"48ed552fe95d69e18e365e85b3de3b8b7536c1bb",class:i,"aria-control":r??""},n("gids-toggle-button",{key:"d656f1fcb5a220c1e42376ec305bf2c402c037ae",id:a,name:this.name,expanded:t,value:o,disabled:this.disabled,size:this.size,loading:this.loading,tabIndex:this.filterIndex,defaultSelected:this.filterDefaultSelected,selected:this.filterSelected,onSelect:this.handleFilterButtonClickToggle},l||d?n(P,{name:l?"options":"filter",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"}):void 0,h||d?o:void 0,s&&!l?n(P,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"trailingIcon"}):void 0),n("div",{key:"1fcbedea7065cad76baba2626e73535bf8add8db",class:"gids-filter__menu",id:r,role:"pickerbox",onClick:this.handleMenuClick},n("slot",{key:"d2f20aec18633d789b71e08498b4b190caed73a9",onSlotchange:()=>this.evaluateSlottedMenuExistence()})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}}static get style(){return".gids-filter{position:relative}.gids-filter__menu{position:absolute;inset-inline: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;max-height:15rem;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);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}"}},ie.emittedValuesTracker=new Set,ie),[260,"gids-filter",{name:[1],filterId:[1025,"filter-id"],filterPickerId:[1,"filter-picker-id"],expanded:[4],type:[1],filterItemType:[1,"filter-item-type"],value:[1],filterSelected:[1540,"filter-selected"],filterDefaultSelected:[4,"filter-default-selected"],disabled:[4],size:[1],loading:[4],filterIndex:[2,"filter-index"],onFilterMenuItemChange:[16],onToggle:[16],selectedItemTitle:[32],hasSlottedMenu:[32]},[[8,"click","handleWindowClick"]],{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}]);function vs(){typeof customElements<"u"&&["gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-filter":customElements.get(e)||customElements.define(e,bs);break;case"gids-toggle-button":customElements.get(e)||qt()}}))}vs();const{getGidsActionBarClassNames:hl}=Yn,ys=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.actionGroup=!1,this.allFiltersTabVisible=!1,this.moreFiltersTabVisible=!1,this.clearAllFiltersVisible=!0,this.filterAllIsDefaultSelected=!0,this.clearAllFiltersButtonAppearance="primary",this.primaryFilters=[],this.secondaryFilters=[],this.filterSize="xs",this.disabled=!1,this.activeExpandedFilterId=void 0,this.tempFilterAll=[],this.handleAllFilterClick=t=>{const{id:i,filterId:s,title:a,value:r,disabled:o,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,filterSelected:p,defaultSelected:m,hasFilterMenu:u,isPlaceholderItem:f}=t;this.applyAllToggleSelection({title:a,value:r,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,hasFilterMenu:u,filterSelected:!(!m&&!this.filterAllIsDefaultSelected)||p,isPlaceholderItem:f,filterId:s,filterPickerId:i,filterDisabled:o,filterDefaultSelected:!(!m&&!this.filterAllIsDefaultSelected),selectedFilterMenuSectionIndex:void 0,filterPickerData:void 0})},this.handleSecondaryFilterClick=t=>{const{id:i,filterId:s,title:a,value:r,disabled:o,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,filterSelected:p,defaultSelected:m,hasFilterMenu:u,isPlaceholderItem:f}=t;this.applySecondaryFilterToggleSelection({title:a,value:r,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,hasFilterMenu:u,filterSelected:p,isPlaceholderItem:f,filterId:s,filterPickerId:i,filterDisabled:o,filterDefaultSelected:m||!1,selectedFilterMenuSectionIndex:void 0,filterPickerData:void 0})},this.applySecondaryFilterToggleSelection=t=>{this.setFilterPickerExpandedState(t?.filterId,{expanded:!1}),this.applyNormalFiltersSelectedStateChange(t),this.onToggleActionBarNoneFilter&&this.onToggleActionBarNoneFilter({...t,selectedFilters:this?.selectedFilters??[]})},this.calculateWhenNormalFilterFound=(t,i)=>{const s=t[i];return this.filterAllCanBeRemove()?(t.splice(i,1),this.selectedFiltersHasFilterAll()||t.length!==0||t.push({...this.tempFilterAll[0]}),{calculatedSelectedFilters:t,returnIt:!1}):(this.selectedFilters=t=[],setTimeout((()=>{t=[{...s}],this.selectedFilters=t}),200),{calculatedSelectedFilters:t,returnIt:!0})},this.toggleDropdownFilter=({detail:t,filterId:i,pickerData:s})=>{this.setFilterPickerExpandedState(i,t),this.onToggleActionBarDropdownFilter&&this.onToggleActionBarDropdownFilter({filterId:i,pickerData:s,...t})},this.handleDropdownFilterMenuItemClick=({event:t,filterItemType:i,filterType:s,filterIndex:a,filterId:r,filterMenuSectionIndex:o})=>{const l=t.detail,{id:d,defaultSelected:h,disabled:c,isPlaceholderItem:g,selectedIndex:p,title:m,value:u}=l;this.applyDropdownFilterMenuItemSelection({title:m,value:u,selectedFilterMenuIndex:p,filterType:s,filterItemType:i,filterTitle:m,filterIndex:a,hasFilterMenu:!0,filterSelected:!g,isPlaceholderItem:g,filterId:r,filterPickerId:d,filterDisabled:c,filterDefaultSelected:h||!1,selectedFilterMenuSectionIndex:o,filterPickerData:l})},this.applyDropdownFilterMenuItemSelection=t=>{this.applyDropdownFiltersSelectedStateChange(t),this.onDropdownSelectionActionBarFilterChange&&this.onDropdownSelectionActionBarFilterChange({...t,selectedFilters:this?.selectedFilters??[]})},this.applyDropdownFiltersSelectedStateChange=t=>{let i=this?.selectedFilters?[...this.selectedFilters]:[];if(i.length>0){const s=i.findIndex((a=>a.filterId===t?.filterId));s!=null&&s!==-1?t?.isPlaceholderItem?(i.splice(s,1),!this.selectedFiltersHasLastFilterAll()&&i.length<=0&&this.filterAllIsDefaultSelected&&(i=[...this.tempFilterAll])):(i[s]={...t,filterPickerData:{...t.filterPickerData}},this.selectedFiltersHasFilterAll()&&this.filterAllIsDefaultSelected&&(i=[...this.removeFilterAll(i)])):t?.isPlaceholderItem||(i.push({...t,filterPickerData:{...t.filterPickerData}}),this.selectedFiltersHasFilterAll()&&this.filterAllIsDefaultSelected&&(i=[...this.removeFilterAll(i)]))}else t?.isPlaceholderItem||(i.push({...t,filterPickerData:{...t.filterPickerData}}),this.selectedFiltersHasFilterAll()&&this.filterAllIsDefaultSelected&&(i=[...this.removeFilterAll(i)]));this.selectedFilters=[...i]},this.clearingFilters=()=>{this.selectedFilters=this.isAllFilterVisible()&&this.filterAllIsDefaultSelected?[{...this.tempFilterAll[0]}]:[]},this.handleClearAllFiltersClick=t=>{this.clearingFilters(),this.onClearAllFiltersButton&&this.onClearAllFiltersButton({selectedFilters:this?.selectedFilters??[],originalEvent:t})},this.selectedFiltersHasFilterAll=()=>!!(this?.selectedFilters??[]).find((t=>t.filterId===this.getAllFilterId())),this.filterAllCanBeRemove=()=>{const t=this?.selectedFilters??[];return!(this.filterAllIsDefaultSelected&&this.selectedFiltersHasFilterAll()&&t.length<=1)},this.removeFilterAll=t=>{if(t.length>0){const i=t.findIndex((s=>s.filterId===this.getAllFilterId()));if(i!=null&&i!==-1){const s=t[i];s&&(this.tempFilterAll=[{...s}]),t.splice(i,1)}}return t},this.selectedFiltersStateStatus=()=>{const t=this?.selectedFilters??[];return t.length<=0?"none":t.length===1?"one-filter":"more-than-one"},this.selectedFiltersHasLastFilterAll=()=>this.selectedFiltersStateStatus()==="one-filter"&&!!(this?.selectedFilters??[]).find((t=>t.filterId===this.getAllFilterId()))}handleFilterSizeChange(e){this.filterSize=e}handleDropdownDividerVisibilityChange(e){this.dropdownDividerVisible=e}handlePrimaryFiltersChange(e){this.primaryFilters=e}handleSecondaryFiltersChange(e){this.secondaryFilters=e}handleAllFiltersDataChange(e){this.allFiltersData=e}handleMoreFiltersValueChange(e){this.moreFiltersData=e}handleDisabilityChange(e){this.disabled=e}handleActionGroupChange(e){this.actionGroup=e}handleFilterAllIsDefaultSelectedChange(e){this.filterAllIsDefaultSelected=e}handleClearAllFiltersButtonAppearanceChange(e){this.clearAllFiltersButtonAppearance=e}connectedCallback(){this.createAllFiltersData()}componentDidLoad(){}applyAllToggleSelection(e){this.setFilterPickerExpandedState(e?.filterId,{expanded:!1}),this.applyNormalFiltersSelectedStateChange(e),setTimeout((()=>{this.onToggleActionBarAllFilter&&(this.tempFilterAll=[{...e,selectedFilters:this?.selectedFilters??[]}],this.onToggleActionBarAllFilter({...e,selectedFilters:this?.selectedFilters??[]}))}),200)}applyNormalFiltersSelectedStateChange(e){let t=this?.selectedFilters?[...this.selectedFilters]:[];if(t&&t.length>0){const i=t.findIndex((s=>s.filterId===e?.filterId));if(i!=null&&i!==-1){const{calculatedSelectedFilters:s,returnIt:a}=this.calculateWhenNormalFilterFound(t,i);if(a)return;t=[...s]}else e?.filterSelected&&(e?.filterId!==this.getAllFilterId()?(t=[...this.removeFilterAll(t)],t.push({...e})):e?.filterId===this.getAllFilterId()?(t=[],t=[{...e}]):t.push({...e}))}else e?.filterSelected&&t.push({...e});this.selectedFilters=t}isMoreFilterVisible(){const e=this.moreFiltersData;return!!(this.moreFiltersTabVisible&&e&&Object.keys(e).length>0&&e?.filterPickerData&&e.filterPickerData.length>0)}isAllFilterVisible(){return!!this.allFiltersTabVisible}isAllFiltersTabDisabled(){const e=this?.allFiltersData?.disabled;return!(!this.disabled&&!e)}isMoreFiltersTabDisabled(){const e=this?.moreFiltersData?.disabled;return!(!this.disabled&&!e)}isActionGroup(){const e=this.isMoreFilterVisible(),t=this?.secondaryFilters&&this.secondaryFilters.length>0,i=this?.actionGroup;return!(!e&&!t||!i)}createAllFiltersData(){const e=this.allFiltersData;e?.label&&e.label!==""||(this.allFiltersData={...this.allFiltersData,label:"All"})}getAllFiltersValue(){return this.allFiltersData?.label??"All"}getSelectedFilter(e){return(this?.selectedFilters??[]).find((t=>t.filterId===e))}getSelectedDropdownFilterTitle(e){const t=this.getSelectedFilter(e);if(t?.filterTitle)return t.filterTitle;const i=(this?.primaryFilters??[]).find((o=>o?.filterId===e)),s=i?.filterPickerData??[],a=s?.[0]?.items?.[0];let r="";return a?.isPlaceholderItem&&a?.title&&(r=a.title),r}isNormalFilterSelected(e){return!!this.getSelectedFilter(e)}isDropdownFilterSelected(e){const t=this.getSelectedFilter(e),i=t?.filterPickerData;return!(!i?.title&&!i?.value||i?.isPlaceholderItem)}getSelectedFilterPickerData(e){return this.getSelectedFilter(e)?.filterPickerData}setFilterPickerExpandedState(e,t){this.activeExpandedFilterId=t?.expanded?e:void 0}getAllFilterId(){return this?.allFiltersData?.filterId&&this.allFiltersData.filterId!==""?this.allFiltersData.filterId:`1_${this.getAllFiltersValue()}_primary`}getMoreFilterId(){const e=this?.secondaryFilters??[];return this?.moreFiltersData?.filterId&&this.moreFiltersData.filterId!==""?this.moreFiltersData.filterId:e.length+1+"_more_secondary"}render(){const e=hl(),t=this?.primaryFilters??[],i=this?.secondaryFilters??[],s=this.isMoreFilterVisible(),a=this.moreFiltersData,r=a?.filterPickerData??[],o={disabled:this?.moreFiltersData?.disabled,filterDefaultSelected:this?.moreFiltersData?.filterDefaultSelected,loading:this?.moreFiltersData?.loading},l=this.isAllFilterVisible(),d=this.getAllFiltersValue(),h={defaultSelected:this?.allFiltersData?.defaultSelected,disabled:this?.allFiltersData?.disabled,loading:this?.allFiltersData?.loading},c=this.dropdownDividerVisible,g=this.filterSize,p=this.isActionGroup(),m=this.getAllFilterId(),u=this.getMoreFilterId(),f="secondary",v="more",y=i.length+1,_=this.getSelectedDropdownFilterTitle(u),b=this.isDropdownFilterSelected(u);return n("div",{key:"adf0d02efe4d7d29203e1478c31d5059425e4d0c",class:e},n("div",{key:"4e24965b10d1bd13740196f11eb6681b882f0b5f",class:"gids-action-bar__primary-filters"},n(Rt,{key:"10ca864d9a7235bd9e7c564263112ebe0c33932f",layout:"wrap"},l?n("gids-filter",{type:"all",filterId:m,filterDefaultSelected:this.filterAllIsDefaultSelected,filterIndex:0,filterItemType:"primary",filterSelected:this.isNormalFilterSelected(m),value:d,...h,disabled:this.isAllFiltersTabDisabled(),size:g,onFilterMenuItemChange:this.handleAllFilterClick}):void 0,t.map(((x,C)=>{const I=x?.filterPickerData??[],k=x?.filterId&&x.filterId!==""?x.filterId:C+1+"_primary",L="primary",M="none",A=this.getSelectedDropdownFilterTitle(k),F=this.isDropdownFilterSelected(k);return n("gids-filter",{key:`${k}_${A}`,...x,filterIndex:C+1,filterId:k,disabled:x?.disabled||this.disabled,filterDefaultSelected:x?.filterDefaultSelected,filterSelected:F,type:M,filterItemType:L,title:A,value:A,size:g,expanded:this.activeExpandedFilterId===k,onToggle:z=>this.toggleDropdownFilter({detail:z,filterId:k,pickerData:I})},n(_e,{type:"default"},I.map(((z,O)=>{const B=z?.sectionLabel;return n(xe,{sectionLabel:B,key:""+O},(z?.items??[]).map(((V,G)=>{const U=V?.isPlaceholderItem??!1,H=V?.id&&V.id!==""?V.id:`${k}_s${O}_i${G}`;let X=!1;return F?X=this.getSelectedFilterPickerData(k)?.id===H:X=G===0,n(Be,{key:H,id:H,index:G,title:V?.title,value:V?.value,disabled:V?.disabled,defaultSelected:V?.defaultSelected,isPlaceholderItem:U,selected:X,divider:c,onPressDropdownItem:vt=>this.handleDropdownFilterMenuItemClick({event:vt,filterItemType:L,filterType:M,filterIndex:C,filterId:k,filterMenuSectionIndex:O})})})))}))))})),this.clearAllFiltersVisible&&!p?n(R,{size:this.filterSize,appearance:this.clearAllFiltersButtonAppearance,leadingIcon:n(P,{name:"cross",size:this.filterSize,slot:"leadingIcon"}),onClick:this.handleClearAllFiltersClick}):void 0)),p?n("div",{class:"gids-action-bar__secondary-filters"},n(Rt,{layout:"wrap"},i.map(((x,C)=>{const I=x?.filterId&&x.filterId!==""?x.filterId:`${C+1}_${x?.label}_secondary`;return n("gids-filter",{key:""+(t.length+C+1),...x,filterIndex:C,filterId:I,disabled:x?.disabled||this.disabled,filterDefaultSelected:x?.defaultSelected,type:"none",filterItemType:"secondary",value:x?.label,size:g,filterSelected:this.isNormalFilterSelected(I),onFilterMenuItemChange:this.handleSecondaryFilterClick})})),s?n("gids-filter",{key:`${u}_${_}`,type:v,filterItemType:f,filterIndex:y,filterId:u,...o,disabled:this.isMoreFiltersTabDisabled(),filterSelected:b,size:g,expanded:this.activeExpandedFilterId===u},n(_e,{type:"default"},r.map(((x,C)=>{const I=x?.items??[],k=x?.sectionLabel;return n(xe,{sectionLabel:k,key:""+C},I.map(((L,M)=>{const A=L?.isPlaceholderItem??!1,F=L?.id&&L.id!==""?L.id:`${u}_s${C}_i${M}`;let z=!1;return b?z=this.getSelectedFilterPickerData(u)?.id===F:z=M===0,n(Be,{key:F,id:F,index:M,title:L?.title,value:L?.value,disabled:L?.disabled,isPlaceholderItem:A,selected:z,defaultSelected:L?.defaultSelected,divider:c,onPressDropdownItem:O=>this.handleDropdownFilterMenuItemClick({event:O,filterItemType:f,filterType:v,filterIndex:y,filterId:u,filterMenuSectionIndex:C})})})))})))):void 0,this.clearAllFiltersVisible?n(R,{size:this.filterSize,appearance:this.clearAllFiltersButtonAppearance,leadingIcon:n(P,{name:"cross",size:this.filterSize,slot:"leadingIcon"}),onClick:this.handleClearAllFiltersClick}):void 0)):void 0)}static get watchers(){return{filterSize:[{handleFilterSizeChange:0}],dropdownDividerVisible:[{handleDropdownDividerVisibilityChange:0}],primaryFilters:[{handlePrimaryFiltersChange:0}],secondaryFilters:[{handleSecondaryFiltersChange:0}],allFiltersData:[{handleAllFiltersDataChange:0}],moreFiltersData:[{handleMoreFiltersValueChange:0}],disabled:[{handleDisabilityChange:0}],actionGroup:[{handleActionGroupChange:0}],filterAllIsDefaultSelected:[{handleFilterAllIsDefaultSelectedChange:0}],clearAllFiltersButtonAppearance:[{handleClearAllFiltersButtonAppearanceChange:0}]}}static get style(){return".gids-action-bar{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:var(--gids-gap-600);align-self:stretch}.gids-action-bar__primary-filters{display:flex;align-items:center;justify-content:flex-start;flex:1 0 0}.gids-action-bar__secondary-filters{display:flex;align-items:center;justify-content:flex-end}"}},[0,"gids-action-bar",{actionGroup:[4,"action-group"],allFiltersTabVisible:[4,"all-filters-tab-visible"],moreFiltersTabVisible:[4,"more-filters-tab-visible"],clearAllFiltersVisible:[4,"clear-all-filters-visible"],filterAllIsDefaultSelected:[4,"filter-all-is-default-selected"],clearAllFiltersButtonAppearance:[1,"clear-all-filters-button-appearance"],primaryFilters:[16],secondaryFilters:[16],allFiltersData:[16],moreFiltersData:[16],filterSize:[1,"filter-size"],dropdownDividerVisible:[4,"dropdown-divider-visible"],disabled:[4],onToggleActionBarAllFilter:[16],onToggleActionBarDropdownFilter:[16],onToggleActionBarMoreFilter:[16],onToggleActionBarNoneFilter:[16],onDropdownSelectionActionBarFilterChange:[16],onMoreSelectionActionBarFilterChange:[16],onClearAllFiltersButton:[16],selectedFilters:[32],activeExpandedFilterId:[32],tempFilterAll:[32]},void 0,{filterSize:[{handleFilterSizeChange:0}],dropdownDividerVisible:[{handleDropdownDividerVisibilityChange:0}],primaryFilters:[{handlePrimaryFiltersChange:0}],secondaryFilters:[{handleSecondaryFiltersChange:0}],allFiltersData:[{handleAllFiltersDataChange:0}],moreFiltersData:[{handleMoreFiltersValueChange:0}],disabled:[{handleDisabilityChange:0}],actionGroup:[{handleActionGroupChange:0}],filterAllIsDefaultSelected:[{handleFilterAllIsDefaultSelectedChange:0}],clearAllFiltersButtonAppearance:[{handleClearAllFiltersButtonAppearanceChange:0}]}]);function pl(){typeof customElements<"u"&&["gids-action-bar","gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-action-bar":customElements.get(e)||customElements.define(e,ys);break;case"gids-filter":customElements.get(e)||vs();break;case"gids-toggle-button":customElements.get(e)||qt()}}))}pl();const ul=ys,{getGidsChartLegendClassNames:ml}=$r,_s=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=ml({orientation:this.orientation});return n("div",{key:"d8930dd78a4d923145c5985f2c04f033281c98e7",class:e},n("slot",{key:"df109d03028671987581408c825d870ae8a5d28e"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function we(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,_s))}))}we();const{getGidsChartLegendItemClassNames:fl}=Nr,xs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}handleSeriesColorChange(e){this.seriesColor=e}render(){const e=this.seriesColor,t=e&&e!=="",i=fl({seriesType:t?"none":this.seriesType,orientation:this.orientation});return n("div",{key:"db67ecf697bef6636b7355746b627db8c3611fa2",class:i},n("div",{key:"b97a49db6ba7bd04b1627105a3620630bd49271d",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},n(P,{key:"1377932ffbdeff6a20afc18cd9afdaf766373858",name:"new",alt:"new_icon",appearance:"filled",style:t?{"--gidsIcon-color":e}:{}})),n("span",{key:"66484c78316a9f49d439b2866db123f8744dae18",class:"gids-chart-legend-item__label"},n("slot",{key:"2c641289641133bc01400d0b8e280514d8661ad6"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"],seriesColor:[1,"series-color"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}]);function Se(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,xs))}))}Se();const{getGidsActivityGaugeClassNames:bl}=qn,Cs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartData=[],this.label="",this.size="xs",this.legend="none",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendChanged(e){this.legend=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-activity-gauge__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.map((c=>c.value||0)),t=e.length>0?Math.max(...e):0,i=Math.max(1e3,t),s=i.toLocaleString(),a=bl({breakpoint:this.breakpoint}),r=[{radius:42,strokeWidth:5.5},{radius:34,strokeWidth:5.5},{radius:26,strokeWidth:5.5}],o=this.size==="xxs",l=typeof this.label=="string"&&this.label.trim()!=="",d=this.legend&&this.legend==="right"&&this.breakpoint!=="mobile",h=this.legend&&(this.legend==="bottom"||this.breakpoint==="mobile");return n("div",{class:a},n("div",{class:"gids-activity-gauge__main-container"},n("div",{class:"gids-activity-gauge__chart-stage-container"},n("div",{class:`gids-activity-gauge__svg-wrapper gids-activity-gauge--size-${this.size}`},n("svg",{viewBox:"0 0 100 100",class:"gids-activity-gauge__chart-vector"},this.chartData.slice(0,3).map(((c,g)=>{const p=r[g]||r[0]||{radius:26,strokeWidth:5.5},m=i>0?Math.min(Math.max((c.value||0)/i,0),1):0,u=2*Math.PI*p.radius,f=`${m*u} ${u}`;return n("g",{key:c.label||g},n("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:"gids-activity-gauge__track-background"}),n("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:`gids-activity-gauge__segment gids-activity-gauge__segment-series-${g+1}`,"stroke-dasharray":f,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"}))}))),n("div",{class:"gids-activity-gauge__center-content"},l&&!o?n("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label):null,n("span",{class:`gids-activity-gauge__value-common gids-activity-gauge__value-${this.size}`},s)))),d?n("div",{class:"gids-activity-gauge__sidebar"},n("gids-chart-legend",{orientation:"vertical"},this.chartData.slice(0,3).map(((c,g)=>n("gids-chart-legend-item",{key:c.label,seriesType:`${g+1}`,orientation:"vertical"},c.label))))):null),o&&l?n("div",{class:"gids-activity-gauge__bottom-content"},n("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label)):null,h?n("div",{class:"gids-activity-gauge__legend-container gids-activity-gauge__legend-container--bottom"},n("gids-chart-legend",{orientation:"horizontal"},this.chartData.slice(0,3).map(((c,g)=>n("gids-chart-legend-item",{key:c.label,seriesType:`${g+1}`,orientation:"horizontal"},c.label))))):null)}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-activity-gauge__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-activity-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-activity-gauge--size-xxs{width:180px;height:180px}.gids-activity-gauge--size-xs{width:220px;height:220px}.gids-activity-gauge--size-sm{width:260px;height:260px}.gids-activity-gauge--size-md{width:300px;height:300px}.gids-activity-gauge--size-lg{width:340px;height:340px}.gids-activity-gauge__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-activity-gauge__chart-vector{display:block;width:100%;height:100%}.gids-activity-gauge__track-background{fill:none;stroke:var(--gids-color-background-brand-subtlest-default);stroke-linecap:round}.gids-activity-gauge__segment{fill:none;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-1{stroke:var(--gids-color-icon-subtle)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-2{stroke:var(--gids-color-icon-warning)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-3{stroke:var(--gids-color-icon-danger)}.gids-activity-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-activity-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-md{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-activity-gauge__label-lg{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-activity-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-activity-gauge__value-xxs{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-activity-gauge__value-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-common{color:var(--gids-color-text-default)}.gids-activity-gauge__bottom-content{display:flex;justify-content:center;align-items:center;text-align:center}.gids-activity-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-activity-gauge",{breakpoint:[1],chartData:[16],label:[1],size:[1],legend:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}]);function ws(){typeof customElements<"u"&&["gids-activity-gauge","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-activity-gauge":customElements.get(e)||customElements.define(e,Cs);break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}ws();const vl=Cs,ce=Math.min,q=Math.max,rt=Math.round,ot=Math.floor,ee=e=>({x:e,y:e}),yl={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(e,t,i){return q(e,ce(t,i))}function Ie(e,t){return typeof e=="function"?e(t):e}function ge(e){return e.split("-")[0]}function ke(e){return e.split("-")[1]}function Ss(e){return e==="x"?"y":"x"}function Ut(e){return e==="y"?"height":"width"}function ne(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Xt(e){return Ss(ne(e))}function _l(e,t,i){i===void 0&&(i=!1);const s=ke(e),a=Xt(e),r=Ut(a);let o=a==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=lt(o)),[o,lt(o)]}function xl(e){const t=lt(e);return[Kt(e),t,Kt(t)]}function Kt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Is=["left","right"],ks=["right","left"],Cl=["top","bottom"],wl=["bottom","top"];function Sl(e,t,i){switch(e){case"top":case"bottom":return i?t?ks:Is:t?Is:ks;case"left":case"right":return t?Cl:wl;default:return[]}}function Il(e,t,i,s){const a=ke(e);let r=Sl(ge(e),i==="start",s);return a&&(r=r.map(o=>o+"-"+a),t&&(r=r.concat(r.map(Kt)))),r}function lt(e){const t=ge(e);return yl[t]+e.slice(t.length)}function kl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Es(e){return typeof e!="number"?kl(e):{top:e,right:e,bottom:e,left:e}}function dt(e){const{x:t,y:i,width:s,height:a}=e;return{width:s,height:a,top:i,left:t,right:t+s,bottom:i+a,x:t,y:i}}function Ts(e,t,i){let{reference:s,floating:a}=e;const r=ne(t),o=Xt(t),l=Ut(o),d=ge(t),h=r==="y",c=s.x+s.width/2-a.width/2,g=s.y+s.height/2-a.height/2,p=s[l]/2-a[l]/2;let m;switch(d){case"top":m={x:c,y:s.y-a.height};break;case"bottom":m={x:c,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:g};break;case"left":m={x:s.x-a.width,y:g};break;default:m={x:s.x,y:s.y}}switch(ke(t)){case"start":m[o]-=p*(i&&h?-1:1);break;case"end":m[o]+=p*(i&&h?-1:1);break}return m}async function El(e,t){var i;t===void 0&&(t={});const{x:s,y:a,platform:r,rects:o,elements:l,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:p=!1,padding:m=0}=Ie(t,e),u=Es(m),v=l[p?g==="floating"?"reference":"floating":g],y=dt(await r.getClippingRect({element:(i=await(r.isElement==null?void 0:r.isElement(v)))==null||i?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:h,rootBoundary:c,strategy:d})),_=g==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),x=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},C=dt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:b,strategy:d}):_);return{top:(y.top-C.top+u.top)/x.y,bottom:(C.bottom-y.bottom+u.bottom)/x.y,left:(y.left-C.left+u.left)/x.x,right:(C.right-y.right+u.right)/x.x}}const Tl=50,Ll=async(e,t,i)=>{const{placement:s="bottom",strategy:a="absolute",middleware:r=[],platform:o}=i,l=o.detectOverflow?o:{...o,detectOverflow:El},d=await(o.isRTL==null?void 0:o.isRTL(t));let h=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:g}=Ts(h,s,d),p=s,m=0;const u={};for(let f=0;f<r.length;f++){const v=r[f];if(!v)continue;const{name:y,fn:_}=v,{x:b,y:x,data:C,reset:I}=await _({x:c,y:g,initialPlacement:s,placement:p,strategy:a,middlewareData:u,rects:h,platform:l,elements:{reference:e,floating:t}});c=b??c,g=x??g,u[y]={...u[y],...C},I&&m<Tl&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(h=I.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:c,y:g}=Ts(h,p,d)),f=-1)}return{x:c,y:g,placement:p,strategy:a,middlewareData:u}},Pl=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:s,placement:a,rects:r,platform:o,elements:l,middlewareData:d}=t,{element:h,padding:c=0}=Ie(e,t)||{};if(h==null)return{};const g=Es(c),p={x:i,y:s},m=Xt(a),u=Ut(m),f=await o.getDimensions(h),v=m==="y",y=v?"top":"left",_=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=r.reference[u]+r.reference[m]-p[m]-r.floating[u],C=p[m]-r.reference[m],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let k=I?I[b]:0;(!k||!await(o.isElement==null?void 0:o.isElement(I)))&&(k=l.floating[b]||r.floating[u]);const L=x/2-C/2,M=k/2-f[u]/2-1,A=ce(g[y],M),F=ce(g[_],M),z=A,O=k-f[u]-F,B=k/2-f[u]/2+L,V=Wt(z,B,O),G=!d.arrow&&ke(a)!=null&&B!==V&&r.reference[u]/2-(B<z?A:F)-f[u]/2<0,U=G?B<z?B-z:B-O:0;return{[m]:p[m]+U,data:{[m]:V,centerOffset:B-V-U,...G&&{alignmentOffset:U}},reset:G}}}),Ml=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,s;const{placement:a,middlewareData:r,rects:o,initialPlacement:l,platform:d,elements:h}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...v}=Ie(e,t);if((i=r.arrow)!=null&&i.alignmentOffset)return{};const y=ge(a),_=ne(l),b=ge(l)===l,x=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=p||(b||!f?[lt(l)]:xl(l)),I=u!=="none";!p&&I&&C.push(...Il(l,f,u,x));const k=[l,...C],L=await d.detectOverflow(t,v),M=[];let A=((s=r.flip)==null?void 0:s.overflows)||[];if(c&&M.push(L[y]),g){const B=_l(a,o,x);M.push(L[B[0]],L[B[1]])}if(A=[...A,{placement:a,overflows:M}],!M.every(B=>B<=0)){var F,z;const B=(((F=r.flip)==null?void 0:F.index)||0)+1,V=k[B];if(V&&(!(g==="alignment"?_!==ne(V):!1)||A.every(H=>ne(H.placement)===_?H.overflows[0]>0:!0)))return{data:{index:B,overflows:A},reset:{placement:V}};let G=(z=A.filter(U=>U.overflows[0]<=0).sort((U,H)=>U.overflows[1]-H.overflows[1])[0])==null?void 0:z.placement;if(!G)switch(m){case"bestFit":{var O;const U=(O=A.filter(H=>{if(I){const X=ne(H.placement);return X===_||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,vt)=>X+vt,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:O[0];U&&(G=U);break}case"initialPlacement":G=l;break}if(a!==G)return{reset:{placement:G}}}return{}}}},Al=new Set(["left","top"]);async function Dl(e,t){const{placement:i,platform:s,elements:a}=e,r=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=ge(i),l=ke(i),d=ne(i)==="y",h=Al.has(o)?-1:1,c=r&&d?-1:1,g=Ie(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:u}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof u=="number"&&(m=l==="end"?u*-1:u),d?{x:m*c,y:p*h}:{x:p*h,y:m*c}}const zl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,s;const{x:a,y:r,placement:o,middlewareData:l}=t,d=await Dl(t,e);return o===((i=l.offset)==null?void 0:i.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:r+d.y,data:{...d,placement:o}}}}},Nl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:s,placement:a,platform:r}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:y=>{let{x:_,y:b}=y;return{x:_,y:b}}},...h}=Ie(e,t),c={x:i,y:s},g=await r.detectOverflow(t,h),p=ne(ge(a)),m=Ss(p);let u=c[m],f=c[p];if(o){const y=m==="y"?"top":"left",_=m==="y"?"bottom":"right",b=u+g[y],x=u-g[_];u=Wt(b,u,x)}if(l){const y=p==="y"?"top":"left",_=p==="y"?"bottom":"right",b=f+g[y],x=f-g[_];f=Wt(b,f,x)}const v=d.fn({...t,[m]:u,[p]:f});return{...v,data:{x:v.x-i,y:v.y-s,enabled:{[m]:o,[p]:l}}}}}},$l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var i,s;const{placement:a,rects:r,platform:o,elements:l}=t,{apply:d=()=>{},...h}=Ie(e,t),c=await o.detectOverflow(t,h),g=ge(a),p=ke(a),m=ne(a)==="y",{width:u,height:f}=r.floating;let v,y;g==="top"||g==="bottom"?(v=g,y=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=g,v=p==="end"?"top":"bottom");const _=f-c.top-c.bottom,b=u-c.left-c.right,x=ce(f-c[v],_),C=ce(u-c[y],b),I=!t.middlewareData.shift;let k=x,L=C;if((i=t.middlewareData.shift)!=null&&i.enabled.x&&(L=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(k=_),I&&!p){const A=q(c.left,0),F=q(c.right,0),z=q(c.top,0),O=q(c.bottom,0);m?L=u-2*(A!==0||F!==0?A+F:q(c.left,c.right)):k=f-2*(z!==0||O!==0?z+O:q(c.top,c.bottom))}await d({...t,availableWidth:L,availableHeight:k});const M=await o.getDimensions(l.floating);return u!==M.width||f!==M.height?{reset:{rects:!0}}:{}}}};function ct(){return typeof window<"u"}function Ee(e){return Ls(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(Ls(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ls(e){return ct()?e instanceof Node||e instanceof W(e).Node:!1}function Q(e){return ct()?e instanceof Element||e instanceof W(e).Element:!1}function re(e){return ct()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Ps(e){return!ct()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:i,overflowY:s,display:a}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&a!=="inline"&&a!=="contents"}function Fl(e){return/^(table|td|th)$/.test(Ee(e))}function gt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ol=/transform|translate|scale|rotate|perspective|filter/,Bl=/paint|layout|strict|content/,me=e=>!!e&&e!=="none";let Qt;function Zt(e){const t=Q(e)?Z(e):e;return me(t.transform)||me(t.translate)||me(t.scale)||me(t.rotate)||me(t.perspective)||!Jt()&&(me(t.backdropFilter)||me(t.filter))||Ol.test(t.willChange||"")||Bl.test(t.contain||"")}function Vl(e){let t=he(e);for(;re(t)&&!Te(t);){if(Zt(t))return t;if(gt(t))return null;t=he(t)}return null}function Jt(){return Qt==null&&(Qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qt}function Te(e){return/^(html|body|#document)$/.test(Ee(e))}function Z(e){return W(e).getComputedStyle(e)}function ht(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function he(e){if(Ee(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||te(e);return Ps(t)?t.host:t}function Ms(e){const t=he(e);return Te(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&Ve(t)?t:Ms(t)}function Re(e,t,i){var s;t===void 0&&(t=[]),i===void 0&&(i=!0);const a=Ms(e),r=a===((s=e.ownerDocument)==null?void 0:s.body),o=W(a);if(r){const l=ei(o);return t.concat(o,o.visualViewport||[],Ve(a)?a:[],l&&i?Re(l):[])}else return t.concat(a,Re(a,[],i))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function As(e){const t=Z(e);let i=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=re(e),r=a?e.offsetWidth:i,o=a?e.offsetHeight:s,l=rt(i)!==r||rt(s)!==o;return l&&(i=r,s=o),{width:i,height:s,$:l}}function ti(e){return Q(e)?e:e.contextElement}function Le(e){const t=ti(e);if(!re(t))return ee(1);const i=t.getBoundingClientRect(),{width:s,height:a,$:r}=As(t);let o=(r?rt(i.width):i.width)/s,l=(r?rt(i.height):i.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Rl=ee(0);function Ds(e){const t=W(e);return!Jt()||!t.visualViewport?Rl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gl(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==W(e)?!1:t}function fe(e,t,i,s){t===void 0&&(t=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),r=ti(e);let o=ee(1);t&&(s?Q(s)&&(o=Le(s)):o=Le(e));const l=Gl(r,i,s)?Ds(r):ee(0);let d=(a.left+l.x)/o.x,h=(a.top+l.y)/o.y,c=a.width/o.x,g=a.height/o.y;if(r){const p=W(r),m=s&&Q(s)?W(s):s;let u=p,f=ei(u);for(;f&&s&&m!==u;){const v=Le(f),y=f.getBoundingClientRect(),_=Z(f),b=y.left+(f.clientLeft+parseFloat(_.paddingLeft))*v.x,x=y.top+(f.clientTop+parseFloat(_.paddingTop))*v.y;d*=v.x,h*=v.y,c*=v.x,g*=v.y,d+=b,h+=x,u=W(f),f=ei(u)}}return dt({width:c,height:g,x:d,y:h})}function pt(e,t){const i=ht(e).scrollLeft;return t?t.left+i:fe(te(e)).left+i}function zs(e,t){const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-pt(e,i),a=i.top+t.scrollTop;return{x:s,y:a}}function Hl(e){let{elements:t,rect:i,offsetParent:s,strategy:a}=e;const r=a==="fixed",o=te(s),l=t?gt(t.floating):!1;if(s===o||l&&r)return i;let d={scrollLeft:0,scrollTop:0},h=ee(1);const c=ee(0),g=re(s);if((g||!g&&!r)&&((Ee(s)!=="body"||Ve(o))&&(d=ht(s)),g)){const m=fe(s);h=Le(s),c.x=m.x+s.clientLeft,c.y=m.y+s.clientTop}const p=o&&!g&&!r?zs(o,d):ee(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-d.scrollLeft*h.x+c.x+p.x,y:i.y*h.y-d.scrollTop*h.y+c.y+p.y}}function jl(e){return Array.from(e.getClientRects())}function Yl(e){const t=te(e),i=ht(e),s=e.ownerDocument.body,a=q(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),r=q(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-i.scrollLeft+pt(e);const l=-i.scrollTop;return Z(s).direction==="rtl"&&(o+=q(t.clientWidth,s.clientWidth)-a),{width:a,height:r,x:o,y:l}}const Ns=25;function ql(e,t){const i=W(e),s=te(e),a=i.visualViewport;let r=s.clientWidth,o=s.clientHeight,l=0,d=0;if(a){r=a.width,o=a.height;const c=Jt();(!c||c&&t==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}const h=pt(s);if(h<=0){const c=s.ownerDocument,g=c.body,p=getComputedStyle(g),m=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,u=Math.abs(s.clientWidth-g.clientWidth-m);u<=Ns&&(r-=u)}else h<=Ns&&(r+=h);return{width:r,height:o,x:l,y:d}}function Wl(e,t){const i=fe(e,!0,t==="fixed"),s=i.top+e.clientTop,a=i.left+e.clientLeft,r=re(e)?Le(e):ee(1),o=e.clientWidth*r.x,l=e.clientHeight*r.y,d=a*r.x,h=s*r.y;return{width:o,height:l,x:d,y:h}}function $s(e,t,i){let s;if(t==="viewport")s=ql(e,i);else if(t==="document")s=Yl(te(e));else if(Q(t))s=Wl(t,i);else{const a=Ds(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return dt(s)}function Fs(e,t){const i=he(e);return i===t||!Q(i)||Te(i)?!1:Z(i).position==="fixed"||Fs(i,t)}function Ul(e,t){const i=t.get(e);if(i)return i;let s=Re(e,[],!1).filter(l=>Q(l)&&Ee(l)!=="body"),a=null;const r=Z(e).position==="fixed";let o=r?he(e):e;for(;Q(o)&&!Te(o);){const l=Z(o),d=Zt(o);!d&&l.position==="fixed"&&(a=null),(r?!d&&!a:!d&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ve(o)&&!d&&Fs(e,o))?s=s.filter(c=>c!==o):a=l,o=he(o)}return t.set(e,s),s}function Xl(e){let{element:t,boundary:i,rootBoundary:s,strategy:a}=e;const o=[...i==="clippingAncestors"?gt(t)?[]:Ul(t,this._c):[].concat(i),s],l=$s(t,o[0],a);let d=l.top,h=l.right,c=l.bottom,g=l.left;for(let p=1;p<o.length;p++){const m=$s(t,o[p],a);d=q(m.top,d),h=ce(m.right,h),c=ce(m.bottom,c),g=q(m.left,g)}return{width:h-g,height:c-d,x:g,y:d}}function Kl(e){const{width:t,height:i}=As(e);return{width:t,height:i}}function Ql(e,t,i){const s=re(t),a=te(t),r=i==="fixed",o=fe(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const d=ee(0);function h(){d.x=pt(a)}if(s||!s&&!r)if((Ee(t)!=="body"||Ve(a))&&(l=ht(t)),s){const m=fe(t,!0,r,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else a&&h();r&&!s&&a&&h();const c=a&&!s&&!r?zs(a,l):ee(0),g=o.left+l.scrollLeft-d.x-c.x,p=o.top+l.scrollTop-d.y-c.y;return{x:g,y:p,width:o.width,height:o.height}}function ii(e){return Z(e).position==="static"}function Os(e,t){if(!re(e)||Z(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return te(e)===i&&(i=i.ownerDocument.body),i}function Bs(e,t){const i=W(e);if(gt(e))return i;if(!re(e)){let a=he(e);for(;a&&!Te(a);){if(Q(a)&&!ii(a))return a;a=he(a)}return i}let s=Os(e,t);for(;s&&Fl(s)&&ii(s);)s=Os(s,t);return s&&Te(s)&&ii(s)&&!Zt(s)?i:s||Vl(e)||i}const Zl=async function(e){const t=this.getOffsetParent||Bs,i=this.getDimensions,s=await i(e.floating);return{reference:Ql(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Jl(e){return Z(e).direction==="rtl"}const Ge={convertOffsetParentRelativeRectToViewportRelativeRect:Hl,getDocumentElement:te,getClippingRect:Xl,getOffsetParent:Bs,getElementRects:Zl,getClientRects:jl,getDimensions:Kl,getScale:Le,isElement:Q,isRTL:Jl};function Vs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ed(e,t){let i=null,s;const a=te(e);function r(){var l;clearTimeout(s),(l=i)==null||l.disconnect(),i=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),r();const h=e.getBoundingClientRect(),{left:c,top:g,width:p,height:m}=h;if(l||t(),!p||!m)return;const u=ot(g),f=ot(a.clientWidth-(c+p)),v=ot(a.clientHeight-(g+m)),y=ot(c),b={rootMargin:-u+"px "+-f+"px "+-v+"px "+-y+"px",threshold:q(0,ce(1,d))||1};let x=!0;function C(I){const k=I[0].intersectionRatio;if(k!==d){if(!x)return o();k?o(!1,k):s=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!Vs(h,e.getBoundingClientRect())&&o(),x=!1}try{i=new IntersectionObserver(C,{...b,root:a.ownerDocument})}catch{i=new IntersectionObserver(C,b)}i.observe(e)}return o(!0),r}function Rs(e,t,i,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,h=ti(e),c=a||r?[...h?Re(h):[],...t?Re(t):[]]:[];c.forEach(y=>{a&&y.addEventListener("scroll",i,{passive:!0}),r&&y.addEventListener("resize",i)});const g=h&&l?ed(h,i):null;let p=-1,m=null;o&&(m=new ResizeObserver(y=>{let[_]=y;_&&_.target===h&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),i()}),h&&!d&&m.observe(h),t&&m.observe(t));let u,f=d?fe(e):null;d&&v();function v(){const y=fe(e);f&&!Vs(f,y)&&i(),f=y,u=requestAnimationFrame(v)}return i(),()=>{var y;c.forEach(_=>{a&&_.removeEventListener("scroll",i),r&&_.removeEventListener("resize",i)}),g?.(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(u)}}const Gs=zl,Hs=Nl,js=Ml,Ys=$l,qs=Pl,Ws=(e,t,i)=>{const s=new Map,a={platform:Ge,...i},r={...a.platform,_c:s};return Ll(e,t,{...a,platform:r})};function Us(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const td=/transform|translate|scale|rotate|perspective|filter/,id=/paint|layout|strict|content/,be=e=>!!e&&e!=="none";let si;function sd(e){const t=(i=e,typeof window<"u"&&(i instanceof Element||i instanceof Us(i).Element)?Us(s=e).getComputedStyle(s):e);var i,s;return be(t.transform)||be(t.translate)||be(t.scale)||be(t.rotate)||be(t.perspective)||(si==null&&(si=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!si&&(be(t.backdropFilter)||be(t.filter)))||td.test(t.willChange||"")||id.test(t.contain||"")}function Xs(e){return(function(t){for(let i=t;i;i=ai(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=ai(t);i;i=ai(i)){if(!(i instanceof Element))continue;const s=getComputedStyle(i);if(s.display!=="contents"&&(s.position!=="static"||sd(s)||i.tagName==="BODY"))return i}return null})(e)}function ai(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const{getGidsAdvancedTooltipClassNames:ad}=Wn,Ks=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.visible=!1,this.x=0,this.y=0,this.offset=12,this.placement="top",this.items=[],this.currentPlacement="top"}connectedCallback(){const e=Y();e&&this.host.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){const e=this.host.shadowRoot;if(!e)return;const t=e.querySelector(".gids-advanced-tooltip__arrow");t instanceof E&&(this.tooltipElement=this.host,this.arrowElement=t,this.createVirtualReference(),this.startAutoUpdate(),this.updatePosition())}disconnectedCallback(){this.cleanupAutoUpdate?.()}visibleChanged(){this.updatePosition()}positionChanged(){this.updatePosition()}placementChanged(){this.updatePosition()}itemsChanged(){this.updatePosition()}createVirtualReference(){this.virtualReference||(this.virtualReference={getBoundingClientRect:()=>new DOMRect(this.x,this.y,0,0)})}startAutoUpdate(){this.cleanupAutoUpdate?.(),this.cleanupAutoUpdate=Rs(this.virtualReference,this.tooltipElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!0})}getMiddleware(){return[Gs(this.offset),js({padding:this.offset}),Hs({padding:this.offset}),qs({element:this.arrowElement,padding:this.offset})]}async updatePosition(){if(this.tooltipElement)try{const{x:e,y:t,placement:i,middlewareData:s}=await Ws(this.virtualReference,this.tooltipElement,{placement:this.placement,strategy:"fixed",middleware:this.getMiddleware(),platform:{...Ge,getOffsetParent:a=>Ge.getOffsetParent(a,Xs)}});if(this.currentPlacement=i,Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${t}px`,position:"fixed"}),s.arrow&&this.arrowElement){const{x:a,y:r}=s.arrow;let o;switch(i.split("-")[0]??"top"){case"top":o="bottom";break;case"right":o="left";break;case"bottom":o="top";break;default:o="right"}Object.assign(this.arrowElement.style,{left:a!=null?`${a}px`:"",top:r!=null?`${r}px`:"",right:"",bottom:"",[o]:"-5px",transform:"rotate(45deg)"})}}catch(e){console.error("computePosition failed",e)}}render(){const e=ad({visible:this.visible});return n($,{key:"6152e667a5224e6808917a1182a5e105239457b9",class:e,role:"tooltip",part:"tooltip"},n("div",{key:"038cf107a7ff1936ca8bc28cfd0a913f4c1bf7d2",class:"gids-advanced-tooltip__arrow",part:"arrow"}),n("div",{key:"6cae35d1b61d4e45175909375f69754e762b38b2",class:"gids-advanced-tooltip__content"},this.items.map((t=>n("div",{class:"gids-advanced-tooltip__item",key:`${t.label}-${t.value}`},n("div",{class:"gids-advanced-tooltip__left"},n(P,{name:"new",size:"xs",appearance:"filled",style:{"--gidsIcon-color":t.seriesIndicatorColor}}),n("span",{class:"gids-advanced-tooltip__label"},t.label)),n("span",{class:"gids-advanced-tooltip__value"},t.value))))))}get host(){return this}static get watchers(){return{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}}static get style(){return".gids-advanced-tooltip{position:fixed;display:inline-flex;width:fit-content;height:fit-content;z-index:1001;--gidsAdvancedTooltip-background:var( --gids-color-background-neutral-bold-default );--gidsAdvancedTooltip-label-color:var(--gids-color-text-inverse);--gidsAdvancedTooltip-value-color:var(--gids-color-text-inverse)}.gids-advanced-tooltip--visible{opacity:1}.gids-advanced-tooltip__content{box-shadow:var(--gids-elevation-shadow-overlay);background:var(--gidsAdvancedTooltip-background);border-radius:var(--gids-border-radius-md);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);min-width:140px}.gids-advanced-tooltip__item{display:flex;justify-content:space-between;align-items:center;gap:var(--gids-gap-200)}.gids-advanced-tooltip__item+.gids-advanced-tooltip__item{margin-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-advanced-tooltip__left{display:flex;align-items:center;gap:var(--gids-gap-100)}.gids-advanced-tooltip__arrow{position:absolute;width:10px;height:10px;background:var(--gidsAdvancedTooltip-background);backdrop-filter:calc(var(--gids-backdrop-blur-2-xl));transform:rotate(45deg)}.gids-advanced-tooltip__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);color:var(--gidsAdvancedTooltip-label-color)}.gids-advanced-tooltip__value{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);color:var(--gidsAdvancedTooltip-value-color);white-space:nowrap}"}},[1,"gids-advanced-tooltip",{visible:[516],x:[2],y:[2],offset:[2],placement:[1],items:[16],currentPlacement:[32]},void 0,{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}]);function ut(){typeof customElements<"u"&&["gids-advanced-tooltip"].forEach((e=>{e==="gids-advanced-tooltip"&&(customElements.get(e)||customElements.define(e,Ks))}))}ut();const nd=Ks,{getGidsBarChartClassNames:rd}=yr,Qs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0,this.hoveredIndex=null,this.tooltip={visible:!1,x:0,y:0}}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}getTooltipItems(e){return this.chartData.reduce(((t,i)=>{const s=i.data[e];return s&&t.push({label:i?.label??"",value:String(s.value),seriesIndicatorColor:i?.seriesColor??""}),t}),[])}render(){if(this.chartLoading)return n("div",{class:"gids-bar-chart__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this?.chartData?.[0]?.data?.map((u=>u.label))??[],t=e.length,i=Array(t).fill(0);this.chartData.forEach((u=>{Array.isArray(u?.data)&&u.data.forEach(((f,v)=>{v<t&&(i[v]=(i[v]??0)+(f?.value||0))}))}));const s=i.length>0?Math.max(...i):10,a=Math.pow(10,Math.floor(Math.log10(s||1)));let r=a;s/a<=2?r=a/5:s/a<=5&&(r=a/2);const o=Math.ceil(s/r)*r,l=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const u=[...this.dataPoints].sort(((_,b)=>_-b)),f=u.length>1?(u[1]??200)-(u[0]??0):200,v=Math.max(...u,o,...i),y=Math.ceil(v/(f||1));for(let _=0;_<=y;_++)l.push(_*f)}else{const f=o/4;for(let v=0;v<5;v++)l.push(Math.round(0+v*f))}const d=Math.max(...l)-0||1,h=rd({breakpoint:this.breakpoint});let c=!1,g=!1;this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(g=!0);const p=100/t,m=.4*p;return n("div",{class:h},c?n("div",{class:"gids-bar-chart__header"},n("gids-chart-legend",{orientation:"horizontal"},this.chartData.map((u=>n("gids-chart-legend-item",{key:u.label,seriesColor:u?.seriesColor,orientation:"horizontal"},u.label))))):null,n("div",{class:"gids-bar-chart__main-container"},n("div",{class:"gids-bar-chart__grid-layout"},n("span",{class:"gids-bar-chart__y-axis-label"},this.yAxisLabel),n("div",{class:"gids-bar-chart__chart-stage-container"},this.yAxisVisible?n("div",{class:"gids-bar-chart__y-axis-scale-container"},l.map((u=>n("span",{class:"gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value",key:u,style:{bottom:(u-0)/d*100+"%"}},u)))):null,n("div",{class:"gids-bar-chart__chart-stage"},n("svg",{viewBox:"0 0 100 100",class:"gids-bar-chart__chart-vector",preserveAspectRatio:"none"},l.map((u=>{const f=100-(u-0)/d*100;return n("line",{x1:"0",y1:f,x2:"100",y2:f,class:"gids-bar-chart__grid-line",key:u})})),e.map(((u,f)=>{const v=f*p+(p-m)/2;let y=0;const _=[...this.chartData.map(((b,x)=>{if(!Array.isArray(b.data))return null;const C=b.data[f];if(!C)return null;const I=(C.value||0)/d*100,k=100-I-y;return y+=I,{seriesIdx:x,crownY:k,height:I,seriesColor:b?.seriesColor}})).filter((b=>b!==null&&b.height>0))].sort(((b,x)=>x.seriesIdx-b.seriesIdx));return n("g",{key:f},_.map((b=>{const x=.3*m,C=`
|
|
7
|
+
}`),n(R,{key:"c073ff03d8910844a6f7dbb86d6c1141a9dd1c2e",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:n("slot",{name:"leadingIcon"}),trailingIcon:n("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},n("slot",{key:"9d49f9106e4f3313363e878364d1261ba9ebd7c1"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function qt(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,fs))}))}qt();const{getGidsFilterClassNames:gl}=io,bs=T((ie=class extends E{constructor(t){super(),t!==!1&&this.__registerHost(),this.expanded=!1,this.type="none",this.filterItemType="primary",this.filterSelected=!1,this.filterDefaultSelected=!1,this.disabled=!1,this.size="sm",this.loading=!1,this.filterIndex=0,this.hasSlottedMenu=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.setupDefaultSelctedFilterEmission=()=>{this.setupDefaultSelectedNoneAllFilterEmission()},this.setupDefaultSelectedNoneAllFilterEmission=()=>{const i=`${this.filterId||"default"}_${this.value}`;if(this.filterDefaultSelected&&!ie.emittedValuesTracker.has(i)&&(this.type==="none"&&this.filterItemType==="secondary"||this.type==="all")){ie.emittedValuesTracker.add(i);const s={id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:void 0,filterSelected:!0,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1};setTimeout((()=>{this.onFilterMenuItemChange?.(s)}),0)}},this.handleFilterPickerItemSelect=i=>{const{value:s,title:a,disabled:r,id:o,selectedIndex:l,isPlaceholderItem:d,defaultSelected:h}=i.detail;r||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,filterId:this?.filterId,value:s,title:a,disabled:!1,selectedFilterMenuIndex:l,defaultSelected:h,filterType:this.type,filterItemType:this.filterItemType,filterTitle:a,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!d,isPlaceholderItem:d||!1}))},this.handleMenuClick=i=>{if(this.suppressNextMenuClickSelection)return;const s=i.target;if(!(s instanceof Element))return;const a=s.closest(".gids-dropdown-item");if(!a||!this.hostElement.contains(a)||a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true")return;const r=a instanceof HTMLButtonElement?a.value:a.getAttribute("value")??"";if(typeof r!="string"||r.length===0)return;const o=a instanceof HTMLButtonElement?a.id:a.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const l=a instanceof HTMLButtonElement?a.tabIndex:a.getAttribute("tabIndex")??"",d=a.getAttribute("is-placeholder-item")??"",h=a.querySelector(".gids-dropdown-item__label")||a.querySelector("span"),c=h?h.textContent?.trim():a.firstChild?.textContent?.trim()||r,g=!(!d||d!=="true");this.applySelection({id:o,filterId:this.filterId,value:r,title:c,disabled:!1,selectedFilterMenuIndex:Number(l),defaultSelected:this.filterDefaultSelected,filterType:this.type,filterItemType:this.filterItemType,filterTitle:c,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!g,isPlaceholderItem:g})},this.handleTriggerToggle=i=>{this.isInteractive()&&this.setExpandedState(!this.expanded,i)},this.handleFilterButtonClickToggle=i=>{if(!i.defaultPrevented)if(i.stopPropagation(),this.isMenuToggler())this.handleTriggerToggle(i);else{this.filterSelected=i.detail,i?.detail===!1&&this.handleFormReset(),this.applySelection({id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:i,filterSelected:i.detail,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1});const s={expanded:!1,originalEvent:i};this.onToggle?.(s)}},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=this.initialValue,this.filterSelected=!1,this.isMenuToggler()?this.setExpandedState(!1):this.expanded=!1},this.setFilterDropdownPosition=()=>{if(!this.hostElement)return;const i=this.hostElement.querySelector(".gids-filter__menu");if(!i)return;const s=window.innerWidth/2,a=this.hostElement.getBoundingClientRect();a.left+a.width/2>s?i.classList.add("gids-filter__menu--align-right"):i.classList.remove("gids-filter__menu--align-right")}}handleExpandedChange(t){t&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}handleFilterTypeChange(t){this.type=t}handleFilterIdArrival(t){t!=null&&this.setupDefaultSelctedFilterEmission()}handleFilterSelectedChange(t){this.filterSelected=t}handleFilterDefaultSelectedChange(t){const i=`${this.filterId||"default"}_${this.value}`;t?(ie.emittedValuesTracker.delete(i),this.setupDefaultSelctedFilterEmission()):ie.emittedValuesTracker.delete(i)}connectedCallback(){this.attachItemListener(),this.attachFormListener()}componentDidLoad(){this.initialValue=this.value,this.evaluateSlottedMenuExistence(),this.filterId!=null&&this.setupDefaultSelctedFilterEmission()}disconnectedCallback(){this.detachItemListener(),this.detachFormListener()}getFilterButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}evaluateSlottedMenuExistence(){const t=this.hostElement.querySelector(".gids-filter__menu");if(!t)return void(this.hasSlottedMenu=!1);const i=Array.from(t.childNodes).filter((s=>s.nodeType!==Node.COMMENT_NODE&&!(s.nodeType===Node.TEXT_NODE&&!s.textContent?.trim())));this.hasSlottedMenu=i.length>0}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!1)}applySelection(t){this.value=t.value,this.selectedItemTitle=typeof t.title=="string"?t.title:void 0,this.clearActive(),this.isMenuToggler()?this.setExpandedState(!1,this.coerceEvent(t.originalEvent)):this.expanded=!1,this.onFilterMenuItemChange?.(t),this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange",{bubbles:!0,composed:!0,detail:t}))}clearActive(){this.getItemElements().forEach((t=>t.classList.remove("gids-dropdown-item--active")))}setExpandedState(t,i){const s=!!t;if(this.setFilterDropdownPosition(),s&&!this.isInteractive()||this.expanded===s)return;this.expanded=s,s||(this.clearActive(),this.syncFilterDisplayValue());const a={expanded:s,originalEvent:i};this.onToggle?.(a)}syncFilterDisplayValue(){const t=this.getFilterButtonControl();t&&t.value!==(this.selectedItemTitle??"")&&(t.value=this.selectedItemTitle??"")}attachFormListener(){const t=this.hostElement.closest("form");this.patternForm!==t&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=t??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(t){if(typeof Event<"u"&&t!==null)return t instanceof Event?t:void 0}isMenuToggler(){return(this.type==="none"||this.type==="more")&&this.hasSlottedMenu}handleWindowClick(t){this.expanded&&(t.composedPath().includes(this.hostElement)||this.setExpandedState(!1,t))}render(){const t=this.expanded&&this.isInteractive(),i=gl({expanded:t}),s=this.isMenuToggler(),a=typeof this.filterPickerId=="string"?this.filterPickerId:void 0,r=a?`${a}__menu`:void 0,o=this.selectedItemTitle??this.value??"",l=this.type==="more",d=this.type==="all",h=this.type==="none";return n("div",{key:"48ed552fe95d69e18e365e85b3de3b8b7536c1bb",class:i,"aria-control":r??""},n("gids-toggle-button",{key:"d656f1fcb5a220c1e42376ec305bf2c402c037ae",id:a,name:this.name,expanded:t,value:o,disabled:this.disabled,size:this.size,loading:this.loading,tabIndex:this.filterIndex,defaultSelected:this.filterDefaultSelected,selected:this.filterSelected,onSelect:this.handleFilterButtonClickToggle},l||d?n(P,{name:l?"options":"filter",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"}):void 0,h||d?o:void 0,s&&!l?n(P,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"trailingIcon"}):void 0),n("div",{key:"1fcbedea7065cad76baba2626e73535bf8add8db",class:"gids-filter__menu",id:r,role:"pickerbox",onClick:this.handleMenuClick},n("slot",{key:"d2f20aec18633d789b71e08498b4b190caed73a9",onSlotchange:()=>this.evaluateSlottedMenuExistence()})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}}static get style(){return".gids-filter{position:relative}.gids-filter__menu{position:absolute;inset-inline: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;max-height:15rem;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);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}"}},ie.emittedValuesTracker=new Set,ie),[260,"gids-filter",{name:[1],filterId:[1025,"filter-id"],filterPickerId:[1,"filter-picker-id"],expanded:[4],type:[1],filterItemType:[1,"filter-item-type"],value:[1],filterSelected:[1540,"filter-selected"],filterDefaultSelected:[4,"filter-default-selected"],disabled:[4],size:[1],loading:[4],filterIndex:[2,"filter-index"],onFilterMenuItemChange:[16],onToggle:[16],selectedItemTitle:[32],hasSlottedMenu:[32]},[[8,"click","handleWindowClick"]],{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}]);function vs(){typeof customElements<"u"&&["gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-filter":customElements.get(e)||customElements.define(e,bs);break;case"gids-toggle-button":customElements.get(e)||qt()}}))}vs();const{getGidsActionBarClassNames:hl}=Yn,ys=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.actionGroup=!1,this.allFiltersTabVisible=!1,this.moreFiltersTabVisible=!1,this.clearAllFiltersVisible=!0,this.filterAllIsDefaultSelected=!0,this.clearAllFiltersButtonAppearance="primary",this.primaryFilters=[],this.secondaryFilters=[],this.filterSize="xs",this.disabled=!1,this.activeExpandedFilterId=void 0,this.tempFilterAll=[],this.handleAllFilterClick=t=>{const{id:i,filterId:s,title:a,value:r,disabled:o,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,filterSelected:p,defaultSelected:m,hasFilterMenu:u,isPlaceholderItem:f}=t;this.applyAllToggleSelection({title:a,value:r,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,hasFilterMenu:u,filterSelected:!(!m&&!this.filterAllIsDefaultSelected)||p,isPlaceholderItem:f,filterId:s,filterPickerId:i,filterDisabled:o,filterDefaultSelected:!(!m&&!this.filterAllIsDefaultSelected),selectedFilterMenuSectionIndex:void 0,filterPickerData:void 0})},this.handleSecondaryFilterClick=t=>{const{id:i,filterId:s,title:a,value:r,disabled:o,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,filterSelected:p,defaultSelected:m,hasFilterMenu:u,isPlaceholderItem:f}=t;this.applySecondaryFilterToggleSelection({title:a,value:r,selectedFilterMenuIndex:l,filterType:d,filterItemType:h,filterTitle:c,filterIndex:g,hasFilterMenu:u,filterSelected:p,isPlaceholderItem:f,filterId:s,filterPickerId:i,filterDisabled:o,filterDefaultSelected:m||!1,selectedFilterMenuSectionIndex:void 0,filterPickerData:void 0})},this.applySecondaryFilterToggleSelection=t=>{this.setFilterPickerExpandedState(t?.filterId,{expanded:!1}),this.applyNormalFiltersSelectedStateChange(t),this.onToggleActionBarNoneFilter&&this.onToggleActionBarNoneFilter({...t,selectedFilters:this?.selectedFilters??[]})},this.calculateWhenNormalFilterFound=(t,i)=>{const s=t[i];return this.filterAllCanBeRemove()?(t.splice(i,1),this.selectedFiltersHasFilterAll()||t.length!==0||t.push({...this.tempFilterAll[0]}),{calculatedSelectedFilters:t,returnIt:!1}):(this.selectedFilters=t=[],setTimeout((()=>{t=[{...s}],this.selectedFilters=t}),200),{calculatedSelectedFilters:t,returnIt:!0})},this.toggleDropdownFilter=({detail:t,filterId:i,pickerData:s})=>{this.setFilterPickerExpandedState(i,t),this.onToggleActionBarDropdownFilter&&this.onToggleActionBarDropdownFilter({filterId:i,pickerData:s,...t})},this.handleDropdownFilterMenuItemClick=({event:t,filterItemType:i,filterType:s,filterIndex:a,filterId:r,filterMenuSectionIndex:o})=>{const l=t.detail,{id:d,defaultSelected:h,disabled:c,isPlaceholderItem:g,selectedIndex:p,title:m,value:u}=l;this.applyDropdownFilterMenuItemSelection({title:m,value:u,selectedFilterMenuIndex:p,filterType:s,filterItemType:i,filterTitle:m,filterIndex:a,hasFilterMenu:!0,filterSelected:!g,isPlaceholderItem:g,filterId:r,filterPickerId:d,filterDisabled:c,filterDefaultSelected:h||!1,selectedFilterMenuSectionIndex:o,filterPickerData:l})},this.applyDropdownFilterMenuItemSelection=t=>{this.applyDropdownFiltersSelectedStateChange(t),this.onDropdownSelectionActionBarFilterChange&&this.onDropdownSelectionActionBarFilterChange({...t,selectedFilters:this?.selectedFilters??[]})},this.applyDropdownFiltersSelectedStateChange=t=>{let i=this?.selectedFilters?[...this.selectedFilters]:[];if(i.length>0){const s=i.findIndex((a=>a.filterId===t?.filterId));s!=null&&s!==-1?t?.isPlaceholderItem?(i.splice(s,1),!this.selectedFiltersHasLastFilterAll()&&i.length<=0&&this.filterAllIsDefaultSelected&&(i=[...this.tempFilterAll])):(i[s]={...t,filterPickerData:{...t.filterPickerData}},this.selectedFiltersHasFilterAll()&&this.filterAllIsDefaultSelected&&(i=[...this.removeFilterAll(i)])):t?.isPlaceholderItem||(i.push({...t,filterPickerData:{...t.filterPickerData}}),this.selectedFiltersHasFilterAll()&&this.filterAllIsDefaultSelected&&(i=[...this.removeFilterAll(i)]))}else t?.isPlaceholderItem||(i.push({...t,filterPickerData:{...t.filterPickerData}}),this.selectedFiltersHasFilterAll()&&this.filterAllIsDefaultSelected&&(i=[...this.removeFilterAll(i)]));this.selectedFilters=[...i]},this.clearingFilters=()=>{this.selectedFilters=this.isAllFilterVisible()&&this.filterAllIsDefaultSelected?[{...this.tempFilterAll[0]}]:[]},this.handleClearAllFiltersClick=t=>{this.clearingFilters(),this.onClearAllFiltersButton&&this.onClearAllFiltersButton({selectedFilters:this?.selectedFilters??[],originalEvent:t})},this.selectedFiltersHasFilterAll=()=>!!(this?.selectedFilters??[]).find((t=>t.filterId===this.getAllFilterId())),this.filterAllCanBeRemove=()=>{const t=this?.selectedFilters??[];return!(this.filterAllIsDefaultSelected&&this.selectedFiltersHasFilterAll()&&t.length<=1)},this.removeFilterAll=t=>{if(t.length>0){const i=t.findIndex((s=>s.filterId===this.getAllFilterId()));if(i!=null&&i!==-1){const s=t[i];s&&(this.tempFilterAll=[{...s}]),t.splice(i,1)}}return t},this.selectedFiltersStateStatus=()=>{const t=this?.selectedFilters??[];return t.length<=0?"none":t.length===1?"one-filter":"more-than-one"},this.selectedFiltersHasLastFilterAll=()=>this.selectedFiltersStateStatus()==="one-filter"&&!!(this?.selectedFilters??[]).find((t=>t.filterId===this.getAllFilterId()))}handleFilterSizeChange(e){this.filterSize=e}handleDropdownDividerVisibilityChange(e){this.dropdownDividerVisible=e}handlePrimaryFiltersChange(e){this.primaryFilters=e}handleSecondaryFiltersChange(e){this.secondaryFilters=e}handleAllFiltersDataChange(e){this.allFiltersData=e}handleMoreFiltersValueChange(e){this.moreFiltersData=e}handleDisabilityChange(e){this.disabled=e}handleActionGroupChange(e){this.actionGroup=e}handleFilterAllIsDefaultSelectedChange(e){this.filterAllIsDefaultSelected=e}handleClearAllFiltersButtonAppearanceChange(e){this.clearAllFiltersButtonAppearance=e}connectedCallback(){this.createAllFiltersData()}componentDidLoad(){}applyAllToggleSelection(e){this.setFilterPickerExpandedState(e?.filterId,{expanded:!1}),this.applyNormalFiltersSelectedStateChange(e),setTimeout((()=>{this.onToggleActionBarAllFilter&&(this.tempFilterAll=[{...e,selectedFilters:this?.selectedFilters??[]}],this.onToggleActionBarAllFilter({...e,selectedFilters:this?.selectedFilters??[]}))}),200)}applyNormalFiltersSelectedStateChange(e){let t=this?.selectedFilters?[...this.selectedFilters]:[];if(t&&t.length>0){const i=t.findIndex((s=>s.filterId===e?.filterId));if(i!=null&&i!==-1){const{calculatedSelectedFilters:s,returnIt:a}=this.calculateWhenNormalFilterFound(t,i);if(a)return;t=[...s]}else e?.filterSelected&&(e?.filterId!==this.getAllFilterId()?(t=[...this.removeFilterAll(t)],t.push({...e})):e?.filterId===this.getAllFilterId()?(t=[],t=[{...e}]):t.push({...e}))}else e?.filterSelected&&t.push({...e});this.selectedFilters=t}isMoreFilterVisible(){const e=this.moreFiltersData;return!!(this.moreFiltersTabVisible&&e&&Object.keys(e).length>0&&e?.filterPickerData&&e.filterPickerData.length>0)}isAllFilterVisible(){return!!this.allFiltersTabVisible}isAllFiltersTabDisabled(){const e=this?.allFiltersData?.disabled;return!(!this.disabled&&!e)}isMoreFiltersTabDisabled(){const e=this?.moreFiltersData?.disabled;return!(!this.disabled&&!e)}isActionGroup(){const e=this.isMoreFilterVisible(),t=this?.secondaryFilters&&this.secondaryFilters.length>0,i=this?.actionGroup;return!(!e&&!t||!i)}createAllFiltersData(){const e=this.allFiltersData;e?.label&&e.label!==""||(this.allFiltersData={...this.allFiltersData,label:"All"})}getAllFiltersValue(){return this.allFiltersData?.label??"All"}getSelectedFilter(e){return(this?.selectedFilters??[]).find((t=>t.filterId===e))}getSelectedDropdownFilterTitle(e){const t=this.getSelectedFilter(e);if(t?.filterTitle)return t.filterTitle;const i=(this?.primaryFilters??[]).find((o=>o?.filterId===e)),s=i?.filterPickerData??[],a=s?.[0]?.items?.[0];let r="";return a?.isPlaceholderItem&&a?.title&&(r=a.title),r}isNormalFilterSelected(e){return!!this.getSelectedFilter(e)}isDropdownFilterSelected(e){const t=this.getSelectedFilter(e),i=t?.filterPickerData;return!(!i?.title&&!i?.value||i?.isPlaceholderItem)}getSelectedFilterPickerData(e){return this.getSelectedFilter(e)?.filterPickerData}setFilterPickerExpandedState(e,t){this.activeExpandedFilterId=t?.expanded?e:void 0}getAllFilterId(){return this?.allFiltersData?.filterId&&this.allFiltersData.filterId!==""?this.allFiltersData.filterId:`1_${this.getAllFiltersValue()}_primary`}getMoreFilterId(){const e=this?.secondaryFilters??[];return this?.moreFiltersData?.filterId&&this.moreFiltersData.filterId!==""?this.moreFiltersData.filterId:e.length+1+"_more_secondary"}render(){const e=hl(),t=this?.primaryFilters??[],i=this?.secondaryFilters??[],s=this.isMoreFilterVisible(),a=this.moreFiltersData,r=a?.filterPickerData??[],o={disabled:this?.moreFiltersData?.disabled,filterDefaultSelected:this?.moreFiltersData?.filterDefaultSelected,loading:this?.moreFiltersData?.loading},l=this.isAllFilterVisible(),d=this.getAllFiltersValue(),h={defaultSelected:this?.allFiltersData?.defaultSelected,disabled:this?.allFiltersData?.disabled,loading:this?.allFiltersData?.loading},c=this.dropdownDividerVisible,g=this.filterSize,p=this.isActionGroup(),m=this.getAllFilterId(),u=this.getMoreFilterId(),f="secondary",v="more",y=i.length+1,_=this.getSelectedDropdownFilterTitle(u),b=this.isDropdownFilterSelected(u);return n("div",{key:"adf0d02efe4d7d29203e1478c31d5059425e4d0c",class:e},n("div",{key:"4e24965b10d1bd13740196f11eb6681b882f0b5f",class:"gids-action-bar__primary-filters"},n(Rt,{key:"10ca864d9a7235bd9e7c564263112ebe0c33932f",layout:"wrap"},l?n("gids-filter",{type:"all",filterId:m,filterDefaultSelected:this.filterAllIsDefaultSelected,filterIndex:0,filterItemType:"primary",filterSelected:this.isNormalFilterSelected(m),value:d,...h,disabled:this.isAllFiltersTabDisabled(),size:g,onFilterMenuItemChange:this.handleAllFilterClick}):void 0,t.map(((x,C)=>{const I=x?.filterPickerData??[],k=x?.filterId&&x.filterId!==""?x.filterId:C+1+"_primary",L="primary",M="none",A=this.getSelectedDropdownFilterTitle(k),F=this.isDropdownFilterSelected(k);return n("gids-filter",{key:`${k}_${A}`,...x,filterIndex:C+1,filterId:k,disabled:x?.disabled||this.disabled,filterDefaultSelected:x?.filterDefaultSelected,filterSelected:F,type:M,filterItemType:L,title:A,value:A,size:g,expanded:this.activeExpandedFilterId===k,onToggle:z=>this.toggleDropdownFilter({detail:z,filterId:k,pickerData:I})},n(_e,{type:"default"},I.map(((z,O)=>{const B=z?.sectionLabel;return n(xe,{sectionLabel:B,key:""+O},(z?.items??[]).map(((V,G)=>{const U=V?.isPlaceholderItem??!1,H=V?.id&&V.id!==""?V.id:`${k}_s${O}_i${G}`;let X=!1;return F?X=this.getSelectedFilterPickerData(k)?.id===H:X=G===0,n(Be,{key:H,id:H,index:G,title:V?.title,value:V?.value,disabled:V?.disabled,defaultSelected:V?.defaultSelected,isPlaceholderItem:U,selected:X,divider:c,onPressDropdownItem:vt=>this.handleDropdownFilterMenuItemClick({event:vt,filterItemType:L,filterType:M,filterIndex:C,filterId:k,filterMenuSectionIndex:O})})})))}))))})),this.clearAllFiltersVisible&&!p?n(R,{size:this.filterSize,appearance:this.clearAllFiltersButtonAppearance,leadingIcon:n(P,{name:"cross",size:this.filterSize,slot:"leadingIcon"}),onClick:this.handleClearAllFiltersClick}):void 0)),p?n("div",{class:"gids-action-bar__secondary-filters"},n(Rt,{layout:"wrap"},i.map(((x,C)=>{const I=x?.filterId&&x.filterId!==""?x.filterId:`${C+1}_${x?.label}_secondary`;return n("gids-filter",{key:""+(t.length+C+1),...x,filterIndex:C,filterId:I,disabled:x?.disabled||this.disabled,filterDefaultSelected:x?.defaultSelected,type:"none",filterItemType:"secondary",value:x?.label,size:g,filterSelected:this.isNormalFilterSelected(I),onFilterMenuItemChange:this.handleSecondaryFilterClick})})),s?n("gids-filter",{key:`${u}_${_}`,type:v,filterItemType:f,filterIndex:y,filterId:u,...o,disabled:this.isMoreFiltersTabDisabled(),filterSelected:b,size:g,expanded:this.activeExpandedFilterId===u},n(_e,{type:"default"},r.map(((x,C)=>{const I=x?.items??[],k=x?.sectionLabel;return n(xe,{sectionLabel:k,key:""+C},I.map(((L,M)=>{const A=L?.isPlaceholderItem??!1,F=L?.id&&L.id!==""?L.id:`${u}_s${C}_i${M}`;let z=!1;return b?z=this.getSelectedFilterPickerData(u)?.id===F:z=M===0,n(Be,{key:F,id:F,index:M,title:L?.title,value:L?.value,disabled:L?.disabled,isPlaceholderItem:A,selected:z,defaultSelected:L?.defaultSelected,divider:c,onPressDropdownItem:O=>this.handleDropdownFilterMenuItemClick({event:O,filterItemType:f,filterType:v,filterIndex:y,filterId:u,filterMenuSectionIndex:C})})})))})))):void 0,this.clearAllFiltersVisible?n(R,{size:this.filterSize,appearance:this.clearAllFiltersButtonAppearance,leadingIcon:n(P,{name:"cross",size:this.filterSize,slot:"leadingIcon"}),onClick:this.handleClearAllFiltersClick}):void 0)):void 0)}static get watchers(){return{filterSize:[{handleFilterSizeChange:0}],dropdownDividerVisible:[{handleDropdownDividerVisibilityChange:0}],primaryFilters:[{handlePrimaryFiltersChange:0}],secondaryFilters:[{handleSecondaryFiltersChange:0}],allFiltersData:[{handleAllFiltersDataChange:0}],moreFiltersData:[{handleMoreFiltersValueChange:0}],disabled:[{handleDisabilityChange:0}],actionGroup:[{handleActionGroupChange:0}],filterAllIsDefaultSelected:[{handleFilterAllIsDefaultSelectedChange:0}],clearAllFiltersButtonAppearance:[{handleClearAllFiltersButtonAppearanceChange:0}]}}static get style(){return".gids-action-bar{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:var(--gids-gap-600);align-self:stretch}.gids-action-bar__primary-filters{display:flex;align-items:center;justify-content:flex-start;flex:1 0 0}.gids-action-bar__secondary-filters{display:flex;align-items:center;justify-content:flex-end}"}},[0,"gids-action-bar",{actionGroup:[4,"action-group"],allFiltersTabVisible:[4,"all-filters-tab-visible"],moreFiltersTabVisible:[4,"more-filters-tab-visible"],clearAllFiltersVisible:[4,"clear-all-filters-visible"],filterAllIsDefaultSelected:[4,"filter-all-is-default-selected"],clearAllFiltersButtonAppearance:[1,"clear-all-filters-button-appearance"],primaryFilters:[16],secondaryFilters:[16],allFiltersData:[16],moreFiltersData:[16],filterSize:[1,"filter-size"],dropdownDividerVisible:[4,"dropdown-divider-visible"],disabled:[4],onToggleActionBarAllFilter:[16],onToggleActionBarDropdownFilter:[16],onToggleActionBarMoreFilter:[16],onToggleActionBarNoneFilter:[16],onDropdownSelectionActionBarFilterChange:[16],onMoreSelectionActionBarFilterChange:[16],onClearAllFiltersButton:[16],selectedFilters:[32],activeExpandedFilterId:[32],tempFilterAll:[32]},void 0,{filterSize:[{handleFilterSizeChange:0}],dropdownDividerVisible:[{handleDropdownDividerVisibilityChange:0}],primaryFilters:[{handlePrimaryFiltersChange:0}],secondaryFilters:[{handleSecondaryFiltersChange:0}],allFiltersData:[{handleAllFiltersDataChange:0}],moreFiltersData:[{handleMoreFiltersValueChange:0}],disabled:[{handleDisabilityChange:0}],actionGroup:[{handleActionGroupChange:0}],filterAllIsDefaultSelected:[{handleFilterAllIsDefaultSelectedChange:0}],clearAllFiltersButtonAppearance:[{handleClearAllFiltersButtonAppearanceChange:0}]}]);function pl(){typeof customElements<"u"&&["gids-action-bar","gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-action-bar":customElements.get(e)||customElements.define(e,ys);break;case"gids-filter":customElements.get(e)||vs();break;case"gids-toggle-button":customElements.get(e)||qt()}}))}pl();const ul=ys,{getGidsChartLegendClassNames:ml}=$r,_s=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=ml({orientation:this.orientation});return n("div",{key:"d8930dd78a4d923145c5985f2c04f033281c98e7",class:e},n("slot",{key:"df109d03028671987581408c825d870ae8a5d28e"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function we(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,_s))}))}we();const{getGidsChartLegendItemClassNames:fl}=Nr,xs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}handleSeriesColorChange(e){this.seriesColor=e}render(){const e=this.seriesColor,t=e&&e!=="",i=fl({seriesType:t?"none":this.seriesType,orientation:this.orientation});return n("div",{key:"db67ecf697bef6636b7355746b627db8c3611fa2",class:i},n("div",{key:"b97a49db6ba7bd04b1627105a3620630bd49271d",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},n(P,{key:"1377932ffbdeff6a20afc18cd9afdaf766373858",name:"new",alt:"new_icon",appearance:"filled",style:t?{"--gidsIcon-color":e}:{}})),n("span",{key:"66484c78316a9f49d439b2866db123f8744dae18",class:"gids-chart-legend-item__label"},n("slot",{key:"2c641289641133bc01400d0b8e280514d8661ad6"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"],seriesColor:[1,"series-color"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}]);function Se(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,xs))}))}Se();const{getGidsActivityGaugeClassNames:bl}=qn,Cs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartData=[],this.label="",this.size="xs",this.legend="none",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendChanged(e){this.legend=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-activity-gauge__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.map((c=>c.value||0)),t=e.length>0?Math.max(...e):0,i=Math.max(1e3,t),s=i.toLocaleString(),a=bl({breakpoint:this.breakpoint}),r=[{radius:42,strokeWidth:5.5},{radius:34,strokeWidth:5.5},{radius:26,strokeWidth:5.5}],o=this.size==="xxs",l=typeof this.label=="string"&&this.label.trim()!=="",d=this.legend&&this.legend==="right"&&this.breakpoint!=="mobile",h=this.legend&&(this.legend==="bottom"||this.breakpoint==="mobile");return n("div",{class:a},n("div",{class:"gids-activity-gauge__main-container"},n("div",{class:"gids-activity-gauge__chart-stage-container"},n("div",{class:`gids-activity-gauge__svg-wrapper gids-activity-gauge--size-${this.size}`},n("svg",{viewBox:"0 0 100 100",class:"gids-activity-gauge__chart-vector"},this.chartData.slice(0,3).map(((c,g)=>{const p=r[g]||r[0]||{radius:26,strokeWidth:5.5},m=i>0?Math.min(Math.max((c.value||0)/i,0),1):0,u=2*Math.PI*p.radius,f=`${m*u} ${u}`;return n("g",{key:c.label||g},n("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:"gids-activity-gauge__track-background"}),n("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:`gids-activity-gauge__segment gids-activity-gauge__segment-series-${g+1}`,"stroke-dasharray":f,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"}))}))),n("div",{class:"gids-activity-gauge__center-content"},l&&!o?n("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label):null,n("span",{class:`gids-activity-gauge__value-common gids-activity-gauge__value-${this.size}`},s)))),d?n("div",{class:"gids-activity-gauge__sidebar"},n("gids-chart-legend",{orientation:"vertical"},this.chartData.slice(0,3).map(((c,g)=>n("gids-chart-legend-item",{key:c.label,seriesType:`${g+1}`,orientation:"vertical"},c.label))))):null),o&&l?n("div",{class:"gids-activity-gauge__bottom-content"},n("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label)):null,h?n("div",{class:"gids-activity-gauge__legend-container gids-activity-gauge__legend-container--bottom"},n("gids-chart-legend",{orientation:"horizontal"},this.chartData.slice(0,3).map(((c,g)=>n("gids-chart-legend-item",{key:c.label,seriesType:`${g+1}`,orientation:"horizontal"},c.label))))):null)}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-activity-gauge__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-activity-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-activity-gauge--size-xxs{width:180px;height:180px}.gids-activity-gauge--size-xs{width:220px;height:220px}.gids-activity-gauge--size-sm{width:260px;height:260px}.gids-activity-gauge--size-md{width:300px;height:300px}.gids-activity-gauge--size-lg{width:340px;height:340px}.gids-activity-gauge__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-activity-gauge__chart-vector{display:block;width:100%;height:100%}.gids-activity-gauge__track-background{fill:none;stroke:var(--gids-color-background-brand-subtlest-default);stroke-linecap:round}.gids-activity-gauge__segment{fill:none;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-1{stroke:var(--gids-color-icon-subtle)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-2{stroke:var(--gids-color-icon-warning)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-3{stroke:var(--gids-color-icon-danger)}.gids-activity-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-activity-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-md{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-activity-gauge__label-lg{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-activity-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-activity-gauge__value-xxs{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-activity-gauge__value-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-common{color:var(--gids-color-text-default)}.gids-activity-gauge__bottom-content{display:flex;justify-content:center;align-items:center;text-align:center}.gids-activity-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-activity-gauge",{breakpoint:[1],chartData:[16],label:[1],size:[1],legend:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}]);function ws(){typeof customElements<"u"&&["gids-activity-gauge","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-activity-gauge":customElements.get(e)||customElements.define(e,Cs);break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}ws();const vl=Cs,ce=Math.min,q=Math.max,ot=Math.round,lt=Math.floor,ee=e=>({x:e,y:e}),yl={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(e,t,i){return q(e,ce(t,i))}function Ie(e,t){return typeof e=="function"?e(t):e}function ge(e){return e.split("-")[0]}function ke(e){return e.split("-")[1]}function Ss(e){return e==="x"?"y":"x"}function Ut(e){return e==="y"?"height":"width"}function ne(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Xt(e){return Ss(ne(e))}function _l(e,t,i){i===void 0&&(i=!1);const s=ke(e),a=Xt(e),r=Ut(a);let o=a==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=dt(o)),[o,dt(o)]}function xl(e){const t=dt(e);return[Kt(e),t,Kt(t)]}function Kt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Is=["left","right"],ks=["right","left"],Cl=["top","bottom"],wl=["bottom","top"];function Sl(e,t,i){switch(e){case"top":case"bottom":return i?t?ks:Is:t?Is:ks;case"left":case"right":return t?Cl:wl;default:return[]}}function Il(e,t,i,s){const a=ke(e);let r=Sl(ge(e),i==="start",s);return a&&(r=r.map(o=>o+"-"+a),t&&(r=r.concat(r.map(Kt)))),r}function dt(e){const t=ge(e);return yl[t]+e.slice(t.length)}function kl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Es(e){return typeof e!="number"?kl(e):{top:e,right:e,bottom:e,left:e}}function ct(e){const{x:t,y:i,width:s,height:a}=e;return{width:s,height:a,top:i,left:t,right:t+s,bottom:i+a,x:t,y:i}}function Ts(e,t,i){let{reference:s,floating:a}=e;const r=ne(t),o=Xt(t),l=Ut(o),d=ge(t),h=r==="y",c=s.x+s.width/2-a.width/2,g=s.y+s.height/2-a.height/2,p=s[l]/2-a[l]/2;let m;switch(d){case"top":m={x:c,y:s.y-a.height};break;case"bottom":m={x:c,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:g};break;case"left":m={x:s.x-a.width,y:g};break;default:m={x:s.x,y:s.y}}switch(ke(t)){case"start":m[o]-=p*(i&&h?-1:1);break;case"end":m[o]+=p*(i&&h?-1:1);break}return m}async function El(e,t){var i;t===void 0&&(t={});const{x:s,y:a,platform:r,rects:o,elements:l,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:p=!1,padding:m=0}=Ie(t,e),u=Es(m),v=l[p?g==="floating"?"reference":"floating":g],y=ct(await r.getClippingRect({element:(i=await(r.isElement==null?void 0:r.isElement(v)))==null||i?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:h,rootBoundary:c,strategy:d})),_=g==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),x=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},C=ct(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:b,strategy:d}):_);return{top:(y.top-C.top+u.top)/x.y,bottom:(C.bottom-y.bottom+u.bottom)/x.y,left:(y.left-C.left+u.left)/x.x,right:(C.right-y.right+u.right)/x.x}}const Tl=50,Ll=async(e,t,i)=>{const{placement:s="bottom",strategy:a="absolute",middleware:r=[],platform:o}=i,l=o.detectOverflow?o:{...o,detectOverflow:El},d=await(o.isRTL==null?void 0:o.isRTL(t));let h=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:g}=Ts(h,s,d),p=s,m=0;const u={};for(let f=0;f<r.length;f++){const v=r[f];if(!v)continue;const{name:y,fn:_}=v,{x:b,y:x,data:C,reset:I}=await _({x:c,y:g,initialPlacement:s,placement:p,strategy:a,middlewareData:u,rects:h,platform:l,elements:{reference:e,floating:t}});c=b??c,g=x??g,u[y]={...u[y],...C},I&&m<Tl&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(h=I.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:c,y:g}=Ts(h,p,d)),f=-1)}return{x:c,y:g,placement:p,strategy:a,middlewareData:u}},Pl=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:s,placement:a,rects:r,platform:o,elements:l,middlewareData:d}=t,{element:h,padding:c=0}=Ie(e,t)||{};if(h==null)return{};const g=Es(c),p={x:i,y:s},m=Xt(a),u=Ut(m),f=await o.getDimensions(h),v=m==="y",y=v?"top":"left",_=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=r.reference[u]+r.reference[m]-p[m]-r.floating[u],C=p[m]-r.reference[m],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let k=I?I[b]:0;(!k||!await(o.isElement==null?void 0:o.isElement(I)))&&(k=l.floating[b]||r.floating[u]);const L=x/2-C/2,M=k/2-f[u]/2-1,A=ce(g[y],M),F=ce(g[_],M),z=A,O=k-f[u]-F,B=k/2-f[u]/2+L,V=Wt(z,B,O),G=!d.arrow&&ke(a)!=null&&B!==V&&r.reference[u]/2-(B<z?A:F)-f[u]/2<0,U=G?B<z?B-z:B-O:0;return{[m]:p[m]+U,data:{[m]:V,centerOffset:B-V-U,...G&&{alignmentOffset:U}},reset:G}}}),Ml=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,s;const{placement:a,middlewareData:r,rects:o,initialPlacement:l,platform:d,elements:h}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...v}=Ie(e,t);if((i=r.arrow)!=null&&i.alignmentOffset)return{};const y=ge(a),_=ne(l),b=ge(l)===l,x=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=p||(b||!f?[dt(l)]:xl(l)),I=u!=="none";!p&&I&&C.push(...Il(l,f,u,x));const k=[l,...C],L=await d.detectOverflow(t,v),M=[];let A=((s=r.flip)==null?void 0:s.overflows)||[];if(c&&M.push(L[y]),g){const B=_l(a,o,x);M.push(L[B[0]],L[B[1]])}if(A=[...A,{placement:a,overflows:M}],!M.every(B=>B<=0)){var F,z;const B=(((F=r.flip)==null?void 0:F.index)||0)+1,V=k[B];if(V&&(!(g==="alignment"?_!==ne(V):!1)||A.every(H=>ne(H.placement)===_?H.overflows[0]>0:!0)))return{data:{index:B,overflows:A},reset:{placement:V}};let G=(z=A.filter(U=>U.overflows[0]<=0).sort((U,H)=>U.overflows[1]-H.overflows[1])[0])==null?void 0:z.placement;if(!G)switch(m){case"bestFit":{var O;const U=(O=A.filter(H=>{if(I){const X=ne(H.placement);return X===_||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,vt)=>X+vt,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:O[0];U&&(G=U);break}case"initialPlacement":G=l;break}if(a!==G)return{reset:{placement:G}}}return{}}}},Al=new Set(["left","top"]);async function Dl(e,t){const{placement:i,platform:s,elements:a}=e,r=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=ge(i),l=ke(i),d=ne(i)==="y",h=Al.has(o)?-1:1,c=r&&d?-1:1,g=Ie(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:u}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof u=="number"&&(m=l==="end"?u*-1:u),d?{x:m*c,y:p*h}:{x:p*h,y:m*c}}const zl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,s;const{x:a,y:r,placement:o,middlewareData:l}=t,d=await Dl(t,e);return o===((i=l.offset)==null?void 0:i.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:r+d.y,data:{...d,placement:o}}}}},Nl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:s,placement:a,platform:r}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:y=>{let{x:_,y:b}=y;return{x:_,y:b}}},...h}=Ie(e,t),c={x:i,y:s},g=await r.detectOverflow(t,h),p=ne(ge(a)),m=Ss(p);let u=c[m],f=c[p];if(o){const y=m==="y"?"top":"left",_=m==="y"?"bottom":"right",b=u+g[y],x=u-g[_];u=Wt(b,u,x)}if(l){const y=p==="y"?"top":"left",_=p==="y"?"bottom":"right",b=f+g[y],x=f-g[_];f=Wt(b,f,x)}const v=d.fn({...t,[m]:u,[p]:f});return{...v,data:{x:v.x-i,y:v.y-s,enabled:{[m]:o,[p]:l}}}}}},$l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var i,s;const{placement:a,rects:r,platform:o,elements:l}=t,{apply:d=()=>{},...h}=Ie(e,t),c=await o.detectOverflow(t,h),g=ge(a),p=ke(a),m=ne(a)==="y",{width:u,height:f}=r.floating;let v,y;g==="top"||g==="bottom"?(v=g,y=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=g,v=p==="end"?"top":"bottom");const _=f-c.top-c.bottom,b=u-c.left-c.right,x=ce(f-c[v],_),C=ce(u-c[y],b),I=!t.middlewareData.shift;let k=x,L=C;if((i=t.middlewareData.shift)!=null&&i.enabled.x&&(L=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(k=_),I&&!p){const A=q(c.left,0),F=q(c.right,0),z=q(c.top,0),O=q(c.bottom,0);m?L=u-2*(A!==0||F!==0?A+F:q(c.left,c.right)):k=f-2*(z!==0||O!==0?z+O:q(c.top,c.bottom))}await d({...t,availableWidth:L,availableHeight:k});const M=await o.getDimensions(l.floating);return u!==M.width||f!==M.height?{reset:{rects:!0}}:{}}}};function gt(){return typeof window<"u"}function Ee(e){return Ls(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(Ls(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ls(e){return gt()?e instanceof Node||e instanceof W(e).Node:!1}function Q(e){return gt()?e instanceof Element||e instanceof W(e).Element:!1}function re(e){return gt()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Ps(e){return!gt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:i,overflowY:s,display:a}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&a!=="inline"&&a!=="contents"}function Fl(e){return/^(table|td|th)$/.test(Ee(e))}function ht(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ol=/transform|translate|scale|rotate|perspective|filter/,Bl=/paint|layout|strict|content/,me=e=>!!e&&e!=="none";let Qt;function Zt(e){const t=Q(e)?Z(e):e;return me(t.transform)||me(t.translate)||me(t.scale)||me(t.rotate)||me(t.perspective)||!Jt()&&(me(t.backdropFilter)||me(t.filter))||Ol.test(t.willChange||"")||Bl.test(t.contain||"")}function Vl(e){let t=he(e);for(;re(t)&&!Te(t);){if(Zt(t))return t;if(ht(t))return null;t=he(t)}return null}function Jt(){return Qt==null&&(Qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qt}function Te(e){return/^(html|body|#document)$/.test(Ee(e))}function Z(e){return W(e).getComputedStyle(e)}function pt(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function he(e){if(Ee(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||te(e);return Ps(t)?t.host:t}function Ms(e){const t=he(e);return Te(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&Ve(t)?t:Ms(t)}function Re(e,t,i){var s;t===void 0&&(t=[]),i===void 0&&(i=!0);const a=Ms(e),r=a===((s=e.ownerDocument)==null?void 0:s.body),o=W(a);if(r){const l=ei(o);return t.concat(o,o.visualViewport||[],Ve(a)?a:[],l&&i?Re(l):[])}else return t.concat(a,Re(a,[],i))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function As(e){const t=Z(e);let i=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=re(e),r=a?e.offsetWidth:i,o=a?e.offsetHeight:s,l=ot(i)!==r||ot(s)!==o;return l&&(i=r,s=o),{width:i,height:s,$:l}}function ti(e){return Q(e)?e:e.contextElement}function Le(e){const t=ti(e);if(!re(t))return ee(1);const i=t.getBoundingClientRect(),{width:s,height:a,$:r}=As(t);let o=(r?ot(i.width):i.width)/s,l=(r?ot(i.height):i.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Rl=ee(0);function Ds(e){const t=W(e);return!Jt()||!t.visualViewport?Rl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gl(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==W(e)?!1:t}function fe(e,t,i,s){t===void 0&&(t=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),r=ti(e);let o=ee(1);t&&(s?Q(s)&&(o=Le(s)):o=Le(e));const l=Gl(r,i,s)?Ds(r):ee(0);let d=(a.left+l.x)/o.x,h=(a.top+l.y)/o.y,c=a.width/o.x,g=a.height/o.y;if(r){const p=W(r),m=s&&Q(s)?W(s):s;let u=p,f=ei(u);for(;f&&s&&m!==u;){const v=Le(f),y=f.getBoundingClientRect(),_=Z(f),b=y.left+(f.clientLeft+parseFloat(_.paddingLeft))*v.x,x=y.top+(f.clientTop+parseFloat(_.paddingTop))*v.y;d*=v.x,h*=v.y,c*=v.x,g*=v.y,d+=b,h+=x,u=W(f),f=ei(u)}}return ct({width:c,height:g,x:d,y:h})}function ut(e,t){const i=pt(e).scrollLeft;return t?t.left+i:fe(te(e)).left+i}function zs(e,t){const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-ut(e,i),a=i.top+t.scrollTop;return{x:s,y:a}}function Hl(e){let{elements:t,rect:i,offsetParent:s,strategy:a}=e;const r=a==="fixed",o=te(s),l=t?ht(t.floating):!1;if(s===o||l&&r)return i;let d={scrollLeft:0,scrollTop:0},h=ee(1);const c=ee(0),g=re(s);if((g||!g&&!r)&&((Ee(s)!=="body"||Ve(o))&&(d=pt(s)),g)){const m=fe(s);h=Le(s),c.x=m.x+s.clientLeft,c.y=m.y+s.clientTop}const p=o&&!g&&!r?zs(o,d):ee(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-d.scrollLeft*h.x+c.x+p.x,y:i.y*h.y-d.scrollTop*h.y+c.y+p.y}}function jl(e){return Array.from(e.getClientRects())}function Yl(e){const t=te(e),i=pt(e),s=e.ownerDocument.body,a=q(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),r=q(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-i.scrollLeft+ut(e);const l=-i.scrollTop;return Z(s).direction==="rtl"&&(o+=q(t.clientWidth,s.clientWidth)-a),{width:a,height:r,x:o,y:l}}const Ns=25;function ql(e,t){const i=W(e),s=te(e),a=i.visualViewport;let r=s.clientWidth,o=s.clientHeight,l=0,d=0;if(a){r=a.width,o=a.height;const c=Jt();(!c||c&&t==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}const h=ut(s);if(h<=0){const c=s.ownerDocument,g=c.body,p=getComputedStyle(g),m=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,u=Math.abs(s.clientWidth-g.clientWidth-m);u<=Ns&&(r-=u)}else h<=Ns&&(r+=h);return{width:r,height:o,x:l,y:d}}function Wl(e,t){const i=fe(e,!0,t==="fixed"),s=i.top+e.clientTop,a=i.left+e.clientLeft,r=re(e)?Le(e):ee(1),o=e.clientWidth*r.x,l=e.clientHeight*r.y,d=a*r.x,h=s*r.y;return{width:o,height:l,x:d,y:h}}function $s(e,t,i){let s;if(t==="viewport")s=ql(e,i);else if(t==="document")s=Yl(te(e));else if(Q(t))s=Wl(t,i);else{const a=Ds(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ct(s)}function Fs(e,t){const i=he(e);return i===t||!Q(i)||Te(i)?!1:Z(i).position==="fixed"||Fs(i,t)}function Ul(e,t){const i=t.get(e);if(i)return i;let s=Re(e,[],!1).filter(l=>Q(l)&&Ee(l)!=="body"),a=null;const r=Z(e).position==="fixed";let o=r?he(e):e;for(;Q(o)&&!Te(o);){const l=Z(o),d=Zt(o);!d&&l.position==="fixed"&&(a=null),(r?!d&&!a:!d&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ve(o)&&!d&&Fs(e,o))?s=s.filter(c=>c!==o):a=l,o=he(o)}return t.set(e,s),s}function Xl(e){let{element:t,boundary:i,rootBoundary:s,strategy:a}=e;const o=[...i==="clippingAncestors"?ht(t)?[]:Ul(t,this._c):[].concat(i),s],l=$s(t,o[0],a);let d=l.top,h=l.right,c=l.bottom,g=l.left;for(let p=1;p<o.length;p++){const m=$s(t,o[p],a);d=q(m.top,d),h=ce(m.right,h),c=ce(m.bottom,c),g=q(m.left,g)}return{width:h-g,height:c-d,x:g,y:d}}function Kl(e){const{width:t,height:i}=As(e);return{width:t,height:i}}function Ql(e,t,i){const s=re(t),a=te(t),r=i==="fixed",o=fe(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const d=ee(0);function h(){d.x=ut(a)}if(s||!s&&!r)if((Ee(t)!=="body"||Ve(a))&&(l=pt(t)),s){const m=fe(t,!0,r,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else a&&h();r&&!s&&a&&h();const c=a&&!s&&!r?zs(a,l):ee(0),g=o.left+l.scrollLeft-d.x-c.x,p=o.top+l.scrollTop-d.y-c.y;return{x:g,y:p,width:o.width,height:o.height}}function ii(e){return Z(e).position==="static"}function Os(e,t){if(!re(e)||Z(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return te(e)===i&&(i=i.ownerDocument.body),i}function Bs(e,t){const i=W(e);if(ht(e))return i;if(!re(e)){let a=he(e);for(;a&&!Te(a);){if(Q(a)&&!ii(a))return a;a=he(a)}return i}let s=Os(e,t);for(;s&&Fl(s)&&ii(s);)s=Os(s,t);return s&&Te(s)&&ii(s)&&!Zt(s)?i:s||Vl(e)||i}const Zl=async function(e){const t=this.getOffsetParent||Bs,i=this.getDimensions,s=await i(e.floating);return{reference:Ql(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Jl(e){return Z(e).direction==="rtl"}const Ge={convertOffsetParentRelativeRectToViewportRelativeRect:Hl,getDocumentElement:te,getClippingRect:Xl,getOffsetParent:Bs,getElementRects:Zl,getClientRects:jl,getDimensions:Kl,getScale:Le,isElement:Q,isRTL:Jl};function Vs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ed(e,t){let i=null,s;const a=te(e);function r(){var l;clearTimeout(s),(l=i)==null||l.disconnect(),i=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),r();const h=e.getBoundingClientRect(),{left:c,top:g,width:p,height:m}=h;if(l||t(),!p||!m)return;const u=lt(g),f=lt(a.clientWidth-(c+p)),v=lt(a.clientHeight-(g+m)),y=lt(c),b={rootMargin:-u+"px "+-f+"px "+-v+"px "+-y+"px",threshold:q(0,ce(1,d))||1};let x=!0;function C(I){const k=I[0].intersectionRatio;if(k!==d){if(!x)return o();k?o(!1,k):s=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!Vs(h,e.getBoundingClientRect())&&o(),x=!1}try{i=new IntersectionObserver(C,{...b,root:a.ownerDocument})}catch{i=new IntersectionObserver(C,b)}i.observe(e)}return o(!0),r}function Rs(e,t,i,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,h=ti(e),c=a||r?[...h?Re(h):[],...t?Re(t):[]]:[];c.forEach(y=>{a&&y.addEventListener("scroll",i,{passive:!0}),r&&y.addEventListener("resize",i)});const g=h&&l?ed(h,i):null;let p=-1,m=null;o&&(m=new ResizeObserver(y=>{let[_]=y;_&&_.target===h&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),i()}),h&&!d&&m.observe(h),t&&m.observe(t));let u,f=d?fe(e):null;d&&v();function v(){const y=fe(e);f&&!Vs(f,y)&&i(),f=y,u=requestAnimationFrame(v)}return i(),()=>{var y;c.forEach(_=>{a&&_.removeEventListener("scroll",i),r&&_.removeEventListener("resize",i)}),g?.(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(u)}}const Gs=zl,Hs=Nl,js=Ml,Ys=$l,qs=Pl,Ws=(e,t,i)=>{const s=new Map,a={platform:Ge,...i},r={...a.platform,_c:s};return Ll(e,t,{...a,platform:r})};function Us(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const td=/transform|translate|scale|rotate|perspective|filter/,id=/paint|layout|strict|content/,be=e=>!!e&&e!=="none";let si;function sd(e){const t=(i=e,typeof window<"u"&&(i instanceof Element||i instanceof Us(i).Element)?Us(s=e).getComputedStyle(s):e);var i,s;return be(t.transform)||be(t.translate)||be(t.scale)||be(t.rotate)||be(t.perspective)||(si==null&&(si=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!si&&(be(t.backdropFilter)||be(t.filter)))||td.test(t.willChange||"")||id.test(t.contain||"")}function Xs(e){return(function(t){for(let i=t;i;i=ai(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=ai(t);i;i=ai(i)){if(!(i instanceof Element))continue;const s=getComputedStyle(i);if(s.display!=="contents"&&(s.position!=="static"||sd(s)||i.tagName==="BODY"))return i}return null})(e)}function ai(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const{getGidsAdvancedTooltipClassNames:ad}=Wn,Ks=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.visible=!1,this.x=0,this.y=0,this.offset=12,this.placement="top",this.items=[],this.currentPlacement="top"}connectedCallback(){const e=Y();e&&this.host.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){const e=this.host.shadowRoot;if(!e)return;const t=e.querySelector(".gids-advanced-tooltip__arrow");t instanceof E&&(this.tooltipElement=this.host,this.arrowElement=t,this.createVirtualReference(),this.startAutoUpdate(),this.updatePosition())}disconnectedCallback(){this.cleanupAutoUpdate?.()}visibleChanged(){this.updatePosition()}positionChanged(){this.updatePosition()}placementChanged(){this.updatePosition()}itemsChanged(){this.updatePosition()}createVirtualReference(){this.virtualReference||(this.virtualReference={getBoundingClientRect:()=>new DOMRect(this.x,this.y,0,0)})}startAutoUpdate(){this.cleanupAutoUpdate?.(),this.cleanupAutoUpdate=Rs(this.virtualReference,this.tooltipElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!0})}getMiddleware(){return[Gs(this.offset),js({padding:this.offset}),Hs({padding:this.offset}),qs({element:this.arrowElement,padding:this.offset})]}async updatePosition(){if(this.tooltipElement)try{const{x:e,y:t,placement:i,middlewareData:s}=await Ws(this.virtualReference,this.tooltipElement,{placement:this.placement,strategy:"fixed",middleware:this.getMiddleware(),platform:{...Ge,getOffsetParent:a=>Ge.getOffsetParent(a,Xs)}});if(this.currentPlacement=i,Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${t}px`,position:"fixed"}),s.arrow&&this.arrowElement){const{x:a,y:r}=s.arrow;let o;switch(i.split("-")[0]??"top"){case"top":o="bottom";break;case"right":o="left";break;case"bottom":o="top";break;default:o="right"}Object.assign(this.arrowElement.style,{left:a!=null?`${a}px`:"",top:r!=null?`${r}px`:"",right:"",bottom:"",[o]:"-5px",transform:"rotate(45deg)"})}}catch(e){console.error("computePosition failed",e)}}render(){const e=ad({visible:this.visible});return n($,{key:"6152e667a5224e6808917a1182a5e105239457b9",class:e,role:"tooltip",part:"tooltip"},n("div",{key:"038cf107a7ff1936ca8bc28cfd0a913f4c1bf7d2",class:"gids-advanced-tooltip__arrow",part:"arrow"}),n("div",{key:"6cae35d1b61d4e45175909375f69754e762b38b2",class:"gids-advanced-tooltip__content"},this.items.map((t=>n("div",{class:"gids-advanced-tooltip__item",key:`${t.label}-${t.value}`},n("div",{class:"gids-advanced-tooltip__left"},n(P,{name:"new",size:"xs",appearance:"filled",style:{"--gidsIcon-color":t.seriesIndicatorColor}}),n("span",{class:"gids-advanced-tooltip__label"},t.label)),n("span",{class:"gids-advanced-tooltip__value"},t.value))))))}get host(){return this}static get watchers(){return{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}}static get style(){return".gids-advanced-tooltip{position:fixed;display:inline-flex;width:fit-content;height:fit-content;z-index:1001;--gidsAdvancedTooltip-background:var( --gids-color-background-neutral-bold-default );--gidsAdvancedTooltip-label-color:var(--gids-color-text-inverse);--gidsAdvancedTooltip-value-color:var(--gids-color-text-inverse)}.gids-advanced-tooltip--visible{opacity:1}.gids-advanced-tooltip__content{box-shadow:var(--gids-elevation-shadow-overlay);background:var(--gidsAdvancedTooltip-background);border-radius:var(--gids-border-radius-md);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);min-width:140px}.gids-advanced-tooltip__item{display:flex;justify-content:space-between;align-items:center;gap:var(--gids-gap-200)}.gids-advanced-tooltip__item+.gids-advanced-tooltip__item{margin-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-advanced-tooltip__left{display:flex;align-items:center;gap:var(--gids-gap-100)}.gids-advanced-tooltip__arrow{position:absolute;width:10px;height:10px;background:var(--gidsAdvancedTooltip-background);backdrop-filter:calc(var(--gids-backdrop-blur-2-xl));transform:rotate(45deg)}.gids-advanced-tooltip__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);color:var(--gidsAdvancedTooltip-label-color)}.gids-advanced-tooltip__value{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);color:var(--gidsAdvancedTooltip-value-color);white-space:nowrap}"}},[1,"gids-advanced-tooltip",{visible:[516],x:[2],y:[2],offset:[2],placement:[1],items:[16],currentPlacement:[32]},void 0,{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}]);function mt(){typeof customElements<"u"&&["gids-advanced-tooltip"].forEach((e=>{e==="gids-advanced-tooltip"&&(customElements.get(e)||customElements.define(e,Ks))}))}mt();const nd=Ks,{getGidsBarChartClassNames:rd}=yr,Qs=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0,this.hoveredIndex=null,this.tooltip={visible:!1,x:0,y:0}}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}getTooltipItems(e){return this.chartData.reduce(((t,i)=>{const s=i.data[e];return s&&t.push({label:i?.label??"",value:String(s.value),seriesIndicatorColor:i?.seriesColor??""}),t}),[])}render(){if(this.chartLoading)return n("div",{class:"gids-bar-chart__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this?.chartData?.[0]?.data?.map((u=>u.label))??[],t=e.length,i=Array(t).fill(0);this.chartData.forEach((u=>{Array.isArray(u?.data)&&u.data.forEach(((f,v)=>{v<t&&(i[v]=(i[v]??0)+(f?.value||0))}))}));const s=i.length>0?Math.max(...i):10,a=Math.pow(10,Math.floor(Math.log10(s||1)));let r=a;s/a<=2?r=a/5:s/a<=5&&(r=a/2);const o=Math.ceil(s/r)*r,l=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const u=[...this.dataPoints].sort(((_,b)=>_-b)),f=u.length>1?(u[1]??200)-(u[0]??0):200,v=Math.max(...u,o,...i),y=Math.ceil(v/(f||1));for(let _=0;_<=y;_++)l.push(_*f)}else{const f=o/4;for(let v=0;v<5;v++)l.push(Math.round(0+v*f))}const d=Math.max(...l)-0||1,h=rd({breakpoint:this.breakpoint});let c=!1,g=!1;this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(g=!0);const p=100/t,m=.4*p;return n("div",{class:h},c?n("div",{class:"gids-bar-chart__header"},n("gids-chart-legend",{orientation:"horizontal"},this.chartData.map((u=>n("gids-chart-legend-item",{key:u.label,seriesColor:u?.seriesColor,orientation:"horizontal"},u.label))))):null,n("div",{class:"gids-bar-chart__main-container"},n("div",{class:"gids-bar-chart__grid-layout"},n("span",{class:"gids-bar-chart__y-axis-label"},this.yAxisLabel),n("div",{class:"gids-bar-chart__chart-stage-container"},this.yAxisVisible?n("div",{class:"gids-bar-chart__y-axis-scale-container"},l.map((u=>n("span",{class:"gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value",key:u,style:{bottom:(u-0)/d*100+"%"}},u)))):null,n("div",{class:"gids-bar-chart__chart-stage"},n("svg",{viewBox:"0 0 100 100",class:"gids-bar-chart__chart-vector",preserveAspectRatio:"none"},l.map((u=>{const f=100-(u-0)/d*100;return n("line",{x1:"0",y1:f,x2:"100",y2:f,class:"gids-bar-chart__grid-line",key:u})})),e.map(((u,f)=>{const v=f*p+(p-m)/2;let y=0;const _=[...this.chartData.map(((b,x)=>{if(!Array.isArray(b.data))return null;const C=b.data[f];if(!C)return null;const I=(C.value||0)/d*100,k=100-I-y;return y+=I,{seriesIdx:x,crownY:k,height:I,seriesColor:b?.seriesColor}})).filter((b=>b!==null&&b.height>0))].sort(((b,x)=>x.seriesIdx-b.seriesIdx));return n("g",{key:f},_.map((b=>{const x=.3*m,C=`
|
|
8
8
|
M ${v},${b.crownY+x}
|
|
9
9
|
Q ${v},${b.crownY} ${v+x},${b.crownY}
|
|
10
10
|
H ${v+m-x}
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
V 100
|
|
13
13
|
H ${v}
|
|
14
14
|
Z
|
|
15
|
-
`.replace(/\s+/g," ").trim();return n("path",{key:b.seriesIdx,d:C,class:"gids-bar-chart__bar",style:{fill:b?.seriesColor}})})),n("rect",{x:v,y:"0",width:m,height:"100",fill:"transparent","pointer-events":"all",onMouseMove:b=>{this.hoveredIndex=f,this.tooltip={visible:!0,x:b.clientX,y:b.clientY}},onMouseLeave:()=>{this.hoveredIndex=null,this.tooltip={...this.tooltip,visible:!1}}}))}))),n("gids-advanced-tooltip",{visible:this.tooltip.visible,x:this.tooltip.x,y:this.tooltip.y,items:this.hoveredIndex!==null?this.getTooltipItems(this.hoveredIndex):[]}))),n("div",{class:"gids-bar-chart__x-axis-scale-container"},e.map(((u,f)=>n("span",{class:"gids-bar-chart__scale-text",key:f},u)))),n("span",{class:"gids-bar-chart__x-axis-label"},this.xAxisLabel)),g?n("gids-chart-legend",{orientation:"vertical"},this.chartData.map((u=>n("gids-chart-legend-item",{key:u.label,seriesColor:u?.seriesColor,orientation:"vertical"},u.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-bar-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-bar-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-bar-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-600);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-bar-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-bar-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-bar-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%);margin-right:var(--gids-padding-horizontal-edge-to-element-100)}.gids-bar-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-bar-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-bar-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-bar-chart{}.gids-bar-chart__bar{vector-effect:non-scaling-stroke}.gids-bar-chart{}.gids-bar-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-around;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-200);gap:var(--gids-gap-050);box-sizing:border-box}.gids-bar-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-bar-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-bar-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-bar-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32],hoveredIndex:[32],tooltip:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function Zs(){typeof customElements<"u"&&["gids-bar-chart","gids-advanced-tooltip","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-bar-chart":customElements.get(e)||customElements.define(e,Qs);break;case"gids-advanced-tooltip":customElements.get(e)||ut();break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}Zs();const od=Qs,{getGidsBentoCardClassNames:ld}=Cr,Js=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.label="",this.appearance="default",this.hasDefaultSlot=!1,this.hasIconSlot=!1,this.hasAccessorySlot=!1}headingChanged(e){this.heading=e}labelChanged(e){this.label=e}supportingTextChanged(e){this.supportingText=e}descriptionChanged(e){this.description=e}appearanceChanged(e){this.appearance=e}bgGradientChanged(e){this.bgGradient=e}primaryTextColorChanged(e){this.primaryTextColor=e}secondaryTextColorChanged(e){this.secondaryTextColor=e}tertiaryTextColorChanged(e){this.tertiaryTextColor=e}connectedCallback(){}componentDidLoad(){this.updateSlotStates()}updateSlotStates(){let e=!1;this.iconSlotRef&&(e=this.iconSlotRef.assignedNodes().some((s=>s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&s?.textContent?.trim()!=="")));let t=!1;this.accessorySlotRef&&(t=this.accessorySlotRef.assignedNodes().some((s=>s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&s?.textContent?.trim()!=="")));let i=!1;this.defaultSlotRef&&(i=this.defaultSlotRef.assignedNodes().some((s=>s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&s?.textContent?.trim()!==""))),this.hasIconSlot!==e&&(this.hasIconSlot=e),this.hasAccessorySlot!==t&&(this.hasAccessorySlot=t),this.hasDefaultSlot!==i&&(this.hasDefaultSlot=i)}render(){const e=this?.heading&&this.heading!==""?this.heading:void 0,t=this?.label&&this.label!==""?this.label:void 0,i=this?.supportingText&&this.supportingText!==""?this.supportingText:void 0,s=this?.description&&this.description!==""?this.description:void 0,a=e||t||i||s,r=this?.appearance??"default",o=this?.hasDefaultSlot??!1,l=this?.hasIconSlot??!1,d=this?.hasAccessorySlot??!1,h=ld({appearance:r,hasAccessorySlot:d});return n($,{key:"caabd7dfc000267728deae66ca386a35299fa7d8",class:`${h} ${l?"has-icon":""} ${d?"has-accessory":""} ${o?"has-image":""}`,style:{"--gidsBentoCard-bg-gradient":this?.bgGradient??"","--gidsBentoCardText-color-primary":this?.primaryTextColor??"","--gidsBentoCardText-color-secondary":this?.secondaryTextColor??"","--gidsBentoCardText-color-tertiary":this?.tertiaryTextColor??""}},n("div",{key:"cfa9adda2f173d62c54d48898589eb62472ef000",class:o?"gids-bento-card__content gids-bento-card__default-slot-gapping":"gids-bento-card__content"},n("header",{key:"2ac5e6ca4c3b9095172f1a79e6227ab4473ef1e8",class:"gids-bento-card__header"},n("div",{key:"143c9c4283c1488f29417dd01ad3b4d1c82c42bb",class:l?"gids-bento-card__icon":""},n("slot",{key:"7307e12ffecfa8a71d098601bc057162c4ffa465",name:"bentoCardIcon",ref:c=>this.iconSlotRef=c,onSlotchange:()=>this.updateSlotStates()})),a?n("div",{class:"gids-bento-card__texts-wrapper"},e&&n("span",{class:"gids-bento-card__heading"},e),t&&n("h3",{class:"gids-bento-card__title"},t),i&&n("span",{class:"gids-bento-card__supporting"},i),s&&n("p",{class:"gids-bento-card__description"},s)):void 0),n("div",{key:"6451efead1bb0048115c3cc56698d3eed8dc5629",class:o?"gids-bento-card__image-wrapper":""},n("slot",{key:"cbbca1198f2384d9d45c25751c303ce527898a84",ref:c=>this.defaultSlotRef=c,onSlotchange:()=>this.updateSlotStates()}))),n("footer",{key:"e88d91268a6df4ed0a71e3918b78d7cd0e5d3629",class:d?"gids-bento-card__footer":""},n("slot",{key:"5c80cdae77e8085085b77f8efdeed87263a53d31",name:"bentoCardAccessory",ref:c=>this.accessorySlotRef=c,onSlotchange:()=>this.updateSlotStates()})))}get hostElement(){return this}static get watchers(){return{heading:[{headingChanged:0}],label:[{labelChanged:0}],supportingText:[{supportingTextChanged:0}],description:[{descriptionChanged:0}],appearance:[{appearanceChanged:0}],bgGradient:[{bgGradientChanged:0}],primaryTextColor:[{primaryTextColorChanged:0}],secondaryTextColor:[{secondaryTextColorChanged:0}],tertiaryTextColor:[{tertiaryTextColorChanged:0}]}}static get style(){return".gids-bento-card{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-4-bolder-default) 0%, var(--gids-color-background-accent-4-subtle-default) 100% );--gidsBentoCardText-color-primary:var(--gids-color-text-inverse);--gidsBentoCardText-color-secondary:var(--gids-color-text-inverse);--gidsBentoCardText-color-tertiary:var(--gids-color-text-inverse);display:flex;flex-direction:column;max-width:var(--gids-width-2-xs);padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-150);background:var(--gidsBentoCard-bg-gradient);border-radius:var(--gids-border-radius-lg);box-shadow:var(--gids-elevation-shadow-overlay)}.gids-bento-card--accessory-slot-gapping{gap:var(--gids-gap-600)}.gids-bento-card__default-slot-gapping{gap:var(--gids-gap-500)}.gids-bento-card__content{display:flex;flex-direction:column}.gids-bento-card__header{display:flex;gap:var(--gids-gap-100)}.gids-bento-card__icon{--gidsIcon-color:var(--gidsBentoCardText-color-primary)}.gids-bento-card__texts-wrapper{display:flex;flex-direction:column;gap:var(--gids-gap-50)}.gids-bento-card__heading{font-family:var(--gids-typography-heading-medium__font-family);font-size:var(--gids-typography-heading-medium__font-size);font-weight:var(--gids-typography-heading-medium__font-weight);letter-spacing:var(--gids-typography-heading-medium__letter-spacing);line-height:var(--gids-typography-heading-medium__line-height);text-transform:var(--gids-typography-heading-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-medium__font-variant-caps, inherit);color:var(--gidsBentoCardText-color-primary)}.gids-bento-card__title{font-family:var(--gids-typography-heading-small__font-family);font-size:var(--gids-typography-heading-small__font-size);font-weight:var(--gids-typography-heading-small__font-weight);letter-spacing:var(--gids-typography-heading-small__letter-spacing);line-height:var(--gids-typography-heading-small__line-height);text-transform:var(--gids-typography-heading-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-small__font-variant-caps, inherit);color:var(--gidsBentoCardText-color-primary)}.gids-bento-card__supporting{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);color:var(--gidsBentoCardText-color-secondary);margin-top:var(--gids-padding-vertical-edge-to-element-100)}.gids-bento-card__description{margin: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(--gidsBentoCardText-color-tertiary);margin-top:var(--gids-padding-vertical-edge-to-element-300)}.gids-bento-card__image-wrapper{display:block;width:100%;height:160px}.gids-bento-card__image-wrapper img{display:block;object-fit:contain;width:100%;height:160px}.gids-bento-card__footer{display:flex;flex-direction:column}.gids-bento-card--appearance-positive{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-1-bolder-default) 0%, var(--gids-color-background-accent-1-subtle-default) 100% )}.gids-bento-card--appearance-warning{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-2-bolder-default) 0%, var(--gids-color-background-accent-2-subtle-default) 100% )}.gids-bento-card--appearance-information{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-3-bolder-default) 0%, var(--gids-color-background-accent-3-subtle-default) 100% )}.gids-bento-card--appearance-danger{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-6-bolder-default) 0%, var(--gids-color-background-accent-6-subtle-default) 100% )}.gids-bento-card--appearance-brand{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-brand-boldest-default) 0%, var(--gids-color-background-brand-bold-default) 100% )}"}},[260,"gids-bento-card",{heading:[1],label:[1],supportingText:[1,"supporting-text"],description:[1],appearance:[1],bgGradient:[1,"bg-gradient"],primaryTextColor:[1,"primary-text-color"],secondaryTextColor:[1,"secondary-text-color"],tertiaryTextColor:[1,"tertiary-text-color"],hasDefaultSlot:[32],hasIconSlot:[32],hasAccessorySlot:[32]},void 0,{heading:[{headingChanged:0}],label:[{labelChanged:0}],supportingText:[{supportingTextChanged:0}],description:[{descriptionChanged:0}],appearance:[{appearanceChanged:0}],bgGradient:[{bgGradientChanged:0}],primaryTextColor:[{primaryTextColorChanged:0}],secondaryTextColor:[{secondaryTextColorChanged:0}],tertiaryTextColor:[{tertiaryTextColorChanged:0}]}]);function dd(){typeof customElements<"u"&&["gids-bento-card"].forEach((e=>{e==="gids-bento-card"&&(customElements.get(e)||customElements.define(e,Js))}))}dd();const cd=Js;function ea(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=ea(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function mt(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=ea(e))&&(s&&(s+=" "),s+=t);return s}const{getGidsCalendarMonthListClassNames:gd,getGidsCalendarMonthListMonths:hd}=Tr,ta=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:r,id:o}=t.detail;r||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,month:i,monthInNumber:Number(s),disabled:!1,selectedIndex:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,monthInNumber:Number(i.value),month:i.title,disabled:!1,selectedIndex:i.selectedIndex})},this.monthsList=()=>hd(),this.getSelectedItem=()=>{const t=this.selectedMonthNumber,i=this.monthsList(),s=i.findIndex((r=>r.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}applySelection(e){this.clearActive(),this.onSelectionMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarMonthChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=gd();return n("div",{key:"c9728a8b9ac112198332bf5d4b5acaa4f21f0497",class:e},n(_e,{key:"a592fe89ec9c3fe411d251e93a611968b37ad8e5",type:this.type,supportingText:this.noOptionsText},n(xe,{key:"37d1b2a2bdeb733f7f845538cc2d2e3556dbc252",sectionLabel:"Months"},this.monthsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(i);return n(Be,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-month-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedMonthNumber:[2,"selected-month-number"],onSelectionMonthChange:[16]}]);function ni(){typeof customElements<"u"&&["gids-calendar-month-list"].forEach((e=>{e==="gids-calendar-month-list"&&(customElements.get(e)||customElements.define(e,ta))}))}ni();const{getGidsCalendarYearListClassNames:pd,getGidsCalendarYearListYears:ud,isValidFourDigitYear:ia}=Pr,sa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:r,id:o}=t.detail;r||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,year:Number(s),disabled:!1,selectedIndex:a,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,year:Number(i.value),disabled:!1,selectedIndex:i.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>ud({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,i=this.yearsList(),s=i.findIndex((r=>r.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&ia(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&ia(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=pd();return n("div",{key:"e4b410c9635ccf4192eb579d63539c9221a16099",class:e},n(_e,{key:"4c66b03bb635a2c29fac54129d0874ded0e29caf",type:this.type,supportingText:this.noOptionsText},n(xe,{key:"5efe0a41ad6f0264fcd1cc18669e265dc2317022",sectionLabel:"Years"},this.yearsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(t.value);return n(Be,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function ri(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,sa))}))}ri();const{getGidsDropdownPickerClassNames:md}=Wr,aa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:i,title:s,disabled:a,id:r,isPlaceholderItem:o}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,value:i,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:o}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof a!="string"||a.length===0)return;const r=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof r!="string"||r.length===0)return;const o=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:r,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!o||o!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=md({expanded:e}),i=typeof this.idPicker=="string"?this.idPicker:void 0,s=i?`${i}__menu`:void 0;return n("div",{key:"71d81b97fa9194702f5ecab842e09d741be8ef15",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},n(R,{key:"81175ae046e5686ccf116ce2967f4a437db4193d",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?n("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):n(P,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),n("div",{key:"74a5c6fde8cf21cf08478a7d888922a263003802",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},n("slot",{key:"dbf8ed799e1d586b73e7cd2f949e73330c067557"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline: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;max-height:15rem;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-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function oi(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,aa))}))}oi();const{getGidsCalendarHeaderPanelClassNames:fd,getCalendarMonthNameViaMonthNumber:Pe}=as,na=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="primary",this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.panelDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.expandedMonthPicker=!1,this.expandedYearPicker=!1,this.internalPreviousDisabled=!1,this.internalNextDisabled=!1,this.suppressNextMenuClickSelection=!1,this.suppressNextActionClickSelection=!1,this.fallbackYear=new Date().getFullYear(),this.fallbackMonth=1,this.fallbackStartYear=new Date().getFullYear(),this.fallbackEndYear=new Date().getFullYear()+100,this.handleMonthPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:i?.monthInNumber??this.fallbackMonth,newSelectedYear:this.panelYear??this.fallbackYear}),this.applyMonthSelection({id:i.id,type:"month",month:i.month,monthNumber:Number(i.monthInNumber),year:this.panelYear,disabled:!1,panelValue:`${i.month} ${this.panelYear}`})},this.handleYearPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:this?.panelMonthNumber??this.fallbackMonth,newSelectedYear:i?.year??this.fallbackYear}),this.applyYearSelection({id:i.id,type:"year",month:this.panelMonth,monthNumber:Number(this?.panelMonthNumber),year:i?.year,disabled:!1,panelValue:`${this.panelMonth} ${i.year}`})},this.handlePreviousActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isPreviousActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onPreviousActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=Pe(i);this.applyActionsSelection({type:"previous",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})},this.handleNextActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isNextActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onNextActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=Pe(i);this.applyActionsSelection({type:"next",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})}}handleSelectedMonthNumberChange(e){e!=null&&(this.panelMonthNumber=e,this.panelMonth=Pe(e),this.syncPanelDisplayValue())}handleSelectedYearChange(e){e!=null&&(this.panelYear=e,this.syncPanelDisplayValue())}handleExpandedMonthPickerChange(e){e&&!this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1),e&&this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1)}handleExpandedYearPickerChange(e){e&&!this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1),e&&this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1)}handleMonthPickerInteractivityChange(){!this.isMonthPickerInteractive()&&this.expandedMonthPicker&&this.setExpandedMonthPickerState(!1)}handleYearPickerInteractivityChange(){!this.isYearPickerInteractive()&&this.expandedYearPicker&&this.setExpandedYearPickerState(!1)}handleAppearanceChange(e){this.appearance=e}connectedCallback(){this.panelMonthNumber=this.selectedMonthNumber??this.fallbackMonth,this.panelMonth=Pe(this.selectedMonthNumber??this.fallbackMonth),this.panelYear=this.selectedYear??this.fallbackYear,this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`,this.syncPanelDisplayValue(),this.setPreviousActionInteractivity(),this.setNextActionInteractivity()}applyMonthSelection(e){this.setExpandedMonthPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelMonthChange",{bubbles:!0,composed:!0,detail:e}))}applyYearSelection(e){this.setExpandedYearPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelYearChange",{bubbles:!0,composed:!0,detail:e}))}setExpandedMonthPickerState(e,t){const i=!!e;i&&!this.isMonthPickerInteractive()||this.expandedMonthPicker!==i&&(this.expandedMonthPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelMonthToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:i,expandedYearPicker:!!this.expandedYearPicker,originalEvent:t}})))}setExpandedYearPickerState(e,t){const i=!!e;i&&!this.isYearPickerInteractive()||this.expandedYearPicker!==i&&(this.expandedYearPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelYearToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:!!this.expandedMonthPicker,expandedYearPicker:i,originalEvent:t}})))}syncPanelDisplayValue(){this.panelMonth&&this.panelYear&&(this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`)}applyActionsSelection(e){this.setNextActionInteractivity(),this.setPreviousActionInteractivity(),e.type==="previous"&&this.onPreviousChange?.(e),e.type==="next"&&this.onNextChange?.(e)}checkPrevYearIsAllowed(e){return e>=(this.startYear??this.fallbackStartYear)}checkNextYearIsAllowed(e){return e<=(this.endYear??this.fallbackEndYear)}isPreviousActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===1?this.checkPrevYearIsAllowed((this.panelYear??this.fallbackYear)-1)&&!this.previousDisabled:!this.previousDisabled}isNextActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===12?this.checkNextYearIsAllowed((this.panelYear??this.fallbackYear)+1)&&!this.nextDisabled:!this.nextDisabled}onPreviousActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isPreviousActionInteractive()?{newSelectedMonthNumber:e===1?12:e-1,newSelectedYear:e===1?t-1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}onNextActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isNextActionInteractive()?{newSelectedMonthNumber:e===12?1:e+1,newSelectedYear:e===12?t+1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}isMonthPickerInteractive(){return!this.monthPickerDisabled}isYearPickerInteractive(){return!this.yearPickerDisabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}updatePanelMonth(e){e?(this.selectedMonthNumber=e,this.panelMonth=Pe(e),this.panelMonthNumber=e):(this.selectedMonthNumber=this.fallbackMonth,this.panelMonth=Pe(this.fallbackMonth),this.panelMonthNumber=this.fallbackMonth)}updatePanelYear(e){e?(this.selectedYear=e,this.panelYear=e):this.panelYear=this.fallbackYear}setPreviousActionInteractivity(){this.internalPreviousDisabled=!this.isPreviousActionInteractive()}setNextActionInteractivity(){this.internalNextDisabled=!this.isNextActionInteractive()}updateActionProps({newSelectedYear:e,newSelectedMonthNumber:t}){this.updatePanelYear(e),this.updatePanelMonth(t),this.syncPanelDisplayValue()}getPanelValue(){return this.panelDisplayValue}render(){const e=fd(),t=this.expandedMonthPicker&&this.isMonthPickerInteractive()&&!this.expandedYearPicker,i=this.expandedYearPicker&&this.isYearPickerInteractive()&&!this.expandedMonthPicker,s=this.internalPreviousDisabled||this.previousDisabled,a=this.internalNextDisabled||this.nextDisabled;return n("div",{key:"3353a6720343f4996dd9ed9ae3555151c86a5d83",class:e},n(R,{key:"693b2411f8c5ebb57241d047f6f835492688845d",leadingIcon:n(P,{name:"arrow-left",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handlePreviousActionClick,disabled:s}),n("div",{key:"513e7e8d1b17776bf32c06b32deaeb831e13bb77",class:"gids-calendar-header-panel__main-container"},n("gids-dropdown-picker",{key:"20315f018f4acbf024750a237bac8f6595af0974",expanded:t,appearance:this.appearance,size:"sm",value:`${this.panelMonthNumber}`,disabled:this.monthPickerDisabled},n("gids-calendar-month-list",{key:"582c9dccf9e7391f219aa6fd736bb28c58bcc386",type:"default",selectedMonthNumber:this.panelMonthNumber,onSelectionMonthChange:this.handleMonthPickerMenuClick})),n("span",{key:"22e490f7affc2cc817fef3c9887b3777f2db53e4",class:mt("gids-calendar-header-panel__panel-value",{"gids-calendar-header-panel__panel-value-disabled":this.panelDisabled})},this.getPanelValue()),n("gids-dropdown-picker",{key:"2179b6d64b2575d4b6dd3b56bd2cdf8035486cad",expanded:i,appearance:this.appearance,size:"sm",value:`${this.panelYear}`,disabled:this.yearPickerDisabled},n("gids-calendar-year-list",{key:"9a84cc1f2fabfbbd5e1f5bbcbe59418c63c42257",type:"default",selectedYear:this.panelYear,startYear:this.startYear??this.fallbackStartYear,endYear:this.endYear,onSelectionYearChange:this.handleYearPickerMenuClick}))),n(R,{key:"cf8dc25acfbba53f9baeb40d71144af9df6c0546",leadingIcon:n(P,{name:"arrow-right",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handleNextActionClick,disabled:a}))}get hostElement(){return this}static get watchers(){return{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}}static get style(){return".gids-calendar-header-panel{display:flex;justify-content:center;align-items:center;align-self:stretch;gap:var(--gids-gap-150);width:100%}.gids-calendar-header-panel__main-container{display:flex;flex:1 0 0;align-items:center;justify-content:center;align-self:stretch;gap:var(--gids-gap-100)}.gids-calendar-header-panel__panel-value{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);text-align:center}.gids-calendar-header-panel__panel-value-disabled{color:var(--gids-color-text-disabled)}"}},[0,"gids-calendar-header-panel",{selectedMonthNumber:[1538,"selected-month-number"],selectedYear:[1538,"selected-year"],startYear:[1538,"start-year"],endYear:[1538,"end-year"],appearance:[1],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],panelDisabled:[4,"panel-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],expandedMonthPicker:[1540,"expanded-month-picker"],expandedYearPicker:[1540,"expanded-year-picker"],onPreviousChange:[16],onNextChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],panelMonth:[32],panelMonthNumber:[32],panelYear:[32],panelDisplayValue:[32],internalPreviousDisabled:[32],internalNextDisabled:[32]},void 0,{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}]);function ra(){typeof customElements<"u"&&["gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dropdown-picker"].forEach((e=>{switch(e){case"gids-calendar-header-panel":customElements.get(e)||customElements.define(e,na);break;case"gids-calendar-month-list":customElements.get(e)||ni();break;case"gids-calendar-year-list":customElements.get(e)||ri();break;case"gids-dropdown-picker":customElements.get(e)||oi()}}))}ra();const bd=na,vd=ta,yd=sa,oa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return n(P,{key:"fa62d0348525269257a5bc8f896f4639fc78c206",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function li(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,oa))}))}li();const{getGidsDotClassNames:di}=Hr,la=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=di({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=di({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=di({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return n("gids-icon",{key:"210eb96840d97372d7d07ad3b139d2a0fe6705f3",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function da(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,la);break;case"gids-icon":customElements.get(e)||li()}}))}da();const{getGidsCalendarCellClassNames:_d}=kr,ca=({label:e,dot:t,disabled:i,selected:s,today:a,onPressCalendarCell:r,class:o,role:l="gridcell",cellType:d="effective",...h})=>{const c=!i&&d==="effective";return n("button",{class:_d({disabled:i,selected:s,today:a,cellType:d,dot:t},o),type:"button",role:l,"aria-selected":s?"true":"false",disabled:i,onClick:g=>{if(g.defaultPrevented||i||!c)return;const p=new CustomEvent("onPressCalendarCell",{bubbles:!0,composed:!0,detail:{cellValue:e,selected:s,disabled:i,dot:t,today:a}});r&&r(p)},...h},e?n("span",null,e):null,t?n("gids-dot",{appearance:(()=>{let g="subtle";return s&&!i&&(g="static-inverse"),g})(),disabled:i,size:"xs"}):null)},{getGidsCalendarDayCellClassNames:xd}=Er,Cd=({id:e,label:t,class:i,...s})=>n(ca,{...s,id:e,label:t,name:t,dot:!1,disabled:!1,selected:!1,today:!1,cellType:"non-effective",class:xd(i)}),{getGidsCalendarClassNames:wd,generateCalendarDays:Sd,generateCalendarWeekdays:Id}=Lr,{getCalendarMonthNameViaMonthNumber:kd}=as,ga=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.panelActionsAppearance="primary",this.dotVisibleDates=[],this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.panelDisabled=!1,this.currentMonth=new Date().getMonth()+1,this.currentYear=new Date().getFullYear(),this.handleCHPOnPreviousActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPreviousChange&&this.onPreviousChange(t))},this.handleCHPOnNextActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onNextChange&&this.onNextChange(t))},this.handleCHPOnPanelMonthChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelMonthChange&&this.onPanelMonthChange(t))},this.handleCHPOnPanelYearChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelYearChange&&this.onPanelYearChange(t))},this.setLocalStates=t=>{const{monthNumber:i,year:s}=t;i&&(this.currentMonth=Number(i)),s&&(this.currentYear=Number(s))}}handleActiveMonthPropChange(e){e!=null&&(this.currentMonth=Number(e))}handleActiveYearPropChange(e){e!=null&&(this.currentYear=Number(e))}componentWillLoad(){this.activeMonthNumber!=null&&(this.currentMonth=Number(this.activeMonthNumber)),this.activeYear!=null&&(this.currentYear=Number(this.activeYear))}handleDateCellClick({event:e,dateStr:t,isCurrentMonth:i}){if(e?.detail?.disabled)return;const a=new Date().toISOString().split("T")[0],r=kd(this.currentMonth);this.onSelectionCalendarCell&&this.onSelectionCalendarCell({currentActivePanelState:{monthNumber:this.currentMonth,year:this.currentYear,month:r,panelValue:`${r} ${this.currentYear}`},date:t,isCurrentMonth:i,selected:!0,today:a===t,dotVisibleDates:this.dotVisibleDates??[]})}render(){const e=Sd({currentYear:this.currentYear,currentMonth:this.currentMonth}),t=Id(),i=wd({width:this.width});return n("div",{key:"2c0b0aabd29227e2d3bb4a00145723f71e370162",class:i},n("gids-calendar-header-panel",{key:"e551833b25bb390b53f9f3ca59e0273057873d4c",appearance:this.panelActionsAppearance,startYear:this.startYear,endYear:this.endYear,monthPickerDisabled:this.monthPickerDisabled,yearPickerDisabled:this.yearPickerDisabled,previousDisabled:this.previousDisabled,nextDisabled:this.nextDisabled,panelDisabled:this.panelDisabled,selectedMonthNumber:this.currentMonth,selectedYear:this.currentYear,onPanelMonthChange:this.handleCHPOnPanelMonthChangeEvent,onPanelYearChange:this.handleCHPOnPanelYearChangeEvent,onNextChange:this.handleCHPOnNextActionEvent,onPreviousChange:this.handleCHPOnPreviousActionEvent}),n("div",{key:"d02b06de077654c77e6b25153c610708363ecc9c",class:"gids-calendar__weekdays-grid"},t.map((s=>n(Cd,{label:s})))),n("div",{key:"754ad8f9abb1f5c263f08fa173477eff429c2b1b",class:"gids-calendar__days-grid"},e.map((s=>{const a=this.selectedDate===s.dateString,r=this.dotVisibleDates?.includes(s.dateString);return n(ca,{label:s.day+"",today:s.isToday,selected:a,dot:r,cellType:"effective",disabled:!s.isCurrentMonth,onPressCalendarCell:o=>this.handleDateCellClick({event:o,dateStr:s.dateString,isCurrentMonth:s.isCurrentMonth})})}))))}static get watchers(){return{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}}static get style(){return".gids-calendar{display:flex;flex-direction:column;background-color:transparent;box-sizing:border-box;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-300);gap:var(--gids-gap-200)}.gids-calendar--width-fixed{width:100%;max-width:var(--gids-width-xs)}.gids-calendar--width-intrinsic{width:100%;max-width:100%}.gids-calendar--width-intrinsic .gids-calendar-cell{--cell-width:100%;--cell-aspect-ratio:1 / 1}.gids-calendar__weekdays-grid{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center;align-items:center;width:100%}.gids-calendar__days-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:var(--gids-gap-050);justify-items:center;align-items:center;width:100%}"}},[0,"gids-calendar",{width:[1],panelActionsAppearance:[1,"panel-actions-appearance"],selectedDate:[1,"selected-date"],dotVisibleDates:[16],startYear:[2,"start-year"],endYear:[2,"end-year"],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],panelDisabled:[4,"panel-disabled"],activeMonthNumber:[2,"active-month-number"],activeYear:[2,"active-year"],onNextChange:[16],onPreviousChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],onSelectionCalendarCell:[16],currentMonth:[32],currentYear:[32]},void 0,{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}]);function Ed(){typeof customElements<"u"&&["gids-calendar","gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dot","gids-dropdown-picker","gids-icon"].forEach((e=>{switch(e){case"gids-calendar":customElements.get(e)||customElements.define(e,ga);break;case"gids-calendar-header-panel":customElements.get(e)||ra();break;case"gids-calendar-month-list":customElements.get(e)||ni();break;case"gids-calendar-year-list":customElements.get(e)||ri();break;case"gids-dot":customElements.get(e)||da();break;case"gids-dropdown-picker":customElements.get(e)||oi();break;case"gids-icon":customElements.get(e)||li()}}))}Ed();const Td=ga,{getGidsCarouselControlClassNames:Ld,getGidsCarouselControlBtnClassNames:ft}=Mr,Pd=({leftControlDisabled:e,rightControlDisabled:t,leftControlIcon:i,rightControlIcon:s,size:a="md",onClick:r,class:o})=>n("div",{class:Ld(o)},n("button",{type:"button",disabled:!!e,class:e?ft({size:a})+" gids-carousel-control__disabled":""+ft({size:a}),"aria-label":"Left control",onClick:l=>r?.({originalEvent:l,controlType:"left"})},i||n(P,{name:"arrow-left",size:a!=="xl"?a:"lg",appearance:"regular"})),n("button",{type:"button",disabled:!!t,class:t?ft({size:a})+" gids-carousel-control__disabled":""+ft({size:a}),"aria-label":"Right control",onClick:l=>r?.({originalEvent:l,controlType:"right"})},s||n(P,{name:"arrow-right",size:a!=="xl"?a:"lg",appearance:"regular"}))),{getGidsCarouselPaginationItemClassNames:Md}=Ar,Ad=({id:e="carousel-pagination-item-1",active:t=!1,index:i=0,size:s="sm",onClickPaginationItem:a,class:r})=>n("button",{class:Md({active:t,size:s},r),id:e,type:"button",role:"tab","aria-label":"Go to slide "+(i+1),"aria-selected":t?"true":"false",onClick:o=>{a&&a({originalEvent:o,id:e,active:t,index:i})}}),{getGidsCarouselPaginationClassNames:Dd}=Dr,zd=({numberOfItems:e=1,currentIndex:t,size:i="md",onClickPagination:s,class:a})=>{const r=d=>"carousel-pagination-item-"+(d+1),o=d=>d===t,l=d=>{s&&s({originalEvent:d?.originalEvent,id:r(d.index),index:d.index,active:o(d.index),currentIndex:t})};return n("div",{class:Dd(a),"number-of-items":""+e,"current-index":""+t},Array.from({length:e},((d,h)=>n(Ad,{key:h,index:h,id:r(h),active:o(h),size:i,onClickPaginationItem:l}))))},{getGidsCarouselClassNames:Nd}=zr,ha=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.slides=[],this.autoplay=!1,this.autoplayInterval=5e3,this.loop=!0,this.showControls=!1,this.showPagination=!1,this.pauseOnHover=!0,this.currentIndex=0,this.isDragging=!1,this.pointerStartX=0,this.pointerCurrentX=0,this.isPointerDown=!1,this.swipeThreshold=50,this.visibleSlides=3,this.goToNextSlide=()=>{this.goToSlide(this.currentIndex+1)},this.goToPreviousSlide=()=>{this.goToSlide(this.currentIndex-1)},this.handleMouseEnter=()=>{this.pauseOnHover&&this.stopAutoplay()},this.handleMouseLeave=()=>{this.pauseOnHover&&this.startAutoplay()},this.handlePointerDown=t=>{this.isPointerDown=!0,this.pointerStartX=t.clientX,this.pointerCurrentX=t.clientX,this.isDragging=!0,this.stopAutoplay();const i=t.currentTarget;i instanceof E&&i.setPointerCapture(t.pointerId)},this.handlePointerMove=t=>{this.isPointerDown&&(this.pointerCurrentX=t.clientX)},this.handlePointerUp=t=>{if(!this.isPointerDown)return;const i=this.pointerCurrentX-this.pointerStartX;this.isPointerDown=!1,this.isDragging=!1;const s=t.currentTarget;s instanceof E&&s.hasPointerCapture(t.pointerId)&&s.releasePointerCapture(t.pointerId),Math.abs(i)>=this.swipeThreshold?i<0?this.goToNextSlide():this.goToPreviousSlide():this.restartAutoplay()},this.handlePointerCancel=()=>{this.isPointerDown=!1,this.isDragging=!1,this.restartAutoplay()},this.handleKeyDown=t=>{switch(t.key){case"ArrowRight":t.preventDefault(),this.goToNextSlide();break;case"ArrowLeft":t.preventDefault(),this.goToPreviousSlide();break;case"Home":t.preventDefault(),this.goToSlide(0);break;case"End":t.preventDefault(),this.goToSlide(this.getSlideCount()-1)}},this.onClickCarouselControls=t=>{t?.controlType==="left"&&this.goToPreviousSlide(),t?.controlType==="right"&&this.goToNextSlide()}}componentDidLoad(){this.startAutoplay()}disconnectedCallback(){this.stopAutoplay()}handleSlidesChange(){this.slides.length?this.currentIndex>=this.slides.length&&(this.currentIndex=this.slides.length-1):this.currentIndex=0}handleAutoplayChange(){this.autoplay?this.startAutoplay():this.stopAutoplay()}handleAutoplayIntervalChange(){this.autoplay&&this.startAutoplay()}getSlideCount(){return this.slides.length}getWrappedIndex(e){const t=this.getSlideCount();return t?(e%t+t)%t:0}getRelativeOffset(e){const t=this.getSlideCount();if(!t)return 0;let i=e-this.currentIndex;return this.loop&&(i>t/2&&(i-=t),i<-t/2&&(i+=t)),i}goToSlide(e){const t=this.getSlideCount();if(!t)return;const i=this.loop?this.getWrappedIndex(e):Math.max(0,Math.min(e,t-1));this.currentIndex=i,this.restartAutoplay()}startAutoplay(){!this.autoplay||this.getSlideCount()<=1||(this.stopAutoplay(),this.autoplayTimer=setInterval((()=>{this.isDragging||this.goToNextSlide()}),Math.max(1e3,this.autoplayInterval)))}stopAutoplay(){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=void 0)}restartAutoplay(){this.autoplay&&this.startAutoplay()}getSlideStyle(e){const t=this.getRelativeOffset(e),i=Math.abs(t);return{"--gidsCarousel-x":360*t+"px","--gidsCarousel-z":(i===0?180:-80*i)+"px","--gidsCarousel-rotate-y":-16*t+"deg","--gidsCarousel-scale":(i===0?1:Math.max(.78,1-.055*i))+"",zIndex:100-i+"",opacity:(i>this.visibleSlides?0:Math.max(.58,1-.14*i))+""}}getImageStyle(e){return{objectFit:e.content?.objectFit||"cover"}}renderSlide(e,t){const i=this.getRelativeOffset(t);if(Math.abs(i)>this.visibleSlides)return null;const s=t===this.currentIndex,a=e.content?.src?n("img",{class:"gids-carousel__image",src:e.content.src,alt:e.content.alt||"",width:e.content.width,height:e.content.height,style:this.getImageStyle(e),draggable:!1}):n("div",{class:"gids-carousel__image-placeholder"}),r=e.href?n("a",{class:"gids-carousel__slide-link",href:e.href,"aria-label":e.label||e.content?.alt||"Slide "+(t+1),tabIndex:s?0:-1},a):a;return n("article",{class:{"gids-carousel__slide":!0,"gids-carousel__slide--active":s},style:this.getSlideStyle(t),key:e.id,"aria-hidden":!s},n("div",{class:{"gids-carousel__card":!0,"gids-carousel__card--dragging":this.isDragging}},r),e.label?n("div",{class:"gids-carousel__slide-info"},n("div",{class:"gids-carousel__slide-number"},"#",(t+1+"").padStart(2,"0")),n("div",{class:"gids-carousel__slide-label"},e.label)):null)}renderControls(){return!this.showControls||this.getSlideCount()<=1?null:n(Pd,{class:"gids-carousel__controls",onClick:this.onClickCarouselControls,size:"lg"})}renderPagination(){return!this.showPagination||this.getSlideCount()<=1?null:n(zd,{numberOfItems:(this?.slides??[]).length,currentIndex:this.currentIndex,onClickPagination:e=>{this.currentIndex=e.index,this.goToSlide(e.index)},class:"gids-carousel__pagination"})}render(){const e=Nd();return this.slides.length?n($,{class:e,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},n("section",{class:"gids-carousel__container","aria-roledescription":"carousel","aria-label":this.labelTitle||"Carousel"},n("div",{class:{"gids-carousel__viewport":!0,"gids-carousel__viewport--dragging":this.isDragging},tabIndex:0,onKeyDown:this.handleKeyDown,onPointerDown:this.handlePointerDown,onPointerMove:this.handlePointerMove,onPointerUp:this.handlePointerUp,onPointerCancel:this.handlePointerCancel},n("div",{class:"gids-carousel__stage"},this.slides.map(((t,i)=>this.renderSlide(t,i))))),this.renderControls(),this.renderPagination())):n($,{class:e})}static get watchers(){return{slides:[{handleSlidesChange:0}],autoplay:[{handleAutoplayChange:0}],autoplayInterval:[{handleAutoplayIntervalChange:0}]}}static get style(){return".gids-carousel{display:block;width:100%;--gidsCarousel-accent:var( --gids-color-background-brand-bold-default, currentColor );--gidsCarousel-text:var(--gids-color-text-information, currentColor);--gidsCarousel-surface:transparent;--gidsCarouselCard-width:320px;--gidsCarouselCard-height:430px;--gidsCarouselInfo-space:52px;--gidsCarouselVertical-space:80px;--gidsCarousel-step:360px;}.gids-carousel__container{position:relative;width:100%;overflow:visible}.gids-carousel{}.gids-carousel__viewport{position:relative;width:100%;min-height:calc(var(--gidsCarouselCard-height) + var(--gidsCarouselInfo-space) + var(--gidsCarouselVertical-space));padding-block:40px;box-sizing:border-box;overflow:visible;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;outline:none}.gids-carousel__viewport:focus-visible{outline:2px solid var(--gidsCarousel-accent);outline-offset:-2px}.gids-carousel__viewport--dragging{cursor:grabbing}.gids-carousel__viewport--dragging .gids-carousel__slide,.gids-carousel__viewport--dragging .gids-carousel__card{transition:none}.gids-carousel{}.gids-carousel__stage{position:relative;width:100%;min-height:calc(var(--gidsCarouselCard-height) + var(--gidsCarouselInfo-space) + var(--gidsCarouselVertical-space));display:flex;align-items:center;justify-content:center;perspective:1200px;perspective-origin:50% 50%;transform-style:preserve-3d}.gids-carousel{}.gids-carousel__slide{position:absolute;top:calc(50% - var(--gidsCarouselInfo-space) / 2);left:50%;width:var(--gidsCarouselCard-width);display:flex;flex-direction:column;align-items:stretch;transform:translate3d(calc(-50% + var(--gidsCarousel-x)), -50%, var(--gidsCarousel-z)) rotateY(var(--gidsCarousel-rotate-y)) scale(var(--gidsCarousel-scale));transform-origin:center center;transform-style:preserve-3d;transition:transform 750ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;will-change:transform, opacity;backface-visibility:hidden}.gids-carousel{}.gids-carousel__card{position:relative;width:100%;height:var(--gidsCarouselCard-height);overflow:hidden;border-radius:var(--gidsBorderRadius-300, 16px);background:var(--gidsCarousel-surface);transform-style:preserve-3d;backface-visibility:hidden;transition:box-shadow 600ms ease, filter 600ms ease}.gids-carousel__card--dragging{transition:none}.gids-carousel{}.gids-carousel__slide--active .gids-carousel__card{box-shadow:none;filter:none}.gids-carousel__slide--active .gids-carousel__slide-info{opacity:1;transform:translateY(0)}.gids-carousel{}.gids-carousel__slide-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none;outline:none}.gids-carousel__slide-link:focus-visible{outline:var(--gids-border-width-focused) solid var(--gidsCarousel-accent);outline-offset:-2px}.gids-carousel__image{display:block;width:100%;height:100%;object-position:center;user-select:none;-webkit-user-drag:none}.gids-carousel__image-placeholder{width:100%;height:100%;background:var(--gidsCarousel-surface)}.gids-carousel{}.gids-carousel__slide-info{display:flex;flex-direction:column;align-items:flex-start;gap:var(--gids-gap-075);min-height:var(--gidsCarouselInfo-space);padding-top:var(--gids-padding-vertical-edge-to-element-200);box-sizing:border-box;color:var(--gidsCarousel-text);opacity:0.72;transform:translateY(4px);transition:opacity 450ms ease, transform 450ms ease}.gids-carousel__slide-number{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gidsCarousel-accent)}.gids-carousel__slide-label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gids-carousel{}.gids-carousel__controls{position:absolute;right:var(--gids-padding-horizontal-edge-to-element-300);bottom:var(--gids-padding-vertical-edge-to-element-300);z-index:200}.gids-carousel{}.gids-carousel__pagination{margin-top:var(--gids-padding-vertical-edge-to-element-250)}.gids-carousel{}@media (max-width: 1024px){.gids-carousel{--gidsCarouselCard-width:250px;--gidsCarouselCard-height:350px;--gidsCarouselInfo-space:52px;--gidsCarouselVertical-space:72px;--gidsCarousel-step:285px}.gids-carousel__stage{perspective:1050px}}.gids-carousel{}@media (max-width: 767px){.gids-carousel{--gidsCarouselCard-width:190px;--gidsCarouselCard-height:275px;--gidsCarouselInfo-space:48px;--gidsCarouselVertical-space:64px;--gidsCarousel-step:215px}.gids-carousel__stage{perspective:900px}.gids-carousel__slide-info{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);gap:var(--gids-gap-050)}.gids-carousel__slide-number{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-carousel__slide-label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-carousel .gids-carousel-control{right:var(--gids-padding-horizontal-edge-to-element-200);bottom:var(--gids-padding-horizontal-edge-to-element-200)}.gids-carousel .gids-carousel-control__control{width:var(--gids-size-360);height:var(--gids-size-360)}}.gids-carousel{}@media (max-width: 480px){.gids-carousel{--gidsCarouselCard-width:155px;--gidsCarouselCard-height:225px;--gidsCarouselInfo-space:44px;--gidsCarouselVertical-space:56px;--gidsCarousel-step:175px}.gids-carousel__stage{perspective:800px}.gids-carousel__card{border-radius:var(--gids-border-radius-lg)}.gids-carousel__slide-info{padding-top:var(--gids-padding-horizontal-edge-to-element-100)}.gids-carousel__slide-label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}}.gids-carousel{}@media (prefers-reduced-motion: reduce){.gids-carousel__slide,.gids-carousel__card,.gids-carousel__slide-info,.gids-carousel__control{transition:none}}"}},[0,"gids-carousel",{slides:[16],labelTitle:[1,"label-title"],autoplay:[4],autoplayInterval:[2,"autoplay-interval"],loop:[4],showControls:[4,"show-controls"],showPagination:[4,"show-pagination"],pauseOnHover:[4,"pause-on-hover"],currentIndex:[32],isDragging:[32]},void 0,{slides:[{handleSlidesChange:0}],autoplay:[{handleAutoplayChange:0}],autoplayInterval:[{handleAutoplayIntervalChange:0}]}]);function $d(){typeof customElements<"u"&&["gids-carousel"].forEach((e=>{e==="gids-carousel"&&(customElements.get(e)||customElements.define(e,ha))}))}$d();const Fd=ha,Od=xs,Bd=_s,{getGidsButtonDockClassNames:Vd}=wr,Rd=({class:e,primaryChildren:t,secondaryChildren:i,...s})=>n("div",{class:Vd(e),...s},n("div",{class:"gids-button-dock__secondary-area"},i),n("div",{class:"gids-button-dock__primary-area"},t)),{getGidsFeedbackBlockClassNames:Gd}=eo,He=({title:e,supportingText:t,image:i,children:s})=>n("div",{class:Gd()},n("div",{class:"gids-feedback-block__inner-container"},i&&n("div",{class:"gids-feedback-block__image-container"},i),n("p",{class:"gids-feedback-block__title"},n("strong",null,e)),n("div",{class:"gids-feedback-block__supporting-text"},t),s&&n(Rd,{primaryChildren:s}))),{getGidsLevelGaugeClassNames:Hd}=lo,pa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.label="Completed",this.size="xxs",this.color="amber",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-level-gauge__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));let e=0;typeof this.value=="number"&&!isNaN(this.value)&&(e=this.value);const t=ts;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=t&&this.value>=0))return n("div",{class:"gids-level-gauge__no-data"},n(He,{title:is,supportingText:ss(100),image:n("slot",{name:"chartFeedbackBlockImage"})}));const i=Math.min(Math.max(e/t,0),1),s=`${Math.round(100*i)}%`,a=Hd({breakpoint:this.breakpoint}),r=2*Math.PI*40,o=`${i*r} ${r}`,l=this.size==="xxs";return n("div",{class:a},n("div",{class:`gids-level-gauge__main-container gids-level-gauge__main-container--variant-${this.color}`},n("div",{class:`gids-level-gauge__svg-wrapper gids-level-gauge__svg-wrapper--size-${this.size}`},n("svg",{viewBox:"0 0 100 100",class:"gids-level-gauge__chart-vector"},n("circle",{cx:"50",cy:"50",r:40,class:"gids-level-gauge__track-background"}),n("circle",{cx:"50",cy:"50",r:40,class:`gids-level-gauge__segment gids-level-gauge__segment--variant-${this.color}`,"stroke-dasharray":o,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"})),n("div",{class:"gids-level-gauge__center-content"},l?null:n("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label),n("span",{class:`gids-level-gauge__percentage-common gids-level-gauge__percentage-${this.size}`},s))),l?n("div",{class:"gids-level-gauge__bottom-content"},n("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],max:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-level-gauge{display:block;box-sizing:border-box}.gids-level-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-level-gauge__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-level-gauge__svg-wrapper--size-xxs{width:180px;height:180px}.gids-level-gauge__svg-wrapper--size-xs{width:220px;height:220px}.gids-level-gauge__svg-wrapper--size-sm{width:260px;height:260px}.gids-level-gauge__svg-wrapper--size-md{width:300px;height:300px}.gids-level-gauge__svg-wrapper--size-lg{width:340px;height:340px}.gids-level-gauge__chart-vector{display:block;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__main-container{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-level-gauge__main-container--variant-amber .gids-level-gauge__track-background{stroke:rgb(248, 248, 248)}.gids-level-gauge__main-container--variant-burgundy .gids-level-gauge__track-background{stroke:rgb(246, 243, 243)}.gids-level-gauge__main-container--variant-teal .gids-level-gauge__track-background{stroke:rgb(232, 245, 250)}.gids-level-gauge__track-background{fill:none;stroke-width:6}.gids-level-gauge__segment{fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-level-gauge__segment--variant-amber{stroke:rgb(80, 82, 88)}.gids-level-gauge__segment--variant-burgundy{stroke:rgb(132, 84, 95)}.gids-level-gauge__segment--variant-teal{stroke:rgb(23, 60, 102)}.gids-level-gauge{}.gids-level-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;gap:var(--gids-gap-025)}.gids-level-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-md{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-level-gauge__label-lg{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-level-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-level-gauge__percentage-xxs{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-level-gauge__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-common{color:var(--gids-color-text-default)}.gids-level-gauge{}.gids-level-gauge__bottom-content{display:flex;justify-content:center;text-align:center}.gids-level-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[260,"gids-level-gauge",{breakpoint:[1],value:[2],label:[1],size:[1],color:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],max:[{valueChanged:0}]}]);function ua(){typeof customElements<"u"&&["gids-level-gauge"].forEach((e=>{e==="gids-level-gauge"&&(customElements.get(e)||customElements.define(e,pa))}))}ua();const{getGidsLineChartClassNames:jd}=co,ma=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0,this.hoveredIndex=null,this.tooltip={visible:!1,x:0,y:0}}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}getTooltipItems(e){return this.chartData.reduce(((t,i)=>{const s=i.data[e];return s&&t.push({label:i?.label??"",value:String(s.value),seriesIndicatorColor:i?.seriesColor??""}),t}),[])}render(){if(this.chartLoading)return n("div",{class:"gids-line-chart__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.flatMap((p=>Array.isArray(p?.data)?p.data.map((m=>m.value)):[])),t=e.length>0?Math.max(...e):10,i=Math.pow(10,Math.floor(Math.log10(t||1)));let s=i;t/i<=2?s=i/5:t/i<=5&&(s=i/2);const a=Math.ceil(t/s)*s;let r=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0)r=[...this.dataPoints].sort(((p,m)=>p-m));else{const m=a/4;for(let u=0;u<5;u++)r.push(Math.round(0+u*m))}const o=Math.max(...r,a)-0||1,l=this?.chartData?.[0]?.data?.map((p=>p.label))??[],d=l.length,h=jd({breakpoint:this.breakpoint});let c=!1,g=!1;return this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(g=!0),n("div",{class:h},c?n("div",{class:"gids-line-chart__header"},n("gids-chart-legend",{orientation:"horizontal"},this.chartData.map((p=>n("gids-chart-legend-item",{key:p.label,seriesColor:p?.seriesColor,orientation:"horizontal"},p.label))))):null,n("div",{class:"gids-line-chart__main-container"},n("div",{class:"gids-line-chart__grid-layout"},n("span",{class:"gids-line-chart__y-axis-label"},this.yAxisLabel),n("div",{class:"gids-line-chart__chart-stage-container"},this.yAxisVisible?n("div",{class:"gids-line-chart__y-axis-scale-container"},r.map((p=>n("span",{id:"y-value",class:"gids-line-chart__scale-text gids-line-chart__y-axis-scale-value",key:p,style:{bottom:(p-0)/o*100+"%"}},p)))):null,n("div",{class:"gids-line-chart__chart-stage"},n("svg",{viewBox:"0 0 100 100",class:"gids-line-chart__chart-vector",preserveAspectRatio:"none"},n("defs",null,this.chartData.map(((p,m)=>{const u=p?.fillGradientStartColor,f=p?.fillGradientEndColor;return n("linearGradient",{id:`areaGradient-${m}`,x1:"0",y1:"0",x2:"0",y2:"1",key:m},n("stop",{offset:"0%",style:{stopColor:u,stopOpacity:"1"}}),n("stop",{offset:"100%",style:{stopColor:f,stopOpacity:"0"}}))}))),r.map((p=>{const m=100-(p-0)/o*100;return n("line",{x1:"0",y1:m,x2:"100",y2:m,class:"gids-line-chart__grid-line",key:p})})),this.chartData.map(((p,m)=>{if(!Array.isArray(p.data)||p.data.length<2)return null;const u=p.data.map(((f,v)=>`${v===0?"M":"L"} ${v/(d-1)*100} ${100-(f.value-0)/o*100}`)).join(" ");return n("g",{key:p.label||m},n("path",{d:`${u} L 100 100 L 0 100 Z`,fill:`url(#areaGradient-${m})`,opacity:p?.fillOpacity??"0.1",class:"gids-line-chart__chart-area"}),n("path",{d:u,class:"gids-line-chart__chart-line",fill:"none",style:{stroke:p?.seriesColor,strokeWidth:"2px"}}))})),n("rect",{x:"0",y:"0",width:"100",height:"100",fill:"transparent","pointer-events":"all",onMouseMove:p=>{const m=p.currentTarget.getBoundingClientRect(),u=Math.round((p.clientX-m.left)/m.width*(d-1));this.hoveredIndex=u,this.tooltip={visible:!0,x:p.clientX,y:p.clientY}},onMouseLeave:()=>{this.hoveredIndex=null,this.tooltip={...this.tooltip,visible:!1}}})),this.hoveredIndex!==null&&this.chartData.map(((p,m)=>{if(this.hoveredIndex===null)return;const u=this.hoveredIndex,f=p.data[u];return f?n("div",{id:`chart-dot-${m}`,class:"gids-line-chart__hover-dot",style:{left:u/(d-1)*100+"%",top:100-(f.value-0)/o*100+"%"}},n(P,{name:"new",size:"xs",appearance:"filled",style:{"--gidsIcon-color":p.seriesColor}})):null})),n("gids-advanced-tooltip",{visible:this.tooltip.visible,x:this.tooltip.x,y:this.tooltip.y,items:this.hoveredIndex!==null?this.getTooltipItems(this.hoveredIndex):[]}))),n("div",{class:"gids-line-chart__x-axis-scale-container"},l.map(((p,m)=>n("span",{class:"gids-line-chart__scale-text",key:m},p)))),n("span",{class:"gids-line-chart__x-axis-label"},this.xAxisLabel)),g?n("gids-chart-legend",{orientation:"vertical"},this.chartData.map((p=>n("gids-chart-legend-item",{key:p.label,seriesColor:p?.seriesColor,orientation:"vertical"},p.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-line-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-600);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-line-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-line-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%);margin-right:var(--gids-padding-horizontal-edge-to-element-100)}.gids-line-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-200);gap:var(--gids-gap-050);box-sizing:border-box}.gids-line-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-line-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-line-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}.gids-line-chart__hover-dot{position:absolute;transform:translate(-50%, -50%);pointer-events:none;z-index:20}"}},[0,"gids-line-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32],hoveredIndex:[32],tooltip:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function fa(){typeof customElements<"u"&&["gids-line-chart","gids-advanced-tooltip","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-line-chart":customElements.get(e)||customElements.define(e,ma);break;case"gids-advanced-tooltip":customElements.get(e)||ut();break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}fa();const{getGidsPieChartClassNames:Yd}=yo,ba=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-pie-chart__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((l,d)=>l+(d.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,a=Yd({breakpoint:this.breakpoint}),r=2*Math.PI*25;let o=0;return n("div",{class:a},n("div",{class:"gids-pie-chart__main-container"},n("div",{class:"gids-pie-chart__chart-stage-container"},n("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},n("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},n("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((l,d)=>{const h=(l.value||0)/s,c=`${h*r} ${r}`,g=-o*r;return o+=h,n("circle",{key:l.label||d,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${d+1}`,"stroke-dasharray":c,"stroke-dashoffset":g,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?n("div",{class:"gids-pie-chart__legend-container"},n("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((l,d)=>n("gids-chart-legend-item",{key:l.label,seriesType:`${d+1}`,orientation:"vertical"},l.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function va(){typeof customElements<"u"&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-pie-chart":customElements.get(e)||customElements.define(e,ba);break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}va();const{getGidsProgressCircleClassNames:qd}=wo,ya=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.shape="circle",this.label="",this.size="xs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-progress-circle__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.shape==="half-circle"?pr:ts;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return n("div",{class:"gids-progress-circle__no-data"},n(He,{title:is,supportingText:ss(e)}));const t=this.value/e,i=`${this.value}%`,s=qd({breakpoint:this.breakpoint}),a=this.shape==="half-circle";let r=2*Math.PI*40,o=t*r,l=0,d="0 0 100 100",h="rotate(-90 50 50)";a&&(r=40*Math.PI,o=t*r,l=0,d="0 0 100 50",h="");const c=this.size==="xxs",g=typeof this.label=="string"&&this.label.trim()!=="";return n("div",{class:s},n("div",{class:"gids-progress-circle__main-container"},n("div",{class:`gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}`},n("svg",{viewBox:d,class:"gids-progress-circle__chart-vector"},a?n("g",null,n("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__track-background"}),n("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${r}`,"stroke-dashoffset":l})):n("g",null,n("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__track-background"}),n("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${r}`,"stroke-dashoffset":l,transform:h}))),n("div",{class:`gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}`},g&&!c?n("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label):null,n("span",{class:`gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}`},i))),c&&g?n("div",{class:"gids-progress-circle__bottom-content"},n("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],shape:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-md{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-progress-circle__label-lg{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-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{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-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-progress-circle",{breakpoint:[1],value:[2],shape:[1],label:[1],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],shape:[{valueChanged:0}]}]);function _a(){typeof customElements<"u"&&["gids-progress-circle"].forEach((e=>{e==="gids-progress-circle"&&(customElements.get(e)||customElements.define(e,ya))}))}_a();const{getGidsChartClassNames:Wd}=Fr,xa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartType="line-chart",this.getChartTypes=()=>["line-chart","bar-chart","pie-chart","activity-gauge","level-gauge","progress-circle","radar-chart"],this.isChartTypeValid=()=>{const t=this.getChartTypes(),i=this.chartType;return!(!i||!t.includes(i))},this.isChartDataValid=()=>{const t=this.chartType;if(t==="line-chart"){const i=this.lineChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="bar-chart"){const i=this.barChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="pie-chart"){const i=this.pieChartProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}if(t==="activity-gauge"){const i=this.activityGaugeProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}return t==="level-gauge"||t==="progress-circle"||t==="radar-chart"},this.getChartTypeText=()=>{const t=this.chartType;if(t){const i=t.split("-");let s="";return i.map(((a,r)=>{s=r===0?""+a:`${s} ${a}`})),s}return""}}handleBreakpointChange(e){this.breakpoint=e}handleChartTypeChange(e){this.chartType=e}render(){if(!this.isChartTypeValid())return n("div",{class:"gids-chart__no-data"},n(He,{title:ur,supportingText:mr(this.getChartTypes().join(", "))}));const e=this.isChartDataValid(),t=this.getChartTypeText();if(!e)return n("div",{class:"gids-activity-gauge__no-data"},n(He,{title:gr,supportingText:hr(t)}));const i=Wd(),s=this.chartType,a=this.barChartProps,r=this.pieChartProps,o=this.activityGaugeProps,l=this.levelGaugeProps,d=this.progressCircleProps;return n("div",{class:i},s==="line-chart"?n("gids-line-chart",{...this.lineChartProps,breakpoint:this.breakpoint}):null,s==="bar-chart"?n("gids-bar-chart",{...a,breakpoint:this.breakpoint}):null,s==="pie-chart"?n("gids-pie-chart",{...r,breakpoint:this.breakpoint}):null,s==="activity-gauge"?n("gids-activity-gauge",{...o,breakpoint:this.breakpoint}):null,s==="level-gauge"?n("gids-level-gauge",{...l,breakpoint:this.breakpoint}):null,s==="progress-circle"?n("gids-progress-circle",{...d,breakpoint:this.breakpoint}):null,s==="radar-chart"?n("div",{class:"gids-chart__no-data"},n(He,{title:"Coming Soon!",supportingText:"Radar chart is under progress. This will be available in next major version of GIDS."})):null)}static get watchers(){return{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}}static get style(){return".gids-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-chart",{breakpoint:[1],chartType:[1,"chart-type"],lineChartProps:[16],barChartProps:[16],pieChartProps:[16],activityGaugeProps:[16],levelGaugeProps:[16],progressCircleProps:[16]},void 0,{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}]);function Ud(){typeof customElements<"u"&&["gids-chart","gids-activity-gauge","gids-advanced-tooltip","gids-bar-chart","gids-chart-legend","gids-chart-legend-item","gids-level-gauge","gids-line-chart","gids-pie-chart","gids-progress-circle"].forEach((e=>{switch(e){case"gids-chart":customElements.get(e)||customElements.define(e,xa);break;case"gids-activity-gauge":customElements.get(e)||ws();break;case"gids-advanced-tooltip":customElements.get(e)||ut();break;case"gids-bar-chart":customElements.get(e)||Zs();break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se();break;case"gids-level-gauge":customElements.get(e)||ua();break;case"gids-line-chart":customElements.get(e)||fa();break;case"gids-pie-chart":customElements.get(e)||va();break;case"gids-progress-circle":customElements.get(e)||_a()}}))}Ud();const Xd=xa,{getGidsChevronButtonClassNames:ci}=Br,Ca=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=De(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=ci({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ci({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=ci({size:this.size},this.extraClasses)}render(){return n("button",{key:"7e0823990f53a8836996a10f7fc1d36853b3e656",class:this.activeClasses,slot:"trailingAccessory",type:"button",onClick:e=>this.gidsChevronButton.emit(e),"aria-label":this?.ariaLabel??"","aria-expanded":this?.ariaExpanded??"","aria-haspopup":this?.ariaHaspopup??"","aria-controls":this?.ariaControls??"",disabled:this.disabled,tabIndex:-1},n("span",{key:"d54d73ef7ca78bab59236859c695f25482ab556a",class:"gids-button__content"},n(P,{key:"914adbc2dcf44b8bf6e52cfa003bc40a336fb5bc",name:"chevron-vertical",alt:""})))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}"}},[1,"gids-chevron-button",{extraClasses:[513,"extra-classes"],size:[513],disabled:[516],ariaLabel:[513,"aria-label"],ariaHaspopup:[513,"aria-haspopup"],ariaExpanded:[513,"aria-expanded"],ariaControls:[513,"aria-controls"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}]);function Kd(){typeof customElements<"u"&&["gids-chevron-button"].forEach((e=>{e==="gids-chevron-button"&&(customElements.get(e)||customElements.define(e,Ca))}))}Kd();const Qd=Ca,Zd=la,{getIndicatorText:Jd}=Jn,{getGidsLabelClassNames:ec}=oo,gi=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:a,htmlFor:r,labelId:o,class:l,isLabelSentence:d,...h},c)=>{const g=Jd({children:c,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:d});return n("div",{class:ec({disabled:e},l),...h},n("label",{htmlFor:r,id:o},c,g&&n("span",{class:"gids-label__field-requirement"},g)),a)},wa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(qo(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return n(ae,{key:"ecbda1a363fff11d477fc954db9521e49f2be856"},n("slot",{key:"91da6b8209b6ec8d029716c0ecd409844073dccc",name:"leadingIcon"}),this.leadingLabel&&n("span",{key:"05baed582bbe66d678ce076ad94914cbd24f1d26",class:"gids-input__label"},this.leadingLabel),n("slot",{key:"6250a740115a58f76b47c79375461f84fddc1b51",name:"leadingAccessory"}),n("input",{key:"57f082d129990ae975794483a42ac2754fd13f09",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),n("slot",{key:"ac04528c2c4f5606d507ac133b6509f6a9d5fe9e",name:"trailingAccessory"}),this.trailingLabel&&n("span",{key:"806996ab18f5c0f3e226af14703642646b4e72d8",class:"gids-input__label"},this.trailingLabel),n("slot",{key:"7efc92e65a26a6bdc0840648d1ec358767c8b7a5",name:"trailingIcon"}),this.status==="incomplete"&&n(P,{key:"17ffd9ff869b013c125dfb5fef9d4c90dd357ec0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&n(P,{key:"246410eec89d9b2d485ee92c030ca406d6047242",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&n(Gt,{key:"ef4f55e9b7fd23738c36e40e71f60e7ad54b3e8f",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function je(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,wa))}))}je();const{getGidsDropdownClassNames:tc,getGidsChevronButtonControlClassNames:ic}=Ur,hi="gids-dropdown-item--active",Sa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:i,title:s,disabled:a,id:r,isPlaceholderItem:o}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,value:i,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:o}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof a!="string"||a.length===0)return;const r=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof r!="string"||r.length===0)return;const o=s.getAttribute("is-placeholder-item")??"";let l=s.textContent?.trim()??"";l.endsWith("checkmark")&&(l=l.slice(0,-9).trim()),this.applySelection({id:r,value:a,title:l.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!o||o!=="true")})},this.handleFilterInput=t=>{const i=t.target;this.filterValue=i?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const i=t.key,s=i==="ArrowDown";if((s||i==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(i==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(i==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(i==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(hi))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((a=>a.classList.remove(hi))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const i=Math.max(0,Math.min(e,t.length-1)),s=t[i];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=i,s.classList.add(hi),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const i=(t.textContent??"").toLowerCase(),s=e.length===0||i.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=a=>{t?.(a),this.handleFilterInput(a)};const i=e.onBlur;e.onBlur=a=>{i?.(a),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=a=>{s?.(a),a.defaultPrevented||this.handleInputKeyDown(a)},e}render(){const e=this.expanded&&this.isInteractive(),t=tc({expanded:e}),i=this.getEnhancedInputProps(),s=typeof i.id=="string"?i.id:void 0,a=s?`${s}__menu`:void 0;i.role="combobox",i["aria-expanded"]=e?"true":"false",i["aria-haspopup"]="listbox",i["aria-autocomplete"]="list",a&&(i["aria-controls"]=a);const r=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",o=e?"true":"false",l=n("button",{key:"9e3dac49fc4d28756ee8a3cc6acf5b3e8fbd3946",class:ic({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":o,"aria-haspopup":"listbox","aria-controls":a,disabled:this.disabled||this.readOnly,tabIndex:-1},n("span",{key:"bff0ebcd17028764e49a39510f7383cffcbcdb68",class:"gids-button__content"},n(P,{key:"d606133c6a3ef63163f8bab07a76eecaefd513c1",name:"chevron-vertical",alt:""})));return n("div",{key:"90b78fe845b07971f2ce56ceca1bf5e06d948c16",class:t},n("gids-input",{key:"06c87d5843f19553d11b7f3de1e193f605d38c8f",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:r,name:this.name,inputProps:i,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&n("slot",{key:"795e828bf59f60318522f9f6c5804969f4a4e898",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&n("slot",{key:"f94eadb4e2f8e05d9543c3ee6ce38cdf68401062",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),l),n("div",{key:"579971401473c61304064214df63b202a367446e",class:"gids-dropdown__menu",id:a,role:"listbox",onClick:this.handleMenuClick},n("slot",{key:"009f17ab13f9da11e2c3fb1464ae8ac3ec49ee39"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;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-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function Ia(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,Sa);break;case"gids-input":customElements.get(e)||je()}}))}Ia();const{getGidsFieldClassNames:sc}=to,ka=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const a=this._getStatusModifierClass(i,"gids-field__status-text");a!=null&&s.push(a)}return n($,{key:"b296d1365e6b518d7aafb6af439c73a01ee05973"},n("div",{key:"0713bc4c4e6d2d78f41e7383e03a5a2e670f374d",class:sc()},n("div",{key:"060131205bf2563cc9a73cadc1bfa0aaa2782dc4",class:"gids-field__header",hidden:!this._hasLabelContent()},n("slot",{key:"24d91f471b0d18a286352aeddd1f6f621ee18c96",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),n("div",{key:"82395d9990fbb76ff2036f326a825ded78e74ae8",class:"gids-field__count","aria-live":"polite"},this.count)),n("div",{key:"6240db77a53290a25b0cdba34cdb37615956b9d7",class:"gids-field__control"},n("slot",{key:"975c677a1f88761e3841e4027fdb65e3c711016b",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),n("p",{key:"404f4c44b9b32209ccdcde586bd688693b2d6022",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?n("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?n("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let a=e;return e==="error"&&(a="danger"),e==="success"&&(a="positive"),n(P,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${a})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((a=>a instanceof HTMLInputElement&&a.type==="radio"&&this._el.contains(a)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const a=i.querySelector("input, textarea");if(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)return a}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);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-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function bt(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ka))}))}bt();const Ea=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#t=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#t;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#t,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return n("gids-field",{key:"d71646c9bae1a4757be118a168fa62be09b46740",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?n(gi,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,n("gids-dropdown",{key:"b55cce42783d7b70f76137efd731400ef5be1933",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},n("slot",{key:"24c9c0992be8b8e7ed6ce03e85768a84185ea82e",name:"leadingIconDropdown"}),n("slot",{key:"f6521ed557b08ae3043b003b97f5c53f78d432aa",name:"leadingAccessoryDropdown"}),n("slot",{key:"7a232faa483c29db8c5b5075d5d8aa276d8b7d9e"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function ac(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,Ea);break;case"gids-dropdown":customElements.get(e)||Ia();break;case"gids-field":customElements.get(e)||bt();break;case"gids-input":customElements.get(e)||je()}}))}ac();const nc=Ea,rc=aa,oc=Sa,{getGidsDisplaTagClassNames:lc}=Rr,Ta=({label:e,appearance:t="subtle",color:i,size:s="md",icon:a,class:r,...o})=>n("span",{class:lc({size:s,appearance:t,color:i},r),...o},a,e),{getGidsExpansionBodyListItemClassNames:dc}=Kr,La=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.displayTagVisible=!1,this.displayTagColor="accent-5",this.displayTagSize="xs",this.displayTagAppearance="subtle",this.hasSubtitleItemListener=!1,this.hasSupportingTextItemListener=!1,this.handleSubtitleClick=t=>{this.applySubtitleSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"subtitle",originalEvent:t})},this.handleSupportingTextClick=t=>{this.applySupportingTextSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"supporting-text",originalEvent:t})}}handleDisplayTagVisibilityChange(e){this.displayTagVisible=e}handleDisplayTagColorChange(e){this.displayTagColor=e}handleDisplayTagSizeChange(e){this.displayTagSize=e}handleDisplayTagAppearanceChange(e){this.displayTagAppearance=e}connectedCallback(){this.attachSubtitleItemListener(),this.attachSupportingTextItemListener()}disconnectedCallback(){this.detachSubtitleItemListener(),this.detachSupportingTextItemListener()}applySubtitleSelection(e){this.onSubtitlePress&&this.onSubtitlePress(e)}applySupportingTextSelection(e){this.onSupportingTextPress&&this.onSupportingTextPress(e)}attachSubtitleItemListener(){this.hasSubtitleItemListener||(this.hostElement.addEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!0)}attachSupportingTextItemListener(){this.hasSupportingTextItemListener||(this.hostElement.addEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!0)}detachSubtitleItemListener(){this.hasSubtitleItemListener&&(this.hostElement.removeEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!1)}detachSupportingTextItemListener(){this.hasSupportingTextItemListener&&(this.hostElement.removeEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!1)}isValidLabel(){return!(!this?.label||this.label==="")}isValidSubtitle(){return!(!this?.subtitle||this.subtitle==="")}isValidSupportingText(){return!(!this?.supportingText||this.supportingText==="")}isDisplayTagVisible(){return!(!this.displayTagVisible||!this?.displayTagLabel||this.displayTagLabel==="")}convertTextToUppercase(e){return e&&e!==""?e.toUpperCase():""}render(){const e=dc(),t=this?.label,i=this?.subtitle,s=this?.supportingText,a=this.isValidLabel(),r=this.isValidSubtitle(),o=this.isValidSupportingText(),l=this.isDisplayTagVisible(),d=this?.displayTagLabel??"";return n($,{key:"bfe69722ce1b8b0f7f2d935131009ba755bd25cb",class:e},a||r||l?n("div",{class:"gids-expansion-body-list-item__primary-container"},a||l?n("div",{class:"gids-expansion-body-list-item__primary-content"},a?n("span",{class:"gids-expansion-body-list-item__label"},this.convertTextToUppercase(t)):void 0,l?n(Ta,{color:this.displayTagColor||"accent-5",label:d,size:this.displayTagSize,appearance:this.displayTagAppearance}):void 0):void 0,r?n("button",{type:"button",class:"gids-expansion-body-list-item__subtitle",onClick:this.handleSubtitleClick},i):void 0):void 0,o?n("div",{class:"gids-expansion-body-list-item__secondary-container"},n("button",{type:"button",class:"gids-expansion-body-list-item__supporting-text",onClick:this.handleSupportingTextClick},this.convertTextToUppercase(s))):void 0)}get hostElement(){return this}static get watchers(){return{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}}static get style(){return'.gids-expansion-body-list-item{display:flex;flex:1;gap:var(--gids-gap-400);padding-bottom:var(--gids-padding-vertical-edge-to-element-300);position:relative;cursor:default}.gids-expansion-body-list-item::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion-body-list-item::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::before{opacity:1}.gids-expansion-body-list-item__primary-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 0;gap:var(--gids-gap-150)}.gids-expansion-body-list-item__primary-content{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-200)}.gids-expansion-body-list-item__secondary-container{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.gids-expansion-body-list-item__label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle);cursor:default}.gids-expansion-body-list-item__subtitle{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer}.gids-expansion-body-list-item__supporting-text{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle);padding:var(--gids-padding-vertical-edge-to-element-050) var(--gids-padding-horizontal-edge-to-element-100);border-radius:var(--gids-border-radius-sm);cursor:pointer;transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out}.gids-expansion-body-list-item__supporting-text:hover{background-color:var(--gids-color-background-brand-bold-hovered);color:var(--gids-color-text-inverse)}.gids-expansion-body-list-item__supporting-text:active{background-color:var(--gids-color-background-brand-bold-pressed);color:var(--gids-color-text-inverse)}'}},[0,"gids-expansion-body-list-item",{listItemId:[1,"list-item-id"],label:[1],subtitle:[1],supportingText:[1,"supporting-text"],displayTagVisible:[4,"display-tag-visible"],displayTagColor:[1,"display-tag-color"],displayTagSize:[1,"display-tag-size"],displayTagAppearance:[1,"display-tag-appearance"],displayTagLabel:[1,"display-tag-label"],onSubtitlePress:[16],onSupportingTextPress:[16]},void 0,{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}]);function Pa(){typeof customElements<"u"&&["gids-expansion-body-list-item"].forEach((e=>{e==="gids-expansion-body-list-item"&&(customElements.get(e)||customElements.define(e,La))}))}Pa();const cc=La,{getGidsExpansionBodyListClassNames:gc}=Qr,Ma=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.expansionBodyListItems=[],this.hasExpansionBodyListSubtitleItemListener=!1,this.hasExpansionBodyListSupportingTextItemListener=!1,this.handleExpansionBodyListSubtitleClick=({detail:t,expansionBodyListItem:i})=>{this.selectedExpansionListItem={detail:t,expansionBodyListItem:i},this.applyExpansionBodyListSubtitleSelection({detail:t,expansionBodyListItem:i})},this.handleExpansionBodyListSupportingTextClick=({detail:t,expansionBodyListItem:i})=>{this.selectedExpansionListItem={detail:t,expansionBodyListItem:i},this.applyExpansionBodyListSupportingTextSelection({detail:t,expansionBodyListItem:i})},this.handleExpansionBodyListSubtitleSelect=t=>{const{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o}=t.detail;this.applyExpansionBodyListSubtitleSelection({detail:{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o,originalEvent:t},expansionBodyListItem:this.selectedExpansionListItem?.expansionBodyListItem})},this.handleExpansionBodyListSupportingTextSelect=t=>{const{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o}=t.detail;this.applyExpansionBodyListSupportingTextSelection({detail:{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o,originalEvent:t},expansionBodyListItem:this.selectedExpansionListItem?.expansionBodyListItem})}}handleExpansionBodyListItemsChange(e){this.expansionBodyListItems=e}connectedCallback(){this.attachExpansionBodyListSubtitleItemListener(),this.attachExpansionBodyListSupportingTextItemListener()}disconnectedCallback(){this.detachExpansionBodyListSubtitleItemListener(),this.detachExpansionBodyListSupportingTextItemListener()}applyExpansionBodyListSubtitleSelection({detail:e,expansionBodyListItem:t}){this.onExpansionBodyListSubtitlePress&&this.onExpansionBodyListSubtitlePress({...e,selectedExpansionBodyListItem:t})}applyExpansionBodyListSupportingTextSelection({detail:e,expansionBodyListItem:t}){this.onExpansionBodyListSupportingTextPress&&this.onExpansionBodyListSupportingTextPress({...e,selectedExpansionBodyListItem:t})}attachExpansionBodyListSubtitleItemListener(){this.hasExpansionBodyListSubtitleItemListener||(this.hostElement.addEventListener("onExpansionBodyListSubtitlePress",this.handleExpansionBodyListSubtitleSelect),this.hasExpansionBodyListSubtitleItemListener=!0)}attachExpansionBodyListSupportingTextItemListener(){this.hasExpansionBodyListSupportingTextItemListener||(this.hostElement.addEventListener("onExpansionBodyListSupportingTextPress",this.handleExpansionBodyListSupportingTextSelect),this.hasExpansionBodyListSupportingTextItemListener=!0)}detachExpansionBodyListSubtitleItemListener(){this.hasExpansionBodyListSubtitleItemListener&&(this.hostElement.removeEventListener("onExpansionBodyListSubtitlePress",this.handleExpansionBodyListSubtitleSelect),this.hasExpansionBodyListSubtitleItemListener=!1)}detachExpansionBodyListSupportingTextItemListener(){this.hasExpansionBodyListSupportingTextItemListener&&(this.hostElement.removeEventListener("onExpansionBodyListSupportingTextPress",this.handleExpansionBodyListSupportingTextSelect),this.hasExpansionBodyListSupportingTextItemListener=!1)}render(){const e=gc();return n($,{key:"544e76e76925e18a6c8dc2546d90176938827ef4",class:e},(this?.expansionBodyListItems??[]).map(((t,i)=>n("gids-expansion-body-list-item",{key:""+(i+1),...t,onSubtitlePress:s=>this.handleExpansionBodyListSubtitleClick({detail:s,expansionBodyListItem:t}),onSupportingTextPress:s=>this.handleExpansionBodyListSupportingTextClick({detail:s,expansionBodyListItem:t})}))))}get hostElement(){return this}static get watchers(){return{expansionBodyListItems:[{handleExpansionBodyListItemsChange:0}]}}static get style(){return".gids-expansion-body-list{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-400);overflow-y:scroll;overflow-x:hidden}"}},[0,"gids-expansion-body-list",{expansionBodyListItems:[16],onExpansionBodyListSubtitlePress:[16],onExpansionBodyListSupportingTextPress:[16],selectedExpansionListItem:[32]},void 0,{expansionBodyListItems:[{handleExpansionBodyListItemsChange:0}]}]);function hc(){typeof customElements<"u"&&["gids-expansion-body-list","gids-expansion-body-list-item"].forEach((e=>{switch(e){case"gids-expansion-body-list":customElements.get(e)||customElements.define(e,Ma);break;case"gids-expansion-body-list-item":customElements.get(e)||Pa()}}))}hc();const pc=Ma,{getGidsExpansionGroupClassNames:uc}=Zr,Aa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost()}render(){const e=uc();return n($,{key:"ddf7c67fd4ee79879484efb9ee621b5b237ec9a2",class:e},n("slot",{key:"af1b62da31b9de8d41fdc495ab26d2ea72259928"}))}static get style(){return".gids-expansion-group{display:flex;flex-direction:column;width:100%}"}},[260,"gids-expansion-group"]);function mc(){typeof customElements<"u"&&["gids-expansion-group"].forEach((e=>{e==="gids-expansion-group"&&(customElements.get(e)||customElements.define(e,Aa))}))}mc();const fc=Aa,{getGidsExpansionClassNames:bc}=Jr,Da=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.labelLevel="h1",this.hasContent=!1,this.handleExpansionClick=()=>{if(this.isInteractive()){const t=!this.isExpanded();this.expanded=t,this.onExpand&&this.onExpand({expansionId:this.expansionId,expanded:t,label:this?.label,labelLevel:this?.labelLevel,disabled:this?.disabled})}}}handleDisabledChange(e){this.disabled=e}handleExpandedChange(e){this.expanded=e}handleLabelLevelChange(e){this.labelLevel=e}componentDidLoad(){this.checkSlotContent()}checkSlotContent(){const e=this.hostElement.querySelector(".gids-expansion__content");if(e){const t=e.children.length>0,i=!!e.textContent&&e.textContent.trim().length>0;this.hasContent=t||i}}isInteractive(){return!this.disabled&&this.hasContent}isExpanded(){return!!this.expanded&&this.isInteractive()}isHavingLabelValue(){return!(!this.label||this.label==="")}getIconSize(){switch(this.labelLevel){case"h2":case"h3":return"md";default:return"lg"}}getLabelClass(){switch(this.labelLevel){case"h2":return"gids-expansion__level-h2";case"h3":return"gids-expansion__level-h3";default:return"gids-expansion__level-h1"}}render(){const e=bc({expanded:this.isExpanded()&&this.isInteractive()}),t=this.label;return n($,{key:"a23c25c019f5c3290df1a7807193978874d810da",class:e},n("button",{key:"b5ab25d5adfde95b3139282547427599a72fe9e8",onClick:this.handleExpansionClick,class:mt("gids-expansion__container",{"gids-expansion__disabled":this.disabled}),disabled:this.disabled,type:"button"},this.isHavingLabelValue()?n("span",{class:this.getLabelClass()},t):void 0,this.isInteractive()?n(P,{name:"chevron-down",size:this.getIconSize(),appearance:"filled"}):void 0),n("div",{key:"4f340035ae1ad1dd64ff30510febcb372f6d6bb3",class:"gids-expansion__body","aria-hidden":this.isExpanded()?"false":"true"},n("div",{key:"6648540fbdb943b071c9da17d5fc348f2a6aeef1",class:"gids-expansion__content"},n("slot",{key:"20d90ce3362b756cde7466ba2951598c6ef2775e"}))))}get hostElement(){return this}static get watchers(){return{disabled:[{handleDisabledChange:0}],expanded:[{handleExpandedChange:0}],labelLevel:[{handleLabelLevelChange:0}]}}static get style(){return'.gids-expansion{display:flex;align-items:center;position:relative;padding:var(--gids-padding-vertical-edge-to-element-300) 0}.gids-expansion:not(.gids-expansion--expanded):not([expanded])::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion:not(.gids-expansion--expanded):not([expanded])::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled)::before{opacity:1}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-expansion__level-h1{color:var(--gids-color-background-brand-bold-default)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-expansion__level-h2{color:var(--gids-color-background-brand-bold-default)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-expansion__level-h3{color:var(--gids-color-background-brand-bold-default)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-icon{--gidsIcon-color:var(--gids-color-background-brand-bold-default)}.gids-expansion__container{margin:0;padding:0;appearance:none;border:none;background:none;cursor:pointer;display:flex;align-items:center;gap:var(--gids-gap-050);white-space:nowrap;color:var(--gids-color-text-default)}.gids-expansion__container gids-icon,.gids-expansion__container .gids-icon,.gids-expansion__container GidsIcon,.gids-expansion__container svg{display:inline-block;transform:rotate3d(0, 0, 1, 0deg);transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);transform-origin:center center;backface-visibility:hidden}.gids-expansion__level-h1{font-family:var(--gids-typography-heading-medium__font-family);font-size:var(--gids-typography-heading-medium__font-size);font-weight:var(--gids-typography-heading-medium__font-weight);letter-spacing:var(--gids-typography-heading-medium__letter-spacing);line-height:var(--gids-typography-heading-medium__line-height);text-transform:var(--gids-typography-heading-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-medium__font-variant-caps, inherit)}.gids-expansion__level-h2{font-family:var(--gids-typography-heading-small__font-family);font-size:var(--gids-typography-heading-small__font-size);font-weight:var(--gids-typography-heading-small__font-weight);letter-spacing:var(--gids-typography-heading-small__letter-spacing);line-height:var(--gids-typography-heading-small__line-height);text-transform:var(--gids-typography-heading-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-small__font-variant-caps, inherit)}.gids-expansion__level-h3{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)}.gids-expansion__body{position:absolute;top:100%;left:0;width:100%;z-index:10;transform:scaleY(0);transform-origin:top center;opacity:0;visibility:hidden;transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s;overflow:hidden}.gids-expansion--expanded{position:relative;display:block}.gids-expansion--expanded .gids-expansion__container gids-icon,.gids-expansion--expanded .gids-expansion__container .gids-icon,.gids-expansion--expanded .gids-expansion__container GidsIcon,.gids-expansion--expanded .gids-expansion__container svg{transform:rotate3d(0, 0, 1, -180deg)}.gids-expansion--expanded .gids-expansion__body{position:relative;top:auto;transform:scaleY(1);opacity:1;visibility:visible}.gids-expansion__content{min-height:0;padding:var(--gids-padding-vertical-edge-to-element-500) 0 var(--gids-padding-horizontal-edge-to-element-500)}.gids-expansion__disabled{color:var(--gids-color-text-disabled);cursor:not-allowed}.gids-expansion__disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}'}},[260,"gids-expansion",{expansionId:[1,"expansion-id"],label:[1],labelLevel:[1,"label-level"],expanded:[516],disabled:[516],onExpand:[16],hasContent:[32]},void 0,{disabled:[{handleDisabledChange:0}],expanded:[{handleExpandedChange:0}],labelLevel:[{handleLabelLevelChange:0}]}]);function vc(){typeof customElements<"u"&&["gids-expansion"].forEach((e=>{e==="gids-expansion"&&(customElements.get(e)||customElements.define(e,Da))}))}vc();const yc=Da,_c=ka,xc=bs;w.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(w.GidsFloatingElementType||(w.GidsFloatingElementType={}));let pi=(oe=class{constructor(t,i){this.el=t,this.config=i,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=i.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=Rs(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,i=[Gs(t)],s=this.config.lockToMainAxis??!1,a=this.config.constrainPlacements,r=a&&a.length>0?a.includes(this.config.placement)?this.config.placement:a[0]:this.config.placement,o=js(a&&a.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:a.filter((h=>h!==r)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),l=this.config.elementType===w.GidsFloatingElementType.POPOVER,d=Hs({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===w.GidsFloatingElementType.TOOLTIP||l&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&i.push(Ys({apply({elements:h,rects:c}){Object.assign(h.floating.style,{width:`${c.reference.width}px`})}})),r?.includes("-")?i.push(o,d):i.push(d,o),this.config.constrainToViewportHeight&&i.push(Ys({padding:t,apply:({availableHeight:h,elements:c})=>{const g=Array.from(c.floating.children).find((p=>p!==this.arrowEl));g instanceof HTMLElement&&Object.assign(g.style,{maxHeight:`${Math.max(0,h)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&i.push(qs({element:this.arrowEl,padding:t})),Ws(this.anchorElement,this.floatingElement,{placement:r,strategy:"fixed",middleware:i,platform:{...Ge,getOffsetParent:h=>Ge.getOffsetParent(h,Xs)}}).then((({x:h,y:c,middlewareData:g,placement:p})=>{if(l){const v=p.startsWith("left")||p.startsWith("right"),y=p.startsWith("top")||p.startsWith("bottom"),_=this.isAnchorInViewport(),b=!!y||(v?_:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=p,Object.assign(this.floatingElement.style,{left:`${h}px`,top:`${c}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const m=p.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[m],{arrowZIndex:f}=this.normalizeFloatingElementStacking();if(g.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:y,y:_}=g.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(m)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(m)?" 0":""}`,Object.assign(this.arrowEl.style,{left:y!==null?`${y}px`:"",top:_!==null?`${_}px`:"",right:"",bottom:"",[u]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${f}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),i=Number.parseInt(t,10),s=Number.isNaN(i)?-1:i-1,a=Number.isNaN(i)?s+1:i;return Number.isNaN(a)||(this.floatingElement.style.zIndex=`${a}`),Array.from(this.floatingElement.children).forEach((r=>{if(!(r instanceof HTMLElement)||r===this.arrowEl)return;const o=r.style.zIndex||(window.getComputedStyle?.(r).zIndex??""),l=Number.parseInt(o,10),d=window.getComputedStyle?.(r).position??"";(o===""||o==="auto"||Number.isNaN(l)||l<a)&&(r.style.zIndex=`${a}`,d!==""&&d!=="static"||(r.style.position="relative"))})),{contentZIndex:a,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),oe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=oe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),oe.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),i=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,a=t.height/2+2*this.offset;return t.bottom>=a&&t.top<=i-a&&t.right>=0&&t.left<=s}},oe.currentFloatingElements=new Map,oe);const za=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const i=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!i&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():i&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new pi(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:w.GidsFloatingElementType.FLYOUT_PANEL,constrainPlacements:["top","bottom"],constrainToViewportHeight:!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],i=$a(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const r=$a(a);t.push(...r)})),this.focusableElements=t.sort(((a,r)=>{const o=a.compareDocumentPosition(r),l=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:d?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const r=this._el.shadowRoot?.activeElement;r!==null&&(s=r)}const a=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&a||(e.preventDefault(),i&&i.focus()):s!==i&&a||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return n(ae,{key:"a230e6a4aad47d106c536c22e62e983847c61134"},n("slot",{key:"c32fcfd2e943f94f9e733022cfafbb17d48f0579",name:"anchor"}),n("div",{key:"0bcac3ab2c843fc1bd7137e72b6362fce1188cb9",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},n("div",{key:"33cfcf17f75c22f5185dced5c4f6a070c6d7455c"},n("slot",{key:"e30b5a128c4f3668553c3d0246d2cb400c42f8eb"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),Na=e=>{if(!(e instanceof E)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const i=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=i,s&&e.blur(),s}catch{return!1}},$a=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>Na(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];Na(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function Cc(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,za))}))}Cc();const wc=za,{getGidsHeaderNavigationItemClassNames:Sc}=so,Fa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.borderRadius="none",this.applyShadow=!1,this.appearance="default",this.selectionAppearance="default",this.selected=!1,this.size="sm",this.selectionType="single-deselection-allowed",this.menuItems=[],this.isSelected=!1,this.isMenuExpanded=!1,this.selectedMenuItems=[],this.onItemClick=t=>{if(this.hasMenu())this.isMenuExpanded=!this.isMenuExpanded;else{if(this.isSelected&&this.selectionType==="single-deselection-not-allowed")return;this.isSelected=!this.isSelected}if(this.onPressNavigationItem){const i=this?.selectedMenuItems?this.selectedMenuItems[0]:void 0;this.onPressNavigationItem({originalEvent:t,itemId:this.id,itemLabel:this?.label,itemSelected:this.isSelected,hasMenu:this.hasMenu(),menuExpanded:this.isMenuExpanded,menuItemId:i?.menuItemId??"",menuItemTitle:i?.menuItemTitle,menuItemValue:i?.menuItemValue,menuItemSectionIndex:i?.menuItemSectionIndex,menuItemIndex:i?.menuItemIndex,menuItemSelected:!!i?.menuItemId,menuId:this?.menuId,selectionType:this?.selectionType})}},this.onMenuItemClick=({event:t,selectedItem:i,sectionIndex:s,itemIndex:a})=>{const r=this.isMenuItemSelected(i.id);r&&this.selectionType==="single-deselection-not-allowed"||(r?(this.selectedMenuItems=[],this.isSelected=!1):(this.selectedMenuItems=[{menuItemTitle:i?.title,menuItemValue:i?.value,menuItemId:i.id,menuItemSectionIndex:s,menuItemIndex:a,menuItemSelected:!0,menuId:this?.menuId}],this.isSelected=!0),this.isMenuExpanded=!1,this.onMenuItemChange&&this.onMenuItemChange({originalEvent:t,itemId:this.id,itemLabel:this?.label,itemSelected:!r,menuItemTitle:i?.title,menuItemValue:i?.value,menuItemId:i.id,menuItemSectionIndex:s,menuItemIndex:a,menuItemSelected:!r,menuId:this?.menuId,selectionType:this?.selectionType}))},this.defaultSelectedMenuItems=t=>{if(!t)return void(this.selectedMenuItems=[]);const i=this?.menuItems??[];for(let s=0;s<i.length;s++){const a=i[s]?.data??[];for(let r=0;r<a.length;r++){const o=a[r];if(o?.id===t)return this.selectedMenuItems=[{menuItemTitle:o.title,menuItemValue:o.value,menuItemId:o.id,menuItemSectionIndex:s,menuItemIndex:r,menuItemSelected:!0,menuId:this.menuId}],void(this.isSelected=!0)}}this.selectedMenuItems=[]},this.hasMenu=()=>!!(this?.menuItems&&this.menuItems.length>0),this.isMenuItemSelected=t=>{const i=this?.selectedMenuItems??[];if(!i||i.length<=0)return!1;const s=i.findIndex((a=>a.menuItemId===t));return s!=null&&s!==-1},this.positionHeaderNavigationItemMenu=()=>{const t=this.hostElement?.querySelector(".gids-header-navigation-item__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),s=window.innerWidth,a=window.innerHeight;t.style.maxHeight="none";const r=t.getBoundingClientRect(),o=a-i.bottom-8,l=i.top-4,d=r.height>o&&l>o,h=d?l:o;t.style.maxHeight=r.height>h?`${h}px`:"none";const c=t.getBoundingClientRect();let g=i.left;g+c.width>s-4&&(g=s-c.width-4),g<4&&(g=4),t.style.left=g-i.left+"px",t.style.top=d?-c.height-4+"px":`${i.height+4}px`}}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}expansionChanged(e){this.expanded=e,this.isMenuExpanded=e}borderRadiusChanged(e){this.borderRadius=e}shadowChanged(e){this.applyShadow=e}labelChanged(e){this.label=e}sizeChanged(e){this.size=e}menuItemsChanged(e){this.menuItems=e}selectedChanged(e){this.isSelected=e}selectedMenuItemIdChanged(e){this.defaultSelectedMenuItems(e)}connectedCallback(){this.isSelected=this.selected,this.isMenuExpanded=this.expanded,this.defaultSelectedMenuItems(this.selectedMenuItemId)}componentDidRender(){this.isMenuExpanded&&this.hasMenu()&&requestAnimationFrame((()=>{this.positionHeaderNavigationItemMenu()}))}render(){const e=this?.isSelected??!1,t=this?.appearance??"default",i=this?.selectionAppearance??"default",s=this.label,a=this?.size??"sm",r=this.id,o=this.menuId,l=this?.menuItems??[],d=this?.isMenuExpanded??!1,h=this?.borderRadius??"none",c=this?.applyShadow??!1,g=this.hasMenu(),p=Sc({selected:e,appearance:t,selectionAppearance:i,size:a,expanded:d&&g,applyShadow:c,borderRadius:h});return n($,{key:"fe595c3ec2f1c2a756cc0d12a5191312d6c5dbdb",id:r,"header-nav-item-appearance":t,"header-nav-item-size":a,"header-nav-item-selection-appearance":i,"header-nav-item-selected":e?"true":"false",class:p,onClick:this.onItemClick,"header-nav-item-expanded":d},n("slot",{key:"4456f748ee740b0d35a47bd79ee95db4536a0cdf",name:"headerNavItemLeadingIcon"}),s&&s!==""?n("div",{class:"gids-header-navigation-item__label"},n("span",null,s)):void 0,g?n("div",{class:"gids-header-navigation-item__chevron"},n(P,{name:"chevron-down",size:a!=="xl"?a:"lg"})):void 0,g&&d?n("div",{class:"gids-header-navigation-item__dropdown-menu-container",id:o,role:"headerNavigationPickerbox",onClick:m=>m.stopPropagation()},n(_e,{type:"default"},l.map(((m,u)=>{const f=m?.data??[];return n(xe,{key:`${u+1}`,sectionLabel:m?.sectionLabel??""},f.map(((v,y)=>{const _=this.isMenuItemSelected(v.id);return n(Be,{key:`${y}`,id:v.id,title:v?.title,value:v?.value,disabled:v?.disabled,index:y,selected:_,onPressDropdownItem:b=>this.onMenuItemClick({event:b,selectedItem:{...v,id:v.id},sectionIndex:u,itemIndex:y})})})))})))):void 0)}get hostElement(){return this}static get watchers(){return{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],expanded:[{expansionChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],label:[{labelChanged:0}],size:[{sizeChanged:0}],menuItems:[{menuItemsChanged:0}],selected:[{selectedChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}}static get style(){return".gids-header-navigation-item{position:relative;margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--gids-gap-100);cursor:pointer;padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);background-color:var(--gids-color-background-neutral-default);color:var(--gids-color-text-default);--gidsIcon-color:var(--gids-color-icon-default)}.gids-header-navigation-item:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-header-navigation-item:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-header-navigation-item__label{display:flex;flex:1;text-align:center;align-items:center;justify-content:center}.gids-header-navigation-item--appearance-primary{background-color:var(--gids-color-background-brand-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-primary:hover{background-color:var(--gids-color-background-brand-bold-hovered)}.gids-header-navigation-item--appearance-primary:active{background-color:var(--gids-color-background-brand-bold-pressed)}.gids-header-navigation-item--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);color:var(--gids-color-text-default);--gidsIcon-color:var(--gids-color-icon-default)}.gids-header-navigation-item--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-header-navigation-item--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-header-navigation-item--appearance-positive{background-color:var(--gids-color-background-positive-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-positive:hover{background-color:var(--gids-color-background-positive-bold-hovered)}.gids-header-navigation-item--appearance-positive:active{background-color:var(--gids-color-background-positive-bold-pressed)}.gids-header-navigation-item--appearance-danger{background-color:var(--gids-color-background-danger-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-danger:hover{background-color:var(--gids-color-background-danger-bold-hovered)}.gids-header-navigation-item--appearance-danger:active{background-color:var(--gids-color-background-danger-bold-pressed)}.gids-header-navigation-item--appearance-information{background-color:var(--gids-color-background-information-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-information:hover{background-color:var(--gids-color-background-information-bold-hovered)}.gids-header-navigation-item--appearance-information:active{background-color:var(--gids-color-background-information-bold-pressed)}.gids-header-navigation-item--appearance-warning{background-color:var(--gids-color-background-warning-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-warning:hover{background-color:var(--gids-color-background-warning-bold-hovered)}.gids-header-navigation-item--appearance-warning:active{background-color:var(--gids-color-background-warning-bold-pressed)}.gids-header-navigation-item--selection-appearance-default{background-color:var(--gids-color-background-neutral-default);color:var(--gids-color-text-default);--gidsIcon-color:var(--gids-color-icon-default)}.gids-header-navigation-item--selection-appearance-default:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-header-navigation-item--selection-appearance-default:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-header-navigation-item--selection-appearance-primary{background-color:var(--gids-color-background-brand-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-primary:hover{background-color:var(--gids-color-background-brand-bold-hovered)}.gids-header-navigation-item--selection-appearance-primary:active{background-color:var(--gids-color-background-brand-bold-pressed)}.gids-header-navigation-item--selection-appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);color:var(--gids-color-text-subtlest);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-header-navigation-item--selection-appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-header-navigation-item--selection-appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-header-navigation-item--selection-appearance-positive{background-color:var(--gids-color-background-positive-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-positive:hover{background-color:var(--gids-color-background-positive-bold-hovered)}.gids-header-navigation-item--selection-appearance-positive:active{background-color:var(--gids-color-background-positive-bold-pressed)}.gids-header-navigation-item--selection-appearance-danger{background-color:var(--gids-color-background-danger-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-danger:hover{background-color:var(--gids-color-background-danger-bold-hovered)}.gids-header-navigation-item--selection-appearance-danger:active{background-color:var(--gids-color-background-danger-bold-pressed)}.gids-header-navigation-item--selection-appearance-information{background-color:var(--gids-color-background-information-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-information:hover{background-color:var(--gids-color-background-information-bold-hovered)}.gids-header-navigation-item--selection-appearance-information:active{background-color:var(--gids-color-background-information-bold-pressed)}.gids-header-navigation-item--selection-appearance-warning{background-color:var(--gids-color-background-warning-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-warning:hover{background-color:var(--gids-color-background-warning-bold-hovered)}.gids-header-navigation-item--selection-appearance-warning:active{background-color:var(--gids-color-background-warning-bold-pressed)}.gids-header-navigation-item--size-md{font-family:var(--gids-typography-label-large__font-family);font-size:var(--gids-typography-label-large__font-size);font-weight:var(--gids-typography-label-large__font-weight);letter-spacing:var(--gids-typography-label-large__letter-spacing);line-height:var(--gids-typography-label-large__line-height);text-transform:var(--gids-typography-label-large__text-transform, inherit);font-variant-caps:var(--gids-typography-label-large__font-variant-caps, inherit)}.gids-header-navigation-item--size-lg{font-family:var(--gids-typography-heading-small__font-family);font-size:var(--gids-typography-heading-small__font-size);font-weight:var(--gids-typography-heading-small__font-weight);letter-spacing:var(--gids-typography-heading-small__letter-spacing);line-height:var(--gids-typography-heading-small__line-height);text-transform:var(--gids-typography-heading-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-small__font-variant-caps, inherit)}.gids-header-navigation-item--size-xl{font-family:var(--gids-typography-heading-medium__font-family);font-size:var(--gids-typography-heading-medium__font-size);font-weight:var(--gids-typography-heading-medium__font-weight);letter-spacing:var(--gids-typography-heading-medium__letter-spacing);line-height:var(--gids-typography-heading-medium__line-height);text-transform:var(--gids-typography-heading-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-medium__font-variant-caps, inherit)}.gids-header-navigation-item--shadow{box-shadow:var(--gids-elevation-shadow-raised)}.gids-header-navigation-item--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-header-navigation-item--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-header-navigation-item--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-header-navigation-item--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-header-navigation-item__dropdown-menu-container{position:absolute;inset-inline: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-header-navigation-item__chevron{display:flex;align-items:center;justify-content:center;transform:rotate(0deg);transition:transform 200ms ease-in-out}.gids-header-navigation-item__dropdown-menu-container>*{flex-shrink:0}.gids-header-navigation-item--expanded .gids-header-navigation-item__dropdown-menu-container{display:flex}.gids-header-navigation-item--expanded .gids-header-navigation-item__chevron{transform:rotate(180deg)}"}},[260,"gids-header-navigation-item",{id:[1],menuId:[1,"menu-id"],expanded:[4],borderRadius:[1,"border-radius"],applyShadow:[4,"apply-shadow"],appearance:[1],selectionAppearance:[1,"selection-appearance"],selected:[4],selectedMenuItemId:[1,"selected-menu-item-id"],label:[1],size:[1],selectionType:[1,"selection-type"],menuItems:[16],onPressNavigationItem:[16],onMenuItemChange:[16],isSelected:[32],isMenuExpanded:[32],selectedMenuItems:[32]},void 0,{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],expanded:[{expansionChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],label:[{labelChanged:0}],size:[{sizeChanged:0}],menuItems:[{menuItemsChanged:0}],selected:[{selectedChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}]);function Oa(){typeof customElements<"u"&&["gids-header-navigation-item"].forEach((e=>{e==="gids-header-navigation-item"&&(customElements.get(e)||customElements.define(e,Fa))}))}Oa();const Ic=Fa,{getGidsHeaderNavigationClassNames:kc}=ao,Ba=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="gap",this.selectionType="single-deselection-not-allowed",this.selectedItemIdsState=[],this.selectedMenuItemIdsState=[],this.expandedMenuIdsState=[],this.onNavigationItemPress=({event:t,itemIndex:i})=>{this.handleSelectionsAndExpansions(t),this.onHeaderNavigationItemChange&&this.onHeaderNavigationItemChange({...t,navMenuItemIndex:i})},this.onNavigationMenuItemChange=({event:t,itemIndex:i})=>{t?.menuItemSelected?(this.selectedItemIdsState=[t.itemId],this.selectedMenuItemIdsState=[t.menuItemId]):(this.selectedItemIdsState=[],this.selectedMenuItemIdsState=[]),this.onHeaderNavigationItemChange&&this.onHeaderNavigationItemChange({...t,navMenuItemIndex:i})},this.handleDocumentClick=t=>{!this.expandedMenuIdsState||this.expandedMenuIdsState.length<=0||t.composedPath().includes(this.hostElement)||(this.expandedMenuIdsState=[])},this.handleSelectionsAndExpansions=t=>{this.expandedMenuIdsState=t?.hasMenu&&t?.menuExpanded&&t?.menuId&&t.menuId!==""?[t.menuId]:[],t?.hasMenu||(t?.itemSelected?(this.selectedItemIdsState=[t.itemId],this.selectedMenuItemIdsState=[]):(this.selectedItemIdsState=[],this.selectedMenuItemIdsState=[]))},this.isThisMenuExpanded=t=>{const i=this?.expandedMenuIdsState??[];if(!t||t===""||!i||i.length<=0)return!1;const s=i.findIndex((a=>a===t));return s!=null&&s!==-1},this.isThisNavigationItemSelected=t=>{const i=this?.selectedItemIdsState??[];if(!t||t===""||!i||i.length<=0)return!1;const s=i.findIndex((a=>a===t));return s!=null&&s!==-1},this.getSelectedMenuItemId=()=>{const t=this?.selectedMenuItemIdsState??[];if(t.length>0)return t[0]},this.initializeDefaultSelection=()=>{const t=this?.navMenus??[];if(!this.defaultNavItemId||!t||t.length<=0)return;const i=t.find((l=>l?.id===this.defaultNavItemId));if(!i)return;if(this.selectedItemIdsState=[i.id],this.selectedMenuItemIdsState=[],!this.defaultNavMenuId)return void this.onHeaderNavigationItemChange?.({itemId:i.id,itemSelected:!0,hasMenu:!!i.menuId,menuId:i.menuId,menuExpanded:!1});if(i.menuId!==this.defaultNavMenuId)return;if(!this.defaultNavMenuItemId)return void this.onHeaderNavigationItemChange?.({itemId:i.id,itemSelected:!0,hasMenu:!0,menuId:i.menuId,menuExpanded:!1});const s=i?.menuItems??[];if(s.length<=0)return;let a,r=-1,o=-1;s.some(((l,d)=>{const h=(l?.data??[]).findIndex((c=>c?.id===this.defaultNavMenuItemId));return h!==-1&&(a=l.data[h],r=d,o=h,!0)})),a?(this.selectedItemIdsState=[i.id],this.selectedMenuItemIdsState=[a.id],this.onHeaderNavigationItemChange?.({itemId:i.id,itemLabel:i.label,itemSelected:!0,hasMenu:!0,menuId:i.menuId,menuExpanded:!1,menuItemTitle:a.title,menuItemValue:a.value,menuItemId:a.id,menuItemSectionIndex:r,menuItemIndex:o,menuItemSelected:!0,selectionType:this.selectionType})):this.onHeaderNavigationItemChange?.({itemId:i.id,itemSelected:!0,hasMenu:!0,menuId:i.menuId,menuExpanded:!1})}}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}borderRadiusChanged(e){this.borderRadius=e}shadowChanged(e){this.applyShadow=e}sizeChanged(e){this.size=e}separatorsChanged(e){this.applySeparators=e}modeChanged(e){this.mode=e}defaultNavItemIdChanged(){this.initializeDefaultSelection()}defaultNavMenuIdChanged(){this.initializeDefaultSelection()}defaultNavMenuItemIdChanged(){this.initializeDefaultSelection()}navMenusChanged(e){this.navMenus=e,this.initializeDefaultSelection()}typeChanged(e){this.type=e}connectedCallback(){}componentWillLoad(){this.initializeDefaultSelection()}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.handleDocumentClick)}render(){const e=this?.appearance??"default",t=this?.selectionAppearance??"default",i=this?.applyShadow??!1,s=this?.applySeparators??!1,a=this?.borderRadius??"none",r=this?.mode??"wrap",o=this?.type??"gap",l=this?.size??"md",d=this?.navMenus??[],h=this?.selectionType??"single-deselection-not-allowed",c=kc({mode:r,type:o});return n($,{key:"277cd1197cd4e7b442e9c65ba5430effe4f34afb",class:c},d.map(((g,p)=>n("div",{key:""+(p+1),class:mt("gids-header-navigation__item-container-gap",{"gids-header-navigation__item-container-standard":o==="standard"})},n("gids-header-navigation-item",{...g,id:g.id,menuId:g?.menuId,menuItems:g?.menuItems??[],label:g?.label,size:l,appearance:e,selectionAppearance:t,applyShadow:i,borderRadius:a,expanded:this.isThisMenuExpanded(g?.menuId),selected:this.isThisNavigationItemSelected(g?.id),selectedMenuItemId:this.getSelectedMenuItemId(),selectionType:h,onPressNavigationItem:m=>this.onNavigationItemPress({event:m,itemIndex:p}),onMenuItemChange:m=>this.onNavigationMenuItemChange({event:m,itemIndex:p})},g?.leadingIconName&&g.leadingIconName!=="(none)"?n(P,{slot:"headerNavItemLeadingIcon",name:g.leadingIconName,size:l!=="xl"?l:"lg",alt:"",appearance:"regular"}):void 0),s&&p<d.length-1?n(Oe,{orientation:"vertical"}):void 0))))}get hostElement(){return this}static get watchers(){return{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],size:[{sizeChanged:0}],applySeparators:[{separatorsChanged:0}],mode:[{modeChanged:0}],defaultNavItemId:[{defaultNavItemIdChanged:0}],defaultNavMenuId:[{defaultNavMenuIdChanged:0}],defaultNavMenuItemId:[{defaultNavMenuItemIdChanged:0}],navMenus:[{navMenusChanged:0}],type:[{typeChanged:0}]}}static get style(){return".gids-header-navigation{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-gap{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-standard{gap:var(--gids-gap-0)}.gids-header-navigation--type-standard{gap:var(--gids-gap-0)}"}},[0,"gids-header-navigation",{appearance:[1],selectionAppearance:[1,"selection-appearance"],type:[1],selectionType:[1,"selection-type"],defaultNavItemId:[1,"default-nav-item-id"],defaultNavMenuId:[1,"default-nav-menu-id"],defaultNavMenuItemId:[1,"default-nav-menu-item-id"],applyShadow:[4,"apply-shadow"],applySeparators:[4,"apply-separators"],borderRadius:[1,"border-radius"],mode:[1],size:[1],navMenus:[16],onHeaderNavigationItemChange:[16],selectedItemIdsState:[32],selectedMenuItemIdsState:[32],expandedMenuIdsState:[32]},void 0,{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],size:[{sizeChanged:0}],applySeparators:[{separatorsChanged:0}],mode:[{modeChanged:0}],defaultNavItemId:[{defaultNavItemIdChanged:0}],defaultNavMenuId:[{defaultNavMenuIdChanged:0}],defaultNavMenuItemId:[{defaultNavMenuItemIdChanged:0}],navMenus:[{navMenusChanged:0}],type:[{typeChanged:0}]}]);function Ec(){typeof customElements<"u"&&["gids-header-navigation","gids-header-navigation-item"].forEach((e=>{switch(e){case"gids-header-navigation":customElements.get(e)||customElements.define(e,Ba);break;case"gids-header-navigation-item":customElements.get(e)||Oa()}}))}Ec();const Tc=Ba,Lc=oa,Pc=wa,Mc=pa,Ac=ma,{getGidsTableCellClassNames:Dc,getGidsTableCellLabelTypographyClass:zc}=Do,{isTableCellActionButtonVisible:Nc,getTableCellBtnIcon:$c}=cr,Va=({id:e,uniqueKey:t,extraData:i,label:s,cellDataType:a="text",displayTags:r=[],width:o="full",appearance:l="none",borderSides:d=[],borderRadiusSides:h=[],textAlignment:c="center",labelTypography:g="label-medium",isHeaderCell:p=!1,cellPrimaryActionButtons:m=[],cellSecondaryActionButtons:u=[],onClickCellActionBtn:f,class:v,...y})=>{function _({cellActionBtn:x,neededIconType:C="leading"}){const I=$c({cellActionButton:x,neededIconType:C});return I?.cellIconName&&""+I.cellIconName!=""?n(P,{name:I.cellIconName,size:I.cellIconSize,appearance:I.cellIconAppearance}):void 0}function b(x){const C=x==="primary"?m:u;if(C&&!(C.length<=0))return n("div",{class:x==="primary"?"gids-table-cell__primary-action-btn-container":"gids-table-cell__secondary-action-btn-container"},C.map(((I,k)=>{const L=x==="primary"?C.length-k-1:k,M=C[L];return Nc(M)?(function({cellActionBtn:A,actionBtnIndex:F,actionBtnPosition:z}){return n(R,{as:"button",appearance:A?.appearance??"default",size:A?.size??"md",disabled:A?.disabled,destructive:A?.destructive,positive:A?.positive,loading:A?.loading,width:A?.width??"intrinsic",type:"button",leadingIcon:_({cellActionBtn:A,neededIconType:"leading"}),trailingIcon:_({cellActionBtn:A,neededIconType:"trailing"}),onClick:O=>(function({event:B,actionBtnIndex:V,actionBtnPosition:G}){f&&f({originalEvent:B,details:{appearance:l,cellDataType:a,displayTags:r,label:s,id:e,extraData:i,isHeaderCell:p,uniqueKey:t,actionBtnNumber:"action-btn-"+(V+1),actionBtnIndex:V,actionBtnPosition:G??"secondary"}})})({event:O,actionBtnIndex:F,actionBtnPosition:z})},A?.buttonLabel??"")})({cellActionBtn:M,actionBtnIndex:L,actionBtnPosition:x}):void 0})))}return n(p?"th":"td",{...y,class:Dc({borderSides:d,borderRadiusSides:h,appearance:l,textAlignment:c,width:o},v),id:e,"unique-key":t,"extra-data":JSON.stringify(i)},b("primary"),a==="text"&&s&&s!==""?n("span",{class:""+zc(g)},s):void 0,a==="display-tag"&&r&&r.length>0?n("div",{class:"gids-table-cell__display-tags-container"},r.map((x=>n(Ta,{label:x?.label??"",appearance:x?.displayTagAppearance??"subtle",size:x?.displayTagSize??"xs",icon:x?.displayTagIcon?n(P,{name:x.displayTagIcon,size:x?.displayTagSize??"xs",appearance:x?.displayTagIconAppearance??"regular"}):void 0,color:x?.displayTagColor??"accent-5"})))):void 0,b("secondary"))},{getGidsBasicTableRowClassNames:Fc}=xr,Ra=({width:e="full",layout:t="horizontal",rows:i=[],isHeaderRow:s=!1,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickRowActionBtn:o,class:l,...d})=>{const h=Fc({width:e},l);function c({event:g,cellIndex:p}){o&&o({...g,details:{...g.details,cellIndex:p}})}return t==="vertical"?n(ae,null,i.map(((g,p)=>n("tr",{...d,key:"row-v-"+(p+1),class:h},n(Va,{...g,width:e,isHeaderCell:s,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickCellActionBtn:m=>c({event:m,cellIndex:p})}))))):n("tr",{...d,class:h},i.map(((g,p)=>n(Va,{key:"row-h-"+(p+1),...g,width:e,isHeaderCell:s,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickCellActionBtn:m=>c({event:m,cellIndex:p})}))))},{getGidsBasicTableHeaderClassNames:Oc}=_r,Bc=({width:e="full",headerCells:t=[],appearance:i="none",labelTypography:s="label-medium",textAlignment:a="center",layout:r="horizontal",cellPrimaryActionButtons:o,cellSecondaryActionButtons:l,onClickHeaderActionBtn:d,class:h,...c})=>{const g=Oc({width:e},h);return n("thead",{...c,class:g},n(Ra,{rows:t.map((p=>({appearance:i,labelTypography:s,textAlignment:a,...p}))),width:e,layout:r,isHeaderRow:!0,cellPrimaryActionButtons:o,cellSecondaryActionButtons:l,onClickRowActionBtn:d}))},{getGidsMdTableClassNames:Vc}=ho,Ga=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.isTopHeaderVisible=!1,this.isSideHeaderVisible=!1,this.width="full",this.topHeaderAppearance="none",this.sideHeaderAppearance="none",this.rowAppearance="none",this.tableBorders="none",this.tableBorderRadius=[],this.topHeaderLabelTypography="eyebrow-small",this.sideHeaderLabelTypography="label-small",this.rowLabelTypography="label-small",this.topHeaderTextAlignment="left",this.sideHeaderTextAlignment="left",this.rowTextAlignment="left",this.topHeaderCells=[],this.tableBody=[],this.constructedTableBodyData=[]}handleTopHeaderVisibilityChange(e){this.isTopHeaderVisible=e}handleSideHeaderVisibilityChange(e){this.isSideHeaderVisible=e}handleTableBordersChange(e){this.tableBorders=e}handleTableBorderRadiusChange(e){this.tableBorderRadius=e}handleTopHeaderCellsChange(e){this.topHeaderCells=e}handleTableBodyChange(e){this.tableBody=e,this.makeTableBodyData()}componentDidLoad(){this.makeTableBodyData()}makeTableBodyData(){const e=this.isSideHeaderVisible,t=this?.tableBody??[],i=[];t.map(((s,a)=>{let r=[];const o=s.heading,l=s.id,d=s.uniqueKey,h=s.extraData,c=s?.items??[];if(e&&o&&o!==""){const g=this.getSideHeaderBorderSides({_tableBodyData:t,_itemsArr:c,indexI:a});r=[{id:l,uniqueKey:d,extraData:h,label:o,appearance:this.sideHeaderAppearance,labelTypography:this.sideHeaderLabelTypography,textAlignment:this.sideHeaderTextAlignment,isHeader:!0,borderSides:g}]}c.map(((g,p)=>{const m=this.getRowBorderSides({_tableBodyData:t,_itemsArr:c,indexI:a,indexJ:p});r.push({...g,appearance:this.rowAppearance,labelTypography:this.rowLabelTypography,textAlignment:this.rowTextAlignment,isHeader:!1,borderSides:m})})),i.push({heading:o,id:l,uniqueKey:d,extraData:h,items:r})})),this.constructedTableBodyData=i}getRowBorderSides({_tableBodyData:e,_itemsArr:t,indexI:i,indexJ:s}){const a=this.applyTableInternalBorders(),r=this.applyTableAllBorders();let o=[];return(a||r)&&(s<t.length&&i+1<e.length&&(o=["bottom"]),s+1<t.length&&(o=[...o,"right"])),o}getSideHeaderBorderSides({_tableBodyData:e,_itemsArr:t,indexI:i}){const s=this.applyTableInternalBorders(),a=this.applyTableAllBorders();let r=[];return(s||a)&&(i+1<e.length&&(r=["bottom"]),t.length>0&&(r=[...r,"right"])),r}getTableClasses(){const e=this.width==="full"?"gids-md-table__main-table gids-md-table__main-table-width-full":"gids-md-table__main-table gids-md-table__main-table-width-intrinsic";let t=e;this.applyTableOuterBorders()&&(t=e+" gids-md-table__outer-borders");const i=this.addBorderRadiusDirectlyToTable();return i&&i!==""?`${t} ${i}`:""+t}addBorderRadiusDirectlyToTable(){let e="";const t=this?.tableBorderRadius??[];return t.includes("top-left")&&(e="gids-md-table__radius-top-left"),t.includes("bottom-left")&&(e+=" gids-md-table__radius-bottom-left"),t.includes("top-right")&&(e+=" gids-md-table__radius-top-right"),t.includes("bottom-right")&&(e+=" gids-md-table__radius-bottom-right"),e}getTopHeaderCells(){const e=this.isSideHeaderVisible,t=this?.topHeaderCells??[];let i=[...t];e===!1&&t.length>0?i.splice(0,1):i=[...t];const s=this.applyTableInternalBorders(),a=this.applyTableAllBorders(),r=this.applyTableTopHeaderBorders(),o=[];return i.map(((l,d)=>{let h=[];(s||a||r)&&(h=["bottom"],d+1<i.length&&(h=[...h,"right"])),o.push({...l,borderSides:h})})),o}applyTableOuterBorders(){const e=this.tableBorders;return e==="all"||e==="outer-sides"}applyTableInternalBorders(){return this.tableBorders==="internal"}applyTableAllBorders(){return this.tableBorders==="all"}applyTableTopHeaderBorders(){return this.tableBorders==="top-header-only"}render(){const e=Vc({width:this.width}),t=this.isTopHeaderVisible,i=this.getTopHeaderCells(),s=this?.constructedTableBodyData??[];return n($,{key:"149503cf732a979d70841de56fb5a48aefc6dd1d",class:e},n("table",{key:"4ec02288773274ed0856493709f09637d999b94e",class:this.getTableClasses()},t?n(Bc,{appearance:this.topHeaderAppearance,labelTypography:this.topHeaderLabelTypography,textAlignment:this.topHeaderTextAlignment,headerCells:i,width:this.width}):void 0,n("tbody",{key:"e4d16bb9f0ae934c1551f5c866fb353bf74f8ac6"},s.length>0?s.map((a=>n(Ra,{layout:"horizontal",rows:a?.items??[],width:this.width}))):void 0)))}get hostElement(){return this}static get watchers(){return{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}}static get style(){return".gids-md-table{display:flex;flex-direction:column;width:100%}.gids-md-table__main-table{border-collapse:separate;border-spacing:0;overflow:hidden;table-layout:fixed}.gids-md-table__main-table-width-full{width:100%}.gids-md-table__main-table-width-intrinsic{width:max-content}.gids-md-table--width-intrinsic{width:max-content}.gids-md-table__outer-borders{border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-md-table__radius-top-left{border-top-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-left{border-bottom-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-top-right{border-top-right-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-right{border-bottom-right-radius:var(--gids-border-radius-md)}"}},[0,"gids-md-table",{isTopHeaderVisible:[4,"is-top-header-visible"],isSideHeaderVisible:[4,"is-side-header-visible"],width:[1],topHeaderAppearance:[1,"top-header-appearance"],sideHeaderAppearance:[1,"side-header-appearance"],rowAppearance:[1,"row-appearance"],tableBorders:[1,"table-borders"],tableBorderRadius:[16],topHeaderLabelTypography:[1,"top-header-label-typography"],sideHeaderLabelTypography:[1,"side-header-label-typography"],rowLabelTypography:[1,"row-label-typography"],topHeaderTextAlignment:[1,"top-header-text-alignment"],sideHeaderTextAlignment:[1,"side-header-text-alignment"],rowTextAlignment:[1,"row-text-alignment"],topHeaderCells:[16],tableBody:[16],constructedTableBodyData:[32]},void 0,{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}]);function Rc(){typeof customElements<"u"&&["gids-md-table"].forEach((e=>{e==="gids-md-table"&&(customElements.get(e)||customElements.define(e,Ga))}))}Rc();const Gc=Ga,ui=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ha=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(i=>{const s=(()=>{const a=document.querySelector("gids-overlay-provider");if(!a||!a.shadowRoot)return 1;const r=a.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),o=r[r.length-1];if(!o)return 1;const l=o.offsetHeight,d=getComputedStyle(o).lineHeight,h=d.endsWith("px")?parseFloat(d):0;return Math.ceil(h?l/h:1)})();return s===2?i==="snackbar"?5e3:8e3:s>=3?i==="snackbar"?7e3:1e4:i==="snackbar"?3e3:6e3})(e),ja=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=ui(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function Hc(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,ja))}))}Hc();const jc=ja,{showGidsOverflowContainerBottomShadow:Ya,showGidsOverflowContainerTopShadow:Yc}=er,qa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),Ya(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(Yc(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),Ya(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return n("div",{key:"a4664a98e3e473eb4067a1d25ab9440ca3609253",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},n("slot",{key:"df5ada977be1fef755d901097519fa12de591bbe"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function qc(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,qa))}))}qc();const Wc=qa,{getGidsSnackbarContainerClassNames:Uc,getSnackbarContainerIconNames:Xc}=To,Kc=({appearance:e="default",children:t,button:i,class:s,...a})=>{const r=Xc(e);return n("div",{...a,class:Uc({appearance:e},s)},n("div",{class:"gids-snackbar-container__content"},e!=="default"&&r!=null?n(P,{name:r,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?n("p",null,t):t),i)},{getGidsNotificationContainerClassNames:Qc,getNotificationContainerIconNames:Zc}=mo,Jc=({notificationTitle:e,children:t,button:i,appearance:s="default",pronunciation:a="standard",onCloseNotificationClick:r,class:o,...l})=>{const d=Zc(s);return n("div",{class:Qc({appearance:s},o),...l},s!=="default"&&d?n("div",{class:"gids-notification-container__leading-icon-wrapper"},n(P,{size:"md",name:d,alt:"",appearance:"filled"})):null,n("div",{class:"gids-notification-container__content-wrapper"},n("div",{class:"gids-notification-container__top-content"},n("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?n("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?n("p",null,t):t:null),a==="standard"?n("div",{class:"gids-notification-container__cross-btn-wrapper"},n(R,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:n(P,{name:"cross",size:"md",appearance:"regular"}),onClick:r})):null),i?n("div",{class:"gids-notification-container__bottom-content"},i):null))},{getComponentClasses:eg,getComponentStackClasses:tg}=fo,Wa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,i)=>{const{id:s,message:a,appearance:r,buttonLabel:o,onButtonClick:l}=t;return n(Kc,{key:s,class:i,children:a,appearance:r,button:o!=null&&o!==""?n(R,{appearance:"subtle",onClick:l},o):void 0})},this._renderNotification=(t,i)=>{const{id:s,notificationTitle:a,message:r,pronunciation:o,appearance:l,buttonLabel:d,onButtonClick:h,timerInMs:c}=t;return n(Jc,{key:s,class:i,notificationTitle:a,children:r,pronunciation:o,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,c||0,!0),button:d!=null&&d!==""?n(R,{appearance:"default",size:"sm",onClick:h},d):void 0})},this._renderComponent=t=>{const{componentName:i,position:s="bottom-center",id:a}=t,r=eg({position:s,id:a,exitingComponents:this._exitingComponents});return i==null||i==="snackbar"?this._renderSnackbar(t,r):i==="notification"?this._renderNotification(t,r):null}}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=ui(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const i=setTimeout((()=>(clearTimeout(i),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:i,buttonLabel:s,onButtonClick:a,position:r,componentName:o,...l}=e,d={id:""+(Date.now()+Math.random()),message:i,appearance:t,buttonLabel:s,onButtonClick:a,position:r,componentName:o,...l};this._componentQueue=[...this._componentQueue,d],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:i,pronunciation:s,message:a,buttonLabel:r,onButtonClick:o,position:l,componentName:d,...h}=e,c={id:""+(Date.now()+Math.random()),notificationTitle:i,message:a,pronunciation:s,appearance:t,buttonLabel:r,onButtonClick:o,position:l,componentName:d,...h};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,i){return i||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((s=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((a=>a.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((a=>a!==e.id)),this._allowedComponentQueue=[],s()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((i=>requestAnimationFrame((()=>i()))));const t=Ha({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=Ha({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return n(ae,{key:"9b08b3e4542dd26ea2f7097b71f65205f75ff35b"},n("slot",{key:"6ee78e50172ae07b8f0370ee6bc0438ae5275d8d"}),this._isRoot()?n("div",{class:tg({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function ig(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,Wa))}))}ig();const sg=Wa,{getGidsDismissButtonClassNames:ag}=Vr,Ua=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:a,label:r,...o})=>n("button",{class:ag({appearance:e,size:t},s),onClick:a,disabled:i,"aria-label":r,...o},n(P,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:ng}=Mo,{getStrengthMeterScore:rg,getColorModifierByScore:og}=ir,lg=({text:e,textMinLength:t,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:s})=>{const a=(r,o,l)=>n("div",{key:r,class:["gids-strength-meter__strength-"+r,l?"is-active":"",l?o:""].filter(Boolean).join(" ")});return i.length>0?n("div",{class:ng(s)},(()=>{const r=i.length,o=rg({text:e,textMinLength:t,meterRules:i}),l=og({textScore:o,maxScore:r});return Array.from({length:r},((d,h)=>{const c=h+1,g=c<=o;return i[c]==="include-min-length"?Fe({requirementRule:"include-min-length",textMinLength:t})?a(c,l,g):null:a(c,l,g)}))})()):null},{getGidsRequirementsMeterLabelClassNames:dg}=So,{getRequirementsMeterLabelLeadingIcon:cg}=nr,gg=e=>{const{label:t,status:i="default",leadingIconVisible:s=!0,class:a}=e,r=cg(i);return n("div",{class:dg({status:i},a)},s&&i&&r?n(P,{name:r,size:"sm",appearance:"filled"}):null,t&&t!==""?n("span",null,t):null)},{checkRequirementRuleSatisfied:hg}=ar,{getGidsRequirementsMeterClassNames:pg}=Io,ug=({requirements:e=[],text:t,textMinLength:i,class:s})=>{const a=(r,o)=>n(gg,{status:o?"success":"error",label:r.requirementText});return n("div",{class:pg(s)},e.map((r=>{if(r?.requirementText!=null&&r?.requirementRule!=null){const o=hg({rule:r.requirementRule,textMinLength:i,text:t});return r.requirementRule==="include-min-length"?Fe({requirementRule:r.requirementRule,textMinLength:i})===!0?a(r,o):null:a(r,o)}return null})))},{inputToGidsFieldStatusForPassword:mg}=vo,Xa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=De(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=De(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?Nt(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Hi(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=$t(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=$t(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0,a=this.showRevealPasswordButton,r={...t},o=r?.placeholder!==void 0&&r.placeholder!==null&&r.placeholder!=""?r.placeholder:"Enter password",l=this.isPasswordRevealed,d=this.meterRules,h=this.textMinLength!==void 0?this.textMinLength:8;return n(ae,{key:"33d42d67ea997bb2211c70f79f0f0c68b4d5aa0b"},n("gids-field",{key:"0516b66d60f440703d05611b811724ed83b0615e",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:mg(this.status)},n(gi,{key:"b2d0edc9e74776be766c37ea423f5d810de39360",slot:"label",disabled:this.disabled,info:n("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),n("gids-input",{key:"d98ecca02fcc0e415505de1c3da64bd1fbbef7cc",ref:c=>this.#e=c,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...r,placeholder:o,type:l?"text":"password",id:i,maxLength:this.maxLength}},n("slot",{key:"911415321782269e1a2963a0d8e54475fd12290d",name:"leadingIcon"}),n("slot",{key:"3405d4af56614f95da92da66a82922a55c249c97",name:"leadingAccessory"}),n("div",{key:"0456836067f779a41359ccf41e865fadefd1b6ae",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},s&&n(Ua,{key:"a656b56bd471a945ce3484047d03392ec8907920",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&n(R,{key:"408e89f1ddec04984b9f5bb915da9d68b0076eb4",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),n("div",{key:"bf780a37fd0ca6a4ca773ad635ad7a4ce1505633",class:"gids-password-field__meters-container"},n(lg,{key:"c0402c0aed753fad61628defdd15cdba196435ee",meterRules:d,text:this.value,textMinLength:h}),n(ug,{key:"269763f5c9f138c0de85e36357fd985064705a8f",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:h})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function fg(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Xa);break;case"gids-field":customElements.get(e)||bt();break;case"gids-input":customElements.get(e)||je()}}))}fg();const bg=Xa,vg=ba,Ka=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const i=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!i&&this.floatingElementManager.isVisible()?this.onPopoverShow():i&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new pi(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:w.GidsFloatingElementType.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],i=Za(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const r=Za(a);t.push(...r)})),this.focusableElements=t.sort(((a,r)=>{const o=a.compareDocumentPosition(r),l=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:d?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const r=this._el.shadowRoot?.activeElement;r!==null&&(s=r)}const a=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&a||(e.preventDefault(),i&&i.focus()):s!==i&&a||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return n(ae,{key:"73497d9ef4f14eebabf001242caef76381b5991d"},n("slot",{key:"7b765462348d7a0c4340bdefd665d5b06149f404",name:"anchor"}),n("div",{key:"c08d46d227c0a7427d6e32f7999cfe0bc4ef7761",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},n("span",{key:"f7d42809d784ac6a83ccf02fc0d3d206429cdd8c",id:"arrow"}),n("div",{key:"869b33ab701c0fe3bd1e9e98e1174366d78a9807"},n("slot",{key:"9c3e5e4d37cc1da657984f1807e8f000011f8161"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),Qa=e=>{if(!(e instanceof E)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const i=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=i,s&&e.blur(),s}catch{return!1}},Za=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>Qa(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];Qa(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function yg(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,Ka))}))}yg();const _g=Ka,{getDisplayContent:Ja,shouldIncludeA11yText:xg}=Kn,{getGidsBadgeClassNames:Cg}=vr,mi=({appearance:e,type:t,count:i,accessibleText:s,outline:a,class:r,...o})=>{const l=xg(t,i,st(s));return n("span",{class:Cg({appearance:e,type:t,outline:a},r),...o},l&&n("span",{class:"gids-visually-hidden"},st(s)?s:i),t==="notification"?l?n("span",{"aria-hidden":"true"},Ja(i,s)):Ja(i,s):null)},{shouldTextBeHiddenFromAt:wg}=Ui,{getGidsAvatarClassNames:Sg}=br,en=({appearance:e,color:t,size:i,badge:s,text:a,imageSrc:r,alt:o,iconTitleId:l,class:d,...h})=>{const c=wg({text:a,alt:o});return n("span",{class:Sg({color:t,size:i},d),...h},e==="image"?n("img",{src:r,alt:o??a??"",width:"100",height:"100"}):e==="icon"?n(P,{name:"user",alt:o??a,titleId:l}):n("span",{role:c?void 0:"img","aria-hidden":c?"true":void 0,"aria-label":c?void 0:o??a},a),s)},{getGidsProfileMenuHeaderClassNames:Ig}=_o,{getProfileHeaderMenuAvatarText:kg}=es,tn=T(class extends E{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??kg({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,a=this?.avatarBadgeVisible??!1,r=this?.avatarProps,o=r?.badgeProps,l=Ig({headerItemsPosition:e}),d=r?.size??"xl";return n($,{key:"f16b9a25f3fb84610d47d52921c83cede9320789",class:l},s?n(en,{onClick:this.onAvatarItemPress,appearance:r?.appearance??"text",color:r?.color??"brand",size:d,text:this.getAvatarText(),imageSrc:r?.imageSrc??"",alt:r?.alt??"alt-img",badge:a?n(mi,{appearance:o?.appearance??"information",type:o?.type,count:o?.count,outline:o?.outline}):void 0}):void 0,n("div",{key:"60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0",class:mt("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},n("span",{key:"8ef50edf88e704431eb9e5cc32f5211767197ab1",onClick:this.onHeaderItemTitlePress},t),n("p",{key:"a3cf11a026b44d972f4d66626363d7a5430ea5cc",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 fi(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,tn))}))}fi();const Eg=tn,{getGidsProfileMenuClassNames:Tg}=xo,sn=T(class extends E{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:a})=>{const r={...a,sectionIndex:i,itemIndex:s};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(r)&&this.onProfileMenuItemPress({originalEvent:t,id:a.id,sectionIndex:i,itemIndex:s,leadingLabel:a?.leadingLabel,leadingSupport:a?.leadingSupport,trailingLabel:a?.trailingLabel,trailingSupport:a?.trailingSupport}),this.profileMenuItemSelection(r)},this.defaultSelectedProfileMenuItem=()=>{const t=this?.profileMenuItems??[],i=this?.selectedProfileMenuItemId??void 0;t.length>0&&i&&t.map(((s,a)=>{const r=s?.items??[],o=r.findIndex((l=>l?.id===i));if(o!=null&&o!==-1){const l=r[o];l&&(this.selectedProfileMenuItem={...l,id:l.id,sectionIndex:a,itemIndex: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}selectedProfileMenuItemIdChanged(e){this.selectedProfileMenuItemId=e}profileMenuItemsChanged(e){this.profileMenuItems=e,this.defaultSelectedProfileMenuItem()}connectedCallback(){}componentDidLoad(){this.defaultSelectedProfileMenuItem()}render(){const e=this?.headerItem,t=this?.headerVisible,i=this?.headerDividerVisible,s=this?.listSectionDividerVisible,a=this?.profileMenuItems??[],r=Tg();return n($,{key:"4baa2263eed55afa652eba0f1e819b1e67e9b1a2",class:r},n(_e,{key:"4ccae5d9463d84deaddacbf88c8c082b3e320db7",type:this.hasProfileMenuItems()?"default":"no-options"},t?n("div",{class:"gids-profile-menu__header-container"},n("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?n("div",{class:"gids-profile-menu__header-divider-container"},n(Oe,null)):void 0,a.map(((o,l)=>n(xe,{key:`${l+1}`,sectionLabel:o?.sectionLabel??""},(o?.items??[]).map(((d,h)=>{const c=this.isThisItemSelected({...d,sectionIndex:l,itemIndex:h});return console.log("_thisItemSelected",c),n(at,{...d,key:`${h+1}`,id:d.id,index:h,onPressListItem:g=>this.onListItemPress({event:g,sectionIndex:l,itemIndex:h,item:d}),selected:c},d?.leadingLabel)})),l<a.length-1&&s?n(Oe,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged: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],selectedProfileMenuItemId:[1,"selected-profile-menu-item-id"],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}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function an(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,sn);break;case"gids-profile-menu-header":customElements.get(e)||fi()}}))}an();const Lg=sn,{getGidsProfileClassNames:Pg,getGidsProfileTextClassNames:Mg}=Co,{getProfileHeaderMenuAvatarText:Ag}=es,nn=T(class extends E{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.selectedProfileMenuItemId=void 0,this.onProfileControlPress=t=>{if(t&&t.stopPropagation(),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=>{t?.originalEvent&&(t.originalEvent?.stopPropagation(),t.originalEvent?.preventDefault()),this.isMenuExpanded=!1,this.selectedProfileMenuItemId=t.id,this.onProfileMenuItemPress&&this.onProfileMenuItemPress({...t})},this.onPressHeaderAvatar=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.onPressHeaderTitle=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.onPressHeaderSupportingText=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.positionProfileMenu=()=>{const t=this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),s=window.innerWidth,a=window.innerHeight;t.style.maxHeight="none";const r=t.getBoundingClientRect(),o=a-i.bottom-8,l=i.top-4,d=r.height>o&&l>o,h=d?l:o;t.style.maxHeight=r.height>h?h+"px":"none";const c=t.getBoundingClientRect();let g=i.left;g+c.width>s-4&&(g=s-c.width-4),g<4&&(g=4),t.style.left=g-i.left+"px",t.style.top=d?-c.height-4+"px":i.height+4+"px"},this.getProfileControlAvatarText=()=>{const t=this?.profileControlAvatarProps,i=this?.profileControlTitle;return t?.text??Ag({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,s=this?.profileControlAvatarVisible??!1,a=this?.profileControlAvatarBadgeVisible??!1,r=this?.profileControlBorderRadius??"none",o=this?.profileControlShadow??"none",l=this?.profileControlLeadingIcon,d=this?.profileControlTrailingIcon,h=this?.profileControlTitle??"",c=this?.profileControlSupportingText??"",g=this?.profileMenuItems??[],p=this?.headerDividerVisible??!1,m=this?.headerVisible??!1,u=this?.headerItem,f=this?.listSectionDividerVisible??!1,v=this?.menuId,y=this?.isMenuExpanded??!1,_=this.hasMenu(),b=this.selectedProfileMenuItemId,x=this?.profileControlLeadingIconSize??"sm",C=this?.profileControlTrailingIconSize??"sm",I=this?.profileControlLeadingIconAppearance??"filled",k=this?.profileControlTrailingIconAppearance??"filled",L=Pg({profileControlAppearance:e,profileControlBorderRadius:r,profileControlShadow:o,expanded:y&&_}),M=t?.size??"sm",{titleClasses:A,supportingTextClasses:F}=Mg({profileControlAppearance:e});let z=t?.color??"brand";return e==="brand"&&(z=t?.color??"default"),n($,{key:"af2b1019426d4afb25d17e13cbcfd9c68ff93ae3",class:L,onClick:this.onProfileControlPress,"menu-expanded":y},l?n(P,{name:l,size:x,appearance:I}):void 0,n("div",{key:"0236ae2295f37e17c119fb2aef82ce640e0f5176",class:"gids-profile__main-container"},s?n(en,{appearance:t?.appearance??"text",color:z,size:M,text:this.getProfileControlAvatarText(),imageSrc:t?.imageSrc??"",alt:t?.alt??"alt-img",badge:a?n(mi,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,n("div",{key:"24ff9b5beb2f85c80bd6f4995f121c07ea419a30",class:"gids-profile__content-container"},n("span",{key:"eee7c917840c9e50235c7ff6a1521257aad5b7b0",class:A},h),n("p",{key:"13f067ccbf54ec8562644a80959f78a0ece5ac68",class:F},c))),d?n(P,{name:d,size:C,appearance:k}):void 0,_&&y?n("div",{class:"gids-profile__dropdown-menu-container",id:v,role:"profilePickerbox",onClick:O=>O.stopPropagation()},n("gids-profile-menu",{headerItem:u,headerDividerVisible:p,headerVisible:m,listSectionDividerVisible:f,profileMenuItems:g,onHeaderAvatarPress:this.onPressHeaderAvatar,onHeaderTitlePress:this.onPressHeaderTitle,onHeaderSupportingTextPress:this.onPressHeaderSupportingText,onProfileMenuItemPress:this.onPressProfileMenuItem,selectedProfileMenuItemId:b})):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}"}},[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],selectedProfileMenuItemId:[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 Dg(){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,nn);break;case"gids-profile-menu":customElements.get(e)||an();break;case"gids-profile-menu-header":customElements.get(e)||fi()}}))}Dg();const zg=nn,Ng=ya,{getGidsScrimClassNames:rn}=ko,on=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=rn(e)}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=rn(this.extraClasses)}render(){return n("div",{key:"18caab041af3f9687f5adfd316396540a5e86b8e",class:this.activeClasses,part:"root"},n("slot",{key:"2e512b31b80245db0ae80434f89979455cf97392"}))}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 $g(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,on))}))}$g();const Fg=on,{getSkeletonBaseClassNames:Og}=Eo,ln=T(class extends E{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),i=this.getDimension(this.height);return t!==void 0&&(e.width=t),i!==void 0&&(e.height=i),e}render(){const e=Og({variant:this.variant??"text",animation:this.animation??"none"});return n($,{key:"09fe728912d038d44c4c3f5464ab057461aeabfc",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 Bg(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,ln))}))}Bg();const Vg=ln,dn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=ui(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function Rg(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,dn))}))}Rg();const Gg=dn,{getGidsTabItemClassNames:Hg}=Ao,cn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const e=Hg({appearance:this.appearance,width:this.width,active:this.active}),t=this.hasTrailingIcon,i=this.badgeVisible,s=this.appearance==="primary"&&this.active?"inverse":this.badgeAppearance??"information",a=this.label;return n($,{key:"a364c69d22d8bb640c9f280b5d1722f1e379e046",class:e,onClick:this.handleHostClick},this.hasLeadingIcon?n("slot",{name:"leadingIconTabItem"}):void 0,a&&a!==""?n("span",{class:"gids-tab-item__label"},a&&a!==""?a:void 0,i?n(mi,{appearance:s,type:this.badgeType,count:this.badgeCount}):void 0):void 0,t?n("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);white-space:nowrap;flex-shrink:0;cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);display:flex;justify-content:center;align-items:center;flex:1;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function jg(){typeof customElements<"u"&&["gids-tab-item"].forEach((e=>{e==="gids-tab-item"&&(customElements.get(e)||customElements.define(e,cn))}))}jg();const Yg=cn,{getGidsTabClassNames:qg}=zo,gn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.appearance="default"}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleActiveTabIdChange(e){this.activeTabId=e}componentDidLoad(){this.syncPropsToChildren(),this.hostElement.addEventListener("slotchange",(()=>this.syncPropsToChildren()))}componentDidUpdate(){this.syncPropsToChildren()}syncPropsToChildren(){this.hostElement.querySelectorAll("gids-tab-item").forEach((e=>{e&&(e.appearance=this.appearance,e.width=this.width,e.active=this.isTabActive(e.itemId),e.onPressGidsTabItem=t=>{this.activeTabId=t?.itemId,this.onPressGidsTab&&this.onPressGidsTab(t),this.syncPropsToChildren()})}))}isTabActive(e){return e===this.activeTabId}render(){const e=qg({width:this.width,appearance:this.appearance});return n($,{key:"d4894b3e60a3057a392c717db7d5f1415fe1e1e8",class:e},n("slot",{key:"f9bc6099f9b57ecc507462ee1f2a5f613176ced1"}))}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}}static get style(){return".gids-tab{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--gids-gap-150);overflow-y:hidden;overflow-x:scroll}.gids-tab--full{display:flex}.gids-tab--item-subtle{gap:0}.gids-tab--item-underlined{gap:0}"}},[260,"gids-tab",{width:[1],appearance:[1],activeTabId:[1,"active-tab-id"],onPressGidsTab:[16]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}]);function Wg(){typeof customElements<"u"&&["gids-tab"].forEach((e=>{e==="gids-tab"&&(customElements.get(e)||customElements.define(e,gn))}))}Wg();const Ug=gn,{formatCharCount:Xg}=Ji,{inputToGidsFieldStatus:Kg}=$o,hn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=De(this,"gidsTextFieldClear"),this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Hi(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return n("gids-field",{key:"e7b53ef42f47bef08ef1304f98970aba15a9f5ce",disabled:this.disabled,count:Xg(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Kg(this.status)},n(gi,{key:"4c10235170b6a4dde192aa3d9ac94c086407c544",slot:"label",disabled:this.disabled,info:n("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),n("gids-input",{key:"acd239945281fc5f370a39c59bac41ac0ff7d30f",ref:a=>this.#e=a,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},n("slot",{key:"6c15ae2ad89af2482b89f55871973b05901b068f",name:"leadingIcon"}),n("slot",{key:"241b8faeb07db3e532dfc7f71137d5a051b10f6f",name:"leadingAccessory"}),s&&n(Ua,{key:"16479751097d57a6cc95ede2bd4f7dad4c04e19f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),n("slot",{key:"eb147031f430799b1136fcbe07d8cfd58f1a9c80",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function Qg(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,hn);break;case"gids-field":customElements.get(e)||bt();break;case"gids-input":customElements.get(e)||je()}}))}Qg();const Zg=hn,Jg=fs,pn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new pi(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:w.GidsFloatingElementType.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return n(ae,{key:"56a3589fce74458f3c72d17dfcd79b464bdf7712"},n("slot",{key:"bb5599494aafa6efa4ce280cbf2dfdd39affda98"}),n("span",{key:"1d9cbcb72a293a465ea8158282f99d71d46c08c4",id:"tooltip",part:"tooltip",role:"tooltip"},n("span",{key:"b4e274e4ba08a0033d0af4a4d0a4a511961a80ab",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function eh(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,pn))}))}eh();const th=pn,{getGidsMenuGroupClassNames:ih}=po,un=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>n("div",{class:ih({type:e},i),...s},e==="loading"?n(de,{indeterminate:!0,size:"md"}):null,e==="no-options"?n("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsMenuClassNames:sh}=uo,mn=({heading:e,supportingText:t,level:i,supportingTextTypography:s,isHeaderDividerVisible:a=!1,class:r,...o},l)=>n("div",{class:sh(r),...o},e!=null&&e!==""||t!=null&&t!==""?n(hs,{heading:e,supportingText:t,level:i,supportingTextTypography:s??"eyebrow-medium"}):null,a?n("div",{class:"gids-menu__header-divider"},n(Oe,{orientation:"horizontal"})):void 0,l!=null?n("div",{class:"gids-menu__children"},l):null),{getGidsCheckboxControlClassNames:ah}=Or,bi=({checked:e,defaultChecked:t,disabled:i,indeterminate:s,inputId:a,name:r,value:o,required:l,onChange:d,class:h,...c})=>n("span",{class:ah(h),...c},n("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:i,checked:e,defaultChecked:t,required:l,indeterminate:s,value:o,id:a,name:r,onChange:d}),n(P,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),n(P,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getGidsTransferListClassNames:nh}=Fo,fn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.leftListHeading="Choices",this.rightListHeading="Choosen",this.moveAllVisible=!1,this.transferListType="basic",this.leftListItems=[],this.rightListItems=[],this.listsMaxHeight="200px",this.leftListItemsState=[],this.rightListItemsState=[],this.tempLeftListItemsState=[],this.tempRightListItemsState=[]}handleListsMaxHeightChange(e){this.listsMaxHeight=e}handleLeftListHeadingChange(e){this.leftListHeading=e}handleRightListHeadingChange(e){this.rightListHeading=e}handleMoveAllVisibilityChange(e){this.moveAllVisible=e}handleTransferListTypeChange(e){this.transferListType=e}handleLeftListItemsChange(e){this.leftListItems=e,this.setListItemsStates()}handleRightListItemsChange(e){this.rightListItems=e,this.setListItemsStates()}componentDidLoad(){this.setListItemsStates()}setListItemsStates(){this.leftListItemsState=this.leftListItems,this.rightListItemsState=this.rightListItems}getListHeading(e){return e==="left"?this.leftListHeading:this.rightListHeading}getListSupportingText(e){let t=this?.tempLeftListItemsState??[],i=this?.leftListItemsState??[];return e==="right"&&(t=this?.tempRightListItemsState??[],i=this?.rightListItemsState??[]),`${t.length} of ${i.length} selected`}isAllItemsSelectedInList({listSide:e}){const t=this.getStateListsItemsArr(e),i=this.getTempListsItemsArr(e);return t.length>0&&t.length===i.length}isAtleastOneItemSelectedInList({listSide:e}){const t=this.getStateListsItemsArr(e),i=this.getTempListsItemsArr(e);return i.length>0&&i.length<t.length}renderListHeading(e){if((this?.transferListType??"basic")!=="basic"){const t=this.isAllItemsSelectedInList({listSide:e}),i=this.isAtleastOneItemSelectedInList({listSide:e});return n("div",{class:"gids-transfer-list__menu-heading-container"},n(bi,{checked:t||i,onChange:s=>this.selectUnselectAllItems({event:s,listSide:e}),indeterminate:i}),n("div",{class:"gids-transfer-list__menu-heading-text-content-container"},n("span",{class:"gids-transfer-list__heading-text"},this.getListHeading(e)),n("span",{class:"gids-transfer-list__heading-support-text"},this.getListSupportingText(e))))}}listItemSelection({event:e,pressedIndex:t,listSide:i}){this.selectUnselectListItem({event:e,pressedIndex:t,listSide:i})}onPressingListItem({event:e,pressedIndex:t,listSide:i}){this.listItemSelection({event:e,pressedIndex:t,listSide:i})}selectUnselectListItem({event:e,pressedIndex:t,listSide:i}){const s=this.getStateListsItemsArr(i)[t];let a=!1;if(i==="left"&&s){const r=this?.tempLeftListItemsState??[],o=r.findIndex((l=>l?.id===s?.id));o!=null&&o!==-1?(r.splice(o,1),a=!1):(r.push(s),a=!0),this.tempLeftListItemsState=r,this.leftListItemsState=this?.leftListItemsState?[...this.leftListItemsState]:[]}else if(i==="right"&&s){const r=this?.tempRightListItemsState??[],o=r.findIndex((l=>l?.id===s?.id));o!=null&&o!==-1?(r.splice(o,1),a=!1):(r.push(s),a=!0),this.tempRightListItemsState=r,this.rightListItemsState=this?.rightListItemsState?[...this.rightListItemsState]:[]}this.callOnTransferListSelectFunc({event:e,isSelected:a,listSide:i,selectedIndexes:[t],selectionType:"single"})}isItemSelected({id:e,listSide:t}){const i=this.getTempListsItemsArr(t);return i.length>0&&!!i.find((s=>s?.id===e))}getStateListsItemsArr(e){let t=this?.leftListItemsState??[];return e==="right"&&(t=this?.rightListItemsState??[]),t}getTempListsItemsArr(e){let t=this?.tempLeftListItemsState??[];return e==="right"&&(t=this?.tempRightListItemsState??[]),t}selectUnselectAllItems({event:e,listSide:t}){const i=this.getStateListsItemsArr(t),s=this.isAllItemsSelectedInList({listSide:t}),a=this.isAtleastOneItemSelectedInList({listSide:t});t==="left"?this.tempLeftListItemsState=s||a?[]:[...i]:this.tempRightListItemsState=s||a?[]:[...i];const r=[];s||a||i.map(((o,l)=>{r.push(l)})),this.callOnTransferListSelectFunc({event:e,isSelected:!s&&!a,listSide:t,selectedIndexes:r,selectionType:"all"})}callOnTransferListSelectFunc({event:e,isSelected:t,listSide:i,selectedIndexes:s,selectionType:a}){this.onTransferListSelect&&this.onTransferListSelect({originalEvent:e,originalLeftListItems:this?.leftListItems??[],originalRightListItems:this?.rightListItems??[],currentLeftListItems:this?.leftListItemsState??[],currentRightListItems:this?.rightListItemsState??[],leftListSelectedItems:this?.tempLeftListItemsState??[],rightListSelectedItems:this?.tempRightListItemsState??[],selectedIndexes:s,selectionType:a,listSide:i,isSelected:t})}movementButtonDisabled({listSide:e,movementType:t}){if(e==="left"){const i=this?.leftListItemsState&&this.leftListItemsState.length>0?this.leftListItemsState.length:0;if(t==="move-single")return!(i>0&&(this?.tempLeftListItemsState&&this.tempLeftListItemsState.length>0?this.tempLeftListItemsState.length:0)>0);if(t==="move-all")return!(i>0)}else if(e==="right"){const i=this?.rightListItemsState&&this.rightListItemsState.length>0?this.rightListItemsState.length:0;if(t==="move-single")return!(i>0&&(this?.tempRightListItemsState&&this.tempRightListItemsState.length>0?this.tempRightListItemsState.length:0)>0);if(t==="move-all")return!(i>0)}return!0}callOnTransferAction({transferTo:e,transferFrom:t,movementType:i,newTransferredItems:s}){this.onTransferAction&&this.onTransferAction({transferTo:e,transferFrom:t,originalLeftListItems:this?.leftListItems??[],originalRightListItems:this?.rightListItems??[],currentLeftListItems:this?.leftListItemsState??[],currentRightListItems:this?.rightListItemsState??[],leftListSelectedItems:this?.tempLeftListItemsState??[],rightListSelectedItems:this?.tempRightListItemsState??[],newTransferredItems:s,movementType:i})}clearListSystem({event:e,listSide:t,movementType:i}){if(console.log("event",e),console.log("listSide",t),console.log("movementType",i),!this.movementButtonDisabled({listSide:t,movementType:i})){if(t==="left")if(i==="move-single"){const s=this?.tempLeftListItemsState??[],a=this?.leftListItemsState??[];if(a.length>0){const r=[];a.map((o=>{s.find((l=>l?.id===o?.id))||r.push(o)})),this.leftListItemsState=[...r]}this.tempLeftListItemsState=[]}else i==="move-all"&&(this.leftListItemsState=[],this.tempLeftListItemsState=[]);else if(t==="right")if(i==="move-single"){const s=this?.tempRightListItemsState??[],a=this?.rightListItemsState??[];if(a.length>0){const r=[];a.map((o=>{s.find((l=>l?.id===o?.id))||r.push(o)})),this.rightListItemsState=[...r]}this.tempRightListItemsState=[]}else i==="move-all"&&(this.rightListItemsState=[],this.tempRightListItemsState=[])}}moveListItems({event:e,listSide:t,movementType:i}){if(!this.movementButtonDisabled({listSide:t,movementType:i})){const s=this?.leftListItemsState??[],a=this?.rightListItemsState??[],r=this?.tempLeftListItemsState??[],o=this?.tempRightListItemsState??[];let l=[];t==="left"?i==="move-single"?(this.rightListItemsState=[...r,...a],l=[...r]):i==="move-all"&&(this.rightListItemsState=[...s,...a],l=[...s]):t==="right"&&(i==="move-single"?(this.leftListItemsState=[...o,...s],l=[...o]):i==="move-all"&&(this.leftListItemsState=[...a,...s],l=[...a])),this.clearListSystem({event:e,listSide:t,movementType:i}),this.callOnTransferAction({transferTo:t==="left"?"right":"left",transferFrom:t,movementType:i,newTransferredItems:l})}}onItemsMovement({event:e,listSide:t,movementType:i}){this.moveListItems({event:e,listSide:t,movementType:i})}render(){const e=nh(),t=this?.leftListItemsState??[],i=this?.rightListItemsState??[],s=this.listsMaxHeight,a=this?.transferListType??"basic";return n($,{key:"f6d27883de92122e98bd43c004ecc71cb04b2bfd",class:e},n("div",{key:"6cee295abcfa7a1e0238e11fefe61784b30e1af2",class:"gids-transfer-list__left-container"},n(un,{key:"3ef75b241090fb7cdfe00e56019d71cc9e390201",type:t.length>0?"default":"no-options"},n(mn,{key:"b176f73704f65bb733e4a6eff81ea6a0afbb9983",heading:this.renderListHeading("left"),style:{"--gidsMenuChildren-max-height":s},isHeaderDividerVisible:a!=="basic"},t.map(((r,o)=>{const l=r?.id?r.id:""+(o+1),d=this.isItemSelected({id:l,listSide:"left"});return n(at,{id:""+l,index:o,leadingAccessory:n(bi,{checked:d}),selected:d,onPressListItem:h=>this.onPressingListItem({event:h,pressedIndex:o,listSide:"left"})},r?.listLabel)}))))),n("div",{key:"954bb5d1328adb1058e26d04d5c60c71aa417a33",class:"gids-transfer-list__middle-container"},n(R,{key:"77bd61dbf02106e8a5372c5afa01138ad1791a91",leadingIcon:n(P,{name:"forward"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"left",movementType:"move-all"}),onClick:r=>this.onItemsMovement({event:r,listSide:"left",movementType:"move-all"})}),n(R,{key:"eecbbaa63c5acbdf1ea2c2a5f4546b6e1247b6a3",leadingIcon:n(P,{name:"chevron-right"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"left",movementType:"move-single"}),onClick:r=>this.onItemsMovement({event:r,listSide:"left",movementType:"move-single"})}),n(R,{key:"72d8f5b58abfc18ab365d822e5460d4dbf332329",leadingIcon:n(P,{name:"chevron-left"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"right",movementType:"move-single"}),onClick:r=>this.onItemsMovement({event:r,listSide:"right",movementType:"move-single"})}),n(R,{key:"73dfa4e3104ec15b79d1bfda52db59fe8ba03e8b",leadingIcon:n(P,{name:"backward"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"right",movementType:"move-all"}),onClick:r=>this.onItemsMovement({event:r,listSide:"right",movementType:"move-all"})})),n("div",{key:"5ac78a3c3704fda5e7c92cbb52d6a5cde45312f7",class:"gids-transfer-list__right-container"},n(un,{key:"4c0e727d5452d11e48917ee0a8fa0d1462295771",type:i.length>0?"default":"no-options"},n(mn,{key:"83f6e5578ccbcc6fe0dfac56b738e6c88498224a",heading:this.renderListHeading("right"),style:{"--gidsMenuChildren-max-height":s},isHeaderDividerVisible:a!=="basic"},i.map(((r,o)=>{const l=r?.id?r.id:""+(o+1),d=this.isItemSelected({id:l,listSide:"right"});return n(at,{id:""+l,index:o,selected:d,leadingAccessory:n(bi,{checked:d}),onPressListItem:h=>this.onPressingListItem({event:h,pressedIndex:o,listSide:"right"})},r?.listLabel)}))))))}get hostElement(){return this}static get watchers(){return{listsMaxHeight:[{handleListsMaxHeightChange:0}],leftListHeading:[{handleLeftListHeadingChange:0}],rightListHeading:[{handleRightListHeadingChange:0}],moveAllVisible:[{handleMoveAllVisibilityChange:0}],transferListType:[{handleTransferListTypeChange:0}],leftListItems:[{handleLeftListItemsChange:0}],rightListItems:[{handleRightListItemsChange:0}]}}static get style(){return".gids-transfer-list{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-500)}.gids-transfer-list .gids-menu__children{max-height:var(--gidsMenuChildren-max-height);overflow:auto}.gids-transfer-list__left-container{display:flex;width:100%;flex-direction:column}.gids-transfer-list__middle-container{display:flex;width:15%;flex-direction:column;gap:var(--gids-gap-150)}.gids-transfer-list__right-container{display:flex;width:100%;flex-direction:column}.gids-transfer-list__menu-heading-container{display:flex;align-items:flex-start;justify-content:flex-start;gap:var(--gids-gap-100)}.gids-transfer-list__menu-heading-text-content-container{display:flex;flex-direction:column}.gids-transfer-list__heading-text{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-subtle)}.gids-transfer-list__heading-support-text{font-family:var(--gids-typography-paragraph-medium__font-family);font-size:var(--gids-typography-paragraph-medium__font-size);font-weight:var(--gids-typography-paragraph-medium__font-weight);letter-spacing:var(--gids-typography-paragraph-medium__letter-spacing);line-height:var(--gids-typography-paragraph-medium__line-height);text-transform:var(--gids-typography-paragraph-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-medium__font-variant-caps, inherit);color:var(--gids-color-text-subtlest)}"}},[0,"gids-transfer-list",{leftListHeading:[1,"left-list-heading"],rightListHeading:[1,"right-list-heading"],moveAllVisible:[4,"move-all-visible"],transferListType:[1,"transfer-list-type"],leftListItems:[16],rightListItems:[16],listsMaxHeight:[1,"lists-max-height"],onTransferAction:[16],onTransferListSelect:[16],leftListItemsState:[32],rightListItemsState:[32],tempLeftListItemsState:[32],tempRightListItemsState:[32]},void 0,{listsMaxHeight:[{handleListsMaxHeightChange:0}],leftListHeading:[{handleLeftListHeadingChange:0}],rightListHeading:[{handleRightListHeadingChange:0}],moveAllVisible:[{handleMoveAllVisibilityChange:0}],transferListType:[{handleTransferListTypeChange:0}],leftListItems:[{handleLeftListItemsChange:0}],rightListItems:[{handleRightListItemsChange:0}]}]);function rh(){typeof customElements<"u"&&["gids-transfer-list"].forEach((e=>{e==="gids-transfer-list"&&(customElements.get(e)||customElements.define(e,fn))}))}rh();const oh=fn;function vi(e,t){Go(e,t)}const lh=e=>{vi(e)},dh=e=>{vi(e)},ch=({children:e,classNameToBeValidated:t,childrenToBeValidated:i,currentComponentName:s})=>{if(e!=null){const a=Array.isArray(e)?e:[e];for(const r of a){if(!r||typeof r!="object"||!("vtag"in r))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${s}. Expected ${i}.`);{const o=r.vtag;if(o!==t&&o!==i)throw Error(`HTML/JSX Render Error: <${s}> only accepts <${i}> as direct children. Received element tag: "${typeof o=="function"?o.name:o}".`)}}}};w.GidsActionBar=ul,w.GidsActivityGauge=vl,w.GidsAdvancedTooltip=nd,w.GidsBarChart=od,w.GidsBentoCard=cd,w.GidsCalendar=Td,w.GidsCalendarHeaderPanel=bd,w.GidsCalendarMonthList=vd,w.GidsCalendarYearList=yd,w.GidsCarousel=Fd,w.GidsChart=Xd,w.GidsChartLegend=Bd,w.GidsChartLegendItem=Od,w.GidsChevronButton=Qd,w.GidsDot=Zd,w.GidsDropdown=oc,w.GidsDropdownField=nc,w.GidsDropdownPicker=rc,w.GidsExpansion=yc,w.GidsExpansionBodyList=pc,w.GidsExpansionBodyListItem=cc,w.GidsExpansionGroup=fc,w.GidsField=_c,w.GidsFilter=xc,w.GidsFlyoutPanel=wc,w.GidsHeaderNavigation=Tc,w.GidsHeaderNavigationItem=Ic,w.GidsIcon=Lc,w.GidsInput=Pc,w.GidsLevelGauge=Mc,w.GidsLineChart=Ac,w.GidsMdTable=Gc,w.GidsNotification=jc,w.GidsOverflowContainer=Wc,w.GidsOverlayProvider=sg,w.GidsPasswordField=bg,w.GidsPieChart=vg,w.GidsPopover=_g,w.GidsProfile=zg,w.GidsProfileMenu=Lg,w.GidsProfileMenuHeader=Eg,w.GidsProgressCircle=Ng,w.GidsScrim=Fg,w.GidsSkeleton=Vg,w.GidsSnackbar=Gg,w.GidsTab=Ug,w.GidsTabItem=Yg,w.GidsTextField=Zg,w.GidsToggleButton=Jg,w.GidsTooltip=th,w.GidsTransferList=oh,w.getAssetPath=Cn,w.getConstructedGidsStylesheet=Y,w.refreshConstructedGidsStylesheet=Yt,w.render=jn,w.setAssetPath=wn,w.setGidsAssetFilePaths=lh,w.setGidsAssetPaths=vi,w.setGidsDefaultAssetDirPath=dh,w.setNonce=Gn,w.setPlatformOptions=Hn,w.testHtmlChildrenValidity=ch,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|
|
15
|
+
`.replace(/\s+/g," ").trim();return n("path",{key:b.seriesIdx,d:C,class:"gids-bar-chart__bar",style:{fill:b?.seriesColor}})})),n("rect",{x:v,y:"0",width:m,height:"100",fill:"transparent","pointer-events":"all",onMouseMove:b=>{this.hoveredIndex=f,this.tooltip={visible:!0,x:b.clientX,y:b.clientY}},onMouseLeave:()=>{this.hoveredIndex=null,this.tooltip={...this.tooltip,visible:!1}}}))}))),n("gids-advanced-tooltip",{visible:this.tooltip.visible,x:this.tooltip.x,y:this.tooltip.y,items:this.hoveredIndex!==null?this.getTooltipItems(this.hoveredIndex):[]}))),n("div",{class:"gids-bar-chart__x-axis-scale-container"},e.map(((u,f)=>n("span",{class:"gids-bar-chart__scale-text",key:f},u)))),n("span",{class:"gids-bar-chart__x-axis-label"},this.xAxisLabel)),g?n("gids-chart-legend",{orientation:"vertical"},this.chartData.map((u=>n("gids-chart-legend-item",{key:u.label,seriesColor:u?.seriesColor,orientation:"vertical"},u.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-bar-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-bar-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-bar-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-600);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-bar-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-bar-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-bar-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%);margin-right:var(--gids-padding-horizontal-edge-to-element-100)}.gids-bar-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-bar-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-bar-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-bar-chart{}.gids-bar-chart__bar{vector-effect:non-scaling-stroke}.gids-bar-chart{}.gids-bar-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-around;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-200);gap:var(--gids-gap-050);box-sizing:border-box}.gids-bar-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-bar-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-bar-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-bar-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32],hoveredIndex:[32],tooltip:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function Zs(){typeof customElements<"u"&&["gids-bar-chart","gids-advanced-tooltip","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-bar-chart":customElements.get(e)||customElements.define(e,Qs);break;case"gids-advanced-tooltip":customElements.get(e)||mt();break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}Zs();const od=Qs;function Js(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=Js(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function He(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=Js(e))&&(s&&(s+=" "),s+=t);return s}const{getGidsBentoCardClassNames:ld}=Cr,ea=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.label="",this.appearance="default",this.iconDirection="column",this.hasDefaultSlot=!1,this.hasIconSlot=!1,this.hasAccessorySlot=!1}headingChanged(e){this.heading=e}labelChanged(e){this.label=e}supportingTextChanged(e){this.supportingText=e}descriptionChanged(e){this.description=e}iconDirectionChanged(e){this.iconDirection=e}appearanceChanged(e){this.appearance=e}bgGradientChanged(e){this.bgGradient=e}primaryTextColorChanged(e){this.primaryTextColor=e}secondaryTextColorChanged(e){this.secondaryTextColor=e}tertiaryTextColorChanged(e){this.tertiaryTextColor=e}connectedCallback(){}componentDidLoad(){this.updateSlotStates()}updateSlotStates(){let e=!1;this.iconSlotRef&&(e=this.iconSlotRef.assignedNodes().some((s=>s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&s?.textContent?.trim()!=="")));let t=!1;this.accessorySlotRef&&(t=this.accessorySlotRef.assignedNodes().some((s=>s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&s?.textContent?.trim()!=="")));let i=!1;this.defaultSlotRef&&(i=this.defaultSlotRef.assignedNodes().some((s=>s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&s?.textContent?.trim()!==""))),this.hasIconSlot!==e&&(this.hasIconSlot=e),this.hasAccessorySlot!==t&&(this.hasAccessorySlot=t),this.hasDefaultSlot!==i&&(this.hasDefaultSlot=i)}render(){const e=this?.heading&&this.heading!==""?this.heading:void 0,t=this?.label&&this.label!==""?this.label:void 0,i=this?.supportingText&&this.supportingText!==""?this.supportingText:void 0,s=this?.description&&this.description!==""?this.description:void 0,a=e||t||i||s,r=this?.appearance??"default",o=this?.hasDefaultSlot??!1,l=this?.hasIconSlot??!1,d=this?.hasAccessorySlot??!1,h=ld({appearance:r,hasAccessorySlot:d});return n($,{key:"bdb7c4336b65306113812e36c3c5dfea68201d6e",class:`${h} ${l?"has-icon":""} ${d?"has-accessory":""} ${o?"has-image":""}`,style:{"--gidsBentoCard-bg-gradient":this?.bgGradient??"","--gidsBentoCardText-color-primary":this?.primaryTextColor??"","--gidsBentoCardText-color-secondary":this?.secondaryTextColor??"","--gidsBentoCardText-color-tertiary":this?.tertiaryTextColor??""},"data-appearance":r},n("div",{key:"1f384b2b58f296baca67b9d5d79caf470bc1fcea",class:o?"gids-bento-card__content gids-bento-card__default-slot-gapping":"gids-bento-card__content"},n("header",{key:"ff03144a4826c648ea3abf264488ebe0fcde9bce",class:He("gids-bento-card__header",{"gids-bento-card__header-row":(this?.iconDirection??"column")==="row"})},n("div",{key:"a19fa8db172ce085909b23f2e3a006f73c10716c",class:l?"gids-bento-card__icon":""},n("slot",{key:"0f6d4d135ef9f754b6e0b9b634a8b857cbc2d1dd",name:"bentoCardIcon",ref:c=>this.iconSlotRef=c,onSlotchange:()=>this.updateSlotStates()})),a?n("div",{class:"gids-bento-card__texts-wrapper"},e&&n("span",{class:"gids-bento-card__heading"},e),t&&n("h3",{class:"gids-bento-card__title"},t),i&&n("span",{class:"gids-bento-card__supporting"},i),s&&n("p",{class:"gids-bento-card__description"},s)):void 0),n("div",{key:"3e7313e2f0d4012587155fb20c1f268cc942e21c",class:o?"gids-bento-card__image-wrapper":""},n("slot",{key:"59220c4899ab78741755592c3583d83273235df4",ref:c=>this.defaultSlotRef=c,onSlotchange:()=>this.updateSlotStates()}))),n("footer",{key:"f7ffd4a3555ff78d0193ce0c173ce98ff18cfc70",class:d?"gids-bento-card__footer":""},n("slot",{key:"9a2fe028fabf149502cd29dd5c52913537ba4203",name:"bentoCardAccessory",ref:c=>this.accessorySlotRef=c,onSlotchange:()=>this.updateSlotStates()})))}get hostElement(){return this}static get watchers(){return{heading:[{headingChanged:0}],label:[{labelChanged:0}],supportingText:[{supportingTextChanged:0}],description:[{descriptionChanged:0}],iconDirection:[{iconDirectionChanged:0}],appearance:[{appearanceChanged:0}],bgGradient:[{bgGradientChanged:0}],primaryTextColor:[{primaryTextColorChanged:0}],secondaryTextColor:[{secondaryTextColorChanged:0}],tertiaryTextColor:[{tertiaryTextColorChanged:0}]}}static get style(){return".gids-bento-card{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-4-bolder-default) 0%, var(--gids-color-background-accent-4-subtle-default) 100% );--gidsBentoCardText-color-primary:var(--gids-color-text-inverse);--gidsBentoCardText-color-secondary:var(--gids-color-text-inverse);--gidsBentoCardText-color-tertiary:var(--gids-color-text-inverse);display:flex;flex-direction:column;max-width:var(--gids-width-2-xs);padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-150);background:var(--gidsBentoCard-bg-gradient);border-radius:var(--gids-border-radius-lg)}.gids-bento-card:not([data-appearance=subtle]){box-shadow:var(--gids-elevation-shadow-overlay)}.gids-bento-card--accessory-slot-gapping{gap:var(--gids-gap-600)}.gids-bento-card__default-slot-gapping{gap:var(--gids-gap-500)}.gids-bento-card__content{display:flex;flex-direction:column}.gids-bento-card__header{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:var(--gids-gap-100)}.gids-bento-card__header-row{flex-direction:row}.gids-bento-card__icon{--gidsIcon-color:var(--gidsBentoCardText-color-primary)}.gids-bento-card__texts-wrapper{display:flex;flex-direction:column;gap:var(--gids-gap-100)}.gids-bento-card__heading{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(--gidsBentoCardText-color-primary)}.gids-bento-card__title{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gidsBentoCardText-color-primary)}.gids-bento-card__supporting{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);color:var(--gidsBentoCardText-color-secondary)}.gids-bento-card__description{margin: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(--gidsBentoCardText-color-tertiary)}.gids-bento-card__image-wrapper{display:block;width:100%;height:160px}.gids-bento-card__image-wrapper img{display:block;object-fit:contain;width:100%;height:160px}.gids-bento-card__footer{display:flex;flex-direction:column}.gids-bento-card--appearance-subtle{--gidsBentoCard-bg-gradient:transparent;--gidsBentoCardText-color-primary:var(--gids-color-text-default);--gidsBentoCardText-color-secondary:var(--gids-color-text-default);--gidsBentoCardText-color-tertiary:var(--gids-color-text-subtlest)}.gids-bento-card--appearance-positive{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-1-bolder-default) 0%, var(--gids-color-background-accent-1-subtle-default) 100% )}.gids-bento-card--appearance-warning{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-2-bolder-default) 0%, var(--gids-color-background-accent-2-subtle-default) 100% )}.gids-bento-card--appearance-information{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-3-bolder-default) 0%, var(--gids-color-background-accent-3-subtle-default) 100% )}.gids-bento-card--appearance-danger{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-accent-6-bolder-default) 0%, var(--gids-color-background-accent-6-subtle-default) 100% );--gidsBentoCardText-color-tertiary:var(--gids-color-text-subtle)}.gids-bento-card--appearance-brand{--gidsBentoCard-bg-gradient:linear-gradient( 210deg, var(--gids-color-background-brand-boldest-default) 0%, var(--gids-color-background-brand-bold-default) 100% )}"}},[260,"gids-bento-card",{heading:[1],label:[1],supportingText:[1,"supporting-text"],description:[1],appearance:[1],bgGradient:[1,"bg-gradient"],primaryTextColor:[1,"primary-text-color"],secondaryTextColor:[1,"secondary-text-color"],tertiaryTextColor:[1,"tertiary-text-color"],iconDirection:[1,"icon-direction"],hasDefaultSlot:[32],hasIconSlot:[32],hasAccessorySlot:[32]},void 0,{heading:[{headingChanged:0}],label:[{labelChanged:0}],supportingText:[{supportingTextChanged:0}],description:[{descriptionChanged:0}],iconDirection:[{iconDirectionChanged:0}],appearance:[{appearanceChanged:0}],bgGradient:[{bgGradientChanged:0}],primaryTextColor:[{primaryTextColorChanged:0}],secondaryTextColor:[{secondaryTextColorChanged:0}],tertiaryTextColor:[{tertiaryTextColorChanged:0}]}]);function dd(){typeof customElements<"u"&&["gids-bento-card"].forEach((e=>{e==="gids-bento-card"&&(customElements.get(e)||customElements.define(e,ea))}))}dd();const cd=ea,{getGidsCalendarMonthListClassNames:gd,getGidsCalendarMonthListMonths:hd}=Tr,ta=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:r,id:o}=t.detail;r||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,month:i,monthInNumber:Number(s),disabled:!1,selectedIndex:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,monthInNumber:Number(i.value),month:i.title,disabled:!1,selectedIndex:i.selectedIndex})},this.monthsList=()=>hd(),this.getSelectedItem=()=>{const t=this.selectedMonthNumber,i=this.monthsList(),s=i.findIndex((r=>r.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}applySelection(e){this.clearActive(),this.onSelectionMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarMonthChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=gd();return n("div",{key:"c9728a8b9ac112198332bf5d4b5acaa4f21f0497",class:e},n(_e,{key:"a592fe89ec9c3fe411d251e93a611968b37ad8e5",type:this.type,supportingText:this.noOptionsText},n(xe,{key:"37d1b2a2bdeb733f7f845538cc2d2e3556dbc252",sectionLabel:"Months"},this.monthsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(i);return n(Be,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-month-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedMonthNumber:[2,"selected-month-number"],onSelectionMonthChange:[16]}]);function ni(){typeof customElements<"u"&&["gids-calendar-month-list"].forEach((e=>{e==="gids-calendar-month-list"&&(customElements.get(e)||customElements.define(e,ta))}))}ni();const{getGidsCalendarYearListClassNames:pd,getGidsCalendarYearListYears:ud,isValidFourDigitYear:ia}=Pr,sa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:r,id:o}=t.detail;r||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,year:Number(s),disabled:!1,selectedIndex:a,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,year:Number(i.value),disabled:!1,selectedIndex:i.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>ud({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,i=this.yearsList(),s=i.findIndex((r=>r.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&ia(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&ia(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=pd();return n("div",{key:"e4b410c9635ccf4192eb579d63539c9221a16099",class:e},n(_e,{key:"4c66b03bb635a2c29fac54129d0874ded0e29caf",type:this.type,supportingText:this.noOptionsText},n(xe,{key:"5efe0a41ad6f0264fcd1cc18669e265dc2317022",sectionLabel:"Years"},this.yearsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(t.value);return n(Be,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function ri(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,sa))}))}ri();const{getGidsDropdownPickerClassNames:md}=Wr,aa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:i,title:s,disabled:a,id:r,isPlaceholderItem:o}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,value:i,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:o}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof a!="string"||a.length===0)return;const r=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof r!="string"||r.length===0)return;const o=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:r,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!o||o!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=md({expanded:e}),i=typeof this.idPicker=="string"?this.idPicker:void 0,s=i?`${i}__menu`:void 0;return n("div",{key:"71d81b97fa9194702f5ecab842e09d741be8ef15",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},n(R,{key:"81175ae046e5686ccf116ce2967f4a437db4193d",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?n("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):n(P,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),n("div",{key:"74a5c6fde8cf21cf08478a7d888922a263003802",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},n("slot",{key:"dbf8ed799e1d586b73e7cd2f949e73330c067557"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline: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;max-height:15rem;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-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function oi(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,aa))}))}oi();const{getGidsCalendarHeaderPanelClassNames:fd,getCalendarMonthNameViaMonthNumber:Pe}=as,na=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="primary",this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.panelDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.expandedMonthPicker=!1,this.expandedYearPicker=!1,this.internalPreviousDisabled=!1,this.internalNextDisabled=!1,this.suppressNextMenuClickSelection=!1,this.suppressNextActionClickSelection=!1,this.fallbackYear=new Date().getFullYear(),this.fallbackMonth=1,this.fallbackStartYear=new Date().getFullYear(),this.fallbackEndYear=new Date().getFullYear()+100,this.handleMonthPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:i?.monthInNumber??this.fallbackMonth,newSelectedYear:this.panelYear??this.fallbackYear}),this.applyMonthSelection({id:i.id,type:"month",month:i.month,monthNumber:Number(i.monthInNumber),year:this.panelYear,disabled:!1,panelValue:`${i.month} ${this.panelYear}`})},this.handleYearPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:this?.panelMonthNumber??this.fallbackMonth,newSelectedYear:i?.year??this.fallbackYear}),this.applyYearSelection({id:i.id,type:"year",month:this.panelMonth,monthNumber:Number(this?.panelMonthNumber),year:i?.year,disabled:!1,panelValue:`${this.panelMonth} ${i.year}`})},this.handlePreviousActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isPreviousActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onPreviousActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=Pe(i);this.applyActionsSelection({type:"previous",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})},this.handleNextActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isNextActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onNextActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=Pe(i);this.applyActionsSelection({type:"next",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})}}handleSelectedMonthNumberChange(e){e!=null&&(this.panelMonthNumber=e,this.panelMonth=Pe(e),this.syncPanelDisplayValue())}handleSelectedYearChange(e){e!=null&&(this.panelYear=e,this.syncPanelDisplayValue())}handleExpandedMonthPickerChange(e){e&&!this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1),e&&this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1)}handleExpandedYearPickerChange(e){e&&!this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1),e&&this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1)}handleMonthPickerInteractivityChange(){!this.isMonthPickerInteractive()&&this.expandedMonthPicker&&this.setExpandedMonthPickerState(!1)}handleYearPickerInteractivityChange(){!this.isYearPickerInteractive()&&this.expandedYearPicker&&this.setExpandedYearPickerState(!1)}handleAppearanceChange(e){this.appearance=e}connectedCallback(){this.panelMonthNumber=this.selectedMonthNumber??this.fallbackMonth,this.panelMonth=Pe(this.selectedMonthNumber??this.fallbackMonth),this.panelYear=this.selectedYear??this.fallbackYear,this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`,this.syncPanelDisplayValue(),this.setPreviousActionInteractivity(),this.setNextActionInteractivity()}applyMonthSelection(e){this.setExpandedMonthPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelMonthChange",{bubbles:!0,composed:!0,detail:e}))}applyYearSelection(e){this.setExpandedYearPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelYearChange",{bubbles:!0,composed:!0,detail:e}))}setExpandedMonthPickerState(e,t){const i=!!e;i&&!this.isMonthPickerInteractive()||this.expandedMonthPicker!==i&&(this.expandedMonthPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelMonthToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:i,expandedYearPicker:!!this.expandedYearPicker,originalEvent:t}})))}setExpandedYearPickerState(e,t){const i=!!e;i&&!this.isYearPickerInteractive()||this.expandedYearPicker!==i&&(this.expandedYearPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelYearToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:!!this.expandedMonthPicker,expandedYearPicker:i,originalEvent:t}})))}syncPanelDisplayValue(){this.panelMonth&&this.panelYear&&(this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`)}applyActionsSelection(e){this.setNextActionInteractivity(),this.setPreviousActionInteractivity(),e.type==="previous"&&this.onPreviousChange?.(e),e.type==="next"&&this.onNextChange?.(e)}checkPrevYearIsAllowed(e){return e>=(this.startYear??this.fallbackStartYear)}checkNextYearIsAllowed(e){return e<=(this.endYear??this.fallbackEndYear)}isPreviousActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===1?this.checkPrevYearIsAllowed((this.panelYear??this.fallbackYear)-1)&&!this.previousDisabled:!this.previousDisabled}isNextActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===12?this.checkNextYearIsAllowed((this.panelYear??this.fallbackYear)+1)&&!this.nextDisabled:!this.nextDisabled}onPreviousActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isPreviousActionInteractive()?{newSelectedMonthNumber:e===1?12:e-1,newSelectedYear:e===1?t-1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}onNextActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isNextActionInteractive()?{newSelectedMonthNumber:e===12?1:e+1,newSelectedYear:e===12?t+1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}isMonthPickerInteractive(){return!this.monthPickerDisabled}isYearPickerInteractive(){return!this.yearPickerDisabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}updatePanelMonth(e){e?(this.selectedMonthNumber=e,this.panelMonth=Pe(e),this.panelMonthNumber=e):(this.selectedMonthNumber=this.fallbackMonth,this.panelMonth=Pe(this.fallbackMonth),this.panelMonthNumber=this.fallbackMonth)}updatePanelYear(e){e?(this.selectedYear=e,this.panelYear=e):this.panelYear=this.fallbackYear}setPreviousActionInteractivity(){this.internalPreviousDisabled=!this.isPreviousActionInteractive()}setNextActionInteractivity(){this.internalNextDisabled=!this.isNextActionInteractive()}updateActionProps({newSelectedYear:e,newSelectedMonthNumber:t}){this.updatePanelYear(e),this.updatePanelMonth(t),this.syncPanelDisplayValue()}getPanelValue(){return this.panelDisplayValue}render(){const e=fd(),t=this.expandedMonthPicker&&this.isMonthPickerInteractive()&&!this.expandedYearPicker,i=this.expandedYearPicker&&this.isYearPickerInteractive()&&!this.expandedMonthPicker,s=this.internalPreviousDisabled||this.previousDisabled,a=this.internalNextDisabled||this.nextDisabled;return n("div",{key:"3353a6720343f4996dd9ed9ae3555151c86a5d83",class:e},n(R,{key:"693b2411f8c5ebb57241d047f6f835492688845d",leadingIcon:n(P,{name:"arrow-left",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handlePreviousActionClick,disabled:s}),n("div",{key:"513e7e8d1b17776bf32c06b32deaeb831e13bb77",class:"gids-calendar-header-panel__main-container"},n("gids-dropdown-picker",{key:"20315f018f4acbf024750a237bac8f6595af0974",expanded:t,appearance:this.appearance,size:"sm",value:`${this.panelMonthNumber}`,disabled:this.monthPickerDisabled},n("gids-calendar-month-list",{key:"582c9dccf9e7391f219aa6fd736bb28c58bcc386",type:"default",selectedMonthNumber:this.panelMonthNumber,onSelectionMonthChange:this.handleMonthPickerMenuClick})),n("span",{key:"22e490f7affc2cc817fef3c9887b3777f2db53e4",class:He("gids-calendar-header-panel__panel-value",{"gids-calendar-header-panel__panel-value-disabled":this.panelDisabled})},this.getPanelValue()),n("gids-dropdown-picker",{key:"2179b6d64b2575d4b6dd3b56bd2cdf8035486cad",expanded:i,appearance:this.appearance,size:"sm",value:`${this.panelYear}`,disabled:this.yearPickerDisabled},n("gids-calendar-year-list",{key:"9a84cc1f2fabfbbd5e1f5bbcbe59418c63c42257",type:"default",selectedYear:this.panelYear,startYear:this.startYear??this.fallbackStartYear,endYear:this.endYear,onSelectionYearChange:this.handleYearPickerMenuClick}))),n(R,{key:"cf8dc25acfbba53f9baeb40d71144af9df6c0546",leadingIcon:n(P,{name:"arrow-right",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handleNextActionClick,disabled:a}))}get hostElement(){return this}static get watchers(){return{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}}static get style(){return".gids-calendar-header-panel{display:flex;justify-content:center;align-items:center;align-self:stretch;gap:var(--gids-gap-150);width:100%}.gids-calendar-header-panel__main-container{display:flex;flex:1 0 0;align-items:center;justify-content:center;align-self:stretch;gap:var(--gids-gap-100)}.gids-calendar-header-panel__panel-value{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);text-align:center}.gids-calendar-header-panel__panel-value-disabled{color:var(--gids-color-text-disabled)}"}},[0,"gids-calendar-header-panel",{selectedMonthNumber:[1538,"selected-month-number"],selectedYear:[1538,"selected-year"],startYear:[1538,"start-year"],endYear:[1538,"end-year"],appearance:[1],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],panelDisabled:[4,"panel-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],expandedMonthPicker:[1540,"expanded-month-picker"],expandedYearPicker:[1540,"expanded-year-picker"],onPreviousChange:[16],onNextChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],panelMonth:[32],panelMonthNumber:[32],panelYear:[32],panelDisplayValue:[32],internalPreviousDisabled:[32],internalNextDisabled:[32]},void 0,{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}]);function ra(){typeof customElements<"u"&&["gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dropdown-picker"].forEach((e=>{switch(e){case"gids-calendar-header-panel":customElements.get(e)||customElements.define(e,na);break;case"gids-calendar-month-list":customElements.get(e)||ni();break;case"gids-calendar-year-list":customElements.get(e)||ri();break;case"gids-dropdown-picker":customElements.get(e)||oi()}}))}ra();const bd=na,vd=ta,yd=sa,oa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return n(P,{key:"fa62d0348525269257a5bc8f896f4639fc78c206",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function li(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,oa))}))}li();const{getGidsDotClassNames:di}=Hr,la=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=di({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=di({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=di({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return n("gids-icon",{key:"210eb96840d97372d7d07ad3b139d2a0fe6705f3",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function da(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,la);break;case"gids-icon":customElements.get(e)||li()}}))}da();const{getGidsCalendarCellClassNames:_d}=kr,ca=({label:e,dot:t,disabled:i,selected:s,today:a,onPressCalendarCell:r,class:o,role:l="gridcell",cellType:d="effective",...h})=>{const c=!i&&d==="effective";return n("button",{class:_d({disabled:i,selected:s,today:a,cellType:d,dot:t},o),type:"button",role:l,"aria-selected":s?"true":"false",disabled:i,onClick:g=>{if(g.defaultPrevented||i||!c)return;const p=new CustomEvent("onPressCalendarCell",{bubbles:!0,composed:!0,detail:{cellValue:e,selected:s,disabled:i,dot:t,today:a}});r&&r(p)},...h},e?n("span",null,e):null,t?n("gids-dot",{appearance:(()=>{let g="subtle";return s&&!i&&(g="static-inverse"),g})(),disabled:i,size:"xs"}):null)},{getGidsCalendarDayCellClassNames:xd}=Er,Cd=({id:e,label:t,class:i,...s})=>n(ca,{...s,id:e,label:t,name:t,dot:!1,disabled:!1,selected:!1,today:!1,cellType:"non-effective",class:xd(i)}),{getGidsCalendarClassNames:wd,generateCalendarDays:Sd,generateCalendarWeekdays:Id}=Lr,{getCalendarMonthNameViaMonthNumber:kd}=as,ga=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.panelActionsAppearance="primary",this.dotVisibleDates=[],this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.panelDisabled=!1,this.currentMonth=new Date().getMonth()+1,this.currentYear=new Date().getFullYear(),this.handleCHPOnPreviousActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPreviousChange&&this.onPreviousChange(t))},this.handleCHPOnNextActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onNextChange&&this.onNextChange(t))},this.handleCHPOnPanelMonthChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelMonthChange&&this.onPanelMonthChange(t))},this.handleCHPOnPanelYearChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelYearChange&&this.onPanelYearChange(t))},this.setLocalStates=t=>{const{monthNumber:i,year:s}=t;i&&(this.currentMonth=Number(i)),s&&(this.currentYear=Number(s))}}handleActiveMonthPropChange(e){e!=null&&(this.currentMonth=Number(e))}handleActiveYearPropChange(e){e!=null&&(this.currentYear=Number(e))}componentWillLoad(){this.activeMonthNumber!=null&&(this.currentMonth=Number(this.activeMonthNumber)),this.activeYear!=null&&(this.currentYear=Number(this.activeYear))}handleDateCellClick({event:e,dateStr:t,isCurrentMonth:i}){if(e?.detail?.disabled)return;const a=new Date().toISOString().split("T")[0],r=kd(this.currentMonth);this.onSelectionCalendarCell&&this.onSelectionCalendarCell({currentActivePanelState:{monthNumber:this.currentMonth,year:this.currentYear,month:r,panelValue:`${r} ${this.currentYear}`},date:t,isCurrentMonth:i,selected:!0,today:a===t,dotVisibleDates:this.dotVisibleDates??[]})}render(){const e=Sd({currentYear:this.currentYear,currentMonth:this.currentMonth}),t=Id(),i=wd({width:this.width});return n("div",{key:"2c0b0aabd29227e2d3bb4a00145723f71e370162",class:i},n("gids-calendar-header-panel",{key:"e551833b25bb390b53f9f3ca59e0273057873d4c",appearance:this.panelActionsAppearance,startYear:this.startYear,endYear:this.endYear,monthPickerDisabled:this.monthPickerDisabled,yearPickerDisabled:this.yearPickerDisabled,previousDisabled:this.previousDisabled,nextDisabled:this.nextDisabled,panelDisabled:this.panelDisabled,selectedMonthNumber:this.currentMonth,selectedYear:this.currentYear,onPanelMonthChange:this.handleCHPOnPanelMonthChangeEvent,onPanelYearChange:this.handleCHPOnPanelYearChangeEvent,onNextChange:this.handleCHPOnNextActionEvent,onPreviousChange:this.handleCHPOnPreviousActionEvent}),n("div",{key:"d02b06de077654c77e6b25153c610708363ecc9c",class:"gids-calendar__weekdays-grid"},t.map((s=>n(Cd,{label:s})))),n("div",{key:"754ad8f9abb1f5c263f08fa173477eff429c2b1b",class:"gids-calendar__days-grid"},e.map((s=>{const a=this.selectedDate===s.dateString,r=this.dotVisibleDates?.includes(s.dateString);return n(ca,{label:s.day+"",today:s.isToday,selected:a,dot:r,cellType:"effective",disabled:!s.isCurrentMonth,onPressCalendarCell:o=>this.handleDateCellClick({event:o,dateStr:s.dateString,isCurrentMonth:s.isCurrentMonth})})}))))}static get watchers(){return{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}}static get style(){return".gids-calendar{display:flex;flex-direction:column;background-color:transparent;box-sizing:border-box;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-300);gap:var(--gids-gap-200)}.gids-calendar--width-fixed{width:100%;max-width:var(--gids-width-xs)}.gids-calendar--width-intrinsic{width:100%;max-width:100%}.gids-calendar--width-intrinsic .gids-calendar-cell{--cell-width:100%;--cell-aspect-ratio:1 / 1}.gids-calendar__weekdays-grid{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center;align-items:center;width:100%}.gids-calendar__days-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:var(--gids-gap-050);justify-items:center;align-items:center;width:100%}"}},[0,"gids-calendar",{width:[1],panelActionsAppearance:[1,"panel-actions-appearance"],selectedDate:[1,"selected-date"],dotVisibleDates:[16],startYear:[2,"start-year"],endYear:[2,"end-year"],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],panelDisabled:[4,"panel-disabled"],activeMonthNumber:[2,"active-month-number"],activeYear:[2,"active-year"],onNextChange:[16],onPreviousChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],onSelectionCalendarCell:[16],currentMonth:[32],currentYear:[32]},void 0,{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}]);function Ed(){typeof customElements<"u"&&["gids-calendar","gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dot","gids-dropdown-picker","gids-icon"].forEach((e=>{switch(e){case"gids-calendar":customElements.get(e)||customElements.define(e,ga);break;case"gids-calendar-header-panel":customElements.get(e)||ra();break;case"gids-calendar-month-list":customElements.get(e)||ni();break;case"gids-calendar-year-list":customElements.get(e)||ri();break;case"gids-dot":customElements.get(e)||da();break;case"gids-dropdown-picker":customElements.get(e)||oi();break;case"gids-icon":customElements.get(e)||li()}}))}Ed();const Td=ga,{getGidsCarouselControlClassNames:Ld,getGidsCarouselControlBtnClassNames:ft}=Mr,Pd=({leftControlDisabled:e,rightControlDisabled:t,leftControlIcon:i,rightControlIcon:s,size:a="md",onClick:r,class:o})=>n("div",{class:Ld(o)},n("button",{type:"button",disabled:!!e,class:e?ft({size:a})+" gids-carousel-control__disabled":""+ft({size:a}),"aria-label":"Left control",onClick:l=>r?.({originalEvent:l,controlType:"left"})},i||n(P,{name:"arrow-left",size:a!=="xl"?a:"lg",appearance:"regular"})),n("button",{type:"button",disabled:!!t,class:t?ft({size:a})+" gids-carousel-control__disabled":""+ft({size:a}),"aria-label":"Right control",onClick:l=>r?.({originalEvent:l,controlType:"right"})},s||n(P,{name:"arrow-right",size:a!=="xl"?a:"lg",appearance:"regular"}))),{getGidsCarouselPaginationItemClassNames:Md}=Ar,Ad=({id:e="carousel-pagination-item-1",active:t=!1,index:i=0,size:s="sm",onClickPaginationItem:a,class:r})=>n("button",{class:Md({active:t,size:s},r),id:e,type:"button",role:"tab","aria-label":"Go to slide "+(i+1),"aria-selected":t?"true":"false",onClick:o=>{a&&a({originalEvent:o,id:e,active:t,index:i})}}),{getGidsCarouselPaginationClassNames:Dd}=Dr,zd=({numberOfItems:e=1,currentIndex:t,size:i="md",onClickPagination:s,class:a})=>{const r=d=>"carousel-pagination-item-"+(d+1),o=d=>d===t,l=d=>{s&&s({originalEvent:d?.originalEvent,id:r(d.index),index:d.index,active:o(d.index),currentIndex:t})};return n("div",{class:Dd(a),"number-of-items":""+e,"current-index":""+t},Array.from({length:e},((d,h)=>n(Ad,{key:h,index:h,id:r(h),active:o(h),size:i,onClickPaginationItem:l}))))},{getGidsCarouselClassNames:Nd}=zr,ha=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.slides=[],this.autoplay=!1,this.autoplayInterval=5e3,this.loop=!0,this.showControls=!1,this.showPagination=!1,this.pauseOnHover=!0,this.currentIndex=0,this.isDragging=!1,this.pointerStartX=0,this.pointerCurrentX=0,this.isPointerDown=!1,this.swipeThreshold=50,this.visibleSlides=3,this.goToNextSlide=()=>{this.goToSlide(this.currentIndex+1)},this.goToPreviousSlide=()=>{this.goToSlide(this.currentIndex-1)},this.handleMouseEnter=()=>{this.pauseOnHover&&this.stopAutoplay()},this.handleMouseLeave=()=>{this.pauseOnHover&&this.startAutoplay()},this.handlePointerDown=t=>{this.isPointerDown=!0,this.pointerStartX=t.clientX,this.pointerCurrentX=t.clientX,this.isDragging=!0,this.stopAutoplay();const i=t.currentTarget;i instanceof E&&i.setPointerCapture(t.pointerId)},this.handlePointerMove=t=>{this.isPointerDown&&(this.pointerCurrentX=t.clientX)},this.handlePointerUp=t=>{if(!this.isPointerDown)return;const i=this.pointerCurrentX-this.pointerStartX;this.isPointerDown=!1,this.isDragging=!1;const s=t.currentTarget;s instanceof E&&s.hasPointerCapture(t.pointerId)&&s.releasePointerCapture(t.pointerId),Math.abs(i)>=this.swipeThreshold?i<0?this.goToNextSlide():this.goToPreviousSlide():this.restartAutoplay()},this.handlePointerCancel=()=>{this.isPointerDown=!1,this.isDragging=!1,this.restartAutoplay()},this.handleKeyDown=t=>{switch(t.key){case"ArrowRight":t.preventDefault(),this.goToNextSlide();break;case"ArrowLeft":t.preventDefault(),this.goToPreviousSlide();break;case"Home":t.preventDefault(),this.goToSlide(0);break;case"End":t.preventDefault(),this.goToSlide(this.getSlideCount()-1)}},this.onClickCarouselControls=t=>{t?.controlType==="left"&&this.goToPreviousSlide(),t?.controlType==="right"&&this.goToNextSlide()}}componentDidLoad(){this.startAutoplay()}disconnectedCallback(){this.stopAutoplay()}handleSlidesChange(){this.slides.length?this.currentIndex>=this.slides.length&&(this.currentIndex=this.slides.length-1):this.currentIndex=0}handleAutoplayChange(){this.autoplay?this.startAutoplay():this.stopAutoplay()}handleAutoplayIntervalChange(){this.autoplay&&this.startAutoplay()}getSlideCount(){return this.slides.length}getWrappedIndex(e){const t=this.getSlideCount();return t?(e%t+t)%t:0}getRelativeOffset(e){const t=this.getSlideCount();if(!t)return 0;let i=e-this.currentIndex;return this.loop&&(i>t/2&&(i-=t),i<-t/2&&(i+=t)),i}goToSlide(e){const t=this.getSlideCount();if(!t)return;const i=this.loop?this.getWrappedIndex(e):Math.max(0,Math.min(e,t-1));this.currentIndex=i,this.restartAutoplay()}startAutoplay(){!this.autoplay||this.getSlideCount()<=1||(this.stopAutoplay(),this.autoplayTimer=setInterval((()=>{this.isDragging||this.goToNextSlide()}),Math.max(1e3,this.autoplayInterval)))}stopAutoplay(){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=void 0)}restartAutoplay(){this.autoplay&&this.startAutoplay()}getSlideStyle(e){const t=this.getRelativeOffset(e),i=Math.abs(t);return{"--gidsCarousel-x":360*t+"px","--gidsCarousel-z":(i===0?180:-80*i)+"px","--gidsCarousel-rotate-y":-16*t+"deg","--gidsCarousel-scale":(i===0?1:Math.max(.78,1-.055*i))+"",zIndex:100-i+"",opacity:(i>this.visibleSlides?0:Math.max(.58,1-.14*i))+""}}getImageStyle(e){return{objectFit:e.content?.objectFit||"cover"}}renderSlide(e,t){const i=this.getRelativeOffset(t);if(Math.abs(i)>this.visibleSlides)return null;const s=t===this.currentIndex,a=e.content?.src?n("img",{class:"gids-carousel__image",src:e.content.src,alt:e.content.alt||"",width:e.content.width,height:e.content.height,style:this.getImageStyle(e),draggable:!1}):n("div",{class:"gids-carousel__image-placeholder"}),r=e.href?n("a",{class:"gids-carousel__slide-link",href:e.href,"aria-label":e.label||e.content?.alt||"Slide "+(t+1),tabIndex:s?0:-1},a):a;return n("article",{class:{"gids-carousel__slide":!0,"gids-carousel__slide--active":s},style:this.getSlideStyle(t),key:e.id,"aria-hidden":!s},n("div",{class:{"gids-carousel__card":!0,"gids-carousel__card--dragging":this.isDragging}},r),e.label?n("div",{class:"gids-carousel__slide-info"},n("div",{class:"gids-carousel__slide-number"},"#",(t+1+"").padStart(2,"0")),n("div",{class:"gids-carousel__slide-label"},e.label)):null)}renderControls(){return!this.showControls||this.getSlideCount()<=1?null:n(Pd,{class:"gids-carousel__controls",onClick:this.onClickCarouselControls,size:"lg"})}renderPagination(){return!this.showPagination||this.getSlideCount()<=1?null:n(zd,{numberOfItems:(this?.slides??[]).length,currentIndex:this.currentIndex,onClickPagination:e=>{this.currentIndex=e.index,this.goToSlide(e.index)},class:"gids-carousel__pagination"})}render(){const e=Nd();return this.slides.length?n($,{class:e,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},n("section",{class:"gids-carousel__container","aria-roledescription":"carousel","aria-label":this.labelTitle||"Carousel"},n("div",{class:{"gids-carousel__viewport":!0,"gids-carousel__viewport--dragging":this.isDragging},tabIndex:0,onKeyDown:this.handleKeyDown,onPointerDown:this.handlePointerDown,onPointerMove:this.handlePointerMove,onPointerUp:this.handlePointerUp,onPointerCancel:this.handlePointerCancel},n("div",{class:"gids-carousel__stage"},this.slides.map(((t,i)=>this.renderSlide(t,i))))),this.renderControls(),this.renderPagination())):n($,{class:e})}static get watchers(){return{slides:[{handleSlidesChange:0}],autoplay:[{handleAutoplayChange:0}],autoplayInterval:[{handleAutoplayIntervalChange:0}]}}static get style(){return".gids-carousel{display:block;width:100%;--gidsCarousel-accent:var( --gids-color-background-brand-bold-default, currentColor );--gidsCarousel-text:var(--gids-color-text-information, currentColor);--gidsCarousel-surface:transparent;--gidsCarouselCard-width:320px;--gidsCarouselCard-height:430px;--gidsCarouselInfo-space:52px;--gidsCarouselVertical-space:80px;--gidsCarousel-step:360px;}.gids-carousel__container{position:relative;width:100%;overflow:visible}.gids-carousel{}.gids-carousel__viewport{position:relative;width:100%;min-height:calc(var(--gidsCarouselCard-height) + var(--gidsCarouselInfo-space) + var(--gidsCarouselVertical-space));padding-block:40px;box-sizing:border-box;overflow:visible;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;outline:none}.gids-carousel__viewport:focus-visible{outline:2px solid var(--gidsCarousel-accent);outline-offset:-2px}.gids-carousel__viewport--dragging{cursor:grabbing}.gids-carousel__viewport--dragging .gids-carousel__slide,.gids-carousel__viewport--dragging .gids-carousel__card{transition:none}.gids-carousel{}.gids-carousel__stage{position:relative;width:100%;min-height:calc(var(--gidsCarouselCard-height) + var(--gidsCarouselInfo-space) + var(--gidsCarouselVertical-space));display:flex;align-items:center;justify-content:center;perspective:1200px;perspective-origin:50% 50%;transform-style:preserve-3d}.gids-carousel{}.gids-carousel__slide{position:absolute;top:calc(50% - var(--gidsCarouselInfo-space) / 2);left:50%;width:var(--gidsCarouselCard-width);display:flex;flex-direction:column;align-items:stretch;transform:translate3d(calc(-50% + var(--gidsCarousel-x)), -50%, var(--gidsCarousel-z)) rotateY(var(--gidsCarousel-rotate-y)) scale(var(--gidsCarousel-scale));transform-origin:center center;transform-style:preserve-3d;transition:transform 750ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;will-change:transform, opacity;backface-visibility:hidden}.gids-carousel{}.gids-carousel__card{position:relative;width:100%;height:var(--gidsCarouselCard-height);overflow:hidden;border-radius:var(--gidsBorderRadius-300, 16px);background:var(--gidsCarousel-surface);transform-style:preserve-3d;backface-visibility:hidden;transition:box-shadow 600ms ease, filter 600ms ease}.gids-carousel__card--dragging{transition:none}.gids-carousel{}.gids-carousel__slide--active .gids-carousel__card{box-shadow:none;filter:none}.gids-carousel__slide--active .gids-carousel__slide-info{opacity:1;transform:translateY(0)}.gids-carousel{}.gids-carousel__slide-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none;outline:none}.gids-carousel__slide-link:focus-visible{outline:var(--gids-border-width-focused) solid var(--gidsCarousel-accent);outline-offset:-2px}.gids-carousel__image{display:block;width:100%;height:100%;object-position:center;user-select:none;-webkit-user-drag:none}.gids-carousel__image-placeholder{width:100%;height:100%;background:var(--gidsCarousel-surface)}.gids-carousel{}.gids-carousel__slide-info{display:flex;flex-direction:column;align-items:flex-start;gap:var(--gids-gap-075);min-height:var(--gidsCarouselInfo-space);padding-top:var(--gids-padding-vertical-edge-to-element-200);box-sizing:border-box;color:var(--gidsCarousel-text);opacity:0.72;transform:translateY(4px);transition:opacity 450ms ease, transform 450ms ease}.gids-carousel__slide-number{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gidsCarousel-accent)}.gids-carousel__slide-label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gids-carousel{}.gids-carousel__controls{position:absolute;right:var(--gids-padding-horizontal-edge-to-element-300);bottom:var(--gids-padding-vertical-edge-to-element-300);z-index:200}.gids-carousel{}.gids-carousel__pagination{margin-top:var(--gids-padding-vertical-edge-to-element-250)}.gids-carousel{}@media (max-width: 1024px){.gids-carousel{--gidsCarouselCard-width:250px;--gidsCarouselCard-height:350px;--gidsCarouselInfo-space:52px;--gidsCarouselVertical-space:72px;--gidsCarousel-step:285px}.gids-carousel__stage{perspective:1050px}}.gids-carousel{}@media (max-width: 767px){.gids-carousel{--gidsCarouselCard-width:190px;--gidsCarouselCard-height:275px;--gidsCarouselInfo-space:48px;--gidsCarouselVertical-space:64px;--gidsCarousel-step:215px}.gids-carousel__stage{perspective:900px}.gids-carousel__slide-info{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);gap:var(--gids-gap-050)}.gids-carousel__slide-number{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-carousel__slide-label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-carousel .gids-carousel-control{right:var(--gids-padding-horizontal-edge-to-element-200);bottom:var(--gids-padding-horizontal-edge-to-element-200)}.gids-carousel .gids-carousel-control__control{width:var(--gids-size-360);height:var(--gids-size-360)}}.gids-carousel{}@media (max-width: 480px){.gids-carousel{--gidsCarouselCard-width:155px;--gidsCarouselCard-height:225px;--gidsCarouselInfo-space:44px;--gidsCarouselVertical-space:56px;--gidsCarousel-step:175px}.gids-carousel__stage{perspective:800px}.gids-carousel__card{border-radius:var(--gids-border-radius-lg)}.gids-carousel__slide-info{padding-top:var(--gids-padding-horizontal-edge-to-element-100)}.gids-carousel__slide-label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}}.gids-carousel{}@media (prefers-reduced-motion: reduce){.gids-carousel__slide,.gids-carousel__card,.gids-carousel__slide-info,.gids-carousel__control{transition:none}}"}},[0,"gids-carousel",{slides:[16],labelTitle:[1,"label-title"],autoplay:[4],autoplayInterval:[2,"autoplay-interval"],loop:[4],showControls:[4,"show-controls"],showPagination:[4,"show-pagination"],pauseOnHover:[4,"pause-on-hover"],currentIndex:[32],isDragging:[32]},void 0,{slides:[{handleSlidesChange:0}],autoplay:[{handleAutoplayChange:0}],autoplayInterval:[{handleAutoplayIntervalChange:0}]}]);function $d(){typeof customElements<"u"&&["gids-carousel"].forEach((e=>{e==="gids-carousel"&&(customElements.get(e)||customElements.define(e,ha))}))}$d();const Fd=ha,Od=xs,Bd=_s,{getGidsButtonDockClassNames:Vd}=wr,Rd=({class:e,primaryChildren:t,secondaryChildren:i,...s})=>n("div",{class:Vd(e),...s},n("div",{class:"gids-button-dock__secondary-area"},i),n("div",{class:"gids-button-dock__primary-area"},t)),{getGidsFeedbackBlockClassNames:Gd}=eo,je=({title:e,supportingText:t,image:i,children:s})=>n("div",{class:Gd()},n("div",{class:"gids-feedback-block__inner-container"},i&&n("div",{class:"gids-feedback-block__image-container"},i),n("p",{class:"gids-feedback-block__title"},n("strong",null,e)),n("div",{class:"gids-feedback-block__supporting-text"},t),s&&n(Rd,{primaryChildren:s}))),{getGidsLevelGaugeClassNames:Hd}=lo,pa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.label="Completed",this.size="xxs",this.color="amber",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-level-gauge__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));let e=0;typeof this.value=="number"&&!isNaN(this.value)&&(e=this.value);const t=ts;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=t&&this.value>=0))return n("div",{class:"gids-level-gauge__no-data"},n(je,{title:is,supportingText:ss(100),image:n("slot",{name:"chartFeedbackBlockImage"})}));const i=Math.min(Math.max(e/t,0),1),s=`${Math.round(100*i)}%`,a=Hd({breakpoint:this.breakpoint}),r=2*Math.PI*40,o=`${i*r} ${r}`,l=this.size==="xxs";return n("div",{class:a},n("div",{class:`gids-level-gauge__main-container gids-level-gauge__main-container--variant-${this.color}`},n("div",{class:`gids-level-gauge__svg-wrapper gids-level-gauge__svg-wrapper--size-${this.size}`},n("svg",{viewBox:"0 0 100 100",class:"gids-level-gauge__chart-vector"},n("circle",{cx:"50",cy:"50",r:40,class:"gids-level-gauge__track-background"}),n("circle",{cx:"50",cy:"50",r:40,class:`gids-level-gauge__segment gids-level-gauge__segment--variant-${this.color}`,"stroke-dasharray":o,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"})),n("div",{class:"gids-level-gauge__center-content"},l?null:n("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label),n("span",{class:`gids-level-gauge__percentage-common gids-level-gauge__percentage-${this.size}`},s))),l?n("div",{class:"gids-level-gauge__bottom-content"},n("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],max:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-level-gauge{display:block;box-sizing:border-box}.gids-level-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-level-gauge__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-level-gauge__svg-wrapper--size-xxs{width:180px;height:180px}.gids-level-gauge__svg-wrapper--size-xs{width:220px;height:220px}.gids-level-gauge__svg-wrapper--size-sm{width:260px;height:260px}.gids-level-gauge__svg-wrapper--size-md{width:300px;height:300px}.gids-level-gauge__svg-wrapper--size-lg{width:340px;height:340px}.gids-level-gauge__chart-vector{display:block;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__main-container{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-level-gauge__main-container--variant-amber .gids-level-gauge__track-background{stroke:rgb(248, 248, 248)}.gids-level-gauge__main-container--variant-burgundy .gids-level-gauge__track-background{stroke:rgb(246, 243, 243)}.gids-level-gauge__main-container--variant-teal .gids-level-gauge__track-background{stroke:rgb(232, 245, 250)}.gids-level-gauge__track-background{fill:none;stroke-width:6}.gids-level-gauge__segment{fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-level-gauge__segment--variant-amber{stroke:rgb(80, 82, 88)}.gids-level-gauge__segment--variant-burgundy{stroke:rgb(132, 84, 95)}.gids-level-gauge__segment--variant-teal{stroke:rgb(23, 60, 102)}.gids-level-gauge{}.gids-level-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;gap:var(--gids-gap-025)}.gids-level-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-md{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-level-gauge__label-lg{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-level-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-level-gauge__percentage-xxs{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-level-gauge__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-common{color:var(--gids-color-text-default)}.gids-level-gauge{}.gids-level-gauge__bottom-content{display:flex;justify-content:center;text-align:center}.gids-level-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[260,"gids-level-gauge",{breakpoint:[1],value:[2],label:[1],size:[1],color:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],max:[{valueChanged:0}]}]);function ua(){typeof customElements<"u"&&["gids-level-gauge"].forEach((e=>{e==="gids-level-gauge"&&(customElements.get(e)||customElements.define(e,pa))}))}ua();const{getGidsLineChartClassNames:jd}=co,ma=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0,this.hoveredIndex=null,this.tooltip={visible:!1,x:0,y:0}}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}getTooltipItems(e){return this.chartData.reduce(((t,i)=>{const s=i.data[e];return s&&t.push({label:i?.label??"",value:String(s.value),seriesIndicatorColor:i?.seriesColor??""}),t}),[])}render(){if(this.chartLoading)return n("div",{class:"gids-line-chart__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.flatMap((p=>Array.isArray(p?.data)?p.data.map((m=>m.value)):[])),t=e.length>0?Math.max(...e):10,i=Math.pow(10,Math.floor(Math.log10(t||1)));let s=i;t/i<=2?s=i/5:t/i<=5&&(s=i/2);const a=Math.ceil(t/s)*s;let r=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0)r=[...this.dataPoints].sort(((p,m)=>p-m));else{const m=a/4;for(let u=0;u<5;u++)r.push(Math.round(0+u*m))}const o=Math.max(...r,a)-0||1,l=this?.chartData?.[0]?.data?.map((p=>p.label))??[],d=l.length,h=jd({breakpoint:this.breakpoint});let c=!1,g=!1;return this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(g=!0),n("div",{class:h},c?n("div",{class:"gids-line-chart__header"},n("gids-chart-legend",{orientation:"horizontal"},this.chartData.map((p=>n("gids-chart-legend-item",{key:p.label,seriesColor:p?.seriesColor,orientation:"horizontal"},p.label))))):null,n("div",{class:"gids-line-chart__main-container"},n("div",{class:"gids-line-chart__grid-layout"},n("span",{class:"gids-line-chart__y-axis-label"},this.yAxisLabel),n("div",{class:"gids-line-chart__chart-stage-container"},this.yAxisVisible?n("div",{class:"gids-line-chart__y-axis-scale-container"},r.map((p=>n("span",{id:"y-value",class:"gids-line-chart__scale-text gids-line-chart__y-axis-scale-value",key:p,style:{bottom:(p-0)/o*100+"%"}},p)))):null,n("div",{class:"gids-line-chart__chart-stage"},n("svg",{viewBox:"0 0 100 100",class:"gids-line-chart__chart-vector",preserveAspectRatio:"none"},n("defs",null,this.chartData.map(((p,m)=>{const u=p?.fillGradientStartColor,f=p?.fillGradientEndColor;return n("linearGradient",{id:`areaGradient-${m}`,x1:"0",y1:"0",x2:"0",y2:"1",key:m},n("stop",{offset:"0%",style:{stopColor:u,stopOpacity:"1"}}),n("stop",{offset:"100%",style:{stopColor:f,stopOpacity:"0"}}))}))),r.map((p=>{const m=100-(p-0)/o*100;return n("line",{x1:"0",y1:m,x2:"100",y2:m,class:"gids-line-chart__grid-line",key:p})})),this.chartData.map(((p,m)=>{if(!Array.isArray(p.data)||p.data.length<2)return null;const u=p.data.map(((f,v)=>`${v===0?"M":"L"} ${v/(d-1)*100} ${100-(f.value-0)/o*100}`)).join(" ");return n("g",{key:p.label||m},n("path",{d:`${u} L 100 100 L 0 100 Z`,fill:`url(#areaGradient-${m})`,opacity:p?.fillOpacity??"0.1",class:"gids-line-chart__chart-area"}),n("path",{d:u,class:"gids-line-chart__chart-line",fill:"none",style:{stroke:p?.seriesColor,strokeWidth:"2px"}}))})),n("rect",{x:"0",y:"0",width:"100",height:"100",fill:"transparent","pointer-events":"all",onMouseMove:p=>{const m=p.currentTarget.getBoundingClientRect(),u=Math.round((p.clientX-m.left)/m.width*(d-1));this.hoveredIndex=u,this.tooltip={visible:!0,x:p.clientX,y:p.clientY}},onMouseLeave:()=>{this.hoveredIndex=null,this.tooltip={...this.tooltip,visible:!1}}})),this.hoveredIndex!==null&&this.chartData.map(((p,m)=>{if(this.hoveredIndex===null)return;const u=this.hoveredIndex,f=p.data[u];return f?n("div",{id:`chart-dot-${m}`,class:"gids-line-chart__hover-dot",style:{left:u/(d-1)*100+"%",top:100-(f.value-0)/o*100+"%"}},n(P,{name:"new",size:"xs",appearance:"filled",style:{"--gidsIcon-color":p.seriesColor}})):null})),n("gids-advanced-tooltip",{visible:this.tooltip.visible,x:this.tooltip.x,y:this.tooltip.y,items:this.hoveredIndex!==null?this.getTooltipItems(this.hoveredIndex):[]}))),n("div",{class:"gids-line-chart__x-axis-scale-container"},l.map(((p,m)=>n("span",{class:"gids-line-chart__scale-text",key:m},p)))),n("span",{class:"gids-line-chart__x-axis-label"},this.xAxisLabel)),g?n("gids-chart-legend",{orientation:"vertical"},this.chartData.map((p=>n("gids-chart-legend-item",{key:p.label,seriesColor:p?.seriesColor,orientation:"vertical"},p.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-line-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-600);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-line-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-line-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%);margin-right:var(--gids-padding-horizontal-edge-to-element-100)}.gids-line-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-200);gap:var(--gids-gap-050);box-sizing:border-box}.gids-line-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-line-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-line-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}.gids-line-chart__hover-dot{position:absolute;transform:translate(-50%, -50%);pointer-events:none;z-index:20}"}},[0,"gids-line-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32],hoveredIndex:[32],tooltip:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function fa(){typeof customElements<"u"&&["gids-line-chart","gids-advanced-tooltip","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-line-chart":customElements.get(e)||customElements.define(e,ma);break;case"gids-advanced-tooltip":customElements.get(e)||mt();break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}fa();const{getGidsPieChartClassNames:Yd}=yo,ba=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-pie-chart__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((l,d)=>l+(d.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,a=Yd({breakpoint:this.breakpoint}),r=2*Math.PI*25;let o=0;return n("div",{class:a},n("div",{class:"gids-pie-chart__main-container"},n("div",{class:"gids-pie-chart__chart-stage-container"},n("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},n("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},n("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((l,d)=>{const h=(l.value||0)/s,c=`${h*r} ${r}`,g=-o*r;return o+=h,n("circle",{key:l.label||d,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${d+1}`,"stroke-dasharray":c,"stroke-dashoffset":g,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?n("div",{class:"gids-pie-chart__legend-container"},n("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((l,d)=>n("gids-chart-legend-item",{key:l.label,seriesType:`${d+1}`,orientation:"vertical"},l.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function va(){typeof customElements<"u"&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-pie-chart":customElements.get(e)||customElements.define(e,ba);break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se()}}))}va();const{getGidsProgressCircleClassNames:qd}=wo,ya=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.shape="circle",this.label="",this.size="xs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return n("div",{class:"gids-progress-circle__no-data"},n(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.shape==="half-circle"?pr:ts;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return n("div",{class:"gids-progress-circle__no-data"},n(je,{title:is,supportingText:ss(e)}));const t=this.value/e,i=`${this.value}%`,s=qd({breakpoint:this.breakpoint}),a=this.shape==="half-circle";let r=2*Math.PI*40,o=t*r,l=0,d="0 0 100 100",h="rotate(-90 50 50)";a&&(r=40*Math.PI,o=t*r,l=0,d="0 0 100 50",h="");const c=this.size==="xxs",g=typeof this.label=="string"&&this.label.trim()!=="";return n("div",{class:s},n("div",{class:"gids-progress-circle__main-container"},n("div",{class:`gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}`},n("svg",{viewBox:d,class:"gids-progress-circle__chart-vector"},a?n("g",null,n("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__track-background"}),n("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${r}`,"stroke-dashoffset":l})):n("g",null,n("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__track-background"}),n("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${r}`,"stroke-dashoffset":l,transform:h}))),n("div",{class:`gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}`},g&&!c?n("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label):null,n("span",{class:`gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}`},i))),c&&g?n("div",{class:"gids-progress-circle__bottom-content"},n("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],shape:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-md{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-progress-circle__label-lg{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-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{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-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-progress-circle",{breakpoint:[1],value:[2],shape:[1],label:[1],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],shape:[{valueChanged:0}]}]);function _a(){typeof customElements<"u"&&["gids-progress-circle"].forEach((e=>{e==="gids-progress-circle"&&(customElements.get(e)||customElements.define(e,ya))}))}_a();const{getGidsChartClassNames:Wd}=Fr,xa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartType="line-chart",this.getChartTypes=()=>["line-chart","bar-chart","pie-chart","activity-gauge","level-gauge","progress-circle","radar-chart"],this.isChartTypeValid=()=>{const t=this.getChartTypes(),i=this.chartType;return!(!i||!t.includes(i))},this.isChartDataValid=()=>{const t=this.chartType;if(t==="line-chart"){const i=this.lineChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="bar-chart"){const i=this.barChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="pie-chart"){const i=this.pieChartProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}if(t==="activity-gauge"){const i=this.activityGaugeProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}return t==="level-gauge"||t==="progress-circle"||t==="radar-chart"},this.getChartTypeText=()=>{const t=this.chartType;if(t){const i=t.split("-");let s="";return i.map(((a,r)=>{s=r===0?""+a:`${s} ${a}`})),s}return""}}handleBreakpointChange(e){this.breakpoint=e}handleChartTypeChange(e){this.chartType=e}render(){if(!this.isChartTypeValid())return n("div",{class:"gids-chart__no-data"},n(je,{title:ur,supportingText:mr(this.getChartTypes().join(", "))}));const e=this.isChartDataValid(),t=this.getChartTypeText();if(!e)return n("div",{class:"gids-activity-gauge__no-data"},n(je,{title:gr,supportingText:hr(t)}));const i=Wd(),s=this.chartType,a=this.barChartProps,r=this.pieChartProps,o=this.activityGaugeProps,l=this.levelGaugeProps,d=this.progressCircleProps;return n("div",{class:i},s==="line-chart"?n("gids-line-chart",{...this.lineChartProps,breakpoint:this.breakpoint}):null,s==="bar-chart"?n("gids-bar-chart",{...a,breakpoint:this.breakpoint}):null,s==="pie-chart"?n("gids-pie-chart",{...r,breakpoint:this.breakpoint}):null,s==="activity-gauge"?n("gids-activity-gauge",{...o,breakpoint:this.breakpoint}):null,s==="level-gauge"?n("gids-level-gauge",{...l,breakpoint:this.breakpoint}):null,s==="progress-circle"?n("gids-progress-circle",{...d,breakpoint:this.breakpoint}):null,s==="radar-chart"?n("div",{class:"gids-chart__no-data"},n(je,{title:"Coming Soon!",supportingText:"Radar chart is under progress. This will be available in next major version of GIDS."})):null)}static get watchers(){return{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}}static get style(){return".gids-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-chart",{breakpoint:[1],chartType:[1,"chart-type"],lineChartProps:[16],barChartProps:[16],pieChartProps:[16],activityGaugeProps:[16],levelGaugeProps:[16],progressCircleProps:[16]},void 0,{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}]);function Ud(){typeof customElements<"u"&&["gids-chart","gids-activity-gauge","gids-advanced-tooltip","gids-bar-chart","gids-chart-legend","gids-chart-legend-item","gids-level-gauge","gids-line-chart","gids-pie-chart","gids-progress-circle"].forEach((e=>{switch(e){case"gids-chart":customElements.get(e)||customElements.define(e,xa);break;case"gids-activity-gauge":customElements.get(e)||ws();break;case"gids-advanced-tooltip":customElements.get(e)||mt();break;case"gids-bar-chart":customElements.get(e)||Zs();break;case"gids-chart-legend":customElements.get(e)||we();break;case"gids-chart-legend-item":customElements.get(e)||Se();break;case"gids-level-gauge":customElements.get(e)||ua();break;case"gids-line-chart":customElements.get(e)||fa();break;case"gids-pie-chart":customElements.get(e)||va();break;case"gids-progress-circle":customElements.get(e)||_a()}}))}Ud();const Xd=xa,{getGidsChevronButtonClassNames:ci}=Br,Ca=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=De(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=ci({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ci({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=ci({size:this.size},this.extraClasses)}render(){return n("button",{key:"7e0823990f53a8836996a10f7fc1d36853b3e656",class:this.activeClasses,slot:"trailingAccessory",type:"button",onClick:e=>this.gidsChevronButton.emit(e),"aria-label":this?.ariaLabel??"","aria-expanded":this?.ariaExpanded??"","aria-haspopup":this?.ariaHaspopup??"","aria-controls":this?.ariaControls??"",disabled:this.disabled,tabIndex:-1},n("span",{key:"d54d73ef7ca78bab59236859c695f25482ab556a",class:"gids-button__content"},n(P,{key:"914adbc2dcf44b8bf6e52cfa003bc40a336fb5bc",name:"chevron-vertical",alt:""})))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}"}},[1,"gids-chevron-button",{extraClasses:[513,"extra-classes"],size:[513],disabled:[516],ariaLabel:[513,"aria-label"],ariaHaspopup:[513,"aria-haspopup"],ariaExpanded:[513,"aria-expanded"],ariaControls:[513,"aria-controls"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}]);function Kd(){typeof customElements<"u"&&["gids-chevron-button"].forEach((e=>{e==="gids-chevron-button"&&(customElements.get(e)||customElements.define(e,Ca))}))}Kd();const Qd=Ca,Zd=la,{getIndicatorText:Jd}=Jn,{getGidsLabelClassNames:ec}=oo,gi=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:a,htmlFor:r,labelId:o,class:l,isLabelSentence:d,...h},c)=>{const g=Jd({children:c,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:d});return n("div",{class:ec({disabled:e},l),...h},n("label",{htmlFor:r,id:o},c,g&&n("span",{class:"gids-label__field-requirement"},g)),a)},wa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(qo(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return n(ae,{key:"ecbda1a363fff11d477fc954db9521e49f2be856"},n("slot",{key:"91da6b8209b6ec8d029716c0ecd409844073dccc",name:"leadingIcon"}),this.leadingLabel&&n("span",{key:"05baed582bbe66d678ce076ad94914cbd24f1d26",class:"gids-input__label"},this.leadingLabel),n("slot",{key:"6250a740115a58f76b47c79375461f84fddc1b51",name:"leadingAccessory"}),n("input",{key:"57f082d129990ae975794483a42ac2754fd13f09",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),n("slot",{key:"ac04528c2c4f5606d507ac133b6509f6a9d5fe9e",name:"trailingAccessory"}),this.trailingLabel&&n("span",{key:"806996ab18f5c0f3e226af14703642646b4e72d8",class:"gids-input__label"},this.trailingLabel),n("slot",{key:"7efc92e65a26a6bdc0840648d1ec358767c8b7a5",name:"trailingIcon"}),this.status==="incomplete"&&n(P,{key:"17ffd9ff869b013c125dfb5fef9d4c90dd357ec0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&n(P,{key:"246410eec89d9b2d485ee92c030ca406d6047242",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&n(Gt,{key:"ef4f55e9b7fd23738c36e40e71f60e7ad54b3e8f",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Ye(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,wa))}))}Ye();const{getGidsDropdownClassNames:tc,getGidsChevronButtonControlClassNames:ic}=Ur,hi="gids-dropdown-item--active",Sa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:i,title:s,disabled:a,id:r,isPlaceholderItem:o}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,value:i,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:o}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof a!="string"||a.length===0)return;const r=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof r!="string"||r.length===0)return;const o=s.getAttribute("is-placeholder-item")??"";let l=s.textContent?.trim()??"";l.endsWith("checkmark")&&(l=l.slice(0,-9).trim()),this.applySelection({id:r,value:a,title:l.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!o||o!=="true")})},this.handleFilterInput=t=>{const i=t.target;this.filterValue=i?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const i=t.key,s=i==="ArrowDown";if((s||i==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(i==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(i==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(i==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(hi))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((a=>a.classList.remove(hi))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const i=Math.max(0,Math.min(e,t.length-1)),s=t[i];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=i,s.classList.add(hi),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const i=(t.textContent??"").toLowerCase(),s=e.length===0||i.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=a=>{t?.(a),this.handleFilterInput(a)};const i=e.onBlur;e.onBlur=a=>{i?.(a),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=a=>{s?.(a),a.defaultPrevented||this.handleInputKeyDown(a)},e}render(){const e=this.expanded&&this.isInteractive(),t=tc({expanded:e}),i=this.getEnhancedInputProps(),s=typeof i.id=="string"?i.id:void 0,a=s?`${s}__menu`:void 0;i.role="combobox",i["aria-expanded"]=e?"true":"false",i["aria-haspopup"]="listbox",i["aria-autocomplete"]="list",a&&(i["aria-controls"]=a);const r=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",o=e?"true":"false",l=n("button",{key:"9e3dac49fc4d28756ee8a3cc6acf5b3e8fbd3946",class:ic({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":o,"aria-haspopup":"listbox","aria-controls":a,disabled:this.disabled||this.readOnly,tabIndex:-1},n("span",{key:"bff0ebcd17028764e49a39510f7383cffcbcdb68",class:"gids-button__content"},n(P,{key:"d606133c6a3ef63163f8bab07a76eecaefd513c1",name:"chevron-vertical",alt:""})));return n("div",{key:"90b78fe845b07971f2ce56ceca1bf5e06d948c16",class:t},n("gids-input",{key:"06c87d5843f19553d11b7f3de1e193f605d38c8f",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:r,name:this.name,inputProps:i,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&n("slot",{key:"795e828bf59f60318522f9f6c5804969f4a4e898",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&n("slot",{key:"f94eadb4e2f8e05d9543c3ee6ce38cdf68401062",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),l),n("div",{key:"579971401473c61304064214df63b202a367446e",class:"gids-dropdown__menu",id:a,role:"listbox",onClick:this.handleMenuClick},n("slot",{key:"009f17ab13f9da11e2c3fb1464ae8ac3ec49ee39"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;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-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function Ia(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,Sa);break;case"gids-input":customElements.get(e)||Ye()}}))}Ia();const{getGidsFieldClassNames:sc}=to,ka=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const a=this._getStatusModifierClass(i,"gids-field__status-text");a!=null&&s.push(a)}return n($,{key:"b296d1365e6b518d7aafb6af439c73a01ee05973"},n("div",{key:"0713bc4c4e6d2d78f41e7383e03a5a2e670f374d",class:sc()},n("div",{key:"060131205bf2563cc9a73cadc1bfa0aaa2782dc4",class:"gids-field__header",hidden:!this._hasLabelContent()},n("slot",{key:"24d91f471b0d18a286352aeddd1f6f621ee18c96",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),n("div",{key:"82395d9990fbb76ff2036f326a825ded78e74ae8",class:"gids-field__count","aria-live":"polite"},this.count)),n("div",{key:"6240db77a53290a25b0cdba34cdb37615956b9d7",class:"gids-field__control"},n("slot",{key:"975c677a1f88761e3841e4027fdb65e3c711016b",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),n("p",{key:"404f4c44b9b32209ccdcde586bd688693b2d6022",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?n("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?n("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let a=e;return e==="error"&&(a="danger"),e==="success"&&(a="positive"),n(P,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${a})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((a=>a instanceof HTMLInputElement&&a.type==="radio"&&this._el.contains(a)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const a=i.querySelector("input, textarea");if(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)return a}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);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-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function bt(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ka))}))}bt();const Ea=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#t=st(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#t;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#t,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return n("gids-field",{key:"d71646c9bae1a4757be118a168fa62be09b46740",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?n(gi,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,n("gids-dropdown",{key:"b55cce42783d7b70f76137efd731400ef5be1933",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},n("slot",{key:"24c9c0992be8b8e7ed6ce03e85768a84185ea82e",name:"leadingIconDropdown"}),n("slot",{key:"f6521ed557b08ae3043b003b97f5c53f78d432aa",name:"leadingAccessoryDropdown"}),n("slot",{key:"7a232faa483c29db8c5b5075d5d8aa276d8b7d9e"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function ac(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,Ea);break;case"gids-dropdown":customElements.get(e)||Ia();break;case"gids-field":customElements.get(e)||bt();break;case"gids-input":customElements.get(e)||Ye()}}))}ac();const nc=Ea,rc=aa,oc=Sa,{getGidsDisplaTagClassNames:lc}=Rr,Ta=({label:e,appearance:t="subtle",color:i,size:s="md",icon:a,class:r,...o})=>n("span",{class:lc({size:s,appearance:t,color:i},r),...o},a,e),{getGidsExpansionBodyListItemClassNames:dc}=Kr,La=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.displayTagVisible=!1,this.displayTagColor="accent-5",this.displayTagSize="xs",this.displayTagAppearance="subtle",this.hasSubtitleItemListener=!1,this.hasSupportingTextItemListener=!1,this.handleSubtitleClick=t=>{this.applySubtitleSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"subtitle",originalEvent:t})},this.handleSupportingTextClick=t=>{this.applySupportingTextSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"supporting-text",originalEvent:t})}}handleDisplayTagVisibilityChange(e){this.displayTagVisible=e}handleDisplayTagColorChange(e){this.displayTagColor=e}handleDisplayTagSizeChange(e){this.displayTagSize=e}handleDisplayTagAppearanceChange(e){this.displayTagAppearance=e}connectedCallback(){this.attachSubtitleItemListener(),this.attachSupportingTextItemListener()}disconnectedCallback(){this.detachSubtitleItemListener(),this.detachSupportingTextItemListener()}applySubtitleSelection(e){this.onSubtitlePress&&this.onSubtitlePress(e)}applySupportingTextSelection(e){this.onSupportingTextPress&&this.onSupportingTextPress(e)}attachSubtitleItemListener(){this.hasSubtitleItemListener||(this.hostElement.addEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!0)}attachSupportingTextItemListener(){this.hasSupportingTextItemListener||(this.hostElement.addEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!0)}detachSubtitleItemListener(){this.hasSubtitleItemListener&&(this.hostElement.removeEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!1)}detachSupportingTextItemListener(){this.hasSupportingTextItemListener&&(this.hostElement.removeEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!1)}isValidLabel(){return!(!this?.label||this.label==="")}isValidSubtitle(){return!(!this?.subtitle||this.subtitle==="")}isValidSupportingText(){return!(!this?.supportingText||this.supportingText==="")}isDisplayTagVisible(){return!(!this.displayTagVisible||!this?.displayTagLabel||this.displayTagLabel==="")}convertTextToUppercase(e){return e&&e!==""?e.toUpperCase():""}render(){const e=dc(),t=this?.label,i=this?.subtitle,s=this?.supportingText,a=this.isValidLabel(),r=this.isValidSubtitle(),o=this.isValidSupportingText(),l=this.isDisplayTagVisible(),d=this?.displayTagLabel??"";return n($,{key:"bfe69722ce1b8b0f7f2d935131009ba755bd25cb",class:e},a||r||l?n("div",{class:"gids-expansion-body-list-item__primary-container"},a||l?n("div",{class:"gids-expansion-body-list-item__primary-content"},a?n("span",{class:"gids-expansion-body-list-item__label"},this.convertTextToUppercase(t)):void 0,l?n(Ta,{color:this.displayTagColor||"accent-5",label:d,size:this.displayTagSize,appearance:this.displayTagAppearance}):void 0):void 0,r?n("button",{type:"button",class:"gids-expansion-body-list-item__subtitle",onClick:this.handleSubtitleClick},i):void 0):void 0,o?n("div",{class:"gids-expansion-body-list-item__secondary-container"},n("button",{type:"button",class:"gids-expansion-body-list-item__supporting-text",onClick:this.handleSupportingTextClick},this.convertTextToUppercase(s))):void 0)}get hostElement(){return this}static get watchers(){return{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}}static get style(){return'.gids-expansion-body-list-item{display:flex;flex:1;gap:var(--gids-gap-400);padding-bottom:var(--gids-padding-vertical-edge-to-element-300);position:relative;cursor:default}.gids-expansion-body-list-item::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion-body-list-item::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::before{opacity:1}.gids-expansion-body-list-item__primary-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 0;gap:var(--gids-gap-150)}.gids-expansion-body-list-item__primary-content{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-200)}.gids-expansion-body-list-item__secondary-container{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.gids-expansion-body-list-item__label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle);cursor:default}.gids-expansion-body-list-item__subtitle{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer}.gids-expansion-body-list-item__supporting-text{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle);padding:var(--gids-padding-vertical-edge-to-element-050) var(--gids-padding-horizontal-edge-to-element-100);border-radius:var(--gids-border-radius-sm);cursor:pointer;transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out}.gids-expansion-body-list-item__supporting-text:hover{background-color:var(--gids-color-background-brand-bold-hovered);color:var(--gids-color-text-inverse)}.gids-expansion-body-list-item__supporting-text:active{background-color:var(--gids-color-background-brand-bold-pressed);color:var(--gids-color-text-inverse)}'}},[0,"gids-expansion-body-list-item",{listItemId:[1,"list-item-id"],label:[1],subtitle:[1],supportingText:[1,"supporting-text"],displayTagVisible:[4,"display-tag-visible"],displayTagColor:[1,"display-tag-color"],displayTagSize:[1,"display-tag-size"],displayTagAppearance:[1,"display-tag-appearance"],displayTagLabel:[1,"display-tag-label"],onSubtitlePress:[16],onSupportingTextPress:[16]},void 0,{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}]);function Pa(){typeof customElements<"u"&&["gids-expansion-body-list-item"].forEach((e=>{e==="gids-expansion-body-list-item"&&(customElements.get(e)||customElements.define(e,La))}))}Pa();const cc=La,{getGidsExpansionBodyListClassNames:gc}=Qr,Ma=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.expansionBodyListItems=[],this.hasExpansionBodyListSubtitleItemListener=!1,this.hasExpansionBodyListSupportingTextItemListener=!1,this.handleExpansionBodyListSubtitleClick=({detail:t,expansionBodyListItem:i})=>{this.selectedExpansionListItem={detail:t,expansionBodyListItem:i},this.applyExpansionBodyListSubtitleSelection({detail:t,expansionBodyListItem:i})},this.handleExpansionBodyListSupportingTextClick=({detail:t,expansionBodyListItem:i})=>{this.selectedExpansionListItem={detail:t,expansionBodyListItem:i},this.applyExpansionBodyListSupportingTextSelection({detail:t,expansionBodyListItem:i})},this.handleExpansionBodyListSubtitleSelect=t=>{const{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o}=t.detail;this.applyExpansionBodyListSubtitleSelection({detail:{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o,originalEvent:t},expansionBodyListItem:this.selectedExpansionListItem?.expansionBodyListItem})},this.handleExpansionBodyListSupportingTextSelect=t=>{const{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o}=t.detail;this.applyExpansionBodyListSupportingTextSelection({detail:{listItemId:i,label:s,subtitle:a,supportingText:r,listItemPressedType:o,originalEvent:t},expansionBodyListItem:this.selectedExpansionListItem?.expansionBodyListItem})}}handleExpansionBodyListItemsChange(e){this.expansionBodyListItems=e}connectedCallback(){this.attachExpansionBodyListSubtitleItemListener(),this.attachExpansionBodyListSupportingTextItemListener()}disconnectedCallback(){this.detachExpansionBodyListSubtitleItemListener(),this.detachExpansionBodyListSupportingTextItemListener()}applyExpansionBodyListSubtitleSelection({detail:e,expansionBodyListItem:t}){this.onExpansionBodyListSubtitlePress&&this.onExpansionBodyListSubtitlePress({...e,selectedExpansionBodyListItem:t})}applyExpansionBodyListSupportingTextSelection({detail:e,expansionBodyListItem:t}){this.onExpansionBodyListSupportingTextPress&&this.onExpansionBodyListSupportingTextPress({...e,selectedExpansionBodyListItem:t})}attachExpansionBodyListSubtitleItemListener(){this.hasExpansionBodyListSubtitleItemListener||(this.hostElement.addEventListener("onExpansionBodyListSubtitlePress",this.handleExpansionBodyListSubtitleSelect),this.hasExpansionBodyListSubtitleItemListener=!0)}attachExpansionBodyListSupportingTextItemListener(){this.hasExpansionBodyListSupportingTextItemListener||(this.hostElement.addEventListener("onExpansionBodyListSupportingTextPress",this.handleExpansionBodyListSupportingTextSelect),this.hasExpansionBodyListSupportingTextItemListener=!0)}detachExpansionBodyListSubtitleItemListener(){this.hasExpansionBodyListSubtitleItemListener&&(this.hostElement.removeEventListener("onExpansionBodyListSubtitlePress",this.handleExpansionBodyListSubtitleSelect),this.hasExpansionBodyListSubtitleItemListener=!1)}detachExpansionBodyListSupportingTextItemListener(){this.hasExpansionBodyListSupportingTextItemListener&&(this.hostElement.removeEventListener("onExpansionBodyListSupportingTextPress",this.handleExpansionBodyListSupportingTextSelect),this.hasExpansionBodyListSupportingTextItemListener=!1)}render(){const e=gc();return n($,{key:"544e76e76925e18a6c8dc2546d90176938827ef4",class:e},(this?.expansionBodyListItems??[]).map(((t,i)=>n("gids-expansion-body-list-item",{key:""+(i+1),...t,onSubtitlePress:s=>this.handleExpansionBodyListSubtitleClick({detail:s,expansionBodyListItem:t}),onSupportingTextPress:s=>this.handleExpansionBodyListSupportingTextClick({detail:s,expansionBodyListItem:t})}))))}get hostElement(){return this}static get watchers(){return{expansionBodyListItems:[{handleExpansionBodyListItemsChange:0}]}}static get style(){return".gids-expansion-body-list{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-400);overflow-y:scroll;overflow-x:hidden}"}},[0,"gids-expansion-body-list",{expansionBodyListItems:[16],onExpansionBodyListSubtitlePress:[16],onExpansionBodyListSupportingTextPress:[16],selectedExpansionListItem:[32]},void 0,{expansionBodyListItems:[{handleExpansionBodyListItemsChange:0}]}]);function hc(){typeof customElements<"u"&&["gids-expansion-body-list","gids-expansion-body-list-item"].forEach((e=>{switch(e){case"gids-expansion-body-list":customElements.get(e)||customElements.define(e,Ma);break;case"gids-expansion-body-list-item":customElements.get(e)||Pa()}}))}hc();const pc=Ma,{getGidsExpansionGroupClassNames:uc}=Zr,Aa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost()}render(){const e=uc();return n($,{key:"ddf7c67fd4ee79879484efb9ee621b5b237ec9a2",class:e},n("slot",{key:"af1b62da31b9de8d41fdc495ab26d2ea72259928"}))}static get style(){return".gids-expansion-group{display:flex;flex-direction:column;width:100%}"}},[260,"gids-expansion-group"]);function mc(){typeof customElements<"u"&&["gids-expansion-group"].forEach((e=>{e==="gids-expansion-group"&&(customElements.get(e)||customElements.define(e,Aa))}))}mc();const fc=Aa,{getGidsExpansionClassNames:bc}=Jr,Da=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.labelLevel="h1",this.hasContent=!1,this.handleExpansionClick=()=>{if(this.isInteractive()){const t=!this.isExpanded();this.expanded=t,this.onExpand&&this.onExpand({expansionId:this.expansionId,expanded:t,label:this?.label,labelLevel:this?.labelLevel,disabled:this?.disabled})}}}handleDisabledChange(e){this.disabled=e}handleExpandedChange(e){this.expanded=e}handleLabelLevelChange(e){this.labelLevel=e}componentDidLoad(){this.checkSlotContent()}checkSlotContent(){const e=this.hostElement.querySelector(".gids-expansion__content");if(e){const t=e.children.length>0,i=!!e.textContent&&e.textContent.trim().length>0;this.hasContent=t||i}}isInteractive(){return!this.disabled&&this.hasContent}isExpanded(){return!!this.expanded&&this.isInteractive()}isHavingLabelValue(){return!(!this.label||this.label==="")}getIconSize(){switch(this.labelLevel){case"h2":case"h3":return"md";default:return"lg"}}getLabelClass(){switch(this.labelLevel){case"h2":return"gids-expansion__level-h2";case"h3":return"gids-expansion__level-h3";default:return"gids-expansion__level-h1"}}render(){const e=bc({expanded:this.isExpanded()&&this.isInteractive()}),t=this.label;return n($,{key:"a23c25c019f5c3290df1a7807193978874d810da",class:e},n("button",{key:"b5ab25d5adfde95b3139282547427599a72fe9e8",onClick:this.handleExpansionClick,class:He("gids-expansion__container",{"gids-expansion__disabled":this.disabled}),disabled:this.disabled,type:"button"},this.isHavingLabelValue()?n("span",{class:this.getLabelClass()},t):void 0,this.isInteractive()?n(P,{name:"chevron-down",size:this.getIconSize(),appearance:"filled"}):void 0),n("div",{key:"4f340035ae1ad1dd64ff30510febcb372f6d6bb3",class:"gids-expansion__body","aria-hidden":this.isExpanded()?"false":"true"},n("div",{key:"6648540fbdb943b071c9da17d5fc348f2a6aeef1",class:"gids-expansion__content"},n("slot",{key:"20d90ce3362b756cde7466ba2951598c6ef2775e"}))))}get hostElement(){return this}static get watchers(){return{disabled:[{handleDisabledChange:0}],expanded:[{handleExpandedChange:0}],labelLevel:[{handleLabelLevelChange:0}]}}static get style(){return'.gids-expansion{display:flex;align-items:center;position:relative;padding:var(--gids-padding-vertical-edge-to-element-300) 0}.gids-expansion:not(.gids-expansion--expanded):not([expanded])::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion:not(.gids-expansion--expanded):not([expanded])::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled)::before{opacity:1}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-expansion__level-h1{color:var(--gids-color-background-brand-bold-default)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-expansion__level-h2{color:var(--gids-color-background-brand-bold-default)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-expansion__level-h3{color:var(--gids-color-background-brand-bold-default)}.gids-expansion:not(.gids-expansion--expanded):not([expanded]):has(.gids-expansion__container:hover):not([disabled=true]):not([disabled]):not(.gids-expansion__disabled) .gids-icon{--gidsIcon-color:var(--gids-color-background-brand-bold-default)}.gids-expansion__container{margin:0;padding:0;appearance:none;border:none;background:none;cursor:pointer;display:flex;align-items:center;gap:var(--gids-gap-050);white-space:nowrap;color:var(--gids-color-text-default)}.gids-expansion__container gids-icon,.gids-expansion__container .gids-icon,.gids-expansion__container GidsIcon,.gids-expansion__container svg{display:inline-block;transform:rotate3d(0, 0, 1, 0deg);transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);transform-origin:center center;backface-visibility:hidden}.gids-expansion__level-h1{font-family:var(--gids-typography-heading-medium__font-family);font-size:var(--gids-typography-heading-medium__font-size);font-weight:var(--gids-typography-heading-medium__font-weight);letter-spacing:var(--gids-typography-heading-medium__letter-spacing);line-height:var(--gids-typography-heading-medium__line-height);text-transform:var(--gids-typography-heading-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-medium__font-variant-caps, inherit)}.gids-expansion__level-h2{font-family:var(--gids-typography-heading-small__font-family);font-size:var(--gids-typography-heading-small__font-size);font-weight:var(--gids-typography-heading-small__font-weight);letter-spacing:var(--gids-typography-heading-small__letter-spacing);line-height:var(--gids-typography-heading-small__line-height);text-transform:var(--gids-typography-heading-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-small__font-variant-caps, inherit)}.gids-expansion__level-h3{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)}.gids-expansion__body{position:absolute;top:100%;left:0;width:100%;z-index:10;transform:scaleY(0);transform-origin:top center;opacity:0;visibility:hidden;transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s;overflow:hidden}.gids-expansion--expanded{position:relative;display:block}.gids-expansion--expanded .gids-expansion__container gids-icon,.gids-expansion--expanded .gids-expansion__container .gids-icon,.gids-expansion--expanded .gids-expansion__container GidsIcon,.gids-expansion--expanded .gids-expansion__container svg{transform:rotate3d(0, 0, 1, -180deg)}.gids-expansion--expanded .gids-expansion__body{position:relative;top:auto;transform:scaleY(1);opacity:1;visibility:visible}.gids-expansion__content{min-height:0;padding:var(--gids-padding-vertical-edge-to-element-500) 0 var(--gids-padding-horizontal-edge-to-element-500)}.gids-expansion__disabled{color:var(--gids-color-text-disabled);cursor:not-allowed}.gids-expansion__disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}'}},[260,"gids-expansion",{expansionId:[1,"expansion-id"],label:[1],labelLevel:[1,"label-level"],expanded:[516],disabled:[516],onExpand:[16],hasContent:[32]},void 0,{disabled:[{handleDisabledChange:0}],expanded:[{handleExpandedChange:0}],labelLevel:[{handleLabelLevelChange:0}]}]);function vc(){typeof customElements<"u"&&["gids-expansion"].forEach((e=>{e==="gids-expansion"&&(customElements.get(e)||customElements.define(e,Da))}))}vc();const yc=Da,_c=ka,xc=bs;w.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(w.GidsFloatingElementType||(w.GidsFloatingElementType={}));let pi=(oe=class{constructor(t,i){this.el=t,this.config=i,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=i.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=Rs(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,i=[Gs(t)],s=this.config.lockToMainAxis??!1,a=this.config.constrainPlacements,r=a&&a.length>0?a.includes(this.config.placement)?this.config.placement:a[0]:this.config.placement,o=js(a&&a.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:a.filter((h=>h!==r)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),l=this.config.elementType===w.GidsFloatingElementType.POPOVER,d=Hs({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===w.GidsFloatingElementType.TOOLTIP||l&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&i.push(Ys({apply({elements:h,rects:c}){Object.assign(h.floating.style,{width:`${c.reference.width}px`})}})),r?.includes("-")?i.push(o,d):i.push(d,o),this.config.constrainToViewportHeight&&i.push(Ys({padding:t,apply:({availableHeight:h,elements:c})=>{const g=Array.from(c.floating.children).find((p=>p!==this.arrowEl));g instanceof HTMLElement&&Object.assign(g.style,{maxHeight:`${Math.max(0,h)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&i.push(qs({element:this.arrowEl,padding:t})),Ws(this.anchorElement,this.floatingElement,{placement:r,strategy:"fixed",middleware:i,platform:{...Ge,getOffsetParent:h=>Ge.getOffsetParent(h,Xs)}}).then((({x:h,y:c,middlewareData:g,placement:p})=>{if(l){const v=p.startsWith("left")||p.startsWith("right"),y=p.startsWith("top")||p.startsWith("bottom"),_=this.isAnchorInViewport(),b=!!y||(v?_:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=p,Object.assign(this.floatingElement.style,{left:`${h}px`,top:`${c}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const m=p.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[m],{arrowZIndex:f}=this.normalizeFloatingElementStacking();if(g.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:y,y:_}=g.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(m)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(m)?" 0":""}`,Object.assign(this.arrowEl.style,{left:y!==null?`${y}px`:"",top:_!==null?`${_}px`:"",right:"",bottom:"",[u]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${f}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),i=Number.parseInt(t,10),s=Number.isNaN(i)?-1:i-1,a=Number.isNaN(i)?s+1:i;return Number.isNaN(a)||(this.floatingElement.style.zIndex=`${a}`),Array.from(this.floatingElement.children).forEach((r=>{if(!(r instanceof HTMLElement)||r===this.arrowEl)return;const o=r.style.zIndex||(window.getComputedStyle?.(r).zIndex??""),l=Number.parseInt(o,10),d=window.getComputedStyle?.(r).position??"";(o===""||o==="auto"||Number.isNaN(l)||l<a)&&(r.style.zIndex=`${a}`,d!==""&&d!=="static"||(r.style.position="relative"))})),{contentZIndex:a,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),oe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=oe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),oe.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),i=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,a=t.height/2+2*this.offset;return t.bottom>=a&&t.top<=i-a&&t.right>=0&&t.left<=s}},oe.currentFloatingElements=new Map,oe);const za=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const i=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!i&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():i&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new pi(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:w.GidsFloatingElementType.FLYOUT_PANEL,constrainPlacements:["top","bottom"],constrainToViewportHeight:!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],i=$a(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const r=$a(a);t.push(...r)})),this.focusableElements=t.sort(((a,r)=>{const o=a.compareDocumentPosition(r),l=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:d?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const r=this._el.shadowRoot?.activeElement;r!==null&&(s=r)}const a=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&a||(e.preventDefault(),i&&i.focus()):s!==i&&a||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return n(ae,{key:"a230e6a4aad47d106c536c22e62e983847c61134"},n("slot",{key:"c32fcfd2e943f94f9e733022cfafbb17d48f0579",name:"anchor"}),n("div",{key:"0bcac3ab2c843fc1bd7137e72b6362fce1188cb9",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},n("div",{key:"33cfcf17f75c22f5185dced5c4f6a070c6d7455c"},n("slot",{key:"e30b5a128c4f3668553c3d0246d2cb400c42f8eb"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),Na=e=>{if(!(e instanceof E)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const i=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=i,s&&e.blur(),s}catch{return!1}},$a=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>Na(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];Na(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function Cc(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,za))}))}Cc();const wc=za,{getGidsHeaderNavigationItemClassNames:Sc}=so,Fa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.borderRadius="none",this.applyShadow=!1,this.appearance="default",this.selectionAppearance="default",this.selected=!1,this.size="sm",this.selectionType="single-deselection-allowed",this.menuItems=[],this.isSelected=!1,this.isMenuExpanded=!1,this.selectedMenuItems=[],this.onItemClick=t=>{if(this.hasMenu())this.isMenuExpanded=!this.isMenuExpanded;else{if(this.isSelected&&this.selectionType==="single-deselection-not-allowed")return;this.isSelected=!this.isSelected}if(this.onPressNavigationItem){const i=this?.selectedMenuItems?this.selectedMenuItems[0]:void 0;this.onPressNavigationItem({originalEvent:t,itemId:this.id,itemLabel:this?.label,itemSelected:this.isSelected,hasMenu:this.hasMenu(),menuExpanded:this.isMenuExpanded,menuItemId:i?.menuItemId??"",menuItemTitle:i?.menuItemTitle,menuItemValue:i?.menuItemValue,menuItemSectionIndex:i?.menuItemSectionIndex,menuItemIndex:i?.menuItemIndex,menuItemSelected:!!i?.menuItemId,menuId:this?.menuId,selectionType:this?.selectionType})}},this.onMenuItemClick=({event:t,selectedItem:i,sectionIndex:s,itemIndex:a})=>{const r=this.isMenuItemSelected(i.id);r&&this.selectionType==="single-deselection-not-allowed"||(r?(this.selectedMenuItems=[],this.isSelected=!1):(this.selectedMenuItems=[{menuItemTitle:i?.title,menuItemValue:i?.value,menuItemId:i.id,menuItemSectionIndex:s,menuItemIndex:a,menuItemSelected:!0,menuId:this?.menuId}],this.isSelected=!0),this.isMenuExpanded=!1,this.onMenuItemChange&&this.onMenuItemChange({originalEvent:t,itemId:this.id,itemLabel:this?.label,itemSelected:!r,menuItemTitle:i?.title,menuItemValue:i?.value,menuItemId:i.id,menuItemSectionIndex:s,menuItemIndex:a,menuItemSelected:!r,menuId:this?.menuId,selectionType:this?.selectionType}))},this.defaultSelectedMenuItems=t=>{if(!t)return void(this.selectedMenuItems=[]);const i=this?.menuItems??[];for(let s=0;s<i.length;s++){const a=i[s]?.data??[];for(let r=0;r<a.length;r++){const o=a[r];if(o?.id===t)return this.selectedMenuItems=[{menuItemTitle:o.title,menuItemValue:o.value,menuItemId:o.id,menuItemSectionIndex:s,menuItemIndex:r,menuItemSelected:!0,menuId:this.menuId}],void(this.isSelected=!0)}}this.selectedMenuItems=[]},this.hasMenu=()=>!!(this?.menuItems&&this.menuItems.length>0),this.isMenuItemSelected=t=>{const i=this?.selectedMenuItems??[];if(!i||i.length<=0)return!1;const s=i.findIndex((a=>a.menuItemId===t));return s!=null&&s!==-1},this.positionHeaderNavigationItemMenu=()=>{const t=this.hostElement?.querySelector(".gids-header-navigation-item__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),s=window.innerWidth,a=window.innerHeight;t.style.maxHeight="none";const r=t.getBoundingClientRect(),o=a-i.bottom-8,l=i.top-4,d=r.height>o&&l>o,h=d?l:o;t.style.maxHeight=r.height>h?`${h}px`:"none";const c=t.getBoundingClientRect();let g=i.left;g+c.width>s-4&&(g=s-c.width-4),g<4&&(g=4),t.style.left=g-i.left+"px",t.style.top=d?-c.height-4+"px":`${i.height+4}px`}}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}expansionChanged(e){this.expanded=e,this.isMenuExpanded=e}borderRadiusChanged(e){this.borderRadius=e}shadowChanged(e){this.applyShadow=e}labelChanged(e){this.label=e}sizeChanged(e){this.size=e}menuItemsChanged(e){this.menuItems=e}selectedChanged(e){this.isSelected=e}selectedMenuItemIdChanged(e){this.defaultSelectedMenuItems(e)}connectedCallback(){this.isSelected=this.selected,this.isMenuExpanded=this.expanded,this.defaultSelectedMenuItems(this.selectedMenuItemId)}componentDidRender(){this.isMenuExpanded&&this.hasMenu()&&requestAnimationFrame((()=>{this.positionHeaderNavigationItemMenu()}))}render(){const e=this?.isSelected??!1,t=this?.appearance??"default",i=this?.selectionAppearance??"default",s=this.label,a=this?.size??"sm",r=this.id,o=this.menuId,l=this?.menuItems??[],d=this?.isMenuExpanded??!1,h=this?.borderRadius??"none",c=this?.applyShadow??!1,g=this.hasMenu(),p=Sc({selected:e,appearance:t,selectionAppearance:i,size:a,expanded:d&&g,applyShadow:c,borderRadius:h});return n($,{key:"fe595c3ec2f1c2a756cc0d12a5191312d6c5dbdb",id:r,"header-nav-item-appearance":t,"header-nav-item-size":a,"header-nav-item-selection-appearance":i,"header-nav-item-selected":e?"true":"false",class:p,onClick:this.onItemClick,"header-nav-item-expanded":d},n("slot",{key:"4456f748ee740b0d35a47bd79ee95db4536a0cdf",name:"headerNavItemLeadingIcon"}),s&&s!==""?n("div",{class:"gids-header-navigation-item__label"},n("span",null,s)):void 0,g?n("div",{class:"gids-header-navigation-item__chevron"},n(P,{name:"chevron-down",size:a!=="xl"?a:"lg"})):void 0,g&&d?n("div",{class:"gids-header-navigation-item__dropdown-menu-container",id:o,role:"headerNavigationPickerbox",onClick:m=>m.stopPropagation()},n(_e,{type:"default"},l.map(((m,u)=>{const f=m?.data??[];return n(xe,{key:`${u+1}`,sectionLabel:m?.sectionLabel??""},f.map(((v,y)=>{const _=this.isMenuItemSelected(v.id);return n(Be,{key:`${y}`,id:v.id,title:v?.title,value:v?.value,disabled:v?.disabled,index:y,selected:_,onPressDropdownItem:b=>this.onMenuItemClick({event:b,selectedItem:{...v,id:v.id},sectionIndex:u,itemIndex:y})})})))})))):void 0)}get hostElement(){return this}static get watchers(){return{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],expanded:[{expansionChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],label:[{labelChanged:0}],size:[{sizeChanged:0}],menuItems:[{menuItemsChanged:0}],selected:[{selectedChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}}static get style(){return".gids-header-navigation-item{position:relative;margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--gids-gap-100);cursor:pointer;padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);background-color:var(--gids-color-background-neutral-default);color:var(--gids-color-text-default);--gidsIcon-color:var(--gids-color-icon-default)}.gids-header-navigation-item:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-header-navigation-item:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-header-navigation-item__label{display:flex;flex:1;text-align:center;align-items:center;justify-content:center}.gids-header-navigation-item--appearance-primary{background-color:var(--gids-color-background-brand-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-primary:hover{background-color:var(--gids-color-background-brand-bold-hovered)}.gids-header-navigation-item--appearance-primary:active{background-color:var(--gids-color-background-brand-bold-pressed)}.gids-header-navigation-item--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);color:var(--gids-color-text-default);--gidsIcon-color:var(--gids-color-icon-default)}.gids-header-navigation-item--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-header-navigation-item--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-header-navigation-item--appearance-positive{background-color:var(--gids-color-background-positive-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-positive:hover{background-color:var(--gids-color-background-positive-bold-hovered)}.gids-header-navigation-item--appearance-positive:active{background-color:var(--gids-color-background-positive-bold-pressed)}.gids-header-navigation-item--appearance-danger{background-color:var(--gids-color-background-danger-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-danger:hover{background-color:var(--gids-color-background-danger-bold-hovered)}.gids-header-navigation-item--appearance-danger:active{background-color:var(--gids-color-background-danger-bold-pressed)}.gids-header-navigation-item--appearance-information{background-color:var(--gids-color-background-information-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-information:hover{background-color:var(--gids-color-background-information-bold-hovered)}.gids-header-navigation-item--appearance-information:active{background-color:var(--gids-color-background-information-bold-pressed)}.gids-header-navigation-item--appearance-warning{background-color:var(--gids-color-background-warning-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--appearance-warning:hover{background-color:var(--gids-color-background-warning-bold-hovered)}.gids-header-navigation-item--appearance-warning:active{background-color:var(--gids-color-background-warning-bold-pressed)}.gids-header-navigation-item--selection-appearance-default{background-color:var(--gids-color-background-neutral-default);color:var(--gids-color-text-default);--gidsIcon-color:var(--gids-color-icon-default)}.gids-header-navigation-item--selection-appearance-default:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-header-navigation-item--selection-appearance-default:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-header-navigation-item--selection-appearance-primary{background-color:var(--gids-color-background-brand-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-primary:hover{background-color:var(--gids-color-background-brand-bold-hovered)}.gids-header-navigation-item--selection-appearance-primary:active{background-color:var(--gids-color-background-brand-bold-pressed)}.gids-header-navigation-item--selection-appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);color:var(--gids-color-text-subtlest);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-header-navigation-item--selection-appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-header-navigation-item--selection-appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-header-navigation-item--selection-appearance-positive{background-color:var(--gids-color-background-positive-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-positive:hover{background-color:var(--gids-color-background-positive-bold-hovered)}.gids-header-navigation-item--selection-appearance-positive:active{background-color:var(--gids-color-background-positive-bold-pressed)}.gids-header-navigation-item--selection-appearance-danger{background-color:var(--gids-color-background-danger-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-danger:hover{background-color:var(--gids-color-background-danger-bold-hovered)}.gids-header-navigation-item--selection-appearance-danger:active{background-color:var(--gids-color-background-danger-bold-pressed)}.gids-header-navigation-item--selection-appearance-information{background-color:var(--gids-color-background-information-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-information:hover{background-color:var(--gids-color-background-information-bold-hovered)}.gids-header-navigation-item--selection-appearance-information:active{background-color:var(--gids-color-background-information-bold-pressed)}.gids-header-navigation-item--selection-appearance-warning{background-color:var(--gids-color-background-warning-bold-default);color:var(--gids-color-text-inverse);--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-header-navigation-item--selection-appearance-warning:hover{background-color:var(--gids-color-background-warning-bold-hovered)}.gids-header-navigation-item--selection-appearance-warning:active{background-color:var(--gids-color-background-warning-bold-pressed)}.gids-header-navigation-item--size-md{font-family:var(--gids-typography-label-large__font-family);font-size:var(--gids-typography-label-large__font-size);font-weight:var(--gids-typography-label-large__font-weight);letter-spacing:var(--gids-typography-label-large__letter-spacing);line-height:var(--gids-typography-label-large__line-height);text-transform:var(--gids-typography-label-large__text-transform, inherit);font-variant-caps:var(--gids-typography-label-large__font-variant-caps, inherit)}.gids-header-navigation-item--size-lg{font-family:var(--gids-typography-heading-small__font-family);font-size:var(--gids-typography-heading-small__font-size);font-weight:var(--gids-typography-heading-small__font-weight);letter-spacing:var(--gids-typography-heading-small__letter-spacing);line-height:var(--gids-typography-heading-small__line-height);text-transform:var(--gids-typography-heading-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-small__font-variant-caps, inherit)}.gids-header-navigation-item--size-xl{font-family:var(--gids-typography-heading-medium__font-family);font-size:var(--gids-typography-heading-medium__font-size);font-weight:var(--gids-typography-heading-medium__font-weight);letter-spacing:var(--gids-typography-heading-medium__letter-spacing);line-height:var(--gids-typography-heading-medium__line-height);text-transform:var(--gids-typography-heading-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-medium__font-variant-caps, inherit)}.gids-header-navigation-item--shadow{box-shadow:var(--gids-elevation-shadow-raised)}.gids-header-navigation-item--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-header-navigation-item--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-header-navigation-item--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-header-navigation-item--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-header-navigation-item__dropdown-menu-container{position:absolute;inset-inline: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-header-navigation-item__chevron{display:flex;align-items:center;justify-content:center;transform:rotate(0deg);transition:transform 200ms ease-in-out}.gids-header-navigation-item__dropdown-menu-container>*{flex-shrink:0}.gids-header-navigation-item--expanded .gids-header-navigation-item__dropdown-menu-container{display:flex}.gids-header-navigation-item--expanded .gids-header-navigation-item__chevron{transform:rotate(180deg)}"}},[260,"gids-header-navigation-item",{id:[1],menuId:[1,"menu-id"],expanded:[4],borderRadius:[1,"border-radius"],applyShadow:[4,"apply-shadow"],appearance:[1],selectionAppearance:[1,"selection-appearance"],selected:[4],selectedMenuItemId:[1,"selected-menu-item-id"],label:[1],size:[1],selectionType:[1,"selection-type"],menuItems:[16],onPressNavigationItem:[16],onMenuItemChange:[16],isSelected:[32],isMenuExpanded:[32],selectedMenuItems:[32]},void 0,{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],expanded:[{expansionChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],label:[{labelChanged:0}],size:[{sizeChanged:0}],menuItems:[{menuItemsChanged:0}],selected:[{selectedChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}]);function Oa(){typeof customElements<"u"&&["gids-header-navigation-item"].forEach((e=>{e==="gids-header-navigation-item"&&(customElements.get(e)||customElements.define(e,Fa))}))}Oa();const Ic=Fa,{getGidsHeaderNavigationClassNames:kc}=ao,Ba=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="gap",this.selectionType="single-deselection-not-allowed",this.selectedItemIdsState=[],this.selectedMenuItemIdsState=[],this.expandedMenuIdsState=[],this.onNavigationItemPress=({event:t,itemIndex:i})=>{this.handleSelectionsAndExpansions(t),this.onHeaderNavigationItemChange&&this.onHeaderNavigationItemChange({...t,navMenuItemIndex:i})},this.onNavigationMenuItemChange=({event:t,itemIndex:i})=>{t?.menuItemSelected?(this.selectedItemIdsState=[t.itemId],this.selectedMenuItemIdsState=[t.menuItemId]):(this.selectedItemIdsState=[],this.selectedMenuItemIdsState=[]),this.onHeaderNavigationItemChange&&this.onHeaderNavigationItemChange({...t,navMenuItemIndex:i})},this.handleDocumentClick=t=>{!this.expandedMenuIdsState||this.expandedMenuIdsState.length<=0||t.composedPath().includes(this.hostElement)||(this.expandedMenuIdsState=[])},this.handleSelectionsAndExpansions=t=>{this.expandedMenuIdsState=t?.hasMenu&&t?.menuExpanded&&t?.menuId&&t.menuId!==""?[t.menuId]:[],t?.hasMenu||(t?.itemSelected?(this.selectedItemIdsState=[t.itemId],this.selectedMenuItemIdsState=[]):(this.selectedItemIdsState=[],this.selectedMenuItemIdsState=[]))},this.isThisMenuExpanded=t=>{const i=this?.expandedMenuIdsState??[];if(!t||t===""||!i||i.length<=0)return!1;const s=i.findIndex((a=>a===t));return s!=null&&s!==-1},this.isThisNavigationItemSelected=t=>{const i=this?.selectedItemIdsState??[];if(!t||t===""||!i||i.length<=0)return!1;const s=i.findIndex((a=>a===t));return s!=null&&s!==-1},this.getSelectedMenuItemId=()=>{const t=this?.selectedMenuItemIdsState??[];if(t.length>0)return t[0]},this.initializeDefaultSelection=()=>{const t=this?.navMenus??[];if(!this.defaultNavItemId||!t||t.length<=0)return;const i=t.find((l=>l?.id===this.defaultNavItemId));if(!i)return;if(this.selectedItemIdsState=[i.id],this.selectedMenuItemIdsState=[],!this.defaultNavMenuId)return void this.onHeaderNavigationItemChange?.({itemId:i.id,itemSelected:!0,hasMenu:!!i.menuId,menuId:i.menuId,menuExpanded:!1});if(i.menuId!==this.defaultNavMenuId)return;if(!this.defaultNavMenuItemId)return void this.onHeaderNavigationItemChange?.({itemId:i.id,itemSelected:!0,hasMenu:!0,menuId:i.menuId,menuExpanded:!1});const s=i?.menuItems??[];if(s.length<=0)return;let a,r=-1,o=-1;s.some(((l,d)=>{const h=(l?.data??[]).findIndex((c=>c?.id===this.defaultNavMenuItemId));return h!==-1&&(a=l.data[h],r=d,o=h,!0)})),a?(this.selectedItemIdsState=[i.id],this.selectedMenuItemIdsState=[a.id],this.onHeaderNavigationItemChange?.({itemId:i.id,itemLabel:i.label,itemSelected:!0,hasMenu:!0,menuId:i.menuId,menuExpanded:!1,menuItemTitle:a.title,menuItemValue:a.value,menuItemId:a.id,menuItemSectionIndex:r,menuItemIndex:o,menuItemSelected:!0,selectionType:this.selectionType})):this.onHeaderNavigationItemChange?.({itemId:i.id,itemSelected:!0,hasMenu:!0,menuId:i.menuId,menuExpanded:!1})}}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}borderRadiusChanged(e){this.borderRadius=e}shadowChanged(e){this.applyShadow=e}sizeChanged(e){this.size=e}separatorsChanged(e){this.applySeparators=e}modeChanged(e){this.mode=e}defaultNavItemIdChanged(){this.initializeDefaultSelection()}defaultNavMenuIdChanged(){this.initializeDefaultSelection()}defaultNavMenuItemIdChanged(){this.initializeDefaultSelection()}navMenusChanged(e){this.navMenus=e,this.initializeDefaultSelection()}typeChanged(e){this.type=e}connectedCallback(){}componentWillLoad(){this.initializeDefaultSelection()}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.handleDocumentClick)}render(){const e=this?.appearance??"default",t=this?.selectionAppearance??"default",i=this?.applyShadow??!1,s=this?.applySeparators??!1,a=this?.borderRadius??"none",r=this?.mode??"wrap",o=this?.type??"gap",l=this?.size??"md",d=this?.navMenus??[],h=this?.selectionType??"single-deselection-not-allowed",c=kc({mode:r,type:o});return n($,{key:"277cd1197cd4e7b442e9c65ba5430effe4f34afb",class:c},d.map(((g,p)=>n("div",{key:""+(p+1),class:He("gids-header-navigation__item-container-gap",{"gids-header-navigation__item-container-standard":o==="standard"})},n("gids-header-navigation-item",{...g,id:g.id,menuId:g?.menuId,menuItems:g?.menuItems??[],label:g?.label,size:l,appearance:e,selectionAppearance:t,applyShadow:i,borderRadius:a,expanded:this.isThisMenuExpanded(g?.menuId),selected:this.isThisNavigationItemSelected(g?.id),selectedMenuItemId:this.getSelectedMenuItemId(),selectionType:h,onPressNavigationItem:m=>this.onNavigationItemPress({event:m,itemIndex:p}),onMenuItemChange:m=>this.onNavigationMenuItemChange({event:m,itemIndex:p})},g?.leadingIconName&&g.leadingIconName!=="(none)"?n(P,{slot:"headerNavItemLeadingIcon",name:g.leadingIconName,size:l!=="xl"?l:"lg",alt:"",appearance:"regular"}):void 0),s&&p<d.length-1?n(Oe,{orientation:"vertical"}):void 0))))}get hostElement(){return this}static get watchers(){return{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],size:[{sizeChanged:0}],applySeparators:[{separatorsChanged:0}],mode:[{modeChanged:0}],defaultNavItemId:[{defaultNavItemIdChanged:0}],defaultNavMenuId:[{defaultNavMenuIdChanged:0}],defaultNavMenuItemId:[{defaultNavMenuItemIdChanged:0}],navMenus:[{navMenusChanged:0}],type:[{typeChanged:0}]}}static get style(){return".gids-header-navigation{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-gap{display:flex;gap:var(--gids-gap-200)}.gids-header-navigation__item-container-standard{gap:var(--gids-gap-0)}.gids-header-navigation--type-standard{gap:var(--gids-gap-0)}"}},[0,"gids-header-navigation",{appearance:[1],selectionAppearance:[1,"selection-appearance"],type:[1],selectionType:[1,"selection-type"],defaultNavItemId:[1,"default-nav-item-id"],defaultNavMenuId:[1,"default-nav-menu-id"],defaultNavMenuItemId:[1,"default-nav-menu-item-id"],applyShadow:[4,"apply-shadow"],applySeparators:[4,"apply-separators"],borderRadius:[1,"border-radius"],mode:[1],size:[1],navMenus:[16],onHeaderNavigationItemChange:[16],selectedItemIdsState:[32],selectedMenuItemIdsState:[32],expandedMenuIdsState:[32]},void 0,{appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],borderRadius:[{borderRadiusChanged:0}],applyShadow:[{shadowChanged:0}],size:[{sizeChanged:0}],applySeparators:[{separatorsChanged:0}],mode:[{modeChanged:0}],defaultNavItemId:[{defaultNavItemIdChanged:0}],defaultNavMenuId:[{defaultNavMenuIdChanged:0}],defaultNavMenuItemId:[{defaultNavMenuItemIdChanged:0}],navMenus:[{navMenusChanged:0}],type:[{typeChanged:0}]}]);function Ec(){typeof customElements<"u"&&["gids-header-navigation","gids-header-navigation-item"].forEach((e=>{switch(e){case"gids-header-navigation":customElements.get(e)||customElements.define(e,Ba);break;case"gids-header-navigation-item":customElements.get(e)||Oa()}}))}Ec();const Tc=Ba,Lc=oa,Pc=wa,Mc=pa,Ac=ma,{getGidsTableCellClassNames:Dc,getGidsTableCellLabelTypographyClass:zc}=Do,{isTableCellActionButtonVisible:Nc,getTableCellBtnIcon:$c}=cr,Va=({id:e,uniqueKey:t,extraData:i,label:s,cellDataType:a="text",displayTags:r=[],width:o="full",appearance:l="none",borderSides:d=[],borderRadiusSides:h=[],textAlignment:c="center",labelTypography:g="label-medium",isHeaderCell:p=!1,cellPrimaryActionButtons:m=[],cellSecondaryActionButtons:u=[],onClickCellActionBtn:f,class:v,...y})=>{function _({cellActionBtn:x,neededIconType:C="leading"}){const I=$c({cellActionButton:x,neededIconType:C});return I?.cellIconName&&""+I.cellIconName!=""?n(P,{name:I.cellIconName,size:I.cellIconSize,appearance:I.cellIconAppearance}):void 0}function b(x){const C=x==="primary"?m:u;if(C&&!(C.length<=0))return n("div",{class:x==="primary"?"gids-table-cell__primary-action-btn-container":"gids-table-cell__secondary-action-btn-container"},C.map(((I,k)=>{const L=x==="primary"?C.length-k-1:k,M=C[L];return Nc(M)?(function({cellActionBtn:A,actionBtnIndex:F,actionBtnPosition:z}){return n(R,{as:"button",appearance:A?.appearance??"default",size:A?.size??"md",disabled:A?.disabled,destructive:A?.destructive,positive:A?.positive,loading:A?.loading,width:A?.width??"intrinsic",type:"button",leadingIcon:_({cellActionBtn:A,neededIconType:"leading"}),trailingIcon:_({cellActionBtn:A,neededIconType:"trailing"}),onClick:O=>(function({event:B,actionBtnIndex:V,actionBtnPosition:G}){f&&f({originalEvent:B,details:{appearance:l,cellDataType:a,displayTags:r,label:s,id:e,extraData:i,isHeaderCell:p,uniqueKey:t,actionBtnNumber:"action-btn-"+(V+1),actionBtnIndex:V,actionBtnPosition:G??"secondary"}})})({event:O,actionBtnIndex:F,actionBtnPosition:z})},A?.buttonLabel??"")})({cellActionBtn:M,actionBtnIndex:L,actionBtnPosition:x}):void 0})))}return n(p?"th":"td",{...y,class:Dc({borderSides:d,borderRadiusSides:h,appearance:l,textAlignment:c,width:o},v),id:e,"unique-key":t,"extra-data":JSON.stringify(i)},b("primary"),a==="text"&&s&&s!==""?n("span",{class:""+zc(g)},s):void 0,a==="display-tag"&&r&&r.length>0?n("div",{class:"gids-table-cell__display-tags-container"},r.map((x=>n(Ta,{label:x?.label??"",appearance:x?.displayTagAppearance??"subtle",size:x?.displayTagSize??"xs",icon:x?.displayTagIcon?n(P,{name:x.displayTagIcon,size:x?.displayTagSize??"xs",appearance:x?.displayTagIconAppearance??"regular"}):void 0,color:x?.displayTagColor??"accent-5"})))):void 0,b("secondary"))},{getGidsBasicTableRowClassNames:Fc}=xr,Ra=({width:e="full",layout:t="horizontal",rows:i=[],isHeaderRow:s=!1,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickRowActionBtn:o,class:l,...d})=>{const h=Fc({width:e},l);function c({event:g,cellIndex:p}){o&&o({...g,details:{...g.details,cellIndex:p}})}return t==="vertical"?n(ae,null,i.map(((g,p)=>n("tr",{...d,key:"row-v-"+(p+1),class:h},n(Va,{...g,width:e,isHeaderCell:s,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickCellActionBtn:m=>c({event:m,cellIndex:p})}))))):n("tr",{...d,class:h},i.map(((g,p)=>n(Va,{key:"row-h-"+(p+1),...g,width:e,isHeaderCell:s,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickCellActionBtn:m=>c({event:m,cellIndex:p})}))))},{getGidsBasicTableHeaderClassNames:Oc}=_r,Bc=({width:e="full",headerCells:t=[],appearance:i="none",labelTypography:s="label-medium",textAlignment:a="center",layout:r="horizontal",cellPrimaryActionButtons:o,cellSecondaryActionButtons:l,onClickHeaderActionBtn:d,class:h,...c})=>{const g=Oc({width:e},h);return n("thead",{...c,class:g},n(Ra,{rows:t.map((p=>({appearance:i,labelTypography:s,textAlignment:a,...p}))),width:e,layout:r,isHeaderRow:!0,cellPrimaryActionButtons:o,cellSecondaryActionButtons:l,onClickRowActionBtn:d}))},{getGidsMdTableClassNames:Vc}=ho,Ga=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.isTopHeaderVisible=!1,this.isSideHeaderVisible=!1,this.width="full",this.topHeaderAppearance="none",this.sideHeaderAppearance="none",this.rowAppearance="none",this.tableBorders="none",this.tableBorderRadius=[],this.topHeaderLabelTypography="eyebrow-small",this.sideHeaderLabelTypography="label-small",this.rowLabelTypography="label-small",this.topHeaderTextAlignment="left",this.sideHeaderTextAlignment="left",this.rowTextAlignment="left",this.topHeaderCells=[],this.tableBody=[],this.constructedTableBodyData=[]}handleTopHeaderVisibilityChange(e){this.isTopHeaderVisible=e}handleSideHeaderVisibilityChange(e){this.isSideHeaderVisible=e}handleTableBordersChange(e){this.tableBorders=e}handleTableBorderRadiusChange(e){this.tableBorderRadius=e}handleTopHeaderCellsChange(e){this.topHeaderCells=e}handleTableBodyChange(e){this.tableBody=e,this.makeTableBodyData()}componentDidLoad(){this.makeTableBodyData()}makeTableBodyData(){const e=this.isSideHeaderVisible,t=this?.tableBody??[],i=[];t.map(((s,a)=>{let r=[];const o=s.heading,l=s.id,d=s.uniqueKey,h=s.extraData,c=s?.items??[];if(e&&o&&o!==""){const g=this.getSideHeaderBorderSides({_tableBodyData:t,_itemsArr:c,indexI:a});r=[{id:l,uniqueKey:d,extraData:h,label:o,appearance:this.sideHeaderAppearance,labelTypography:this.sideHeaderLabelTypography,textAlignment:this.sideHeaderTextAlignment,isHeader:!0,borderSides:g}]}c.map(((g,p)=>{const m=this.getRowBorderSides({_tableBodyData:t,_itemsArr:c,indexI:a,indexJ:p});r.push({...g,appearance:this.rowAppearance,labelTypography:this.rowLabelTypography,textAlignment:this.rowTextAlignment,isHeader:!1,borderSides:m})})),i.push({heading:o,id:l,uniqueKey:d,extraData:h,items:r})})),this.constructedTableBodyData=i}getRowBorderSides({_tableBodyData:e,_itemsArr:t,indexI:i,indexJ:s}){const a=this.applyTableInternalBorders(),r=this.applyTableAllBorders();let o=[];return(a||r)&&(s<t.length&&i+1<e.length&&(o=["bottom"]),s+1<t.length&&(o=[...o,"right"])),o}getSideHeaderBorderSides({_tableBodyData:e,_itemsArr:t,indexI:i}){const s=this.applyTableInternalBorders(),a=this.applyTableAllBorders();let r=[];return(s||a)&&(i+1<e.length&&(r=["bottom"]),t.length>0&&(r=[...r,"right"])),r}getTableClasses(){const e=this.width==="full"?"gids-md-table__main-table gids-md-table__main-table-width-full":"gids-md-table__main-table gids-md-table__main-table-width-intrinsic";let t=e;this.applyTableOuterBorders()&&(t=e+" gids-md-table__outer-borders");const i=this.addBorderRadiusDirectlyToTable();return i&&i!==""?`${t} ${i}`:""+t}addBorderRadiusDirectlyToTable(){let e="";const t=this?.tableBorderRadius??[];return t.includes("top-left")&&(e="gids-md-table__radius-top-left"),t.includes("bottom-left")&&(e+=" gids-md-table__radius-bottom-left"),t.includes("top-right")&&(e+=" gids-md-table__radius-top-right"),t.includes("bottom-right")&&(e+=" gids-md-table__radius-bottom-right"),e}getTopHeaderCells(){const e=this.isSideHeaderVisible,t=this?.topHeaderCells??[];let i=[...t];e===!1&&t.length>0?i.splice(0,1):i=[...t];const s=this.applyTableInternalBorders(),a=this.applyTableAllBorders(),r=this.applyTableTopHeaderBorders(),o=[];return i.map(((l,d)=>{let h=[];(s||a||r)&&(h=["bottom"],d+1<i.length&&(h=[...h,"right"])),o.push({...l,borderSides:h})})),o}applyTableOuterBorders(){const e=this.tableBorders;return e==="all"||e==="outer-sides"}applyTableInternalBorders(){return this.tableBorders==="internal"}applyTableAllBorders(){return this.tableBorders==="all"}applyTableTopHeaderBorders(){return this.tableBorders==="top-header-only"}render(){const e=Vc({width:this.width}),t=this.isTopHeaderVisible,i=this.getTopHeaderCells(),s=this?.constructedTableBodyData??[];return n($,{key:"149503cf732a979d70841de56fb5a48aefc6dd1d",class:e},n("table",{key:"4ec02288773274ed0856493709f09637d999b94e",class:this.getTableClasses()},t?n(Bc,{appearance:this.topHeaderAppearance,labelTypography:this.topHeaderLabelTypography,textAlignment:this.topHeaderTextAlignment,headerCells:i,width:this.width}):void 0,n("tbody",{key:"e4d16bb9f0ae934c1551f5c866fb353bf74f8ac6"},s.length>0?s.map((a=>n(Ra,{layout:"horizontal",rows:a?.items??[],width:this.width}))):void 0)))}get hostElement(){return this}static get watchers(){return{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}}static get style(){return".gids-md-table{display:flex;flex-direction:column;width:100%}.gids-md-table__main-table{border-collapse:separate;border-spacing:0;overflow:hidden;table-layout:fixed}.gids-md-table__main-table-width-full{width:100%}.gids-md-table__main-table-width-intrinsic{width:max-content}.gids-md-table--width-intrinsic{width:max-content}.gids-md-table__outer-borders{border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-md-table__radius-top-left{border-top-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-left{border-bottom-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-top-right{border-top-right-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-right{border-bottom-right-radius:var(--gids-border-radius-md)}"}},[0,"gids-md-table",{isTopHeaderVisible:[4,"is-top-header-visible"],isSideHeaderVisible:[4,"is-side-header-visible"],width:[1],topHeaderAppearance:[1,"top-header-appearance"],sideHeaderAppearance:[1,"side-header-appearance"],rowAppearance:[1,"row-appearance"],tableBorders:[1,"table-borders"],tableBorderRadius:[16],topHeaderLabelTypography:[1,"top-header-label-typography"],sideHeaderLabelTypography:[1,"side-header-label-typography"],rowLabelTypography:[1,"row-label-typography"],topHeaderTextAlignment:[1,"top-header-text-alignment"],sideHeaderTextAlignment:[1,"side-header-text-alignment"],rowTextAlignment:[1,"row-text-alignment"],topHeaderCells:[16],tableBody:[16],constructedTableBodyData:[32]},void 0,{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}]);function Rc(){typeof customElements<"u"&&["gids-md-table"].forEach((e=>{e==="gids-md-table"&&(customElements.get(e)||customElements.define(e,Ga))}))}Rc();const Gc=Ga,ui=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ha=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(i=>{const s=(()=>{const a=document.querySelector("gids-overlay-provider");if(!a||!a.shadowRoot)return 1;const r=a.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),o=r[r.length-1];if(!o)return 1;const l=o.offsetHeight,d=getComputedStyle(o).lineHeight,h=d.endsWith("px")?parseFloat(d):0;return Math.ceil(h?l/h:1)})();return s===2?i==="snackbar"?5e3:8e3:s>=3?i==="snackbar"?7e3:1e4:i==="snackbar"?3e3:6e3})(e),ja=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=ui(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function Hc(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,ja))}))}Hc();const jc=ja,{showGidsOverflowContainerBottomShadow:Ya,showGidsOverflowContainerTopShadow:Yc}=er,qa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),Ya(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(Yc(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),Ya(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return n("div",{key:"a4664a98e3e473eb4067a1d25ab9440ca3609253",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},n("slot",{key:"df5ada977be1fef755d901097519fa12de591bbe"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function qc(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,qa))}))}qc();const Wc=qa,{getGidsSnackbarContainerClassNames:Uc,getSnackbarContainerIconNames:Xc}=To,Kc=({appearance:e="default",children:t,button:i,class:s,...a})=>{const r=Xc(e);return n("div",{...a,class:Uc({appearance:e},s)},n("div",{class:"gids-snackbar-container__content"},e!=="default"&&r!=null?n(P,{name:r,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?n("p",null,t):t),i)},{getGidsNotificationContainerClassNames:Qc,getNotificationContainerIconNames:Zc}=mo,Jc=({notificationTitle:e,children:t,button:i,appearance:s="default",pronunciation:a="standard",onCloseNotificationClick:r,class:o,...l})=>{const d=Zc(s);return n("div",{class:Qc({appearance:s},o),...l},s!=="default"&&d?n("div",{class:"gids-notification-container__leading-icon-wrapper"},n(P,{size:"md",name:d,alt:"",appearance:"filled"})):null,n("div",{class:"gids-notification-container__content-wrapper"},n("div",{class:"gids-notification-container__top-content"},n("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?n("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?n("p",null,t):t:null),a==="standard"?n("div",{class:"gids-notification-container__cross-btn-wrapper"},n(R,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:n(P,{name:"cross",size:"md",appearance:"regular"}),onClick:r})):null),i?n("div",{class:"gids-notification-container__bottom-content"},i):null))},{getComponentClasses:eg,getComponentStackClasses:tg}=fo,Wa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,i)=>{const{id:s,message:a,appearance:r,buttonLabel:o,onButtonClick:l}=t;return n(Kc,{key:s,class:i,children:a,appearance:r,button:o!=null&&o!==""?n(R,{appearance:"subtle",onClick:l},o):void 0})},this._renderNotification=(t,i)=>{const{id:s,notificationTitle:a,message:r,pronunciation:o,appearance:l,buttonLabel:d,onButtonClick:h,timerInMs:c}=t;return n(Jc,{key:s,class:i,notificationTitle:a,children:r,pronunciation:o,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,c||0,!0),button:d!=null&&d!==""?n(R,{appearance:"default",size:"sm",onClick:h},d):void 0})},this._renderComponent=t=>{const{componentName:i,position:s="bottom-center",id:a}=t,r=eg({position:s,id:a,exitingComponents:this._exitingComponents});return i==null||i==="snackbar"?this._renderSnackbar(t,r):i==="notification"?this._renderNotification(t,r):null}}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=ui(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const i=setTimeout((()=>(clearTimeout(i),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:i,buttonLabel:s,onButtonClick:a,position:r,componentName:o,...l}=e,d={id:""+(Date.now()+Math.random()),message:i,appearance:t,buttonLabel:s,onButtonClick:a,position:r,componentName:o,...l};this._componentQueue=[...this._componentQueue,d],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:i,pronunciation:s,message:a,buttonLabel:r,onButtonClick:o,position:l,componentName:d,...h}=e,c={id:""+(Date.now()+Math.random()),notificationTitle:i,message:a,pronunciation:s,appearance:t,buttonLabel:r,onButtonClick:o,position:l,componentName:d,...h};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,i){return i||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((s=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((a=>a.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((a=>a!==e.id)),this._allowedComponentQueue=[],s()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((i=>requestAnimationFrame((()=>i()))));const t=Ha({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=Ha({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return n(ae,{key:"9b08b3e4542dd26ea2f7097b71f65205f75ff35b"},n("slot",{key:"6ee78e50172ae07b8f0370ee6bc0438ae5275d8d"}),this._isRoot()?n("div",{class:tg({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function ig(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,Wa))}))}ig();const sg=Wa,{getGidsDismissButtonClassNames:ag}=Vr,Ua=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:a,label:r,...o})=>n("button",{class:ag({appearance:e,size:t},s),onClick:a,disabled:i,"aria-label":r,...o},n(P,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:ng}=Mo,{getStrengthMeterScore:rg,getColorModifierByScore:og}=ir,lg=({text:e,textMinLength:t,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:s})=>{const a=(r,o,l)=>n("div",{key:r,class:["gids-strength-meter__strength-"+r,l?"is-active":"",l?o:""].filter(Boolean).join(" ")});return i.length>0?n("div",{class:ng(s)},(()=>{const r=i.length,o=rg({text:e,textMinLength:t,meterRules:i}),l=og({textScore:o,maxScore:r});return Array.from({length:r},((d,h)=>{const c=h+1,g=c<=o;return i[c]==="include-min-length"?Fe({requirementRule:"include-min-length",textMinLength:t})?a(c,l,g):null:a(c,l,g)}))})()):null},{getGidsRequirementsMeterLabelClassNames:dg}=So,{getRequirementsMeterLabelLeadingIcon:cg}=nr,gg=e=>{const{label:t,status:i="default",leadingIconVisible:s=!0,class:a}=e,r=cg(i);return n("div",{class:dg({status:i},a)},s&&i&&r?n(P,{name:r,size:"sm",appearance:"filled"}):null,t&&t!==""?n("span",null,t):null)},{checkRequirementRuleSatisfied:hg}=ar,{getGidsRequirementsMeterClassNames:pg}=Io,ug=({requirements:e=[],text:t,textMinLength:i,class:s})=>{const a=(r,o)=>n(gg,{status:o?"success":"error",label:r.requirementText});return n("div",{class:pg(s)},e.map((r=>{if(r?.requirementText!=null&&r?.requirementRule!=null){const o=hg({rule:r.requirementRule,textMinLength:i,text:t});return r.requirementRule==="include-min-length"?Fe({requirementRule:r.requirementRule,textMinLength:i})===!0?a(r,o):null:a(r,o)}return null})))},{inputToGidsFieldStatusForPassword:mg}=vo,Xa=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=De(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=De(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=st(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?Nt(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Hi(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=$t(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=$t(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0,a=this.showRevealPasswordButton,r={...t},o=r?.placeholder!==void 0&&r.placeholder!==null&&r.placeholder!=""?r.placeholder:"Enter password",l=this.isPasswordRevealed,d=this.meterRules,h=this.textMinLength!==void 0?this.textMinLength:8;return n(ae,{key:"33d42d67ea997bb2211c70f79f0f0c68b4d5aa0b"},n("gids-field",{key:"0516b66d60f440703d05611b811724ed83b0615e",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:mg(this.status)},n(gi,{key:"b2d0edc9e74776be766c37ea423f5d810de39360",slot:"label",disabled:this.disabled,info:n("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),n("gids-input",{key:"d98ecca02fcc0e415505de1c3da64bd1fbbef7cc",ref:c=>this.#e=c,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...r,placeholder:o,type:l?"text":"password",id:i,maxLength:this.maxLength}},n("slot",{key:"911415321782269e1a2963a0d8e54475fd12290d",name:"leadingIcon"}),n("slot",{key:"3405d4af56614f95da92da66a82922a55c249c97",name:"leadingAccessory"}),n("div",{key:"0456836067f779a41359ccf41e865fadefd1b6ae",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},s&&n(Ua,{key:"a656b56bd471a945ce3484047d03392ec8907920",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&n(R,{key:"408e89f1ddec04984b9f5bb915da9d68b0076eb4",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),n("div",{key:"bf780a37fd0ca6a4ca773ad635ad7a4ce1505633",class:"gids-password-field__meters-container"},n(lg,{key:"c0402c0aed753fad61628defdd15cdba196435ee",meterRules:d,text:this.value,textMinLength:h}),n(ug,{key:"269763f5c9f138c0de85e36357fd985064705a8f",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:h})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function fg(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Xa);break;case"gids-field":customElements.get(e)||bt();break;case"gids-input":customElements.get(e)||Ye()}}))}fg();const bg=Xa,vg=ba,Ka=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const i=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!i&&this.floatingElementManager.isVisible()?this.onPopoverShow():i&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new pi(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:w.GidsFloatingElementType.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],i=Za(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const r=Za(a);t.push(...r)})),this.focusableElements=t.sort(((a,r)=>{const o=a.compareDocumentPosition(r),l=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:d?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const r=this._el.shadowRoot?.activeElement;r!==null&&(s=r)}const a=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&a||(e.preventDefault(),i&&i.focus()):s!==i&&a||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return n(ae,{key:"73497d9ef4f14eebabf001242caef76381b5991d"},n("slot",{key:"7b765462348d7a0c4340bdefd665d5b06149f404",name:"anchor"}),n("div",{key:"c08d46d227c0a7427d6e32f7999cfe0bc4ef7761",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},n("span",{key:"f7d42809d784ac6a83ccf02fc0d3d206429cdd8c",id:"arrow"}),n("div",{key:"869b33ab701c0fe3bd1e9e98e1174366d78a9807"},n("slot",{key:"9c3e5e4d37cc1da657984f1807e8f000011f8161"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),Qa=e=>{if(!(e instanceof E)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const i=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=i,s&&e.blur(),s}catch{return!1}},Za=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>Qa(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];Qa(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function yg(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,Ka))}))}yg();const _g=Ka,{getDisplayContent:Ja,shouldIncludeA11yText:xg}=Kn,{getGidsBadgeClassNames:Cg}=vr,mi=({appearance:e,type:t,count:i,accessibleText:s,outline:a,class:r,...o})=>{const l=xg(t,i,at(s));return n("span",{class:Cg({appearance:e,type:t,outline:a},r),...o},l&&n("span",{class:"gids-visually-hidden"},at(s)?s:i),t==="notification"?l?n("span",{"aria-hidden":"true"},Ja(i,s)):Ja(i,s):null)},{shouldTextBeHiddenFromAt:wg}=Ui,{getGidsAvatarClassNames:Sg}=br,en=({appearance:e,color:t,size:i,badge:s,text:a,imageSrc:r,alt:o,iconTitleId:l,class:d,...h})=>{const c=wg({text:a,alt:o});return n("span",{class:Sg({color:t,size:i},d),...h},e==="image"?n("img",{src:r,alt:o??a??"",width:"100",height:"100"}):e==="icon"?n(P,{name:"user",alt:o??a,titleId:l}):n("span",{role:c?void 0:"img","aria-hidden":c?"true":void 0,"aria-label":c?void 0:o??a},a),s)},{getGidsProfileMenuHeaderClassNames:Ig}=_o,{getProfileHeaderMenuAvatarText:kg}=es,tn=T(class extends E{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??kg({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,a=this?.avatarBadgeVisible??!1,r=this?.avatarProps,o=r?.badgeProps,l=Ig({headerItemsPosition:e}),d=r?.size??"xl";return n($,{key:"f16b9a25f3fb84610d47d52921c83cede9320789",class:l},s?n(en,{onClick:this.onAvatarItemPress,appearance:r?.appearance??"text",color:r?.color??"brand",size:d,text:this.getAvatarText(),imageSrc:r?.imageSrc??"",alt:r?.alt??"alt-img",badge:a?n(mi,{appearance:o?.appearance??"information",type:o?.type,count:o?.count,outline:o?.outline}):void 0}):void 0,n("div",{key:"60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0",class:He("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},n("span",{key:"8ef50edf88e704431eb9e5cc32f5211767197ab1",onClick:this.onHeaderItemTitlePress},t),n("p",{key:"a3cf11a026b44d972f4d66626363d7a5430ea5cc",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 fi(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,tn))}))}fi();const Eg=tn,{getGidsProfileMenuClassNames:Tg}=xo,sn=T(class extends E{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:a})=>{const r={...a,sectionIndex:i,itemIndex:s};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(r)&&this.onProfileMenuItemPress({originalEvent:t,id:a.id,sectionIndex:i,itemIndex:s,leadingLabel:a?.leadingLabel,leadingSupport:a?.leadingSupport,trailingLabel:a?.trailingLabel,trailingSupport:a?.trailingSupport}),this.profileMenuItemSelection(r)},this.defaultSelectedProfileMenuItem=()=>{const t=this?.profileMenuItems??[],i=this?.selectedProfileMenuItemId??void 0;t.length>0&&i&&t.map(((s,a)=>{const r=s?.items??[],o=r.findIndex((l=>l?.id===i));if(o!=null&&o!==-1){const l=r[o];l&&(this.selectedProfileMenuItem={...l,id:l.id,sectionIndex:a,itemIndex: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}selectedProfileMenuItemIdChanged(e){this.selectedProfileMenuItemId=e}profileMenuItemsChanged(e){this.profileMenuItems=e,this.defaultSelectedProfileMenuItem()}connectedCallback(){}componentDidLoad(){this.defaultSelectedProfileMenuItem()}render(){const e=this?.headerItem,t=this?.headerVisible,i=this?.headerDividerVisible,s=this?.listSectionDividerVisible,a=this?.profileMenuItems??[],r=Tg();return n($,{key:"4baa2263eed55afa652eba0f1e819b1e67e9b1a2",class:r},n(_e,{key:"4ccae5d9463d84deaddacbf88c8c082b3e320db7",type:this.hasProfileMenuItems()?"default":"no-options"},t?n("div",{class:"gids-profile-menu__header-container"},n("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?n("div",{class:"gids-profile-menu__header-divider-container"},n(Oe,null)):void 0,a.map(((o,l)=>n(xe,{key:`${l+1}`,sectionLabel:o?.sectionLabel??""},(o?.items??[]).map(((d,h)=>{const c=this.isThisItemSelected({...d,sectionIndex:l,itemIndex:h});return console.log("_thisItemSelected",c),n(nt,{...d,key:`${h+1}`,id:d.id,index:h,onPressListItem:g=>this.onListItemPress({event:g,sectionIndex:l,itemIndex:h,item:d}),selected:c},d?.leadingLabel)})),l<a.length-1&&s?n(Oe,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged: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],selectedProfileMenuItemId:[1,"selected-profile-menu-item-id"],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}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function an(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,sn);break;case"gids-profile-menu-header":customElements.get(e)||fi()}}))}an();const Lg=sn,{getGidsProfileClassNames:Pg,getGidsProfileTextClassNames:Mg}=Co,{getProfileHeaderMenuAvatarText:Ag}=es,nn=T(class extends E{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.selectedProfileMenuItemId=void 0,this.onProfileControlPress=t=>{if(t&&t.stopPropagation(),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=>{t?.originalEvent&&(t.originalEvent?.stopPropagation(),t.originalEvent?.preventDefault()),this.isMenuExpanded=!1,this.selectedProfileMenuItemId=t.id,this.onProfileMenuItemPress&&this.onProfileMenuItemPress({...t})},this.onPressHeaderAvatar=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.onPressHeaderTitle=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.onPressHeaderSupportingText=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.positionProfileMenu=()=>{const t=this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),s=window.innerWidth,a=window.innerHeight;t.style.maxHeight="none";const r=t.getBoundingClientRect(),o=a-i.bottom-8,l=i.top-4,d=r.height>o&&l>o,h=d?l:o;t.style.maxHeight=r.height>h?h+"px":"none";const c=t.getBoundingClientRect();let g=i.left;g+c.width>s-4&&(g=s-c.width-4),g<4&&(g=4),t.style.left=g-i.left+"px",t.style.top=d?-c.height-4+"px":i.height+4+"px"},this.getProfileControlAvatarText=()=>{const t=this?.profileControlAvatarProps,i=this?.profileControlTitle;return t?.text??Ag({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,s=this?.profileControlAvatarVisible??!1,a=this?.profileControlAvatarBadgeVisible??!1,r=this?.profileControlBorderRadius??"none",o=this?.profileControlShadow??"none",l=this?.profileControlLeadingIcon,d=this?.profileControlTrailingIcon,h=this?.profileControlTitle??"",c=this?.profileControlSupportingText??"",g=this?.profileMenuItems??[],p=this?.headerDividerVisible??!1,m=this?.headerVisible??!1,u=this?.headerItem,f=this?.listSectionDividerVisible??!1,v=this?.menuId,y=this?.isMenuExpanded??!1,_=this.hasMenu(),b=this.selectedProfileMenuItemId,x=this?.profileControlLeadingIconSize??"sm",C=this?.profileControlTrailingIconSize??"sm",I=this?.profileControlLeadingIconAppearance??"filled",k=this?.profileControlTrailingIconAppearance??"filled",L=Pg({profileControlAppearance:e,profileControlBorderRadius:r,profileControlShadow:o,expanded:y&&_}),M=t?.size??"sm",{titleClasses:A,supportingTextClasses:F}=Mg({profileControlAppearance:e});let z=t?.color??"brand";return e==="brand"&&(z=t?.color??"default"),n($,{key:"af2b1019426d4afb25d17e13cbcfd9c68ff93ae3",class:L,onClick:this.onProfileControlPress,"menu-expanded":y},l?n(P,{name:l,size:x,appearance:I}):void 0,n("div",{key:"0236ae2295f37e17c119fb2aef82ce640e0f5176",class:"gids-profile__main-container"},s?n(en,{appearance:t?.appearance??"text",color:z,size:M,text:this.getProfileControlAvatarText(),imageSrc:t?.imageSrc??"",alt:t?.alt??"alt-img",badge:a?n(mi,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,n("div",{key:"24ff9b5beb2f85c80bd6f4995f121c07ea419a30",class:"gids-profile__content-container"},n("span",{key:"eee7c917840c9e50235c7ff6a1521257aad5b7b0",class:A},h),n("p",{key:"13f067ccbf54ec8562644a80959f78a0ece5ac68",class:F},c))),d?n(P,{name:d,size:C,appearance:k}):void 0,_&&y?n("div",{class:"gids-profile__dropdown-menu-container",id:v,role:"profilePickerbox",onClick:O=>O.stopPropagation()},n("gids-profile-menu",{headerItem:u,headerDividerVisible:p,headerVisible:m,listSectionDividerVisible:f,profileMenuItems:g,onHeaderAvatarPress:this.onPressHeaderAvatar,onHeaderTitlePress:this.onPressHeaderTitle,onHeaderSupportingTextPress:this.onPressHeaderSupportingText,onProfileMenuItemPress:this.onPressProfileMenuItem,selectedProfileMenuItemId:b})):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}"}},[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],selectedProfileMenuItemId:[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 Dg(){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,nn);break;case"gids-profile-menu":customElements.get(e)||an();break;case"gids-profile-menu-header":customElements.get(e)||fi()}}))}Dg();const zg=nn,Ng=ya,{getGidsScrimClassNames:rn}=ko,on=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=rn(e)}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=rn(this.extraClasses)}render(){return n("div",{key:"18caab041af3f9687f5adfd316396540a5e86b8e",class:this.activeClasses,part:"root"},n("slot",{key:"2e512b31b80245db0ae80434f89979455cf97392"}))}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 $g(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,on))}))}$g();const Fg=on,{getSkeletonBaseClassNames:Og}=Eo,ln=T(class extends E{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),i=this.getDimension(this.height);return t!==void 0&&(e.width=t),i!==void 0&&(e.height=i),e}render(){const e=Og({variant:this.variant??"text",animation:this.animation??"none"});return n($,{key:"09fe728912d038d44c4c3f5464ab057461aeabfc",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 Bg(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,ln))}))}Bg();const Vg=ln,dn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=ui(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function Rg(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,dn))}))}Rg();const Gg=dn,{getGidsTabItemClassNames:Hg}=Ao,cn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const e=Hg({appearance:this.appearance,width:this.width,active:this.active}),t=this.hasTrailingIcon,i=this.badgeVisible,s=this.appearance==="primary"&&this.active?"inverse":this.badgeAppearance??"information",a=this.label;return n($,{key:"a364c69d22d8bb640c9f280b5d1722f1e379e046",class:e,onClick:this.handleHostClick},this.hasLeadingIcon?n("slot",{name:"leadingIconTabItem"}):void 0,a&&a!==""?n("span",{class:"gids-tab-item__label"},a&&a!==""?a:void 0,i?n(mi,{appearance:s,type:this.badgeType,count:this.badgeCount}):void 0):void 0,t?n("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);white-space:nowrap;flex-shrink:0;cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);display:flex;justify-content:center;align-items:center;flex:1;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function jg(){typeof customElements<"u"&&["gids-tab-item"].forEach((e=>{e==="gids-tab-item"&&(customElements.get(e)||customElements.define(e,cn))}))}jg();const Yg=cn,{getGidsTabClassNames:qg}=zo,gn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.appearance="default"}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleActiveTabIdChange(e){this.activeTabId=e}componentDidLoad(){this.syncPropsToChildren(),this.hostElement.addEventListener("slotchange",(()=>this.syncPropsToChildren()))}componentDidUpdate(){this.syncPropsToChildren()}syncPropsToChildren(){this.hostElement.querySelectorAll("gids-tab-item").forEach((e=>{e&&(e.appearance=this.appearance,e.width=this.width,e.active=this.isTabActive(e.itemId),e.onPressGidsTabItem=t=>{this.activeTabId=t?.itemId,this.onPressGidsTab&&this.onPressGidsTab(t),this.syncPropsToChildren()})}))}isTabActive(e){return e===this.activeTabId}render(){const e=qg({width:this.width,appearance:this.appearance});return n($,{key:"d4894b3e60a3057a392c717db7d5f1415fe1e1e8",class:e},n("slot",{key:"f9bc6099f9b57ecc507462ee1f2a5f613176ced1"}))}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}}static get style(){return".gids-tab{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--gids-gap-150);overflow-y:hidden;overflow-x:scroll}.gids-tab--full{display:flex}.gids-tab--item-subtle{gap:0}.gids-tab--item-underlined{gap:0}"}},[260,"gids-tab",{width:[1],appearance:[1],activeTabId:[1,"active-tab-id"],onPressGidsTab:[16]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}]);function Wg(){typeof customElements<"u"&&["gids-tab"].forEach((e=>{e==="gids-tab"&&(customElements.get(e)||customElements.define(e,gn))}))}Wg();const Ug=gn,{formatCharCount:Xg}=Ji,{inputToGidsFieldStatus:Kg}=$o,hn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=De(this,"gidsTextFieldClear"),this.#t=st(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Hi(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return n("gids-field",{key:"e7b53ef42f47bef08ef1304f98970aba15a9f5ce",disabled:this.disabled,count:Xg(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Kg(this.status)},n(gi,{key:"4c10235170b6a4dde192aa3d9ac94c086407c544",slot:"label",disabled:this.disabled,info:n("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),n("gids-input",{key:"acd239945281fc5f370a39c59bac41ac0ff7d30f",ref:a=>this.#e=a,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},n("slot",{key:"6c15ae2ad89af2482b89f55871973b05901b068f",name:"leadingIcon"}),n("slot",{key:"241b8faeb07db3e532dfc7f71137d5a051b10f6f",name:"leadingAccessory"}),s&&n(Ua,{key:"16479751097d57a6cc95ede2bd4f7dad4c04e19f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),n("slot",{key:"eb147031f430799b1136fcbe07d8cfd58f1a9c80",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function Qg(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,hn);break;case"gids-field":customElements.get(e)||bt();break;case"gids-input":customElements.get(e)||Ye()}}))}Qg();const Zg=hn,Jg=fs,pn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=Y();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new pi(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:w.GidsFloatingElementType.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return n(ae,{key:"56a3589fce74458f3c72d17dfcd79b464bdf7712"},n("slot",{key:"bb5599494aafa6efa4ce280cbf2dfdd39affda98"}),n("span",{key:"1d9cbcb72a293a465ea8158282f99d71d46c08c4",id:"tooltip",part:"tooltip",role:"tooltip"},n("span",{key:"b4e274e4ba08a0033d0af4a4d0a4a511961a80ab",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function eh(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,pn))}))}eh();const th=pn,{getGidsMenuGroupClassNames:ih}=po,un=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>n("div",{class:ih({type:e},i),...s},e==="loading"?n(de,{indeterminate:!0,size:"md"}):null,e==="no-options"?n("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsMenuClassNames:sh}=uo,mn=({heading:e,supportingText:t,level:i,supportingTextTypography:s,isHeaderDividerVisible:a=!1,class:r,...o},l)=>n("div",{class:sh(r),...o},e!=null&&e!==""||t!=null&&t!==""?n(hs,{heading:e,supportingText:t,level:i,supportingTextTypography:s??"eyebrow-medium"}):null,a?n("div",{class:"gids-menu__header-divider"},n(Oe,{orientation:"horizontal"})):void 0,l!=null?n("div",{class:"gids-menu__children"},l):null),{getGidsCheckboxControlClassNames:ah}=Or,bi=({checked:e,defaultChecked:t,disabled:i,indeterminate:s,inputId:a,name:r,value:o,required:l,onChange:d,class:h,...c})=>n("span",{class:ah(h),...c},n("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:i,checked:e,defaultChecked:t,required:l,indeterminate:s,value:o,id:a,name:r,onChange:d}),n(P,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),n(P,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getGidsTransferListClassNames:nh}=Fo,fn=T(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.leftListHeading="Choices",this.rightListHeading="Choosen",this.moveAllVisible=!1,this.transferListType="basic",this.leftListItems=[],this.rightListItems=[],this.listsMaxHeight="200px",this.leftListItemsState=[],this.rightListItemsState=[],this.tempLeftListItemsState=[],this.tempRightListItemsState=[]}handleListsMaxHeightChange(e){this.listsMaxHeight=e}handleLeftListHeadingChange(e){this.leftListHeading=e}handleRightListHeadingChange(e){this.rightListHeading=e}handleMoveAllVisibilityChange(e){this.moveAllVisible=e}handleTransferListTypeChange(e){this.transferListType=e}handleLeftListItemsChange(e){this.leftListItems=e,this.setListItemsStates()}handleRightListItemsChange(e){this.rightListItems=e,this.setListItemsStates()}componentDidLoad(){this.setListItemsStates()}setListItemsStates(){this.leftListItemsState=this.leftListItems,this.rightListItemsState=this.rightListItems}getListHeading(e){return e==="left"?this.leftListHeading:this.rightListHeading}getListSupportingText(e){let t=this?.tempLeftListItemsState??[],i=this?.leftListItemsState??[];return e==="right"&&(t=this?.tempRightListItemsState??[],i=this?.rightListItemsState??[]),`${t.length} of ${i.length} selected`}isAllItemsSelectedInList({listSide:e}){const t=this.getStateListsItemsArr(e),i=this.getTempListsItemsArr(e);return t.length>0&&t.length===i.length}isAtleastOneItemSelectedInList({listSide:e}){const t=this.getStateListsItemsArr(e),i=this.getTempListsItemsArr(e);return i.length>0&&i.length<t.length}renderListHeading(e){if((this?.transferListType??"basic")!=="basic"){const t=this.isAllItemsSelectedInList({listSide:e}),i=this.isAtleastOneItemSelectedInList({listSide:e});return n("div",{class:"gids-transfer-list__menu-heading-container"},n(bi,{checked:t||i,onChange:s=>this.selectUnselectAllItems({event:s,listSide:e}),indeterminate:i}),n("div",{class:"gids-transfer-list__menu-heading-text-content-container"},n("span",{class:"gids-transfer-list__heading-text"},this.getListHeading(e)),n("span",{class:"gids-transfer-list__heading-support-text"},this.getListSupportingText(e))))}}listItemSelection({event:e,pressedIndex:t,listSide:i}){this.selectUnselectListItem({event:e,pressedIndex:t,listSide:i})}onPressingListItem({event:e,pressedIndex:t,listSide:i}){this.listItemSelection({event:e,pressedIndex:t,listSide:i})}selectUnselectListItem({event:e,pressedIndex:t,listSide:i}){const s=this.getStateListsItemsArr(i)[t];let a=!1;if(i==="left"&&s){const r=this?.tempLeftListItemsState??[],o=r.findIndex((l=>l?.id===s?.id));o!=null&&o!==-1?(r.splice(o,1),a=!1):(r.push(s),a=!0),this.tempLeftListItemsState=r,this.leftListItemsState=this?.leftListItemsState?[...this.leftListItemsState]:[]}else if(i==="right"&&s){const r=this?.tempRightListItemsState??[],o=r.findIndex((l=>l?.id===s?.id));o!=null&&o!==-1?(r.splice(o,1),a=!1):(r.push(s),a=!0),this.tempRightListItemsState=r,this.rightListItemsState=this?.rightListItemsState?[...this.rightListItemsState]:[]}this.callOnTransferListSelectFunc({event:e,isSelected:a,listSide:i,selectedIndexes:[t],selectionType:"single"})}isItemSelected({id:e,listSide:t}){const i=this.getTempListsItemsArr(t);return i.length>0&&!!i.find((s=>s?.id===e))}getStateListsItemsArr(e){let t=this?.leftListItemsState??[];return e==="right"&&(t=this?.rightListItemsState??[]),t}getTempListsItemsArr(e){let t=this?.tempLeftListItemsState??[];return e==="right"&&(t=this?.tempRightListItemsState??[]),t}selectUnselectAllItems({event:e,listSide:t}){const i=this.getStateListsItemsArr(t),s=this.isAllItemsSelectedInList({listSide:t}),a=this.isAtleastOneItemSelectedInList({listSide:t});t==="left"?this.tempLeftListItemsState=s||a?[]:[...i]:this.tempRightListItemsState=s||a?[]:[...i];const r=[];s||a||i.map(((o,l)=>{r.push(l)})),this.callOnTransferListSelectFunc({event:e,isSelected:!s&&!a,listSide:t,selectedIndexes:r,selectionType:"all"})}callOnTransferListSelectFunc({event:e,isSelected:t,listSide:i,selectedIndexes:s,selectionType:a}){this.onTransferListSelect&&this.onTransferListSelect({originalEvent:e,originalLeftListItems:this?.leftListItems??[],originalRightListItems:this?.rightListItems??[],currentLeftListItems:this?.leftListItemsState??[],currentRightListItems:this?.rightListItemsState??[],leftListSelectedItems:this?.tempLeftListItemsState??[],rightListSelectedItems:this?.tempRightListItemsState??[],selectedIndexes:s,selectionType:a,listSide:i,isSelected:t})}movementButtonDisabled({listSide:e,movementType:t}){if(e==="left"){const i=this?.leftListItemsState&&this.leftListItemsState.length>0?this.leftListItemsState.length:0;if(t==="move-single")return!(i>0&&(this?.tempLeftListItemsState&&this.tempLeftListItemsState.length>0?this.tempLeftListItemsState.length:0)>0);if(t==="move-all")return!(i>0)}else if(e==="right"){const i=this?.rightListItemsState&&this.rightListItemsState.length>0?this.rightListItemsState.length:0;if(t==="move-single")return!(i>0&&(this?.tempRightListItemsState&&this.tempRightListItemsState.length>0?this.tempRightListItemsState.length:0)>0);if(t==="move-all")return!(i>0)}return!0}callOnTransferAction({transferTo:e,transferFrom:t,movementType:i,newTransferredItems:s}){this.onTransferAction&&this.onTransferAction({transferTo:e,transferFrom:t,originalLeftListItems:this?.leftListItems??[],originalRightListItems:this?.rightListItems??[],currentLeftListItems:this?.leftListItemsState??[],currentRightListItems:this?.rightListItemsState??[],leftListSelectedItems:this?.tempLeftListItemsState??[],rightListSelectedItems:this?.tempRightListItemsState??[],newTransferredItems:s,movementType:i})}clearListSystem({event:e,listSide:t,movementType:i}){if(console.log("event",e),console.log("listSide",t),console.log("movementType",i),!this.movementButtonDisabled({listSide:t,movementType:i})){if(t==="left")if(i==="move-single"){const s=this?.tempLeftListItemsState??[],a=this?.leftListItemsState??[];if(a.length>0){const r=[];a.map((o=>{s.find((l=>l?.id===o?.id))||r.push(o)})),this.leftListItemsState=[...r]}this.tempLeftListItemsState=[]}else i==="move-all"&&(this.leftListItemsState=[],this.tempLeftListItemsState=[]);else if(t==="right")if(i==="move-single"){const s=this?.tempRightListItemsState??[],a=this?.rightListItemsState??[];if(a.length>0){const r=[];a.map((o=>{s.find((l=>l?.id===o?.id))||r.push(o)})),this.rightListItemsState=[...r]}this.tempRightListItemsState=[]}else i==="move-all"&&(this.rightListItemsState=[],this.tempRightListItemsState=[])}}moveListItems({event:e,listSide:t,movementType:i}){if(!this.movementButtonDisabled({listSide:t,movementType:i})){const s=this?.leftListItemsState??[],a=this?.rightListItemsState??[],r=this?.tempLeftListItemsState??[],o=this?.tempRightListItemsState??[];let l=[];t==="left"?i==="move-single"?(this.rightListItemsState=[...r,...a],l=[...r]):i==="move-all"&&(this.rightListItemsState=[...s,...a],l=[...s]):t==="right"&&(i==="move-single"?(this.leftListItemsState=[...o,...s],l=[...o]):i==="move-all"&&(this.leftListItemsState=[...a,...s],l=[...a])),this.clearListSystem({event:e,listSide:t,movementType:i}),this.callOnTransferAction({transferTo:t==="left"?"right":"left",transferFrom:t,movementType:i,newTransferredItems:l})}}onItemsMovement({event:e,listSide:t,movementType:i}){this.moveListItems({event:e,listSide:t,movementType:i})}render(){const e=nh(),t=this?.leftListItemsState??[],i=this?.rightListItemsState??[],s=this.listsMaxHeight,a=this?.transferListType??"basic";return n($,{key:"f6d27883de92122e98bd43c004ecc71cb04b2bfd",class:e},n("div",{key:"6cee295abcfa7a1e0238e11fefe61784b30e1af2",class:"gids-transfer-list__left-container"},n(un,{key:"3ef75b241090fb7cdfe00e56019d71cc9e390201",type:t.length>0?"default":"no-options"},n(mn,{key:"b176f73704f65bb733e4a6eff81ea6a0afbb9983",heading:this.renderListHeading("left"),style:{"--gidsMenuChildren-max-height":s},isHeaderDividerVisible:a!=="basic"},t.map(((r,o)=>{const l=r?.id?r.id:""+(o+1),d=this.isItemSelected({id:l,listSide:"left"});return n(nt,{id:""+l,index:o,leadingAccessory:n(bi,{checked:d}),selected:d,onPressListItem:h=>this.onPressingListItem({event:h,pressedIndex:o,listSide:"left"})},r?.listLabel)}))))),n("div",{key:"954bb5d1328adb1058e26d04d5c60c71aa417a33",class:"gids-transfer-list__middle-container"},n(R,{key:"77bd61dbf02106e8a5372c5afa01138ad1791a91",leadingIcon:n(P,{name:"forward"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"left",movementType:"move-all"}),onClick:r=>this.onItemsMovement({event:r,listSide:"left",movementType:"move-all"})}),n(R,{key:"eecbbaa63c5acbdf1ea2c2a5f4546b6e1247b6a3",leadingIcon:n(P,{name:"chevron-right"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"left",movementType:"move-single"}),onClick:r=>this.onItemsMovement({event:r,listSide:"left",movementType:"move-single"})}),n(R,{key:"72d8f5b58abfc18ab365d822e5460d4dbf332329",leadingIcon:n(P,{name:"chevron-left"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"right",movementType:"move-single"}),onClick:r=>this.onItemsMovement({event:r,listSide:"right",movementType:"move-single"})}),n(R,{key:"73dfa4e3104ec15b79d1bfda52db59fe8ba03e8b",leadingIcon:n(P,{name:"backward"}),appearance:"default",size:"sm",width:"full",disabled:this.movementButtonDisabled({listSide:"right",movementType:"move-all"}),onClick:r=>this.onItemsMovement({event:r,listSide:"right",movementType:"move-all"})})),n("div",{key:"5ac78a3c3704fda5e7c92cbb52d6a5cde45312f7",class:"gids-transfer-list__right-container"},n(un,{key:"4c0e727d5452d11e48917ee0a8fa0d1462295771",type:i.length>0?"default":"no-options"},n(mn,{key:"83f6e5578ccbcc6fe0dfac56b738e6c88498224a",heading:this.renderListHeading("right"),style:{"--gidsMenuChildren-max-height":s},isHeaderDividerVisible:a!=="basic"},i.map(((r,o)=>{const l=r?.id?r.id:""+(o+1),d=this.isItemSelected({id:l,listSide:"right"});return n(nt,{id:""+l,index:o,selected:d,leadingAccessory:n(bi,{checked:d}),onPressListItem:h=>this.onPressingListItem({event:h,pressedIndex:o,listSide:"right"})},r?.listLabel)}))))))}get hostElement(){return this}static get watchers(){return{listsMaxHeight:[{handleListsMaxHeightChange:0}],leftListHeading:[{handleLeftListHeadingChange:0}],rightListHeading:[{handleRightListHeadingChange:0}],moveAllVisible:[{handleMoveAllVisibilityChange:0}],transferListType:[{handleTransferListTypeChange:0}],leftListItems:[{handleLeftListItemsChange:0}],rightListItems:[{handleRightListItemsChange:0}]}}static get style(){return".gids-transfer-list{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-500)}.gids-transfer-list .gids-menu__children{max-height:var(--gidsMenuChildren-max-height);overflow:auto}.gids-transfer-list__left-container{display:flex;width:100%;flex-direction:column}.gids-transfer-list__middle-container{display:flex;width:15%;flex-direction:column;gap:var(--gids-gap-150)}.gids-transfer-list__right-container{display:flex;width:100%;flex-direction:column}.gids-transfer-list__menu-heading-container{display:flex;align-items:flex-start;justify-content:flex-start;gap:var(--gids-gap-100)}.gids-transfer-list__menu-heading-text-content-container{display:flex;flex-direction:column}.gids-transfer-list__heading-text{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-subtle)}.gids-transfer-list__heading-support-text{font-family:var(--gids-typography-paragraph-medium__font-family);font-size:var(--gids-typography-paragraph-medium__font-size);font-weight:var(--gids-typography-paragraph-medium__font-weight);letter-spacing:var(--gids-typography-paragraph-medium__letter-spacing);line-height:var(--gids-typography-paragraph-medium__line-height);text-transform:var(--gids-typography-paragraph-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-medium__font-variant-caps, inherit);color:var(--gids-color-text-subtlest)}"}},[0,"gids-transfer-list",{leftListHeading:[1,"left-list-heading"],rightListHeading:[1,"right-list-heading"],moveAllVisible:[4,"move-all-visible"],transferListType:[1,"transfer-list-type"],leftListItems:[16],rightListItems:[16],listsMaxHeight:[1,"lists-max-height"],onTransferAction:[16],onTransferListSelect:[16],leftListItemsState:[32],rightListItemsState:[32],tempLeftListItemsState:[32],tempRightListItemsState:[32]},void 0,{listsMaxHeight:[{handleListsMaxHeightChange:0}],leftListHeading:[{handleLeftListHeadingChange:0}],rightListHeading:[{handleRightListHeadingChange:0}],moveAllVisible:[{handleMoveAllVisibilityChange:0}],transferListType:[{handleTransferListTypeChange:0}],leftListItems:[{handleLeftListItemsChange:0}],rightListItems:[{handleRightListItemsChange:0}]}]);function rh(){typeof customElements<"u"&&["gids-transfer-list"].forEach((e=>{e==="gids-transfer-list"&&(customElements.get(e)||customElements.define(e,fn))}))}rh();const oh=fn;function vi(e,t){Go(e,t)}const lh=e=>{vi(e)},dh=e=>{vi(e)},ch=({children:e,classNameToBeValidated:t,childrenToBeValidated:i,currentComponentName:s})=>{if(e!=null){const a=Array.isArray(e)?e:[e];for(const r of a){if(!r||typeof r!="object"||!("vtag"in r))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${s}. Expected ${i}.`);{const o=r.vtag;if(o!==t&&o!==i)throw Error(`HTML/JSX Render Error: <${s}> only accepts <${i}> as direct children. Received element tag: "${typeof o=="function"?o.name:o}".`)}}}};w.GidsActionBar=ul,w.GidsActivityGauge=vl,w.GidsAdvancedTooltip=nd,w.GidsBarChart=od,w.GidsBentoCard=cd,w.GidsCalendar=Td,w.GidsCalendarHeaderPanel=bd,w.GidsCalendarMonthList=vd,w.GidsCalendarYearList=yd,w.GidsCarousel=Fd,w.GidsChart=Xd,w.GidsChartLegend=Bd,w.GidsChartLegendItem=Od,w.GidsChevronButton=Qd,w.GidsDot=Zd,w.GidsDropdown=oc,w.GidsDropdownField=nc,w.GidsDropdownPicker=rc,w.GidsExpansion=yc,w.GidsExpansionBodyList=pc,w.GidsExpansionBodyListItem=cc,w.GidsExpansionGroup=fc,w.GidsField=_c,w.GidsFilter=xc,w.GidsFlyoutPanel=wc,w.GidsHeaderNavigation=Tc,w.GidsHeaderNavigationItem=Ic,w.GidsIcon=Lc,w.GidsInput=Pc,w.GidsLevelGauge=Mc,w.GidsLineChart=Ac,w.GidsMdTable=Gc,w.GidsNotification=jc,w.GidsOverflowContainer=Wc,w.GidsOverlayProvider=sg,w.GidsPasswordField=bg,w.GidsPieChart=vg,w.GidsPopover=_g,w.GidsProfile=zg,w.GidsProfileMenu=Lg,w.GidsProfileMenuHeader=Eg,w.GidsProgressCircle=Ng,w.GidsScrim=Fg,w.GidsSkeleton=Vg,w.GidsSnackbar=Gg,w.GidsTab=Ug,w.GidsTabItem=Yg,w.GidsTextField=Zg,w.GidsToggleButton=Jg,w.GidsTooltip=th,w.GidsTransferList=oh,w.getAssetPath=Cn,w.getConstructedGidsStylesheet=Y,w.refreshConstructedGidsStylesheet=Yt,w.render=jn,w.setAssetPath=wn,w.setGidsAssetFilePaths=lh,w.setGidsAssetPaths=vi,w.setGidsDefaultAssetDirPath=dh,w.setNonce=Gn,w.setPlatformOptions=Hn,w.testHtmlChildrenValidity=ch,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|