@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.
Files changed (140) hide show
  1. package/dist/css/index.css +201 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.js +1 -1
  4. package/dist/gids-activity-gauge.js +1 -1
  5. package/dist/gids-bar-chart.js +1 -1
  6. package/dist/gids-calendar-header-panel.js +1 -1
  7. package/dist/gids-calendar-month-list.js +1 -1
  8. package/dist/gids-calendar-year-list.js +1 -1
  9. package/dist/gids-calendar.js +1 -1
  10. package/dist/gids-chart-legend-item.js +1 -1
  11. package/dist/gids-chart-legend.js +1 -1
  12. package/dist/gids-chart.js +1 -1
  13. package/dist/gids-chevron-button.js +1 -1
  14. package/dist/gids-dot.js +1 -1
  15. package/dist/gids-dropdown-field.js +1 -1
  16. package/dist/gids-dropdown-picker.js +1 -1
  17. package/dist/gids-dropdown.js +1 -1
  18. package/dist/gids-field.js +1 -1
  19. package/dist/gids-filter.js +1 -1
  20. package/dist/gids-icon.js +1 -1
  21. package/dist/gids-input.js +1 -1
  22. package/dist/gids-line-chart.js +1 -1
  23. package/dist/gids-overflow-container.js +1 -1
  24. package/dist/gids-overlay-provider.js +1 -1
  25. package/dist/gids-password-field.js +1 -1
  26. package/dist/gids-pie-chart.js +1 -1
  27. package/dist/gids-popover.js +1 -1
  28. package/dist/gids-scrim.js +1 -1
  29. package/dist/gids-tab-item.d.ts +11 -0
  30. package/dist/gids-tab-item.js +1 -0
  31. package/dist/gids-tab.d.ts +11 -0
  32. package/dist/gids-tab.js +1 -0
  33. package/dist/gids-text-field.js +1 -1
  34. package/dist/gids-toggle-button.js +1 -1
  35. package/dist/gids-tooltip.js +1 -1
  36. package/dist/{p-DfxTsSdZ.js → p-5VIPb1eU.js} +1 -1
  37. package/dist/{p-Db62Pz3n.js → p-8tOn5SjU.js} +1 -1
  38. package/dist/{p-V48JyMbP.js → p-B1Jgtjhu.js} +1 -1
  39. package/dist/{p-mZJdpfOo.js → p-BYDimyG-.js} +1 -1
  40. package/dist/{p-DPIK2ayL.js → p-BfnzH6wp.js} +1 -1
  41. package/dist/p-Bj28yqMD.js +1 -0
  42. package/dist/{p-CW7tw1Fb.js → p-C-cUL-aA.js} +1 -1
  43. package/dist/{p-DNTv2BQ5.js → p-C7ifjRCE.js} +1 -1
  44. package/dist/{p-JjN8U9B5.js → p-Ciw-O9qN.js} +1 -1
  45. package/dist/{p-BpQB6ncp.js → p-DiNad9Px.js} +1 -1
  46. package/dist/{p-CQH7eAs3.js → p-DoPuGtJd.js} +1 -1
  47. package/dist/{p-BQ-ZnlnH.js → p-Doi8Yizl.js} +1 -1
  48. package/dist/{p-BZCJlqVe.js → p-Jdpe4Sgj.js} +1 -1
  49. package/dist/{p-CP1wz2PI.js → p-bPPm7cuw.js} +1 -1
  50. package/dist/{p-DoCwI_bx.js → p-qb1aWgjh.js} +1 -1
  51. package/dist/{p-H1JIMJ2t.js → p-qrjEbv6g.js} +1 -1
  52. package/dist/{p-Cn3-K5eR.js → p-xITwQAMz.js} +1 -1
  53. package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
  54. package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
  55. package/dist/types/components.d.ts +123 -2
  56. package/dist-bundled/es/gids-action-bar.js +4 -4
  57. package/dist-bundled/es/gids-activity-gauge.js +1 -1
  58. package/dist-bundled/es/gids-bar-chart.js +3 -3
  59. package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
  60. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  61. package/dist-bundled/es/gids-calendar-year-list.js +3 -3
  62. package/dist-bundled/es/gids-calendar.js +33 -33
  63. package/dist-bundled/es/gids-chart-legend-item.js +4 -4
  64. package/dist-bundled/es/gids-chart-legend.js +4 -4
  65. package/dist-bundled/es/gids-chart.js +6 -6
  66. package/dist-bundled/es/gids-chevron-button.js +4 -4
  67. package/dist-bundled/es/gids-dot.js +3 -3
  68. package/dist-bundled/es/gids-dropdown-field.js +10 -10
  69. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  70. package/dist-bundled/es/gids-dropdown.js +1 -1
  71. package/dist-bundled/es/gids-field.js +1 -1
  72. package/dist-bundled/es/gids-filter.js +3 -3
  73. package/dist-bundled/es/gids-icon.js +4 -4
  74. package/dist-bundled/es/gids-input.js +4 -4
  75. package/dist-bundled/es/gids-line-chart.js +4 -4
  76. package/dist-bundled/es/gids-overflow-container.js +9 -9
  77. package/dist-bundled/es/gids-overlay-provider.js +2 -2
  78. package/dist-bundled/es/gids-password-field.js +19 -19
  79. package/dist-bundled/es/gids-pie-chart.js +4 -4
  80. package/dist-bundled/es/gids-popover.js +1 -1
  81. package/dist-bundled/es/gids-scrim.js +3 -3
  82. package/dist-bundled/es/gids-tab-item.js +100 -0
  83. package/dist-bundled/es/gids-tab.js +63 -0
  84. package/dist-bundled/es/gids-text-field.js +9 -9
  85. package/dist-bundled/es/gids-toggle-button.js +4 -4
  86. package/dist-bundled/es/gids-tooltip.js +4 -4
  87. package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
  88. package/dist-bundled/es/{p-DfxTsSdZ-C2Afv1lS.js → p-5VIPb1eU-MCAo8JCp.js} +2 -2
  89. package/dist-bundled/es/{p-Db62Pz3n-DpQjwBYb.js → p-8tOn5SjU-D9rZ28cf.js} +10 -10
  90. package/dist-bundled/es/{p-V48JyMbP-Bx-0od-Z.js → p-B1Jgtjhu-B_VYp-ZP.js} +7 -7
  91. package/dist-bundled/es/{p-mZJdpfOo-DicbKil0.js → p-BYDimyG--DBCLrqDJ.js} +6 -6
  92. package/dist-bundled/es/{p-DPIK2ayL-DPEbctqo.js → p-BfnzH6wp-BfLC7Nak.js} +2 -2
  93. package/dist-bundled/es/{p-DmLoB2Dn-D-FSoCvI.js → p-Bj28yqMD-Dz1SWSqM.js} +6 -6
  94. package/dist-bundled/es/{p-CW7tw1Fb-DtJ5TwCU.js → p-C-cUL-aA-2jsvw-Lr.js} +11 -11
  95. package/dist-bundled/es/{p-DNTv2BQ5-Bwgd30mM.js → p-C7ifjRCE-CRlorwoN.js} +12 -12
  96. package/dist-bundled/es/{p-JjN8U9B5-GeWjfJBY.js → p-Ciw-O9qN-DkWfirFu.js} +4 -4
  97. package/dist-bundled/es/{p-BpQB6ncp-C2AWddf-.js → p-DiNad9Px-uOCMHqAq.js} +9 -9
  98. package/dist-bundled/es/{p-CQH7eAs3-BVowyVGn.js → p-DoPuGtJd-DYlbhh57.js} +2 -2
  99. package/dist-bundled/es/{p-BQ-ZnlnH-CUVdDHzX.js → p-Doi8Yizl-BszWK5Dq.js} +3 -3
  100. package/dist-bundled/es/{p-BZCJlqVe-BcSwze-q.js → p-Jdpe4Sgj-acwaxLtK.js} +5 -5
  101. package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
  102. package/dist-bundled/es/{p-CP1wz2PI-DhVAsHFS.js → p-bPPm7cuw-B-dtPJF9.js} +5 -5
  103. package/dist-bundled/es/{p-DoCwI_bx-BXHlZI7-.js → p-qb1aWgjh-CzmMPIME.js} +6 -6
  104. package/dist-bundled/es/{p-H1JIMJ2t-DEXp7M4I.js → p-qrjEbv6g-ITSp3ky_.js} +2 -2
  105. package/dist-bundled/es/{p-Cn3-K5eR-tQ1EOnDF.js → p-xITwQAMz-BMXjOAAQ.js} +12 -12
  106. package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
  107. package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
  108. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  109. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  110. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  111. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  112. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  113. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  114. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  115. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  116. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  117. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  118. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  119. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  120. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  121. package/dist-bundled/umd/gids-field.umd.js +2 -2
  122. package/dist-bundled/umd/gids-filter.umd.js +2 -2
  123. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  124. package/dist-bundled/umd/gids-input.umd.js +1 -1
  125. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  126. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  127. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  128. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  129. package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
  130. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  131. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  132. package/dist-bundled/umd/gids-tab-item.umd.js +5 -0
  133. package/dist-bundled/umd/gids-tab.umd.js +5 -0
  134. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  135. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  136. package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
  137. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  138. package/package.json +20 -4
  139. package/dist/p-DmLoB2Dn.js +0 -1
  140. 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 S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{f===B(b)&&p.push(b)})),d?p.filter((b=>b.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&Fe(e.S)),o},Fe=e=>{I.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(N(t,i,n??null),i["s-sh"]=void 0,U=!0)}I.i&=-2},Y=(e,t)=>{I.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"]===F&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==F&&i["s-ol"]&&(N(G(i).parentNode,i,G(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,U=!0),t&&Y(i,t)}I.i&=-2},Ve=(e,t,n,s,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===F&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=o;++i)s[i]&&(r=z(null,n,i),r&&(s[i].S=r,N(a,r,G(t))))},je=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Be(i),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,j=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(_=r==="svg"||r!=="foreignObject"&&_,r!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Fe(t.S.parentElement)),de(e,t,_),i!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,b=0,v=0,g=0,m=0,C=u.length-1,y=u[0],x=u[C],k=h.length-1,A=h[0],L=h[k];const ot=d.O==="template"?c.content:c;for(;b<=C&&v<=k;)if(y==null)y=u[++b];else if(x==null)x=u[--C];else if(A==null)A=h[++v];else if(L==null)L=h[--k];else if(J(y,A,p))j(y,A,p),y=u[++b],A=h[++v];else if(J(x,L,p))j(x,L,p),x=u[--C],L=h[--k];else if(J(y,L,p))y.O!=="slot"&&L.O!=="slot"||Y(y.S.parentNode,!1),j(y,L,p),N(ot,y.S,x.S.nextSibling),y=u[++b],L=h[--k];else if(J(x,A,p))y.O!=="slot"&&L.O!=="slot"||Y(x.S.parentNode,!1),j(x,A,p),N(ot,x.S,y.S),x=u[--C],A=h[++v];else{for(g=-1,m=b;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){g=m;break}g>=0?(S=u[g],S.O!==A.O?f=z(u&&u[v],d,g):(j(S,A,p),u[g]=void 0,f=S.S),A=h[++v]):(f=z(u&&u[v],d,v),A=h[++v]),f&&N(G(y.S).parentNode,f,G(y.S))}b>C?Ve(c,h[k+1]==null?null:h[k+1].S,d,h,v,k):v>k&&je(u,b,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Ve(s,null,t,o,0,o.length-1)):!n&&i!==null&&je(i,0,i.length-1),_&&r==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},P=[],Me=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,r)){let a=P.find((l=>l.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],P.push({N:o,k:t})),t["s-sr"]&&P.map((l=>{ke(l.k,t["s-sn"])&&(a=P.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else P.some((a=>a.k===t))||P.push({k:t})}o.nodeType===1&&Me(o)}},Be=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Be)},bt=(e,t)=>{ue.push((()=>e(t)))},N=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=B(o)||"";return{slotNode:oe(le(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},St=(e,t,n=!1)=>{var s,i,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||W(null,null);var d;const h=(d=t)&&d.O===ft?t:w(null,null,t);if(F=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),n&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,R=!(!(1&c.i)||128&c.i),re=l["s-cr"],K=!1,j(u,h,n),I.i|=1,U){Me(h.S);for(const p of P){const f=p.k;if(!f["s-ol"]&&E.document){const S=E.document.createTextNode("");S["s-nr"]=f,N(f.parentNode,f["s-ol"]=S,f,n)}}for(const p of P){const f=p.k,S=p.N;if(f.nodeType===1&&n&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;g;){let m=(o=g["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(N(b,f,v,n),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=E.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,N(f.parentNode,g,f,n),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&_e(h.S),I.i&=-2,P.length=0,!R&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==F&&!f["s-sh"]){if(n&&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 S=E.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],N(f.parentNode,S,f,n),f.parentNode.removeChild(f)}}}re=void 0,ce.forEach((p=>p())),ce.length=0,ue.forEach((p=>p())),ue.length=0},Re=(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()})))}},he=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const n=()=>wt(e,t);if(!t)return ct(n);queueMicrotask((()=>{n()}))},wt=(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 i;return i=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Ge(i,(()=>H(s,"componentWillRender",void 0,n))),Ge(i,(()=>xt(e,s,t)))},Ge=(e,t)=>Et(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const b=Ae(h),v=q.get(b);if(!E.document)return b;if(d=d.nodeType===11?d:E.document,v)if(typeof v=="string"){let g,m=D.get(d=d.head||d);if(m||D.set(d,m=new Set),!m.has(b)){g=E.document.createElement("style"),g.textContent=v;const C=(p=I._)!=null?p:(function(){var y,x,k;return(k=(x=(y=E.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?k:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&h.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),x=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,x?.parentNode===d?x:null)}else if("host"in d)if(ee){const y=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(g)}else d.append(g);1&h.i&&d.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=D.get(d);if(g||D.set(d,g=new Set),!g.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===m.CSSStyleSheet)C=v;else{C=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)C.insertRule(v.cssRules[y].cssText,y)}te?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Ct(e,t,i,n),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>It(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,St(e,t,s)}catch(i){T(i,e.$hostElement$)}return null},It=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,kt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>he(e,!1))),e.i&=-517},_t=()=>{ie((()=>gt(E,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){T(i,s)}},kt=e=>e.classList.add("hydrated"),He=(e,t,n,s)=>{const i=O(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;n=Oe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,p]]=Object.entries(d);(128&a||1&p)&&(l?l[h](n,r,t):i.T.push((()=>{i.D[h](n,r,t)})))}catch(h){T(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||he(i,!1)}}},At=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&rt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=O(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((h=>{const p=h[r];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Le(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:c,set:u}=V(o,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=O(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(d=h.l.get(a)),u.apply(this,[Oe(d,l,!!(64&t.i))]),void He(this,a,d=32&l?this[a]:h.$hostElement$[a],t);He(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){I.jmp((()=>{var d;const h=a.get(l),p=O(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((y=>{const[[x,k]]=Object.entries(y);m[x]!=null&&(128&g||1&k)&&m[x].call(m,u,c,l)}))}return}const f=r.find((([g])=>g===h)),S=f&&4&f[1][0],b=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(o,h);b||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return a.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},qe=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Le(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&lt(o,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=O(this);if(!o)return;We(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&I.i)){const r=O(o);if(!r)return;const a=r.o;if(1&r.i)We(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,N(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Re(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Ae(u);q.has(S)||((b,v,g)=>{let m=q.get(b);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,q.set(b,m)})(S,f,!!(1&u.i))}const h=c.R,p=()=>he(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){T(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&I.i)){const r=O(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}D.has(o)&&D.delete(o),o.shadowRoot&&D.has(o.shadowRoot)&&D.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 ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ut.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),At(e,n,3)}catch(s){return T(s),e}},Nt=(e,t)=>t,We=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const r=Ot(E.document,e,s),a=Lt(t,o),l=Pt(s);I.ael(r,i,a,l),(t.V=t.V||[]).push((()=>I.rel(r,i,a,l)))}))},Lt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Ot=(e,t,n)=>8&n?E:t,Pt=e=>at?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function os(e){return e}function Ke(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ke(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function X(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ke(e))&&(s&&(s+=" "),s+=t);return s}const Dt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>X("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"})),$t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>X("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"})),Z=64,Ue=10,ze=Z/2-Ue/2,Tt=Z/2,fe=2*Math.PI*ze,Ft=`0 0 ${Z} ${Z}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(fe*i/100).toFixed(2),r=(fe-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Tt,circumference:fe,radius:ze,thickness:Ue,viewBox:Ft},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>X("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>X("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),pe=Symbol("defaultPath"),Ye=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#s(Ye)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(pe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(pe,n)}this.#e(Ye,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(pe);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"),Bt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Gt(){return ve().haveAssetPathsBeenSet()}function Je(e){return ve().getAssetFilePath(e)}function Ht(e){return ve().onAssetPathsSet(e)}let qt=0;const Wt=(e,t="gids")=>e||`${t}-${qt++}`,Kt=e=>e.type==="hidden",Ut=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&&!Kt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Xe={"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"]},Ze=new Map;for(const e in Xe)for(const t of Xe[e])Ze.set(t,e);function zt(e){return Ze.get(e)}function Qe(e,t="regular",n){const s=zt(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Yt}=$t,ye=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:r,...a})=>{const l=Wt(o);let c=r;return c===void 0&&Gt()&&(c=Qe(e,n,Je)),w("svg",{ref:u=>{c===void 0&&Ht((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Qe(h,p,Je)),d.appendChild(f)})(u,e,n)}))},width:"16",height:"16",class:Yt({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsSpinnerControlClassNames:Jt}=Dt,{calculateStrokeDasharray:Xt,thickness:et,radius:tt,centerPosition:Q,viewBox:Zt}=Vt,Qt=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:Xt(n,s||0),strokeDashoffset:"0"}),w("svg",{class:Jt({size:e,indeterminate:t,value:n}),viewBox:Zt,...i},w("circle",{class:"gids-spinner-control__track",cx:Q,cy:Q,r:tt,"stroke-width":et}),w("circle",{style:o,class:"gids-spinner-control__progress",cx:Q,cy:Q,r:tt,"stroke-width":et}))},es=qe(class extends Ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Ut(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 w(Nt,{key:"013d4a68291d4a3897246142cd611a2bc442d6a3"},w("slot",{key:"97f0d9030c5061b219cc35c409820b81e3d4098a",name:"leadingIcon"}),this.leadingLabel&&w("span",{key:"2f8726384a877b0bee51579661f66f6e3da811e1",class:"gids-input__label"},this.leadingLabel),w("slot",{key:"4843ddf9a10afba03ec0a552fd61cfddd3470749",name:"leadingAccessory"}),w("input",{key:"657559522ac7908ebb5dc27992cb50eb69d1fbd8",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),w("slot",{key:"c80c3ce3bf17f60e8f773b9c2f5dc25dacdf5446",name:"trailingAccessory"}),this.trailingLabel&&w("span",{key:"f9ba8d097b660cdeaeacc0ac1ba970d3fa839fcc",class:"gids-input__label"},this.trailingLabel),w("slot",{key:"35116e82425db12c08580460ac9c84f89faec71e",name:"trailingIcon"}),this.status==="incomplete"&&w(ye,{key:"2634986e80dfbbfb98b5a4dd95829e6af3b229a0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&w(ye,{key:"63ab6b357df47d2d96ad6d3d33f22ab7864f395e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&w(Qt,{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 st(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,es))}))}st();const{getGidsDropdownClassNames:ts,getGidsChevronButtonControlClassNames:ss}=jt,be="gids-dropdown-item--active",nt=qe(class extends Ee{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:n,title:s,disabled:i,id:o,isPlaceholderItem:r}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:r}))},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 i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const r=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!r||r!=="true")})},this.handleFilterInput=t=>{const n=t.target;this.filterValue=n?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const n=t.key,s=n==="ArrowDown";if((s||n==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(n==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(n==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(n==="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 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.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(be))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(be))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const n=Math.max(0,Math.min(e,t.length-1)),s=t[n];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=n,s.classList.add(be),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.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 n=(t.textContent??"").toLowerCase(),s=e.length===0||n.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:n,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 n=e.onBlur;e.onBlur=i=>{n?.(i),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=i=>{s?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ts({expanded:e}),n=this.getEnhancedInputProps(),s=typeof n.id=="string"?n.id:void 0,i=s?`${s}__menu`:void 0;n.role="combobox",n["aria-expanded"]=e?"true":"false",n["aria-haspopup"]="listbox",n["aria-autocomplete"]="list",i&&(n["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",r=e?"true":"false",a=w("button",{key:"7308fb3cd3804b1945e023107018d16bafd166b3",class:ss({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},w("span",{key:"39816bde9d3e2e43f3f0b19bd6abda300e1362c4",class:"gids-button__content"},w(ye,{key:"95d25d7a9f0b9e0ee2f7dcd9bad178580198184b",name:"chevron-vertical",alt:""})));return w("div",{key:"c86f983fe0481939441ef4750ac3af7f41ba1334",class:t},w("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:n,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&w("slot",{key:"fbeb48c6376fb0d35f989bbc97bb7b186a237029",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&w("slot",{key:"32bd6bea5335946f1e78efe067be89dead314ea9",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),a),w("div",{key:"0ea93131baf32b00593992131a4eb866a87af1bf",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},w("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 it(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,nt);break;case"gids-input":customElements.get(e)||st()}}))}it();const ns=nt,is=it;$.GidsDropdown=ns,$.defineCustomElement=is,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{f===B(b)&&p.push(b)})),d?p.filter((b=>b.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&Fe(e.S)),o},Fe=e=>{I.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(N(t,i,n??null),i["s-sh"]=void 0,U=!0)}I.i&=-2},Y=(e,t)=>{I.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"]===F&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==F&&i["s-ol"]&&(N(G(i).parentNode,i,G(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,U=!0),t&&Y(i,t)}I.i&=-2},Ve=(e,t,n,s,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===F&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=o;++i)s[i]&&(r=z(null,n,i),r&&(s[i].S=r,N(a,r,G(t))))},je=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Be(i),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,j=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(_=r==="svg"||r!=="foreignObject"&&_,r!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Fe(t.S.parentElement)),de(e,t,_),i!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,b=0,v=0,g=0,m=0,C=u.length-1,y=u[0],x=u[C],k=h.length-1,A=h[0],L=h[k];const ot=d.O==="template"?c.content:c;for(;b<=C&&v<=k;)if(y==null)y=u[++b];else if(x==null)x=u[--C];else if(A==null)A=h[++v];else if(L==null)L=h[--k];else if(J(y,A,p))j(y,A,p),y=u[++b],A=h[++v];else if(J(x,L,p))j(x,L,p),x=u[--C],L=h[--k];else if(J(y,L,p))y.O!=="slot"&&L.O!=="slot"||Y(y.S.parentNode,!1),j(y,L,p),N(ot,y.S,x.S.nextSibling),y=u[++b],L=h[--k];else if(J(x,A,p))y.O!=="slot"&&L.O!=="slot"||Y(x.S.parentNode,!1),j(x,A,p),N(ot,x.S,y.S),x=u[--C],A=h[++v];else{for(g=-1,m=b;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){g=m;break}g>=0?(S=u[g],S.O!==A.O?f=z(u&&u[v],d,g):(j(S,A,p),u[g]=void 0,f=S.S),A=h[++v]):(f=z(u&&u[v],d,v),A=h[++v]),f&&N(G(y.S).parentNode,f,G(y.S))}b>C?Ve(c,h[k+1]==null?null:h[k+1].S,d,h,v,k):v>k&&je(u,b,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Ve(s,null,t,o,0,o.length-1)):!n&&i!==null&&je(i,0,i.length-1),_&&r==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},P=[],Me=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,r)){let a=P.find((l=>l.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],P.push({N:o,k:t})),t["s-sr"]&&P.map((l=>{ke(l.k,t["s-sn"])&&(a=P.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else P.some((a=>a.k===t))||P.push({k:t})}o.nodeType===1&&Me(o)}},Be=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Be)},bt=(e,t)=>{ue.push((()=>e(t)))},N=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=B(o)||"";return{slotNode:oe(le(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},St=(e,t,n=!1)=>{var s,i,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||W(null,null);var d;const h=(d=t)&&d.O===ft?t:w(null,null,t);if(F=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),n&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,R=!(!(1&c.i)||128&c.i),re=l["s-cr"],K=!1,j(u,h,n),I.i|=1,U){Me(h.S);for(const p of P){const f=p.k;if(!f["s-ol"]&&E.document){const S=E.document.createTextNode("");S["s-nr"]=f,N(f.parentNode,f["s-ol"]=S,f,n)}}for(const p of P){const f=p.k,S=p.N;if(f.nodeType===1&&n&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;g;){let m=(o=g["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(N(b,f,v,n),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=E.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,N(f.parentNode,g,f,n),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&_e(h.S),I.i&=-2,P.length=0,!R&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==F&&!f["s-sh"]){if(n&&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 S=E.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],N(f.parentNode,S,f,n),f.parentNode.removeChild(f)}}}re=void 0,ce.forEach((p=>p())),ce.length=0,ue.forEach((p=>p())),ue.length=0},Re=(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()})))}},he=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const n=()=>wt(e,t);if(!t)return ct(n);queueMicrotask((()=>{n()}))},wt=(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 i;return i=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Ge(i,(()=>H(s,"componentWillRender",void 0,n))),Ge(i,(()=>xt(e,s,t)))},Ge=(e,t)=>Et(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const b=Ae(h),v=q.get(b);if(!E.document)return b;if(d=d.nodeType===11?d:E.document,v)if(typeof v=="string"){let g,m=D.get(d=d.head||d);if(m||D.set(d,m=new Set),!m.has(b)){g=E.document.createElement("style"),g.textContent=v;const C=(p=I._)!=null?p:(function(){var y,x,k;return(k=(x=(y=E.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?k:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&h.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),x=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,x?.parentNode===d?x:null)}else if("host"in d)if(ee){const y=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(g)}else d.append(g);1&h.i&&d.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=D.get(d);if(g||D.set(d,g=new Set),!g.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===m.CSSStyleSheet)C=v;else{C=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)C.insertRule(v.cssRules[y].cssText,y)}te?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Ct(e,t,i,n),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>It(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,St(e,t,s)}catch(i){T(i,e.$hostElement$)}return null},It=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,kt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>he(e,!1))),e.i&=-517},_t=()=>{ie((()=>gt(E,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){T(i,s)}},kt=e=>e.classList.add("hydrated"),He=(e,t,n,s)=>{const i=O(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;n=Oe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,p]]=Object.entries(d);(128&a||1&p)&&(l?l[h](n,r,t):i.T.push((()=>{i.D[h](n,r,t)})))}catch(h){T(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||he(i,!1)}}},At=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&rt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=O(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((h=>{const p=h[r];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Le(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:c,set:u}=V(o,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=O(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(d=h.l.get(a)),u.apply(this,[Oe(d,l,!!(64&t.i))]),void He(this,a,d=32&l?this[a]:h.$hostElement$[a],t);He(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){I.jmp((()=>{var d;const h=a.get(l),p=O(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((y=>{const[[x,k]]=Object.entries(y);m[x]!=null&&(128&g||1&k)&&m[x].call(m,u,c,l)}))}return}const f=r.find((([g])=>g===h)),S=f&&4&f[1][0],b=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(o,h);b||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return a.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},qe=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Le(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&lt(o,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=O(this);if(!o)return;We(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&I.i)){const r=O(o);if(!r)return;const a=r.o;if(1&r.i)We(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,N(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Re(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Ae(u);q.has(S)||((b,v,g)=>{let m=q.get(b);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,q.set(b,m)})(S,f,!!(1&u.i))}const h=c.R,p=()=>he(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){T(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&I.i)){const r=O(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}D.has(o)&&D.delete(o),o.shadowRoot&&D.has(o.shadowRoot)&&D.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 ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ut.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),At(e,n,3)}catch(s){return T(s),e}},Nt=(e,t)=>t,We=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const r=Ot(E.document,e,s),a=Lt(t,o),l=Pt(s);I.ael(r,i,a,l),(t.V=t.V||[]).push((()=>I.rel(r,i,a,l)))}))},Lt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Ot=(e,t,n)=>8&n?E:t,Pt=e=>at?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function os(e){return e}function Ke(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ke(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function X(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ke(e))&&(s&&(s+=" "),s+=t);return s}const Dt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>X("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"})),$t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>X("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"})),Z=64,Ue=10,ze=Z/2-Ue/2,Tt=Z/2,fe=2*Math.PI*ze,Ft=`0 0 ${Z} ${Z}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(fe*i/100).toFixed(2),r=(fe-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Tt,circumference:fe,radius:ze,thickness:Ue,viewBox:Ft},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>X("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>X("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),pe=Symbol("defaultPath"),Ye=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#s(Ye)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(pe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(pe,n)}this.#e(Ye,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(pe);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"),Bt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Gt(){return ve().haveAssetPathsBeenSet()}function Je(e){return ve().getAssetFilePath(e)}function Ht(e){return ve().onAssetPathsSet(e)}let qt=0;const Wt=(e,t="gids")=>e||`${t}-${qt++}`,Kt=e=>e.type==="hidden",Ut=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&&!Kt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Xe={"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"]},Ze=new Map;for(const e in Xe)for(const t of Xe[e])Ze.set(t,e);function zt(e){return Ze.get(e)}function Qe(e,t="regular",n){const s=zt(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Yt}=$t,ye=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:r,...a})=>{const l=Wt(o);let c=r;return c===void 0&&Gt()&&(c=Qe(e,n,Je)),w("svg",{ref:u=>{c===void 0&&Ht((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Qe(h,p,Je)),d.appendChild(f)})(u,e,n)}))},width:"16",height:"16",class:Yt({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsSpinnerControlClassNames:Jt}=Dt,{calculateStrokeDasharray:Xt,thickness:et,radius:tt,centerPosition:Q,viewBox:Zt}=Vt,Qt=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:Xt(n,s||0),strokeDashoffset:"0"}),w("svg",{class:Jt({size:e,indeterminate:t,value:n}),viewBox:Zt,...i},w("circle",{class:"gids-spinner-control__track",cx:Q,cy:Q,r:tt,"stroke-width":et}),w("circle",{style:o,class:"gids-spinner-control__progress",cx:Q,cy:Q,r:tt,"stroke-width":et}))},es=qe(class extends Ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Ut(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 w(Nt,{key:"94b08611da249786439b37e6ea7961ea3e5ee851"},w("slot",{key:"d334ee7f99214b10ddecafcbc9a8a851723eba89",name:"leadingIcon"}),this.leadingLabel&&w("span",{key:"8c650986f8a51f563f2499d9f68704702d67d3d6",class:"gids-input__label"},this.leadingLabel),w("slot",{key:"d6f6f0f53e0af2b3de306fbb4bda2b4199567060",name:"leadingAccessory"}),w("input",{key:"8429cdabbbc2034cac2d76cc72fa5e40298d5ec7",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),w("slot",{key:"aa7a6d1b0551a88801ef75da893ecf41e1eaafa8",name:"trailingAccessory"}),this.trailingLabel&&w("span",{key:"5f683d6c71ef3802c3749959b921b9046c168437",class:"gids-input__label"},this.trailingLabel),w("slot",{key:"b7d26fe16f35c0147b7b1a34dd41cd0f85ed5ab5",name:"trailingIcon"}),this.status==="incomplete"&&w(ye,{key:"66f1da3df7907675feace05c11e2e31e892d6251",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&w(ye,{key:"3fc74b5623174d2a321a5367854ff180bde2cd9f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&w(Qt,{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 st(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,es))}))}st();const{getGidsDropdownClassNames:ts,getGidsChevronButtonControlClassNames:ss}=jt,be="gids-dropdown-item--active",nt=qe(class extends Ee{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:n,title:s,disabled:i,id:o,isPlaceholderItem:r}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:r}))},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 i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const r=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!r||r!=="true")})},this.handleFilterInput=t=>{const n=t.target;this.filterValue=n?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const n=t.key,s=n==="ArrowDown";if((s||n==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(n==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(n==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(n==="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 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.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(be))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(be))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const n=Math.max(0,Math.min(e,t.length-1)),s=t[n];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=n,s.classList.add(be),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.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 n=(t.textContent??"").toLowerCase(),s=e.length===0||n.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:n,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 n=e.onBlur;e.onBlur=i=>{n?.(i),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=i=>{s?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ts({expanded:e}),n=this.getEnhancedInputProps(),s=typeof n.id=="string"?n.id:void 0,i=s?`${s}__menu`:void 0;n.role="combobox",n["aria-expanded"]=e?"true":"false",n["aria-haspopup"]="listbox",n["aria-autocomplete"]="list",i&&(n["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",r=e?"true":"false",a=w("button",{key:"c4482da12927a1e47e6ef8aeaa8948d928f44c82",class:ss({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},w("span",{key:"19b889b60ea764f63f885092201e950b35d78a45",class:"gids-button__content"},w(ye,{key:"0ac5ccbd16fc7bd223f45107ede23aa698c1f4b1",name:"chevron-vertical",alt:""})));return w("div",{key:"5e1ecfa73b2790753739dfb374a4220b9470dc5b",class:t},w("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:n,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&w("slot",{key:"3f73972a3e445cb40bfdb1a319e7f2094a100ec6",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&w("slot",{key:"2c53bfbd7fa8dd1cb03295bf6994c5ebabfd4c3b",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),a),w("div",{key:"b09e3a03faba23b1fa1b641543803322d05d6cc6",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},w("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 it(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,nt);break;case"gids-input":customElements.get(e)||st()}}))}it();const ns=nt,is=it;$.GidsDropdown=ns,$.defineCustomElement=is,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function(M,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(M=typeof globalThis<"u"?globalThis:M||self,R(M.gidsCoreWebGidsField={}))})(this,(function(M){"use strict";function R(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,et=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const i=e[s],r=R(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):i!==void 0&&(e[s]=i)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_e=(e,t)=>t in e,P=(e,t)=>(0,console.error)(e,t),z=new Map,ve="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b=typeof window<"u"?window:{},st=b.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},ot=(()=>{var e;let t=!1;try{(e=b.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable,ee=!1,ye=[],Se=[],nt=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&C.i?se(te):C.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){P(o)}e.length=0},te=()=>{be(ye),be(Se),(ee=ye.length>0)&&C.raf(te)},se=e=>Promise.resolve(void 0).then(e),it=nt(Se);function lt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var xe=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!rt(s,G(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&xe(s)}};function oe(e,t,o){let s,n=0,i=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||G(s)===o)&&(i.push(s),o!==void 0))return i;i=[...i,...oe(s.childNodes,t,o)]}return i}var rt=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)G(n)!==t||!o&&n["s-sr"]||s.push(n);return s},we=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",G=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,V,j=new WeakMap,Ce=e=>"sc-"+e.p,le=e=>(e=typeof e)=="object"||e==="function",E=(e,t,...o)=>{let s=null,n=null,i=null,r=!1,a=!1;const l=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!le(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?q(null,s):s),a=r)};if(c(o),t){t.key&&(n=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,at);const h=q(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=n,h.j=i,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ee={},at={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(dt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),dt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),E(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Te=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const i of e[n])if(typeof i=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((i=>typeof i=="string"?{[i]:0}:i));return s},Le=(e,t,o)=>e==null||le(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ct=(e,t,o)=>{const s=C.ce(t,o);return e.dispatchEvent(s),s},$e=(e,t,o,s,n,i)=>{if(o===s)return;let r=_e(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=ke(o);let h=ke(s);l.remove(...c.filter((d=>d&&!h.includes(d)))),l.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&ft(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const h=O(e);if(h&&h.o&&h.o.t){const d=h.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=le(s);if((r||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!r||4&i||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):_e(b,a)?a.slice(2):a[2]+t.slice(3),o||s){const l=t.endsWith(Oe);t=t.replace(ut,""),o&&C.rel(e,t,o,l),s&&C.ael(e,t,s,l)}}},ht=/\s/,ke=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ht):[]),Oe="Capture",ut=new RegExp(Oe+"$"),re=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},i=t.v||{};for(const r of Ae(Object.keys(n)))r in i||$e(s,r,n[r],void 0,o,t.i);for(const r of Ae(Object.keys(i)))$e(s,r,n[r],i[r],o,t.i)};function Ae(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,U=!1,K=!1,N=!1,ae=[],de=[],Y=(e,t,o)=>{var s;const n=t.m[o];let i,r,a,l=0;if(D||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)i=n.S=b.document.createTextNode(n.h);else if(1&n.i)i=n.S=b.document.createTextNode(""),re(null,n,N);else{if(N||(N=n.O==="svg"),!b.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=n.S=b.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),N&&n.O==="foreignObject"&&(N=!1),re(null,n,N),n.m){const c=n.O==="template"?i.content:i;for(l=0;l<n.m.length;++l)r=Y(e,n,l),r&&c.appendChild(r)}n.O==="svg"?N=!1:i.tagName==="foreignObject"&&(N=!0)}return i["s-hn"]=V,3&n.i&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=n.j||"",i["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
1
+ (function(M,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(M=typeof globalThis<"u"?globalThis:M||self,R(M.gidsCoreWebGidsField={}))})(this,(function(M){"use strict";function R(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,et=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const i=e[s],r=R(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):i!==void 0&&(e[s]=i)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_e=(e,t)=>t in e,P=(e,t)=>(0,console.error)(e,t),z=new Map,ve="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b=typeof window<"u"?window:{},st=b.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},ot=(()=>{var e;let t=!1;try{(e=b.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable,ee=!1,ye=[],Se=[],nt=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&C.i?se(te):C.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){P(o)}e.length=0},te=()=>{be(ye),be(Se),(ee=ye.length>0)&&C.raf(te)},se=e=>Promise.resolve(void 0).then(e),it=nt(Se);function lt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var xe=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!rt(s,G(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&xe(s)}};function oe(e,t,o){let s,n=0,i=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||G(s)===o)&&(i.push(s),o!==void 0))return i;i=[...i,...oe(s.childNodes,t,o)]}return i}var rt=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)G(n)!==t||!o&&n["s-sr"]||s.push(n);return s},we=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",G=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,V,j=new WeakMap,Ce=e=>"sc-"+e.p,le=e=>(e=typeof e)=="object"||e==="function",E=(e,t,...o)=>{let s=null,n=null,i=null,r=!1,a=!1;const l=[],d=c=>{for(let u=0;u<c.length;u++)s=c[u],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!le(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?q(null,s):s),a=r)};if(d(o),t){t.key&&(n=t.key),t.name&&(i=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((u=>c[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,at);const h=q(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=n,h.j=i,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ee={},at={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(ct)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ct=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),E(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Te=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const i of e[n])if(typeof i=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((i=>typeof i=="string"?{[i]:0}:i));return s},Le=(e,t,o)=>e==null||le(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,dt=(e,t,o)=>{const s=C.ce(t,o);return e.dispatchEvent(s),s},$e=(e,t,o,s,n,i)=>{if(o===s)return;let r=_e(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,d=ke(o);let h=ke(s);l.remove(...d.filter((c=>c&&!h.includes(c)))),l.add(...h.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&ft(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let d;{const h=O(e);if(h&&h.o&&h.o.t){const c=h.o.t[l];c&&c[1]&&(d=c[1])}}return d||(d=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=le(s);if((r||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!r||4&i||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):_e(b,a)?a.slice(2):a[2]+t.slice(3),o||s){const l=t.endsWith(Oe);t=t.replace(ut,""),o&&C.rel(e,t,o,l),s&&C.ael(e,t,s,l)}}},ht=/\s/,ke=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ht):[]),Oe="Capture",ut=new RegExp(Oe+"$"),re=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},i=t.v||{};for(const r of Ae(Object.keys(n)))r in i||$e(s,r,n[r],void 0,o,t.i);for(const r of Ae(Object.keys(i)))$e(s,r,n[r],i[r],o,t.i)};function Ae(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,U=!1,K=!1,N=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let i,r,a,l=0;if(D||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)i=n.S=b.document.createTextNode(n.h);else if(1&n.i)i=n.S=b.document.createTextNode(""),re(null,n,N);else{if(N||(N=n.O==="svg"),!b.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=n.S=b.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),N&&n.O==="foreignObject"&&(N=!1),re(null,n,N),n.m){const d=n.O==="template"?i.content:i;for(l=0;l<n.m.length;++l)r=Y(e,n,l),r&&d.appendChild(r)}n.O==="svg"?N=!1:i.tagName==="foreignObject"&&(N=!0)}return i["s-hn"]=V,3&n.i&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=n.j||"",i["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=c=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===G(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(V.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&&($(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===V&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==V&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===V&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,$(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Re(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,I=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,h,d,u,p=!1)=>{let f,S,y=0,_=0,m=0,g=0,w=h.length-1,v=h[0],x=h[w],T=u.length-1,L=u[0],k=u[T];const Xe=d.O==="template"?c.content:c;for(;y<=w&&_<=T;)if(v==null)v=h[++y];else if(x==null)x=h[--w];else if(L==null)L=u[++_];else if(k==null)k=u[--T];else if(J(v,L,p))I(v,L,p),v=h[++y],L=u[++_];else if(J(x,k,p))I(x,k,p),x=h[--w],k=u[--T];else if(J(v,k,p))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),I(v,k,p),$(Xe,v.S,x.S.nextSibling),v=h[++y],k=u[--T];else if(J(x,L,p))v.O!=="slot"&&k.O!=="slot"||Z(x.S.parentNode,!1),I(x,L,p),$(Xe,x.S,v.S),x=h[--w],L=u[++_];else{for(m=-1,g=y;g<=w;++g)if(h[g]&&h[g].$!==null&&h[g].$===L.$){m=g;break}m>=0?(S=h[m],S.O!==L.O?f=Y(h&&h[_],d,m):(I(S,L,p),h[m]=void 0,f=S.S),L=u[++_]):(f=Y(h&&h[_],d,_),L=u[++_]),f&&$(B(v.S).parentNode,f,B(v.S))}y>w?Me(c,u[T+1]==null?null:u[T+1].S,d,u,_,T):_>T&&Pe(h,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],Ve=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=A.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((l=>{we(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}i.nodeType===1&&Ve(i)}},Re=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ft=(e,t)=>{de.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},pt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,h=e.M||q(null,null);var d;const u=(d=t)&&d.O===Ee?t:E(null,null,t);if(V=l.tagName,c.C&&(u.v=u.v||{},c.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,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,I(h,u,o),C.i|=1,K){Ve(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.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"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}m=m.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if($(y,f,_,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,$(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 S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(U&&xe(u.S),C.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==V&&!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 S=b.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,de.forEach((p=>p())),de.length=0},Ie=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ie(e,e.R);const o=()=>gt(e,t);if(!t)return it(o);queueMicrotask((()=>{o()}))},gt=(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=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>W(s,"componentWillRender",void 0,o))),Fe(n,(()=>_t(e,s,t)))},Fe=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",_t=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,h=((d,u)=>{var p,f,S;const y=Ce(u),_=z.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,g=j.get(d=d.head||d);if(g||j.set(d,g=new Set),!g.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(p=C._)!=null?p:(function(){var v,x,T;return(T=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+v.textContent:d.prepend(m)}else d.append(m);1&u.i&&d.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===g.CSSStyleSheet)w=_;else{w=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),vt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>yt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},vt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},yt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,bt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},St=()=>{se((()=>ct(b,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},bt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=O(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=Le(o,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,p]]=Object.entries(d);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){P(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},xt=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&tt.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var c;const h=O(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=h?.H)==null||c.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Te(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:c,set:h}=R(i,a)||{};c&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(d){const u=O(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),h.apply(this,[Le(d,l,!!(64&t.i))]),void He(this,a,d=32&l?this[a]:u.$hostElement$[a],t);He(this,a,d,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=a.get(l),p=O(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!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((v=>{const[[x,T]]=Object.entries(v);g[x]!=null&&(128&m||1&T)&&g[x].call(g,h,c,l)}))}return}const f=r.find((([m])=>m===u)),S=f&&4&f[1][0],y=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const _=Object.getOwnPropertyDescriptor(i,u);y||h==this[u]||_.get&&!_.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return a.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},wt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Te(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((c=>a.L=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&et(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=O(this);if(!i)return;Ge(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=O(i);if(!r)return;const a=r.o;if(1&r.i)Ge(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,$(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ie(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[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=Ce(h);z.has(S)||((y,_,m)=>{let g=z.get(y);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,z.set(y,g)})(S,f,!!(1&h.i))}const u=c.R,p=()=>ce(c,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){P(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&C.i)){const r=O(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else lt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),xt(e,o,3)}catch(s){return P(s),e}},Ge=(e,t,o)=>{o&&b.document&&o.map((([s,n,i])=>{const r=Et(b.document,e,s),a=Ct(t,i),l=Nt(s);C.ael(r,n,a,l),(t.V=t.V||[]).push((()=>C.rel(r,n,a,l)))}))},Ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},Et=(e,t,o)=>8&o?b:t,Nt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Bt(e){return e}function De(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=De(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Be(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Be("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,getGidsFieldClassNames:e=>Be("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),ue="gids-asset-paths-set";class $t extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(We)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(We,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),kt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Ot=e=>{const t=kt().assetPaths;return t[e]===void 0&&(t[e]=new $t),t[e]};function pe(){return Ot("@ganpatiinfo/gids-web-shared")}function At(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function jt(e){return pe().onAssetPathsSet(e)}let Mt=0;const Pt=(e,t="gids")=>e||`${t}-${Mt++}`,qe={"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"]},Ue=new Map;for(const e in qe)for(const t of qe[e])Ue.set(t,e);function Vt(e){return Ue.get(e)}function Ke(e,t="regular",o){const s=Vt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Rt}=Tt,It=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Pt(i);let c=r;return c===void 0&&At()&&(c=Ke(e,o,ze)),E("svg",{ref:h=>{c===void 0&&jt((()=>{(function(d,u,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Ke(u,p,ze)),d.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Rt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{if(F===void 0)return!1;const e=(()=>{if(F===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ft=()=>(Ye||(Ye=Ze()),F),{getGidsFieldClassNames:Ht}=Lt,Je=wt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"f830ae3da5de21c80d9fd5b7161fa3f2845a82df"},E("div",{key:"8c6c4af1b4ebe897873a49c42975a8730905cf27",class:Ht()},E("div",{key:"3afa55c23b729296ff65fb03b501919dcaa420d3",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"6d8c9adf2b04d19a446fdd2707259d931dbc2eb9",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"46cc09d9414bb88622f95e7ccffba84b602b25f0",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"0e6ddf85cf459c53f2cfc5f453cd4fe35e532d9b",class:"gids-field__control"},E("slot",{key:"d2d007d50a5f7001872b368dee5d648a8751c1af",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"09e08e474051efd8bb9e526311cd8d3bb14f8671",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(It,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const Gt=Je,Dt=Qe;M.GidsField=Gt,M.defineCustomElement=Dt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===G(y)&&p.push(y)})),c?p.filter((y=>y.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&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(V.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&&($(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===V&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==V&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===V&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,$(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Re(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,I=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,S,y=0,_=0,m=0,g=0,w=h.length-1,v=h[0],x=h[w],T=u.length-1,L=u[0],k=u[T];const Xe=c.O==="template"?d.content:d;for(;y<=w&&_<=T;)if(v==null)v=h[++y];else if(x==null)x=h[--w];else if(L==null)L=u[++_];else if(k==null)k=u[--T];else if(J(v,L,p))I(v,L,p),v=h[++y],L=u[++_];else if(J(x,k,p))I(x,k,p),x=h[--w],k=u[--T];else if(J(v,k,p))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),I(v,k,p),$(Xe,v.S,x.S.nextSibling),v=h[++y],k=u[--T];else if(J(x,L,p))v.O!=="slot"&&k.O!=="slot"||Z(x.S.parentNode,!1),I(x,L,p),$(Xe,x.S,v.S),x=h[--w],L=u[++_];else{for(m=-1,g=y;g<=w;++g)if(h[g]&&h[g].$!==null&&h[g].$===L.$){m=g;break}m>=0?(S=h[m],S.O!==L.O?f=Y(h&&h[_],c,m):(I(S,L,p),h[m]=void 0,f=S.S),L=u[++_]):(f=Y(h&&h[_],c,_),L=u[++_]),f&&$(B(v.S).parentNode,f,B(v.S))}y>w?Me(d,u[T+1]==null?null:u[T+1].S,c,u,_,T):_>T&&Pe(h,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],Ve=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=A.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((l=>{we(l.k,t["s-sn"])&&(a=A.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}i.nodeType===1&&Ve(i)}},Re=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ft=(e,t)=>{ce.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},pt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const u=(c=t)&&c.O===Ee?t:E(null,null,t);if(V=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,D=!(!(1&d.i)||128&d.i),ie=l["s-cr"],U=!1,I(h,u,o),C.i|=1,K){Ve(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.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"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}m=m.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if($(y,f,_,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,$(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 S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(U&&xe(u.S),C.i&=-2,A.length=0,!D&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==V&&!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 S=b.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Ie=(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);Ie(e,e.R);const o=()=>gt(e,t);if(!t)return it(o);queueMicrotask((()=>{o()}))},gt=(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=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>W(s,"componentWillRender",void 0,o))),Fe(n,(()=>_t(e,s,t)))},Fe=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",_t=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,S;const y=Ce(u),_=z.get(y);if(!b.document)return y;if(c=c.nodeType===11?c:b.document,_)if(typeof _=="string"){let m,g=j.get(c=c.head||c);if(g||j.set(c,g=new Set),!g.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(p=C._)!=null?p:(function(){var v,x,T;return(T=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,x?.parentNode===c?x:null)}else if("host"in c)if(Q){const v=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=_+v.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(y)}}else{let m=j.get(c);if(m||j.set(c,m=new Set),!m.has(y)){const g=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let w;if(_.constructor===g.CSSStyleSheet)w=_;else{w=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(w):c.adoptedStyleSheets=[...c.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),vt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>yt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},vt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},yt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,bt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},St=()=>{se((()=>dt(b,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},bt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=O(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=Le(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){P(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},xt=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&tt.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=O(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=Te(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,O(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=O(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,[Le(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){C.jmp((()=>{var c;const u=a.get(l),p=O(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,w=(c=t.F)==null?void 0:c[l];w?.forEach((v=>{const[[x,T]]=Object.entries(v);g[x]!=null&&(128&m||1&T)&&g[x].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),S=f&&4&f[1][0],y=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const _=Object.getOwnPropertyDescriptor(i,u);y||h==this[u]||_.get&&!_.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},wt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Te(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&&et(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=O(this);if(!i)return;Ge(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=O(i);if(!r)return;const a=r.o;if(1&r.i)Ge(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const d=l["s-cr"]=b.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ie(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 S=Ce(h);z.has(S)||((y,_,m)=>{let g=z.get(y);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,z.set(y,g)})(S,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){P(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&C.i)){const r=O(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else lt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),xt(e,o,3)}catch(s){return P(s),e}},Ge=(e,t,o)=>{o&&b.document&&o.map((([s,n,i])=>{const r=Et(b.document,e,s),a=Ct(t,i),l=Nt(s);C.ael(r,n,a,l),(t.V=t.V||[]).push((()=>C.rel(r,n,a,l)))}))},Ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},Et=(e,t,o)=>8&o?b:t,Nt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Bt(e){return e}function De(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=De(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Be(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Be("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,getGidsFieldClassNames:e=>Be("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),ue="gids-asset-paths-set";class $t extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(We)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(We,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),kt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Ot=e=>{const t=kt().assetPaths;return t[e]===void 0&&(t[e]=new $t),t[e]};function pe(){return Ot("@ganpatiinfo/gids-web-shared")}function At(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function jt(e){return pe().onAssetPathsSet(e)}let Mt=0;const Pt=(e,t="gids")=>e||`${t}-${Mt++}`,qe={"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"]},Ue=new Map;for(const e in qe)for(const t of qe[e])Ue.set(t,e);function Vt(e){return Ue.get(e)}function Ke(e,t="regular",o){const s=Vt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Rt}=Tt,It=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Pt(i);let d=r;return d===void 0&&At()&&(d=Ke(e,o,ze)),E("svg",{ref:h=>{d===void 0&&jt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Ke(u,p,ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Rt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),d!==void 0?E("use",{href:d}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{if(F===void 0)return!1;const e=(()=>{if(F===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ft=()=>(Ye||(Ye=Ze()),F),{getGidsFieldClassNames:Ht}=Lt,Je=wt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"55afcede8d0a565f98b1cdd20293c9f885997d6c"},E("div",{key:"4c9ce99475a4c38e5b8c62b2bef588eb48fcec28",class:Ht()},E("div",{key:"4c254203e9d4414e59c2564e86119280a7f89186",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"3f8c6df5ac4098e821490edf0699d002ee8ca430",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"c2da3ba663158c54514d959e98ad2861fc64bd57",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"da5091c74fb3df1146b4eecb4d7ee6537a322f32",class:"gids-field__control"},E("slot",{key:"bc49fb537279473305d616f900d5df696d9c2c3c",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"326849f878b531e4695368f1f112ce6d36c3ef4d",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(It,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const Gt=Je,Dt=Qe;M.GidsField=Gt,M.defineCustomElement=Dt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));