@ganpatiinfo/gids-core-web 10.3.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/css/index.css +374 -107
  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-expansion-body-list-item.js +1 -1
  19. package/dist/gids-expansion-body-list.js +1 -1
  20. package/dist/gids-expansion-group.js +1 -1
  21. package/dist/gids-expansion.js +1 -1
  22. package/dist/gids-field.js +1 -1
  23. package/dist/gids-filter.js +1 -1
  24. package/dist/gids-icon.js +1 -1
  25. package/dist/gids-input.js +1 -1
  26. package/dist/gids-line-chart.js +1 -1
  27. package/dist/gids-md-table.d.ts +11 -0
  28. package/dist/gids-md-table.js +1 -0
  29. package/dist/gids-overflow-container.js +1 -1
  30. package/dist/gids-overlay-provider.js +1 -1
  31. package/dist/gids-password-field.js +1 -1
  32. package/dist/gids-pie-chart.js +1 -1
  33. package/dist/gids-popover.js +1 -1
  34. package/dist/gids-scrim.js +1 -1
  35. package/dist/gids-tab-item.js +1 -1
  36. package/dist/gids-tab.js +1 -1
  37. package/dist/gids-text-field.js +1 -1
  38. package/dist/gids-toggle-button.js +1 -1
  39. package/dist/gids-tooltip.js +1 -1
  40. package/dist/p-4lN1OdcA.js +1 -0
  41. package/dist/{p-CD_BHkBE.js → p-6APCjBEI.js} +1 -1
  42. package/dist/p-BCVFQSjK.js +1 -0
  43. package/dist/{p-DfrYaprq.js → p-BSbOhfLZ.js} +1 -1
  44. package/dist/{p-DA_atCAU.js → p-BVAtja26.js} +1 -1
  45. package/dist/{p-BeP2XcqY.js → p-C2O_pGky.js} +1 -1
  46. package/dist/p-C2POfZhu.js +1 -0
  47. package/dist/{p-3Ni1-UuQ.js → p-C3We7Q8Q.js} +1 -1
  48. package/dist/{p-C4yEV6pT.js → p-C3w3wdCt.js} +1 -1
  49. package/dist/{p-BQCMjWpK.js → p-C3xv7tfs.js} +1 -1
  50. package/dist/{p-Ditd1zV7.js → p-C56G7JRy.js} +1 -1
  51. package/dist/p-CI-sN9Lr.js +1 -0
  52. package/dist/{p-WHI6NO_h.js → p-COHuQEfZ.js} +1 -1
  53. package/dist/{p-CkydANOS.js → p-Chqeexny.js} +1 -1
  54. package/dist/{p-C2PfO9h9.js → p-DO0MyFf4.js} +1 -1
  55. package/dist/p-DUojHltk.js +1 -0
  56. package/dist/p-_SIWct9h.js +1 -0
  57. package/dist/{p-qIkbfIF3.js → p-pSb81aE0.js} +1 -1
  58. package/dist/{p-BE2G21MT.js → p-ub0GuVHb.js} +1 -1
  59. package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +7 -0
  60. package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +5 -0
  61. package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +11 -0
  62. package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +5 -0
  63. package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +5 -0
  64. package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +12 -0
  65. package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +15 -2
  66. package/dist/types/components/webComponents/GidsExpansionBodyList/GidsExpansionBodyList.d.ts +5 -4
  67. package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +5 -0
  68. package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +42 -0
  69. package/dist/types/components.d.ts +199 -12
  70. package/dist-bundled/es/gids-action-bar.js +168 -126
  71. package/dist-bundled/es/gids-activity-gauge.js +4 -4
  72. package/dist-bundled/es/gids-bar-chart.js +1 -1
  73. package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
  74. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  75. package/dist-bundled/es/gids-calendar-year-list.js +4 -4
  76. package/dist-bundled/es/gids-calendar.js +7 -7
  77. package/dist-bundled/es/gids-chart-legend-item.js +4 -4
  78. package/dist-bundled/es/gids-chart-legend.js +4 -4
  79. package/dist-bundled/es/gids-chart.js +18 -18
  80. package/dist-bundled/es/gids-chevron-button.js +2 -2
  81. package/dist-bundled/es/gids-dot.js +1 -1
  82. package/dist-bundled/es/gids-dropdown-field.js +5 -5
  83. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  84. package/dist-bundled/es/gids-dropdown.js +4 -4
  85. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  86. package/dist-bundled/es/gids-expansion-body-list.js +35 -35
  87. package/dist-bundled/es/gids-expansion-group.js +5 -5
  88. package/dist-bundled/es/gids-expansion.js +4 -4
  89. package/dist-bundled/es/gids-field.js +1 -1
  90. package/dist-bundled/es/gids-filter.js +2 -2
  91. package/dist-bundled/es/gids-icon.js +4 -4
  92. package/dist-bundled/es/gids-input.js +1 -1
  93. package/dist-bundled/es/gids-line-chart.js +4 -4
  94. package/dist-bundled/es/gids-md-table.js +170 -0
  95. package/dist-bundled/es/gids-overflow-container.js +1 -1
  96. package/dist-bundled/es/gids-overlay-provider.js +2 -2
  97. package/dist-bundled/es/gids-password-field.js +24 -24
  98. package/dist-bundled/es/gids-pie-chart.js +1 -1
  99. package/dist-bundled/es/gids-popover.js +1 -1
  100. package/dist-bundled/es/gids-scrim.js +6 -6
  101. package/dist-bundled/es/gids-tab-item.js +6 -6
  102. package/dist-bundled/es/gids-tab.js +4 -4
  103. package/dist-bundled/es/gids-text-field.js +16 -16
  104. package/dist-bundled/es/gids-toggle-button.js +1 -1
  105. package/dist-bundled/es/gids-tooltip.js +4 -4
  106. package/dist-bundled/es/{p-DlI2raNo-5V-p1A9Z.js → p-4lN1OdcA-xYP8gbDc.js} +17 -34
  107. package/dist-bundled/es/{p-CD_BHkBE-DX2546yK.js → p-6APCjBEI-BREg63Xr.js} +5 -5
  108. package/dist-bundled/es/{p-Cn-t3SGc-CwvvOdlK.js → p-BCVFQSjK-CKrYrI4b.js} +15 -15
  109. package/dist-bundled/es/{p-DfrYaprq-CeZqb0rn.js → p-BSbOhfLZ-BdEHhmFM.js} +3 -3
  110. package/dist-bundled/es/{p-DA_atCAU-KdxJYYDE.js → p-BVAtja26-C16IjShX.js} +8 -8
  111. package/dist-bundled/es/{p-BeP2XcqY-DMXmX4Mc.js → p-C2O_pGky-CP4PN55D.js} +10 -10
  112. package/dist-bundled/es/p-C2POfZhu-DzG_JxV6.js +24 -0
  113. package/dist-bundled/es/{p-3Ni1-UuQ-CPn15cat.js → p-C3We7Q8Q-2EoDLj5m.js} +2 -2
  114. package/dist-bundled/es/{p-C4yEV6pT-8IjLINXB.js → p-C3w3wdCt-BTH-jYlI.js} +6 -6
  115. package/dist-bundled/es/{p-BQCMjWpK-CLxPNItn.js → p-C3xv7tfs-DHsjc3Ns.js} +4 -4
  116. package/dist-bundled/es/{p-Ditd1zV7-DdQjXthS.js → p-C56G7JRy-BCGZG2-3.js} +2 -2
  117. package/dist-bundled/es/{p-DVVJrKxO-Bdl0HX_u.js → p-CI-sN9Lr-BvWzRJw-.js} +20 -19
  118. package/dist-bundled/es/{p-WHI6NO_h-DHNy0JzV.js → p-COHuQEfZ-DcUxD9TI.js} +11 -11
  119. package/dist-bundled/es/{p-CkydANOS-CzTX9wng.js → p-Chqeexny-BuJ-PhNi.js} +6 -6
  120. package/dist-bundled/es/{p-D4Pimu_8-DfEGRQGf.js → p-D4Pimu_8-ARSuGBs4.js} +0 -1
  121. package/dist-bundled/es/{p-D6lxqcxP-DWrZi1Xi.js → p-D6lxqcxP-C6BOC0kV.js} +1 -1
  122. package/dist-bundled/es/{p-C2PfO9h9-H_toZwKo.js → p-DO0MyFf4-Ddg5sVMx.js} +5 -5
  123. package/dist-bundled/es/p-DUojHltk-BQ0ryfLD.js +172 -0
  124. package/dist-bundled/es/{p-UxDcM-C5-Dr5d_WpJ.js → p-UxDcM-C5-BJO4X0jM.js} +1 -1
  125. package/dist-bundled/es/{p-KaaOtnwV-D7HTbhvI.js → p-_SIWct9h-jMYFZ-VO.js} +12 -12
  126. package/dist-bundled/es/{p-qIkbfIF3-B7NovGEi.js → p-pSb81aE0-WzAszFOQ.js} +2 -2
  127. package/dist-bundled/es/{p-BE2G21MT-WGW-ehxu.js → p-ub0GuVHb-C9vrhXyF.js} +2 -2
  128. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  129. package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
  130. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  131. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  132. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  133. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  134. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  135. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  136. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  137. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  138. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  139. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  140. package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
  141. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  142. package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
  143. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  144. package/dist-bundled/umd/gids-expansion-body-list.umd.js +2 -2
  145. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  146. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  147. package/dist-bundled/umd/gids-field.umd.js +1 -1
  148. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  149. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  150. package/dist-bundled/umd/gids-input.umd.js +1 -1
  151. package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
  152. package/dist-bundled/umd/gids-md-table.umd.js +5 -0
  153. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  154. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  155. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  156. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  157. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  158. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  159. package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
  160. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  161. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  162. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  163. package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
  164. package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
  165. package/package.json +17 -9
  166. package/dist/p-2wB6zkno.js +0 -1
  167. package/dist/p-Cn-t3SGc.js +0 -1
  168. package/dist/p-DVVJrKxO.js +0 -1
  169. package/dist/p-DlI2raNo.js +0 -1
  170. package/dist/p-KaaOtnwV.js +0 -1
  171. package/dist-bundled/es/p-2wB6zkno-57WAxATm.js +0 -152
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(b.childNodes)).forEach((S=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&De(e.S)),i},De=e=>{_.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(O(t,n,o??null),n["s-sh"]=void 0,K=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==I&&n["s-ol"]&&(O(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}_.i&=-2},Ie=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===I&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,O(a,r,W(t))))},ze=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,L=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),re(e,t,x),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,b,S=0,v=0,m=0,g=0,N=h.length-1,y=h[0],C=h[N],A=u.length-1,E=u[0],$=u[A];const ot=c.O==="template"?d.content:d;for(;S<=N&&v<=A;)if(y==null)y=h[++S];else if(C==null)C=h[--N];else if(E==null)E=u[++v];else if($==null)$=u[--A];else if(J(y,E,p))L(y,E,p),y=h[++S],E=u[++v];else if(J(C,$,p))L(C,$,p),C=h[--N],$=u[--A];else if(J(y,$,p))y.O!=="slot"&&$.O!=="slot"||Z(y.S.parentNode,!1),L(y,$,p),O(ot,y.S,C.S.nextSibling),y=h[++S],$=u[--A];else if(J(C,E,p))y.O!=="slot"&&$.O!=="slot"||Z(C.S.parentNode,!1),L(C,E,p),O(ot,C.S,y.S),C=h[--N],E=u[++v];else{for(m=-1,g=S;g<=N;++g)if(h[g]&&h[g].$!==null&&h[g].$===E.$){m=g;break}m>=0?(b=h[m],b.O!==E.O?f=Y(h&&h[v],c,m):(L(b,E,p),h[m]=void 0,f=b.S),E=u[++v]):(f=Y(h&&h[v],c,v),E=u[++v]),f&&O(W(y.S).parentNode,f,W(y.S))}S>N?Ie(d,u[A+1]==null?null:u[A+1].S,c,u,v,A):v>A&&ze(h,S,N)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!o&&n!==null&&ze(n,0,n.length-1),x&&r==="svg"&&(x=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,r)){let a=j.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{xe(l.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}i.nodeType===1&&Re(i)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},vt=(e,t)=>{ce.push((()=>e(t)))},O=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=H(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},yt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===ht?t:z(null,null,t);if(I=l.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,F=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,L(h,u,o),_.i|=1,K){Re(u.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,O(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(O(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,O(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&_e(u.S),_.i&=-2,j.length=0,!F&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==I&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],O(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const o=()=>St(e,t);if(!t)return at(o);queueMicrotask((()=>{o()}))},St=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=B(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Ge(n,(()=>B(s,"componentWillRender",void 0,o))),Ge(n,(()=>wt(e,s,t)))},Ge=(e,t)=>bt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,d=a.i,h=((c,u)=>{var p,f,b;const S=Ae(u),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,g=P.get(c=c.head||c);if(g||P.set(c,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=v;const N=(p=_._)!=null?p:(function(){var y,C,A;return(A=(C=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?A:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&u.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),C=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,C?.parentNode===c?C:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(m)}else c.append(m);1&u.i&&c.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=P.get(c);if(m||P.set(c,m=new Set),!m.has(S)){const g=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===g.CSSStyleSheet)N=v;else{N=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Nt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,yt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,o=t,s=e.R;B(o,"componentDidRender",void 0,t),64&e.i?B(o,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),B(o,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},_t=()=>{se((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},B=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},xt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=k(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){D(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},At=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&it.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=k(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=h?.H)==null||d.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Oe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:h}=R(i,a)||{};d&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,k(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=k(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),h.apply(this,[$e(c,l,!!(64&t.i))]),void He(this,a,c=32&l?this[a]:u.$hostElement$[a],t);He(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,d,h){_.jmp((()=>{var c;const u=a.get(l),p=k(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const g=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[C,A]]=Object.entries(y);g[C]!=null&&(128&m||1&A)&&g[C].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(i,u);S||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,d])=>31&d[0])).map((([l,d])=>{var h;const c=d[1]||l;return a.set(c,l),512&d[0]&&((h=t.C)==null||h.push([l,c])),c}))]))}}return e},Fe=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Oe(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&nt(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=k(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const r=k(i);if(!r)return;const a=r.o;if(1&r.i)We(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const b=Ae(h);V.has(b)||((S,v,m)=>{let g=V.get(S);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,V.set(S,g)})(b,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){D(u,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const r=k(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(i)&&P.delete(i),i.shadowRoot&&P.has(i.shadowRoot)&&P.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ct.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),At(e,o,3)}catch(s){return D(s),e}},We=(e,t,o)=>{o&&w.document&&o.map((([s,n,i])=>{const r=Ot(w.document,e,s),a=Et(t,i),l=$t(s);_.ael(r,n,a,l),(t.V=t.V||[]).push((()=>_.rel(r,n,a,l)))}))},Et=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){D(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}const M=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Be=!1;M&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(M):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let he=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(M===void 0)return!1;const e=(()=>{if(M===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ue!==void 0&&t!==he&&(he&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),he=t),M.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ue=()=>(Be||(Be=Ve()),M);function qe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=qe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Ke(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qe(e))&&(s&&(s+=" "),s+=t);return s}const kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ke("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:o},s)=>Ke("gids-dot",{"gids-dot--disabled":o,"gids-dot--subtle":e==="subtle"&&!o,"gids-dot--static-inverse":e==="static-inverse"&&!o,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ye=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(Ye)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(Ye,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const ge=Symbol.for("GIDS"),Tt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Dt=e=>{const t=Tt().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function me(){return Dt("@ganpatiinfo/gids-web-shared")}function It(){return me().haveAssetPathsBeenSet()}function Ze(e){return me().getAssetFilePath(e)}function zt(e){return me().onAssetPathsSet(e)}let Rt=0;const Lt=(e,t="gids")=>e||`${t}-${Rt++}`,Je={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function Mt(e){return Qe.get(e)}function Xe(e,t="regular",o){const s=Mt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Gt}=kt,Ht=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let d=r;return d===void 0&&It()&&(d=Xe(e,o,Ze)),z("svg",{ref:h=>{d===void 0&&zt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Xe(u,p,Ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Gt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&z("title",{id:l},s||e),d!==void 0?z("use",{href:d}):null)},Ft=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return z(Ht,{key:"955185abe280726949b4d98e59357e69b4aa7604",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function et(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ft))}))}et();const{getGidsDotClassNames:ve}=jt,tt=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return z("gids-icon",{key:"f3def666269d9c84a93ec4224d077eabda4ffcd8",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function st(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,tt);break;case"gids-icon":customElements.get(e)||et()}}))}st();const Wt=tt,Bt=st;T.GidsDot=Wt,T.defineCustomElement=Bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(b.childNodes)).forEach((S=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&De(e.S)),i},De=e=>{_.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(O(t,n,o??null),n["s-sh"]=void 0,K=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==I&&n["s-ol"]&&(O(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}_.i&=-2},Ie=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===I&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,O(a,r,W(t))))},ze=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,L=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),re(e,t,x),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,b,S=0,v=0,m=0,g=0,N=h.length-1,y=h[0],C=h[N],A=u.length-1,E=u[0],$=u[A];const ot=c.O==="template"?d.content:d;for(;S<=N&&v<=A;)if(y==null)y=h[++S];else if(C==null)C=h[--N];else if(E==null)E=u[++v];else if($==null)$=u[--A];else if(J(y,E,p))L(y,E,p),y=h[++S],E=u[++v];else if(J(C,$,p))L(C,$,p),C=h[--N],$=u[--A];else if(J(y,$,p))y.O!=="slot"&&$.O!=="slot"||Z(y.S.parentNode,!1),L(y,$,p),O(ot,y.S,C.S.nextSibling),y=h[++S],$=u[--A];else if(J(C,E,p))y.O!=="slot"&&$.O!=="slot"||Z(C.S.parentNode,!1),L(C,E,p),O(ot,C.S,y.S),C=h[--N],E=u[++v];else{for(m=-1,g=S;g<=N;++g)if(h[g]&&h[g].$!==null&&h[g].$===E.$){m=g;break}m>=0?(b=h[m],b.O!==E.O?f=Y(h&&h[v],c,m):(L(b,E,p),h[m]=void 0,f=b.S),E=u[++v]):(f=Y(h&&h[v],c,v),E=u[++v]),f&&O(W(y.S).parentNode,f,W(y.S))}S>N?Ie(d,u[A+1]==null?null:u[A+1].S,c,u,v,A):v>A&&ze(h,S,N)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!o&&n!==null&&ze(n,0,n.length-1),x&&r==="svg"&&(x=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,r)){let a=j.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{xe(l.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}i.nodeType===1&&Re(i)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},vt=(e,t)=>{ce.push((()=>e(t)))},O=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=H(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},yt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===ht?t:z(null,null,t);if(I=l.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,F=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,L(h,u,o),_.i|=1,K){Re(u.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,O(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(O(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,O(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&_e(u.S),_.i&=-2,j.length=0,!F&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==I&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],O(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const o=()=>St(e,t);if(!t)return at(o);queueMicrotask((()=>{o()}))},St=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=B(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Ge(n,(()=>B(s,"componentWillRender",void 0,o))),Ge(n,(()=>wt(e,s,t)))},Ge=(e,t)=>bt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,d=a.i,h=((c,u)=>{var p,f,b;const S=Ae(u),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,g=P.get(c=c.head||c);if(g||P.set(c,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=v;const N=(p=_._)!=null?p:(function(){var y,C,A;return(A=(C=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?A:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&u.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),C=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,C?.parentNode===c?C:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(m)}else c.append(m);1&u.i&&c.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=P.get(c);if(m||P.set(c,m=new Set),!m.has(S)){const g=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===g.CSSStyleSheet)N=v;else{N=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Nt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,yt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,o=t,s=e.R;B(o,"componentDidRender",void 0,t),64&e.i?B(o,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),B(o,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},_t=()=>{se((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},B=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},xt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=k(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){D(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},At=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&it.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=k(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=h?.H)==null||d.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Oe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:h}=R(i,a)||{};d&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,k(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=k(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),h.apply(this,[$e(c,l,!!(64&t.i))]),void He(this,a,c=32&l?this[a]:u.$hostElement$[a],t);He(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,d,h){_.jmp((()=>{var c;const u=a.get(l),p=k(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const g=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[C,A]]=Object.entries(y);g[C]!=null&&(128&m||1&A)&&g[C].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(i,u);S||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,d])=>31&d[0])).map((([l,d])=>{var h;const c=d[1]||l;return a.set(c,l),512&d[0]&&((h=t.C)==null||h.push([l,c])),c}))]))}}return e},Fe=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Oe(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&nt(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=k(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const r=k(i);if(!r)return;const a=r.o;if(1&r.i)We(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const b=Ae(h);V.has(b)||((S,v,m)=>{let g=V.get(S);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,V.set(S,g)})(b,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){D(u,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const r=k(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(i)&&P.delete(i),i.shadowRoot&&P.has(i.shadowRoot)&&P.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ct.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),At(e,o,3)}catch(s){return D(s),e}},We=(e,t,o)=>{o&&w.document&&o.map((([s,n,i])=>{const r=Ot(w.document,e,s),a=Et(t,i),l=$t(s);_.ael(r,n,a,l),(t.V=t.V||[]).push((()=>_.rel(r,n,a,l)))}))},Et=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){D(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}const M=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Be=!1;M&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(M):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let he=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(M===void 0)return!1;const e=(()=>{if(M===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ue!==void 0&&t!==he&&(he&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),he=t),M.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ue=()=>(Be||(Be=Ve()),M);function qe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=qe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Ke(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qe(e))&&(s&&(s+=" "),s+=t);return s}const kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ke("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:o},s)=>Ke("gids-dot",{"gids-dot--disabled":o,"gids-dot--subtle":e==="subtle"&&!o,"gids-dot--static-inverse":e==="static-inverse"&&!o,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ye=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(Ye)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(Ye,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const ge=Symbol.for("GIDS"),Tt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Dt=e=>{const t=Tt().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function me(){return Dt("@ganpatiinfo/gids-web-shared")}function It(){return me().haveAssetPathsBeenSet()}function Ze(e){return me().getAssetFilePath(e)}function zt(e){return me().onAssetPathsSet(e)}let Rt=0;const Lt=(e,t="gids")=>e||`${t}-${Rt++}`,Je={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function Mt(e){return Qe.get(e)}function Xe(e,t="regular",o){const s=Mt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Gt}=kt,Ht=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let d=r;return d===void 0&&It()&&(d=Xe(e,o,Ze)),z("svg",{ref:h=>{d===void 0&&zt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Xe(u,p,Ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Gt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&z("title",{id:l},s||e),d!==void 0?z("use",{href:d}):null)},Ft=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return z(Ht,{key:"bc81f0bb3a1e558071dc334873802ac8c8ec31ef",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function et(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ft))}))}et();const{getGidsDotClassNames:ve}=jt,tt=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return z("gids-icon",{key:"81581bd6fb72e8ff6ce203c8e63b2f1c5d9c1121",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function st(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,tt);break;case"gids-icon":customElements.get(e)||et()}}))}st();const Wt=tt,Bt=st;T.GidsDot=Wt,T.defineCustomElement=Bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function(D,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(D=typeof globalThis<"u"?globalThis:D||self,P(D.gidsCoreWebGidsDropdownField={}))})(this,(function(D){"use strict";function P(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var B,vt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],a=P(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(r){a.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},N=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ie=(e,t)=>t in e,O=(e,t)=>(0,console.error)(e,t),z=new Map,ke="http://www.w3.org/1999/xlink",yt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],x=typeof window<"u"?window:{},U=x.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},_t=(()=>{var e;let t=!1;try{(e=x.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ie=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ie&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,le=!1,Le=[],Te=[],bt=(e,t)=>s=>{e.push(s),le||(le=!0,4&C.i?re(ae):C.raf(ae))},Ae=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){O(s)}e.length=0},ae=()=>{Ae(Le),Ae(Te),(le=Le.length>0)&&C.raf(ae)},re=e=>Promise.resolve(void 0).then(e),St=bt(Te);function xt(){const e=this.attachShadow({mode:"open"});B===void 0&&(B=null),B&&(oe?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var Ne=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!Et(n,H(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ce(n,"childNodes").length&&Ne(n)}};function de(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||H(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...de(n.childNodes,t,s)]}return o}var Et=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)H(i)!==t||!s&&i["s-sr"]||n.push(i);return n},Ve=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",H=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var he,F,$=new WeakMap,$e=e=>"sc-"+e.p,ue=e=>(e=typeof e)=="object"||e==="function",f=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,r=!1;const l=[],c=d=>{for(let u=0;u<d.length;u++)n=d[u],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!ue(n))&&(n=String(n)),a&&r?l[l.length-1].h+=n:l.push(a?K(null,n):n),r=a)};if(c(s),t){t.key&&(i=t.key),t.name&&(o=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,wt);const h=K(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=i,h.j=o,h},K=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),De={},wt={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(Ct)},Oe=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 s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),f(e.vtag,s,...e.vchildren||[])}const t=K(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Fe=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Pe=(e,t,s)=>e==null||ue(e)?e:4&t?(s&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,It=(e,t,s)=>{const n=C.ce(t,s);return e.dispatchEvent(n),n},Me=(e,t,s,n,i,o)=>{if(s===n)return;let a=Ie(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,c=je(s);let h=je(n);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 s)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)s&&n[l]===s[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&Tt(n,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=N(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(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=ue(n);if((a||l&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const h=n??"";t==="list"?a=!1:s!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ke,t):e.removeAttribute(t)):(!a||4&o||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(ke,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Ie(x,r)?r.slice(2):r[2]+t.slice(3),s||n){const l=t.endsWith(Re);t=t.replace(Lt,""),s&&C.rel(e,t,s,l),n&&C.ael(e,t,n,l)}}},kt=/\s/,je=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(kt):[]),Re="Capture",Lt=new RegExp(Re+"$"),pe=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of Be(Object.keys(i)))a in o||Me(n,a,i[a],void 0,s,t.i);for(const a of Be(Object.keys(o)))Me(n,a,i[a],o[a],s,t.i)};function Be(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var G=!1,Y=!1,J=!1,I=!1,fe=[],ge=[],X=(e,t,s)=>{var n;const i=t.m[s];let o,a,r,l=0;if(G||(J=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=x.document.createTextNode(i.h);else if(1&i.i)o=i.S=x.document.createTextNode(""),pe(null,i,I);else{if(I||(I=i.O==="svg"),!x.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=x.document.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!G&&2&i.i?"slot-fb":i.O),I&&i.O==="foreignObject"&&(I=!1),pe(null,i,I),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)a=X(e,i,l),a&&c.appendChild(a)}i.O==="svg"?I=!1:o.tagName==="foreignObject"&&(I=!0)}return o["s-hn"]=F,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=he,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const g=[],p=this["s-sn"];u?.flatten&&console.error(`
1
+ (function(D,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(D=typeof globalThis<"u"?globalThis:D||self,P(D.gidsCoreWebGidsDropdownField={}))})(this,(function(D){"use strict";function P(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var B,vt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],a=P(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(r){a.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},N=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ie=(e,t)=>t in e,O=(e,t)=>(0,console.error)(e,t),z=new Map,ke="http://www.w3.org/1999/xlink",yt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],x=typeof window<"u"?window:{},U=x.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},bt=(()=>{var e;let t=!1;try{(e=x.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ie=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ie&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,le=!1,Le=[],Te=[],_t=(e,t)=>s=>{e.push(s),le||(le=!0,4&C.i?re(ae):C.raf(ae))},Ae=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){O(s)}e.length=0},ae=()=>{Ae(Le),Ae(Te),(le=Le.length>0)&&C.raf(ae)},re=e=>Promise.resolve(void 0).then(e),St=_t(Te);function xt(){const e=this.attachShadow({mode:"open"});B===void 0&&(B=null),B&&(oe?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var Ne=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!Et(n,H(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ce(n,"childNodes").length&&Ne(n)}};function de(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||H(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...de(n.childNodes,t,s)]}return o}var Et=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)H(i)!==t||!s&&i["s-sr"]||n.push(i);return n},Ve=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",H=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var he,F,$=new WeakMap,$e=e=>"sc-"+e.p,ue=e=>(e=typeof e)=="object"||e==="function",f=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,r=!1;const l=[],c=d=>{for(let u=0;u<d.length;u++)n=d[u],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!ue(n))&&(n=String(n)),a&&r?l[l.length-1].h+=n:l.push(a?K(null,n):n),r=a)};if(c(s),t){t.key&&(i=t.key),t.name&&(o=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,wt);const h=K(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=i,h.j=o,h},K=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),De={},wt={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(Ct)},Oe=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 s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),f(e.vtag,s,...e.vchildren||[])}const t=K(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Fe=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Pe=(e,t,s)=>e==null||ue(e)?e:4&t?(s&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,It=(e,t,s)=>{const n=C.ce(t,s);return e.dispatchEvent(n),n},Me=(e,t,s,n,i,o)=>{if(s===n)return;let a=Ie(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,c=je(s);let h=je(n);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 s)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)s&&n[l]===s[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&Tt(n,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=N(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(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=ue(n);if((a||l&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const h=n??"";t==="list"?a=!1:s!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ke,t):e.removeAttribute(t)):(!a||4&o||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(ke,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Ie(x,r)?r.slice(2):r[2]+t.slice(3),s||n){const l=t.endsWith(Re);t=t.replace(Lt,""),s&&C.rel(e,t,s,l),n&&C.ael(e,t,n,l)}}},kt=/\s/,je=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(kt):[]),Re="Capture",Lt=new RegExp(Re+"$"),pe=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of Be(Object.keys(i)))a in o||Me(n,a,i[a],void 0,s,t.i);for(const a of Be(Object.keys(o)))Me(n,a,i[a],o[a],s,t.i)};function Be(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var G=!1,Y=!1,J=!1,I=!1,fe=[],ge=[],X=(e,t,s)=>{var n;const i=t.m[s];let o,a,r,l=0;if(G||(J=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=x.document.createTextNode(i.h);else if(1&i.i)o=i.S=x.document.createTextNode(""),pe(null,i,I);else{if(I||(I=i.O==="svg"),!x.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=x.document.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!G&&2&i.i?"slot-fb":i.O),I&&i.O==="foreignObject"&&(I=!1),pe(null,i,I),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)a=X(e,i,l),a&&c.appendChild(a)}i.O==="svg"?I=!1:o.tagName==="foreignObject"&&(I=!0)}return o["s-hn"]=F,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=he,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const g=[],p=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:(b=>{const y=[];for(let v=0;v<b.length;v++){const m=b[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((b=>{p===H(b)&&g.push(b)})),d?g.filter((b=>b.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),pe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let p,S,b=0,y=0,v=0,m=0,w=h.length-1,_=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;b<=w&&y<=k;)if(_==null)_=h[++b];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(_,L,g))M(_,L,g),_=h[++b],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(_,A,g))_.O!=="slot"&&A.O!=="slot"||Z(_.S.parentNode,!1),M(_,A,g),T(mt,_.S,E.S.nextSibling),_=h[++b],A=u[--k];else if(Q(E,L,g))_.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,_.S),E=h[--w],L=u[++y];else{for(v=-1,m=b;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?p=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,p=S.S),L=u[++y]):(p=X(h&&h[y],d,y),L=u[++y]),p&&T(q(_.S).parentNode,p,q(_.S))}b>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,b,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&fe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:f(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,p])=>{u.v[p]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const p=g.k;if(!p["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=p,T(p.parentNode,p["s-ol"]=S,p,s)}}for(const g of V){const p=g.k,S=g.N;if(p.nodeType===1&&s&&(p["s-ih"]=(n=p.hidden)!=null&&n),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=p["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===p["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&b!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(T(b,p,y,s),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=p["s-hn"],v["s-sn"]=p["s-sn"],v["s-sh"]=p["s-sh"],v["s-sr"]=p["s-sr"],v["s-ol"]=p["s-ol"],v["s-ol"]["s-nr"]=v,T(p.parentNode,v,p,s),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else p.nodeType===1&&(p.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const p of g)if(p["s-hn"]!==F&&!p["s-sh"]){if(s&&p["s-ih"]==null&&(p["s-ih"]=(r=p.hidden)!=null&&r),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const S=x.document.createComment("s-nt-"+p.nodeValue);S["s-sn"]=p["s-sn"],T(p.parentNode,S,p,s),p.parentNode.removeChild(p)}}}he=void 0,fe.forEach((g=>g())),fe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,p,S;const b=$e(u),y=z.get(b);if(!x.document)return b;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(b)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var _,E,k;return(k=(E=(_=x.document.head)==null?void 0:_.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const _=d.querySelectorAll("link[rel=preconnect]"),E=_.length>0?_[_.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const _=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;_.replaceSync(y),oe?d.adoptedStyleSheets.unshift(_):d.adoptedStyleSheets=[_,...d.adoptedStyleSheets]}else{const _=d.querySelector("style");_?_.textContent=y+_.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let _=0;_<y.cssRules.length;_++)w.insertRule(y.cssRules[_].cssText,_)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((_=>{const[[E,k]]=Object.entries(_);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const p=a.find((([v])=>v===u)),S=p&&4&p[1][0],b=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);b||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const S=$e(h);z.has(S)||((b,y,v)=>{let m=z.get(b);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(b,m)})(S,p,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>_t?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Ut=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?Ut(e):e,Kt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,Yt=te/2,ve=2*Math.PI*tt,Jt=`0 0 ${te} ${te}`,Xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Yt,circumference:ve,radius:tt,thickness:et,viewBox:Jt},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),_e="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(_e))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(_e,t,{once:!0}),()=>{this.removeEventListener(_e,t)}}}const be=Symbol.for("GIDS"),ts=()=>(globalThis[be]===void 0&&(globalThis[be]={assetPaths:{}}),globalThis[be]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Kt,{getGidsLabelClassNames:ds}=Gt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return f("div",{class:ds({disabled:e},r),...c},f("label",{htmlFor:o,id:a},h,d&&f("span",{class:"gids-label__field-requirement"},d)),i)},ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Wt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),f("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",at(u,g,nt)),d.appendChild(p)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&f("title",{id:l},n||e),c!==void 0?f("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ps}=qt,{calculateStrokeDasharray:fs,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Xt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:fs(s,n||0),strokeDashoffset:"0"}),f("svg",{class:ps({size:e,indeterminate:t,value:s}),viewBox:gs,...i},f("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),f("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return f(jt,{key:"3364c49f298dc7205bfd1b173f7eeaf2f89c7c9a"},f("slot",{key:"c997142ff339b65f0631afeb7996bc50f921c82a",name:"leadingIcon"}),this.leadingLabel&&f("span",{key:"ef61a3c8a1fb0e796cc7a783cc87054c8186af06",class:"gids-input__label"},this.leadingLabel),f("slot",{key:"5c9b81e5ac0367f31d303f0310b6f2e65b085223",name:"leadingAccessory"}),f("input",{key:"6435d4d1e656d4ca44c7800ccb888090d40b59cd",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),f("slot",{key:"c5e15100d71349d57f3d0af1f8e5ab6b6808b350",name:"trailingAccessory"}),this.trailingLabel&&f("span",{key:"50ee400d7731b6ae7de40cb918ee2f3887fa2857",class:"gids-input__label"},this.trailingLabel),f("slot",{key:"62e4f88e0e73611a4ccd2952b2d907ae430ad1de",name:"trailingIcon"}),this.status==="incomplete"&&f(se,{key:"7594ffc84d2fecca11158d91eaabcf023586778a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&f(se,{key:"24fd3813e2aa8d5139da021064c62333bbec9592",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&f(ms,{key:"bbf9ac97350dfb2a84c3a4c1095c5baa886ad3c9",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:_s}=Qt,Ee="gids-dropdown-item--active",bs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:n.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=f("button",{key:"99a40510073627975e39603ce6a8221afa33b1fd",class:_s({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},f("span",{key:"aaa7754a3a47f4b3d9fd87876ef0d325c2257a13",class:"gids-button__content"},f(se,{key:"666627197262d2001c5daf094b0672ddefea4259",name:"chevron-vertical",alt:""})));return f("div",{key:"377633cfdf472a56971b063704e1cc062900f15a",class:t},f("gids-input",{key:"a33f3bf0dded59fb75e17413e74185a7c61f9694",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&f("slot",{key:"bcf24ea40c3818afc738167ce5f840170c243e64",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&f("slot",{key:"01a8ac787d71ebd9f4c785cc43ced091de62962f",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),f("div",{key:"5de88270802bd09428e42b2f5a9960ab63a4a181",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},f("slot",{key:"fb52af150876d3805ce00d5dff14ff02378b9415"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,bs);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Zt,Es=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ss();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return f(De,{key:"57aae828a0cdd8ac1044cdafab34dc0f76731814"},f("div",{key:"3455d9ff33bf012679e0c25869cbdcf43ea40742",class:xs()},f("div",{key:"ca6948c95470527551c40ef14ae5af5e40a0e301",class:"gids-field__header",hidden:!this._hasLabelContent()},f("slot",{key:"caac19c05af1b41de4e6301c3c7060bbb995cb5c",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),f("div",{key:"9151fef3965568bd2f9e7fc9971b56791b681de6",class:"gids-field__count","aria-live":"polite"},this.count)),f("div",{key:"b2e41f4ccb83f9c3b2f310250a28f68758689649",class:"gids-field__control"},f("slot",{key:"faad5db257df90576e73fb7383c20ecc796c3b43",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),f("p",{key:"e4bc41ccde6d8713e599d6595aceeb7d60a833ed",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?f("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?f("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),f(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function pt(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}pt();const ft=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return f("gids-field",{key:"955fc1bb51a0f03f8385dbe839d369763e42e7fc",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?f(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,f("gids-dropdown",{key:"bba762ea7edb1ebaa2b14d0c8851858763172a08",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},f("slot",{key:"649ff40ddce21ad400c9a5026c73ee911115b085",name:"leadingIconDropdown"}),f("slot",{key:"43d91c9a9fc3a4ccfc78b37bc0abe291cceef511",name:"leadingAccessoryDropdown"}),f("slot",{key:"20e8a20ed143207e35aca5087c92bb48235a21aa"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,ft);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||pt();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=ft,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{p===H(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),pe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let p,S,_=0,y=0,v=0,m=0,w=h.length-1,b=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;_<=w&&y<=k;)if(b==null)b=h[++_];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(mt,b.S,E.S.nextSibling),b=h[++_],A=u[--k];else if(Q(E,L,g))b.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,b.S),E=h[--w],L=u[++y];else{for(v=-1,m=_;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?p=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,p=S.S),L=u[++y]):(p=X(h&&h[y],d,y),L=u[++y]),p&&T(q(b.S).parentNode,p,q(b.S))}_>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&fe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:f(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,p])=>{u.v[p]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const p=g.k;if(!p["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=p,T(p.parentNode,p["s-ol"]=S,p,s)}}for(const g of V){const p=g.k,S=g.N;if(p.nodeType===1&&s&&(p["s-ih"]=(n=p.hidden)!=null&&n),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=p["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===p["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(T(_,p,y,s),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=p["s-hn"],v["s-sn"]=p["s-sn"],v["s-sh"]=p["s-sh"],v["s-sr"]=p["s-sr"],v["s-ol"]=p["s-ol"],v["s-ol"]["s-nr"]=v,T(p.parentNode,v,p,s),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else p.nodeType===1&&(p.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const p of g)if(p["s-hn"]!==F&&!p["s-sh"]){if(s&&p["s-ih"]==null&&(p["s-ih"]=(r=p.hidden)!=null&&r),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const S=x.document.createComment("s-nt-"+p.nodeValue);S["s-sn"]=p["s-sn"],T(p.parentNode,S,p,s),p.parentNode.removeChild(p)}}}he=void 0,fe.forEach((g=>g())),fe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,p,S;const _=$e(u),y=z.get(_);if(!x.document)return _;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var b,E,k;return(k=(E=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),E=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const b=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)w.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[E,k]]=Object.entries(b);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const p=a.find((([v])=>v===u)),S=p&&4&p[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const S=$e(h);z.has(S)||((_,y,v)=>{let m=z.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(_,m)})(S,p,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>bt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Ut=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?Ut(e):e,Kt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,Yt=te/2,ve=2*Math.PI*tt,Jt=`0 0 ${te} ${te}`,Xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Yt,circumference:ve,radius:tt,thickness:et,viewBox:Jt},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),ts=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Kt,{getGidsLabelClassNames:ds}=Gt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return f("div",{class:ds({disabled:e},r),...c},f("label",{htmlFor:o,id:a},h,d&&f("span",{class:"gids-label__field-requirement"},d)),i)},ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Wt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),f("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",at(u,g,nt)),d.appendChild(p)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&f("title",{id:l},n||e),c!==void 0?f("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ps}=qt,{calculateStrokeDasharray:fs,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Xt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:fs(s,n||0),strokeDashoffset:"0"}),f("svg",{class:ps({size:e,indeterminate:t,value:s}),viewBox:gs,...i},f("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),f("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return f(jt,{key:"afdbc2c51c4a1f688534c76757ef7cdfb27d1cd0"},f("slot",{key:"83781fe23a5648cdd8345326e88e235c03cf60bc",name:"leadingIcon"}),this.leadingLabel&&f("span",{key:"b457d5343b714096c80ffebce6abd9e62fc57664",class:"gids-input__label"},this.leadingLabel),f("slot",{key:"e156f0f311bd7b662eb56c07c101b673c0945d14",name:"leadingAccessory"}),f("input",{key:"34d77865f743fab2e85d154b966c90b1434d212d",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),f("slot",{key:"fafb91d6e965e33b40577a10475e9a69a83e7a98",name:"trailingAccessory"}),this.trailingLabel&&f("span",{key:"3d673d4b05b850c165817615145e629f39b5859c",class:"gids-input__label"},this.trailingLabel),f("slot",{key:"ee39bb2e061ace41b7192f0fd2eae7edb35918e2",name:"trailingIcon"}),this.status==="incomplete"&&f(se,{key:"5d2faed6c95395d82a2ae1e72483fd15599f14b6",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&f(se,{key:"106200c1b025e3ee1467ffed2f246962933d42d0",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&f(ms,{key:"9125ce5ef482066da33b9429e0cb544e1a646cca",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:bs}=Qt,Ee="gids-dropdown-item--active",_s=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")||"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";let r=n.textContent?.trim()??"";r.endsWith("checkmark")&&(r=r.slice(0,-9).trim()),console.log("cleanTitle",r),this.applySelection({id:o,value:i,title:r.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=f("button",{key:"3c948278bf289c4fd943e4bff51c8e44e73ba6c9",class:bs({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},f("span",{key:"284f2a2141baa75624fcd9eeee21e6c98fd1e86e",class:"gids-button__content"},f(se,{key:"1e6567b3d5aefedfef1697f59d79de1a0635f86b",name:"chevron-vertical",alt:""})));return f("div",{key:"82b234b661a97f00fbfb69b1c24d3b1f468521dc",class:t},f("gids-input",{key:"6068c25be9fc8533a26525083c6082bfdfffbbfa",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&f("slot",{key:"8230d44f492a98c05c5830fa984270122f0963ca",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&f("slot",{key:"3a80369ad171bc0e37dfccbb9661d0db93dd55c1",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),f("div",{key:"2cad6d5213802acf9b673971a748bd16c06b986a",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},f("slot",{key:"90e9298103623d8a87677470c0f7e9b8655be880"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Zt,Es=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ss();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return f(De,{key:"b4c75ae8db2c6a526bca9abbdefa794697f79d6e"},f("div",{key:"7f1d56122271224e78b84482bbd1aa31dee0d6b5",class:xs()},f("div",{key:"21986a7bc03029da85eeef02af059b175c208bb9",class:"gids-field__header",hidden:!this._hasLabelContent()},f("slot",{key:"2c3e7e5e7ebc8b5b30157e755422267cffeb9333",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),f("div",{key:"db267881b537d312154b4b7b51c0816595b5c064",class:"gids-field__count","aria-live":"polite"},this.count)),f("div",{key:"34ee7450b5bce2c5ae58d151a6503f1079fdfc7e",class:"gids-field__control"},f("slot",{key:"d5a7c20818abf658fd1651d90bc7fe552ff4366e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),f("p",{key:"2859a75cb1f15eb4b998a8c9d0642b3a260967bc",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?f("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?f("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),f(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function pt(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}pt();const ft=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return f("gids-field",{key:"20c1747dfcab7f178de45a4046a53f0147425bde",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?f(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,f("gids-dropdown",{key:"83ff5c4adf7d7c6b4f65d55332c1ef33cf86dd02",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},f("slot",{key:"009165e31cfb3e4d7f2acc9ff2d2b77a0a3c9231",name:"leadingIconDropdown"}),f("slot",{key:"cf07e7454439b586c2dacdd69eebc71d0c99fb59",name:"leadingAccessoryDropdown"}),f("slot",{key:"bdb9dc44043a1b99c9e6cab5069420803c3bb834"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,ft);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||pt();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=ft,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));