@ganpatiinfo/gids-core-web 10.1.0 → 10.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 +201 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-tab-item.d.ts +11 -0
- package/dist/gids-tab-item.js +1 -0
- package/dist/gids-tab.d.ts +11 -0
- package/dist/gids-tab.js +1 -0
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/{p-DfxTsSdZ.js → p-5VIPb1eU.js} +1 -1
- package/dist/{p-Db62Pz3n.js → p-8tOn5SjU.js} +1 -1
- package/dist/{p-V48JyMbP.js → p-B1Jgtjhu.js} +1 -1
- package/dist/{p-mZJdpfOo.js → p-BYDimyG-.js} +1 -1
- package/dist/{p-DPIK2ayL.js → p-BfnzH6wp.js} +1 -1
- package/dist/p-Bj28yqMD.js +1 -0
- package/dist/{p-CW7tw1Fb.js → p-C-cUL-aA.js} +1 -1
- package/dist/{p-DNTv2BQ5.js → p-C7ifjRCE.js} +1 -1
- package/dist/{p-JjN8U9B5.js → p-Ciw-O9qN.js} +1 -1
- package/dist/{p-BpQB6ncp.js → p-DiNad9Px.js} +1 -1
- package/dist/{p-CQH7eAs3.js → p-DoPuGtJd.js} +1 -1
- package/dist/{p-BQ-ZnlnH.js → p-Doi8Yizl.js} +1 -1
- package/dist/{p-BZCJlqVe.js → p-Jdpe4Sgj.js} +1 -1
- package/dist/{p-CP1wz2PI.js → p-bPPm7cuw.js} +1 -1
- package/dist/{p-DoCwI_bx.js → p-qb1aWgjh.js} +1 -1
- package/dist/{p-H1JIMJ2t.js → p-qrjEbv6g.js} +1 -1
- package/dist/{p-Cn3-K5eR.js → p-xITwQAMz.js} +1 -1
- package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
- package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
- package/dist/types/components.d.ts +123 -2
- package/dist-bundled/es/gids-action-bar.js +4 -4
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +3 -3
- package/dist-bundled/es/gids-calendar.js +33 -33
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +6 -6
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +10 -10
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +3 -3
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +19 -19
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-tab-item.js +100 -0
- package/dist-bundled/es/gids-tab.js +63 -0
- package/dist-bundled/es/gids-text-field.js +9 -9
- package/dist-bundled/es/gids-toggle-button.js +4 -4
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
- package/dist-bundled/es/{p-DfxTsSdZ-C2Afv1lS.js → p-5VIPb1eU-MCAo8JCp.js} +2 -2
- package/dist-bundled/es/{p-Db62Pz3n-DpQjwBYb.js → p-8tOn5SjU-D9rZ28cf.js} +10 -10
- package/dist-bundled/es/{p-V48JyMbP-Bx-0od-Z.js → p-B1Jgtjhu-B_VYp-ZP.js} +7 -7
- package/dist-bundled/es/{p-mZJdpfOo-DicbKil0.js → p-BYDimyG--DBCLrqDJ.js} +6 -6
- package/dist-bundled/es/{p-DPIK2ayL-DPEbctqo.js → p-BfnzH6wp-BfLC7Nak.js} +2 -2
- package/dist-bundled/es/{p-DmLoB2Dn-D-FSoCvI.js → p-Bj28yqMD-Dz1SWSqM.js} +6 -6
- package/dist-bundled/es/{p-CW7tw1Fb-DtJ5TwCU.js → p-C-cUL-aA-2jsvw-Lr.js} +11 -11
- package/dist-bundled/es/{p-DNTv2BQ5-Bwgd30mM.js → p-C7ifjRCE-CRlorwoN.js} +12 -12
- package/dist-bundled/es/{p-JjN8U9B5-GeWjfJBY.js → p-Ciw-O9qN-DkWfirFu.js} +4 -4
- package/dist-bundled/es/{p-BpQB6ncp-C2AWddf-.js → p-DiNad9Px-uOCMHqAq.js} +9 -9
- package/dist-bundled/es/{p-CQH7eAs3-BVowyVGn.js → p-DoPuGtJd-DYlbhh57.js} +2 -2
- package/dist-bundled/es/{p-BQ-ZnlnH-CUVdDHzX.js → p-Doi8Yizl-BszWK5Dq.js} +3 -3
- package/dist-bundled/es/{p-BZCJlqVe-BcSwze-q.js → p-Jdpe4Sgj-acwaxLtK.js} +5 -5
- package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
- package/dist-bundled/es/{p-CP1wz2PI-DhVAsHFS.js → p-bPPm7cuw-B-dtPJF9.js} +5 -5
- package/dist-bundled/es/{p-DoCwI_bx-BXHlZI7-.js → p-qb1aWgjh-CzmMPIME.js} +6 -6
- package/dist-bundled/es/{p-H1JIMJ2t-DEXp7M4I.js → p-qrjEbv6g-ITSp3ky_.js} +2 -2
- package/dist-bundled/es/{p-Cn3-K5eR-tQ1EOnDF.js → p-xITwQAMz-BMXjOAAQ.js} +12 -12
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- 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-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +5 -0
- package/dist-bundled/umd/gids-tab.umd.js +5 -0
- 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/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +20 -4
- package/dist/p-DmLoB2Dn.js +0 -1
- package/dist-bundled/es/p-UVmSPzTd-DiTxS9kW.js +0 -25
|
@@ -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 v=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(b.childNodes)).forEach((S=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&De(e.S)),i},De=e=>{_.i|=1;const t=e.closest(I.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&&(O(t,n,o??null),n["s-sh"]=void 0,K=!0)}_.i&=-2},Z=(e,t)=>{_.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"]===I&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==I&&n["s-ol"]&&(O(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}_.i&=-2},Ie=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===I&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,O(a,r,W(t))))},ze=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(q=!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.$),W=e=>e&&e["s-ol"]||e,L=(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?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),re(e,t,x),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,b,S=0,v=0,m=0,g=0,N=h.length-1,y=h[0],C=h[N],A=u.length-1,E=u[0],$=u[A];const ot=c.O==="template"?d.content:d;for(;S<=N&&v<=A;)if(y==null)y=h[++S];else if(C==null)C=h[--N];else if(E==null)E=u[++v];else if($==null)$=u[--A];else if(J(y,E,p))L(y,E,p),y=h[++S],E=u[++v];else if(J(C,$,p))L(C,$,p),C=h[--N],$=u[--A];else if(J(y,$,p))y.O!=="slot"&&$.O!=="slot"||Z(y.S.parentNode,!1),L(y,$,p),O(ot,y.S,C.S.nextSibling),y=h[++S],$=u[--A];else if(J(C,E,p))y.O!=="slot"&&$.O!=="slot"||Z(C.S.parentNode,!1),L(C,E,p),O(ot,C.S,y.S),C=h[--N],E=u[++v];else{for(m=-1,g=S;g<=N;++g)if(h[g]&&h[g].$!==null&&h[g].$===E.$){m=g;break}m>=0?(b=h[m],b.O!==E.O?f=Y(h&&h[v],c,m):(L(b,E,p),h[m]=void 0,f=b.S),E=u[++v]):(f=Y(h&&h[v],c,v),E=u[++v]),f&&O(W(y.S).parentNode,f,W(y.S))}S>N?Ie(d,u[A+1]==null?null:u[A+1].S,c,u,v,A):v>A&&ze(h,S,N)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!o&&n!==null&&ze(n,0,n.length-1),x&&r==="svg"&&(x=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],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(xe(t,r)){let a=j.find((l=>l.k===t));q=!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"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{xe(l.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}i.nodeType===1&&Re(i)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},vt=(e,t)=>{ce.push((()=>e(t)))},O=(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"]=H(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)},yt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===ht?t:z(null,null,t);if(I=l.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,F=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,L(h,u,o),_.i|=1,K){Re(u.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,O(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(O(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.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,O(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&_e(u.S),_.i&=-2,j.length=0,!F&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==I&&!f["s-sh"]){if(o&&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 b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],O(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),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.R);const o=()=>St(e,t);if(!t)return at(o);queueMicrotask((()=>{o()}))},St=(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=B(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Ge(n,(()=>B(s,"componentWillRender",void 0,o))),Ge(n,(()=>wt(e,s,t)))},Ge=(e,t)=>bt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,d=a.i,h=((c,u)=>{var p,f,b;const S=Ae(u),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,g=P.get(c=c.head||c);if(g||P.set(c,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=v;const N=(p=_._)!=null?p:(function(){var y,C,A;return(A=(C=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?A:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&u.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),C=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,C?.parentNode===c?C:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(m)}else c.append(m);1&u.i&&c.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=P.get(c);if(m||P.set(c,m=new Set),!m.has(S)){const g=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===g.CSSStyleSheet)N=v;else{N=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Nt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,yt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,o=t,s=e.R;B(o,"componentDidRender",void 0,t),64&e.i?B(o,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),B(o,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},_t=()=>{se((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},B=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},xt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=k(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){D(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},At=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&it.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=k(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=h?.H)==null||d.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Oe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:h}=R(i,a)||{};d&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,k(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=k(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),h.apply(this,[$e(c,l,!!(64&t.i))]),void He(this,a,c=32&l?this[a]:u.$hostElement$[a],t);He(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,d,h){_.jmp((()=>{var c;const u=a.get(l),p=k(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const g=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[C,A]]=Object.entries(y);g[C]!=null&&(128&m||1&A)&&g[C].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(i,u);S||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,d])=>31&d[0])).map((([l,d])=>{var h;const c=d[1]||l;return a.set(c,l),512&d[0]&&((h=t.C)==null||h.push([l,c])),c}))]))}}return e},Fe=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Oe(e.F),o.P=e.P,o.U=e.U,o.C=[];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,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&nt(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=k(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const r=k(i);if(!r)return;const a=r.o;if(1&r.i)We(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const b=Ae(h);V.has(b)||((S,v,m)=>{let g=V.get(S);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,V.set(S,g)})(b,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){D(u,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const r=k(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(i)&&P.delete(i),i.shadowRoot&&P.has(i.shadowRoot)&&P.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 ct.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),At(e,o,3)}catch(s){return D(s),e}},We=(e,t,o)=>{o&&w.document&&o.map((([s,n,i])=>{const r=Ot(w.document,e,s),a=Et(t,i),l=$t(s);_.ael(r,n,a,l),(t.V=t.V||[]).push((()=>_.rel(r,n,a,l)))}))},Et=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){D(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}const M=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Be=!1;M&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(M):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let he=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(M===void 0)return!1;const e=(()=>{if(M===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 ue!==void 0&&t!==he&&(he&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),he=t),M.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},Ue=()=>(Be||(Be=Ve()),M);function qe(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=qe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Ke(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qe(e))&&(s&&(s+=" "),s+=t);return s}const kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ke("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"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:o},s)=>Ke("gids-dot",{"gids-dot--disabled":o,"gids-dot--subtle":e==="subtle"&&!o,"gids-dot--static-inverse":e==="static-inverse"&&!o,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ye=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt 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(Ye)!==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(Ye,"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 ge=Symbol.for("GIDS"),Tt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Dt=e=>{const t=Tt().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function me(){return Dt("@ganpatiinfo/gids-web-shared")}function It(){return me().haveAssetPathsBeenSet()}function Ze(e){return me().getAssetFilePath(e)}function zt(e){return me().onAssetPathsSet(e)}let Rt=0;const Lt=(e,t="gids")=>e||`${t}-${Rt++}`,Je={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function Mt(e){return Qe.get(e)}function Xe(e,t="regular",o){const s=Mt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Gt}=kt,Ht=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let d=r;return d===void 0&&It()&&(d=Xe(e,o,Ze)),z("svg",{ref:h=>{d===void 0&&zt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Xe(u,p,Ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Gt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&z("title",{id:l},s||e),d!==void 0?z("use",{href:d}):null)},Ft=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return z(Ht,{key:"38a60d81d2e4682272e7892c137bad482b471f52",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function et(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ft))}))}et();const{getGidsDotClassNames:ve}=jt,tt=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return z("gids-icon",{key:"1bd6ab72dde2a54f1836483ea5990426c3bfc9f7",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function st(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,tt);break;case"gids-icon":customElements.get(e)||et()}}))}st();const Wt=tt,Bt=st;T.GidsDot=Wt,T.defineCustomElement=Bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(b.childNodes)).forEach((S=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&De(e.S)),i},De=e=>{_.i|=1;const t=e.closest(I.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&&(O(t,n,o??null),n["s-sh"]=void 0,K=!0)}_.i&=-2},Z=(e,t)=>{_.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"]===I&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==I&&n["s-ol"]&&(O(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}_.i&=-2},Ie=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===I&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,O(a,r,W(t))))},ze=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(q=!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.$),W=e=>e&&e["s-ol"]||e,L=(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?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),re(e,t,x),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,b,S=0,v=0,m=0,g=0,N=h.length-1,y=h[0],C=h[N],A=u.length-1,E=u[0],$=u[A];const ot=c.O==="template"?d.content:d;for(;S<=N&&v<=A;)if(y==null)y=h[++S];else if(C==null)C=h[--N];else if(E==null)E=u[++v];else if($==null)$=u[--A];else if(J(y,E,p))L(y,E,p),y=h[++S],E=u[++v];else if(J(C,$,p))L(C,$,p),C=h[--N],$=u[--A];else if(J(y,$,p))y.O!=="slot"&&$.O!=="slot"||Z(y.S.parentNode,!1),L(y,$,p),O(ot,y.S,C.S.nextSibling),y=h[++S],$=u[--A];else if(J(C,E,p))y.O!=="slot"&&$.O!=="slot"||Z(C.S.parentNode,!1),L(C,E,p),O(ot,C.S,y.S),C=h[--N],E=u[++v];else{for(m=-1,g=S;g<=N;++g)if(h[g]&&h[g].$!==null&&h[g].$===E.$){m=g;break}m>=0?(b=h[m],b.O!==E.O?f=Y(h&&h[v],c,m):(L(b,E,p),h[m]=void 0,f=b.S),E=u[++v]):(f=Y(h&&h[v],c,v),E=u[++v]),f&&O(W(y.S).parentNode,f,W(y.S))}S>N?Ie(d,u[A+1]==null?null:u[A+1].S,c,u,v,A):v>A&&ze(h,S,N)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!o&&n!==null&&ze(n,0,n.length-1),x&&r==="svg"&&(x=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],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(xe(t,r)){let a=j.find((l=>l.k===t));q=!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"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{xe(l.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}i.nodeType===1&&Re(i)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},vt=(e,t)=>{ce.push((()=>e(t)))},O=(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"]=H(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)},yt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===ht?t:z(null,null,t);if(I=l.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,F=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,L(h,u,o),_.i|=1,K){Re(u.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,O(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(O(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.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,O(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&_e(u.S),_.i&=-2,j.length=0,!F&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==I&&!f["s-sh"]){if(o&&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 b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],O(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),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.R);const o=()=>St(e,t);if(!t)return at(o);queueMicrotask((()=>{o()}))},St=(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=B(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Ge(n,(()=>B(s,"componentWillRender",void 0,o))),Ge(n,(()=>wt(e,s,t)))},Ge=(e,t)=>bt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,d=a.i,h=((c,u)=>{var p,f,b;const S=Ae(u),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,g=P.get(c=c.head||c);if(g||P.set(c,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=v;const N=(p=_._)!=null?p:(function(){var y,C,A;return(A=(C=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?A:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&u.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),C=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,C?.parentNode===c?C:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(m)}else c.append(m);1&u.i&&c.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=P.get(c);if(m||P.set(c,m=new Set),!m.has(S)){const g=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===g.CSSStyleSheet)N=v;else{N=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Nt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,yt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,o=t,s=e.R;B(o,"componentDidRender",void 0,t),64&e.i?B(o,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),B(o,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},_t=()=>{se((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},B=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},xt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=k(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){D(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},At=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&it.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=k(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=h?.H)==null||d.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Oe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:h}=R(i,a)||{};d&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,k(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=k(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),h.apply(this,[$e(c,l,!!(64&t.i))]),void He(this,a,c=32&l?this[a]:u.$hostElement$[a],t);He(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,d,h){_.jmp((()=>{var c;const u=a.get(l),p=k(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const g=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[C,A]]=Object.entries(y);g[C]!=null&&(128&m||1&A)&&g[C].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(i,u);S||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,d])=>31&d[0])).map((([l,d])=>{var h;const c=d[1]||l;return a.set(c,l),512&d[0]&&((h=t.C)==null||h.push([l,c])),c}))]))}}return e},Fe=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Oe(e.F),o.P=e.P,o.U=e.U,o.C=[];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,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&nt(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=k(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const r=k(i);if(!r)return;const a=r.o;if(1&r.i)We(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const b=Ae(h);V.has(b)||((S,v,m)=>{let g=V.get(S);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,V.set(S,g)})(b,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){D(u,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const r=k(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(i)&&P.delete(i),i.shadowRoot&&P.has(i.shadowRoot)&&P.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 ct.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),At(e,o,3)}catch(s){return D(s),e}},We=(e,t,o)=>{o&&w.document&&o.map((([s,n,i])=>{const r=Ot(w.document,e,s),a=Et(t,i),l=$t(s);_.ael(r,n,a,l),(t.V=t.V||[]).push((()=>_.rel(r,n,a,l)))}))},Et=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){D(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}const M=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Be=!1;M&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(M):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let he=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(M===void 0)return!1;const e=(()=>{if(M===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 ue!==void 0&&t!==he&&(he&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),he=t),M.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},Ue=()=>(Be||(Be=Ve()),M);function qe(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=qe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Ke(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qe(e))&&(s&&(s+=" "),s+=t);return s}const kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ke("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"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:o},s)=>Ke("gids-dot",{"gids-dot--disabled":o,"gids-dot--subtle":e==="subtle"&&!o,"gids-dot--static-inverse":e==="static-inverse"&&!o,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ye=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt 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(Ye)!==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(Ye,"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 ge=Symbol.for("GIDS"),Tt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Dt=e=>{const t=Tt().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function me(){return Dt("@ganpatiinfo/gids-web-shared")}function It(){return me().haveAssetPathsBeenSet()}function Ze(e){return me().getAssetFilePath(e)}function zt(e){return me().onAssetPathsSet(e)}let Rt=0;const Lt=(e,t="gids")=>e||`${t}-${Rt++}`,Je={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function Mt(e){return Qe.get(e)}function Xe(e,t="regular",o){const s=Mt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Gt}=kt,Ht=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let d=r;return d===void 0&&It()&&(d=Xe(e,o,Ze)),z("svg",{ref:h=>{d===void 0&&zt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Xe(u,p,Ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Gt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&z("title",{id:l},s||e),d!==void 0?z("use",{href:d}):null)},Ft=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return z(Ht,{key:"cb54fb7ca0ded77690f44cbf794b2e192cf9c681",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function et(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ft))}))}et();const{getGidsDotClassNames:ve}=jt,tt=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return z("gids-icon",{key:"480701db1853f39d641ed1b1478644f90202bad6",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function st(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,tt);break;case"gids-icon":customElements.get(e)||et()}}))}st();const Wt=tt,Bt=st;T.GidsDot=Wt,T.defineCustomElement=Bt,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:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{f===H(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),fe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let f,S,_=0,y=0,v=0,m=0,w=h.length-1,b=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;_<=w&&y<=k;)if(b==null)b=h[++_];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(mt,b.S,E.S.nextSibling),b=h[++_],A=u[--k];else if(Q(E,L,g))b.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,b.S),E=h[--w],L=u[++y];else{for(v=-1,m=_;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?f=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,f=S.S),L=u[++y]):(f=X(h&&h[y],d,y),L=u[++y]),f&&T(q(b.S).parentNode,f,q(b.S))}_>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:p(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,f])=>{u.v[f]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const f=g.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,s)}}for(const g of V){const f=g.k,S=g.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(_,f,y,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=f["s-hn"],v["s-sn"]=f["s-sn"],v["s-sh"]=f["s-sh"],v["s-sr"]=f["s-sr"],v["s-ol"]=f["s-ol"],v["s-ol"]["s-nr"]=v,T(f.parentNode,v,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const f of g)if(f["s-hn"]!==F&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(r=f.hidden)!=null&&r),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}he=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,f,S;const _=$e(u),y=z.get(_);if(!x.document)return _;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var b,E,k;return(k=(E=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),E=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)w.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[E,k]]=Object.entries(b);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const f=a.find((([v])=>v===u)),S=f&&4&f[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{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 f;typeof d.style=="string"&&(f=d.style);const S=$e(h);z.has(S)||((_,y,v)=>{let m=z.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(_,m)})(S,f,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>bt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("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"})),Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Ut=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?Ut(e):e,Kt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,Yt=te/2,ve=2*Math.PI*tt,Jt=`0 0 ${te} ${te}`,Xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Yt,circumference:ve,radius:tt,thickness:et,viewBox:Jt},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),ts=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=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&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Kt,{getGidsLabelClassNames:ds}=Gt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return p("div",{class:ds({disabled:e},r),...c},p("label",{htmlFor:o,id:a},h,d&&p("span",{class:"gids-label__field-requirement"},d)),i)},ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Wt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),p("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",at(u,g,nt)),d.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&p("title",{id:l},n||e),c!==void 0?p("use",{href:c}):null)},{getGidsSpinnerControlClassNames:fs}=qt,{calculateStrokeDasharray:ps,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Xt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:ps(s,n||0),strokeDashoffset:"0"}),p("svg",{class:fs({size:e,indeterminate:t,value:s}),viewBox:gs,...i},p("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),p("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(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 p(jt,{key:"013d4a68291d4a3897246142cd611a2bc442d6a3"},p("slot",{key:"97f0d9030c5061b219cc35c409820b81e3d4098a",name:"leadingIcon"}),this.leadingLabel&&p("span",{key:"2f8726384a877b0bee51579661f66f6e3da811e1",class:"gids-input__label"},this.leadingLabel),p("slot",{key:"4843ddf9a10afba03ec0a552fd61cfddd3470749",name:"leadingAccessory"}),p("input",{key:"657559522ac7908ebb5dc27992cb50eb69d1fbd8",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),p("slot",{key:"c80c3ce3bf17f60e8f773b9c2f5dc25dacdf5446",name:"trailingAccessory"}),this.trailingLabel&&p("span",{key:"f9ba8d097b660cdeaeacc0ac1ba970d3fa839fcc",class:"gids-input__label"},this.trailingLabel),p("slot",{key:"35116e82425db12c08580460ac9c84f89faec71e",name:"trailingIcon"}),this.status==="incomplete"&&p(se,{key:"2634986e80dfbbfb98b5a4dd95829e6af3b229a0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&p(se,{key:"63ab6b357df47d2d96ad6d3d33f22ab7864f395e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&p(ms,{key:"1eb7af66b5005a6f8dea895c00f100e7cc6e7548",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 xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:bs}=Qt,Ee="gids-dropdown-item--active",_s=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:n.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=p("button",{key:"7308fb3cd3804b1945e023107018d16bafd166b3",class:bs({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},p("span",{key:"39816bde9d3e2e43f3f0b19bd6abda300e1362c4",class:"gids-button__content"},p(se,{key:"95d25d7a9f0b9e0ee2f7dcd9bad178580198184b",name:"chevron-vertical",alt:""})));return p("div",{key:"c86f983fe0481939441ef4750ac3af7f41ba1334",class:t},p("gids-input",{key:"00f171ce20bd3dca41c799993259e19c86ad9df5",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&p("slot",{key:"fbeb48c6376fb0d35f989bbc97bb7b186a237029",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&p("slot",{key:"32bd6bea5335946f1e78efe067be89dead314ea9",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),p("div",{key:"0ea93131baf32b00593992131a4eb866a87af1bf",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},p("slot",{key:"d2b232c3a364e9e467340b45f4ad08e9b5431cf7"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Zt,Es=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ss();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return p(De,{key:"f830ae3da5de21c80d9fd5b7161fa3f2845a82df"},p("div",{key:"8c6c4af1b4ebe897873a49c42975a8730905cf27",class:xs()},p("div",{key:"3afa55c23b729296ff65fb03b501919dcaa420d3",class:"gids-field__header",hidden:!this._hasLabelContent()},p("slot",{key:"6d8c9adf2b04d19a446fdd2707259d931dbc2eb9",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),p("div",{key:"46cc09d9414bb88622f95e7ccffba84b602b25f0",class:"gids-field__count","aria-live":"polite"},this.count)),p("div",{key:"0e6ddf85cf459c53f2cfc5f453cd4fe35e532d9b",class:"gids-field__control"},p("slot",{key:"d2d007d50a5f7001872b368dee5d648a8751c1af",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),p("p",{key:"09e08e474051efd8bb9e526311cd8d3bb14f8671",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?p("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?p("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),p(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ft(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}ft();const pt=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return p("gids-field",{key:"e6a0a13ea0e4af7eed1fe4fdf4a75a0cc2e25781",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?p(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,p("gids-dropdown",{key:"8bc3cc97ae4c0aca628ec4b23886084e1e640235",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},p("slot",{key:"fc99a57e26453a285f0f0b9f229b6cd51807308d",name:"leadingIconDropdown"}),p("slot",{key:"97ef4d59ff8b845879ac34f3b32e47f8e8174fd2",name:"leadingAccessoryDropdown"}),p("slot",{key:"0b61c948bf3e1419e4db201fb3b659666e112fbf"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||ft();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=pt,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{f===H(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),fe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let f,S,_=0,y=0,v=0,m=0,w=h.length-1,b=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;_<=w&&y<=k;)if(b==null)b=h[++_];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(mt,b.S,E.S.nextSibling),b=h[++_],A=u[--k];else if(Q(E,L,g))b.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,b.S),E=h[--w],L=u[++y];else{for(v=-1,m=_;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?f=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,f=S.S),L=u[++y]):(f=X(h&&h[y],d,y),L=u[++y]),f&&T(q(b.S).parentNode,f,q(b.S))}_>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:p(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,f])=>{u.v[f]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const f=g.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,s)}}for(const g of V){const f=g.k,S=g.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(_,f,y,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=f["s-hn"],v["s-sn"]=f["s-sn"],v["s-sh"]=f["s-sh"],v["s-sr"]=f["s-sr"],v["s-ol"]=f["s-ol"],v["s-ol"]["s-nr"]=v,T(f.parentNode,v,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const f of g)if(f["s-hn"]!==F&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(r=f.hidden)!=null&&r),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}he=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,f,S;const _=$e(u),y=z.get(_);if(!x.document)return _;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var b,E,k;return(k=(E=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),E=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)w.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[E,k]]=Object.entries(b);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const f=a.find((([v])=>v===u)),S=f&&4&f[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{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 f;typeof d.style=="string"&&(f=d.style);const S=$e(h);z.has(S)||((_,y,v)=>{let m=z.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(_,m)})(S,f,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>bt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("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"})),Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Ut=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?Ut(e):e,Kt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,Yt=te/2,ve=2*Math.PI*tt,Jt=`0 0 ${te} ${te}`,Xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Yt,circumference:ve,radius:tt,thickness:et,viewBox:Jt},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),ts=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=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&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Kt,{getGidsLabelClassNames:ds}=Gt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return p("div",{class:ds({disabled:e},r),...c},p("label",{htmlFor:o,id:a},h,d&&p("span",{class:"gids-label__field-requirement"},d)),i)},ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Wt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),p("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",at(u,g,nt)),d.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&p("title",{id:l},n||e),c!==void 0?p("use",{href:c}):null)},{getGidsSpinnerControlClassNames:fs}=qt,{calculateStrokeDasharray:ps,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Xt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:ps(s,n||0),strokeDashoffset:"0"}),p("svg",{class:fs({size:e,indeterminate:t,value:s}),viewBox:gs,...i},p("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),p("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(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 p(jt,{key:"94b08611da249786439b37e6ea7961ea3e5ee851"},p("slot",{key:"d334ee7f99214b10ddecafcbc9a8a851723eba89",name:"leadingIcon"}),this.leadingLabel&&p("span",{key:"8c650986f8a51f563f2499d9f68704702d67d3d6",class:"gids-input__label"},this.leadingLabel),p("slot",{key:"d6f6f0f53e0af2b3de306fbb4bda2b4199567060",name:"leadingAccessory"}),p("input",{key:"8429cdabbbc2034cac2d76cc72fa5e40298d5ec7",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),p("slot",{key:"aa7a6d1b0551a88801ef75da893ecf41e1eaafa8",name:"trailingAccessory"}),this.trailingLabel&&p("span",{key:"5f683d6c71ef3802c3749959b921b9046c168437",class:"gids-input__label"},this.trailingLabel),p("slot",{key:"b7d26fe16f35c0147b7b1a34dd41cd0f85ed5ab5",name:"trailingIcon"}),this.status==="incomplete"&&p(se,{key:"66f1da3df7907675feace05c11e2e31e892d6251",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&p(se,{key:"3fc74b5623174d2a321a5367854ff180bde2cd9f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&p(ms,{key:"ceb78121856acade2513cffcae16170d91a3fb74",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 xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:bs}=Qt,Ee="gids-dropdown-item--active",_s=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:n.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=p("button",{key:"c4482da12927a1e47e6ef8aeaa8948d928f44c82",class:bs({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},p("span",{key:"19b889b60ea764f63f885092201e950b35d78a45",class:"gids-button__content"},p(se,{key:"0ac5ccbd16fc7bd223f45107ede23aa698c1f4b1",name:"chevron-vertical",alt:""})));return p("div",{key:"5e1ecfa73b2790753739dfb374a4220b9470dc5b",class:t},p("gids-input",{key:"945e19939a10b6c3415c6794f6d594d8c6e4288e",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&p("slot",{key:"3f73972a3e445cb40bfdb1a319e7f2094a100ec6",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&p("slot",{key:"2c53bfbd7fa8dd1cb03295bf6994c5ebabfd4c3b",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),p("div",{key:"b09e3a03faba23b1fa1b641543803322d05d6cc6",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},p("slot",{key:"90acae2dad52ae43ddada1acc294d8b5291ab668"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Zt,Es=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ss();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return p(De,{key:"55afcede8d0a565f98b1cdd20293c9f885997d6c"},p("div",{key:"4c9ce99475a4c38e5b8c62b2bef588eb48fcec28",class:xs()},p("div",{key:"4c254203e9d4414e59c2564e86119280a7f89186",class:"gids-field__header",hidden:!this._hasLabelContent()},p("slot",{key:"3f8c6df5ac4098e821490edf0699d002ee8ca430",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),p("div",{key:"c2da3ba663158c54514d959e98ad2861fc64bd57",class:"gids-field__count","aria-live":"polite"},this.count)),p("div",{key:"da5091c74fb3df1146b4eecb4d7ee6537a322f32",class:"gids-field__control"},p("slot",{key:"bc49fb537279473305d616f900d5df696d9c2c3c",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),p("p",{key:"326849f878b531e4695368f1f112ce6d36c3ef4d",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?p("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?p("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),p(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ft(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}ft();const pt=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return p("gids-field",{key:"fb0965fc37a06b9937a6806516c7cddedadfe125",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?p(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,p("gids-dropdown",{key:"8ccb36c6505cd9363f1f4334bc2a2be7e7045f52",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},p("slot",{key:"21bb6152c67fd767f8a55b7134d1eced8ae0516f",name:"leadingIconDropdown"}),p("slot",{key:"8b06bf5e9ac9f787b74ed6603a37c953fae67fe0",name:"leadingAccessoryDropdown"}),p("slot",{key:"9d653e38ecebdc233614f00a03fdaead3cf17fc7"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||ft();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=pt,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,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 v=[];for(let g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(b.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[n],a&&a.O===o.O&&e.S&&De(e.S)),i},De=e=>{x.i|=1;const t=e.closest(j.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&&(O(t,o,n??null),o["s-sh"]=void 0,U=!0)}x.i&=-2},Y=(e,t)=>{x.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"]===j&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==j&&o["s-ol"]&&(O(V(o).parentNode,o,V(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,U=!0),t&&Y(o,t)}x.i&=-2},Ie=(e,t,n,s,o,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);o<=i;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,O(a,l,V(t))))},Te=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Me(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,F=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,l=t.O,a=t.h;let r;a==null?(_=l==="svg"||l!=="foreignObject"&&_,l!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,_),o!==null&&i!==null?((d,u,c,h,f=!1)=>{let p,b,S=0,v=0,g=0,m=0,E=u.length-1,y=u[0],k=u[E],C=h.length-1,P=h[0],$=h[C];const tt=c.O==="template"?d.content:d;for(;S<=E&&v<=C;)if(y==null)y=u[++S];else if(k==null)k=u[--E];else if(P==null)P=h[++v];else if($==null)$=h[--C];else if(Z(y,P,f))F(y,P,f),y=u[++S],P=h[++v];else if(Z(k,$,f))F(k,$,f),k=u[--E],$=h[--C];else if(Z(y,$,f))y.O!=="slot"&&$.O!=="slot"||Y(y.S.parentNode,!1),F(y,$,f),O(tt,y.S,k.S.nextSibling),y=u[++S],$=h[--C];else if(Z(k,P,f))y.O!=="slot"&&$.O!=="slot"||Y(k.S.parentNode,!1),F(k,P,f),O(tt,k.S,y.S),k=u[--E],P=h[++v];else{for(g=-1,m=S;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===P.$){g=m;break}g>=0?(b=u[g],b.O!==P.O?p=K(u&&u[v],c,g):(F(b,P,f),u[g]=void 0,p=b.S),P=h[++v]):(p=K(u&&u[v],c,v),P=h[++v]),p&&O(V(y.S).parentNode,p,V(y.S))}S>E?Ie(d,h[C+1]==null?null:h[C+1].S,c,h,v,C):v>C&&Te(u,S,E)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!n&&o!==null&&Te(o,0,o.length-1),_&&l==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},L=[],je=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const i of o){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,l)){let a=L.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],L.push({N:i,k:t})),t["s-sr"]&&L.map((r=>{xe(r.k,t["s-sn"])&&(a=L.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else L.some((a=>a.k===t))||L.push({k:t})}i.nodeType===1&&je(i)}},Me=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},gt=(e,t)=>{he.push((()=>e(t)))},O=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=B(i)||"";return{slotNode:ie(re(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},vt=(e,t,n=!1)=>{var s,o,i,l,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const h=(c=t)&&c.O===dt?t:N(null,null,t);if(j=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([f,p])=>{h.v[p]=r[f]}))),n&&h.v)for(const f of Object.keys(h.v))r.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(h.v[f]=r[f]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,G=!(!(1&d.i)||128&d.i),le=r["s-cr"],q=!1,F(u,h,n),x.i|=1,U){je(h.S);for(const f of L){const p=f.k;if(!p["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=p,O(p.parentNode,p["s-ol"]=b,p,n)}}for(const f of L){const p=f.k,b=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(o=p["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if(O(S,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=p["s-hn"],g["s-sn"]=p["s-sn"],g["s-sh"]=p["s-sh"],g["s-sr"]=p["s-sr"],g["s-ol"]=p["s-ol"],g["s-ol"]["s-nr"]=g,O(p.parentNode,g,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(l=p["s-ih"])!=null&&l)}p&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Ee(h.S),x.i&=-2,L.length=0,!G&&!(1&d.i)&&r["s-cr"]){const f=h.S.__childNodes||h.S.childNodes;for(const p of f)if(p["s-hn"]!==j&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(a=p.hidden)!=null&&a),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const b=w.document.createComment("s-nt-"+p.nodeValue);b["s-sn"]=p["s-sn"],O(p.parentNode,b,p,n),p.parentNode.removeChild(p)}}}le=void 0,de.forEach((f=>f())),de.length=0,he.forEach((f=>f())),he.length=0},Fe=(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);Fe(e,e.R);const n=()=>yt(e,t);if(!t)return lt(n);queueMicrotask((()=>{n()}))},yt=(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=Re(o,(()=>H(s,"componentWillRender",void 0,n))),Re(o,(()=>St(e,s,t)))},Re=(e,t)=>bt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=async(e,t,n)=>{var s;const o=e.$hostElement$,i=o["s-rc"];n&&(l=>{const a=l.o,r=l.$hostElement$,d=a.i,u=((c,h)=>{var f,p,b;const S=Ne(h),v=W.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=D.get(c=c.head||c);if(m||D.set(c,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=v;const E=(f=x._)!=null?f:(function(){var y,k,C;return(C=(k=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?C:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),k=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,k?.parentNode===c?k:null)}else if("host"in c)if(ee){const y=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&h.i&&c.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=D.get(c);if(g||D.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let E;if(v.constructor===m.CSSStyleSheet)E=v;else{E=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)E.insertRule(v.cssRules[y].cssText,y)}te?c.adoptedStyleSheets.push(E):c.adoptedStyleSheets=[...c.adoptedStyleSheets,E],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),wt(e,t,o,n),i&&(i.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],a=()=>kt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},wt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(o){T(o,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||Et()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ue(e,!1))),e.i&=-517},Et=()=>{oe((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){T(o,s)}},xt=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=A(e);if(!o)return;const i=e,l=o.l.get(t),a=o.i,r=i;n=Pe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,f]]=Object.entries(c);(128&a||1&f)&&(r?r[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){T(h,i)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&a))return;16&a||ue(o,!1)}}},Nt=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&nt.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((h=>{const f=h[l];typeof f=="function"&&f.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(i,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const h=A(this);if(h){if(u)return(32&r?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[Pe(c,r,!!(64&t.i))]),void Be(this,a,c=32&r?this[a]:h.$hostElement$[a],t);Be(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(r,d,u){x.jmp((()=>{var c;const h=a.get(r),f=A(this);if(this.hasOwnProperty(h),i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=f?.i;if(f&&g&&!(8&g)&&u!==d){const m=this,E=(c=t.F)==null?void 0:c[r];E?.forEach((y=>{const[[k,C]]=Object.entries(y);m[k]!=null&&(128&g||1&C)&&m[k].call(m,u,d,r)}))}return}const p=l.find((([g])=>g===h)),b=p&&4&p[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...l.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},_t=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const r=a;i.__stencil__getHostRef=()=>r,512&l.i&&st(i,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;Ge(this,i,n.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&x.i)){const l=A(i);if(!l)return;const a=l.o;if(1&l.i)Ge(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(r,d,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){Fe(l,l.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[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 p;typeof c.style=="string"&&(p=c.style);const b=Ne(u);W.has(b)||((S,v,g)=>{let m=W.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(S,m)})(b,p,!!(1&u.i))}const h=d.R,f=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(f):f()}catch(h){T(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(i,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&x.i)){const l=A(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}D.has(i)&&D.delete(i),i.shadowRoot&&D.has(i.shadowRoot)&&D.delete(i.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 at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Nt(e,n,3)}catch(s){return T(s),e}},Ge=(e,t,n)=>{n&&w.document&&n.map((([s,o,i])=>{const l=Pt(w.document,e,s),a=Ct(t,i),r=Ot(s);x.ael(l,o,a,r),(t.V=t.V||[]).push((()=>x.rel(l,o,a,r)))}))},Ct=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Pt=(e,t,n)=>8&n?w:t,Ot=e=>it?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ss(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 J(){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 $t=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>J("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"})),At=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("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"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:o,loading:i},l,a)=>J("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!o,"gids-button--positive":o&&!s,"gids-button--icon-only":l,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),Q=64,He=10,We=Q/2-He/2,Dt=Q/2,pe=2*Math.PI*We,It=`0 0 ${Q} ${Q}`,Tt=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,i=(pe*o/100).toFixed(2),l=(pe-parseFloat(i)).toFixed(2);return`${i} ${l}`},centerPosition:Dt,circumference:pe,radius:We,thickness:He,viewBox:It},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>J("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),ze=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#t(ze)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(ze,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Ft=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Ft().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Bt(){return ve().haveAssetPathsBeenSet()}function qe(e){return ve().getAssetFilePath(e)}function Gt(e){return ve().onAssetPathsSet(e)}let Vt=0;const Ht=(e,t="gids")=>e||`${t}-${Vt++}`,Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Wt}=$t,{calculateStrokeDasharray:zt,thickness:Ke,radius:Ye,centerPosition:X,viewBox:qt}=Tt,Ut=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:zt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Wt({size:e,indeterminate:t,value:n}),viewBox:qt,...o},N("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":Ke}),N("circle",{style:i,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":Ke}))},{getGidsButtonClassNames:Kt}=Lt,Yt=({appearance:e,size:t,destructive:n,positive:s,loading:o,width:i,leadingIcon:l,trailingIcon:a,as:r,disabled:d,class:u,forceIconOnly:c=!1,...h},f)=>{const p=r||"button",b=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in h||(h.type="button"),N(p,{class:Kt({appearance:e,size:t,destructive:n,loading:o,width:i,positive:s},c||f.length===0&&Ue(l)&&!Ue(a),u),disabled:p==="button"?d:void 0,...h},N("span",{class:"gids-button__content"},l,f),o&&N(Ut,{size:b,indeterminate:!0}),a)},Ze={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Je=new Map;for(const e in Ze)for(const t of Ze[e])Je.set(t,e);function Zt(e){return Je.get(e)}function Qe(e,t="regular",n){const s=Zt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Jt}=At,Qt=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:l,...a})=>{const r=Ht(i);let d=l;return d===void 0&&Bt()&&(d=Qe(e,n,qe)),N("svg",{ref:u=>{d===void 0&&Gt((()=>{(function(c,h,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(h,f,qe)),c.appendChild(p)})(u,e,n)}))},width:"16",height:"16",class:Jt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&N("title",{id:r},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsDropdownPickerClassNames:Xt}=jt,Xe=_t(class extends ot{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:n,title:s,disabled:o,id:i,isPlaceholderItem:l}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:i,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:l}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const o=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof o!="string"||o.length===0)return;const i=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof i!="string"||i.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:i,value:o,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Xt({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return N("div",{key:"fd8821be1aecb1e5ba7f725d9ebec0f6222a16cd",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},N(Yt,{key:"63016b4e74dfeaa3f9c29139f69a2d46ca97ae76",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?N("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):N(Qt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),N("div",{key:"4f463a8f04de48e3b8b6ceeab69c90cbc8ba7631",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},N("slot",{key:"1fab2b1bd8cd2bcd0fd7031712d0585635620be1"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function et(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,Xe))}))}et();const es=Xe,ts=et;I.GidsDropdownPicker=es,I.defineCustomElement=ts,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(b.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[n],a&&a.O===o.O&&e.S&&De(e.S)),i},De=e=>{x.i|=1;const t=e.closest(j.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&&(O(t,o,n??null),o["s-sh"]=void 0,U=!0)}x.i&=-2},Y=(e,t)=>{x.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"]===j&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==j&&o["s-ol"]&&(O(V(o).parentNode,o,V(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,U=!0),t&&Y(o,t)}x.i&=-2},Ie=(e,t,n,s,o,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);o<=i;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,O(a,l,V(t))))},Te=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Me(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,F=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,l=t.O,a=t.h;let r;a==null?(_=l==="svg"||l!=="foreignObject"&&_,l!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,_),o!==null&&i!==null?((d,u,c,h,f=!1)=>{let p,b,S=0,v=0,g=0,m=0,E=u.length-1,y=u[0],k=u[E],C=h.length-1,P=h[0],$=h[C];const tt=c.O==="template"?d.content:d;for(;S<=E&&v<=C;)if(y==null)y=u[++S];else if(k==null)k=u[--E];else if(P==null)P=h[++v];else if($==null)$=h[--C];else if(Z(y,P,f))F(y,P,f),y=u[++S],P=h[++v];else if(Z(k,$,f))F(k,$,f),k=u[--E],$=h[--C];else if(Z(y,$,f))y.O!=="slot"&&$.O!=="slot"||Y(y.S.parentNode,!1),F(y,$,f),O(tt,y.S,k.S.nextSibling),y=u[++S],$=h[--C];else if(Z(k,P,f))y.O!=="slot"&&$.O!=="slot"||Y(k.S.parentNode,!1),F(k,P,f),O(tt,k.S,y.S),k=u[--E],P=h[++v];else{for(g=-1,m=S;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===P.$){g=m;break}g>=0?(b=u[g],b.O!==P.O?p=K(u&&u[v],c,g):(F(b,P,f),u[g]=void 0,p=b.S),P=h[++v]):(p=K(u&&u[v],c,v),P=h[++v]),p&&O(V(y.S).parentNode,p,V(y.S))}S>E?Ie(d,h[C+1]==null?null:h[C+1].S,c,h,v,C):v>C&&Te(u,S,E)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!n&&o!==null&&Te(o,0,o.length-1),_&&l==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},L=[],je=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const i of o){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,l)){let a=L.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],L.push({N:i,k:t})),t["s-sr"]&&L.map((r=>{xe(r.k,t["s-sn"])&&(a=L.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else L.some((a=>a.k===t))||L.push({k:t})}i.nodeType===1&&je(i)}},Me=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},gt=(e,t)=>{he.push((()=>e(t)))},O=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=B(i)||"";return{slotNode:ie(re(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},vt=(e,t,n=!1)=>{var s,o,i,l,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const h=(c=t)&&c.O===dt?t:N(null,null,t);if(j=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([f,p])=>{h.v[p]=r[f]}))),n&&h.v)for(const f of Object.keys(h.v))r.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(h.v[f]=r[f]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,G=!(!(1&d.i)||128&d.i),le=r["s-cr"],q=!1,F(u,h,n),x.i|=1,U){je(h.S);for(const f of L){const p=f.k;if(!p["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=p,O(p.parentNode,p["s-ol"]=b,p,n)}}for(const f of L){const p=f.k,b=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(o=p["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if(O(S,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=p["s-hn"],g["s-sn"]=p["s-sn"],g["s-sh"]=p["s-sh"],g["s-sr"]=p["s-sr"],g["s-ol"]=p["s-ol"],g["s-ol"]["s-nr"]=g,O(p.parentNode,g,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(l=p["s-ih"])!=null&&l)}p&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Ee(h.S),x.i&=-2,L.length=0,!G&&!(1&d.i)&&r["s-cr"]){const f=h.S.__childNodes||h.S.childNodes;for(const p of f)if(p["s-hn"]!==j&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(a=p.hidden)!=null&&a),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const b=w.document.createComment("s-nt-"+p.nodeValue);b["s-sn"]=p["s-sn"],O(p.parentNode,b,p,n),p.parentNode.removeChild(p)}}}le=void 0,de.forEach((f=>f())),de.length=0,he.forEach((f=>f())),he.length=0},Fe=(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);Fe(e,e.R);const n=()=>yt(e,t);if(!t)return lt(n);queueMicrotask((()=>{n()}))},yt=(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=Re(o,(()=>H(s,"componentWillRender",void 0,n))),Re(o,(()=>St(e,s,t)))},Re=(e,t)=>bt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=async(e,t,n)=>{var s;const o=e.$hostElement$,i=o["s-rc"];n&&(l=>{const a=l.o,r=l.$hostElement$,d=a.i,u=((c,h)=>{var f,p,b;const S=Ne(h),v=W.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=D.get(c=c.head||c);if(m||D.set(c,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=v;const E=(f=x._)!=null?f:(function(){var y,k,C;return(C=(k=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?C:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),k=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,k?.parentNode===c?k:null)}else if("host"in c)if(ee){const y=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&h.i&&c.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=D.get(c);if(g||D.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let E;if(v.constructor===m.CSSStyleSheet)E=v;else{E=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)E.insertRule(v.cssRules[y].cssText,y)}te?c.adoptedStyleSheets.push(E):c.adoptedStyleSheets=[...c.adoptedStyleSheets,E],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),wt(e,t,o,n),i&&(i.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],a=()=>kt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},wt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(o){T(o,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||Et()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ue(e,!1))),e.i&=-517},Et=()=>{oe((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){T(o,s)}},xt=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=A(e);if(!o)return;const i=e,l=o.l.get(t),a=o.i,r=i;n=Pe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,f]]=Object.entries(c);(128&a||1&f)&&(r?r[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){T(h,i)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&a))return;16&a||ue(o,!1)}}},Nt=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&nt.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((h=>{const f=h[l];typeof f=="function"&&f.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(i,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const h=A(this);if(h){if(u)return(32&r?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[Pe(c,r,!!(64&t.i))]),void Be(this,a,c=32&r?this[a]:h.$hostElement$[a],t);Be(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(r,d,u){x.jmp((()=>{var c;const h=a.get(r),f=A(this);if(this.hasOwnProperty(h),i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=f?.i;if(f&&g&&!(8&g)&&u!==d){const m=this,E=(c=t.F)==null?void 0:c[r];E?.forEach((y=>{const[[k,C]]=Object.entries(y);m[k]!=null&&(128&g||1&C)&&m[k].call(m,u,d,r)}))}return}const p=l.find((([g])=>g===h)),b=p&&4&p[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...l.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},_t=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const r=a;i.__stencil__getHostRef=()=>r,512&l.i&&st(i,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;Ge(this,i,n.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&x.i)){const l=A(i);if(!l)return;const a=l.o;if(1&l.i)Ge(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(r,d,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){Fe(l,l.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[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 p;typeof c.style=="string"&&(p=c.style);const b=Ne(u);W.has(b)||((S,v,g)=>{let m=W.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(S,m)})(b,p,!!(1&u.i))}const h=d.R,f=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(f):f()}catch(h){T(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(i,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&x.i)){const l=A(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}D.has(i)&&D.delete(i),i.shadowRoot&&D.has(i.shadowRoot)&&D.delete(i.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 at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Nt(e,n,3)}catch(s){return T(s),e}},Ge=(e,t,n)=>{n&&w.document&&n.map((([s,o,i])=>{const l=Pt(w.document,e,s),a=Ct(t,i),r=Ot(s);x.ael(l,o,a,r),(t.V=t.V||[]).push((()=>x.rel(l,o,a,r)))}))},Ct=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Pt=(e,t,n)=>8&n?w:t,Ot=e=>it?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ss(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 J(){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 $t=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>J("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"})),At=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("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"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:o,loading:i},l,a)=>J("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!o,"gids-button--positive":o&&!s,"gids-button--icon-only":l,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),Q=64,He=10,We=Q/2-He/2,Dt=Q/2,pe=2*Math.PI*We,It=`0 0 ${Q} ${Q}`,Tt=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,i=(pe*o/100).toFixed(2),l=(pe-parseFloat(i)).toFixed(2);return`${i} ${l}`},centerPosition:Dt,circumference:pe,radius:We,thickness:He,viewBox:It},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>J("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),ze=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#t(ze)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(ze,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Ft=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Ft().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Bt(){return ve().haveAssetPathsBeenSet()}function qe(e){return ve().getAssetFilePath(e)}function Gt(e){return ve().onAssetPathsSet(e)}let Vt=0;const Ht=(e,t="gids")=>e||`${t}-${Vt++}`,Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Wt}=$t,{calculateStrokeDasharray:zt,thickness:Ke,radius:Ye,centerPosition:X,viewBox:qt}=Tt,Ut=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:zt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Wt({size:e,indeterminate:t,value:n}),viewBox:qt,...o},N("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":Ke}),N("circle",{style:i,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":Ke}))},{getGidsButtonClassNames:Kt}=Lt,Yt=({appearance:e,size:t,destructive:n,positive:s,loading:o,width:i,leadingIcon:l,trailingIcon:a,as:r,disabled:d,class:u,forceIconOnly:c=!1,...h},f)=>{const p=r||"button",b=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in h||(h.type="button"),N(p,{class:Kt({appearance:e,size:t,destructive:n,loading:o,width:i,positive:s},c||f.length===0&&Ue(l)&&!Ue(a),u),disabled:p==="button"?d:void 0,...h},N("span",{class:"gids-button__content"},l,f),o&&N(Ut,{size:b,indeterminate:!0}),a)},Ze={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Je=new Map;for(const e in Ze)for(const t of Ze[e])Je.set(t,e);function Zt(e){return Je.get(e)}function Qe(e,t="regular",n){const s=Zt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Jt}=At,Qt=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:l,...a})=>{const r=Ht(i);let d=l;return d===void 0&&Bt()&&(d=Qe(e,n,qe)),N("svg",{ref:u=>{d===void 0&&Gt((()=>{(function(c,h,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(h,f,qe)),c.appendChild(p)})(u,e,n)}))},width:"16",height:"16",class:Jt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&N("title",{id:r},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsDropdownPickerClassNames:Xt}=jt,Xe=_t(class extends ot{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:n,title:s,disabled:o,id:i,isPlaceholderItem:l}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:i,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:l}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const o=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof o!="string"||o.length===0)return;const i=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof i!="string"||i.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:i,value:o,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Xt({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return N("div",{key:"1ee449ed3c2d93b14e4b2df8d535bd30e580fb0f",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},N(Yt,{key:"e566f446f656a90c51ff25206d1b56918641904c",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?N("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):N(Qt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),N("div",{key:"ff00f5d0f0ecd11fd67ba8748f983a0444400c50",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},N("slot",{key:"ea983b061c69295bc6756a44617cc35267d6ce70"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function et(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,Xe))}))}et();const es=Xe,ts=et;I.GidsDropdownPicker=es,I.defineCustomElement=ts,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|