@ganpatiinfo/gids-core-web 8.2.0 → 9.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.
Files changed (72) hide show
  1. package/dist/css/index.css +475 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +332 -0
  4. package/dist/gids-field.js +1 -1
  5. package/dist/gids-icon.js +1 -1
  6. package/dist/gids-input.js +1 -1
  7. package/dist/gids-overflow-container.js +1 -1
  8. package/dist/gids-overlay-provider.js +1 -1
  9. package/dist/gids-password-field.js +1 -1
  10. package/dist/gids-popover.d.ts +11 -0
  11. package/dist/gids-popover.js +1 -0
  12. package/dist/gids-scrim.js +1 -1
  13. package/dist/gids-text-field.js +1 -1
  14. package/dist/gids-toggle-button.js +1 -1
  15. package/dist/gids-tooltip.d.ts +11 -0
  16. package/dist/gids-tooltip.js +1 -0
  17. package/dist/index.js +1 -1
  18. package/dist/p-B8kX8Vqv.js +1 -0
  19. package/dist/p-CFw4_-5A.js +1 -0
  20. package/dist/{p-Bg3lw2Ae.js → p-DvoHLz_5.js} +1 -1
  21. package/dist/p-a3JfEYJp.js +1 -0
  22. package/dist/{p-DjvDBWCb.js → p-iCAclJND.js} +1 -1
  23. package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
  24. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
  25. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
  26. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
  27. package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
  28. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
  29. package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
  30. package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
  31. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
  32. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
  33. package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
  34. package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
  35. package/dist/types/components.d.ts +77 -2
  36. package/dist/types/index.d.ts +2 -0
  37. package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
  38. package/dist-bundled/es/gids-field.js +1 -1
  39. package/dist-bundled/es/gids-icon.js +9 -9
  40. package/dist-bundled/es/gids-input.js +4 -4
  41. package/dist-bundled/es/gids-overflow-container.js +4 -4
  42. package/dist-bundled/es/gids-overlay-provider.js +3 -3
  43. package/dist-bundled/es/gids-password-field.js +19 -19
  44. package/dist-bundled/es/gids-popover.js +110 -0
  45. package/dist-bundled/es/gids-scrim.js +3 -3
  46. package/dist-bundled/es/gids-text-field.js +7 -7
  47. package/dist-bundled/es/gids-toggle-button.js +5 -5
  48. package/dist-bundled/es/gids-tooltip.js +66 -0
  49. package/dist-bundled/es/index.js +33 -19
  50. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
  51. package/dist-bundled/es/p-CFw4_-5A-Dzvju3VE.js +25 -0
  52. package/dist-bundled/es/{p-DijVkS9b-CtFkEtlE.js → p-DijVkS9b-CeV1i4T-.js} +1 -1
  53. package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DvoHLz_5-C5EvA91N.js} +7 -7
  54. package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
  55. package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-iCAclJND-Bmsvd-W1.js} +10 -10
  56. package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-veoOgDXg-fRinub-C.js} +12 -5
  57. package/dist-bundled/umd/gids-field.umd.js +1 -1
  58. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  59. package/dist-bundled/umd/gids-input.umd.js +1 -1
  60. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  61. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  62. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  63. package/dist-bundled/umd/gids-popover.umd.js +5 -0
  64. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  65. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  66. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  67. package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
  68. package/dist-bundled/umd/index.umd.js +2 -2
  69. package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
  70. package/package.json +278 -262
  71. package/dist/p-CWdkmFbc.js +0 -1
  72. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(v=>{const g=[];for(let m=0;m<v.length;m++){const p=v[m]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(w.childNodes)).forEach((v=>{f===B(v)&&y.push(v)})),c?y.filter((v=>v.nodeType===1)):y}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[s],a&&a.O===n.O&&e.S&&Ae(e.S)),l},Ae=e=>{O.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const n of s?o.reverse():o)n["s-sh"]!=null&&(A(t,n,s??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===P&&s.push(o)}for(let o=s.length-1;o>=0;o--){const n=s[o];n["s-hn"]!==P&&n["s-ol"]&&(A(G(n).parentNode,n,G(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},je=(e,t,s,o,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);n<=l;++n)o[n]&&(i=Z(null,s,n),i&&(o[n].S=i,A(a,i,G(t))))},ke=(e,t,s)=>{for(let o=t;o<=s;++o){const n=e[o];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const o=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ae(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,c,h,y=!1)=>{let f,w,v=0,g=0,m=0,p=0,N=u.length-1,S=u[0],_=u[N],$=h.length-1,x=h[0],j=h[$];const Fe=c.O==="template"?d.content:d;for(;v<=N&&g<=$;)if(S==null)S=u[++v];else if(_==null)_=u[--N];else if(x==null)x=h[++g];else if(j==null)j=h[--$];else if(K(S,x,y))M(S,x,y),S=u[++v],x=h[++g];else if(K(_,j,y))M(_,j,y),_=u[--N],j=h[--$];else if(K(S,j,y))S.O!=="slot"&&j.O!=="slot"||J(S.S.parentNode,!1),M(S,j,y),A(Fe,S.S,_.S.nextSibling),S=u[++v],j=h[--$];else if(K(_,x,y))S.O!=="slot"&&j.O!=="slot"||J(_.S.parentNode,!1),M(_,x,y),A(Fe,_.S,S.S),_=u[--N],x=h[++g];else{for(m=-1,p=v;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===x.$){m=p;break}m>=0?(w=u[m],w.O!==x.O?f=Z(u&&u[g],c,m):(M(w,x,y),u[m]=void 0,f=w.S),x=h[++g]):(f=Z(u&&u[g],c,g),x=h[++g]),f&&A(G(S.S).parentNode,f,G(S.S))}v>N?je(d,h[$+1]==null?null:h[$+1].S,c,h,g,$):g>$&&ke(u,v,N)})(o,n,t,l,s):l!==null?(e.h!==null&&(o.textContent=""),je(o,null,t,l,0,l.length-1)):!s&&n!==null&&ke(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=o["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(o.data=a)},k=[],Ee=e=>{let t,s,o;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ve(t,i)){let a=k.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],k.push({N:l,k:t})),t["s-sr"]&&k.map((r=>{ve(r.k,t["s-sn"])&&(a=k.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}l.nodeType===1&&Ee(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},et=(e,t)=>{ce.push((()=>e(t)))},A=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=B(l)||"";return{slotNode:se(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!o&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},tt=(e,t,s=!1)=>{var o,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||U(null,null);var c;const h=(c=t)&&c.O===Ye?t:z(null,null,t);if(P=r.tagName,d._&&(h.v=h.v||{},d._.forEach((([y,f])=>{h.v[f]=r[y]}))),s&&h.v)for(const y of Object.keys(h.v))r.hasAttribute(y)&&!["key","ref","style","class"].includes(y)&&(h.v[y]=r[y]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,F=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,M(u,h,s),O.i|=1,Y){Ee(h.S);for(const y of k){const f=y.k;if(!f["s-ol"]&&b.document){const w=b.document.createTextNode("");w["s-nr"]=f,A(f.parentNode,f["s-ol"]=w,f,s)}}for(const y of k){const f=y.k,w=y.N;if(f.nodeType===1&&s&&(f["s-ih"]=(o=f.hidden)!=null&&o),w){const v=w.parentNode;let g=w.nextSibling;if(g&&g.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===f["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===f||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}m=m.previousSibling}}if((!g&&v!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==g)&&f!==g){if(A(v,f,g,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,A(f.parentNode,m,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(i=f["s-ih"])!=null&&i)}f&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else f.nodeType===1&&(f.hidden=!0)}}if(I&&Se(h.S),O.i&=-2,k.length=0,!F&&!(1&d.i)&&r["s-cr"]){const y=h.S.__childNodes||h.S.childNodes;for(const f of y)if(f["s-hn"]!==P&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const w=b.document.createComment("s-nt-"+f.nodeValue);w["s-sn"]=f["s-sn"],A(f.parentNode,w,f,s),f.parentNode.removeChild(f)}}}le=void 0,ae.forEach((y=>y())),ae.length=0,ce.forEach((y=>y())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.C);const s=()=>ot(e,t);if(!t)return ze(s);queueMicrotask((()=>{s()}))},ot=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=V(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),n=Pe(n,(()=>V(o,"componentWillRender",void 0,s))),Pe(n,(()=>nt(e,o,t)))},Pe=(e,t)=>st(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),st=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const n=e.$hostElement$,l=n["s-rc"];s&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,h)=>{var y,f,w;const v=we(h),g=q.get(v);if(!b.document)return v;if(c=c.nodeType===11?c:b.document,g)if(typeof g=="string"){let m,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(v)){m=b.document.createElement("style"),m.textContent=g;const N=(y=O.L)!=null?y:(function(){var S,_,$;return($=(_=(S=b.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&h.i))if(c.nodeName==="HEAD"){const S=c.querySelectorAll("link[rel=preconnect]"),_=S.length>0?S[S.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,_?.parentNode===c?_:null)}else if("host"in c)if(Q){const S=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),X?c.adoptedStyleSheets.unshift(S):c.adoptedStyleSheets=[S,...c.adoptedStyleSheets]}else{const S=c.querySelector("style");S?S.textContent=g+S.textContent:c.prepend(m)}else c.append(m);1&h.i&&c.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(v)){const p=(w=c.defaultView)!=null?w:c.ownerDocument.defaultView;let N;if(g.constructor===p.CSSStyleSheet)N=g;else{N=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)N.insertRule(g.cssRules[S].cssText,S)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),lt(e,t,n,s),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(o=n["s-p"])!=null?o:[],a=()=>rt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},lt=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,tt(e,t,o)}catch(n){H(n,e.$hostElement$)}return null},rt=e=>{const t=e.$hostElement$,s=t,o=e.C;V(s,"componentDidRender",void 0,t),64&e.i?V(s,"componentDidUpdate",void 0,t):(e.i|=64,at(t),V(s,"componentDidLoad",void 0,t),e.F(t),o||it()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>de(e,!1))),e.i&=-517},it=()=>{oe((()=>Ke(b,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(n){H(n,o)}},at=e=>e.classList.add("hydrated"),Le=(e,t,s,o)=>{const n=E(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;s=Ne(s,o.t[t][0]);const d=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!d){if(n.l.set(t,s),o.R){const u=o.R[t];u&&u.map((c=>{try{const[[h,y]]=Object.entries(c);(128&a||1&y)&&(r?r[h](s,i,t):n.T.push((()=>{n.D[h](s,i,t)})))}catch(h){H(h,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},ct=(e,t)=>{var s,o;const n=e.prototype;{e.watchers&&!t.R&&(t.R=_e(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([i,[a]])=>{if(31&a||32&a){const{get:r,set:d}=L(n,i)||{};r&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return r?r.apply(this):(u=i,E(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(u){const c=E(this);if(c){if(d)return(32&a?this[i]:c.$hostElement$[i])===void 0&&c.l.get(i)&&(u=c.l.get(i)),d.apply(this,[Ne(u,a)]),void Le(this,i,u=32&a?this[i]:c.$hostElement$[i],t);Le(this,i,u,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(a,r,d){O.jmp((()=>{var u;const c=i.get(a),h=E(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const g=h?.i;if(h&&g&&!(8&g)&&d!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((N=>{const[[S,_]]=Object.entries(N);m[S]!=null&&(128&g||1&_)&&m[S].call(m,d,r,a)}))}return}const y=l.find((([g])=>g===c)),f=y&&4&y[1][0],w=f&&d===null&&this[c]===void 0;f&&(d=d!==null&&d!=="false");const v=Object.getOwnPropertyDescriptor(n,c);w||d==this[c]||v.get&&!v.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.R)!=null?o:{}),...l.filter((([a,r])=>31&r[0])).map((([a,r])=>{var d;const u=r[1]||a;return i.set(u,a),512&r[0]&&((d=t._)==null||d.push([a,u])),u}))]))}}return e},dt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=_e(e.R),s.H=e.H,s.P=e.P,s._=[];const o=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Ge(l,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!E(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=E(l);if(!i)return;const a=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!b.document)return;const d=r["s-cr"]=b.document.createComment("");d["s-cn"]=!0,A(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.C=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const w=we(u);q.has(w)||((v,g,m)=>{let p=q.get(v);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(v,p)})(w,f,!!(1&u.i))}const h=d.C,y=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(y):y()}catch(h){H(h,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(l,i,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async l=>{1&O.i||E(l),T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ue.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ct(e,s)}catch(o){return H(o),e}};function yt(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let fe=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Me()})):void 0,Me=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const o=document.styleSheets.item(s);if(o)try{let n=-1,l=0;for(let i=0;i<o.cssRules.length;i++){const a=o.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:o}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ue!==void 0&&t!==fe&&(fe&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),fe=t),D.replaceSync((s=>s.rules.map((o=>o.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:o,originalRulesCount:n,styleSheet:l}=s;for(let i=0;i<n;i++)l.deleteRule(o)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ft=()=>(He||(He=Me()),D),ut=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),{showGidsOverflowContainerBottomShadow:De,showGidsOverflowContainerTopShadow:ht}=ut,We=dt(class extends Ve{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),De(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&&(ht(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),De(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 z("div",{key:"6ec89d7178cf344a3127aa5913df8ff65c523592",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},z("slot",{key:"0cf9630efe8337aa0c7a239fa5f09ca30d368513"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function Be(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const pt=We,mt=Be;R.GidsOverflowContainer=pt,R.defineCustomElement=mt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(v=>{const g=[];for(let m=0;m<v.length;m++){const p=v[m]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(w.childNodes)).forEach((v=>{f===B(v)&&y.push(v)})),c?y.filter((v=>v.nodeType===1)):y}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[s],a&&a.O===n.O&&e.S&&Ae(e.S)),l},Ae=e=>{O.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const n of s?o.reverse():o)n["s-sh"]!=null&&(A(t,n,s??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===P&&s.push(o)}for(let o=s.length-1;o>=0;o--){const n=s[o];n["s-hn"]!==P&&n["s-ol"]&&(A(G(n).parentNode,n,G(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},je=(e,t,s,o,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);n<=l;++n)o[n]&&(i=Z(null,s,n),i&&(o[n].S=i,A(a,i,G(t))))},ke=(e,t,s)=>{for(let o=t;o<=s;++o){const n=e[o];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const o=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ae(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,c,h,y=!1)=>{let f,w,v=0,g=0,m=0,p=0,N=u.length-1,S=u[0],_=u[N],$=h.length-1,x=h[0],j=h[$];const Fe=c.O==="template"?d.content:d;for(;v<=N&&g<=$;)if(S==null)S=u[++v];else if(_==null)_=u[--N];else if(x==null)x=h[++g];else if(j==null)j=h[--$];else if(K(S,x,y))M(S,x,y),S=u[++v],x=h[++g];else if(K(_,j,y))M(_,j,y),_=u[--N],j=h[--$];else if(K(S,j,y))S.O!=="slot"&&j.O!=="slot"||J(S.S.parentNode,!1),M(S,j,y),A(Fe,S.S,_.S.nextSibling),S=u[++v],j=h[--$];else if(K(_,x,y))S.O!=="slot"&&j.O!=="slot"||J(_.S.parentNode,!1),M(_,x,y),A(Fe,_.S,S.S),_=u[--N],x=h[++g];else{for(m=-1,p=v;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===x.$){m=p;break}m>=0?(w=u[m],w.O!==x.O?f=Z(u&&u[g],c,m):(M(w,x,y),u[m]=void 0,f=w.S),x=h[++g]):(f=Z(u&&u[g],c,g),x=h[++g]),f&&A(G(S.S).parentNode,f,G(S.S))}v>N?je(d,h[$+1]==null?null:h[$+1].S,c,h,g,$):g>$&&ke(u,v,N)})(o,n,t,l,s):l!==null?(e.h!==null&&(o.textContent=""),je(o,null,t,l,0,l.length-1)):!s&&n!==null&&ke(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=o["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(o.data=a)},k=[],Ee=e=>{let t,s,o;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ve(t,i)){let a=k.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],k.push({N:l,k:t})),t["s-sr"]&&k.map((r=>{ve(r.k,t["s-sn"])&&(a=k.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}l.nodeType===1&&Ee(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},et=(e,t)=>{ce.push((()=>e(t)))},A=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=B(l)||"";return{slotNode:se(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!o&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},tt=(e,t,s=!1)=>{var o,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||U(null,null);var c;const h=(c=t)&&c.O===Ye?t:z(null,null,t);if(P=r.tagName,d._&&(h.v=h.v||{},d._.forEach((([y,f])=>{h.v[f]=r[y]}))),s&&h.v)for(const y of Object.keys(h.v))r.hasAttribute(y)&&!["key","ref","style","class"].includes(y)&&(h.v[y]=r[y]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,F=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,M(u,h,s),O.i|=1,Y){Ee(h.S);for(const y of k){const f=y.k;if(!f["s-ol"]&&b.document){const w=b.document.createTextNode("");w["s-nr"]=f,A(f.parentNode,f["s-ol"]=w,f,s)}}for(const y of k){const f=y.k,w=y.N;if(f.nodeType===1&&s&&(f["s-ih"]=(o=f.hidden)!=null&&o),w){const v=w.parentNode;let g=w.nextSibling;if(g&&g.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===f["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===f||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}m=m.previousSibling}}if((!g&&v!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==g)&&f!==g){if(A(v,f,g,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,A(f.parentNode,m,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(i=f["s-ih"])!=null&&i)}f&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else f.nodeType===1&&(f.hidden=!0)}}if(I&&Se(h.S),O.i&=-2,k.length=0,!F&&!(1&d.i)&&r["s-cr"]){const y=h.S.__childNodes||h.S.childNodes;for(const f of y)if(f["s-hn"]!==P&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const w=b.document.createComment("s-nt-"+f.nodeValue);w["s-sn"]=f["s-sn"],A(f.parentNode,w,f,s),f.parentNode.removeChild(f)}}}le=void 0,ae.forEach((y=>y())),ae.length=0,ce.forEach((y=>y())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.C);const s=()=>ot(e,t);if(!t)return ze(s);queueMicrotask((()=>{s()}))},ot=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=V(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),n=Pe(n,(()=>V(o,"componentWillRender",void 0,s))),Pe(n,(()=>nt(e,o,t)))},Pe=(e,t)=>st(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),st=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const n=e.$hostElement$,l=n["s-rc"];s&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,h)=>{var y,f,w;const v=we(h),g=q.get(v);if(!b.document)return v;if(c=c.nodeType===11?c:b.document,g)if(typeof g=="string"){let m,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(v)){m=b.document.createElement("style"),m.textContent=g;const N=(y=O.L)!=null?y:(function(){var S,_,$;return($=(_=(S=b.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&h.i))if(c.nodeName==="HEAD"){const S=c.querySelectorAll("link[rel=preconnect]"),_=S.length>0?S[S.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,_?.parentNode===c?_:null)}else if("host"in c)if(Q){const S=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),X?c.adoptedStyleSheets.unshift(S):c.adoptedStyleSheets=[S,...c.adoptedStyleSheets]}else{const S=c.querySelector("style");S?S.textContent=g+S.textContent:c.prepend(m)}else c.append(m);1&h.i&&c.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(v)){const p=(w=c.defaultView)!=null?w:c.ownerDocument.defaultView;let N;if(g.constructor===p.CSSStyleSheet)N=g;else{N=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)N.insertRule(g.cssRules[S].cssText,S)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),lt(e,t,n,s),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(o=n["s-p"])!=null?o:[],a=()=>rt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},lt=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,tt(e,t,o)}catch(n){H(n,e.$hostElement$)}return null},rt=e=>{const t=e.$hostElement$,s=t,o=e.C;V(s,"componentDidRender",void 0,t),64&e.i?V(s,"componentDidUpdate",void 0,t):(e.i|=64,at(t),V(s,"componentDidLoad",void 0,t),e.F(t),o||it()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>de(e,!1))),e.i&=-517},it=()=>{oe((()=>Ke(b,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(n){H(n,o)}},at=e=>e.classList.add("hydrated"),Le=(e,t,s,o)=>{const n=E(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;s=Ne(s,o.t[t][0]);const d=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!d){if(n.l.set(t,s),o.R){const u=o.R[t];u&&u.map((c=>{try{const[[h,y]]=Object.entries(c);(128&a||1&y)&&(r?r[h](s,i,t):n.T.push((()=>{n.D[h](s,i,t)})))}catch(h){H(h,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},ct=(e,t)=>{var s,o;const n=e.prototype;{e.watchers&&!t.R&&(t.R=_e(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([i,[a]])=>{if(31&a||32&a){const{get:r,set:d}=L(n,i)||{};r&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return r?r.apply(this):(u=i,E(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(u){const c=E(this);if(c){if(d)return(32&a?this[i]:c.$hostElement$[i])===void 0&&c.l.get(i)&&(u=c.l.get(i)),d.apply(this,[Ne(u,a)]),void Le(this,i,u=32&a?this[i]:c.$hostElement$[i],t);Le(this,i,u,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(a,r,d){O.jmp((()=>{var u;const c=i.get(a),h=E(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const g=h?.i;if(h&&g&&!(8&g)&&d!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((N=>{const[[S,_]]=Object.entries(N);m[S]!=null&&(128&g||1&_)&&m[S].call(m,d,r,a)}))}return}const y=l.find((([g])=>g===c)),f=y&&4&y[1][0],w=f&&d===null&&this[c]===void 0;f&&(d=d!==null&&d!=="false");const v=Object.getOwnPropertyDescriptor(n,c);w||d==this[c]||v.get&&!v.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.R)!=null?o:{}),...l.filter((([a,r])=>31&r[0])).map((([a,r])=>{var d;const u=r[1]||a;return i.set(u,a),512&r[0]&&((d=t._)==null||d.push([a,u])),u}))]))}}return e},dt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=_e(e.R),s.H=e.H,s.P=e.P,s._=[];const o=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Ge(l,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!E(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=E(l);if(!i)return;const a=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!b.document)return;const d=r["s-cr"]=b.document.createComment("");d["s-cn"]=!0,A(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.C=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const w=we(u);q.has(w)||((v,g,m)=>{let p=q.get(v);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(v,p)})(w,f,!!(1&u.i))}const h=d.C,y=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(y):y()}catch(h){H(h,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(l,i,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async l=>{1&O.i||E(l),T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ue.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ct(e,s)}catch(o){return H(o),e}};function yt(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let fe=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Me()})):void 0,Me=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const o=document.styleSheets.item(s);if(o)try{let n=-1,l=0;for(let i=0;i<o.cssRules.length;i++){const a=o.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:o}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ue!==void 0&&t!==fe&&(fe&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),fe=t),D.replaceSync((s=>s.rules.map((o=>o.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:o,originalRulesCount:n,styleSheet:l}=s;for(let i=0;i<n;i++)l.deleteRule(o)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ft=()=>(He||(He=Me()),D),ut=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),{showGidsOverflowContainerBottomShadow:De,showGidsOverflowContainerTopShadow:ht}=ut,We=dt(class extends Ve{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),De(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&&(ht(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),De(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 z("div",{key:"0a7916237558157e7122aeb05de6bf2eaaf5df77",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},z("slot",{key:"fda73f846c0ec7371d57b7a8e379c028e0feaa98"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function Be(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const pt=We,mt=Be;R.GidsOverflowContainer=pt,R.defineCustomElement=mt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function(M,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(M=typeof globalThis<"u"?globalThis:M||self,L(M.gidsCoreWebGidsOverlayProvider={}))})(this,(function(M){"use strict";function L(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!o||s.get))return s;e=Object.getPrototypeOf(e)}}var D,ut=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[s]])=>{if(31&s||32&s){const i=e[n],r=L(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(l){r.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):i!==void 0&&(e[n]=i)}}))},E=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ke=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),z=new Map,Ce="http://www.w3.org/1999/xlink",_=typeof window<"u"?window:{},mt=_.HTMLElement||class{},N={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},te=(()=>{try{return!!_.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ne=!!te&&!!_.document&&Object.getOwnPropertyDescriptor(_.document.adoptedStyleSheets,"length").writable,oe=!1,Ne=[],xe=[],ft=(e,t)=>o=>{e.push(o),oe||(oe=!0,4&N.i?ie(se):N.raf(se))},Oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},se=()=>{Oe(Ne),Oe(xe),(oe=Ne.length>0)&&N.raf(se)},ie=e=>Promise.resolve(void 0).then(e),pt=ft(xe);function ht(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(ne?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var $e=e=>{const t=ae(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&re(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!gt(n,Q(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&ae(n,"childNodes").length&&$e(n)}};function re(e,t,o){let n,s=0,i=[];for(;s<e.length;s++){if(n=e[s],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||Q(n)===o)&&(i.push(n),o!==void 0))return i;i=[...i,...re(n.childNodes,t,o)]}return i}var gt=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)!==t||!o&&s["s-sr"]||n.push(s);return n},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ae(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,R,T=new WeakMap,Pe=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",y=(e,t,...o)=>{let n=null,s=null,i=null,r=!1,l=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)n=d[f],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!ce(n))&&(n=String(n)),r&&l?a[a.length-1].h+=n:a.push(r?V(null,n):n),l=r)};if(c(o),t){t.key&&(s=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,bt);const u=V(e,null);return u.v=t,a.length>0&&(u.m=a),u.$=s,u.j=i,u},V=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),vt={},bt={forEach:(e,t)=>e.map(Ae).forEach(t),map:(e,t)=>e.map(Ae).map(t).map(yt)},Ae=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),yt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),y(e.vtag,o,...e.vchildren||[])}const t=V(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ee=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const s of t){if(o)break;for(const i of e[s])if(typeof i=="string"){o=!0;break}}if(!o)return e;const n={};for(const s of t)n[s]=e[s].map((i=>typeof i=="string"?{[i]:0}:i));return n},Te=(e,t)=>e==null||ce(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,St=(e,t,o)=>{const n=N.ce(t,o);return e.dispatchEvent(n),n},Me=(e,t,o,n,s,i)=>{if(o===n)return;let r=ke(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=Re(o);let u=Re(n);a.remove(...c.filter((d=>d&&!u.includes(d)))),a.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in o)n&&n[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in n)o&&n[a]===o[a]||(a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(t!=="key"){if(t==="ref")n&&kt(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const u=E(e);if(u&&u.o&&u.o.t){const d=u.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const a=t.slice(5);try{e[a]=n}catch{}return}{const a=ce(n);if((r||a&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const u=n??"";t==="list"?r=!1:o!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Ce,t):e.removeAttribute(t)):(!r||4&i||s)&&!a&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(Ce,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):ke(_,l)?l.slice(2):l[2]+t.slice(3),o||n){const a=t.endsWith(Le);t=t.replace(_t,""),o&&N.rel(e,t,o,a),n&&N.ael(e,t,n,a)}}},wt=/\s/,Re=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(wt):[]),Le="Capture",_t=new RegExp(Le+"$"),de=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},i=t.v||{};for(const r of Ie(Object.keys(s)))r in i||Me(n,r,s[r],void 0,o,t.i);for(const r of Ie(Object.keys(i)))Me(n,r,s[r],i[r],o,t.i)};function Ie(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var H=!1,Y=!1,X=!1,x=!1,ue=[],me=[],U=(e,t,o)=>{var n;const s=t.m[o];let i,r,l,a=0;if(H||(X=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)i=s.S=_.document.createTextNode(s.h);else if(1&s.i)i=s.S=_.document.createTextNode(""),de(null,s,x);else{if(x||(x=s.O==="svg"),!_.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=s.S=_.document.createElementNS(x?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!H&&2&s.i?"slot-fb":s.O),x&&s.O==="foreignObject"&&(x=!1),de(null,s,x),s.m){const c=s.O==="template"?i.content:i;for(a=0;a<s.m.length;++a)r=U(e,s,a),r&&c.appendChild(r)}s.O==="svg"?x=!1:i.tagName==="foreignObject"&&(x=!0)}return i["s-hn"]=R,3&s.i&&(i["s-sr"]=!0,i["s-cr"]=le,i["s-sn"]=s.j||"",i["s-rf"]=(n=s.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const p=[],m=this["s-sn"];f?.flatten&&console.error(`
1
+ (function(M,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(M=typeof globalThis<"u"?globalThis:M||self,L(M.gidsCoreWebGidsOverlayProvider={}))})(this,(function(M){"use strict";function L(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!o||s.get))return s;e=Object.getPrototypeOf(e)}}var D,ut=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[s]])=>{if(31&s||32&s){const i=e[n],r=L(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(l){r.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):i!==void 0&&(e[n]=i)}}))},E=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ke=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),z=new Map,Ce="http://www.w3.org/1999/xlink",_=typeof window<"u"?window:{},mt=_.HTMLElement||class{},N={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},te=(()=>{try{return!!_.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ne=!!te&&!!_.document&&Object.getOwnPropertyDescriptor(_.document.adoptedStyleSheets,"length").writable,oe=!1,Ne=[],xe=[],ft=(e,t)=>o=>{e.push(o),oe||(oe=!0,4&N.i?ie(se):N.raf(se))},Oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},se=()=>{Oe(Ne),Oe(xe),(oe=Ne.length>0)&&N.raf(se)},ie=e=>Promise.resolve(void 0).then(e),pt=ft(xe);function ht(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(ne?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var $e=e=>{const t=ae(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&re(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!gt(n,Q(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&ae(n,"childNodes").length&&$e(n)}};function re(e,t,o){let n,s=0,i=[];for(;s<e.length;s++){if(n=e[s],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||Q(n)===o)&&(i.push(n),o!==void 0))return i;i=[...i,...re(n.childNodes,t,o)]}return i}var gt=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)!==t||!o&&s["s-sr"]||n.push(s);return n},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ae(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,R,T=new WeakMap,Pe=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",y=(e,t,...o)=>{let n=null,s=null,i=null,r=!1,l=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)n=d[f],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!ce(n))&&(n=String(n)),r&&l?a[a.length-1].h+=n:a.push(r?V(null,n):n),l=r)};if(c(o),t){t.key&&(s=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,bt);const m=V(e,null);return m.v=t,a.length>0&&(m.m=a),m.$=s,m.j=i,m},V=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),vt={},bt={forEach:(e,t)=>e.map(Ae).forEach(t),map:(e,t)=>e.map(Ae).map(t).map(yt)},Ae=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),yt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),y(e.vtag,o,...e.vchildren||[])}const t=V(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ee=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const s of t){if(o)break;for(const i of e[s])if(typeof i=="string"){o=!0;break}}if(!o)return e;const n={};for(const s of t)n[s]=e[s].map((i=>typeof i=="string"?{[i]:0}:i));return n},Te=(e,t)=>e==null||ce(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,St=(e,t,o)=>{const n=N.ce(t,o);return e.dispatchEvent(n),n},Me=(e,t,o,n,s,i)=>{if(o===n)return;let r=ke(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=Re(o);let m=Re(n);a.remove(...c.filter((d=>d&&!m.includes(d)))),a.add(...m.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in o)n&&n[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in n)o&&n[a]===o[a]||(a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(t!=="key"){if(t==="ref")n&&kt(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const m=E(e);if(m&&m.o&&m.o.t){const d=m.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const a=t.slice(5);try{e[a]=n}catch{}return}{const a=ce(n);if((r||a&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const m=n??"";t==="list"?r=!1:o!=null&&e[t]===m||(typeof e.__lookupSetter__(t)=="function"?e[t]=m:e.setAttribute(t,m))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Ce,t):e.removeAttribute(t)):(!r||4&i||s)&&!a&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(Ce,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):ke(_,l)?l.slice(2):l[2]+t.slice(3),o||n){const a=t.endsWith(Le);t=t.replace(_t,""),o&&N.rel(e,t,o,a),n&&N.ael(e,t,n,a)}}},wt=/\s/,Re=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(wt):[]),Le="Capture",_t=new RegExp(Le+"$"),de=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},i=t.v||{};for(const r of Ie(Object.keys(s)))r in i||Me(n,r,s[r],void 0,o,t.i);for(const r of Ie(Object.keys(i)))Me(n,r,s[r],i[r],o,t.i)};function Ie(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var H=!1,Y=!1,X=!1,x=!1,ue=[],me=[],U=(e,t,o)=>{var n;const s=t.m[o];let i,r,l,a=0;if(H||(X=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)i=s.S=_.document.createTextNode(s.h);else if(1&s.i)i=s.S=_.document.createTextNode(""),de(null,s,x);else{if(x||(x=s.O==="svg"),!_.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=s.S=_.document.createElementNS(x?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!H&&2&s.i?"slot-fb":s.O),x&&s.O==="foreignObject"&&(x=!1),de(null,s,x),s.m){const c=s.O==="template"?i.content:i;for(a=0;a<s.m.length;++a)r=U(e,s,a),r&&c.appendChild(r)}s.O==="svg"?x=!1:i.tagName==="foreignObject"&&(x=!0)}return i["s-hn"]=R,3&s.i&&(i["s-sr"]=!0,i["s-cr"]=le,i["s-sn"]=s.j||"",i["s-rf"]=(n=s.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const m=d=>(function(f){const p=[],u=this["s-sn"];f?.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 w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const h=S[g]["s-nr"]||void 0;h&&h.isConnected&&v.push(h)}return v})(w.childNodes)).forEach((S=>{m===Q(S)&&p.push(S)})),d?p.filter((S=>S.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),l=e&&e.m&&e.m[o],l&&l.O===s.O&&e.S&&Ge(e.S)),i},Ge=e=>{N.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const s of o?n.reverse():n)s["s-sh"]!=null&&(j(t,s,o??null),s["s-sh"]=void 0,X=!0)}N.i&=-2},K=(e,t)=>{N.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===R&&o.push(n)}for(let n=o.length-1;n>=0;n--){const s=o[n];s["s-hn"]!==R&&s["s-ol"]&&(j(q(s).parentNode,s,q(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,X=!0),t&&K(s,t)}N.i&=-2},Be=(e,t,o,n,s,i)=>{let r,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===R&&(l=l.shadowRoot),o.O==="template"&&(l=l.content);s<=i;++s)n[s]&&(r=U(null,o,s),r&&(n[s].S=r,j(l,r,q(t))))},De=(e,t,o)=>{for(let n=t;n<=o;++n){const s=e[n];if(s){const i=s.S;He(s),i&&(Y=!0,i["s-ol"]?i["s-ol"].remove():K(i,!0),i.remove())}}},Z=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,G=(e,t,o=!1)=>{const n=t.S=e.S,s=e.m,i=t.m,r=t.O,l=t.h;let a;l==null?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ge(t.S.parentElement)),de(e,t,x),s!==null&&i!==null?((c,u,d,f,p=!1)=>{let m,w,S=0,v=0,g=0,h=0,C=u.length-1,b=u[0],k=u[C],$=f.length-1,O=f[0],P=f[$];const dt=d.O==="template"?c.content:c;for(;S<=C&&v<=$;)if(b==null)b=u[++S];else if(k==null)k=u[--C];else if(O==null)O=f[++v];else if(P==null)P=f[--$];else if(Z(b,O,p))G(b,O,p),b=u[++S],O=f[++v];else if(Z(k,P,p))G(k,P,p),k=u[--C],P=f[--$];else if(Z(b,P,p))b.O!=="slot"&&P.O!=="slot"||K(b.S.parentNode,!1),G(b,P,p),j(dt,b.S,k.S.nextSibling),b=u[++S],P=f[--$];else if(Z(k,O,p))b.O!=="slot"&&P.O!=="slot"||K(k.S.parentNode,!1),G(k,O,p),j(dt,k.S,b.S),k=u[--C],O=f[++v];else{for(g=-1,h=S;h<=C;++h)if(u[h]&&u[h].$!==null&&u[h].$===O.$){g=h;break}g>=0?(w=u[g],w.O!==O.O?m=U(u&&u[v],d,g):(G(w,O,p),u[g]=void 0,m=w.S),O=f[++v]):(m=U(u&&u[v],d,v),O=f[++v]),m&&j(q(b.S).parentNode,m,q(b.S))}S>C?Be(c,f[$+1]==null?null:f[$+1].S,d,f,v,$):v>$&&De(u,S,C)})(n,s,t,i,o):i!==null?(e.h!==null&&(n.textContent=""),Be(n,null,t,i,0,i.length-1)):!o&&s!==null&&De(s,0,s.length-1),x&&r==="svg"&&(x=!1)):(a=n["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(n.data=l)},A=[],Qe=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const i of s){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(je(t,r)){let l=A.find((a=>a.k===t));Y=!0,t["s-sn"]=t["s-sn"]||r,l?(l.k["s-sh"]=i["s-hn"],l.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((a=>{je(a.k,t["s-sn"])&&(l=A.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else A.some((l=>l.k===t))||A.push({k:t})}i.nodeType===1&&Qe(i)}},He=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(He)},kt=(e,t)=>{me.push((()=>e(t)))},j=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:s}=(function(i,r){var l;if(!(r=r||((l=i["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=i["s-sn"]=Q(i)||"";return{slotNode:re(ae(r,"childNodes"),r.tagName,a)[0],slotName:a}})(t);return s&&!n&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Ct=(e,t,o=!1)=>{var n,s,i,r,l;const a=e.$hostElement$,c=e.o,u=e.M||V(null,null);var d;const f=(d=t)&&d.O===vt?t:y(null,null,t);if(R=a.tagName,c._&&(f.v=f.v||{},c._.forEach((([p,m])=>{f.v[m]=a[p]}))),o&&f.v)for(const p of Object.keys(f.v))a.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(f.v[p]=a[p]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=a.shadowRoot||a,H=!(!(1&c.i)||128&c.i),le=a["s-cr"],Y=!1,G(u,f,o),N.i|=1,X){Qe(f.S);for(const p of A){const m=p.k;if(!m["s-ol"]&&_.document){const w=_.document.createTextNode("");w["s-nr"]=m,j(m.parentNode,m["s-ol"]=w,m,o)}}for(const p of A){const m=p.k,w=p.N;if(m.nodeType===1&&o&&(m["s-ih"]=(n=m.hidden)!=null&&n),w){const S=w.parentNode;let v=w.nextSibling;if(v&&v.nodeType===1){let g=(s=m["s-ol"])==null?void 0:s.previousSibling;for(;g;){let h=(i=g["s-nr"])!=null?i:null;if(h&&h["s-sn"]===m["s-sn"]&&S===(h.__parentNode||h.parentNode)){for(h=h.nextSibling;h===m||h?.["s-sr"];)h=h?.nextSibling;if(!h||!h["s-nr"]){v=h;break}}g=g.previousSibling}}if((!v&&S!==(m.__parentNode||m.parentNode)||(m.__nextSibling||m.nextSibling)!==v)&&m!==v){if(j(S,m,v,o),m.nodeType===8&&m.nodeValue.startsWith("s-nt-")){const g=_.document.createTextNode(m.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=m["s-hn"],g["s-sn"]=m["s-sn"],g["s-sh"]=m["s-sh"],g["s-sr"]=m["s-sr"],g["s-ol"]=m["s-ol"],g["s-ol"]["s-nr"]=g,j(m.parentNode,g,m,o),m.parentNode.removeChild(m)}m.nodeType===1&&m.tagName!=="SLOT-FB"&&(m.hidden=(r=m["s-ih"])!=null&&r)}m&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else m.nodeType===1&&(m.hidden=!0)}}if(Y&&$e(f.S),N.i&=-2,A.length=0,!H&&!(1&c.i)&&a["s-cr"]){const p=f.S.__childNodes||f.S.childNodes;for(const m of p)if(m["s-hn"]!==R&&!m["s-sh"]){if(o&&m["s-ih"]==null&&(m["s-ih"]=(l=m.hidden)!=null&&l),m.nodeType===1)m.hidden=!0;else if(m.nodeType===3&&m.nodeValue.trim()){const w=_.document.createComment("s-nt-"+m.nodeValue);w["s-sn"]=m["s-sn"],j(m.parentNode,w,m,o),m.parentNode.removeChild(m)}}}le=void 0,ue.forEach((p=>p())),ue.length=0,me.forEach((p=>p())),me.length=0},qe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);qe(e,e.C);const o=()=>Nt(e,t);if(!t)return pt(o);queueMicrotask((()=>{o()}))},Nt=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=F(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),s=Fe(s,(()=>F(n,"componentWillRender",void 0,o))),Fe(s,(()=>Ot(e,n,t)))},Fe=(e,t)=>xt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),xt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,o)=>{var n;const s=e.$hostElement$,i=s["s-rc"];o&&(r=>{const l=r.o,a=r.$hostElement$,c=l.i,u=((d,f)=>{var p,m,w;const S=Pe(f),v=z.get(S);if(!_.document)return S;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let g,h=T.get(d=d.head||d);if(h||T.set(d,h=new Set),!h.has(S)){g=_.document.createElement("style"),g.textContent=v;const C=(p=N.L)!=null?p:(function(){var b,k,$;return($=(k=(b=_.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&f.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),k=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,k?.parentNode===d?k:null)}else if("host"in d)if(te){const b=new((m=d.defaultView)!=null?m:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),ne?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(g)}else d.append(g);1&f.i&&d.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(S)}}else{let g=T.get(d);if(g||T.set(d,g=new Set),!g.has(S)){const h=(w=d.defaultView)!=null?w:d.ownerDocument.defaultView;let C;if(v.constructor===h.CSSStyleSheet)C=v;else{C=new h.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)C.insertRule(v.cssRules[b].cssText,b)}ne?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(S)}}return S})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=u,a.classList.add(u+"-h"))})(e),$t(e,t,s,o),i&&(i.map((r=>r())),s["s-rc"]=void 0);{const r=(n=s["s-p"])!=null?n:[],l=()=>jt(e);r.length===0?l():(Promise.all(r).then(l).catch(l),e.i|=4,r.length=0)}},$t=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ct(e,t,n)}catch(s){I(s,e.$hostElement$)}return null},jt=e=>{const t=e.$hostElement$,o=t,n=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,At(t),F(o,"componentDidLoad",void 0,t),e.F(t),n||Pt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>fe(e,!1))),e.i&=-517},Pt=()=>{ie((()=>St(_,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){I(s,n)}},At=e=>e.classList.add("hydrated"),We=(e,t,o,n)=>{const s=E(e);if(!s)return;const i=e,r=s.l.get(t),l=s.i,a=i;o=Te(o,n.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(s.l.set(t,o),n.R){const u=n.R[t];u&&u.map((d=>{try{const[[f,p]]=Object.entries(d);(128&l||1&p)&&(a?a[f](o,r,t):s.T.push((()=>{s.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(o,r,t)===!1&&!(16&l))return;16&l||fe(s,!1)}}},Et=(e,t)=>{var o,n;const s=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[l]])=>{if(31&l||32&l){const{get:a,set:c}=L(s,r)||{};a&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return a?a.apply(this):(u=r,E(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(u){const d=E(this);if(d){if(c)return(32&l?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[Te(u,l)]),void We(this,r,u=32&l?this[r]:d.$hostElement$[r],t);We(this,r,u,t)}}})}}));{const r=new Map;s.attributeChangedCallback=function(l,a,c){N.jmp((()=>{var u;const d=r.get(l),f=E(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const v=f?.i;if(f&&v&&!(8&v)&&c!==a){const g=this,h=(u=t.R)==null?void 0:u[l];h?.forEach((C=>{const[[b,k]]=Object.entries(C);g[b]!=null&&(128&v||1&k)&&g[b].call(g,c,a,l)}))}return}const p=i.find((([v])=>v===d)),m=p&&4&p[1][0],w=m&&c===null&&this[d]===void 0;m&&(c=c!==null&&c!=="false");const S=Object.getOwnPropertyDescriptor(s,d);w||c==this[d]||S.get&&!S.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...i.filter((([l,a])=>31&a[0])).map((([l,a])=>{var c;const u=a[1]||l;return r.set(u,l),512&a[0]&&((c=t._)==null||c.push([l,u])),u}))]))}}return e},Tt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ee(e.R),o.H=e.H,o.P=e.P,o._=[];const n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const l={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),i["s-p"]=[],i["s-rc"]=[];const a=l;i.__stencil__getHostRef=()=>a,512&r.i&&ut(i,l)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!E(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&N.i)){const r=E(i);if(!r)return;const l=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&l.i&&(a=>{if(!_.document)return;const c=a["s-cr"]=_.document.createComment("");c["s-cn"]=!0,j(a,c,a.firstChild)})(i);{let a=i;for(;a=a.parentNode||a.host;)if(a["s-p"]){qe(r,r.C=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,a)){const u=i[a];delete i[a],i[a]=u}})),(async(a,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let m;typeof d.style=="string"&&(m=d.style);const w=Pe(u);z.has(w)||((S,v,g)=>{let h=z.get(S);te&&g?(h=h||new CSSStyleSheet,typeof h=="string"?h=v:h.replaceSync(v)):h=v,z.set(S,h)})(w,m,!!(1&u.i))}const f=c.C,p=()=>fe(c,!0);f&&f["s-rc"]?f["s-rc"].push(p):p()}catch(f){I(f,a),c.A&&(c.A(),c.A=void 0),c.F&&c.F(a)}})(i,r,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async i=>{1&N.i||E(i),T.has(i)&&T.delete(i),i.shadowRoot&&T.has(i.shadowRoot)&&T.delete(i.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ht.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Et(e,o)}catch(n){return I(n),e}},Mt=(e,t)=>t;function vn(e){return e}const B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let s=-1,i=0;for(let r=0;r<n.cssRules.length;r++){const l=n.cssRules.item(r);if(l?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){i=r-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:i,rules:t,styleSheet:n}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==pe&&(pe&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:s,styleSheet:i}=o;for(let r=0;r<s;r++)i.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Rt=()=>(ze||(ze=Ve()),B),Lt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ye=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(o=>{const n=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const i=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),r=i[i.length-1];if(!r)return 1;const l=r.offsetHeight,a=getComputedStyle(r).lineHeight,c=a.endsWith("px")?parseFloat(a):0;return Math.ceil(c?l/c:1)})();return n===2?o==="snackbar"?5e3:8e3:n>=3?o==="snackbar"?7e3:1e4:o==="snackbar"?3e3:6e3})(e);function Xe(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=Xe(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function W(){for(var e,t,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const It=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>W("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},o,n)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>W("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"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,loading:s},i,r)=>W("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":o==="full","gids-button--destructive":n,"gids-button--icon-only":i,"gids-button--loading":s},r)},Symbol.toStringTag,{value:"Module"})),J=64,Ue=10,Ke=J/2-Ue/2,Dt=J/2,ge=2*Math.PI*Ke,Qt=`0 0 ${J} ${J}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(o,e))/o*100,i=(ge*s/100).toFixed(2),r=(ge-parseFloat(i)).toFixed(2);return`${i} ${r}`},centerPosition:Dt,circumference:ge,radius:Ke,thickness:Ue,viewBox:Qt},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>W("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"})),Ze=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"}},Je=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"}},Ft=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:o})=>o.includes(t)?Je(e):Ze(e),getComponentEntryClasses:Ze,getComponentExitClasses:Je,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"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>W("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"})),ve=Symbol("defaultPath"),et=Symbol("pathSet"),be="gids-asset-paths-set";class zt extends EventTarget{#n=new Map;constructor(){super()}#e(t,o){this.#n.set(t,o)}#t(t){return this.#n.get(t)??null}#o=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(et)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const n in t)this.#e(n,t[n]);o&&this.#e(ve,o)}this.#e(et,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const n=this.#t(ve);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Vt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Yt=e=>{const t=Vt().assetPaths;return t[e]===void 0&&(t[e]=new zt),t[e]};function Se(){return Yt("@ganpatiinfo/gids-web-shared")}function Xt(){return Se().haveAssetPathsBeenSet()}function tt(e){return Se().getAssetFilePath(e)}function Ut(e){return Se().onAssetPathsSet(e)}let Kt=0;const Zt=(e,t="gids")=>e||`${t}-${Kt++}`,nt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ot={"icons-other.svg":["accessibility","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","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","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"]},st=new Map;for(const e in ot)for(const t of ot[e])st.set(t,e);function Jt(e){return st.get(e)}function it(e,t="regular",o){const n=Jt(e);let s=n??"";return o&&n&&(s=o(n)??n),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:en}=Gt,we=({name:e,size:t,appearance:o,alt:n,class:s,titleId:i,src:r,...l})=>{const a=Zt(i);let c=r;return c===void 0&&Xt()&&(c=it(e,o,tt)),y("svg",{ref:u=>{c===void 0&&Ut((()=>{(function(d,f,p){if(!d)return;const m=document.createElementNS("http://www.w3.org/2000/svg","use");m.setAttribute("href",it(f,p,tt)),d.appendChild(m)})(u,e,o)}))},width:"16",height:"16",class:en({size:t},s),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:a,...l},n!==""&&y("title",{id:a},n||e),c!==void 0?y("use",{href:c}):null)},{getGidsSpinnerControlClassNames:tn}=It,{calculateStrokeDasharray:nn,thickness:rt,radius:at,centerPosition:ee,viewBox:on}=Ht,sn=({size:e,indeterminate:t,value:o,max:n,...s})=>{let i;return t||(i={strokeDashArray:nn(o,n||0),strokeDashoffset:"0"}),y("svg",{class:tn({size:e,indeterminate:t,value:o}),viewBox:on,...s},y("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:at,"stroke-width":rt}),y("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:at,"stroke-width":rt}))},{getGidsButtonClassNames:rn}=Bt,_e=({appearance:e,size:t,destructive:o,loading:n,width:s,leadingIcon:i,trailingIcon:r,as:l,disabled:a,class:c,forceIconOnly:u=!1,...d},f)=>{const p=l||"button",m=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in d||(d.type="button"),y(p,{class:rn({appearance:e,size:t,destructive:o,loading:n,width:s},u||f.length===0&&nt(i)&&!nt(r),c),disabled:p==="button"?a:void 0,...d},y("span",{class:"gids-button__content"},i,f),n&&y(sn,{size:m,indeterminate:!0}),r)},{getGidsSnackbarContainerClassNames:an,getSnackbarContainerIconNames:ln}=qt,cn=({appearance:e="default",children:t,button:o,class:n,...s})=>{const i=ln(e);return y("div",{...s,class:an({appearance:e},n)},y("div",{class:"gids-snackbar-container__content"},e!=="default"&&i!=null?y(we,{name:i,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?y("p",null,t):t),o)},{getGidsNotificationContainerClassNames:dn,getNotificationContainerIconNames:un}=Wt,mn=({notificationTitle:e,children:t,button:o,appearance:n="default",pronunciation:s="standard",onCloseNotificationClick:i,class:r,...l})=>{const a=un(n);return y("div",{class:dn({appearance:n},r),...l},n!=="default"&&a?y("div",{class:"gids-notification-container__leading-icon-wrapper"},y(we,{size:"md",name:a,alt:"",appearance:"filled"})):null,y("div",{class:"gids-notification-container__content-wrapper"},y("div",{class:"gids-notification-container__top-content"},y("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?y("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?y("p",null,t):t:null),s==="standard"?y("div",{class:"gids-notification-container__cross-btn-wrapper"},y(_e,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:y(we,{name:"cross",size:"md",appearance:"regular"}),onClick:i})):null),o?y("div",{class:"gids-notification-container__bottom-content"},o):null))},{getComponentClasses:fn,getComponentStackClasses:pn}=Ft,lt=Tt(class extends mt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,o)=>{const{id:n,message:s,appearance:i,buttonLabel:r,onButtonClick:l}=t;return y(cn,{key:n,class:o,children:s,appearance:i,button:r!=null&&r!==""?y(_e,{appearance:"subtle",onClick:l},r):void 0})},this._renderNotification=(t,o)=>{const{id:n,notificationTitle:s,message:i,pronunciation:r,appearance:l,buttonLabel:a,onButtonClick:c,timerInMs:u}=t;return y(mn,{key:n,class:o,notificationTitle:s,children:i,pronunciation:r,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:a!=null&&a!==""?y(_e,{appearance:"default",size:"sm",onClick:c},a):void 0})},this._renderComponent=t=>{const{componentName:o,position:n="bottom-center",id:s}=t,i=fn({position:n,id:s,exitingComponents:this._exitingComponents});return o==null||o==="snackbar"?this._renderSnackbar(t,i):o==="notification"?this._renderNotification(t,i):null}}connectedCallback(){const e=Rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Lt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const o=setTimeout((()=>(clearTimeout(o),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:o,buttonLabel:n,onButtonClick:s,position:i,componentName:r,...l}=e,a={id:""+(Date.now()+Math.random()),message:o,appearance:t,buttonLabel:n,onButtonClick:s,position:i,componentName:r,...l};this._componentQueue=[...this._componentQueue,a],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:o,pronunciation:n,message:s,buttonLabel:i,onButtonClick:r,position:l,componentName:a,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:o,message:s,pronunciation:n,appearance:t,buttonLabel:i,onButtonClick:r,position:l,componentName:a,...c};this._componentQueue=[...this._componentQueue,u],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,o){return o||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],n()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((o=>requestAnimationFrame((()=>o()))));const t=Ye({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 o=Ye({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,o,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return y(Mt,{key:"f80c6557d382dc5af3ddcb77f20c58ffa9acbd53"},y("slot",{key:"1d763f5cedecd8b8a2e0b7d1fb207e9ffde7ad97"}),this._isRoot()?y("div",{class:pn({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 ct(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,lt))}))}ct();const hn=lt,gn=ct;M.GidsOverlayProvider=hn,M.defineCustomElement=gn,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const h=S[g]["s-nr"]||void 0;h&&h.isConnected&&v.push(h)}return v})(w.childNodes)).forEach((S=>{u===Q(S)&&p.push(S)})),d?p.filter((S=>S.nodeType===1)):p}).bind(c);c.assignedElements=m(!0),c.assignedNodes=m(!1)})(i),l=e&&e.m&&e.m[o],l&&l.O===s.O&&e.S&&Ge(e.S)),i},Ge=e=>{N.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const s of o?n.reverse():n)s["s-sh"]!=null&&(j(t,s,o??null),s["s-sh"]=void 0,X=!0)}N.i&=-2},K=(e,t)=>{N.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===R&&o.push(n)}for(let n=o.length-1;n>=0;n--){const s=o[n];s["s-hn"]!==R&&s["s-ol"]&&(j(q(s).parentNode,s,q(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,X=!0),t&&K(s,t)}N.i&=-2},Be=(e,t,o,n,s,i)=>{let r,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===R&&(l=l.shadowRoot),o.O==="template"&&(l=l.content);s<=i;++s)n[s]&&(r=U(null,o,s),r&&(n[s].S=r,j(l,r,q(t))))},De=(e,t,o)=>{for(let n=t;n<=o;++n){const s=e[n];if(s){const i=s.S;He(s),i&&(Y=!0,i["s-ol"]?i["s-ol"].remove():K(i,!0),i.remove())}}},Z=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,G=(e,t,o=!1)=>{const n=t.S=e.S,s=e.m,i=t.m,r=t.O,l=t.h;let a;l==null?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ge(t.S.parentElement)),de(e,t,x),s!==null&&i!==null?((c,m,d,f,p=!1)=>{let u,w,S=0,v=0,g=0,h=0,C=m.length-1,b=m[0],k=m[C],$=f.length-1,O=f[0],P=f[$];const dt=d.O==="template"?c.content:c;for(;S<=C&&v<=$;)if(b==null)b=m[++S];else if(k==null)k=m[--C];else if(O==null)O=f[++v];else if(P==null)P=f[--$];else if(Z(b,O,p))G(b,O,p),b=m[++S],O=f[++v];else if(Z(k,P,p))G(k,P,p),k=m[--C],P=f[--$];else if(Z(b,P,p))b.O!=="slot"&&P.O!=="slot"||K(b.S.parentNode,!1),G(b,P,p),j(dt,b.S,k.S.nextSibling),b=m[++S],P=f[--$];else if(Z(k,O,p))b.O!=="slot"&&P.O!=="slot"||K(k.S.parentNode,!1),G(k,O,p),j(dt,k.S,b.S),k=m[--C],O=f[++v];else{for(g=-1,h=S;h<=C;++h)if(m[h]&&m[h].$!==null&&m[h].$===O.$){g=h;break}g>=0?(w=m[g],w.O!==O.O?u=U(m&&m[v],d,g):(G(w,O,p),m[g]=void 0,u=w.S),O=f[++v]):(u=U(m&&m[v],d,v),O=f[++v]),u&&j(q(b.S).parentNode,u,q(b.S))}S>C?Be(c,f[$+1]==null?null:f[$+1].S,d,f,v,$):v>$&&De(m,S,C)})(n,s,t,i,o):i!==null?(e.h!==null&&(n.textContent=""),Be(n,null,t,i,0,i.length-1)):!o&&s!==null&&De(s,0,s.length-1),x&&r==="svg"&&(x=!1)):(a=n["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(n.data=l)},A=[],Qe=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const i of s){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(je(t,r)){let l=A.find((a=>a.k===t));Y=!0,t["s-sn"]=t["s-sn"]||r,l?(l.k["s-sh"]=i["s-hn"],l.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((a=>{je(a.k,t["s-sn"])&&(l=A.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else A.some((l=>l.k===t))||A.push({k:t})}i.nodeType===1&&Qe(i)}},He=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(He)},kt=(e,t)=>{me.push((()=>e(t)))},j=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:s}=(function(i,r){var l;if(!(r=r||((l=i["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=i["s-sn"]=Q(i)||"";return{slotNode:re(ae(r,"childNodes"),r.tagName,a)[0],slotName:a}})(t);return s&&!n&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Ct=(e,t,o=!1)=>{var n,s,i,r,l;const a=e.$hostElement$,c=e.o,m=e.M||V(null,null);var d;const f=(d=t)&&d.O===vt?t:y(null,null,t);if(R=a.tagName,c._&&(f.v=f.v||{},c._.forEach((([p,u])=>{f.v[u]=a[p]}))),o&&f.v)for(const p of Object.keys(f.v))a.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(f.v[p]=a[p]);if(f.O=null,f.i|=4,e.M=f,f.S=m.S=a.shadowRoot||a,H=!(!(1&c.i)||128&c.i),le=a["s-cr"],Y=!1,G(m,f,o),N.i|=1,X){Qe(f.S);for(const p of A){const u=p.k;if(!u["s-ol"]&&_.document){const w=_.document.createTextNode("");w["s-nr"]=u,j(u.parentNode,u["s-ol"]=w,u,o)}}for(const p of A){const u=p.k,w=p.N;if(u.nodeType===1&&o&&(u["s-ih"]=(n=u.hidden)!=null&&n),w){const S=w.parentNode;let v=w.nextSibling;if(v&&v.nodeType===1){let g=(s=u["s-ol"])==null?void 0:s.previousSibling;for(;g;){let h=(i=g["s-nr"])!=null?i:null;if(h&&h["s-sn"]===u["s-sn"]&&S===(h.__parentNode||h.parentNode)){for(h=h.nextSibling;h===u||h?.["s-sr"];)h=h?.nextSibling;if(!h||!h["s-nr"]){v=h;break}}g=g.previousSibling}}if((!v&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(j(S,u,v,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=_.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,j(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(r=u["s-ih"])!=null&&r)}u&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else u.nodeType===1&&(u.hidden=!0)}}if(Y&&$e(f.S),N.i&=-2,A.length=0,!H&&!(1&c.i)&&a["s-cr"]){const p=f.S.__childNodes||f.S.childNodes;for(const u of p)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&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 w=_.document.createComment("s-nt-"+u.nodeValue);w["s-sn"]=u["s-sn"],j(u.parentNode,w,u,o),u.parentNode.removeChild(u)}}}le=void 0,ue.forEach((p=>p())),ue.length=0,me.forEach((p=>p())),me.length=0},qe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);qe(e,e.C);const o=()=>Nt(e,t);if(!t)return pt(o);queueMicrotask((()=>{o()}))},Nt=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=F(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),s=Fe(s,(()=>F(n,"componentWillRender",void 0,o))),Fe(s,(()=>Ot(e,n,t)))},Fe=(e,t)=>xt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),xt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,o)=>{var n;const s=e.$hostElement$,i=s["s-rc"];o&&(r=>{const l=r.o,a=r.$hostElement$,c=l.i,m=((d,f)=>{var p,u,w;const S=Pe(f),v=z.get(S);if(!_.document)return S;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let g,h=T.get(d=d.head||d);if(h||T.set(d,h=new Set),!h.has(S)){g=_.document.createElement("style"),g.textContent=v;const C=(p=N.L)!=null?p:(function(){var b,k,$;return($=(k=(b=_.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&f.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),k=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,k?.parentNode===d?k:null)}else if("host"in d)if(te){const b=new((u=d.defaultView)!=null?u:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),ne?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(g)}else d.append(g);1&f.i&&d.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(S)}}else{let g=T.get(d);if(g||T.set(d,g=new Set),!g.has(S)){const h=(w=d.defaultView)!=null?w:d.ownerDocument.defaultView;let C;if(v.constructor===h.CSSStyleSheet)C=v;else{C=new h.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)C.insertRule(v.cssRules[b].cssText,b)}ne?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(S)}}return S})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=m,a.classList.add(m+"-h"))})(e),$t(e,t,s,o),i&&(i.map((r=>r())),s["s-rc"]=void 0);{const r=(n=s["s-p"])!=null?n:[],l=()=>jt(e);r.length===0?l():(Promise.all(r).then(l).catch(l),e.i|=4,r.length=0)}},$t=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ct(e,t,n)}catch(s){I(s,e.$hostElement$)}return null},jt=e=>{const t=e.$hostElement$,o=t,n=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,At(t),F(o,"componentDidLoad",void 0,t),e.F(t),n||Pt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>fe(e,!1))),e.i&=-517},Pt=()=>{ie((()=>St(_,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){I(s,n)}},At=e=>e.classList.add("hydrated"),We=(e,t,o,n)=>{const s=E(e);if(!s)return;const i=e,r=s.l.get(t),l=s.i,a=i;o=Te(o,n.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(s.l.set(t,o),n.R){const m=n.R[t];m&&m.map((d=>{try{const[[f,p]]=Object.entries(d);(128&l||1&p)&&(a?a[f](o,r,t):s.T.push((()=>{s.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(o,r,t)===!1&&!(16&l))return;16&l||fe(s,!1)}}},Et=(e,t)=>{var o,n;const s=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[l]])=>{if(31&l||32&l){const{get:a,set:c}=L(s,r)||{};a&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return a?a.apply(this):(m=r,E(this).l.get(m));var m},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(m){const d=E(this);if(d){if(c)return(32&l?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(m=d.l.get(r)),c.apply(this,[Te(m,l)]),void We(this,r,m=32&l?this[r]:d.$hostElement$[r],t);We(this,r,m,t)}}})}}));{const r=new Map;s.attributeChangedCallback=function(l,a,c){N.jmp((()=>{var m;const d=r.get(l),f=E(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const v=f?.i;if(f&&v&&!(8&v)&&c!==a){const g=this,h=(m=t.R)==null?void 0:m[l];h?.forEach((C=>{const[[b,k]]=Object.entries(C);g[b]!=null&&(128&v||1&k)&&g[b].call(g,c,a,l)}))}return}const p=i.find((([v])=>v===d)),u=p&&4&p[1][0],w=u&&c===null&&this[d]===void 0;u&&(c=c!==null&&c!=="false");const S=Object.getOwnPropertyDescriptor(s,d);w||c==this[d]||S.get&&!S.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...i.filter((([l,a])=>31&a[0])).map((([l,a])=>{var c;const m=a[1]||l;return r.set(m,l),512&a[0]&&((c=t._)==null||c.push([l,m])),m}))]))}}return e},Tt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ee(e.R),o.H=e.H,o.P=e.P,o._=[];const n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const l={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),i["s-p"]=[],i["s-rc"]=[];const a=l;i.__stencil__getHostRef=()=>a,512&r.i&&ut(i,l)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!E(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&N.i)){const r=E(i);if(!r)return;const l=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&l.i&&(a=>{if(!_.document)return;const c=a["s-cr"]=_.document.createComment("");c["s-cn"]=!0,j(a,c,a.firstChild)})(i);{let a=i;for(;a=a.parentNode||a.host;)if(a["s-p"]){qe(r,r.C=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,a)){const m=i[a];delete i[a],i[a]=m}})),(async(a,c,m)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let u;typeof d.style=="string"&&(u=d.style);const w=Pe(m);z.has(w)||((S,v,g)=>{let h=z.get(S);te&&g?(h=h||new CSSStyleSheet,typeof h=="string"?h=v:h.replaceSync(v)):h=v,z.set(S,h)})(w,u,!!(1&m.i))}const f=c.C,p=()=>fe(c,!0);f&&f["s-rc"]?f["s-rc"].push(p):p()}catch(f){I(f,a),c.A&&(c.A(),c.A=void 0),c.F&&c.F(a)}})(i,r,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async i=>{1&N.i||E(i),T.has(i)&&T.delete(i),i.shadowRoot&&T.has(i.shadowRoot)&&T.delete(i.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ht.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Et(e,o)}catch(n){return I(n),e}},Mt=(e,t)=>t;function vn(e){return e}const B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let s=-1,i=0;for(let r=0;r<n.cssRules.length;r++){const l=n.cssRules.item(r);if(l?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){i=r-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:i,rules:t,styleSheet:n}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==pe&&(pe&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:s,styleSheet:i}=o;for(let r=0;r<s;r++)i.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Rt=()=>(ze||(ze=Ve()),B),Lt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ye=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(o=>{const n=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const i=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),r=i[i.length-1];if(!r)return 1;const l=r.offsetHeight,a=getComputedStyle(r).lineHeight,c=a.endsWith("px")?parseFloat(a):0;return Math.ceil(c?l/c:1)})();return n===2?o==="snackbar"?5e3:8e3:n>=3?o==="snackbar"?7e3:1e4:o==="snackbar"?3e3:6e3})(e);function Xe(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=Xe(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function W(){for(var e,t,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const It=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>W("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},o,n)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>W("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"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,positive:s,loading:i},r,l)=>W("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":o==="full","gids-button--destructive":n&&!s,"gids-button--positive":s&&!n,"gids-button--icon-only":r,"gids-button--loading":i},l)},Symbol.toStringTag,{value:"Module"})),J=64,Ue=10,Ke=J/2-Ue/2,Dt=J/2,ge=2*Math.PI*Ke,Qt=`0 0 ${J} ${J}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(o,e))/o*100,i=(ge*s/100).toFixed(2),r=(ge-parseFloat(i)).toFixed(2);return`${i} ${r}`},centerPosition:Dt,circumference:ge,radius:Ke,thickness:Ue,viewBox:Qt},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>W("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"})),Ze=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"}},Je=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"}},Ft=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:o})=>o.includes(t)?Je(e):Ze(e),getComponentEntryClasses:Ze,getComponentExitClasses:Je,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"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>W("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"})),ve=Symbol("defaultPath"),et=Symbol("pathSet"),be="gids-asset-paths-set";class zt extends EventTarget{#n=new Map;constructor(){super()}#e(t,o){this.#n.set(t,o)}#t(t){return this.#n.get(t)??null}#o=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(et)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const n in t)this.#e(n,t[n]);o&&this.#e(ve,o)}this.#e(et,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const n=this.#t(ve);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Vt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Yt=e=>{const t=Vt().assetPaths;return t[e]===void 0&&(t[e]=new zt),t[e]};function Se(){return Yt("@ganpatiinfo/gids-web-shared")}function Xt(){return Se().haveAssetPathsBeenSet()}function tt(e){return Se().getAssetFilePath(e)}function Ut(e){return Se().onAssetPathsSet(e)}let Kt=0;const Zt=(e,t="gids")=>e||`${t}-${Kt++}`,nt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},st=new Map;for(const e in ot)for(const t of ot[e])st.set(t,e);function Jt(e){return st.get(e)}function it(e,t="regular",o){const n=Jt(e);let s=n??"";return o&&n&&(s=o(n)??n),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:en}=Gt,we=({name:e,size:t,appearance:o,alt:n,class:s,titleId:i,src:r,...l})=>{const a=Zt(i);let c=r;return c===void 0&&Xt()&&(c=it(e,o,tt)),y("svg",{ref:m=>{c===void 0&&Ut((()=>{(function(d,f,p){if(!d)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",it(f,p,tt)),d.appendChild(u)})(m,e,o)}))},width:"16",height:"16",class:en({size:t},s),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:a,...l},n!==""&&y("title",{id:a},n||e),c!==void 0?y("use",{href:c}):null)},{getGidsSpinnerControlClassNames:tn}=It,{calculateStrokeDasharray:nn,thickness:rt,radius:at,centerPosition:ee,viewBox:on}=Ht,sn=({size:e,indeterminate:t,value:o,max:n,...s})=>{let i;return t||(i={strokeDashArray:nn(o,n||0),strokeDashoffset:"0"}),y("svg",{class:tn({size:e,indeterminate:t,value:o}),viewBox:on,...s},y("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:at,"stroke-width":rt}),y("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:at,"stroke-width":rt}))},{getGidsButtonClassNames:rn}=Bt,_e=({appearance:e,size:t,destructive:o,positive:n,loading:s,width:i,leadingIcon:r,trailingIcon:l,as:a,disabled:c,class:m,forceIconOnly:d=!1,...f},p)=>{const u=a||"button",w=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in f||(f.type="button"),y(u,{class:rn({appearance:e,size:t,destructive:o,loading:s,width:i,positive:n},d||p.length===0&&nt(r)&&!nt(l),m),disabled:u==="button"?c:void 0,...f},y("span",{class:"gids-button__content"},r,p),s&&y(sn,{size:w,indeterminate:!0}),l)},{getGidsSnackbarContainerClassNames:an,getSnackbarContainerIconNames:ln}=qt,cn=({appearance:e="default",children:t,button:o,class:n,...s})=>{const i=ln(e);return y("div",{...s,class:an({appearance:e},n)},y("div",{class:"gids-snackbar-container__content"},e!=="default"&&i!=null?y(we,{name:i,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?y("p",null,t):t),o)},{getGidsNotificationContainerClassNames:dn,getNotificationContainerIconNames:un}=Wt,mn=({notificationTitle:e,children:t,button:o,appearance:n="default",pronunciation:s="standard",onCloseNotificationClick:i,class:r,...l})=>{const a=un(n);return y("div",{class:dn({appearance:n},r),...l},n!=="default"&&a?y("div",{class:"gids-notification-container__leading-icon-wrapper"},y(we,{size:"md",name:a,alt:"",appearance:"filled"})):null,y("div",{class:"gids-notification-container__content-wrapper"},y("div",{class:"gids-notification-container__top-content"},y("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?y("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?y("p",null,t):t:null),s==="standard"?y("div",{class:"gids-notification-container__cross-btn-wrapper"},y(_e,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:y(we,{name:"cross",size:"md",appearance:"regular"}),onClick:i})):null),o?y("div",{class:"gids-notification-container__bottom-content"},o):null))},{getComponentClasses:fn,getComponentStackClasses:pn}=Ft,lt=Tt(class extends mt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,o)=>{const{id:n,message:s,appearance:i,buttonLabel:r,onButtonClick:l}=t;return y(cn,{key:n,class:o,children:s,appearance:i,button:r!=null&&r!==""?y(_e,{appearance:"subtle",onClick:l},r):void 0})},this._renderNotification=(t,o)=>{const{id:n,notificationTitle:s,message:i,pronunciation:r,appearance:l,buttonLabel:a,onButtonClick:c,timerInMs:m}=t;return y(mn,{key:n,class:o,notificationTitle:s,children:i,pronunciation:r,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,m||0,!0),button:a!=null&&a!==""?y(_e,{appearance:"default",size:"sm",onClick:c},a):void 0})},this._renderComponent=t=>{const{componentName:o,position:n="bottom-center",id:s}=t,i=fn({position:n,id:s,exitingComponents:this._exitingComponents});return o==null||o==="snackbar"?this._renderSnackbar(t,i):o==="notification"?this._renderNotification(t,i):null}}connectedCallback(){const e=Rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Lt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const o=setTimeout((()=>(clearTimeout(o),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:o,buttonLabel:n,onButtonClick:s,position:i,componentName:r,...l}=e,a={id:""+(Date.now()+Math.random()),message:o,appearance:t,buttonLabel:n,onButtonClick:s,position:i,componentName:r,...l};this._componentQueue=[...this._componentQueue,a],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:o,pronunciation:n,message:s,buttonLabel:i,onButtonClick:r,position:l,componentName:a,...c}=e,m={id:""+(Date.now()+Math.random()),notificationTitle:o,message:s,pronunciation:n,appearance:t,buttonLabel:i,onButtonClick:r,position:l,componentName:a,...c};this._componentQueue=[...this._componentQueue,m],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,o){return o||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],n()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((o=>requestAnimationFrame((()=>o()))));const t=Ye({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 o=Ye({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,o,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return y(Mt,{key:"cfacf71807978b22d6f2a9e33c0518e9aefc3a58"},y("slot",{key:"4b4fa08f00a46a95ed4af543f85aad06affee847"}),this._isRoot()?y("div",{class:pn({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 ct(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,lt))}))}ct();const hn=lt,gn=ct;M.GidsOverlayProvider=hn,M.defineCustomElement=gn,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));