@ganpatiinfo/gids-core-web 4.0.0 → 5.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 +130 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-scrim.d.ts +11 -0
- package/dist/gids-scrim.js +1 -0
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/{p-RqpjvEHh.js → p-BVh4zbX4.js} +1 -1
- package/dist/{p-D4xtPT_U.js → p-BplPYg8z.js} +1 -1
- package/dist/types/components/html/GidsSegmentedControl/GidsSegmentedControl.d.ts +1 -1
- package/dist/types/components/html/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +1 -1
- package/dist/types/components/html/GidsTopNavigation/GidsTopNavigation.d.ts +1 -1
- package/dist/types/components/html/_GidsSideMenuItem/GidsSideMenuItem.d.ts +7 -0
- package/dist/types/components/webComponents/GidsScrim/GidsScrim.d.ts +7 -0
- package/dist/types/components.d.ts +18 -0
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +2 -2
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +25 -25
- package/dist-bundled/es/gids-scrim.js +35 -0
- package/dist-bundled/es/gids-text-field.js +11 -11
- package/dist-bundled/es/gids-toggle-button.js +5 -5
- package/dist-bundled/es/{p-RqpjvEHh-BGGYsIBf.js → p-BVh4zbX4-C4UJ8LPX.js} +6 -6
- package/dist-bundled/es/{p-D4xtPT_U-04HkZiXU.js → p-BplPYg8z-B8uAAfo4.js} +4 -4
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +5 -0
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
- package/package.json +12 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const b=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&b.push(p)}return b})(S.childNodes)).forEach((y=>{h===B(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==j&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(l=J(null,i,n),l&&(s[n].S=l,$(a,l,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,l=t.O,a=t.h;let r;a==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,b=0,m=0,p=0,w=u.length-1,v=u[0],C=u[w],L=f.length-1,N=f[0],k=f[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(C==null)C=u[--w];else if(N==null)N=f[++b];else if(k==null)k=f[--L];else if(Z(v,N,g))V(v,N,g),v=u[++y],N=f[++b];else if(Z(C,k,g))V(C,k,g),C=u[--w],k=f[--L];else if(Z(v,k,g))v.O!=="slot"&&k.O!=="slot"||X(v.S.parentNode,!1),V(v,k,g),$(mt,v.S,C.S.nextSibling),v=u[++y],k=f[--L];else if(Z(C,N,g))v.O!=="slot"&&k.O!=="slot"||X(C.S.parentNode,!1),V(C,N,g),$(mt,C.S,v.S),C=u[--w],N=f[++b];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===N.$){m=p;break}m>=0?(S=u[m],S.O!==N.O?h=J(u&&u[b],d,m):(V(S,N,g),u[m]=void 0,h=S.S),N=f[++b]):(h=J(u&&u[b],d,b),N=f[++b]),h&&$(q(v.S).parentNode,h,q(v.S))}y>w?De(c,f[L+1]==null?null:f[L+1].S,d,f,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&l==="svg"&&(E=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,l)){let a=A.find((r=>r.k===t));K=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((r=>{ke(r.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,l){var a;if(!(l=l||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=B(o)||"";return{slotNode:de(ce(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Lt=(e,t,i=!1)=>{var s,n,o,l,a;const r=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const f=(d=t)&&d.O===Ae?t:_(null,null,t);if(j=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=r[g]}))),i&&f.v)for(const g of Object.keys(f.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=r[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,D=!(!(1&c.i)||128&c.i),ue=r["s-cr"],K=!1,V(u,f,i),T.i|=1,Y){He(f.S);for(const g of A){const h=g.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,i)}}for(const g of A){const h=g.k,S=g.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(o=m["s-nr"])!=null?o:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){b=p;break}}m=m.previousSibling}}if((!b&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if($(y,h,b,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(K&&$e(f.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&r["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==j&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}ue=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.C);const i=()=>$t(e,t);if(!t)return vt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Ot(e,s,t)))},Ue=(e,t)=>kt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(l=>{const a=l.o,r=l.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Oe(f),b=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,b)if(typeof b=="string"){let m,p=I.get(d=d.head||d);if(p||I.set(d,p=new Set),!p.has(y)){m=x.document.createElement("style"),m.textContent=b;const w=(g=T.L)!=null?g:(function(){var v,C,L;return(L=(C=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),C=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===p.CSSStyleSheet)w=b;else{w=new p.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,n,i),o&&(o.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>It(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},At=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,i=t,s=e.C;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),H(i,"componentDidLoad",void 0,t),e.F(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Mt=e=>{var t;{const i=O(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Pt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=O(e);if(!n)return;const o=e,l=n.l.get(t),a=n.i,r=o;i=je(i,s.t[t][0]);const c=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!c){if(n.l.set(t,i),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(r?r[f](i,l,t):n.T.push((()=>{n.D[f](i,l,t)})))}catch(f){F(f,o)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(i,l,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Ft=(e,t)=>{var i,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Me(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((i=t.t)!=null?i:{});o.map((([l,[a]])=>{if(31&a||32&a){const{get:r,set:c}=P(n,l)||{};r&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return r?r.apply(this):(u=l,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(u){const d=O(this);if(d){if(c)return(32&a?this[l]:d.$hostElement$[l])===void 0&&d.l.get(l)&&(u=d.l.get(l)),c.apply(this,[je(u,a)]),void Ke(this,l,u=32&a?this[l]:d.$hostElement$[l],t);Ke(this,l,u,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,r,c){T.jmp((()=>{var u;const d=l.get(a),f=O(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const b=f?.i;if(f&&b&&!(8&b)&&c!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,C]]=Object.entries(w);m[v]!=null&&(128&b||1&C)&&m[v].call(m,c,r,a)}))}return}const g=o.find((([b])=>b===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...o.filter((([a,r])=>31&r[0])).map((([a,r])=>{var c;const u=r[1]||a;return l.set(u,a),512&r[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.R=Me(e.R),i.H=e.H,i.P=e.P,i._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,l)=>{const a={i:0,$hostElement$:o,o:l,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=a;o.__stencil__getHostRef=()=>r,512&l.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const l=O(o);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!x.document)return;const c=r["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){We(l,l.C=r);break}}a.t&&Object.entries(a.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Oe(u);W.has(S)||((y,b,m)=>{let p=W.get(y);ne&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=b:p.replaceSync(b)):p=b,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>Q(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){F(f,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||O(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ft(e,i)}catch(s){return F(s),e}},Vt=(e,t)=>t;function ws(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Rt=/\w/,Gt=e=>e.replace(Rt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Bt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,Dt=ee/2,_e=2*Math.PI*Ze,qt=`0 0 ${ee} ${ee}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),l=(_e-parseFloat(o)).toFixed(2);return`${o} ${l}`},centerPosition:Dt,circumference:_e,radius:Ze,thickness:Xe,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Qe=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"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("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"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Jt}=Qe,Xt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Jt(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),tt=Symbol("pathSet"),ve="gids-asset-paths-set";class Zt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),Qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),es=e=>{const t=Qt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return es("@ganpatiinfo/gids-web-shared")}function ts(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function ss(e){return Se().onAssetPathsSet(e)}let is=0;const it=(e,t="gids")=>e||`${t}-${is++}`,ns=e=>e.type==="hidden",os=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&&!ns(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let l=0;l<n;l++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),rt={"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"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function ls(e){return at.get(e)}function dt(e,t="regular",i){const s=ls(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Ut,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:l,...a})=>{const r=it(o);let c=l;return c===void 0&&ts()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&ss((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",dt(f,g,st)),d.appendChild(h)})(u,e,i)}))},width:"16",height:"16",class:rs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&_("title",{id:r},s||e),c!==void 0?_("use",{href:c}):null)},{getIndicatorText:as}=Bt,{getGidsLabelClassNames:ds}=zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:l,class:a,isLabelSentence:r,...c},u)=>{const d=as({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:r});return _("div",{class:ds({disabled:e},a),...c},_("label",{htmlFor:o,id:l},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},{getGidsDismissButtonClassNames:us}=Kt,hs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...l})=>_("button",{class:us({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...l},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:fs}=Yt,ps=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"fed52ee2bacf334f4ec630fdaea5285d8aee56b3"},_("div",{key:"fe65a5714ae0e8369a2e6d91f5ccbe37ce1b04b4",class:fs()},_("div",{key:"37d656971e39e9c26085b54fd253f9758e6110fa",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"eda62c8170fb5caf2e69f66bae079d1646a52ff8",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"28677c5ebd0e8bfb7f9f0c43634c9a70b84f4cd0",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"0a816504a863304e13be74c64429b74700fc3590",class:"gids-field__control"},_("slot",{key:"1081771bfb182da6b0527303132555458de3ff2e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"632636f8c4d819b6c32658a7ae72ab9308973fda",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}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 ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ps))}))}ct();const{getGidsSpinnerControlClassNames:gs}=Wt,{calculateStrokeDasharray:ms,thickness:ut,radius:ht,centerPosition:se,viewBox:_s}=Ht,bs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:ms(i,s||0),strokeDashoffset:"0"}),_("svg",{class:gs({size:e,indeterminate:t,value:i}),viewBox:_s,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},vs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(os(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 _(Vt,{key:"9d1ed3749495c830b3940d4da09056620ccaef1d"},_("slot",{key:"ae4b6e25b50e1b2fc04ff7eb1b2695437b25b974",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"408038e8921dc443f14b5c57541d8ca74205e193",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"033b3c940545c99f3aa356e08267c77c25c0f89c",name:"leadingAccessory"}),_("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}),_("slot",{key:"85d41d8a06da0c88a6defe65eae2d6f1e69c3abd",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"1fec370bdb270031d6e3cdd9bed84871116be21f",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"65800ff524221d70b659901d440c5459e64975a8",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"2bec2513415dad3294abc23ebcdc0493fa44399a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"2e21e9cb5ccfad300400c97dba89642395f84b04",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(bs,{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 ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}ft();const{formatCharCount:ys}=Qe,{inputToGidsFieldStatus:Ss}=Xt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=wt(this,"gidsTextFieldClear"),this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Mt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"cc94d948b69f9a9cfeee2b9df2a06d8985448963",disabled:this.disabled,count:ys(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ss(this.status)},_(cs,{key:"16ed76aa12c2a256cd7ca7d2862b552e444f57c7",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"2b5ac45e1c828db13394d003cec5acfef2d02f82",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"e36107774a78bf7162d88784474b9dc77aa4fffa",name:"leadingIcon"}),_("slot",{key:"0c8d888dc3f46d2d49be0e55e1833604e703724c",name:"leadingAccessory"}),s&&_(hs,{key:"06804811547b79a273271a467cc3020e49b66ea6",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("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 gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const xs=pt,Cs=gt;M.GidsTextField=xs,M.defineCustomElement=Cs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const b=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&b.push(p)}return b})(S.childNodes)).forEach((y=>{h===B(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==j&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(l=J(null,i,n),l&&(s[n].S=l,$(a,l,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,l=t.O,a=t.h;let r;a==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,b=0,m=0,p=0,w=u.length-1,v=u[0],C=u[w],L=f.length-1,N=f[0],k=f[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(C==null)C=u[--w];else if(N==null)N=f[++b];else if(k==null)k=f[--L];else if(Z(v,N,g))V(v,N,g),v=u[++y],N=f[++b];else if(Z(C,k,g))V(C,k,g),C=u[--w],k=f[--L];else if(Z(v,k,g))v.O!=="slot"&&k.O!=="slot"||X(v.S.parentNode,!1),V(v,k,g),$(mt,v.S,C.S.nextSibling),v=u[++y],k=f[--L];else if(Z(C,N,g))v.O!=="slot"&&k.O!=="slot"||X(C.S.parentNode,!1),V(C,N,g),$(mt,C.S,v.S),C=u[--w],N=f[++b];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===N.$){m=p;break}m>=0?(S=u[m],S.O!==N.O?h=J(u&&u[b],d,m):(V(S,N,g),u[m]=void 0,h=S.S),N=f[++b]):(h=J(u&&u[b],d,b),N=f[++b]),h&&$(q(v.S).parentNode,h,q(v.S))}y>w?De(c,f[L+1]==null?null:f[L+1].S,d,f,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&l==="svg"&&(E=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,l)){let a=A.find((r=>r.k===t));K=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((r=>{ke(r.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,l){var a;if(!(l=l||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=B(o)||"";return{slotNode:de(ce(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Lt=(e,t,i=!1)=>{var s,n,o,l,a;const r=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const f=(d=t)&&d.O===Ae?t:_(null,null,t);if(j=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=r[g]}))),i&&f.v)for(const g of Object.keys(f.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=r[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,D=!(!(1&c.i)||128&c.i),ue=r["s-cr"],K=!1,V(u,f,i),T.i|=1,Y){He(f.S);for(const g of A){const h=g.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,i)}}for(const g of A){const h=g.k,S=g.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(o=m["s-nr"])!=null?o:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){b=p;break}}m=m.previousSibling}}if((!b&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if($(y,h,b,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(K&&$e(f.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&r["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==j&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}ue=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.C);const i=()=>$t(e,t);if(!t)return vt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Ot(e,s,t)))},Ue=(e,t)=>kt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(l=>{const a=l.o,r=l.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Oe(f),b=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,b)if(typeof b=="string"){let m,p=I.get(d=d.head||d);if(p||I.set(d,p=new Set),!p.has(y)){m=x.document.createElement("style"),m.textContent=b;const w=(g=T.L)!=null?g:(function(){var v,C,L;return(L=(C=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),C=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===p.CSSStyleSheet)w=b;else{w=new p.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,n,i),o&&(o.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>It(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},At=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,i=t,s=e.C;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),H(i,"componentDidLoad",void 0,t),e.F(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Mt=e=>{var t;{const i=O(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Pt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=O(e);if(!n)return;const o=e,l=n.l.get(t),a=n.i,r=o;i=je(i,s.t[t][0]);const c=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!c){if(n.l.set(t,i),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(r?r[f](i,l,t):n.T.push((()=>{n.D[f](i,l,t)})))}catch(f){F(f,o)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(i,l,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Ft=(e,t)=>{var i,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Me(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((i=t.t)!=null?i:{});o.map((([l,[a]])=>{if(31&a||32&a){const{get:r,set:c}=P(n,l)||{};r&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return r?r.apply(this):(u=l,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(u){const d=O(this);if(d){if(c)return(32&a?this[l]:d.$hostElement$[l])===void 0&&d.l.get(l)&&(u=d.l.get(l)),c.apply(this,[je(u,a)]),void Ke(this,l,u=32&a?this[l]:d.$hostElement$[l],t);Ke(this,l,u,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,r,c){T.jmp((()=>{var u;const d=l.get(a),f=O(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const b=f?.i;if(f&&b&&!(8&b)&&c!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,C]]=Object.entries(w);m[v]!=null&&(128&b||1&C)&&m[v].call(m,c,r,a)}))}return}const g=o.find((([b])=>b===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...o.filter((([a,r])=>31&r[0])).map((([a,r])=>{var c;const u=r[1]||a;return l.set(u,a),512&r[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.R=Me(e.R),i.H=e.H,i.P=e.P,i._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,l)=>{const a={i:0,$hostElement$:o,o:l,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=a;o.__stencil__getHostRef=()=>r,512&l.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const l=O(o);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!x.document)return;const c=r["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){We(l,l.C=r);break}}a.t&&Object.entries(a.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Oe(u);W.has(S)||((y,b,m)=>{let p=W.get(y);ne&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=b:p.replaceSync(b)):p=b,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>Q(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){F(f,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||O(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ft(e,i)}catch(s){return F(s),e}},Vt=(e,t)=>t;function ws(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Rt=/\w/,Gt=e=>e.replace(Rt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Bt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,Dt=ee/2,_e=2*Math.PI*Ze,qt=`0 0 ${ee} ${ee}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),l=(_e-parseFloat(o)).toFixed(2);return`${o} ${l}`},centerPosition:Dt,circumference:_e,radius:Ze,thickness:Xe,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Qe=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"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("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"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Jt}=Qe,Xt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Jt(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),tt=Symbol("pathSet"),ve="gids-asset-paths-set";class Zt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),Qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),es=e=>{const t=Qt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return es("@ganpatiinfo/gids-web-shared")}function ts(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function ss(e){return Se().onAssetPathsSet(e)}let is=0;const it=(e,t="gids")=>e||`${t}-${is++}`,ns=e=>e.type==="hidden",os=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&&!ns(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let l=0;l<n;l++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),rt={"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"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function ls(e){return at.get(e)}function dt(e,t="regular",i){const s=ls(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Ut,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:l,...a})=>{const r=it(o);let c=l;return c===void 0&&ts()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&ss((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",dt(f,g,st)),d.appendChild(h)})(u,e,i)}))},width:"16",height:"16",class:rs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&_("title",{id:r},s||e),c!==void 0?_("use",{href:c}):null)},{getIndicatorText:as}=Bt,{getGidsLabelClassNames:ds}=zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:l,class:a,isLabelSentence:r,...c},u)=>{const d=as({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:r});return _("div",{class:ds({disabled:e},a),...c},_("label",{htmlFor:o,id:l},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},{getGidsDismissButtonClassNames:us}=Kt,hs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...l})=>_("button",{class:us({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...l},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:fs}=Yt,ps=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"4bd0ef4ac11ded5f563595485082650801fdbe1b"},_("div",{key:"3617e3301f53dcb21a9beb98b4a23d620e3dd39d",class:fs()},_("div",{key:"bb1f6710ee27c94346f7ee9459389d901b23d913",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"8fa03ca31936bc6082052b099ac29afea2ec3032",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"1b50c69005c2d0b89c47dc01c2dcbb343bdeecff",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"b8664a96496a6e7289fb14bdadbb59dcee9af3d1",class:"gids-field__control"},_("slot",{key:"bff757557406c0165be3569c4eb34adb1fe346ca",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"0638e493fc4ac98f6c10a8392c45ffde8b8340a4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}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 ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ps))}))}ct();const{getGidsSpinnerControlClassNames:gs}=Wt,{calculateStrokeDasharray:ms,thickness:ut,radius:ht,centerPosition:se,viewBox:_s}=Ht,bs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:ms(i,s||0),strokeDashoffset:"0"}),_("svg",{class:gs({size:e,indeterminate:t,value:i}),viewBox:_s,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},vs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(os(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 _(Vt,{key:"281c832656cace745109fdd8208fe24b90f2c126"},_("slot",{key:"5f8424a1d9bc196e3efee9d1e5d099bed15ddb4b",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"2ce161a38f74618d60f38028c646c80e361aeced",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"12383525faf774eef618705cf68338a4fc9c9e55",name:"leadingAccessory"}),_("input",{key:"19de1aa1ad2a47db2979dfcbbf9b8e49d045f5af",...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}),_("slot",{key:"3e0f6ae8c23b2536891ddd0adb7be1215d86ac66",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"9b2ac9fbf6c198dd0a4e1decf4631b2b46902587",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"d9848f786ce38136f1ad8c07d685215ede87f157",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"bc8bcc01f07bd345b448f4662a37b28d8029a94f",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"cafc44041a1d4eac859face7ec5eea2ced1ca3f5",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(bs,{key:"0daca638742b098d06da6cd9a7b9cfd6e9c90921",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 ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}ft();const{formatCharCount:ys}=Qe,{inputToGidsFieldStatus:Ss}=Xt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=wt(this,"gidsTextFieldClear"),this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Mt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"7aa5bbe489adc1310365d37aac41ca9772fa1d0f",disabled:this.disabled,count:ys(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ss(this.status)},_(cs,{key:"5a9bf6cfe25a0800b466a0aaccd21ac80aca59bb",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"53f0d81f5227ed7a872ec9acebb559d21c4adc6e",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"42a2856da9b6d31452fc3fb199eacb336bff3475",name:"leadingIcon"}),_("slot",{key:"3b5cbe26cc943ffeab09231a7d7df750f7b473f7",name:"leadingAccessory"}),s&&_(hs,{key:"51a7942f8e31430bf1d74abad31049e9ad11f92e",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"ae4eccacb0f60d70b57e5df949f7a0dbc9098654",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 gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const xs=pt,Cs=gt;M.GidsTextField=xs,M.defineCustomElement=Cs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(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 {
|
|
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:"629bf94de5dcf8979c4c52f749e6f1528506cb7f"},$("style",{key:"45b2ada2ba3e26b574f7c34675622db5352802d2"},`:host {
|
|
6
6
|
display: ${this.width==="full"?"block":"inline-block"}
|
|
7
|
-
}`),$(At,{key:"
|
|
7
|
+
}`),$(At,{key:"2f93e85e5dbf968c09c245e71a41a9b587ead04c",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:"599d014741a1d931f44976866e92837ed2184e5f"})))}_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"})}));
|