@ganpatiinfo/gids-core-web 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +901 -0
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +90 -0
- package/dist/gids-field.d.ts +11 -0
- package/dist/gids-field.js +1 -0
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +11 -0
- package/dist/gids-input.js +1 -0
- package/dist/gids-notification.d.ts +11 -0
- package/dist/gids-notification.js +1 -0
- package/dist/gids-overlay-provider.d.ts +11 -0
- package/dist/gids-overlay-provider.js +1 -0
- package/dist/gids-password-field.d.ts +11 -0
- package/dist/gids-password-field.js +1 -0
- package/dist/gids-snackbar.d.ts +11 -0
- package/dist/gids-snackbar.js +1 -0
- package/dist/gids-text-field.d.ts +11 -0
- package/dist/gids-text-field.js +1 -0
- package/dist/gids-toggle-button.js +1 -1
- package/dist/index.js +1 -1
- package/dist/p-B2zUuNXz.js +1 -0
- package/dist/p-CVtNa0cL.js +1 -0
- package/dist/p-CWdkmFbc.js +1 -0
- package/dist/p-D4xtPT_U.js +1 -0
- package/dist/p-DijVkS9b.js +1 -0
- package/dist/p-DybsMR13.js +1 -0
- package/dist/p-RqpjvEHh.js +1 -0
- package/dist/p-ibikYq-w.js +1 -0
- package/dist/p-veoOgDXg.js +1 -0
- package/dist/types/components/html/GidsDismissButton/GidsDismissButton.d.ts +6 -0
- package/dist/types/components/html/GidsHeading/GidsHeading.d.ts +6 -0
- package/dist/types/components/html/GidsLogo/GidsLogo.d.ts +9 -0
- package/dist/types/components/html/GidsRequirementsMeter/GidsRequirementsMeter.d.ts +4 -0
- package/dist/types/components/html/GidsSearchBar/GidsSearchBar.d.ts +10 -0
- package/dist/types/components/html/GidsSegmentedControl/GidsSegmentedControl.d.ts +6 -0
- package/dist/types/components/html/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +6 -0
- package/dist/types/components/html/GidsStatusTag/GidsStatusTag.d.ts +5 -0
- package/dist/types/components/html/GidsStepper/GidsStepper.d.ts +7 -0
- package/dist/types/components/html/GidsStrengthMeter/GidsStrengthMeter.d.ts +5 -0
- package/dist/types/components/html/GidsTopNavigation/GidsTopNavigation.d.ts +8 -0
- package/dist/types/components/html/_GidsNotificationContainer/GidsNotificationContainer.d.ts +7 -0
- package/dist/types/components/html/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.d.ts +4 -0
- package/dist/types/components/html/_GidsSnackbarContainer/GidsSnackbarContainer.d.ts +6 -0
- package/dist/types/components/webComponents/GidsField/GidsField.d.ts +54 -0
- package/dist/types/components/webComponents/GidsInput/GidsInput.d.ts +27 -0
- package/dist/types/components/webComponents/GidsNotification/GidsNotification.d.ts +17 -0
- package/dist/types/components/webComponents/GidsOverlayProvider/GidsOverlayProvider.d.ts +23 -0
- package/dist/types/components/webComponents/GidsOverlayProvider/GidsOverlayProviderUtils.d.ts +8 -0
- package/dist/types/components/webComponents/GidsPasswordField/GidsPasswordField.d.ts +49 -0
- package/dist/types/components/webComponents/GidsSnackbar/GidsSnackbar.d.ts +15 -0
- package/dist/types/components/webComponents/GidsTextField/GidsTextField.d.ts +39 -0
- package/dist/types/components.d.ts +437 -4
- package/dist-bundled/es/gids-field.js +6 -0
- package/dist-bundled/es/gids-icon.js +16 -200
- package/dist-bundled/es/gids-input.js +6 -0
- package/dist-bundled/es/gids-notification.js +31 -0
- package/dist-bundled/es/gids-overlay-provider.js +209 -0
- package/dist-bundled/es/gids-password-field.js +221 -0
- package/dist-bundled/es/gids-snackbar.js +31 -0
- package/dist-bundled/es/gids-text-field.js +78 -0
- package/dist-bundled/es/gids-toggle-button.js +14 -55
- package/dist-bundled/es/index.js +8 -7
- package/dist-bundled/es/p-B2zUuNXz-BLBgQDu7.js +45 -0
- package/dist-bundled/es/p-CVtNa0cL-sSVeJsR3.js +15 -0
- package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +24 -0
- package/dist-bundled/es/p-D4xtPT_U-04HkZiXU.js +181 -0
- package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +35 -0
- package/dist-bundled/es/p-DybsMR13-DpmsG3Q1.js +31 -0
- package/dist-bundled/es/p-RqpjvEHh-BGGYsIBf.js +74 -0
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +635 -0
- package/dist-bundled/es/p-veoOgDXg-DElc87c0.js +192 -0
- package/dist-bundled/umd/gids-field.umd.js +5 -0
- package/dist-bundled/umd/gids-icon.umd.js +5 -1
- package/dist-bundled/umd/gids-input.umd.js +5 -0
- package/dist-bundled/umd/gids-notification.umd.js +5 -0
- package/dist-bundled/umd/gids-overlay-provider.umd.js +5 -0
- package/dist-bundled/umd/gids-password-field.umd.js +5 -0
- package/dist-bundled/umd/gids-snackbar.umd.js +5 -0
- package/dist-bundled/umd/gids-text-field.umd.js +5 -0
- package/dist-bundled/umd/gids-toggle-button.umd.js +6 -2
- package/dist-bundled/umd/index.umd.js +5 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +6 -2
- package/package.json +65 -9
- package/dist/p-CgujYzVX.js +0 -1
- package/dist-bundled/es/p-CgujYzVX-xo1axnk6.js +0 -465
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
(function(E,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(E=typeof globalThis<"u"?globalThis:E||self,A(E.gidsCoreWebGidsToggleButton={}))})(this,(function(E){"use strict";function A(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const l=Object.getOwnPropertyDescriptor(e,t);if(l&&(!o||l.get))return l;e=Object.getPrototypeOf(e)}}var L,Ne=(e,t)=>{var o;Object.entries((o=t.l.t)!=null?o:{}).map((([n,[l]])=>{if(31&l||32&l){const a=e[n],s=A(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);s&&Object.defineProperty(e,n,{get(){return s.get.call(this)},set(i){s.set.call(this,i)},configurable:!0,enumerable:!0}),t.o.has(n)?e[n]=t.o.get(n):a!==void 0&&(e[n]=a)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ee=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),T=new Map,$=typeof window<"u"?window:{},Le=$.HTMLElement||class{},C={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)},z=(()=>{try{return!!$.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),V=!!z&&!!$.document&&Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets,"length").writable,F=!1,te=[],ne=[],Me=(e,t)=>o=>{e.push(o),F||(F=!0,4&C.i?Y(U):C.raf(U))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},U=()=>{oe(te),oe(ne),(F=te.length>0)&&C.raf(U)},Y=e=>Promise.resolve(void 0).then(e),Pe=Me(ne);function De(){const e=this.attachShadow({mode:"open"});L===void 0&&(L=null),L&&(V?e.adoptedStyleSheets.push(L):e.adoptedStyleSheets=[...e.adoptedStyleSheets,L])}var H,j=new WeakMap,se=e=>"sc-"+e.h,Z=e=>(e=typeof e)=="object"||e==="function",O=(e,t,...o)=>{let n=null,l=null,a=!1,s=!1;const i=[],r=u=>{for(let c=0;c<u.length;c++)n=u[c],Array.isArray(n)?r(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!Z(n))&&(n=String(n)),a&&s?i[i.length-1].p+=n:i.push(a?I(null,n):n),s=a)};if(r(o),t&&t.key&&(l=t.key),typeof e=="function")return e(t===null?{}:t,i,Te);const d=I(e,null);return d.m=t,i.length>0&&(d.v=i),d.$=l,d},I=(e,t)=>({i:0,S:e,p:t??null,O:null,v:null,m:null,$:null}),le={},Te={forEach:(e,t)=>e.map(re).forEach(t),map:(e,t)=>e.map(re).map(t).map(He)},re=e=>({vattrs:e.m,vchildren:e.v,vkey:e.$,vname:e.j,vtag:e.S,vtext:e.p}),He=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),O(e.vtag,o,...e.vchildren||[])}const t=I(e.vtag,e.vtext);return t.m=e.vattrs,t.v=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ie=(e,t)=>e==null||Z(e)?e:4&t?e!=="false"&&(e===""||!!e):1&t?String(e):e,Ie=(e,t)=>{const o=e;return{emit:n=>ce(o,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},ce=(e,t,o)=>{const n=C.ce(t,o);return e.dispatchEvent(n),n},ae=(e,t,o,n,l,a)=>{if(o===n)return;let s=ee(e,t),i=t.toLowerCase();if(t!=="key"){if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=x(e);if(u&&u.l&&u.l.t){const c=u.l.t[r];c&&c[1]&&(d=c[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=n}catch{}return}{const r=Z(n);if((s||r&&n!==null)&&!l)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const d=n??"";t==="list"?s=!1:o!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}n==null||n===!1?n===!1&&e.getAttribute(t)!==""||e.removeAttribute(t):(!s||4&a||l)&&!r&&e.nodeType===1&&e.setAttribute(t,n=n===!0?"":n)}}else if(t=t[2]==="-"?t.slice(3):ee($,i)?i.slice(2):i[2]+t.slice(3),o||n){const r=t.endsWith(de);t=t.replace(Be,""),o&&C.rel(e,t,o,r),n&&C.ael(e,t,n,r)}}},de="Capture",Be=new RegExp(de+"$"),ue=(e,t,o)=>{const n=t.O.nodeType===11&&t.O.host?t.O.host:t.O,l=e&&e.m||{},a=t.m||{};for(const s of fe(Object.keys(l)))s in a||ae(n,s,l[s],void 0,o,t.i);for(const s of fe(Object.keys(a)))ae(n,s,l[s],a[s],o,t.i)};function fe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var he=!1,pe=!1,B=(e,t,o)=>{const n=t.v[o];let l,a,s=0;if(n.p!=null)l=n.O=$.document.createTextNode(n.p);else{if(!$.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.O=$.document.createElement(n.S),ue(null,n,pe),n.v){const i=n.S==="template"?l.content:l;for(s=0;s<n.v.length;++s)a=B(e,n,s),a&&i.appendChild(a)}}return l["s-hn"]=H,l},me=(e,t,o,n,l,a)=>{let s,i=e;for(i.shadowRoot&&i.tagName===H&&(i=i.shadowRoot),o.S==="template"&&(i=i.content);l<=a;++l)n[l]&&(s=B(null,o,l),s&&(n[l].O=s,P(i,s,t)))},ge=(e,t,o)=>{for(let n=t;n<=o;++n){const l=e[n];if(l){const a=l.O;a&&a.remove()}}},G=(e,t,o=!1)=>e.S===t.S&&(o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),R=(e,t,o=!1)=>{const n=t.O=e.O,l=e.v,a=t.v,s=t.p;s==null?(t.S!=="slot"||he||e.j!==t.j&&(t.O["s-sn"]=t.j||"",(i=>{C.i|=1;const r=i.closest(H.toLowerCase());if(r!=null){const d=Array.from(r.__childNodes||r.childNodes).find((c=>c["s-cr"])),u=Array.from(i.__childNodes||i.childNodes);for(const c of d?u.reverse():u)c["s-sh"]!=null&&(P(r,c,d??null),c["s-sh"]=void 0)}C.i&=-2})(t.O.parentElement)),ue(e,t,pe),l!==null&&a!==null?((i,r,d,u,c=!1)=>{let g,_,w=0,v=0,S=0,m=0,p=r.length-1,f=r[0],b=r[p],h=u.length-1,y=u[0],k=u[h];const Re=d.S==="template"?i.content:i;for(;w<=p&&v<=h;)if(f==null)f=r[++w];else if(b==null)b=r[--p];else if(y==null)y=u[++v];else if(k==null)k=u[--h];else if(G(f,y,c))R(f,y,c),f=r[++w],y=u[++v];else if(G(b,k,c))R(b,k,c),b=r[--p],k=u[--h];else if(G(f,k,c))R(f,k,c),P(Re,f.O,b.O.nextSibling),f=r[++w],k=u[--h];else if(G(b,y,c))R(b,y,c),P(Re,b.O,f.O),b=r[--p],y=u[++v];else{for(S=-1,m=w;m<=p;++m)if(r[m]&&r[m].$!==null&&r[m].$===y.$){S=m;break}S>=0?(_=r[S],_.S!==y.S?g=B(r&&r[v],d,S):(R(_,y,c),r[S]=void 0,g=_.O),y=u[++v]):(g=B(r&&r[v],d,v),y=u[++v]),g&&P(f.O.parentNode,g,f.O)}w>p?me(i,u[h+1]==null?null:u[h+1].O,d,u,v,h):v>h&&ge(r,w,p)})(n,l,t,a,o):a!==null?(e.p!==null&&(n.textContent=""),me(n,null,t,a,0,a.length-1)):!o&&l!==null&&ge(l,0,l.length-1)):e.p!==s&&(n.data=s)},P=(e,t,o)=>e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o),Ge=(e,t,o=!1)=>{const n=e.$hostElement$,l=e.l,a=e.M||I(null,null);var s;const i=(s=t)&&s.S===le?t:O(null,null,t);if(H=n.tagName,l.k&&(i.m=i.m||{},l.k.forEach((([r,d])=>{i.m[d]=n[r]}))),o&&i.m)for(const r of Object.keys(i.m))n.hasAttribute(r)&&!["key","ref","style","class"].includes(r)&&(i.m[r]=n[r]);i.S=null,i.i|=4,e.M=i,i.O=a.O=n.shadowRoot||n,he=!(!(1&l.i)||128&l.i),R(a,i,o)},ye=(e,t)=>{if(t&&!e.C&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.C=()=>{t["s-p"].splice(o-1,1),n()})))}},J=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);ye(e,e.A);const o=()=>We(e,t);if(!t)return Pe(o);queueMicrotask((()=>{o()}))},We=(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 l;return l=D(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),l=be(l,(()=>D(n,"componentWillRender",void 0,o))),be(l,(()=>ze(e,n,t)))},be=(e,t)=>qe(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),qe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ze=async(e,t,o)=>{var n;const l=e.$hostElement$,a=l["s-rc"];o&&(s=>{const i=s.l,r=s.$hostElement$,d=i.i,u=((c,g)=>{var _,w,v;const S=se(g),m=T.get(S);if(!$.document)return S;if(c=c.nodeType===11?c:$.document,m)if(typeof m=="string"){let p,f=j.get(c=c.head||c);if(f||j.set(c,f=new Set),!f.has(S)){p=$.document.createElement("style"),p.textContent=m;const b=(_=C.D)!=null?_:(function(){var h,y,k;return(k=(y=(h=$.document.head)==null?void 0:h.querySelector('meta[name="csp-nonce"]'))==null?void 0:y.getAttribute("content"))!=null?k:void 0})();if(b!=null&&p.setAttribute("nonce",b),!(1&g.i))if(c.nodeName==="HEAD"){const h=c.querySelectorAll("link[rel=preconnect]"),y=h.length>0?h[h.length-1].nextSibling:c.querySelector("style");c.insertBefore(p,y?.parentNode===c?y:null)}else if("host"in c)if(z){const h=new((w=c.defaultView)!=null?w:c.ownerDocument.defaultView).CSSStyleSheet;h.replaceSync(m),V?c.adoptedStyleSheets.unshift(h):c.adoptedStyleSheets=[h,...c.adoptedStyleSheets]}else{const h=c.querySelector("style");h?h.textContent=m+h.textContent:c.prepend(p)}else c.append(p);1&g.i&&c.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(S)}}else{let p=j.get(c);if(p||j.set(c,p=new Set),!p.has(S)){const f=(v=c.defaultView)!=null?v:c.ownerDocument.defaultView;let b;if(m.constructor===f.CSSStyleSheet)b=m;else{b=new f.CSSStyleSheet;for(let h=0;h<m.cssRules.length;h++)b.insertRule(m.cssRules[h].cssText,h)}V?c.adoptedStyleSheets.push(b):c.adoptedStyleSheets=[...c.adoptedStyleSheets,b],p.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),i);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),Ve(e,t,l,o),a&&(a.map((s=>s())),l["s-rc"]=void 0);{const s=(n=l["s-p"])!=null?n:[],i=()=>Fe(e);s.length===0?i():(Promise.all(s).then(i).catch(i),e.i|=4,s.length=0)}},Ve=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ge(e,t,n)}catch(l){M(l,e.$hostElement$)}return null},Fe=e=>{const t=e.$hostElement$,o=t,n=e.A;D(o,"componentDidRender",void 0,t),64&e.i?D(o,"componentDidUpdate",void 0,t):(e.i|=64,Ye(t),D(o,"componentDidLoad",void 0,t),e.L(t),n||Ue()),e.C&&(e.C(),e.C=void 0),512&e.i&&Y((()=>J(e,!1))),e.i&=-517},Ue=()=>{Y((()=>ce($,"appload",{detail:{namespace:"gids-core-web"}})))},D=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(l){M(l,n)}},Ye=e=>e.classList.add("hydrated"),Se=(e,t,o,n)=>{const l=x(e);if(!l)return;const a=e,s=l.o.get(t),i=l.i,r=a;o=ie(o,n.t[t][0]);const d=Number.isNaN(s)&&Number.isNaN(o);if(o!==s&&!d&&(l.o.set(t,o),2&i)){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,s,t)===!1&&!(16&i))return;16&i||J(l,!1)}},Ze=(e,t)=>{var o,n;const l=e.prototype;if(t.t){const a=Object.entries((o=t.t)!=null?o:{});a.map((([s,[i]])=>{if(31&i||32&i){const{get:r,set:d}=A(l,s)||{};r&&(t.t[s][0]|=2048),d&&(t.t[s][0]|=4096),Object.defineProperty(l,s,{get(){return r?r.apply(this):(u=s,x(this).o.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(l,s,{set(u){const c=x(this);if(c){if(d)return(32&i?this[s]:c.$hostElement$[s])===void 0&&c.o.get(s)&&(u=c.o.get(s)),d.apply(this,[ie(u,i)]),void Se(this,s,u=32&i?this[s]:c.$hostElement$[s],t);Se(this,s,u,t)}}})}}));{const s=new Map;l.attributeChangedCallback=function(i,r,d){C.jmp((()=>{var u;const c=s.get(i),g=x(this);if(this.hasOwnProperty(c),l.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const m=g?.i;if(g&&m&&!(8&m)&&d!==r){const p=this,f=(u=t.R)==null?void 0:u[i];f?.forEach((b=>{const[[h,y]]=Object.entries(b);p[h]!=null&&(128&m||1&y)&&p[h].call(p,d,r,i)}))}return}const _=a.find((([m])=>m===c)),w=_&&4&_[1][0],v=w&&d===null&&this[c]===void 0;w&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(l,c);v||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...a.filter((([i,r])=>31&r[0])).map((([i,r])=>{var d;const u=r[1]||i;return s.set(u,i),512&r[0]&&((d=t.k)==null||d.push([i,u])),u}))]))}}return e},Je=(e,t)=>{const o={i:t[0],h:t[1]};try{o.t=t[2],o.k=[];const n=e.prototype.connectedCallback,l=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((a,s)=>{const i={i:0,$hostElement$:a,l:s,o:new Map,_:new Map};i.H=new Promise((d=>i.L=d)),a["s-p"]=[],a["s-rc"]=[];const r=i;a.__stencil__getHostRef=()=>r,512&s.i&&Ne(a,i)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(a=>{if(!(1&C.i)){const s=x(a);if(!s)return;const i=s.l;if(1&s.i)s?.P||s?.H&&s.H.then((()=>{}));else{s.i|=1;{let r=a;for(;r=r.parentNode||r.host;)if(r["s-p"]){ye(s,s.A=r);break}}i.t&&Object.entries(i.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(a,r)){const u=a[r];delete a[r],a[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 w;typeof c.style=="string"&&(w=c.style);const v=se(u);T.has(v)||((S,m,p)=>{let f=T.get(S);z&&p?(f=f||new CSSStyleSheet,typeof f=="string"?f=m:f.replaceSync(m)):f=m,T.set(S,f)})(v,w,!!(1&u.i))}const g=d.A,_=()=>J(d,!0);g&&g["s-rc"]?g["s-rc"].push(_):_()}catch(g){M(g,r),d.C&&(d.C(),d.C=void 0),d.L&&d.L(r)}})(a,s,i)}}})(this),n&&n.call(this)},disconnectedCallback(){(async a=>{1&C.i||x(a),j.has(a)&&j.delete(a),a.shadowRoot&&j.has(a.shadowRoot)&&j.delete(a.shadowRoot)})(this),l&&l.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else De.call(this,o)}}),Object.defineProperty(e,"is",{value:o.h,configurable:!0}),Ze(e,o)}catch(n){return M(n),e}};function ut(e){return e}const N=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ve=!1;N&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(N):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let K=null;const Q=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{we()})):void 0,we=()=>{if(N===void 0)return!1;const e=(()=>{if(N===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let l=-1,a=0;for(let s=0;s<n.cssRules.length;s++){const i=n.cssRules.item(s);if(i?.cssText.startsWith("gids-global-styles-start"))l=s;else if(l>-1){if(i?.cssText.startsWith("gids-global-styles-end")){a=s-l+1;break}t.push(i)}}if(l>-1)return{rulesStartIndex:l,originalRulesCount:a,rules:t,styleSheet:n}}catch(l){if(!(l instanceof DOMException))throw l}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Q!==void 0&&t!==K&&(K&&Q.disconnect(),t instanceof Element&&Q.observe(t,{childList:!0,characterData:!0,subtree:!0}),K=t),N.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:l,styleSheet:a}=o;for(let s=0;s<l;s++)a.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ke=()=>(ve||(ve=we()),N);function _e(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(o=_e(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Oe(){for(var e,t,o=0,n="",l=arguments.length;o<l;o++)(e=arguments[o])&&(t=_e(e))&&(n&&(n+=" "),n+=t);return n}const Qe=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>Oe("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"})),Xe=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,loading:l},a,s)=>Oe("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":a,"gids-button--loading":l},s)},Symbol.toStringTag,{value:"Module"})),W=64,$e=10,Ce=W/2-$e/2,et=W/2,X=2*Math.PI*Ce,tt=`0 0 ${W} ${W}`,nt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,l=Math.max(0,Math.min(o,e))/o*100,a=(X*l/100).toFixed(2),s=(X-parseFloat(a)).toFixed(2);return`${a} ${s}`},centerPosition:et,circumference:X,radius:Ce,thickness:$e,viewBox:tt},Symbol.toStringTag,{value:"Module"})),ke=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:ot}=Qe,{calculateStrokeDasharray:st,thickness:xe,radius:je,centerPosition:q,viewBox:lt}=nt,rt=({size:e,indeterminate:t,value:o,max:n,...l})=>{let a;return t||(a={strokeDashArray:st(o,n||0),strokeDashoffset:"0"}),O("svg",{class:ot({size:e,indeterminate:t,value:o}),viewBox:lt,...l},O("circle",{class:"gids-spinner-control__track",cx:q,cy:q,r:je,"stroke-width":xe}),O("circle",{style:a,class:"gids-spinner-control__progress",cx:q,cy:q,r:je,"stroke-width":xe}))},{getGidsButtonClassNames:it}=Xe,ct=({appearance:e,size:t,destructive:o,loading:n,width:l,leadingIcon:a,trailingIcon:s,as:i,disabled:r,class:d,forceIconOnly:u=!1,...c},g)=>{const _=i||"button",w=t==="lg"||t===void 0?"md":t;return _!=="button"||"type"in c||(c.type="button"),O(_,{class:it({appearance:e,size:t,destructive:o,loading:n,width:l},u||g.length===0&&ke(a)&&!ke(s),d),disabled:_==="button"?r:void 0,...c},O("span",{class:"gids-button__content"},a,g),n&&O(rt,{size:w,indeterminate:!0}),s)},Ee=Je(class extends Le{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Ie(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=Ke();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return O(le,{key:"222a7976cfa0daa12d2db51e405d8f3e894209d9"},O("style",{key:"04b1d2f9a184e830b949691e789deaaaea987303"},`:host {
|
|
1
|
+
(function(P,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(P=typeof globalThis<"u"?globalThis:P||self,M(P.gidsCoreWebGidsToggleButton={}))})(this,(function(P){"use strict";function M(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var I,Xe=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],r=M(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(c){r.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},T=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},me=(e,t)=>t in e,D=(e,t)=>(0,console.error)(e,t),G=new Map,ye="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},et=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},ee=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,se=!1,be=[],Se=[],tt=(e,t)=>o=>{e.push(o),se||(se=!0,4&O.i?ne(oe):O.raf(oe))},ve=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){D(o)}e.length=0},oe=()=>{ve(be),ve(Se),(se=be.length>0)&&O.raf(oe)},ne=e=>Promise.resolve(void 0).then(e),st=tt(Se);function ot(){const e=this.attachShadow({mode:"open"});I===void 0&&(I=null),I&&(te?e.adoptedStyleSheets.push(I):e.adoptedStyleSheets=[...e.adoptedStyleSheets,I])}var we=e=>{const t=re(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&le(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!nt(s,F(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&re(s,"childNodes").length&&we(s)}};function le(e,t,o){let s,n=0,l=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||F(s)===o)&&(l.push(s),o!==void 0))return l;l=[...l,...le(s.childNodes,t,o)]}return l}var nt=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)F(n)!==t||!o&&n["s-sr"]||s.push(n);return s},_e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",F=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(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 ie,L,R=new WeakMap,Ne=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",$=(e,t,...o)=>{let s=null,n=null,l=null,r=!1,c=!1;const i=[],d=a=>{for(let h=0;h<a.length;h++)s=a[h],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!ce(s))&&(s=String(s)),r&&c?i[i.length-1].h+=s:i.push(r?q(null,s):s),c=r)};if(d(o),t){t.key&&(n=t.key),t.name&&(l=t.name);{const a=t.className||t.class;a&&(t.class=typeof a!="object"?a:Object.keys(a).filter((h=>a[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,i,lt);const f=q(e,null);return f.v=t,i.length>0&&(f.m=i),f.$=n,f.j=l,f},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Oe={},lt={forEach:(e,t)=>e.map($e).forEach(t),map:(e,t)=>e.map($e).map(t).map(rt)},$e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),rt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),$(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const l of e[n])if(typeof l=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return s},Ce=(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,it=(e,t)=>{const o=e;return{emit:s=>xe(o,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},xe=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},je=(e,t,o,s,n,l)=>{if(o===s)return;let r=me(e,t),c=t.toLowerCase();if(t==="class"){const i=e.classList,d=Ee(o);let f=Ee(s);i.remove(...d.filter((a=>a&&!f.includes(a)))),i.add(...f.filter((a=>a&&!d.includes(a))))}else if(t==="style"){for(const i in o)s&&s[i]!=null||(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)o&&s[i]===o[i]||(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key"){if(t==="ref")s&&dt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const i=t.slice(5);let d;{const f=T(e);if(f&&f.o&&f.o.t){const a=f.o.t[i];a&&a[1]&&(d=a[1])}}return d||(d=i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const i=t.slice(5);try{e[i]=s}catch{}return}{const i=ce(s);if((r||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const f=s??"";t==="list"?r=!1:o!=null&&e[t]===f||(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let d=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ye,t):e.removeAttribute(t)):(!r||4&l||n)&&!i&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ye,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):me(w,c)?c.slice(2):c[2]+t.slice(3),o||s){const i=t.endsWith(Ae);t=t.replace(at,""),o&&O.rel(e,t,o,i),s&&O.ael(e,t,s,i)}}},ct=/\s/,Ee=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ct):[]),Ae="Capture",at=new RegExp(Ae+"$"),ae=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const r of Te(Object.keys(n)))r in l||je(s,r,n[r],void 0,o,t.i);for(const r of Te(Object.keys(l)))je(s,r,n[r],l[r],o,t.i)};function Te(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,U=!1,Y=!1,k=!1,de=[],ue=[],Z=(e,t,o)=>{var s;const n=t.m[o];let l,r,c,i=0;if(W||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=w.document.createTextNode(n.h);else if(1&n.i)l=n.S=w.document.createTextNode(""),ae(null,n,k);else{if(k||(k=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=w.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),ae(null,n,k),n.m){const d=n.O==="template"?l.content:l;for(i=0;i<n.m.length;++i)r=Z(e,n,i),r&&d.appendChild(r)}n.O==="svg"?k=!1:l.tagName==="foreignObject"&&(k=!0)}return l["s-hn"]=L,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=ie,l["s-sn"]=n.j||"",l["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const f=a=>(function(h){const g=[],u=this["s-sn"];h?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(S=>{const y=[];for(let m=0;m<S.length;m++){const p=S[m]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(v.childNodes)).forEach((S=>{u===F(S)&&g.push(S)})),a?g.filter((S=>S.nodeType===1)):g}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(j(V(n).parentNode,n,V(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(r=Z(null,o,n),r&&(s[n].S=r,j(c,r,V(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(U=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,r=t.O,c=t.h;let i;c==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((d,f,a,h,g=!1)=>{let u,v,S=0,y=0,m=0,p=0,N=f.length-1,b=f[0],_=f[N],x=h.length-1,C=h[0],E=h[x];const Qe=a.O==="template"?d.content:d;for(;S<=N&&y<=x;)if(b==null)b=f[++S];else if(_==null)_=f[--N];else if(C==null)C=h[++y];else if(E==null)E=h[--x];else if(K(b,C,g))H(b,C,g),b=f[++S],C=h[++y];else if(K(_,E,g))H(_,E,g),_=f[--N],E=h[--x];else if(K(b,E,g))b.O!=="slot"&&E.O!=="slot"||J(b.S.parentNode,!1),H(b,E,g),j(Qe,b.S,_.S.nextSibling),b=f[++S],E=h[--x];else if(K(_,C,g))b.O!=="slot"&&E.O!=="slot"||J(_.S.parentNode,!1),H(_,C,g),j(Qe,_.S,b.S),_=f[--N],C=h[++y];else{for(m=-1,p=S;p<=N;++p)if(f[p]&&f[p].$!==null&&f[p].$===C.$){m=p;break}m>=0?(v=f[m],v.O!==C.O?u=Z(f&&f[y],a,m):(H(v,C,g),f[m]=void 0,u=v.S),C=h[++y]):(u=Z(f&&f[y],a,y),C=h[++y]),u&&j(V(b.S).parentNode,u,V(b.S))}S>N?Pe(d,h[x+1]==null?null:h[x+1].S,a,h,y,x):y>x&&Le(f,S,N)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&r==="svg"&&(k=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(_e(t,r)){let c=A.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((i=>{_e(i.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},dt=(e,t)=>{ue.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,r){var c;if(!(r=r||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=l["s-sn"]=F(l)||"";return{slotNode:le(re(r,"childNodes"),r.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ut=(e,t,o=!1)=>{var s,n,l,r,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===Oe?t:$(null,null,t);if(L=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([g,u])=>{h.v[u]=i[g]}))),o&&h.v)for(const g of Object.keys(h.v))i.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=i[g]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,W=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,H(f,h,o),O.i|=1,Y){Me(h.S);for(const g of A){const u=g.k;if(!u["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=u,j(u.parentNode,u["s-ol"]=v,u,o)}}for(const g of A){const u=g.k,v=g.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),v){const S=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===u["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}m=m.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(j(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,j(u.parentNode,m,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(r=u["s-ih"])!=null&&r)}u&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&we(h.S),O.i&=-2,A.length=0,!W&&!(1&d.i)&&i["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const u of g)if(u["s-hn"]!==L&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(c=u.hidden)!=null&&c),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const v=w.document.createComment("s-nt-"+u.nodeValue);v["s-sn"]=u["s-sn"],j(u.parentNode,v,u,o),u.parentNode.removeChild(u)}}}ie=void 0,de.forEach((g=>g())),de.length=0,ue.forEach((g=>g())),ue.length=0},He=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.C);const o=()=>ft(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ft=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>z(s,"componentWillRender",void 0,o))),Be(n,(()=>pt(e,s,t)))},Be=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(r=>{const c=r.o,i=r.$hostElement$,d=c.i,f=((a,h)=>{var g,u,v;const S=Ne(h),y=G.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let m,p=R.get(a=a.head||a);if(p||R.set(a,p=new Set),!p.has(S)){m=w.document.createElement("style"),m.textContent=y;const N=(g=O.L)!=null?g:(function(){var b,_,x;return(x=(_=(b=w.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?x:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&h.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),_=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(m,_?.parentNode===a?_:null)}else if("host"in a)if(ee){const b=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),te?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=y+b.textContent:a.prepend(m)}else a.append(m);1&h.i&&a.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let m=R.get(a);if(m||R.set(a,m=new Set),!m.has(S)){const p=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)N.insertRule(y.cssRules[b].cssText,b)}te?a.adoptedStyleSheets.push(N):a.adoptedStyleSheets=[...a.adoptedStyleSheets,N],m.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),gt(e,t,n,o),l&&(l.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],c=()=>mt(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ut(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,bt(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||yt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},yt=()=>{ne((()=>xe(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},bt=e=>e.classList.add("hydrated"),Ie=(e,t,o,s)=>{const n=T(e);if(!n)return;const l=e,r=n.l.get(t),c=n.i,i=l;o=Ce(o,s.t[t][0]);const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,g]]=Object.entries(a);(128&c||1&g)&&(i?i[h](o,r,t):n.T.push((()=>{n.D[h](o,r,t)})))}catch(h){D(h,l)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},St=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=ke(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([r,[c]])=>{if(31&c||32&c){const{get:i,set:d}=M(n,r)||{};i&&(t.t[r][0]|=2048),d&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return i?i.apply(this):(f=r,T(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(f){const a=T(this);if(a){if(d)return(32&c?this[r]:a.$hostElement$[r])===void 0&&a.l.get(r)&&(f=a.l.get(r)),d.apply(this,[Ce(f,c)]),void Ie(this,r,f=32&c?this[r]:a.$hostElement$[r],t);Ie(this,r,f,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(c,i,d){O.jmp((()=>{var f;const a=r.get(c),h=T(this);if(this.hasOwnProperty(a),n.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const y=h?.i;if(h&&y&&!(8&y)&&d!==i){const m=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((N=>{const[[b,_]]=Object.entries(N);m[b]!=null&&(128&y||1&_)&&m[b].call(m,d,i,c)}))}return}const g=l.find((([y])=>y===a)),u=g&&4&g[1][0],v=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,a);v||d==this[a]||S.get&&!S.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...l.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return r.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},vt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=ke(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,r)=>{const c={i:0,$hostElement$:l,o:r,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),l["s-p"]=[],l["s-rc"]=[];const i=c;l.__stencil__getHostRef=()=>i,512&r.i&&Xe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!T(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const r=T(l);if(!r)return;const c=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(i,d,i.firstChild)})(l);{let i=l;for(;i=i.parentNode||i.host;)if(i["s-p"]){He(r,r.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,i)){const f=l[i];delete l[i],l[i]=f}})),(async(i,d,f)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),a&&a.style)){let u;typeof a.style=="string"&&(u=a.style);const v=Ne(f);G.has(v)||((S,y,m)=>{let p=G.get(S);ee&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,G.set(S,p)})(v,u,!!(1&f.i))}const h=d.C,g=()=>fe(d,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){D(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(l,r,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{1&O.i||T(l),R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),St(e,o)}catch(s){return D(s),e}};function Lt(e){return e}function Fe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("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,s)},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,loading:n},l,r)=>We("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":s,"gids-button--icon-only":l,"gids-button--loading":n},r)},Symbol.toStringTag,{value:"Module"})),Q=64,Ve=10,ze=Q/2-Ve/2,Nt=Q/2,he=2*Math.PI*ze,Ot=`0 0 ${Q} ${Q}`,$t=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),r=(he-parseFloat(l)).toFixed(2);return`${l} ${r}`},centerPosition:Nt,circumference:he,radius:ze,thickness:Ve,viewBox:Ot},Symbol.toStringTag,{value:"Module"})),Ge=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:kt}=wt,{calculateStrokeDasharray:Ct,thickness:qe,radius:Ue,centerPosition:X,viewBox:xt}=$t,jt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Ct(o,s||0),strokeDashoffset:"0"}),$("svg",{class:kt({size:e,indeterminate:t,value:o}),viewBox:xt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ue,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ue,"stroke-width":qe}))},{getGidsButtonClassNames:Et}=_t,At=({appearance:e,size:t,destructive:o,loading:s,width:n,leadingIcon:l,trailingIcon:r,as:c,disabled:i,class:d,forceIconOnly:f=!1,...a},h)=>{const g=c||"button",u=t==="lg"||t===void 0?"md":t;return g!=="button"||"type"in a||(a.type="button"),$(g,{class:Et({appearance:e,size:t,destructive:o,loading:s,width:n},f||h.length===0&&Ge(l)&&!Ge(r),d),disabled:g==="button"?i:void 0,...a},$("span",{class:"gids-button__content"},l,h),s&&$(jt,{size:u,indeterminate:!0}),r)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const ge=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{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 s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let r=0;r<s.cssRules.length;r++){const c=s.cssRules.item(r);if(c?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=r-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ge!==void 0&&t!==pe&&(pe&&ge.disconnect(),t instanceof Element&&ge.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let r=0;r<n;r++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Tt=()=>(Ye||(Ye=Ze()),B),Je=vt(class extends et{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=it(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=Tt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return $(Oe,{key:"0f65cdb9d34f2cb5db90104964b7d76f63b7546c"},$("style",{key:"410fa1ed0c7f2ee1fa431e639adae9b09643635b"},`:host {
|
|
2
6
|
display: ${this.width==="full"?"block":"inline-block"}
|
|
3
|
-
}`)
|
|
7
|
+
}`),$(At,{key:"c60640620902451f4c635b802d1cd298f218772f",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:$("slot",{name:"leadingIcon"}),trailingIcon:$("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},$("slot",{key:"7904b661a3eb9be25e25a0a9668580462ebfc393"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function Ke(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Je))}))}Ke();const Rt=Je,Pt=Ke;P.GidsToggleButton=Rt,P.defineCustomElement=Pt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(b,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(b=typeof globalThis<"u"?globalThis:b||self,L(b.gidsCoreWebIndex={}))})(this,(function(b){"use strict";var L=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},oe=(e,t)=>t in e,le="http://www.w3.org/1999/xlink",O=typeof window<"u"?window:{},A={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})();var _e=e=>{const t=new URL(e,A.u);return t.origin!==O.location.origin?t.href:t.pathname},we=e=>A.u=e,ie=e=>{const t=Y(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&K(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Ae(s,R(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&Y(s,"childNodes").length&&ie(s)}};function K(e,t,n){let s,o=0,l=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||R(s)===n)&&(l.push(s),n!==void 0))return l;l=[...l,...K(s.childNodes,t,n)]}return l}var Ae=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)R(o)!==t||!n&&o["s-sr"]||s.push(o);return s},re=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",R=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Y(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var z,k,ae=e=>(e=typeof e)=="object"||e==="function",Oe=(e,t,...n)=>{let s=null,o=null,l=null,a=!1,u=!1;const r=[],c=g=>{for(let f=0;f<g.length;f++)s=g[f],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((a=!ae(s))&&(s=String(s)),a&&u?r[r.length-1].h+=s:r.push(a?H(null,s):s),u=a)};c(n);const d=H(e,null);return d.v=t,r.length>0&&(d.m=r),d.$=o,d.j=l,d},H=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Te={},ue=(e,t,n,s,o,l)=>{if(n===s)return;let a=oe(e,t),u=t.toLowerCase();if(t==="class"){const r=e.classList,c=de(n);let d=de(s);r.remove(...c.filter((g=>g&&!d.includes(g)))),r.add(...d.filter((g=>g&&!c.includes(g))))}else if(t==="style"){for(const r in n)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)n&&s[r]===n[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&$e(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let c;{const d=L(e);if(d&&d.o&&d.o.t){const g=d.o.t[r];g&&g[1]&&(c=g[1])}}return c||(c=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=ae(s);if((a||r&&s!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const d=s??"";t==="list"?a=!1:n!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}let c=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(le,t):e.removeAttribute(t)):(!a||4&l||o)&&!r&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(le,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):oe(O,u)?u.slice(2):u[2]+t.slice(3),n||s){const r=t.endsWith(ce);t=t.replace(Pe,""),n&&A.rel(e,t,n,r),s&&A.ael(e,t,s,r)}}},Ee=/\s/,de=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Ee):[]),ce="Capture",Pe=new RegExp(ce+"$"),Z=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,o=e&&e.v||{},l=t.v||{};for(const a of fe(Object.keys(o)))a in l||ue(s,a,o[a],void 0,n,t.i);for(const a of fe(Object.keys(l)))ue(s,a,o[a],l[a],n,t.i)};function fe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,W=!1,D=!1,_=!1,q=[],J=[],I=(e,t,n)=>{var s;const o=t.m[n];let l,a,u,r=0;if(B||(D=!0,o.O==="slot"&&(o.i|=o.m?2:1)),o.h!=null)l=o.S=O.document.createTextNode(o.h);else if(1&o.i)l=o.S=O.document.createTextNode(""),Z(null,o,_);else{if(_||(_=o.O==="svg"),!O.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=O.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&o.i?"slot-fb":o.O),_&&o.O==="foreignObject"&&(_=!1),Z(null,o,_),o.m){const c=o.O==="template"?l.content:l;for(r=0;r<o.m.length;++r)a=I(e,o,r),a&&c.appendChild(a)}o.O==="svg"?_=!1:l.tagName==="foreignObject"&&(_=!0)}return l["s-hn"]=k,3&o.i&&(l["s-sr"]=!0,l["s-cr"]=z,l["s-sn"]=o.j||"",l["s-rf"]=(s=o.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const d=g=>(function(f){const h=[],i=this["s-sn"];f?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(y=>{const m=[];for(let S=0;S<y.length;S++){const p=y[S]["s-nr"]||void 0;p&&p.isConnected&&m.push(p)}return m})(v.childNodes)).forEach((y=>{i===R(y)&&h.push(y)})),g?h.filter((y=>y.nodeType===1)):h}).bind(c);c.assignedElements=d(!0),c.assignedNodes=d(!1)})(l),u=e&&e.m&&e.m[n],u&&u.O===o.O&&e.S&&he(e.S)),l},he=e=>{A.i|=1;const t=e.closest(k.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(E(t,o,n??null),o["s-sh"]=void 0,D=!0)}A.i&=-2},F=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===k&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==k&&o["s-ol"]&&(E(M(o).parentNode,o,M(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,D=!0),t&&F(o,t)}A.i&=-2},pe=(e,t,n,s,o,l)=>{let a,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===k&&(u=u.shadowRoot),n.O==="template"&&(u=u.content);o<=l;++o)s[o]&&(a=I(null,n,o),a&&(s[o].S=a,E(u,a,M(t))))},Se=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const l=o.S;me(o),l&&(W=!0,l["s-ol"]?l["s-ol"].remove():F(l,!0),l.remove())}}},V=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),M=e=>e&&e["s-ol"]||e,x=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,l=t.m,a=t.O,u=t.h;let r;u==null?(_=a==="svg"||a!=="foreignObject"&&_,a!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",he(t.S.parentElement)),Z(e,t,_),o!==null&&l!==null?((c,d,g,f,h=!1)=>{let i,v,y=0,m=0,S=0,p=0,j=d.length-1,N=d[0],T=d[j],C=f.length-1,w=f[0],P=f[C];const Ne=g.O==="template"?c.content:c;for(;y<=j&&m<=C;)if(N==null)N=d[++y];else if(T==null)T=d[--j];else if(w==null)w=f[++m];else if(P==null)P=f[--C];else if(V(N,w,h))x(N,w,h),N=d[++y],w=f[++m];else if(V(T,P,h))x(T,P,h),T=d[--j],P=f[--C];else if(V(N,P,h))N.O!=="slot"&&P.O!=="slot"||F(N.S.parentNode,!1),x(N,P,h),E(Ne,N.S,T.S.nextSibling),N=d[++y],P=f[--C];else if(V(T,w,h))N.O!=="slot"&&P.O!=="slot"||F(T.S.parentNode,!1),x(T,w,h),E(Ne,T.S,N.S),T=d[--j],w=f[++m];else{for(S=-1,p=y;p<=j;++p)if(d[p]&&d[p].$!==null&&d[p].$===w.$){S=p;break}S>=0?(v=d[S],v.O!==w.O?i=I(d&&d[m],g,S):(x(v,w,h),d[S]=void 0,i=v.S),w=f[++m]):(i=I(d&&d[m],g,m),w=f[++m]),i&&E(M(N.S).parentNode,i,M(N.S))}y>j?pe(c,f[C+1]==null?null:f[C+1].S,g,f,m,C):m>C&&Se(d,y,j)})(s,o,t,l,n):l!==null?(e.h!==null&&(s.textContent=""),pe(s,null,t,l,0,l.length-1)):!n&&o!==null&&Se(o,0,o.length-1),_&&a==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=u:e.h!==u&&(s.data=u)},$=[],ge=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const l of o){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=l["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(re(t,a)){let u=$.find((r=>r.k===t));W=!0,t["s-sn"]=t["s-sn"]||a,u?(u.k["s-sh"]=l["s-hn"],u.N=l):(t["s-sh"]=l["s-hn"],$.push({N:l,k:t})),t["s-sr"]&&$.map((r=>{re(r.k,t["s-sn"])&&(u=$.find((c=>c.k===t)),u&&!r.N&&(r.N=u.N))}))}else $.some((u=>u.k===t))||$.push({k:t})}l.nodeType===1&&ge(l)}},me=e=>{e.v&&e.v.ref&&q.push((()=>e.v.ref(null))),e.m&&e.m.map(me)},$e=(e,t)=>{J.push((()=>e(t)))},E=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(l,a){var u;if(!(a=a||((u=l["s-ol"])==null?void 0:u.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=R(l)||"";return{slotNode:K(Y(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Ce=(e,t,n=!1)=>{var s,o,l,a,u;const r=e.$hostElement$,c=e.o,d=e.M||H(null,null);var g;const f=(g=t)&&g.O===Te?t:Oe(null,null,t);if(k=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([h,i])=>{f.v[i]=r[h]}))),n&&f.v)for(const h of Object.keys(f.v))r.hasAttribute(h)&&!["key","ref","style","class"].includes(h)&&(f.v[h]=r[h]);if(f.O=null,f.i|=4,e.M=f,f.S=d.S=r.shadowRoot||r,B=!(!(1&c.i)||128&c.i),z=r["s-cr"],W=!1,x(d,f,n),A.i|=1,D){ge(f.S);for(const h of $){const i=h.k;if(!i["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=i,E(i.parentNode,i["s-ol"]=v,i,n)}}for(const h of $){const i=h.k,v=h.N;if(i.nodeType===1&&n&&(i["s-ih"]=(s=i.hidden)!=null&&s),v){const y=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let S=(o=i["s-ol"])==null?void 0:o.previousSibling;for(;S;){let p=(l=S["s-nr"])!=null?l:null;if(p&&p["s-sn"]===i["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===i||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){m=p;break}}S=S.previousSibling}}if((!m&&y!==(i.__parentNode||i.parentNode)||(i.__nextSibling||i.nextSibling)!==m)&&i!==m){if(E(y,i,m,n),i.nodeType===8&&i.nodeValue.startsWith("s-nt-")){const S=O.document.createTextNode(i.nodeValue.replace(/^s-nt-/,""));S["s-hn"]=i["s-hn"],S["s-sn"]=i["s-sn"],S["s-sh"]=i["s-sh"],S["s-sr"]=i["s-sr"],S["s-ol"]=i["s-ol"],S["s-ol"]["s-nr"]=S,E(i.parentNode,S,i,n),i.parentNode.removeChild(i)}i.nodeType===1&&i.tagName!=="SLOT-FB"&&(i.hidden=(a=i["s-ih"])!=null&&a)}i&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else i.nodeType===1&&(i.hidden=!0)}}if(W&&ie(f.S),A.i&=-2,$.length=0,!B&&!(1&c.i)&&r["s-cr"]){const h=f.S.__childNodes||f.S.childNodes;for(const i of h)if(i["s-hn"]!==k&&!i["s-sh"]){if(n&&i["s-ih"]==null&&(i["s-ih"]=(u=i.hidden)!=null&&u),i.nodeType===1)i.hidden=!0;else if(i.nodeType===3&&i.nodeValue.trim()){const v=O.document.createComment("s-nt-"+i.nodeValue);v["s-sn"]=i["s-sn"],E(i.parentNode,v,i,n),i.parentNode.removeChild(i)}}}z=void 0,q.forEach((h=>h())),q.length=0,J.forEach((h=>h())),J.length=0},je=e=>A.L=e,ke=e=>Object.assign(A,e),ve=new WeakMap;function xe(e,t){let n=ve.get(t);n||(n={i:0,o:{i:0,p:t.tagName},$hostElement$:t},ve.set(t,n)),Ce(n,e)}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ye=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Q=null;const U=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{X()})):void 0,X=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const s=document.styleSheets.item(n);if(s)try{let o=-1,l=0;for(let a=0;a<s.cssRules.length;a++){const u=s.cssRules.item(a);if(u?.cssText.startsWith("gids-global-styles-start"))o=a;else if(o>-1){if(u?.cssText.startsWith("gids-global-styles-end")){l=a-o+1;break}t.push(u)}}if(o>-1)return{rulesStartIndex:o,originalRulesCount:l,rules:t,styleSheet:s}}catch(o){if(!(o instanceof DOMException))throw o}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return U!==void 0&&t!==Q&&(Q&&U.disconnect(),t instanceof Element&&U.observe(t,{childList:!0,characterData:!0,subtree:!0}),Q=t),G.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:s,originalRulesCount:o,styleSheet:l}=n;for(let a=0;a<o;a++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ge=()=>(ye||(ye=X()),G),ee=Symbol("defaultPath"),be=Symbol("pathSet"),te="gids-asset-paths-set";class Le extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(te))};haveAssetPathsBeenSet(){return this.#t(be)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ee,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ee,n)}this.#e(be,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(ee);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(te,t,{once:!0}),()=>{this.removeEventListener(te,t)}}}const se=Symbol.for("GIDS"),Re=()=>(globalThis[se]===void 0&&(globalThis[se]={assetPaths:{}}),globalThis[se]),Be=e=>{const t=Re().assetPaths;return t[e]===void 0&&(t[e]=new Le),t[e]};function Me(){return Be("@ganpatiinfo/gids-web-shared")}function We(e,t){Me().setAssetPaths(e,t)}function ne(e,t){We(e,t)}const De=e=>{ne(e)},Ie=e=>{ne(e)};b.getAssetPath=_e,b.getConstructedGidsStylesheet=Ge,b.refreshConstructedGidsStylesheet=X,b.render=xe,b.setAssetPath=we,b.setGidsAssetFilePaths=De,b.setGidsAssetPaths=ne,b.setGidsDefaultAssetDirPath=Ie,b.setNonce=je,b.setPlatformOptions=ke,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
(function(O,j){typeof exports=="object"&&typeof module<"u"?j(exports):typeof define=="function"&&define.amd?define(["exports"],j):(O=typeof globalThis<"u"?globalThis:O||self,j(O.gidsCoreWeb={}))})(this,(function(O){"use strict";function j(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const o=Object.getOwnPropertyDescriptor(e,t);if(o&&(!s||o.get))return o;e=Object.getPrototypeOf(e)}}var N,Ve=(e,t)=>{var s;Object.entries((s=t.l.t)!=null?s:{}).map((([n,[o]])=>{if(31&o||32&o){const c=e[n],i=j(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(e,n,{get(){return i.get.call(this)},set(r){i.set.call(this,r)},configurable:!0,enumerable:!0}),t.o.has(n)?e[n]=t.o.get(n):c!==void 0&&(e[n]=c)}}))},P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ae=(e,t)=>t in e,R=(e,t)=>(0,console.error)(e,t),L=new Map,A=typeof window<"u"?window:{},ce=A.HTMLElement||class{},k={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},F=(()=>{try{return!!A.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),U=!!F&&!!A.document&&Object.getOwnPropertyDescriptor(A.document.adoptedStyleSheets,"length").writable,V=!1,de=[],ue=[],Ke=(e,t)=>s=>{e.push(s),V||(V=!0,4&k.i?Y(K):k.raf(K))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){R(s)}e.length=0},K=()=>{he(de),he(ue),(V=de.length>0)&&k.raf(K)},Y=e=>Promise.resolve(void 0).then(e),Ye=Ke(ue),Ze=e=>{const t=new URL(e,k.u);return t.origin!==A.location.origin?t.href:t.pathname},Je=e=>k.u=e;function Qe(){const e=this.attachShadow({mode:"open"});N===void 0&&(N=null),N&&(U?e.adoptedStyleSheets.push(N):e.adoptedStyleSheets=[...e.adoptedStyleSheets,N])}var T,E=new WeakMap,fe=e=>"sc-"+e.h,Z=e=>(e=typeof e)=="object"||e==="function",$=(e,t,...s)=>{let n=null,o=null,c=!1,i=!1;const r=[],l=u=>{for(let a=0;a<u.length;a++)n=u[a],Array.isArray(n)?l(n):n!=null&&typeof n!="boolean"&&((c=typeof e!="function"&&!Z(n))&&(n=String(n)),c&&i?r[r.length-1].p+=n:r.push(c?D(null,n):n),i=c)};if(l(s),t&&t.key&&(o=t.key),typeof e=="function")return e(t===null?{}:t,r,Xe);const d=D(e,null);return d.m=t,r.length>0&&(d.v=r),d.$=o,d},D=(e,t)=>({i:0,S:e,p:t??null,O:null,v:null,m:null,$:null}),pe={},Xe={forEach:(e,t)=>e.map(ge).forEach(t),map:(e,t)=>e.map(ge).map(t).map(et)},ge=e=>({vattrs:e.m,vchildren:e.v,vkey:e.$,vname:e.j,vtag:e.S,vtext:e.p}),et=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),$(e.vtag,s,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.m=e.vattrs,t.v=e.vchildren,t.$=e.vkey,t.j=e.vname,t},me=(e,t)=>e==null||Z(e)?e:4&t?e!=="false"&&(e===""||!!e):1&t?String(e):e,tt=(e,t)=>{const s=e;return{emit:n=>ye(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},ye=(e,t,s)=>{const n=k.ce(t,s);return e.dispatchEvent(n),n},ve=(e,t,s,n,o,c)=>{if(s===n)return;let i=ae(e,t),r=t.toLowerCase();if(t!=="key"){if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let d;{const u=P(e);if(u&&u.l&&u.l.t){const a=u.l.t[l];a&&a[1]&&(d=a[1])}}return d||(d=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=Z(n);if((i||l&&n!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const d=n??"";t==="list"?i=!1:s!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}n==null||n===!1?n===!1&&e.getAttribute(t)!==""||e.removeAttribute(t):(!i||4&c||o)&&!l&&e.nodeType===1&&e.setAttribute(t,n=n===!0?"":n)}}else if(t=t[2]==="-"?t.slice(3):ae(A,r)?r.slice(2):r[2]+t.slice(3),s||n){const l=t.endsWith(be);t=t.replace(nt,""),s&&k.rel(e,t,s,l),n&&k.ael(e,t,n,l)}}},be="Capture",nt=new RegExp(be+"$"),Se=(e,t,s)=>{const n=t.O.nodeType===11&&t.O.host?t.O.host:t.O,o=e&&e.m||{},c=t.m||{};for(const i of we(Object.keys(o)))i in c||ve(n,i,o[i],void 0,s,t.i);for(const i of we(Object.keys(c)))ve(n,i,o[i],c[i],s,t.i)};function we(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var _e=!1,$e=!1,H=(e,t,s)=>{const n=t.v[s];let o,c,i=0;if(n.p!=null)o=n.O=A.document.createTextNode(n.p);else{if(!A.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=n.O=A.document.createElement(n.S),Se(null,n,$e),n.v){const r=n.S==="template"?o.content:o;for(i=0;i<n.v.length;++i)c=H(e,n,i),c&&r.appendChild(c)}}return o["s-hn"]=T,o},Oe=(e,t,s,n,o,c)=>{let i,r=e;for(r.shadowRoot&&r.tagName===T&&(r=r.shadowRoot),s.S==="template"&&(r=r.content);o<=c;++o)n[o]&&(i=H(null,s,o),i&&(n[o].O=i,M(r,i,t)))},ke=(e,t,s)=>{for(let n=t;n<=s;++n){const o=e[n];if(o){const c=o.O;c&&c.remove()}}},B=(e,t,s=!1)=>e.S===t.S&&(s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),x=(e,t,s=!1)=>{const n=t.O=e.O,o=e.v,c=t.v,i=t.p;i==null?(t.S!=="slot"||_e||e.j!==t.j&&(t.O["s-sn"]=t.j||"",(r=>{k.i|=1;const l=r.closest(T.toLowerCase());if(l!=null){const d=Array.from(l.__childNodes||l.childNodes).find((a=>a["s-cr"])),u=Array.from(r.__childNodes||r.childNodes);for(const a of d?u.reverse():u)a["s-sh"]!=null&&(M(l,a,d??null),a["s-sh"]=void 0)}k.i&=-2})(t.O.parentElement)),Se(e,t,$e),o!==null&&c!==null?((r,l,d,u,a=!1)=>{let m,w,v=0,_=0,S=0,g=0,p=l.length-1,h=l[0],b=l[p],f=u.length-1,y=u[0],C=u[f];const Ue=d.S==="template"?r.content:r;for(;v<=p&&_<=f;)if(h==null)h=l[++v];else if(b==null)b=l[--p];else if(y==null)y=u[++_];else if(C==null)C=u[--f];else if(B(h,y,a))x(h,y,a),h=l[++v],y=u[++_];else if(B(b,C,a))x(b,C,a),b=l[--p],C=u[--f];else if(B(h,C,a))x(h,C,a),M(Ue,h.O,b.O.nextSibling),h=l[++v],C=u[--f];else if(B(b,y,a))x(b,y,a),M(Ue,b.O,h.O),b=l[--p],y=u[++_];else{for(S=-1,g=v;g<=p;++g)if(l[g]&&l[g].$!==null&&l[g].$===y.$){S=g;break}S>=0?(w=l[S],w.S!==y.S?m=H(l&&l[_],d,S):(x(w,y,a),l[S]=void 0,m=w.O),y=u[++_]):(m=H(l&&l[_],d,_),y=u[++_]),m&&M(h.O.parentNode,m,h.O)}v>p?Oe(r,u[f+1]==null?null:u[f+1].O,d,u,_,f):_>f&&ke(l,v,p)})(n,o,t,c,s):c!==null?(e.p!==null&&(n.textContent=""),Oe(n,null,t,c,0,c.length-1)):!s&&o!==null&&ke(o,0,o.length-1)):e.p!==i&&(n.data=i)},M=(e,t,s)=>e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s),Ae=(e,t,s=!1)=>{const n=e.$hostElement$,o=e.l,c=e.M||D(null,null);var i;const r=(i=t)&&i.S===pe?t:$(null,null,t);if(T=n.tagName,o.k&&(r.m=r.m||{},o.k.forEach((([l,d])=>{r.m[d]=n[l]}))),s&&r.m)for(const l of Object.keys(r.m))n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(r.m[l]=n[l]);r.S=null,r.i|=4,e.M=r,r.O=c.O=n.shadowRoot||n,_e=!(!(1&o.i)||128&o.i),x(c,r,s)},Ce=(e,t)=>{if(t&&!e.C&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.C=()=>{t["s-p"].splice(s-1,1),n()})))}},J=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ce(e,e.A);const s=()=>st(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},st=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)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 o;return o=G(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),o=Pe(o,(()=>G(n,"componentWillRender",void 0,s))),Pe(o,(()=>it(e,n,t)))},Pe=(e,t)=>ot(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),ot=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",it=async(e,t,s)=>{var n;const o=e.$hostElement$,c=o["s-rc"];s&&(i=>{const r=i.l,l=i.$hostElement$,d=r.i,u=((a,m)=>{var w,v,_;const S=fe(m),g=L.get(S);if(!A.document)return S;if(a=a.nodeType===11?a:A.document,g)if(typeof g=="string"){let p,h=E.get(a=a.head||a);if(h||E.set(a,h=new Set),!h.has(S)){p=A.document.createElement("style"),p.textContent=g;const b=(w=k.D)!=null?w:(function(){var f,y,C;return(C=(y=(f=A.document.head)==null?void 0:f.querySelector('meta[name="csp-nonce"]'))==null?void 0:y.getAttribute("content"))!=null?C:void 0})();if(b!=null&&p.setAttribute("nonce",b),!(1&m.i))if(a.nodeName==="HEAD"){const f=a.querySelectorAll("link[rel=preconnect]"),y=f.length>0?f[f.length-1].nextSibling:a.querySelector("style");a.insertBefore(p,y?.parentNode===a?y:null)}else if("host"in a)if(F){const f=new((v=a.defaultView)!=null?v:a.ownerDocument.defaultView).CSSStyleSheet;f.replaceSync(g),U?a.adoptedStyleSheets.unshift(f):a.adoptedStyleSheets=[f,...a.adoptedStyleSheets]}else{const f=a.querySelector("style");f?f.textContent=g+f.textContent:a.prepend(p)}else a.append(p);1&m.i&&a.insertBefore(p,null),4&m.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(S)}}else{let p=E.get(a);if(p||E.set(a,p=new Set),!p.has(S)){const h=(_=a.defaultView)!=null?_:a.ownerDocument.defaultView;let b;if(g.constructor===h.CSSStyleSheet)b=g;else{b=new h.CSSStyleSheet;for(let f=0;f<g.cssRules.length;f++)b.insertRule(g.cssRules[f].cssText,f)}U?a.adoptedStyleSheets.push(b):a.adoptedStyleSheets=[...a.adoptedStyleSheets,b],p.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),lt(e,t,o,s),c&&(c.map((i=>i())),o["s-rc"]=void 0);{const i=(n=o["s-p"])!=null?n:[],r=()=>rt(e);i.length===0?r():(Promise.all(i).then(r).catch(r),e.i|=4,i.length=0)}},lt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ae(e,t,n)}catch(o){R(o,e.$hostElement$)}return null},rt=e=>{const t=e.$hostElement$,s=t,n=e.A;G(s,"componentDidRender",void 0,t),64&e.i?G(s,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),G(s,"componentDidLoad",void 0,t),e.L(t),n||at()),e.C&&(e.C(),e.C=void 0),512&e.i&&Y((()=>J(e,!1))),e.i&=-517},at=()=>{Y((()=>ye(A,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(o){R(o,n)}},ct=e=>e.classList.add("hydrated"),Ee=(e,t,s,n)=>{const o=P(e);if(!o)return;const c=e,i=o.o.get(t),r=o.i,l=c;s=me(s,n.t[t][0]);const d=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!d&&(o.o.set(t,s),2&r)){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,i,t)===!1&&!(16&r))return;16&r||J(o,!1)}},dt=(e,t)=>{var s,n;const o=e.prototype;if(t.t){const c=Object.entries((s=t.t)!=null?s:{});c.map((([i,[r]])=>{if(31&r||32&r){const{get:l,set:d}=j(o,i)||{};l&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(o,i,{get(){return l?l.apply(this):(u=i,P(this).o.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(o,i,{set(u){const a=P(this);if(a){if(d)return(32&r?this[i]:a.$hostElement$[i])===void 0&&a.o.get(i)&&(u=a.o.get(i)),d.apply(this,[me(u,r)]),void Ee(this,i,u=32&r?this[i]:a.$hostElement$[i],t);Ee(this,i,u,t)}}})}}));{const i=new Map;o.attributeChangedCallback=function(r,l,d){k.jmp((()=>{var u;const a=i.get(r),m=P(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const g=m?.i;if(m&&g&&!(8&g)&&d!==l){const p=this,h=(u=t.R)==null?void 0:u[r];h?.forEach((b=>{const[[f,y]]=Object.entries(b);p[f]!=null&&(128&g||1&y)&&p[f].call(p,d,l,r)}))}return}const w=c.find((([g])=>g===a)),v=w&&4&w[1][0],_=v&&d===null&&this[a]===void 0;v&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(o,a);_||d==this[a]||S.get&&!S.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...c.filter((([r,l])=>31&l[0])).map((([r,l])=>{var d;const u=l[1]||r;return i.set(u,r),512&l[0]&&((d=t.k)==null||d.push([r,u])),u}))]))}}return e},je=(e,t)=>{const s={i:t[0],h:t[1]};try{s.t=t[2],s.k=[];const n=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((c,i)=>{const r={i:0,$hostElement$:c,l:i,o:new Map,_:new Map};r.H=new Promise((d=>r.L=d)),c["s-p"]=[],c["s-rc"]=[];const l=r;c.__stencil__getHostRef=()=>l,512&i.i&&Ve(c,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!P(this))return;this.__hasHostListenerAttached=!0}(c=>{if(!(1&k.i)){const i=P(c);if(!i)return;const r=i.l;if(1&i.i)i?.P||i?.H&&i.H.then((()=>{}));else{i.i|=1;{let l=c;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ce(i,i.A=l);break}}r.t&&Object.entries(r.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(c,l)){const u=c[l];delete c[l],c[l]=u}})),(async(l,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),a&&a.style)){let v;typeof a.style=="string"&&(v=a.style);const _=fe(u);L.has(_)||((S,g,p)=>{let h=L.get(S);F&&p?(h=h||new CSSStyleSheet,typeof h=="string"?h=g:h.replaceSync(g)):h=g,L.set(S,h)})(_,v,!!(1&u.i))}const m=d.A,w=()=>J(d,!0);m&&m["s-rc"]?m["s-rc"].push(w):w()}catch(m){R(m,l),d.C&&(d.C(),d.C=void 0),d.L&&d.L(l)}})(c,i,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async c=>{1&k.i||P(c),E.has(c)&&E.delete(c),c.shadowRoot&&E.has(c.shadowRoot)&&E.delete(c.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Qe.call(this,s)}}),Object.defineProperty(e,"is",{value:s.h,configurable:!0}),dt(e,s)}catch(n){return R(n),e}},ut=e=>k.D=e,ht=e=>Object.assign(k,e),xe=new WeakMap;function ft(e,t){let s=xe.get(t);s||(s={i:0,l:{i:0,h:t.tagName},$hostElement$:t},xe.set(t,s)),Ae(s,e)}function Wt(e){return e}const I=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ie=!1;I&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(I):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Q=null;const X=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ee()})):void 0,ee=()=>{if(I===void 0)return!1;const e=(()=>{if(I===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let o=-1,c=0;for(let i=0;i<n.cssRules.length;i++){const r=n.cssRules.item(i);if(r?.cssText.startsWith("gids-global-styles-start"))o=i;else if(o>-1){if(r?.cssText.startsWith("gids-global-styles-end")){c=i-o+1;break}t.push(r)}}if(o>-1)return{rulesStartIndex:o,originalRulesCount:c,rules:t,styleSheet:n}}catch(o){if(!(o instanceof DOMException))throw o}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return X!==void 0&&t!==Q&&(Q&&X.disconnect(),t instanceof Element&&X.observe(t,{childList:!0,characterData:!0,subtree:!0}),Q=t),I.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:o,styleSheet:c}=s;for(let i=0;i<o;i++)c.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},te=()=>(Ie||(Ie=ee()),I),Ne={"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"]},Re=new Map;for(const e in Ne)for(const t of Ne[e])Re.set(t,e);function pt(e){return Re.get(e)}function Me(e,t="regular",s){const n=pt(e);let o=n??"";return s&&n&&(o=s(n)??n),`${o}#${e}${t==="filled"?"--filled":""}`}function Ge(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(s=Ge(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ne(){for(var e,t,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(t=Ge(e))&&(n&&(n+=" "),n+=t);return n}const gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>ne("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},s,n)},Symbol.toStringTag,{value:"Module"})),mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>ne("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"})),yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:s,destructive:n,loading:o},c,i)=>ne("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":s==="full","gids-button--destructive":n,"gids-button--icon-only":c,"gids-button--loading":o},i)},Symbol.toStringTag,{value:"Module"})),z=64,Le=10,Te=z/2-Le/2,vt=z/2,se=2*Math.PI*Te,bt=`0 0 ${z} ${z}`,St=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(s,e))/s*100,c=(se*o/100).toFixed(2),i=(se-parseFloat(c)).toFixed(2);return`${c} ${i}`},centerPosition:vt,circumference:se,radius:Te,thickness:Le,viewBox:bt},Symbol.toStringTag,{value:"Module"})),oe=Symbol("defaultPath"),De=Symbol("pathSet"),ie="gids-asset-paths-set";class wt extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#n(t){return this.#e.get(t)??null}#s=()=>{this.dispatchEvent(new Event(ie))};haveAssetPathsBeenSet(){return this.#n(De)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(oe,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(oe,s)}this.#t(De,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const s=this.#n(t);if(s===null){const n=this.#n(oe);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ie,t,{once:!0}),()=>{this.removeEventListener(ie,t)}}}const le=Symbol.for("GIDS"),_t=()=>(globalThis[le]===void 0&&(globalThis[le]={assetPaths:{}}),globalThis[le]),$t=e=>{const t=_t().assetPaths;return t[e]===void 0&&(t[e]=new wt),t[e]};function W(){return $t("@ganpatiinfo/gids-web-shared")}function Ot(){return W().haveAssetPathsBeenSet()}function kt(e,t){W().setAssetPaths(e,t)}function He(e){return W().getAssetFilePath(e)}function At(e){return W().onAssetPathsSet(e)}let Ct=0;const Pt=(e,t="gids")=>e||`${t}-${Ct++}`,Be=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsIconClassNames:Et}=mt,jt=({name:e,size:t,appearance:s,alt:n,class:o,titleId:c,src:i,...r})=>{const l=Pt(c);let d=i;return d===void 0&&Ot()&&(d=Me(e,s,He)),$("svg",{ref:u=>{d===void 0&&At((()=>{(function(a,m,w){if(!a)return;const v=document.createElementNS("http://www.w3.org/2000/svg","use");v.setAttribute("href",Me(m,w,He)),a.appendChild(v)})(u,e,s)}))},width:"16",height:"16",class:Et({size:t},o),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&$("title",{id:l},n||e),d!==void 0?$("use",{href:d}):null)},ze=je(class extends ce{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=te();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return $(jt,{key:"2459cf3111612150342d5a57574fd61157a9c591",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%)}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function xt(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,ze))}))}xt();const It=ze,{getGidsSpinnerControlClassNames:Nt}=gt,{calculateStrokeDasharray:Rt,thickness:We,radius:qe,centerPosition:q,viewBox:Mt}=St,Gt=({size:e,indeterminate:t,value:s,max:n,...o})=>{let c;return t||(c={strokeDashArray:Rt(s,n||0),strokeDashoffset:"0"}),$("svg",{class:Nt({size:e,indeterminate:t,value:s}),viewBox:Mt,...o},$("circle",{class:"gids-spinner-control__track",cx:q,cy:q,r:qe,"stroke-width":We}),$("circle",{style:c,class:"gids-spinner-control__progress",cx:q,cy:q,r:qe,"stroke-width":We}))},{getGidsButtonClassNames:Lt}=yt,Tt=({appearance:e,size:t,destructive:s,loading:n,width:o,leadingIcon:c,trailingIcon:i,as:r,disabled:l,class:d,forceIconOnly:u=!1,...a},m)=>{const w=r||"button",v=t==="lg"||t===void 0?"md":t;return w!=="button"||"type"in a||(a.type="button"),$(w,{class:Lt({appearance:e,size:t,destructive:s,loading:n,width:o},u||m.length===0&&Be(c)&&!Be(i),d),disabled:w==="button"?l:void 0,...a},$("span",{class:"gids-button__content"},c,m),n&&$(Gt,{size:v,indeterminate:!0}),i)},Fe=je(class extends ce{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=tt(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=te();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return $(pe,{key:"222a7976cfa0daa12d2db51e405d8f3e894209d9"},$("style",{key:"04b1d2f9a184e830b949691e789deaaaea987303"},`:host {
|
|
1
|
+
(function(w,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(w=typeof globalThis<"u"?globalThis:w||self,V(w.gidsCoreWeb={}))})(this,(function(w){"use strict";function V(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var H,Qt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],a=V(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},M=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Be=(e,t)=>t in e,B=(e,t)=>(0,console.error)(e,t),Z=new Map,ze="http://www.w3.org/1999/xlink",C=typeof window<"u"?window:{},q=C.HTMLElement||class{},x={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},de=(()=>{try{return!!C.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ue=!!de&&!!C.document&&Object.getOwnPropertyDescriptor(C.document.adoptedStyleSheets,"length").writable,he=!1,De=[],He=[],Wt=(e,t)=>s=>{e.push(s),he||(he=!0,4&x.i?me(fe):x.raf(fe))},Qe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){B(s)}e.length=0},fe=()=>{Qe(De),Qe(He),(he=De.length>0)&&x.raf(fe)},me=e=>Promise.resolve(void 0).then(e),Ut=Wt(He),Yt=e=>{const t=new URL(e,x.u);return t.origin!==C.location.origin?t.href:t.pathname},Xt=e=>x.u=e;function Kt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(ue?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var We=e=>{const t=ge(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&pe(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!Zt(n,Q(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ge(n,"childNodes").length&&We(n)}};function pe(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||Q(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...pe(n.childNodes,t,s)]}return o}var Zt=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)Q(i)!==t||!s&&i["s-sr"]||n.push(i);return n},Ue=(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 ge(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var be,F,j=new WeakMap,Ye=e=>"sc-"+e.p,_e=e=>(e=typeof e)=="object"||e==="function",d=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,l=!1;const r=[],c=u=>{for(let m=0;m<u.length;m++)n=u[m],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!_e(n))&&(n=String(n)),a&&l?r[r.length-1].h+=n:r.push(a?J(null,n):n),l=a)};if(c(s),t){t.key&&(i=t.key),t.name&&(o=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter((m=>u[m])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,Jt);const h=J(e,null);return h.v=t,r.length>0&&(h.m=r),h.$=i,h.j=o,h},J=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ve={},Jt={forEach:(e,t)=>e.map(Xe).forEach(t),map:(e,t)=>e.map(Xe).map(t).map(es)},Xe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),es=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),d(e.vtag,s,...e.vchildren||[])}const t=J(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Ze=(e,t)=>e==null||_e(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,ee=(e,t)=>{const s=e;return{emit:n=>Je(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Je=(e,t,s)=>{const n=x.ce(t,s);return e.dispatchEvent(n),n},et=(e,t,s,n,i,o)=>{if(s===n)return;let a=Be(e,t),l=t.toLowerCase();if(t==="class"){const r=e.classList,c=tt(s);let h=tt(n);r.remove(...c.filter((u=>u&&!h.includes(u)))),r.add(...h.filter((u=>u&&!c.includes(u))))}else if(t==="style"){for(const r in s)n&&n[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in n)s&&n[r]===s[r]||(r.includes("-")?e.style.setProperty(r,n[r]):e.style[r]=n[r])}else if(t!=="key"){if(t==="ref")n&&ns(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let c;{const h=M(e);if(h&&h.o&&h.o.t){const u=h.o.t[r];u&&u[1]&&(c=u[1])}}return c||(c=r.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 r=t.slice(5);try{e[r]=n}catch{}return}{const r=_e(n);if((a||r&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const h=n??"";t==="list"?a=!1:s!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ze,t):e.removeAttribute(t)):(!a||4&o||i)&&!r&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(ze,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Be(C,l)?l.slice(2):l[2]+t.slice(3),s||n){const r=t.endsWith(st);t=t.replace(ss,""),s&&x.rel(e,t,s,r),n&&x.ael(e,t,n,r)}}},ts=/\s/,tt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ts):[]),st="Capture",ss=new RegExp(st+"$"),ye=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of nt(Object.keys(i)))a in o||et(n,a,i[a],void 0,s,t.i);for(const a of nt(Object.keys(o)))et(n,a,i[a],o[a],s,t.i)};function nt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,te=!1,se=!1,E=!1,Se=[],we=[],ne=(e,t,s)=>{var n;const i=t.m[s];let o,a,l,r=0;if(W||(se=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=C.document.createTextNode(i.h);else if(1&i.i)o=i.S=C.document.createTextNode(""),ye(null,i,E);else{if(E||(E=i.O==="svg"),!C.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=C.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&i.i?"slot-fb":i.O),E&&i.O==="foreignObject"&&(E=!1),ye(null,i,E),i.m){const c=i.O==="template"?o.content:o;for(r=0;r<i.m.length;++r)a=ne(e,i,r),a&&c.appendChild(a)}i.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=F,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=be,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=u=>(function(m){const p=[],f=this["s-sn"];m?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let b=0;b<y.length;b++){const g=y[b]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===Q(y)&&p.push(y)})),u?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),l=e&&e.m&&e.m[s],l&&l.O===i.O&&e.S&&it(e.S)),o},it=e=>{x.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(R(t,i,s??null),i["s-sh"]=void 0,se=!0)}x.i&=-2},ie=(e,t)=>{x.i|=1;const s=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"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(R(U(i).parentNode,i,U(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,se=!0),t&&ie(i,t)}x.i&=-2},ot=(e,t,s,n,i,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===F&&(l=l.shadowRoot),s.O==="template"&&(l=l.content);i<=o;++i)n[i]&&(a=ne(null,s,i),a&&(n[i].S=a,R(l,a,U(t))))},at=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;lt(i),o&&(te=!0,o["s-ol"]?o["s-ol"].remove():ie(o,!0),o.remove())}}},oe=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),U=e=>e&&e["s-ol"]||e,z=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,l=t.h;let r;l==null?(E=a==="svg"||a!=="foreignObject"&&E,a!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",it(t.S.parentElement)),ye(e,t,E),i!==null&&o!==null?((c,h,u,m,p=!1)=>{let f,S,y=0,_=0,b=0,g=0,T=h.length-1,v=h[0],k=h[T],$=m.length-1,N=m[0],O=m[$];const Ht=u.O==="template"?c.content:c;for(;y<=T&&_<=$;)if(v==null)v=h[++y];else if(k==null)k=h[--T];else if(N==null)N=m[++_];else if(O==null)O=m[--$];else if(oe(v,N,p))z(v,N,p),v=h[++y],N=m[++_];else if(oe(k,O,p))z(k,O,p),k=h[--T],O=m[--$];else if(oe(v,O,p))v.O!=="slot"&&O.O!=="slot"||ie(v.S.parentNode,!1),z(v,O,p),R(Ht,v.S,k.S.nextSibling),v=h[++y],O=m[--$];else if(oe(k,N,p))v.O!=="slot"&&O.O!=="slot"||ie(k.S.parentNode,!1),z(k,N,p),R(Ht,k.S,v.S),k=h[--T],N=m[++_];else{for(b=-1,g=y;g<=T;++g)if(h[g]&&h[g].$!==null&&h[g].$===N.$){b=g;break}b>=0?(S=h[b],S.O!==N.O?f=ne(h&&h[_],u,b):(z(S,N,p),h[b]=void 0,f=S.S),N=m[++_]):(f=ne(h&&h[_],u,_),N=m[++_]),f&&R(U(v.S).parentNode,f,U(v.S))}y>T?ot(c,m[$+1]==null?null:m[$+1].S,u,m,_,$):_>$&&at(h,y,T)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),ot(n,null,t,o,0,o.length-1)):!s&&i!==null&&at(i,0,i.length-1),E&&a==="svg"&&(E=!1)):(r=n["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(n.data=l)},P=[],rt=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ue(t,a)){let l=P.find((r=>r.k===t));te=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],P.push({N:o,k:t})),t["s-sr"]&&P.map((r=>{Ue(r.k,t["s-sn"])&&(l=P.find((c=>c.k===t)),l&&!r.N&&(r.N=l.N))}))}else P.some((l=>l.k===t))||P.push({k:t})}o.nodeType===1&&rt(o)}},lt=e=>{e.v&&e.v.ref&&Se.push((()=>e.v.ref(null))),e.m&&e.m.map(lt)},ns=(e,t)=>{we.push((()=>e(t)))},R=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=Q(o)||"";return{slotNode:pe(ge(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},ct=(e,t,s=!1)=>{var n,i,o,a,l;const r=e.$hostElement$,c=e.o,h=e.M||J(null,null);var u;const m=(u=t)&&u.O===ve?t:d(null,null,t);if(F=r.tagName,c._&&(m.v=m.v||{},c._.forEach((([p,f])=>{m.v[f]=r[p]}))),s&&m.v)for(const p of Object.keys(m.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(m.v[p]=r[p]);if(m.O=null,m.i|=4,e.M=m,m.S=h.S=r.shadowRoot||r,W=!(!(1&c.i)||128&c.i),be=r["s-cr"],te=!1,z(h,m,s),x.i|=1,se){rt(m.S);for(const p of P){const f=p.k;if(!f["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=f,R(f.parentNode,f["s-ol"]=S,f,s)}}for(const p of P){const f=p.k,S=p.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let b=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;b;){let g=(o=b["s-nr"])!=null?o:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}b=b.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if(R(y,f,_,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const b=C.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));b["s-hn"]=f["s-hn"],b["s-sn"]=f["s-sn"],b["s-sh"]=f["s-sh"],b["s-sr"]=f["s-sr"],b["s-ol"]=f["s-ol"],b["s-ol"]["s-nr"]=b,R(f.parentNode,b,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(te&&We(m.S),x.i&=-2,P.length=0,!W&&!(1&c.i)&&r["s-cr"]){const p=m.S.__childNodes||m.S.childNodes;for(const f of p)if(f["s-hn"]!==F&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(l=f.hidden)!=null&&l),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=C.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],R(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}be=void 0,Se.forEach((p=>p())),Se.length=0,we.forEach((p=>p())),we.length=0},dt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},ae=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);dt(e,e.C);const s=()=>is(e,t);if(!t)return Ut(s);queueMicrotask((()=>{s()}))},is=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)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 i;return i=Y(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=ut(i,(()=>Y(n,"componentWillRender",void 0,s))),ut(i,(()=>as(e,n,t)))},ut=(e,t)=>os(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),os=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",as=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const l=a.o,r=a.$hostElement$,c=l.i,h=((u,m)=>{var p,f,S;const y=Ye(m),_=Z.get(y);if(!C.document)return y;if(u=u.nodeType===11?u:C.document,_)if(typeof _=="string"){let b,g=j.get(u=u.head||u);if(g||j.set(u,g=new Set),!g.has(y)){b=C.document.createElement("style"),b.textContent=_;const T=(p=x.L)!=null?p:(function(){var v,k,$;return($=(k=(v=C.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$:void 0})();if(T!=null&&b.setAttribute("nonce",T),!(1&m.i))if(u.nodeName==="HEAD"){const v=u.querySelectorAll("link[rel=preconnect]"),k=v.length>0?v[v.length-1].nextSibling:u.querySelector("style");u.insertBefore(b,k?.parentNode===u?k:null)}else if("host"in u)if(de){const v=new((f=u.defaultView)!=null?f:u.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),ue?u.adoptedStyleSheets.unshift(v):u.adoptedStyleSheets=[v,...u.adoptedStyleSheets]}else{const v=u.querySelector("style");v?v.textContent=_+v.textContent:u.prepend(b)}else u.append(b);1&m.i&&u.insertBefore(b,null),4&m.i&&(b.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let b=j.get(u);if(b||j.set(u,b=new Set),!b.has(y)){const g=(S=u.defaultView)!=null?S:u.ownerDocument.defaultView;let T;if(_.constructor===g.CSSStyleSheet)T=_;else{T=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)T.insertRule(_.cssRules[v].cssText,v)}ue?u.adoptedStyleSheets.push(T):u.adoptedStyleSheets=[...u.adoptedStyleSheets,T],b.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&c&&(r["s-sc"]=h,r.classList.add(h+"-h"))})(e),rs(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],l=()=>ls(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},rs=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,ct(e,t,n)}catch(i){B(i,e.$hostElement$)}return null},ls=e=>{const t=e.$hostElement$,s=t,n=e.C;Y(s,"componentDidRender",void 0,t),64&e.i?Y(s,"componentDidUpdate",void 0,t):(e.i|=64,ds(t),Y(s,"componentDidLoad",void 0,t),e.F(t),n||cs()),e.A&&(e.A(),e.A=void 0),512&e.i&&me((()=>ae(e,!1))),e.i&=-517},ht=e=>{var t;{const s=M(e),n=(t=s?.$hostElement$)==null?void 0:t.isConnected;return n&&(18&s.i)==2&&ae(s,!1),n}},cs=()=>{me((()=>Je(C,"appload",{detail:{namespace:"gids-core-web"}})))},Y=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){B(i,n)}},ds=e=>e.classList.add("hydrated"),ft=(e,t,s,n)=>{const i=M(e);if(!i)return;const o=e,a=i.l.get(t),l=i.i,r=o;s=Ze(s,n.t[t][0]);const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.R){const h=n.R[t];h&&h.map((u=>{try{const[[m,p]]=Object.entries(u);(128&l||1&p)&&(r?r[m](s,a,t):i.T.push((()=>{i.D[m](s,a,t)})))}catch(m){B(m,o)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,a,t)===!1&&!(16&l))return;16&l||ae(i,!1)}}},us=(e,t)=>{var s,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Ke(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([a,[l]])=>{if(31&l||32&l){const{get:r,set:c}=V(i,a)||{};r&&(t.t[a][0]|=2048),c&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return r?r.apply(this):(h=a,M(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(h){const u=M(this);if(u){if(c)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(h=u.l.get(a)),c.apply(this,[Ze(h,l)]),void ft(this,a,h=32&l?this[a]:u.$hostElement$[a],t);ft(this,a,h,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,r,c){x.jmp((()=>{var h;const u=a.get(l),m=M(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const _=m?.i;if(m&&_&&!(8&_)&&c!==r){const b=this,g=(h=t.R)==null?void 0:h[l];g?.forEach((T=>{const[[v,k]]=Object.entries(T);b[v]!=null&&(128&_||1&k)&&b[v].call(b,c,r,l)}))}return}const p=o.find((([_])=>_===u)),f=p&&4&p[1][0],S=f&&c===null&&this[u]===void 0;f&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(i,u);S||c==this[u]||y.get&&!y.set||(this[u]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...o.filter((([l,r])=>31&r[0])).map((([l,r])=>{var c;const h=r[1]||l;return a.set(h,l),512&r[0]&&((c=t._)==null||c.push([l,h])),h}))]))}}return e},I=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=Ke(e.R),s.H=e.H,s.P=e.P,s._=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=l;o.__stencil__getHostRef=()=>r,512&a.i&&Qt(o,l)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!M(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&x.i)){const a=M(o);if(!a)return;const l=a.o;if(1&a.i)a?.D||a?.W&&a.W.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!C.document)return;const c=r["s-cr"]=C.document.createComment("");c["s-cn"]=!0,R(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){dt(a,a.C=r);break}}l.t&&Object.entries(l.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const h=o[r];delete o[r],o[r]=h}})),(async(r,c,h)=>{let u;try{if(!(32&c.i)&&(c.i|=32,u=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),u&&u.style)){let f;typeof u.style=="string"&&(f=u.style);const S=Ye(h);Z.has(S)||((y,_,b)=>{let g=Z.get(y);de&&b?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,Z.set(y,g)})(S,f,!!(1&h.i))}const m=c.C,p=()=>ae(c,!0);m&&m["s-rc"]?m["s-rc"].push(p):p()}catch(m){B(m,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,a,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{1&x.i||M(o),j.has(o)&&j.delete(o),o.shadowRoot&&j.has(o.shadowRoot)&&j.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Kt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),us(e,s)}catch(n){return B(n),e}},Ce=(e,t)=>t,hs=e=>x.L=e,fs=e=>Object.assign(x,e),mt=new WeakMap;function ms(e,t){let s=mt.get(t);s||(s={i:0,o:{i:0,p:t.tagName},$hostElement$:t},mt.set(t,s)),ct(s,e)}function Wn(e){return e}function pt(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=pt(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function L(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=pt(e))&&(n&&(n+=" "),n+=t);return n}const ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>L("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>L("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},s,n)},Symbol.toStringTag,{value:"Module"})),bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>L("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"})),_s=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:s,destructive:n,loading:i},o,a)=>L("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":s==="full","gids-button--destructive":n,"gids-button--icon-only":o,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),gt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},vs=/\w/,ys=e=>e.replace(vs,t=>t.toLocaleUpperCase()),bt=(e,t)=>typeof e=="function"?e(t):t?ys(e):e,Ss=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):gt(e);if(t==="required")return bt(n&&n.length>0?n:"(required)",o);if(t==="optional")return bt(s&&s.length>0?s:"(optional)",o)},isSentence:gt},Symbol.toStringTag,{value:"Module"})),re=64,_t=10,vt=re/2-_t/2,ws=re/2,xe=2*Math.PI*vt,Cs=`0 0 ${re} ${re}`,xs=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(xe*i/100).toFixed(2),a=(xe-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:ws,circumference:xe,radius:vt,thickness:_t,viewBox:Cs},Symbol.toStringTag,{value:"Module"})),yt=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),ke=/[A-Z]/,Te=/[a-z]/,Ee=/[0-9]/,Ne=/[^A-Za-z0-9]/,ks=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const s=t>0?e/t*100:0;return s<=20?"is-weak":s<=40?"is-medium":s<=60?"is-good-enough":s<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:s=0})=>{if(!e||e==="")return 0;let n=0;return t.includes("1-uppercase")&&ke.test(e)&&n++,t.includes("1-lowercase")&&Te.test(e)&&n++,t.includes("1-digit")&&Ee.test(e)&&n++,t.includes("1-special-character")&&Ne.test(e)&&n++,t.includes("include-min-length")&&s&&s>0&&e.length>=s&&n++,n},include1DigitReg:Ee,include1LowercaseLetterReg:Te,include1SpecialCharReg:Ne,include1UppercaseLetterReg:ke},Symbol.toStringTag,{value:"Module"})),X=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,$e=e=>{const t=[];return e&&e.length>0&&e.map(s=>{s?.requirementRule&&t.push(s.requirementRule)}),t},Ts=({rule:e,textMinLength:t=0,text:s})=>{if(!s||s===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ke.test(s);case"1-lowercase":return Te.test(s);case"1-digit":return Ee.test(s);case"1-special-character":return Ne.test(s);case"include-min-length":return X({requirementRule:"include-min-length",textMinLength:t})===!0&&s.length>=t;default:return!1}},Re=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return X({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:$e(t),defaultRequirementsMeterRules:t}},Es=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Ts,getDefaultRulesAndRequirementsForMeters:Re,getMeterRulesFromRequirements:$e,minLengthRuleCanBeApplied:X},Symbol.toStringTag,{value:"Module"})),Ns=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),$s=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),Rs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},s)=>L("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},s)},Symbol.toStringTag,{value:"Module"})),Ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>L("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Os}=yt,Ms=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Os(e)},Symbol.toStringTag,{value:"Module"})),qs=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>L("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>L("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>L("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:As}=$s,js=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":As(e)},Symbol.toStringTag,{value:"Module"})),Fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>L("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"})),St=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"}},wt=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"}},Gs=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:s})=>s.includes(t)?wt(e):St(e),getComponentEntryClasses:St,getComponentExitClasses:wt,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"})),Vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>L("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"})),Le=Symbol("defaultPath"),Ct=Symbol("pathSet"),Oe="gids-asset-paths-set";class Bs extends EventTarget{#t=new Map;constructor(){super()}#e(t,s){this.#t.set(t,s)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(Oe))};haveAssetPathsBeenSet(){return this.#s(Ct)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Le,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(Le,s)}this.#e(Ct,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(Le);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Oe,t,{once:!0}),()=>{this.removeEventListener(Oe,t)}}}const Me=Symbol.for("GIDS"),zs=()=>(globalThis[Me]===void 0&&(globalThis[Me]={assetPaths:{}}),globalThis[Me]),Ds=e=>{const t=zs().assetPaths;return t[e]===void 0&&(t[e]=new Bs),t[e]};function le(){return Ds("@ganpatiinfo/gids-web-shared")}function Hs(){return le().haveAssetPathsBeenSet()}function Qs(e,t){le().setAssetPaths(e,t)}function xt(e){return le().getAssetFilePath(e)}function Ws(e){return le().onAssetPathsSet(e)}let Us=0;const qe=(e,t="gids")=>e||`${t}-${Us++}`,Ys=e=>e.type==="hidden",Xs=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Ys(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},kt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Tt={"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"]},Et=new Map;for(const e in Tt)for(const t of Tt[e])Et.set(t,e);function Ks(e){return Et.get(e)}function Nt(e,t="regular",s){const n=Ks(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Zs}=bs,A=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...l})=>{const r=qe(o);let c=a;return c===void 0&&Hs()&&(c=Nt(e,s,xt)),d("svg",{ref:h=>{c===void 0&&Ws((()=>{(function(u,m,p){if(!u)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Nt(m,p,xt)),u.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:Zs({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&d("title",{id:r},n||e),c!==void 0?d("use",{href:c}):null)},D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let $t=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Pe=null;const Ie=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ae()})):void 0,Ae=()=>{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 n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const l=n.cssRules.item(a);if(l?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(l?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(l)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ie!==void 0&&t!==Pe&&(Pe&&Ie.disconnect(),t instanceof Element&&Ie.observe(t,{childList:!0,characterData:!0,subtree:!0}),Pe=t),D.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},G=()=>($t||($t=Ae()),D),{getGidsFieldClassNames:Js}=Ls,Rt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return d(ve,{key:"fed52ee2bacf334f4ec630fdaea5285d8aee56b3"},d("div",{key:"fe65a5714ae0e8369a2e6d91f5ccbe37ce1b04b4",class:Js()},d("div",{key:"37d656971e39e9c26085b54fd253f9758e6110fa",class:"gids-field__header",hidden:!this._hasLabelContent()},d("slot",{key:"eda62c8170fb5caf2e69f66bae079d1646a52ff8",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),d("div",{key:"28677c5ebd0e8bfb7f9f0c43634c9a70b84f4cd0",class:"gids-field__count","aria-live":"polite"},this.count)),d("div",{key:"0a816504a863304e13be74c64429b74700fc3590",class:"gids-field__control"},d("slot",{key:"1081771bfb182da6b0527303132555458de3ff2e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),d("p",{key:"632636f8c4d819b6c32658a7ae72ab9308973fda",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?d("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?d("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),d(A,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Rt))}))}je();const en=Rt,Lt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return d(A,{key:"b3a3cfcc04ab9526dd924d24df2ad992a2018ffc",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%)}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function tn(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Lt))}))}tn();const sn=Lt,{getGidsSpinnerControlClassNames:nn}=gs,{calculateStrokeDasharray:on,thickness:Ot,radius:Mt,centerPosition:ce,viewBox:an}=xs,qt=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:on(s,n||0),strokeDashoffset:"0"}),d("svg",{class:nn({size:e,indeterminate:t,value:s}),viewBox:an,...i},d("circle",{class:"gids-spinner-control__track",cx:ce,cy:ce,r:Mt,"stroke-width":Ot}),d("circle",{style:o,class:"gids-spinner-control__progress",cx:ce,cy:ce,r:Mt,"stroke-width":Ot}))},Pt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const s=t.target;s===this.#t||this._isWithinInteractiveElement(s)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Xs(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return d(Ce,{key:"9d1ed3749495c830b3940d4da09056620ccaef1d"},d("slot",{key:"ae4b6e25b50e1b2fc04ff7eb1b2695437b25b974",name:"leadingIcon"}),this.leadingLabel&&d("span",{key:"408038e8921dc443f14b5c57541d8ca74205e193",class:"gids-input__label"},this.leadingLabel),d("slot",{key:"033b3c940545c99f3aa356e08267c77c25c0f89c",name:"leadingAccessory"}),d("input",{key:"d302436fe388ce84e775ee73c83723cd4bfb46b3",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),d("slot",{key:"85d41d8a06da0c88a6defe65eae2d6f1e69c3abd",name:"trailingAccessory"}),this.trailingLabel&&d("span",{key:"1fec370bdb270031d6e3cdd9bed84871116be21f",class:"gids-input__label"},this.trailingLabel),d("slot",{key:"65800ff524221d70b659901d440c5459e64975a8",name:"trailingIcon"}),this.status==="incomplete"&&d(A,{key:"2bec2513415dad3294abc23ebcdc0493fa44399a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&d(A,{key:"2e21e9cb5ccfad300400c97dba89642395f84b04",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&d(qt,{key:"5fb23cf0b1e280cf7acd8ccd47c1a8d9611a1f19",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Fe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Pt))}))}Fe();const rn=Pt,Ge=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,It=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(s=>{const n=(()=>{const i=document.querySelector("gids-overlay-provider");if(!i||!i.shadowRoot)return 1;const o=i.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),a=o[o.length-1];if(!a)return 1;const l=a.offsetHeight,r=getComputedStyle(a).lineHeight,c=r.endsWith("px")?parseFloat(r):0;return Math.ceil(c?l/c:1)})();return n===2?s==="snackbar"?5e3:8e3:n>=3?s==="snackbar"?7e3:1e4:s==="snackbar"?3e3:6e3})(e),At=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Ge(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function ln(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,At))}))}ln();const cn=At,{getGidsButtonClassNames:dn}=_s,K=({appearance:e,size:t,destructive:s,loading:n,width:i,leadingIcon:o,trailingIcon:a,as:l,disabled:r,class:c,forceIconOnly:h=!1,...u},m)=>{const p=l||"button",f=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in u||(u.type="button"),d(p,{class:dn({appearance:e,size:t,destructive:s,loading:n,width:i},h||m.length===0&&kt(o)&&!kt(a),c),disabled:p==="button"?r:void 0,...u},d("span",{class:"gids-button__content"},o,m),n&&d(qt,{size:f,indeterminate:!0}),a)},{getGidsSnackbarContainerClassNames:un,getSnackbarContainerIconNames:hn}=Fs,fn=({appearance:e="default",children:t,button:s,class:n,...i})=>{const o=hn(e);return d("div",{...i,class:un({appearance:e},n)},d("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?d(A,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?d("p",null,t):t),s)},{getGidsNotificationContainerClassNames:mn,getNotificationContainerIconNames:pn}=Vs,gn=({notificationTitle:e,children:t,button:s,appearance:n="default",pronunciation:i="standard",onCloseNotificationClick:o,class:a,...l})=>{const r=pn(n);return d("div",{class:mn({appearance:n},a),...l},n!=="default"&&r?d("div",{class:"gids-notification-container__leading-icon-wrapper"},d(A,{size:"md",name:r,alt:"",appearance:"filled"})):null,d("div",{class:"gids-notification-container__content-wrapper"},d("div",{class:"gids-notification-container__top-content"},d("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?d("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?d("p",null,t):t:null),i==="standard"?d("div",{class:"gids-notification-container__cross-btn-wrapper"},d(K,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:d(A,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),s?d("div",{class:"gids-notification-container__bottom-content"},s):null))},{getComponentClasses:bn,getComponentStackClasses:_n}=Gs,jt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,s)=>{const{id:n,message:i,appearance:o,buttonLabel:a,onButtonClick:l}=t;return console.log("_renderSnackbar_called"),d(fn,{key:n,class:s,children:i,appearance:o,button:a!=null&&a!==""?d(K,{appearance:"subtle",onClick:l},a):void 0})},this._renderNotification=(t,s)=>{const{id:n,notificationTitle:i,message:o,pronunciation:a,appearance:l,buttonLabel:r,onButtonClick:c,timerInMs:h}=t;return d(gn,{key:n,class:s,notificationTitle:i,children:o,pronunciation:a,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,h||0,!0),button:r!=null&&r!==""?d(K,{appearance:"default",size:"sm",onClick:c},r):void 0})},this._renderComponent=t=>{const{componentName:s,position:n="bottom-center",id:i}=t,o=bn({position:n,id:i,exitingComponents:this._exitingComponents});return console.log("_renderComponent_called",s),s==null||s==="snackbar"?this._renderSnackbar(t,o):s==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Ge(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const s=setTimeout((()=>(clearTimeout(s),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:s,buttonLabel:n,onButtonClick:i,position:o,componentName:a,...l}=e,r={id:""+(Date.now()+Math.random()),message:s,appearance:t,buttonLabel:n,onButtonClick:i,position:o,componentName:a,...l};console.log("component_1",r),this._componentQueue=[...this._componentQueue,r],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:s,pronunciation:n,message:i,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...c}=e,h={id:""+(Date.now()+Math.random()),notificationTitle:s,message:i,pronunciation:n,appearance:t,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...c};this._componentQueue=[...this._componentQueue,h],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,s){return s||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==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((s=>requestAnimationFrame((()=>s()))));const t=It({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 s=It({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,s,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return d(Ce,{key:"41dc60790fe64bf9e0daa2da5fd6c39f30d8ceac"},d("slot",{key:"a480a4344336cbbf75ac3bc771c9416d27d9d742"}),this._isRoot()?d("div",{class:_n({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 vn(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jt))}))}vn();const yn=jt,{getIndicatorText:Sn}=Ss,{getGidsLabelClassNames:wn}=ps,Ft=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...c},h)=>{const u=Sn({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:r});return d("div",{class:wn({disabled:e},l),...c},d("label",{htmlFor:o,id:a},h,u&&d("span",{class:"gids-label__field-requirement"},u)),i)},{getGidsDismissButtonClassNames:Cn}=Rs,Gt=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:o,...a})=>d("button",{class:Cn({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":o,...a},d(A,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:xn}=qs,{getStrengthMeterScore:kn,getColorModifierByScore:Tn}=ks,En=({text:e,textMinLength:t,meterRules:s=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const i=(o,a,l)=>d("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?a:""].filter(Boolean).join(" ")});return s.length>0?d("div",{class:xn(n)},(()=>{const o=s.length,a=kn({text:e,textMinLength:t,meterRules:s}),l=Tn({textScore:a,maxScore:o});return Array.from({length:o},((r,c)=>{const h=c+1,u=h<=a;return s[h]==="include-min-length"?X({requirementRule:"include-min-length",textMinLength:t})?i(h,l,u):null:i(h,l,u)}))})()):null},{getGidsRequirementsMeterLabelClassNames:Nn}=Ps,{getRequirementsMeterLabelLeadingIcon:$n}=Ns,Rn=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,o=$n(s);return d("div",{class:Nn({status:s},i)},n&&s&&o?d(A,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?d("span",null,t):null)},{checkRequirementRuleSatisfied:Ln}=Es,{getGidsRequirementsMeterClassNames:On}=Is,Mn=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(o,a)=>d(Rn,{status:a?"success":"error",label:o.requirementText});return d("div",{class:On(n)},(console.log("requirements",e),e.map((o=>{if(o?.requirementText&&o?.requirementRule){const a=Ln({rule:o.requirementRule,textMinLength:s,text:t});return o.requirementRule==="include-min-length"?X({requirementRule:o.requirementRule,textMinLength:s})?i(o,a):null:i(o,a)}return null}))))},{inputToGidsFieldStatusForPassword:qn}=js,Vt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=ee(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=ee(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=qe(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?$e(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{ht(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=Re(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=Re(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0,i=this.showRevealPasswordButton,o={...t},a=o?.placeholder&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,r=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return d(Ce,{key:"548bcf66b7ee93974d790e7b3a44ba764ace509f"},d("gids-field",{key:"4e52e64a5ad558317cb35b72121be744befeab1b",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:qn(this.status)},d(Ft,{key:"2b797611f9f104f9a99a9e0d4bdda31dee0839b4",slot:"label",disabled:this.disabled,info:d("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),d("gids-input",{key:"725f94aff51966525b640f1fe1e010c700c1ddc8",ref:h=>this.#e=h,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...o,placeholder:a,type:l?"text":"password",id:s,maxLength:this.maxLength}},d("slot",{key:"ef742cdd2cb00887f74589ad44304cb401194688",name:"leadingIcon"}),d("slot",{key:"6f38de10ddb3acd5ec39b72bea3e3b4b08aabc9e",name:"leadingAccessory"}),d("div",{key:"c607f812340a2a5e22323682d3a739b31d8fb66c",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&d(Gt,{key:"a12067b7e8b1cd30edd61fae71c980ad1c5f269a",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&d(K,{key:"0b2a76bd61aba94d2fa17c2a97f87b28f99b2a0e",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),d("div",{key:"9a6624d2963148db0c20713a565be4dcf6815f7b",class:"gids-password-field__meters-container"},d(En,{key:"f5edecbaf4438d0ca4cb457034fe8f59cd665a1d",meterRules:r,text:this.value,textMinLength:c}),d(Mn,{key:"04d03abd215fbdcc966ccd9321942d7a25717fa1",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function Pn(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Vt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Pn();const In=Vt,Bt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Ge(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function An(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Bt))}))}An();const jn=Bt,{formatCharCount:Fn}=yt,{inputToGidsFieldStatus:Gn}=Ms,zt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=ee(this,"gidsTextFieldClear"),this.#t=qe(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{ht(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0;return d("gids-field",{key:"cc94d948b69f9a9cfeee2b9df2a06d8985448963",disabled:this.disabled,count:Fn(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Gn(this.status)},d(Ft,{key:"16ed76aa12c2a256cd7ca7d2862b552e444f57c7",slot:"label",disabled:this.disabled,info:d("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),d("gids-input",{key:"2b5ac45e1c828db13394d003cec5acfef2d02f82",ref:i=>this.#e=i,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:s,maxLength:this.maxLength}},d("slot",{key:"e36107774a78bf7162d88784474b9dc77aa4fffa",name:"leadingIcon"}),d("slot",{key:"0c8d888dc3f46d2d49be0e55e1833604e703724c",name:"leadingAccessory"}),n&&d(Gt,{key:"06804811547b79a273271a467cc3020e49b66ea6",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),d("slot",{key:"d05029b11a4aa635123da84611e671edbfb925c6",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function Vn(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,zt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Vn();const Bn=zt,Dt=I(class extends q{get selected(){return this.#t??this.defaultSelected}set selected(e){this.#t=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=ee(this,"select"),this._toggle=this._toggle.bind(this)}#t;connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return d(ve,{key:"0f65cdb9d34f2cb5db90104964b7d76f63b7546c"},d("style",{key:"410fa1ed0c7f2ee1fa431e639adae9b09643635b"},`:host {
|
|
2
6
|
display: ${this.width==="full"?"block":"inline-block"}
|
|
3
|
-
}`)
|
|
7
|
+
}`),d(K,{key:"c60640620902451f4c635b802d1cd298f218772f",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:d("slot",{name:"leadingIcon"}),trailingIcon:d("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},d("slot",{key:"7904b661a3eb9be25e25a0a9668580462ebfc393"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function zn(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Dt))}))}zn();const Dn=Dt;function Ve(e,t){Qs(e,t)}const Hn=e=>{Ve(e)},Qn=e=>{Ve(e)};w.GidsField=en,w.GidsIcon=sn,w.GidsInput=rn,w.GidsNotification=cn,w.GidsOverlayProvider=yn,w.GidsPasswordField=In,w.GidsSnackbar=jn,w.GidsTextField=Bn,w.GidsToggleButton=Dn,w.getAssetPath=Yt,w.getConstructedGidsStylesheet=G,w.refreshConstructedGidsStylesheet=Ae,w.render=ms,w.setAssetPath=Xt,w.setGidsAssetFilePaths=Hn,w.setGidsAssetPaths=Ve,w.setGidsDefaultAssetDirPath=Qn,w.setNonce=hs,w.setPlatformOptions=fs,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|