@ganpatiinfo/gids-core-web 8.1.0 → 8.2.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 +221 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-overflow-container.d.ts +11 -0
- package/dist/gids-overflow-container.js +1 -0
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/{p-BVh4zbX4.js → p-Bg3lw2Ae.js} +1 -1
- package/dist/{p-BplPYg8z.js → p-DjvDBWCb.js} +1 -1
- package/dist/types/components/html/GidsAccordionItem/GidsAccordionItem.d.ts +4 -0
- package/dist/types/components/html/GidsAccordionItemContent/GidsAccordionItemContent.d.ts +5 -0
- package/dist/types/components/html/GidsAccordionItemHeader/GidsAccordionItemHeader.d.ts +4 -0
- package/dist/types/components/html/GidsFeedbackBlock/GidsFeedbackBlock.d.ts +4 -0
- package/dist/types/components/html/GidsProgressBar/GidsProgressBar.d.ts +4 -0
- package/dist/types/components/webComponents/GidsOverflowContainer/GidsOverflowContainer.d.ts +10 -0
- package/dist/types/components.d.ts +26 -2
- package/dist-bundled/es/gids-field.js +2 -2
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-overflow-container.js +39 -0
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +21 -21
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-text-field.js +9 -9
- package/dist-bundled/es/gids-toggle-button.js +7 -7
- package/dist-bundled/es/{p-BVh4zbX4-C4UJ8LPX.js → p-Bg3lw2Ae-CkC8nUqv.js} +6 -6
- package/dist-bundled/es/{p-BplPYg8z-B8uAAfo4.js → p-DjvDBWCb-C9js0PPL.js} +9 -9
- 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-overflow-container.umd.js +5 -0
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
- package/package.json +13 -5
|
@@ -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 _=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&_.push(p)}return _})(S.childNodes)).forEach((y=>{h===G(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(P.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&&(L(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.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"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(L(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,L(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Ie(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,V=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,_=0,m=0,p=0,w=u.length-1,v=u[0],x=u[w],$=f.length-1,T=f[0],O=f[$];const Qe=d.O==="template"?c.content:c;for(;y<=w&&_<=$;)if(v==null)v=u[++y];else if(x==null)x=u[--w];else if(T==null)T=f[++_];else if(O==null)O=f[--$];else if(J(v,T,g))V(v,T,g),v=u[++y],T=f[++_];else if(J(x,O,g))V(x,O,g),x=u[--w],O=f[--$];else if(J(v,O,g))v.O!=="slot"&&O.O!=="slot"||Z(v.S.parentNode,!1),V(v,O,g),L(Qe,v.S,x.S.nextSibling),v=u[++y],O=f[--$];else if(J(x,T,g))v.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),V(x,T,g),L(Qe,x.S,v.S),x=u[--w],T=f[++_];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===T.$){m=p;break}m>=0?(S=u[m],S.O!==T.O?h=Y(u&&u[_],d,m):(V(S,T,g),u[m]=void 0,h=S.S),T=f[++_]):(h=Y(u&&u[_],d,_),T=f[++_]),h&&L(B(v.S).parentNode,h,B(v.S))}y>w?Me(c,f[$+1]==null?null:f[$+1].S,d,f,_,$):_>$&&Pe(u,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},k=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=k.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],k.push({N:i,k:t})),t["s-sr"]&&k.map((l=>{we(l.k,t["s-sn"])&&(a=k.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}i.nodeType===1&&Re(i)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ct=(e,t)=>{de.push((()=>e(t)))},L=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ht=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,u=e.M||q(null,null);var d;const f=(d=t)&&d.O===Ee?t:E(null,null,t);if(P=l.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=l[g]}))),o&&f.v)for(const g of Object.keys(f.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=l[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,V(u,f,o),C.i|=1,K){Re(f.S);for(const g of k){const h=g.k;if(!h["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=h,L(h.parentNode,h["s-ol"]=S,h,o)}}for(const g of k){const h=g.k,S=g.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(i=m["s-nr"])!=null?i: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"]){_=p;break}}m=m.previousSibling}}if((!_&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==_)&&h!==_){if(L(y,h,_,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=b.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,L(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&xe(f.S),C.i&=-2,k.length=0,!D&&!(1&c.i)&&l["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==P&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=b.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],L(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ie=void 0,ae.forEach((g=>g())),ae.length=0,de.forEach((g=>g())),de.length=0},Ve=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ve(e,e.C);const o=()=>ut(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ut=(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=Fe(n,(()=>z(s,"componentWillRender",void 0,o))),Fe(n,(()=>pt(e,s,t)))},Fe=(e,t)=>ft(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ft=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Ce(f),_=W.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,p=j.get(d=d.head||d);if(p||j.set(d,p=new Set),!p.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(g=C.L)!=null?g:(function(){var v,x,$;return($=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+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=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===p.CSSStyleSheet)w=_;else{w=new p.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),gt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>mt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ht(e,t,s)}catch(n){I(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,vt(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},_t=()=>{se((()=>rt(b,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){I(n,s)}},vt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=A(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(l?l[f](o,r,t):n.T.push((()=>{n.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},yt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Te(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[a]])=>{if(31&a||32&a){const{get:l,set:c}=R(n,r)||{};l&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return l?l.apply(this):(u=r,A(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(u){const d=A(this);if(d){if(c)return(32&a?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[$e(u,a)]),void He(this,r,u=32&a?this[r]:d.$hostElement$[r],t);He(this,r,u,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(a,l,c){C.jmp((()=>{var u;const d=r.get(a),f=A(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const _=f?.i;if(f&&_&&!(8&_)&&c!==l){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,x]]=Object.entries(w);m[v]!=null&&(128&_||1&x)&&m[v].call(m,c,l,a)}))}return}const g=i.find((([_])=>_===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:{}),...i.filter((([a,l])=>31&l[0])).map((([a,l])=>{var c;const u=l[1]||a;return r.set(u,a),512&l[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Te(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(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&Xe(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=A(i);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,L(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ve(r,r.C=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const u=i[l];delete i[l],i[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Ce(u);W.has(S)||((y,_,m)=>{let p=W.get(y);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=_:p.replaceSync(_)):p=_,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>ce(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){I(f,l),c.A&&(c.A(),c.A=void 0),c.F&&c.F(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&C.i||A(i),j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.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}),yt(e,o)}catch(s){return I(s),e}};function It(e){return e}function Ge(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=Ge(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function De(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>De("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"})),xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>De("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),Be=Symbol("pathSet"),ue="gids-asset-paths-set";class wt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(Be)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(Be,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Ct=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Et=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new wt),t[e]};function pe(){return Et("@ganpatiinfo/gids-web-shared")}function Nt(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function Tt(e){return pe().onAssetPathsSet(e)}let $t=0;const Lt=(e,t="gids")=>e||`${t}-${$t++}`,We={"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"]},qe=new Map;for(const e in We)for(const t of We[e])qe.set(t,e);function Ot(e){return qe.get(e)}function Ue(e,t="regular",o){const s=Ot(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:kt}=bt,At=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let c=r;return c===void 0&&Nt()&&(c=Ue(e,o,ze)),E("svg",{ref:u=>{c===void 0&&Tt((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ue(f,g,ze)),d.appendChild(h)})(u,e,o)}))},width:"16",height:"16",class:kt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ke=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(F===void 0)return!1;const e=(()=>{if(F===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,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},jt=()=>(Ke||(Ke=Ye()),F),{getGidsFieldClassNames:Mt}=xt,Ze=St(class extends et{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})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.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=jt();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,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"4bd0ef4ac11ded5f563595485082650801fdbe1b"},E("div",{key:"3617e3301f53dcb21a9beb98b4a23d620e3dd39d",class:Mt()},E("div",{key:"bb1f6710ee27c94346f7ee9459389d901b23d913",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"8fa03ca31936bc6082052b099ac29afea2ec3032",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"1b50c69005c2d0b89c47dc01c2dcbb343bdeecff",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"b8664a96496a6e7289fb14bdadbb59dcee9af3d1",class:"gids-field__control"},E("slot",{key:"bff757557406c0165be3569c4eb34adb1fe346ca",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"0638e493fc4ac98f6c10a8392c45ffde8b8340a4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("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 o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(At,{appearance:"filled",size:"sm",alt:"",name:t,class:o.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((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.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 o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));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 o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.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 Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ze))}))}Je();const Pt=Ze,Rt=Je;M.GidsField=Pt,M.defineCustomElement=Rt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&_.push(p)}return _})(S.childNodes)).forEach((y=>{h===G(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(P.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&&(L(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.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"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(L(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,L(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Ie(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,V=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,_=0,m=0,p=0,w=u.length-1,v=u[0],x=u[w],$=f.length-1,T=f[0],O=f[$];const Qe=d.O==="template"?c.content:c;for(;y<=w&&_<=$;)if(v==null)v=u[++y];else if(x==null)x=u[--w];else if(T==null)T=f[++_];else if(O==null)O=f[--$];else if(J(v,T,g))V(v,T,g),v=u[++y],T=f[++_];else if(J(x,O,g))V(x,O,g),x=u[--w],O=f[--$];else if(J(v,O,g))v.O!=="slot"&&O.O!=="slot"||Z(v.S.parentNode,!1),V(v,O,g),L(Qe,v.S,x.S.nextSibling),v=u[++y],O=f[--$];else if(J(x,T,g))v.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),V(x,T,g),L(Qe,x.S,v.S),x=u[--w],T=f[++_];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===T.$){m=p;break}m>=0?(S=u[m],S.O!==T.O?h=Y(u&&u[_],d,m):(V(S,T,g),u[m]=void 0,h=S.S),T=f[++_]):(h=Y(u&&u[_],d,_),T=f[++_]),h&&L(B(v.S).parentNode,h,B(v.S))}y>w?Me(c,f[$+1]==null?null:f[$+1].S,d,f,_,$):_>$&&Pe(u,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},k=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=k.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],k.push({N:i,k:t})),t["s-sr"]&&k.map((l=>{we(l.k,t["s-sn"])&&(a=k.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}i.nodeType===1&&Re(i)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ct=(e,t)=>{de.push((()=>e(t)))},L=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ht=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,u=e.M||q(null,null);var d;const f=(d=t)&&d.O===Ee?t:E(null,null,t);if(P=l.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=l[g]}))),o&&f.v)for(const g of Object.keys(f.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=l[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,V(u,f,o),C.i|=1,K){Re(f.S);for(const g of k){const h=g.k;if(!h["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=h,L(h.parentNode,h["s-ol"]=S,h,o)}}for(const g of k){const h=g.k,S=g.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(i=m["s-nr"])!=null?i: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"]){_=p;break}}m=m.previousSibling}}if((!_&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==_)&&h!==_){if(L(y,h,_,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=b.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,L(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&xe(f.S),C.i&=-2,k.length=0,!D&&!(1&c.i)&&l["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==P&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=b.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],L(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ie=void 0,ae.forEach((g=>g())),ae.length=0,de.forEach((g=>g())),de.length=0},Ve=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ve(e,e.C);const o=()=>ut(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ut=(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=Fe(n,(()=>z(s,"componentWillRender",void 0,o))),Fe(n,(()=>pt(e,s,t)))},Fe=(e,t)=>ft(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ft=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Ce(f),_=W.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,p=j.get(d=d.head||d);if(p||j.set(d,p=new Set),!p.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(g=C.L)!=null?g:(function(){var v,x,$;return($=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+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=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===p.CSSStyleSheet)w=_;else{w=new p.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),gt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>mt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ht(e,t,s)}catch(n){I(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,vt(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},_t=()=>{se((()=>rt(b,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){I(n,s)}},vt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=A(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(l?l[f](o,r,t):n.T.push((()=>{n.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},yt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Te(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[a]])=>{if(31&a||32&a){const{get:l,set:c}=R(n,r)||{};l&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return l?l.apply(this):(u=r,A(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(u){const d=A(this);if(d){if(c)return(32&a?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[$e(u,a)]),void He(this,r,u=32&a?this[r]:d.$hostElement$[r],t);He(this,r,u,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(a,l,c){C.jmp((()=>{var u;const d=r.get(a),f=A(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const _=f?.i;if(f&&_&&!(8&_)&&c!==l){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,x]]=Object.entries(w);m[v]!=null&&(128&_||1&x)&&m[v].call(m,c,l,a)}))}return}const g=i.find((([_])=>_===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:{}),...i.filter((([a,l])=>31&l[0])).map((([a,l])=>{var c;const u=l[1]||a;return r.set(u,a),512&l[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Te(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(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&Xe(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=A(i);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,L(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ve(r,r.C=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const u=i[l];delete i[l],i[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Ce(u);W.has(S)||((y,_,m)=>{let p=W.get(y);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=_:p.replaceSync(_)):p=_,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>ce(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){I(f,l),c.A&&(c.A(),c.A=void 0),c.F&&c.F(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&C.i||A(i),j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.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}),yt(e,o)}catch(s){return I(s),e}};function It(e){return e}function Ge(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=Ge(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function De(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>De("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"})),xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>De("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),Be=Symbol("pathSet"),ue="gids-asset-paths-set";class wt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(Be)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(Be,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Ct=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Et=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new wt),t[e]};function pe(){return Et("@ganpatiinfo/gids-web-shared")}function Nt(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function Tt(e){return pe().onAssetPathsSet(e)}let $t=0;const Lt=(e,t="gids")=>e||`${t}-${$t++}`,We={"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"]},qe=new Map;for(const e in We)for(const t of We[e])qe.set(t,e);function Ot(e){return qe.get(e)}function Ue(e,t="regular",o){const s=Ot(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:kt}=bt,At=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let c=r;return c===void 0&&Nt()&&(c=Ue(e,o,ze)),E("svg",{ref:u=>{c===void 0&&Tt((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ue(f,g,ze)),d.appendChild(h)})(u,e,o)}))},width:"16",height:"16",class:kt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ke=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(F===void 0)return!1;const e=(()=>{if(F===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,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},jt=()=>(Ke||(Ke=Ye()),F),{getGidsFieldClassNames:Mt}=xt,Ze=St(class extends et{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})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.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=jt();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,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"a8e81000bf235a842ddf98ef3be3ff5a82201b5d"},E("div",{key:"1c940955fd104dd85a5701f553d2ac5a7ddc14c8",class:Mt()},E("div",{key:"62e2a77c0661fc5507fe86d5343f85351895b3e7",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"c94c3346cd083969831905e0d0a7091013d32f3d",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"ef4ba969b9ac7be32c9c88260e357661eff68d54",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"cc2ea221e9c9725193238625f571848879e5c656",class:"gids-field__control"},E("slot",{key:"8530e0748d181e0c3b90e7602545cc67b404ef02",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"654ce845b3a9b5bfe3833a8122a05f3158a43fe4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("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 o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(At,{appearance:"filled",size:"sm",alt:"",name:t,class:o.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((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.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 o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));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 o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.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 Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ze))}))}Je();const Pt=Ze,Rt=Je;M.GidsField=Pt,M.defineCustomElement=Rt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const y=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Pe(e.S)),r},Pe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(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"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Pe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,y=0,g=0,p=0,_=h.length-1,v=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&y<=k;)if(v==null)v=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++y];else if(C==null)C=f[--k];else if(J(v,A,m))D(v,A,m),v=h[++S],A=f[++y];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(v,C,m))v.O!=="slot"&&C.O!=="slot"||Z(v.S.parentNode,!1),D(v,C,m),E(Ze,v.S,N.S.nextSibling),v=h[++S],C=f[--k];else if(J(N,A,m))v.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,v.S),N=h[--_],A=f[++y];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[y],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++y]):(u=Y(h&&h[y],c,y),A=f[++y]),u&&E(z(v.S).parentNode,u,z(v.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,y,k):y>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.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)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r: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}}g=g.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(E(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(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=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(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",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),y=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(m=O.L)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const v=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=x(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},vt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,x(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=x(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=x(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const y=f?.i;if(f&&y&&!(8&y)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[v,N]]=Object.entries(_);g[v]!=null&&(128&y||1&N)&&g[v].call(g,d,i,a)}))}return}const m=r.find((([y])=>y===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(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(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=x(r);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&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,y,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||x(r),P.has(r)&&P.delete(r),r.shadowRoot&&P.has(r.shadowRoot)&&P.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),vt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===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,r=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")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"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"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(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=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("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"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:xt}=_t,Pt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Pt,{key:"d1215bf1b178ca6fb73458ecb8370b315239fa5b",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const y=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Pe(e.S)),r},Pe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(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"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Pe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,y=0,g=0,p=0,_=h.length-1,v=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&y<=k;)if(v==null)v=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++y];else if(C==null)C=f[--k];else if(J(v,A,m))D(v,A,m),v=h[++S],A=f[++y];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(v,C,m))v.O!=="slot"&&C.O!=="slot"||Z(v.S.parentNode,!1),D(v,C,m),E(Ze,v.S,N.S.nextSibling),v=h[++S],C=f[--k];else if(J(N,A,m))v.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,v.S),N=h[--_],A=f[++y];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[y],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++y]):(u=Y(h&&h[y],c,y),A=f[++y]),u&&E(z(v.S).parentNode,u,z(v.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,y,k):y>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.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)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r: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}}g=g.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(E(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(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=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(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",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),y=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(m=O.L)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const v=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=x(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},vt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,x(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=x(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=x(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const y=f?.i;if(f&&y&&!(8&y)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[v,N]]=Object.entries(_);g[v]!=null&&(128&y||1&N)&&g[v].call(g,d,i,a)}))}return}const m=r.find((([y])=>y===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(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(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=x(r);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&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,y,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||x(r),P.has(r)&&P.delete(r),r.shadowRoot&&P.has(r.shadowRoot)&&P.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),vt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===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,r=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")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"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"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(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=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("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"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:xt}=_t,Pt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Pt,{key:"55114b6e5f7f440dcb4a892c0a25b234509b884e",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&m.push(b)})),a?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[n],c&&c.O===o.O&&e.S&&je(e.S)),r},je=e=>{A.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(x(t,o,n??null),o["s-sh"]=void 0,z=!0)}A.i&=-2},Y=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==I&&o["s-ol"]&&(x(G(o).parentNode,o,G(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,z=!0),t&&Y(o,t)}A.i&=-2},Te=(e,t,n,s,o,r)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===I&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);o<=r;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,x(c,l,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const r=o.S;Re(o),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Y(r,!0),r.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,B=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,r=t.m,l=t.O,c=t.h;let i;c==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,E),o!==null&&r!==null?((d,f,a,h,m=!1)=>{let u,S,b=0,v=0,g=0,p=0,k=f.length-1,y=f[0],_=f[k],$=h.length-1,O=h[0],P=h[$];const et=a.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=f[++b];else if(_==null)_=f[--k];else if(O==null)O=h[++v];else if(P==null)P=h[--$];else if(J(y,O,m))B(y,O,m),y=f[++b],O=h[++v];else if(J(_,P,m))B(_,P,m),_=f[--k],P=h[--$];else if(J(y,P,m))y.O!=="slot"&&P.O!=="slot"||Y(y.S.parentNode,!1),B(y,P,m),x(et,y.S,_.S.nextSibling),y=f[++b],P=h[--$];else if(J(_,O,m))y.O!=="slot"&&P.O!=="slot"||Y(_.S.parentNode,!1),B(_,O,m),x(et,_.S,y.S),_=f[--k],O=h[++v];else{for(g=-1,p=b;p<=k;++p)if(f[p]&&f[p].$!==null&&f[p].$===O.$){g=p;break}g>=0?(S=f[g],S.O!==O.O?u=K(f&&f[v],a,g):(B(S,O,m),f[g]=void 0,u=S.S),O=h[++v]):(u=K(f&&f[v],a,v),O=h[++v]),u&&x(G(y.S).parentNode,u,G(y.S))}b>k?Te(d,h[$+1]==null?null:h[$+1].S,a,h,v,$):v>$&&Le(f,b,k)})(s,o,t,r,n):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!n&&o!==null&&Le(o,0,o.length-1),E&&l==="svg"&&(E=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},C=[],Ie=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const r of o){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,l)){let c=C.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],C.push({N:r,k:t})),t["s-sr"]&&C.map((i=>{Ne(i.k,t["s-sn"])&&(c=C.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else C.some((c=>c.k===t))||C.push({k:t})}r.nodeType===1&&Ie(r)}},Re=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ht=(e,t)=>{de.push((()=>e(t)))},x=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(r,l){var c;if(!(l=l||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=V(r)||"";return{slotNode:oe(re(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},pt=(e,t,n=!1)=>{var s,o,r,l,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===lt?t:N(null,null,t);if(I=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([m,u])=>{h.v[u]=i[m]}))),n&&h.v)for(const m of Object.keys(h.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=i[m]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,F=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,B(f,h,n),A.i|=1,z){Ie(h.S);for(const m of C){const u=m.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,x(u.parentNode,u["s-ol"]=S,u,n)}}for(const m of C){const u=m.k,S=m.N;if(u.nodeType===1&&n&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=u["s-ol"])==null?void 0:o.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}g=g.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(x(b,u,v,n),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,x(u.parentNode,g,u,n),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&_e(h.S),A.i&=-2,C.length=0,!F&&!(1&d.i)&&i["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const u of m)if(u["s-hn"]!==I&&!u["s-sh"]){if(n&&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 S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],x(u.parentNode,S,u,n),u.parentNode.removeChild(u)}}}ie=void 0,ce.forEach((m=>m())),ce.length=0,de.forEach((m=>m())),de.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const n=()=>mt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},mt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Be(o,(()=>H(s,"componentWillRender",void 0,n))),Be(o,(()=>vt(e,s,t)))},Be=(e,t)=>gt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),gt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const o=e.$hostElement$,r=o["s-rc"];n&&(l=>{const c=l.o,i=l.$hostElement$,d=c.i,f=((a,h)=>{var m,u,S;const b=ke(h),v=W.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,v)if(typeof v=="string"){let g,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=v;const k=(m=A.L)!=null?m:(function(){var y,_,$;return($=(_=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(k!=null&&g.setAttribute("nonce",k),!(1&h.i))if(a.nodeName==="HEAD"){const y=a.querySelectorAll("link[rel=preconnect]"),_=y.length>0?y[y.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,_?.parentNode===a?_:null)}else if("host"in a)if(Q){const y=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?a.adoptedStyleSheets.unshift(y):a.adoptedStyleSheets=[y,...a.adoptedStyleSheets]}else{const y=a.querySelector("style");y?y.textContent=v+y.textContent:a.prepend(g)}else a.append(g);1&h.i&&a.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(a);if(g||T.set(a,g=new Set),!g.has(b)){const p=(S=a.defaultView)!=null?S:a.ownerDocument.defaultView;let k;if(v.constructor===p.CSSStyleSheet)k=v;else{k=new p.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}ee?a.adoptedStyleSheets.push(k):a.adoptedStyleSheets=[...a.adoptedStyleSheets,k],g.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),yt(e,t,o,n),r&&(r.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],c=()=>bt(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(o){M(o,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.C;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),H(n,"componentDidLoad",void 0,t),e.F(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},St=()=>{ne((()=>dt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){M(o,s)}},wt=e=>e.classList.add("hydrated"),De=(e,t,n,s)=>{const o=j(e);if(!o)return;const r=e,l=o.l.get(t),c=o.i,i=r;n=Oe(n,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,m]]=Object.entries(a);(128&c||1&m)&&(i?i[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){M(h,r)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||ue(o,!1)}}},_t=(e,t)=>{var n,s;const o=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([l,[c]])=>{if(31&c||32&c){const{get:i,set:d}=R(o,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return i?i.apply(this):(f=l,j(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(f){const a=j(this);if(a){if(d)return(32&c?this[l]:a.$hostElement$[l])===void 0&&a.l.get(l)&&(f=a.l.get(l)),d.apply(this,[Oe(f,c)]),void De(this,l,f=32&c?this[l]:a.$hostElement$[l],t);De(this,l,f,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(c,i,d){A.jmp((()=>{var f;const a=l.get(c),h=j(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const v=h?.i;if(h&&v&&!(8&v)&&d!==i){const g=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((k=>{const[[y,_]]=Object.entries(k);g[y]!=null&&(128&v||1&_)&&g[y].call(g,d,i,c)}))}return}const m=r.find((([v])=>v===a)),u=m&&4&m[1][0],S=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(o,a);S||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return l.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},Nt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Ee(e.R),n.H=e.H,n.P=e.P,n._=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const c={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=c;r.__stencil__getHostRef=()=>i,512&l.i&&tt(r,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!j(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&A.i)){const l=j(r);if(!l)return;const c=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,x(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const f=r[i];delete r[i],r[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 S=ke(f);W.has(S)||((b,v,g)=>{let p=W.get(b);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(b,p)})(S,u,!!(1&f.i))}const h=d.C,m=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){M(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&A.i||j(r),T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),_t(e,n)}catch(s){return M(s),e}},kt=(e,t)=>t;function zt(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Fe(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Fe("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},n,s)},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Fe("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"})),X=64,Ge=10,He=X/2-Ge/2,Ot=X/2,fe=2*Math.PI*He,$t=`0 0 ${X} ${X}`,xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,r=(fe*o/100).toFixed(2),l=(fe-parseFloat(r)).toFixed(2);return`${r} ${l}`},centerPosition:Ot,circumference:fe,radius:He,thickness:Ge,viewBox:$t},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#s(We)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(he,n)}this.#e(We,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),Ct=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),jt=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function ge(){return jt("@ganpatiinfo/gids-web-shared")}function Tt(){return ge().haveAssetPathsBeenSet()}function qe(e){return ge().getAssetFilePath(e)}function Lt(e){return ge().onAssetPathsSet(e)}let It=0;const Rt=(e,t="gids")=>e||`${t}-${It++}`,Mt=e=>e.type==="hidden",Bt=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&&!Mt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Ue={"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"]},ze=new Map;for(const e in Ue)for(const t of Ue[e])ze.set(t,e);function Dt(e){return ze.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Vt}=Et,Ye=({name:e,size:t,appearance:n,alt:s,class:o,titleId:r,src:l,...c})=>{const i=Rt(r);let d=l;return d===void 0&&Tt()&&(d=Ke(e,n,qe)),N("svg",{ref:f=>{d===void 0&&Lt((()=>{(function(a,h,m){if(!a)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ke(h,m,qe)),a.appendChild(u)})(f,e,n)}))},width:"16",height:"16",class:Vt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...c},s!==""&&N("title",{id:i},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsSpinnerControlClassNames:Ft}=At,{calculateStrokeDasharray:Gt,thickness:Je,radius:Xe,centerPosition:Z,viewBox:Ht}=xt,Wt=({size:e,indeterminate:t,value:n,max:s,...o})=>{let r;return t||(r={strokeDashArray:Gt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Ft({size:e,indeterminate:t,value:n}),viewBox:Ht,...o},N("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Xe,"stroke-width":Je}),N("circle",{style:r,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Xe,"stroke-width":Je}))},Ze=Nt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||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(Bt(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return N(kt,{key:"281c832656cace745109fdd8208fe24b90f2c126"},N("slot",{key:"5f8424a1d9bc196e3efee9d1e5d099bed15ddb4b",name:"leadingIcon"}),this.leadingLabel&&N("span",{key:"2ce161a38f74618d60f38028c646c80e361aeced",class:"gids-input__label"},this.leadingLabel),N("slot",{key:"12383525faf774eef618705cf68338a4fc9c9e55",name:"leadingAccessory"}),N("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}),N("slot",{key:"3e0f6ae8c23b2536891ddd0adb7be1215d86ac66",name:"trailingAccessory"}),this.trailingLabel&&N("span",{key:"9b2ac9fbf6c198dd0a4e1decf4631b2b46902587",class:"gids-input__label"},this.trailingLabel),N("slot",{key:"d9848f786ce38136f1ad8c07d685215ede87f157",name:"trailingIcon"}),this.status==="incomplete"&&N(Ye,{key:"bc8bcc01f07bd345b448f4662a37b28d8029a94f",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&N(Ye,{key:"cafc44041a1d4eac859face7ec5eea2ced1ca3f5",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&N(Wt,{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 Qe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ze))}))}Qe();const qt=Ze,Ut=Qe;L.GidsInput=qt,L.defineCustomElement=Ut,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&m.push(b)})),a?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[n],c&&c.O===o.O&&e.S&&je(e.S)),r},je=e=>{A.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(x(t,o,n??null),o["s-sh"]=void 0,z=!0)}A.i&=-2},Y=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==I&&o["s-ol"]&&(x(G(o).parentNode,o,G(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,z=!0),t&&Y(o,t)}A.i&=-2},Te=(e,t,n,s,o,r)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===I&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);o<=r;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,x(c,l,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const r=o.S;Re(o),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Y(r,!0),r.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,B=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,r=t.m,l=t.O,c=t.h;let i;c==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,E),o!==null&&r!==null?((d,f,a,h,m=!1)=>{let u,S,b=0,v=0,g=0,p=0,k=f.length-1,y=f[0],_=f[k],$=h.length-1,O=h[0],P=h[$];const et=a.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=f[++b];else if(_==null)_=f[--k];else if(O==null)O=h[++v];else if(P==null)P=h[--$];else if(J(y,O,m))B(y,O,m),y=f[++b],O=h[++v];else if(J(_,P,m))B(_,P,m),_=f[--k],P=h[--$];else if(J(y,P,m))y.O!=="slot"&&P.O!=="slot"||Y(y.S.parentNode,!1),B(y,P,m),x(et,y.S,_.S.nextSibling),y=f[++b],P=h[--$];else if(J(_,O,m))y.O!=="slot"&&P.O!=="slot"||Y(_.S.parentNode,!1),B(_,O,m),x(et,_.S,y.S),_=f[--k],O=h[++v];else{for(g=-1,p=b;p<=k;++p)if(f[p]&&f[p].$!==null&&f[p].$===O.$){g=p;break}g>=0?(S=f[g],S.O!==O.O?u=K(f&&f[v],a,g):(B(S,O,m),f[g]=void 0,u=S.S),O=h[++v]):(u=K(f&&f[v],a,v),O=h[++v]),u&&x(G(y.S).parentNode,u,G(y.S))}b>k?Te(d,h[$+1]==null?null:h[$+1].S,a,h,v,$):v>$&&Le(f,b,k)})(s,o,t,r,n):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!n&&o!==null&&Le(o,0,o.length-1),E&&l==="svg"&&(E=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},C=[],Ie=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const r of o){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,l)){let c=C.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],C.push({N:r,k:t})),t["s-sr"]&&C.map((i=>{Ne(i.k,t["s-sn"])&&(c=C.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else C.some((c=>c.k===t))||C.push({k:t})}r.nodeType===1&&Ie(r)}},Re=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ht=(e,t)=>{de.push((()=>e(t)))},x=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(r,l){var c;if(!(l=l||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=V(r)||"";return{slotNode:oe(re(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},pt=(e,t,n=!1)=>{var s,o,r,l,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===lt?t:N(null,null,t);if(I=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([m,u])=>{h.v[u]=i[m]}))),n&&h.v)for(const m of Object.keys(h.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=i[m]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,F=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,B(f,h,n),A.i|=1,z){Ie(h.S);for(const m of C){const u=m.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,x(u.parentNode,u["s-ol"]=S,u,n)}}for(const m of C){const u=m.k,S=m.N;if(u.nodeType===1&&n&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=u["s-ol"])==null?void 0:o.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}g=g.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(x(b,u,v,n),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,x(u.parentNode,g,u,n),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&_e(h.S),A.i&=-2,C.length=0,!F&&!(1&d.i)&&i["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const u of m)if(u["s-hn"]!==I&&!u["s-sh"]){if(n&&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 S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],x(u.parentNode,S,u,n),u.parentNode.removeChild(u)}}}ie=void 0,ce.forEach((m=>m())),ce.length=0,de.forEach((m=>m())),de.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const n=()=>mt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},mt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Be(o,(()=>H(s,"componentWillRender",void 0,n))),Be(o,(()=>vt(e,s,t)))},Be=(e,t)=>gt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),gt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const o=e.$hostElement$,r=o["s-rc"];n&&(l=>{const c=l.o,i=l.$hostElement$,d=c.i,f=((a,h)=>{var m,u,S;const b=ke(h),v=W.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,v)if(typeof v=="string"){let g,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=v;const k=(m=A.L)!=null?m:(function(){var y,_,$;return($=(_=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(k!=null&&g.setAttribute("nonce",k),!(1&h.i))if(a.nodeName==="HEAD"){const y=a.querySelectorAll("link[rel=preconnect]"),_=y.length>0?y[y.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,_?.parentNode===a?_:null)}else if("host"in a)if(Q){const y=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?a.adoptedStyleSheets.unshift(y):a.adoptedStyleSheets=[y,...a.adoptedStyleSheets]}else{const y=a.querySelector("style");y?y.textContent=v+y.textContent:a.prepend(g)}else a.append(g);1&h.i&&a.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(a);if(g||T.set(a,g=new Set),!g.has(b)){const p=(S=a.defaultView)!=null?S:a.ownerDocument.defaultView;let k;if(v.constructor===p.CSSStyleSheet)k=v;else{k=new p.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}ee?a.adoptedStyleSheets.push(k):a.adoptedStyleSheets=[...a.adoptedStyleSheets,k],g.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),yt(e,t,o,n),r&&(r.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],c=()=>bt(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(o){M(o,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.C;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),H(n,"componentDidLoad",void 0,t),e.F(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},St=()=>{ne((()=>dt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){M(o,s)}},wt=e=>e.classList.add("hydrated"),De=(e,t,n,s)=>{const o=j(e);if(!o)return;const r=e,l=o.l.get(t),c=o.i,i=r;n=Oe(n,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,m]]=Object.entries(a);(128&c||1&m)&&(i?i[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){M(h,r)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||ue(o,!1)}}},_t=(e,t)=>{var n,s;const o=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([l,[c]])=>{if(31&c||32&c){const{get:i,set:d}=R(o,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return i?i.apply(this):(f=l,j(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(f){const a=j(this);if(a){if(d)return(32&c?this[l]:a.$hostElement$[l])===void 0&&a.l.get(l)&&(f=a.l.get(l)),d.apply(this,[Oe(f,c)]),void De(this,l,f=32&c?this[l]:a.$hostElement$[l],t);De(this,l,f,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(c,i,d){A.jmp((()=>{var f;const a=l.get(c),h=j(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const v=h?.i;if(h&&v&&!(8&v)&&d!==i){const g=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((k=>{const[[y,_]]=Object.entries(k);g[y]!=null&&(128&v||1&_)&&g[y].call(g,d,i,c)}))}return}const m=r.find((([v])=>v===a)),u=m&&4&m[1][0],S=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(o,a);S||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return l.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},Nt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Ee(e.R),n.H=e.H,n.P=e.P,n._=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const c={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=c;r.__stencil__getHostRef=()=>i,512&l.i&&tt(r,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!j(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&A.i)){const l=j(r);if(!l)return;const c=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,x(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const f=r[i];delete r[i],r[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 S=ke(f);W.has(S)||((b,v,g)=>{let p=W.get(b);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(b,p)})(S,u,!!(1&f.i))}const h=d.C,m=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){M(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&A.i||j(r),T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),_t(e,n)}catch(s){return M(s),e}},kt=(e,t)=>t;function zt(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Fe(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Fe("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},n,s)},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Fe("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"})),X=64,Ge=10,He=X/2-Ge/2,Ot=X/2,fe=2*Math.PI*He,$t=`0 0 ${X} ${X}`,xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,r=(fe*o/100).toFixed(2),l=(fe-parseFloat(r)).toFixed(2);return`${r} ${l}`},centerPosition:Ot,circumference:fe,radius:He,thickness:Ge,viewBox:$t},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#s(We)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(he,n)}this.#e(We,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),Ct=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),jt=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function ge(){return jt("@ganpatiinfo/gids-web-shared")}function Tt(){return ge().haveAssetPathsBeenSet()}function qe(e){return ge().getAssetFilePath(e)}function Lt(e){return ge().onAssetPathsSet(e)}let It=0;const Rt=(e,t="gids")=>e||`${t}-${It++}`,Mt=e=>e.type==="hidden",Bt=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&&!Mt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Ue={"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"]},ze=new Map;for(const e in Ue)for(const t of Ue[e])ze.set(t,e);function Dt(e){return ze.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Vt}=Et,Ye=({name:e,size:t,appearance:n,alt:s,class:o,titleId:r,src:l,...c})=>{const i=Rt(r);let d=l;return d===void 0&&Tt()&&(d=Ke(e,n,qe)),N("svg",{ref:f=>{d===void 0&&Lt((()=>{(function(a,h,m){if(!a)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ke(h,m,qe)),a.appendChild(u)})(f,e,n)}))},width:"16",height:"16",class:Vt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...c},s!==""&&N("title",{id:i},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsSpinnerControlClassNames:Ft}=At,{calculateStrokeDasharray:Gt,thickness:Je,radius:Xe,centerPosition:Z,viewBox:Ht}=xt,Wt=({size:e,indeterminate:t,value:n,max:s,...o})=>{let r;return t||(r={strokeDashArray:Gt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Ft({size:e,indeterminate:t,value:n}),viewBox:Ht,...o},N("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Xe,"stroke-width":Je}),N("circle",{style:r,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Xe,"stroke-width":Je}))},Ze=Nt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||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(Bt(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return N(kt,{key:"5d4e79f168da55c3c8dcb9b005919af697faa2e4"},N("slot",{key:"a7c23b37ceaf94f06e53256b431e98e7a3a32602",name:"leadingIcon"}),this.leadingLabel&&N("span",{key:"0ad81289035ada60d67b1df06fb60f703dc27eed",class:"gids-input__label"},this.leadingLabel),N("slot",{key:"f5870caed190d279a95c688243607dfae8f79d60",name:"leadingAccessory"}),N("input",{key:"38ead647fc9069ed8de93293150134048fd6b4f1",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),N("slot",{key:"58ff0f57706d2c9b1e9b41549649c324c60a8f07",name:"trailingAccessory"}),this.trailingLabel&&N("span",{key:"6d400670f8c64f64fbe732e726da4d7569c2c6f3",class:"gids-input__label"},this.trailingLabel),N("slot",{key:"8b20ed8fb9169fd7c0e1415f7bcdf0df03b61534",name:"trailingIcon"}),this.status==="incomplete"&&N(Ye,{key:"f7d4261f5c8faa51601d3fd6c400f4891847f62c",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&N(Ye,{key:"6cbdc56ebc1854d0b4f6db30df670f665a9aff3f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&N(Wt,{key:"a369d7c3f7e2ac4d631926aefc1a15bf9cbba362",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 Qe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ze))}))}Qe();const qt=Ze,Ut=Qe;L.GidsInput=qt,L.defineCustomElement=Ut,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(R,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(R=typeof globalThis<"u"?globalThis:R||self,L(R.gidsCoreWebGidsOverflowContainer={}))})(this,(function(R){"use strict";function L(e,t,s){const o=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==o;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!s||n.get))return n;e=Object.getPrototypeOf(e)}}var W,Ge=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([o,[n]])=>{if(31&n||32&n){const l=e[o],i=L(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(a){i.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(o)?e[o]=t.l.get(o):l!==void 0&&(e[o]=l)}}))},E=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},he=(e,t)=>t in e,H=(e,t)=>(0,console.error)(e,t),q=new Map,pe="http://www.w3.org/1999/xlink",b=typeof window<"u"?window:{},Ve=b.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,o)=>e.addEventListener(t,s,o),rel:(e,t,s,o)=>e.removeEventListener(t,s,o),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable,ee=!1,me=[],ye=[],qe=(e,t)=>s=>{e.push(s),ee||(ee=!0,4&O.i?oe(te):O.raf(te))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){H(s)}e.length=0},te=()=>{ge(me),ge(ye),(ee=me.length>0)&&O.raf(te)},oe=e=>Promise.resolve(void 0).then(e),ze=qe(ye);function Ue(){const e=this.attachShadow({mode:"open"});W===void 0&&(W=null),W&&(X?e.adoptedStyleSheets.push(W):e.adoptedStyleSheets=[...e.adoptedStyleSheets,W])}var Se=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&se(t,e.tagName).forEach((o=>{o.nodeType===1&&o.tagName==="SLOT-FB"&&(o.hidden=!!Ie(o,B(o),!1).length)}));let s=0;for(s=0;s<t.length;s++){const o=t[s];o.nodeType===1&&ne(o,"childNodes").length&&Se(o)}};function se(e,t,s){let o,n=0,l=[];for(;n<e.length;n++){if(o=e[n],o["s-sr"]&&(!t||o["s-hn"]===t)&&(s===void 0||B(o)===s)&&(l.push(o),s!==void 0))return l;l=[...l,...se(o.childNodes,t,s)]}return l}var Ie=(e,t,s=!0)=>{const o=[];(s&&e["s-sr"]||!e["s-sr"])&&o.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!s&&n["s-sr"]||o.push(n);return o},ve=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,P,T=new WeakMap,we=e=>"sc-"+e.p,re=e=>(e=typeof e)=="object"||e==="function",z=(e,t,...s)=>{let o=null,n=null,l=null,i=!1,a=!1;const r=[],d=c=>{for(let h=0;h<c.length;h++)o=c[h],Array.isArray(o)?d(o):o!=null&&typeof o!="boolean"&&((i=typeof e!="function"&&!re(o))&&(o=String(o)),i&&a?r[r.length-1].h+=o:r.push(i?U(null,o):o),a=i)};if(d(s),t){t.key&&(n=t.key),t.name&&(l=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((h=>c[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,Ze);const u=U(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=n,u.j=l,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ye={},Ze={forEach:(e,t)=>e.map(be).forEach(t),map:(e,t)=>e.map(be).map(t).map(Je)},be=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Je=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),z(e.vtag,s,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},_e=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const n of t){if(s)break;for(const l of e[n])if(typeof l=="string"){s=!0;break}}if(!s)return e;const o={};for(const n of t)o[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return o},Ne=(e,t)=>e==null||re(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Ke=(e,t,s)=>{const o=O.ce(t,s);return e.dispatchEvent(o),o},Oe=(e,t,s,o,n,l)=>{if(s===o)return;let i=he(e,t),a=t.toLowerCase();if(t==="class"){const r=e.classList,d=Ce(s);let u=Ce(o);r.remove(...d.filter((c=>c&&!u.includes(c)))),r.add(...u.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const r in s)o&&o[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in o)s&&o[r]===s[r]||(r.includes("-")?e.style.setProperty(r,o[r]):e.style[r]=o[r])}else if(t!=="key"){if(t==="ref")o&&et(o,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=E(e);if(u&&u.o&&u.o.t){const c=u.o.t[r];c&&c[1]&&(d=c[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(o==null||o===!1?o===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,o===!0?"":o))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=o}catch{}return}{const r=re(o);if((i||r&&o!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const u=o??"";t==="list"?i=!1:s!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),o==null||o===!1?o===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(pe,t):e.removeAttribute(t)):(!i||4&l||n)&&!r&&e.nodeType===1&&(o=o===!0?"":o,d?e.setAttributeNS(pe,t,o):e.setAttribute(t,o))}}else if(t=t[2]==="-"?t.slice(3):he(b,a)?a.slice(2):a[2]+t.slice(3),s||o){const r=t.endsWith(xe);t=t.replace(Xe,""),s&&O.rel(e,t,s,r),o&&O.ael(e,t,o,r)}}},Qe=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Qe):[]),xe="Capture",Xe=new RegExp(xe+"$"),ie=(e,t,s)=>{const o=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const i of $e(Object.keys(n)))i in l||Oe(o,i,n[i],void 0,s,t.i);for(const i of $e(Object.keys(l)))Oe(o,i,n[i],l[i],s,t.i)};function $e(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var F=!1,I=!1,Y=!1,C=!1,ae=[],ce=[],Z=(e,t,s)=>{var o;const n=t.m[s];let l,i,a,r=0;if(F||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=b.document.createTextNode(n.h);else if(1&n.i)l=n.S=b.document.createTextNode(""),ie(null,n,C);else{if(C||(C=n.O==="svg"),!b.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=b.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!F&&2&n.i?"slot-fb":n.O),C&&n.O==="foreignObject"&&(C=!1),ie(null,n,C),n.m){const d=n.O==="template"?l.content:l;for(r=0;r<n.m.length;++r)i=Z(e,n,r),i&&d.appendChild(i)}n.O==="svg"?C=!1:l.tagName==="foreignObject"&&(C=!0)}return l["s-hn"]=P,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=le,l["s-sn"]=n.j||"",l["s-rf"]=(o=n.v)==null?void 0:o.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=c=>(function(h){const y=[],f=this["s-sn"];h?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(v=>{const g=[];for(let m=0;m<v.length;m++){const p=v[m]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(w.childNodes)).forEach((v=>{f===B(v)&&y.push(v)})),c?y.filter((v=>v.nodeType===1)):y}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[s],a&&a.O===n.O&&e.S&&Ae(e.S)),l},Ae=e=>{O.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const n of s?o.reverse():o)n["s-sh"]!=null&&(A(t,n,s??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===P&&s.push(o)}for(let o=s.length-1;o>=0;o--){const n=s[o];n["s-hn"]!==P&&n["s-ol"]&&(A(G(n).parentNode,n,G(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},je=(e,t,s,o,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);n<=l;++n)o[n]&&(i=Z(null,s,n),i&&(o[n].S=i,A(a,i,G(t))))},ke=(e,t,s)=>{for(let o=t;o<=s;++o){const n=e[o];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const o=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ae(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,c,h,y=!1)=>{let f,w,v=0,g=0,m=0,p=0,N=u.length-1,S=u[0],_=u[N],$=h.length-1,x=h[0],j=h[$];const Fe=c.O==="template"?d.content:d;for(;v<=N&&g<=$;)if(S==null)S=u[++v];else if(_==null)_=u[--N];else if(x==null)x=h[++g];else if(j==null)j=h[--$];else if(K(S,x,y))M(S,x,y),S=u[++v],x=h[++g];else if(K(_,j,y))M(_,j,y),_=u[--N],j=h[--$];else if(K(S,j,y))S.O!=="slot"&&j.O!=="slot"||J(S.S.parentNode,!1),M(S,j,y),A(Fe,S.S,_.S.nextSibling),S=u[++v],j=h[--$];else if(K(_,x,y))S.O!=="slot"&&j.O!=="slot"||J(_.S.parentNode,!1),M(_,x,y),A(Fe,_.S,S.S),_=u[--N],x=h[++g];else{for(m=-1,p=v;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===x.$){m=p;break}m>=0?(w=u[m],w.O!==x.O?f=Z(u&&u[g],c,m):(M(w,x,y),u[m]=void 0,f=w.S),x=h[++g]):(f=Z(u&&u[g],c,g),x=h[++g]),f&&A(G(S.S).parentNode,f,G(S.S))}v>N?je(d,h[$+1]==null?null:h[$+1].S,c,h,g,$):g>$&&ke(u,v,N)})(o,n,t,l,s):l!==null?(e.h!==null&&(o.textContent=""),je(o,null,t,l,0,l.length-1)):!s&&n!==null&&ke(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=o["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(o.data=a)},k=[],Ee=e=>{let t,s,o;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ve(t,i)){let a=k.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],k.push({N:l,k:t})),t["s-sr"]&&k.map((r=>{ve(r.k,t["s-sn"])&&(a=k.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}l.nodeType===1&&Ee(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},et=(e,t)=>{ce.push((()=>e(t)))},A=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=B(l)||"";return{slotNode:se(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!o&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},tt=(e,t,s=!1)=>{var o,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||U(null,null);var c;const h=(c=t)&&c.O===Ye?t:z(null,null,t);if(P=r.tagName,d._&&(h.v=h.v||{},d._.forEach((([y,f])=>{h.v[f]=r[y]}))),s&&h.v)for(const y of Object.keys(h.v))r.hasAttribute(y)&&!["key","ref","style","class"].includes(y)&&(h.v[y]=r[y]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,F=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,M(u,h,s),O.i|=1,Y){Ee(h.S);for(const y of k){const f=y.k;if(!f["s-ol"]&&b.document){const w=b.document.createTextNode("");w["s-nr"]=f,A(f.parentNode,f["s-ol"]=w,f,s)}}for(const y of k){const f=y.k,w=y.N;if(f.nodeType===1&&s&&(f["s-ih"]=(o=f.hidden)!=null&&o),w){const v=w.parentNode;let g=w.nextSibling;if(g&&g.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===f["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===f||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}m=m.previousSibling}}if((!g&&v!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==g)&&f!==g){if(A(v,f,g,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,A(f.parentNode,m,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(i=f["s-ih"])!=null&&i)}f&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else f.nodeType===1&&(f.hidden=!0)}}if(I&&Se(h.S),O.i&=-2,k.length=0,!F&&!(1&d.i)&&r["s-cr"]){const y=h.S.__childNodes||h.S.childNodes;for(const f of y)if(f["s-hn"]!==P&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const w=b.document.createComment("s-nt-"+f.nodeValue);w["s-sn"]=f["s-sn"],A(f.parentNode,w,f,s),f.parentNode.removeChild(f)}}}le=void 0,ae.forEach((y=>y())),ae.length=0,ce.forEach((y=>y())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.C);const s=()=>ot(e,t);if(!t)return ze(s);queueMicrotask((()=>{s()}))},ot=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=V(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),n=Pe(n,(()=>V(o,"componentWillRender",void 0,s))),Pe(n,(()=>nt(e,o,t)))},Pe=(e,t)=>st(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),st=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const n=e.$hostElement$,l=n["s-rc"];s&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,h)=>{var y,f,w;const v=we(h),g=q.get(v);if(!b.document)return v;if(c=c.nodeType===11?c:b.document,g)if(typeof g=="string"){let m,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(v)){m=b.document.createElement("style"),m.textContent=g;const N=(y=O.L)!=null?y:(function(){var S,_,$;return($=(_=(S=b.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&h.i))if(c.nodeName==="HEAD"){const S=c.querySelectorAll("link[rel=preconnect]"),_=S.length>0?S[S.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,_?.parentNode===c?_:null)}else if("host"in c)if(Q){const S=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),X?c.adoptedStyleSheets.unshift(S):c.adoptedStyleSheets=[S,...c.adoptedStyleSheets]}else{const S=c.querySelector("style");S?S.textContent=g+S.textContent:c.prepend(m)}else c.append(m);1&h.i&&c.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(v)){const p=(w=c.defaultView)!=null?w:c.ownerDocument.defaultView;let N;if(g.constructor===p.CSSStyleSheet)N=g;else{N=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)N.insertRule(g.cssRules[S].cssText,S)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),lt(e,t,n,s),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(o=n["s-p"])!=null?o:[],a=()=>rt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},lt=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,tt(e,t,o)}catch(n){H(n,e.$hostElement$)}return null},rt=e=>{const t=e.$hostElement$,s=t,o=e.C;V(s,"componentDidRender",void 0,t),64&e.i?V(s,"componentDidUpdate",void 0,t):(e.i|=64,at(t),V(s,"componentDidLoad",void 0,t),e.F(t),o||it()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>de(e,!1))),e.i&=-517},it=()=>{oe((()=>Ke(b,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(n){H(n,o)}},at=e=>e.classList.add("hydrated"),Le=(e,t,s,o)=>{const n=E(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;s=Ne(s,o.t[t][0]);const d=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!d){if(n.l.set(t,s),o.R){const u=o.R[t];u&&u.map((c=>{try{const[[h,y]]=Object.entries(c);(128&a||1&y)&&(r?r[h](s,i,t):n.T.push((()=>{n.D[h](s,i,t)})))}catch(h){H(h,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},ct=(e,t)=>{var s,o;const n=e.prototype;{e.watchers&&!t.R&&(t.R=_e(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([i,[a]])=>{if(31&a||32&a){const{get:r,set:d}=L(n,i)||{};r&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return r?r.apply(this):(u=i,E(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(u){const c=E(this);if(c){if(d)return(32&a?this[i]:c.$hostElement$[i])===void 0&&c.l.get(i)&&(u=c.l.get(i)),d.apply(this,[Ne(u,a)]),void Le(this,i,u=32&a?this[i]:c.$hostElement$[i],t);Le(this,i,u,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(a,r,d){O.jmp((()=>{var u;const c=i.get(a),h=E(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const g=h?.i;if(h&&g&&!(8&g)&&d!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((N=>{const[[S,_]]=Object.entries(N);m[S]!=null&&(128&g||1&_)&&m[S].call(m,d,r,a)}))}return}const y=l.find((([g])=>g===c)),f=y&&4&y[1][0],w=f&&d===null&&this[c]===void 0;f&&(d=d!==null&&d!=="false");const v=Object.getOwnPropertyDescriptor(n,c);w||d==this[c]||v.get&&!v.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.R)!=null?o:{}),...l.filter((([a,r])=>31&r[0])).map((([a,r])=>{var d;const u=r[1]||a;return i.set(u,a),512&r[0]&&((d=t._)==null||d.push([a,u])),u}))]))}}return e},dt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=_e(e.R),s.H=e.H,s.P=e.P,s._=[];const o=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Ge(l,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!E(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=E(l);if(!i)return;const a=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!b.document)return;const d=r["s-cr"]=b.document.createComment("");d["s-cn"]=!0,A(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.C=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const w=we(u);q.has(w)||((v,g,m)=>{let p=q.get(v);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(v,p)})(w,f,!!(1&u.i))}const h=d.C,y=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(y):y()}catch(h){H(h,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(l,i,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async l=>{1&O.i||E(l),T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ue.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ct(e,s)}catch(o){return H(o),e}};function yt(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let fe=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Me()})):void 0,Me=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const o=document.styleSheets.item(s);if(o)try{let n=-1,l=0;for(let i=0;i<o.cssRules.length;i++){const a=o.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:o}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ue!==void 0&&t!==fe&&(fe&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),fe=t),D.replaceSync((s=>s.rules.map((o=>o.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:o,originalRulesCount:n,styleSheet:l}=s;for(let i=0;i<n;i++)l.deleteRule(o)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ft=()=>(He||(He=Me()),D),ut=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),{showGidsOverflowContainerBottomShadow:De,showGidsOverflowContainerTopShadow:ht}=ut,We=dt(class extends Ve{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),De(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(ht(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),De(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return z("div",{key:"6ec89d7178cf344a3127aa5913df8ff65c523592",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},z("slot",{key:"0cf9630efe8337aa0c7a239fa5f09ca30d368513"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function Be(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const pt=We,mt=Be;R.GidsOverflowContainer=pt,R.defineCustomElement=mt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|