@ganpatiinfo/gids-core-web 10.3.0 → 12.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 (204) hide show
  1. package/dist/css/index.css +259 -3
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.d.ts +1 -1
  4. package/dist/gids-action-bar.js +1 -1
  5. package/dist/gids-activity-gauge.d.ts +1 -1
  6. package/dist/gids-activity-gauge.js +1 -1
  7. package/dist/gids-bar-chart.d.ts +1 -1
  8. package/dist/gids-bar-chart.js +1 -1
  9. package/dist/gids-calendar-header-panel.d.ts +1 -1
  10. package/dist/gids-calendar-header-panel.js +1 -1
  11. package/dist/gids-calendar-month-list.d.ts +1 -1
  12. package/dist/gids-calendar-month-list.js +1 -1
  13. package/dist/gids-calendar-year-list.d.ts +1 -1
  14. package/dist/gids-calendar-year-list.js +1 -1
  15. package/dist/gids-calendar.d.ts +1 -1
  16. package/dist/gids-calendar.js +1 -1
  17. package/dist/gids-chart-legend-item.d.ts +1 -1
  18. package/dist/gids-chart-legend-item.js +1 -1
  19. package/dist/gids-chart-legend.d.ts +1 -1
  20. package/dist/gids-chart-legend.js +1 -1
  21. package/dist/gids-chart.d.ts +1 -1
  22. package/dist/gids-chart.js +1 -1
  23. package/dist/gids-chevron-button.d.ts +1 -1
  24. package/dist/gids-chevron-button.js +1 -1
  25. package/dist/gids-dot.d.ts +1 -1
  26. package/dist/gids-dot.js +1 -1
  27. package/dist/gids-dropdown-field.d.ts +1 -1
  28. package/dist/gids-dropdown-field.js +1 -1
  29. package/dist/gids-dropdown-picker.d.ts +1 -1
  30. package/dist/gids-dropdown-picker.js +1 -1
  31. package/dist/gids-dropdown.d.ts +1 -1
  32. package/dist/gids-dropdown.js +1 -1
  33. package/dist/gids-expansion-body-list-item.d.ts +1 -1
  34. package/dist/gids-expansion-body-list-item.js +1 -1
  35. package/dist/gids-expansion-body-list.d.ts +1 -1
  36. package/dist/gids-expansion-body-list.js +1 -1
  37. package/dist/gids-expansion-group.d.ts +1 -1
  38. package/dist/gids-expansion-group.js +1 -1
  39. package/dist/gids-expansion.d.ts +1 -1
  40. package/dist/gids-expansion.js +1 -1
  41. package/dist/gids-field.d.ts +1 -1
  42. package/dist/gids-field.js +1 -1
  43. package/dist/gids-filter.d.ts +1 -1
  44. package/dist/gids-filter.js +1 -1
  45. package/dist/gids-icon.d.ts +1 -1
  46. package/dist/gids-icon.js +1 -1
  47. package/dist/gids-input.d.ts +1 -1
  48. package/dist/gids-input.js +1 -1
  49. package/dist/gids-level-gauge.d.ts +1 -1
  50. package/dist/gids-line-chart.d.ts +1 -1
  51. package/dist/gids-line-chart.js +1 -1
  52. package/dist/gids-md-table.d.ts +11 -0
  53. package/dist/gids-md-table.js +1 -0
  54. package/dist/gids-notification.d.ts +1 -1
  55. package/dist/gids-overflow-container.d.ts +1 -1
  56. package/dist/gids-overflow-container.js +1 -1
  57. package/dist/gids-overlay-provider.d.ts +1 -1
  58. package/dist/gids-overlay-provider.js +1 -1
  59. package/dist/gids-password-field.d.ts +1 -1
  60. package/dist/gids-password-field.js +1 -1
  61. package/dist/gids-pie-chart.d.ts +1 -1
  62. package/dist/gids-pie-chart.js +1 -1
  63. package/dist/gids-popover.d.ts +1 -1
  64. package/dist/gids-popover.js +1 -1
  65. package/dist/gids-progress-circle.d.ts +1 -1
  66. package/dist/gids-scrim.d.ts +1 -1
  67. package/dist/gids-scrim.js +1 -1
  68. package/dist/gids-snackbar.d.ts +1 -1
  69. package/dist/gids-tab-item.d.ts +1 -1
  70. package/dist/gids-tab-item.js +1 -1
  71. package/dist/gids-tab.d.ts +1 -1
  72. package/dist/gids-tab.js +1 -1
  73. package/dist/gids-text-field.d.ts +1 -1
  74. package/dist/gids-text-field.js +1 -1
  75. package/dist/gids-toggle-button.d.ts +1 -1
  76. package/dist/gids-toggle-button.js +1 -1
  77. package/dist/gids-tooltip.d.ts +1 -1
  78. package/dist/gids-tooltip.js +1 -1
  79. package/dist/{p-CD_BHkBE.js → p-6APCjBEI.js} +1 -1
  80. package/dist/p-BCVFQSjK.js +1 -0
  81. package/dist/{p-DfrYaprq.js → p-BSbOhfLZ.js} +1 -1
  82. package/dist/{p-DA_atCAU.js → p-BVAtja26.js} +1 -1
  83. package/dist/{p-BeP2XcqY.js → p-C2O_pGky.js} +1 -1
  84. package/dist/{p-3Ni1-UuQ.js → p-C3We7Q8Q.js} +1 -1
  85. package/dist/{p-C4yEV6pT.js → p-C3w3wdCt.js} +1 -1
  86. package/dist/{p-BQCMjWpK.js → p-C3xv7tfs.js} +1 -1
  87. package/dist/{p-Ditd1zV7.js → p-C56G7JRy.js} +1 -1
  88. package/dist/p-CI-sN9Lr.js +1 -0
  89. package/dist/{p-WHI6NO_h.js → p-COHuQEfZ.js} +1 -1
  90. package/dist/{p-CkydANOS.js → p-Chqeexny.js} +1 -1
  91. package/dist/{p-C2PfO9h9.js → p-DO0MyFf4.js} +1 -1
  92. package/dist/p-DUojHltk.js +1 -0
  93. package/dist/{p-DlI2raNo.js → p-VJAcf53T.js} +1 -1
  94. package/dist/p-_SIWct9h.js +1 -0
  95. package/dist/{p-qIkbfIF3.js → p-pSb81aE0.js} +1 -1
  96. package/dist/{p-BE2G21MT.js → p-ub0GuVHb.js} +1 -1
  97. package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +6 -0
  98. package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +4 -0
  99. package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +11 -0
  100. package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +4 -0
  101. package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +4 -0
  102. package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +11 -0
  103. package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +15 -2
  104. package/dist/types/components/webComponents/GidsExpansionBodyList/GidsExpansionBodyList.d.ts +5 -4
  105. package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +5 -0
  106. package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +40 -0
  107. package/dist/types/components.d.ts +183 -12
  108. package/dist-bundled/es/gids-action-bar.js +168 -126
  109. package/dist-bundled/es/gids-activity-gauge.js +4 -4
  110. package/dist-bundled/es/gids-bar-chart.js +1 -1
  111. package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
  112. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  113. package/dist-bundled/es/gids-calendar-year-list.js +4 -4
  114. package/dist-bundled/es/gids-calendar.js +7 -7
  115. package/dist-bundled/es/gids-chart-legend-item.js +4 -4
  116. package/dist-bundled/es/gids-chart-legend.js +4 -4
  117. package/dist-bundled/es/gids-chart.js +18 -18
  118. package/dist-bundled/es/gids-chevron-button.js +1 -1
  119. package/dist-bundled/es/gids-dot.js +1 -1
  120. package/dist-bundled/es/gids-dropdown-field.js +4 -4
  121. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  122. package/dist-bundled/es/gids-dropdown.js +4 -4
  123. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  124. package/dist-bundled/es/gids-expansion-body-list.js +35 -35
  125. package/dist-bundled/es/gids-expansion-group.js +5 -5
  126. package/dist-bundled/es/gids-expansion.js +3 -3
  127. package/dist-bundled/es/gids-field.js +1 -1
  128. package/dist-bundled/es/gids-filter.js +2 -2
  129. package/dist-bundled/es/gids-icon.js +4 -4
  130. package/dist-bundled/es/gids-input.js +1 -1
  131. package/dist-bundled/es/gids-line-chart.js +4 -4
  132. package/dist-bundled/es/gids-md-table.js +165 -0
  133. package/dist-bundled/es/gids-overflow-container.js +1 -1
  134. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  135. package/dist-bundled/es/gids-password-field.js +22 -22
  136. package/dist-bundled/es/gids-pie-chart.js +1 -1
  137. package/dist-bundled/es/gids-popover.js +1 -1
  138. package/dist-bundled/es/gids-scrim.js +6 -6
  139. package/dist-bundled/es/gids-tab-item.js +6 -6
  140. package/dist-bundled/es/gids-tab.js +4 -4
  141. package/dist-bundled/es/gids-text-field.js +14 -14
  142. package/dist-bundled/es/gids-toggle-button.js +1 -1
  143. package/dist-bundled/es/gids-tooltip.js +4 -4
  144. package/dist-bundled/es/{p-CD_BHkBE-DX2546yK.js → p-6APCjBEI-roDSyEYu.js} +5 -5
  145. package/dist-bundled/es/{p-Cn-t3SGc-CwvvOdlK.js → p-BCVFQSjK-CKrYrI4b.js} +15 -15
  146. package/dist-bundled/es/{p-DfrYaprq-CeZqb0rn.js → p-BSbOhfLZ-ByjjVMqG.js} +2 -2
  147. package/dist-bundled/es/{p-DA_atCAU-KdxJYYDE.js → p-BVAtja26-Xjd4_b4e.js} +7 -7
  148. package/dist-bundled/es/{p-BeP2XcqY-DMXmX4Mc.js → p-C2O_pGky-C_30AJ3m.js} +9 -9
  149. package/dist-bundled/es/{p-3Ni1-UuQ-CPn15cat.js → p-C3We7Q8Q-DT_NDg87.js} +2 -2
  150. package/dist-bundled/es/{p-C4yEV6pT-8IjLINXB.js → p-C3w3wdCt-I6zwuecb.js} +5 -5
  151. package/dist-bundled/es/{p-BQCMjWpK-CLxPNItn.js → p-C3xv7tfs-RodXvmql.js} +3 -3
  152. package/dist-bundled/es/{p-Ditd1zV7-DdQjXthS.js → p-C56G7JRy-B3HO4aVF.js} +2 -2
  153. package/dist-bundled/es/{p-DVVJrKxO-Bdl0HX_u.js → p-CI-sN9Lr-DHC9DyS8.js} +19 -18
  154. package/dist-bundled/es/{p-WHI6NO_h-DHNy0JzV.js → p-COHuQEfZ-C_POuXNC.js} +10 -10
  155. package/dist-bundled/es/{p-CkydANOS-CzTX9wng.js → p-Chqeexny-C4hlPbBP.js} +5 -5
  156. package/dist-bundled/es/{p-C2PfO9h9-H_toZwKo.js → p-DO0MyFf4-D7XItX1k.js} +5 -5
  157. package/dist-bundled/es/p-DUojHltk-GyvsWoCM.js +172 -0
  158. package/dist-bundled/es/{p-DlI2raNo-5V-p1A9Z.js → p-VJAcf53T-2X0vBJ1A.js} +1 -1
  159. package/dist-bundled/es/{p-KaaOtnwV-D7HTbhvI.js → p-_SIWct9h-jMYFZ-VO.js} +12 -12
  160. package/dist-bundled/es/{p-qIkbfIF3-B7NovGEi.js → p-pSb81aE0-CNrq7SQW.js} +2 -2
  161. package/dist-bundled/es/{p-BE2G21MT-WGW-ehxu.js → p-ub0GuVHb-C_PFTi1_.js} +1 -1
  162. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  163. package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
  164. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  165. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  166. package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
  167. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  168. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  169. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  170. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  171. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  172. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  173. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  174. package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
  175. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  176. package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
  177. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  178. package/dist-bundled/umd/gids-expansion-body-list.umd.js +2 -2
  179. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  180. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  181. package/dist-bundled/umd/gids-field.umd.js +1 -1
  182. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  183. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  184. package/dist-bundled/umd/gids-input.umd.js +1 -1
  185. package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
  186. package/dist-bundled/umd/gids-md-table.umd.js +5 -0
  187. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  188. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  189. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  190. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  191. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  192. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  193. package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
  194. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  195. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  196. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  197. package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
  198. package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
  199. package/package.json +12 -4
  200. package/dist/p-2wB6zkno.js +0 -1
  201. package/dist/p-Cn-t3SGc.js +0 -1
  202. package/dist/p-DVVJrKxO.js +0 -1
  203. package/dist/p-KaaOtnwV.js +0 -1
  204. 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 g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(b.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[n],a&&a.O===o.O&&e.S&&De(e.S)),i},De=e=>{x.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(O(t,o,n??null),o["s-sh"]=void 0,U=!0)}x.i&=-2},Y=(e,t)=>{x.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==j&&o["s-ol"]&&(O(V(o).parentNode,o,V(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,U=!0),t&&Y(o,t)}x.i&=-2},Ie=(e,t,n,s,o,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);o<=i;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,O(a,l,V(t))))},Te=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Me(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,F=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,l=t.O,a=t.h;let r;a==null?(_=l==="svg"||l!=="foreignObject"&&_,l!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,_),o!==null&&i!==null?((d,u,c,h,f=!1)=>{let p,b,S=0,v=0,g=0,m=0,E=u.length-1,y=u[0],k=u[E],C=h.length-1,P=h[0],$=h[C];const tt=c.O==="template"?d.content:d;for(;S<=E&&v<=C;)if(y==null)y=u[++S];else if(k==null)k=u[--E];else if(P==null)P=h[++v];else if($==null)$=h[--C];else if(Z(y,P,f))F(y,P,f),y=u[++S],P=h[++v];else if(Z(k,$,f))F(k,$,f),k=u[--E],$=h[--C];else if(Z(y,$,f))y.O!=="slot"&&$.O!=="slot"||Y(y.S.parentNode,!1),F(y,$,f),O(tt,y.S,k.S.nextSibling),y=u[++S],$=h[--C];else if(Z(k,P,f))y.O!=="slot"&&$.O!=="slot"||Y(k.S.parentNode,!1),F(k,P,f),O(tt,k.S,y.S),k=u[--E],P=h[++v];else{for(g=-1,m=S;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===P.$){g=m;break}g>=0?(b=u[g],b.O!==P.O?p=K(u&&u[v],c,g):(F(b,P,f),u[g]=void 0,p=b.S),P=h[++v]):(p=K(u&&u[v],c,v),P=h[++v]),p&&O(V(y.S).parentNode,p,V(y.S))}S>E?Ie(d,h[C+1]==null?null:h[C+1].S,c,h,v,C):v>C&&Te(u,S,E)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!n&&o!==null&&Te(o,0,o.length-1),_&&l==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},L=[],je=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const i of o){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,l)){let a=L.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],L.push({N:i,k:t})),t["s-sr"]&&L.map((r=>{xe(r.k,t["s-sn"])&&(a=L.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else L.some((a=>a.k===t))||L.push({k:t})}i.nodeType===1&&je(i)}},Me=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},gt=(e,t)=>{he.push((()=>e(t)))},O=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=B(i)||"";return{slotNode:ie(re(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},vt=(e,t,n=!1)=>{var s,o,i,l,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const h=(c=t)&&c.O===dt?t:N(null,null,t);if(j=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([f,p])=>{h.v[p]=r[f]}))),n&&h.v)for(const f of Object.keys(h.v))r.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(h.v[f]=r[f]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,G=!(!(1&d.i)||128&d.i),le=r["s-cr"],q=!1,F(u,h,n),x.i|=1,U){je(h.S);for(const f of L){const p=f.k;if(!p["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=p,O(p.parentNode,p["s-ol"]=b,p,n)}}for(const f of L){const p=f.k,b=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(o=p["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if(O(S,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=p["s-hn"],g["s-sn"]=p["s-sn"],g["s-sh"]=p["s-sh"],g["s-sr"]=p["s-sr"],g["s-ol"]=p["s-ol"],g["s-ol"]["s-nr"]=g,O(p.parentNode,g,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(l=p["s-ih"])!=null&&l)}p&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Ee(h.S),x.i&=-2,L.length=0,!G&&!(1&d.i)&&r["s-cr"]){const f=h.S.__childNodes||h.S.childNodes;for(const p of f)if(p["s-hn"]!==j&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(a=p.hidden)!=null&&a),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const b=w.document.createComment("s-nt-"+p.nodeValue);b["s-sn"]=p["s-sn"],O(p.parentNode,b,p,n),p.parentNode.removeChild(p)}}}le=void 0,de.forEach((f=>f())),de.length=0,he.forEach((f=>f())),he.length=0},Fe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Fe(e,e.R);const n=()=>yt(e,t);if(!t)return lt(n);queueMicrotask((()=>{n()}))},yt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Re(o,(()=>H(s,"componentWillRender",void 0,n))),Re(o,(()=>St(e,s,t)))},Re=(e,t)=>bt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=async(e,t,n)=>{var s;const o=e.$hostElement$,i=o["s-rc"];n&&(l=>{const a=l.o,r=l.$hostElement$,d=a.i,u=((c,h)=>{var f,p,b;const S=Ne(h),v=W.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=D.get(c=c.head||c);if(m||D.set(c,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=v;const E=(f=x._)!=null?f:(function(){var y,k,C;return(C=(k=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?C:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),k=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,k?.parentNode===c?k:null)}else if("host"in c)if(ee){const y=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&h.i&&c.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=D.get(c);if(g||D.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let E;if(v.constructor===m.CSSStyleSheet)E=v;else{E=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)E.insertRule(v.cssRules[y].cssText,y)}te?c.adoptedStyleSheets.push(E):c.adoptedStyleSheets=[...c.adoptedStyleSheets,E],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),wt(e,t,o,n),i&&(i.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],a=()=>kt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},wt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(o){T(o,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||Et()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ue(e,!1))),e.i&=-517},Et=()=>{oe((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){T(o,s)}},xt=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=A(e);if(!o)return;const i=e,l=o.l.get(t),a=o.i,r=i;n=Pe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,f]]=Object.entries(c);(128&a||1&f)&&(r?r[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){T(h,i)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&a))return;16&a||ue(o,!1)}}},Nt=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&nt.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((h=>{const f=h[l];typeof f=="function"&&f.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(i,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const h=A(this);if(h){if(u)return(32&r?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[Pe(c,r,!!(64&t.i))]),void Be(this,a,c=32&r?this[a]:h.$hostElement$[a],t);Be(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(r,d,u){x.jmp((()=>{var c;const h=a.get(r),f=A(this);if(this.hasOwnProperty(h),i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=f?.i;if(f&&g&&!(8&g)&&u!==d){const m=this,E=(c=t.F)==null?void 0:c[r];E?.forEach((y=>{const[[k,C]]=Object.entries(y);m[k]!=null&&(128&g||1&C)&&m[k].call(m,u,d,r)}))}return}const p=l.find((([g])=>g===h)),b=p&&4&p[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...l.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},_t=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const r=a;i.__stencil__getHostRef=()=>r,512&l.i&&st(i,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;Ge(this,i,n.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&x.i)){const l=A(i);if(!l)return;const a=l.o;if(1&l.i)Ge(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(r,d,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){Fe(l,l.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let p;typeof c.style=="string"&&(p=c.style);const b=Ne(u);W.has(b)||((S,v,g)=>{let m=W.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(S,m)})(b,p,!!(1&u.i))}const h=d.R,f=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(f):f()}catch(h){T(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(i,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&x.i)){const l=A(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}D.has(i)&&D.delete(i),i.shadowRoot&&D.has(i.shadowRoot)&&D.delete(i.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Nt(e,n,3)}catch(s){return T(s),e}},Ge=(e,t,n)=>{n&&w.document&&n.map((([s,o,i])=>{const l=Pt(w.document,e,s),a=Ct(t,i),r=Ot(s);x.ael(l,o,a,r),(t.V=t.V||[]).push((()=>x.rel(l,o,a,r)))}))},Ct=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Pt=(e,t,n)=>8&n?w:t,Ot=e=>it?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ss(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function J(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const $t=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>J("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:o,loading:i},l,a)=>J("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!o,"gids-button--positive":o&&!s,"gids-button--icon-only":l,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),Q=64,He=10,We=Q/2-He/2,Dt=Q/2,pe=2*Math.PI*We,It=`0 0 ${Q} ${Q}`,Tt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,i=(pe*o/100).toFixed(2),l=(pe-parseFloat(i)).toFixed(2);return`${i} ${l}`},centerPosition:Dt,circumference:pe,radius:We,thickness:He,viewBox:It},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>J("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),ze=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#t(ze)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(ze,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Ft=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Ft().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Bt(){return ve().haveAssetPathsBeenSet()}function qe(e){return ve().getAssetFilePath(e)}function Gt(e){return ve().onAssetPathsSet(e)}let Vt=0;const Ht=(e,t="gids")=>e||`${t}-${Vt++}`,Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Wt}=$t,{calculateStrokeDasharray:zt,thickness:Ke,radius:Ye,centerPosition:X,viewBox:qt}=Tt,Ut=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:zt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Wt({size:e,indeterminate:t,value:n}),viewBox:qt,...o},N("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":Ke}),N("circle",{style:i,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":Ke}))},{getGidsButtonClassNames:Kt}=Lt,Yt=({appearance:e,size:t,destructive:n,positive:s,loading:o,width:i,leadingIcon:l,trailingIcon:a,as:r,disabled:d,class:u,forceIconOnly:c=!1,...h},f)=>{const p=r||"button",b=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in h||(h.type="button"),N(p,{class:Kt({appearance:e,size:t,destructive:n,loading:o,width:i,positive:s},c||f.length===0&&Ue(l)&&!Ue(a),u),disabled:p==="button"?d:void 0,...h},N("span",{class:"gids-button__content"},l,f),o&&N(Ut,{size:b,indeterminate:!0}),a)},Ze={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Je=new Map;for(const e in Ze)for(const t of Ze[e])Je.set(t,e);function Zt(e){return Je.get(e)}function Qe(e,t="regular",n){const s=Zt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Jt}=At,Qt=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:l,...a})=>{const r=Ht(i);let d=l;return d===void 0&&Bt()&&(d=Qe(e,n,qe)),N("svg",{ref:u=>{d===void 0&&Gt((()=>{(function(c,h,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(h,f,qe)),c.appendChild(p)})(u,e,n)}))},width:"16",height:"16",class:Jt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&N("title",{id:r},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsDropdownPickerClassNames:Xt}=jt,Xe=_t(class extends ot{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:n,title:s,disabled:o,id:i,isPlaceholderItem:l}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:i,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:l}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const o=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof o!="string"||o.length===0)return;const i=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof i!="string"||i.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:i,value:o,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Xt({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return N("div",{key:"07a8960af5e31c473ad5a12e1ab7e3c19b2593d2",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},N(Yt,{key:"24dc8667731e684b7fc21037c7b5b0beb6c1ce36",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?N("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):N(Qt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),N("div",{key:"cdb05df799659d23d40d92d48f94c381387bc069",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},N("slot",{key:"cea3b4829d2f6cd4de84bb81fa8b52ab73d800d2"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function et(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,Xe))}))}et();const es=Xe,ts=et;I.GidsDropdownPicker=es,I.defineCustomElement=ts,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(b.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[n],a&&a.O===o.O&&e.S&&De(e.S)),i},De=e=>{x.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(O(t,o,n??null),o["s-sh"]=void 0,U=!0)}x.i&=-2},Y=(e,t)=>{x.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==j&&o["s-ol"]&&(O(V(o).parentNode,o,V(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,U=!0),t&&Y(o,t)}x.i&=-2},Ie=(e,t,n,s,o,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);o<=i;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,O(a,l,V(t))))},Te=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Me(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,F=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,l=t.O,a=t.h;let r;a==null?(_=l==="svg"||l!=="foreignObject"&&_,l!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,_),o!==null&&i!==null?((d,u,c,h,f=!1)=>{let p,b,S=0,v=0,g=0,m=0,E=u.length-1,y=u[0],k=u[E],C=h.length-1,P=h[0],$=h[C];const tt=c.O==="template"?d.content:d;for(;S<=E&&v<=C;)if(y==null)y=u[++S];else if(k==null)k=u[--E];else if(P==null)P=h[++v];else if($==null)$=h[--C];else if(Z(y,P,f))F(y,P,f),y=u[++S],P=h[++v];else if(Z(k,$,f))F(k,$,f),k=u[--E],$=h[--C];else if(Z(y,$,f))y.O!=="slot"&&$.O!=="slot"||Y(y.S.parentNode,!1),F(y,$,f),O(tt,y.S,k.S.nextSibling),y=u[++S],$=h[--C];else if(Z(k,P,f))y.O!=="slot"&&$.O!=="slot"||Y(k.S.parentNode,!1),F(k,P,f),O(tt,k.S,y.S),k=u[--E],P=h[++v];else{for(g=-1,m=S;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===P.$){g=m;break}g>=0?(b=u[g],b.O!==P.O?p=K(u&&u[v],c,g):(F(b,P,f),u[g]=void 0,p=b.S),P=h[++v]):(p=K(u&&u[v],c,v),P=h[++v]),p&&O(V(y.S).parentNode,p,V(y.S))}S>E?Ie(d,h[C+1]==null?null:h[C+1].S,c,h,v,C):v>C&&Te(u,S,E)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!n&&o!==null&&Te(o,0,o.length-1),_&&l==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},L=[],je=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const i of o){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,l)){let a=L.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],L.push({N:i,k:t})),t["s-sr"]&&L.map((r=>{xe(r.k,t["s-sn"])&&(a=L.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else L.some((a=>a.k===t))||L.push({k:t})}i.nodeType===1&&je(i)}},Me=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},gt=(e,t)=>{he.push((()=>e(t)))},O=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=B(i)||"";return{slotNode:ie(re(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},vt=(e,t,n=!1)=>{var s,o,i,l,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const h=(c=t)&&c.O===dt?t:N(null,null,t);if(j=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([f,p])=>{h.v[p]=r[f]}))),n&&h.v)for(const f of Object.keys(h.v))r.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(h.v[f]=r[f]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,G=!(!(1&d.i)||128&d.i),le=r["s-cr"],q=!1,F(u,h,n),x.i|=1,U){je(h.S);for(const f of L){const p=f.k;if(!p["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=p,O(p.parentNode,p["s-ol"]=b,p,n)}}for(const f of L){const p=f.k,b=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(o=p["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if(O(S,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=p["s-hn"],g["s-sn"]=p["s-sn"],g["s-sh"]=p["s-sh"],g["s-sr"]=p["s-sr"],g["s-ol"]=p["s-ol"],g["s-ol"]["s-nr"]=g,O(p.parentNode,g,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(l=p["s-ih"])!=null&&l)}p&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Ee(h.S),x.i&=-2,L.length=0,!G&&!(1&d.i)&&r["s-cr"]){const f=h.S.__childNodes||h.S.childNodes;for(const p of f)if(p["s-hn"]!==j&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(a=p.hidden)!=null&&a),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const b=w.document.createComment("s-nt-"+p.nodeValue);b["s-sn"]=p["s-sn"],O(p.parentNode,b,p,n),p.parentNode.removeChild(p)}}}le=void 0,de.forEach((f=>f())),de.length=0,he.forEach((f=>f())),he.length=0},Fe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Fe(e,e.R);const n=()=>yt(e,t);if(!t)return lt(n);queueMicrotask((()=>{n()}))},yt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Re(o,(()=>H(s,"componentWillRender",void 0,n))),Re(o,(()=>St(e,s,t)))},Re=(e,t)=>bt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=async(e,t,n)=>{var s;const o=e.$hostElement$,i=o["s-rc"];n&&(l=>{const a=l.o,r=l.$hostElement$,d=a.i,u=((c,h)=>{var f,p,b;const S=Ne(h),v=W.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=D.get(c=c.head||c);if(m||D.set(c,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=v;const E=(f=x._)!=null?f:(function(){var y,k,C;return(C=(k=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?C:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),k=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,k?.parentNode===c?k:null)}else if("host"in c)if(ee){const y=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&h.i&&c.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=D.get(c);if(g||D.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let E;if(v.constructor===m.CSSStyleSheet)E=v;else{E=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)E.insertRule(v.cssRules[y].cssText,y)}te?c.adoptedStyleSheets.push(E):c.adoptedStyleSheets=[...c.adoptedStyleSheets,E],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),wt(e,t,o,n),i&&(i.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],a=()=>kt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},wt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(o){T(o,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||Et()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ue(e,!1))),e.i&=-517},Et=()=>{oe((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){T(o,s)}},xt=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=A(e);if(!o)return;const i=e,l=o.l.get(t),a=o.i,r=i;n=Pe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,f]]=Object.entries(c);(128&a||1&f)&&(r?r[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){T(h,i)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&a))return;16&a||ue(o,!1)}}},Nt=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&nt.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((h=>{const f=h[l];typeof f=="function"&&f.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(i,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const h=A(this);if(h){if(u)return(32&r?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[Pe(c,r,!!(64&t.i))]),void Be(this,a,c=32&r?this[a]:h.$hostElement$[a],t);Be(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(r,d,u){x.jmp((()=>{var c;const h=a.get(r),f=A(this);if(this.hasOwnProperty(h),i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=f?.i;if(f&&g&&!(8&g)&&u!==d){const m=this,E=(c=t.F)==null?void 0:c[r];E?.forEach((y=>{const[[k,C]]=Object.entries(y);m[k]!=null&&(128&g||1&C)&&m[k].call(m,u,d,r)}))}return}const p=l.find((([g])=>g===h)),b=p&&4&p[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...l.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},_t=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const r=a;i.__stencil__getHostRef=()=>r,512&l.i&&st(i,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;Ge(this,i,n.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&x.i)){const l=A(i);if(!l)return;const a=l.o;if(1&l.i)Ge(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(r,d,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){Fe(l,l.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let p;typeof c.style=="string"&&(p=c.style);const b=Ne(u);W.has(b)||((S,v,g)=>{let m=W.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(S,m)})(b,p,!!(1&u.i))}const h=d.R,f=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(f):f()}catch(h){T(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(i,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&x.i)){const l=A(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}D.has(i)&&D.delete(i),i.shadowRoot&&D.has(i.shadowRoot)&&D.delete(i.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Nt(e,n,3)}catch(s){return T(s),e}},Ge=(e,t,n)=>{n&&w.document&&n.map((([s,o,i])=>{const l=Pt(w.document,e,s),a=Ct(t,i),r=Ot(s);x.ael(l,o,a,r),(t.V=t.V||[]).push((()=>x.rel(l,o,a,r)))}))},Ct=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Pt=(e,t,n)=>8&n?w:t,Ot=e=>it?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ss(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function J(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const $t=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>J("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:o,loading:i},l,a)=>J("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!o,"gids-button--positive":o&&!s,"gids-button--icon-only":l,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),Q=64,He=10,We=Q/2-He/2,Dt=Q/2,pe=2*Math.PI*We,It=`0 0 ${Q} ${Q}`,Tt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,i=(pe*o/100).toFixed(2),l=(pe-parseFloat(i)).toFixed(2);return`${i} ${l}`},centerPosition:Dt,circumference:pe,radius:We,thickness:He,viewBox:It},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>J("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),ze=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#t(ze)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(ze,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Ft=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Ft().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Bt(){return ve().haveAssetPathsBeenSet()}function qe(e){return ve().getAssetFilePath(e)}function Gt(e){return ve().onAssetPathsSet(e)}let Vt=0;const Ht=(e,t="gids")=>e||`${t}-${Vt++}`,Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Wt}=$t,{calculateStrokeDasharray:zt,thickness:Ke,radius:Ye,centerPosition:X,viewBox:qt}=Tt,Ut=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:zt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Wt({size:e,indeterminate:t,value:n}),viewBox:qt,...o},N("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":Ke}),N("circle",{style:i,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":Ke}))},{getGidsButtonClassNames:Kt}=Lt,Yt=({appearance:e,size:t,destructive:n,positive:s,loading:o,width:i,leadingIcon:l,trailingIcon:a,as:r,disabled:d,class:u,forceIconOnly:c=!1,...h},f)=>{const p=r||"button",b=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in h||(h.type="button"),N(p,{class:Kt({appearance:e,size:t,destructive:n,loading:o,width:i,positive:s},c||f.length===0&&Ue(l)&&!Ue(a),u),disabled:p==="button"?d:void 0,...h},N("span",{class:"gids-button__content"},l,f),o&&N(Ut,{size:b,indeterminate:!0}),a)},Ze={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Je=new Map;for(const e in Ze)for(const t of Ze[e])Je.set(t,e);function Zt(e){return Je.get(e)}function Qe(e,t="regular",n){const s=Zt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Jt}=At,Qt=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:l,...a})=>{const r=Ht(i);let d=l;return d===void 0&&Bt()&&(d=Qe(e,n,qe)),N("svg",{ref:u=>{d===void 0&&Gt((()=>{(function(c,h,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(h,f,qe)),c.appendChild(p)})(u,e,n)}))},width:"16",height:"16",class:Jt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&N("title",{id:r},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsDropdownPickerClassNames:Xt}=jt,Xe=_t(class extends ot{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:n,title:s,disabled:o,id:i,isPlaceholderItem:l}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:i,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:l}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const o=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof o!="string"||o.length===0)return;const i=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof i!="string"||i.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:i,value:o,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Xt({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return N("div",{key:"853c2b26fc0e64ac2f4d04dc1ae83f72eefd1403",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},N(Yt,{key:"e1abb285cd9649aa542620de7a683a9f21dbe19a",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?N("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):N(Qt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),N("div",{key:"4907e8cc94b306a36096e07a662d87b1b687fee7",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},N("slot",{key:"921b888c10135a2baeda9183b3a06f7bf9aa4abb"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function et(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,Xe))}))}et();const es=Xe,ts=et;I.GidsDropdownPicker=es,I.defineCustomElement=ts,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function($,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):($=typeof globalThis<"u"?globalThis:$||self,V($.gidsCoreWebGidsDropdown={}))})(this,(function($){"use strict";function V(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var M,lt=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const o=e[s],r=V(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Se=(e,t)=>t in e,T=(e,t)=>(0,console.error)(e,t),q=new Map,we="http://www.w3.org/1999/xlink",rt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],E=typeof window<"u"?window:{},Ee=E.HTMLElement||class{},I={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},at=(()=>{var e;let t=!1;try{(e=E.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ee=(()=>{try{return!!E.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!E.document&&Object.getOwnPropertyDescriptor(E.document.adoptedStyleSheets,"length").writable,se=!1,xe=[],Ce=[],dt=(e,t)=>n=>{e.push(n),se||(se=!0,4&I.i?ie(ne):I.raf(ne))},Ie=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){T(n)}e.length=0},ne=()=>{Ie(xe),Ie(Ce),(se=xe.length>0)&&I.raf(ne)},ie=e=>Promise.resolve(void 0).then(e),ct=dt(Ce);function ut(){const e=this.attachShadow({mode:"open"});M===void 0&&(M=null),M&&(te?e.adoptedStyleSheets.push(M):e.adoptedStyleSheets=[...e.adoptedStyleSheets,M])}var _e=e=>{const t=le(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ht(s,B(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&le(s,"childNodes").length&&_e(s)}};function oe(e,t,n){let s,i=0,o=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||B(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...oe(s.childNodes,t,n)]}return o}var ht=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)B(i)!==t||!n&&i["s-sr"]||s.push(i);return s},ke=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function le(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var re,F,D=new WeakMap,Ae=e=>"sc-"+e.p,ae=e=>(e=typeof e)=="object"||e==="function",w=(e,t,...n)=>{let s=null,i=null,o=null,r=!1,a=!1;const l=[],c=d=>{for(let h=0;h<d.length;h++)s=d[h],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!ae(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?W(null,s):s),a=r)};if(c(n),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((h=>d[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,pt);const u=W(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=o,u},W=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ft={},pt={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(mt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),mt=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),w(e.vtag,n,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Le=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const i of t){if(n)break;for(const o of e[i])if(typeof o=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return s},Oe=(e,t,n)=>e==null||ae(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,gt=(e,t,n)=>{const s=I.ce(t,n);return e.dispatchEvent(s),s},Pe=(e,t,n,s,i,o)=>{if(n===s)return;let r=Se(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=De(n);let u=De(s);l.remove(...c.filter((d=>d&&!u.includes(d)))),l.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in n)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)n&&s[l]===n[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&bt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const u=O(e);if(u&&u.o&&u.o.t){const d=u.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=ae(s);if((r||l&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?r=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(we,t):e.removeAttribute(t)):(!r||4&o||i)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(we,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):Se(E,a)?a.slice(2):a[2]+t.slice(3),n||s){const l=t.endsWith($e);t=t.replace(yt,""),n&&I.rel(e,t,n,l),s&&I.ael(e,t,s,l)}}},vt=/\s/,De=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(vt):[]),$e="Capture",yt=new RegExp($e+"$"),de=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const r of Te(Object.keys(i)))r in o||Pe(s,r,i[r],void 0,n,t.i);for(const r of Te(Object.keys(o)))Pe(s,r,i[r],o[r],n,t.i)};function Te(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var R=!1,K=!1,U=!1,_=!1,ce=[],ue=[],z=(e,t,n)=>{var s;const i=t.m[n];let o,r,a,l=0;if(R||(U=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=E.document.createTextNode(i.h);else if(1&i.i)o=i.S=E.document.createTextNode(""),de(null,i,_);else{if(_||(_=i.O==="svg"),!E.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=E.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!R&&2&i.i?"slot-fb":i.O),_&&i.O==="foreignObject"&&(_=!1),de(null,i,_),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)r=z(e,i,l),r&&c.appendChild(r)}i.O==="svg"?_=!1:o.tagName==="foreignObject"&&(_=!0)}return o["s-hn"]=F,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=re,o["s-sn"]=i.j||"",o["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(h){const p=[],f=this["s-sn"];h?.flatten&&console.error(`
1
+ (function($,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):($=typeof globalThis<"u"?globalThis:$||self,V($.gidsCoreWebGidsDropdown={}))})(this,(function($){"use strict";function V(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var M,lt=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const o=e[s],r=V(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Se=(e,t)=>t in e,T=(e,t)=>(0,console.error)(e,t),q=new Map,we="http://www.w3.org/1999/xlink",rt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],E=typeof window<"u"?window:{},Ee=E.HTMLElement||class{},I={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},at=(()=>{var e;let t=!1;try{(e=E.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ee=(()=>{try{return!!E.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!E.document&&Object.getOwnPropertyDescriptor(E.document.adoptedStyleSheets,"length").writable,se=!1,xe=[],Ce=[],dt=(e,t)=>n=>{e.push(n),se||(se=!0,4&I.i?ie(ne):I.raf(ne))},Ie=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){T(n)}e.length=0},ne=()=>{Ie(xe),Ie(Ce),(se=xe.length>0)&&I.raf(ne)},ie=e=>Promise.resolve(void 0).then(e),ct=dt(Ce);function ht(){const e=this.attachShadow({mode:"open"});M===void 0&&(M=null),M&&(te?e.adoptedStyleSheets.push(M):e.adoptedStyleSheets=[...e.adoptedStyleSheets,M])}var ke=e=>{const t=le(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ut(s,B(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&le(s,"childNodes").length&&ke(s)}};function oe(e,t,n){let s,i=0,o=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||B(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...oe(s.childNodes,t,n)]}return o}var ut=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)B(i)!==t||!n&&i["s-sr"]||s.push(i);return s},_e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function le(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var re,F,D=new WeakMap,Ae=e=>"sc-"+e.p,ae=e=>(e=typeof e)=="object"||e==="function",w=(e,t,...n)=>{let s=null,i=null,o=null,r=!1,a=!1;const l=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!ae(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?W(null,s):s),a=r)};if(c(n),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,pt);const h=W(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=i,h.j=o,h},W=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ft={},pt={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(mt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),mt=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),w(e.vtag,n,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Le=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const i of t){if(n)break;for(const o of e[i])if(typeof o=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return s},Oe=(e,t,n)=>e==null||ae(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,gt=(e,t,n)=>{const s=I.ce(t,n);return e.dispatchEvent(s),s},Pe=(e,t,n,s,i,o)=>{if(n===s)return;let r=Se(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=De(n);let h=De(s);l.remove(...c.filter((d=>d&&!h.includes(d)))),l.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in n)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)n&&s[l]===n[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&bt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const h=O(e);if(h&&h.o&&h.o.t){const d=h.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=ae(s);if((r||l&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:n!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(we,t):e.removeAttribute(t)):(!r||4&o||i)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(we,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):Se(E,a)?a.slice(2):a[2]+t.slice(3),n||s){const l=t.endsWith($e);t=t.replace(yt,""),n&&I.rel(e,t,n,l),s&&I.ael(e,t,s,l)}}},vt=/\s/,De=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(vt):[]),$e="Capture",yt=new RegExp($e+"$"),de=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const r of Te(Object.keys(i)))r in o||Pe(s,r,i[r],void 0,n,t.i);for(const r of Te(Object.keys(o)))Pe(s,r,i[r],o[r],n,t.i)};function Te(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var R=!1,K=!1,U=!1,k=!1,ce=[],he=[],z=(e,t,n)=>{var s;const i=t.m[n];let o,r,a,l=0;if(R||(U=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=E.document.createTextNode(i.h);else if(1&i.i)o=i.S=E.document.createTextNode(""),de(null,i,k);else{if(k||(k=i.O==="svg"),!E.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=E.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!R&&2&i.i?"slot-fb":i.O),k&&i.O==="foreignObject"&&(k=!1),de(null,i,k),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)r=z(e,i,l),r&&c.appendChild(r)}i.O==="svg"?k=!1:o.tagName==="foreignObject"&&(k=!0)}return o["s-hn"]=F,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=re,o["s-sn"]=i.j||"",o["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{f===B(b)&&p.push(b)})),d?p.filter((b=>b.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&Fe(e.S)),o},Fe=e=>{I.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(N(t,i,n??null),i["s-sh"]=void 0,U=!0)}I.i&=-2},Y=(e,t)=>{I.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===F&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==F&&i["s-ol"]&&(N(G(i).parentNode,i,G(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,U=!0),t&&Y(i,t)}I.i&=-2},Ve=(e,t,n,s,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===F&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=o;++i)s[i]&&(r=z(null,n,i),r&&(s[i].S=r,N(a,r,G(t))))},je=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Be(i),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,j=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(_=r==="svg"||r!=="foreignObject"&&_,r!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Fe(t.S.parentElement)),de(e,t,_),i!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,b=0,v=0,g=0,m=0,C=u.length-1,y=u[0],x=u[C],k=h.length-1,A=h[0],L=h[k];const ot=d.O==="template"?c.content:c;for(;b<=C&&v<=k;)if(y==null)y=u[++b];else if(x==null)x=u[--C];else if(A==null)A=h[++v];else if(L==null)L=h[--k];else if(J(y,A,p))j(y,A,p),y=u[++b],A=h[++v];else if(J(x,L,p))j(x,L,p),x=u[--C],L=h[--k];else if(J(y,L,p))y.O!=="slot"&&L.O!=="slot"||Y(y.S.parentNode,!1),j(y,L,p),N(ot,y.S,x.S.nextSibling),y=u[++b],L=h[--k];else if(J(x,A,p))y.O!=="slot"&&L.O!=="slot"||Y(x.S.parentNode,!1),j(x,A,p),N(ot,x.S,y.S),x=u[--C],A=h[++v];else{for(g=-1,m=b;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){g=m;break}g>=0?(S=u[g],S.O!==A.O?f=z(u&&u[v],d,g):(j(S,A,p),u[g]=void 0,f=S.S),A=h[++v]):(f=z(u&&u[v],d,v),A=h[++v]),f&&N(G(y.S).parentNode,f,G(y.S))}b>C?Ve(c,h[k+1]==null?null:h[k+1].S,d,h,v,k):v>k&&je(u,b,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Ve(s,null,t,o,0,o.length-1)):!n&&i!==null&&je(i,0,i.length-1),_&&r==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},P=[],Me=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,r)){let a=P.find((l=>l.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],P.push({N:o,k:t})),t["s-sr"]&&P.map((l=>{ke(l.k,t["s-sn"])&&(a=P.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else P.some((a=>a.k===t))||P.push({k:t})}o.nodeType===1&&Me(o)}},Be=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Be)},bt=(e,t)=>{ue.push((()=>e(t)))},N=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=B(o)||"";return{slotNode:oe(le(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},St=(e,t,n=!1)=>{var s,i,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||W(null,null);var d;const h=(d=t)&&d.O===ft?t:w(null,null,t);if(F=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),n&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,R=!(!(1&c.i)||128&c.i),re=l["s-cr"],K=!1,j(u,h,n),I.i|=1,U){Me(h.S);for(const p of P){const f=p.k;if(!f["s-ol"]&&E.document){const S=E.document.createTextNode("");S["s-nr"]=f,N(f.parentNode,f["s-ol"]=S,f,n)}}for(const p of P){const f=p.k,S=p.N;if(f.nodeType===1&&n&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;g;){let m=(o=g["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(N(b,f,v,n),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=E.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,N(f.parentNode,g,f,n),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&_e(h.S),I.i&=-2,P.length=0,!R&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==F&&!f["s-sh"]){if(n&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=E.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],N(f.parentNode,S,f,n),f.parentNode.removeChild(f)}}}re=void 0,ce.forEach((p=>p())),ce.length=0,ue.forEach((p=>p())),ue.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},he=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const n=()=>wt(e,t);if(!t)return ct(n);queueMicrotask((()=>{n()}))},wt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Ge(i,(()=>H(s,"componentWillRender",void 0,n))),Ge(i,(()=>xt(e,s,t)))},Ge=(e,t)=>Et(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const b=Ae(h),v=q.get(b);if(!E.document)return b;if(d=d.nodeType===11?d:E.document,v)if(typeof v=="string"){let g,m=D.get(d=d.head||d);if(m||D.set(d,m=new Set),!m.has(b)){g=E.document.createElement("style"),g.textContent=v;const C=(p=I._)!=null?p:(function(){var y,x,k;return(k=(x=(y=E.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?k:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&h.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),x=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,x?.parentNode===d?x:null)}else if("host"in d)if(ee){const y=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(g)}else d.append(g);1&h.i&&d.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=D.get(d);if(g||D.set(d,g=new Set),!g.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===m.CSSStyleSheet)C=v;else{C=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)C.insertRule(v.cssRules[y].cssText,y)}te?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Ct(e,t,i,n),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>It(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,St(e,t,s)}catch(i){T(i,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,kt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>he(e,!1))),e.i&=-517},_t=()=>{ie((()=>gt(E,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){T(i,s)}},kt=e=>e.classList.add("hydrated"),He=(e,t,n,s)=>{const i=O(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;n=Oe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,p]]=Object.entries(d);(128&a||1&p)&&(l?l[h](n,r,t):i.T.push((()=>{i.D[h](n,r,t)})))}catch(h){T(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||he(i,!1)}}},At=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&rt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=O(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((h=>{const p=h[r];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Le(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:c,set:u}=V(o,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=O(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(d=h.l.get(a)),u.apply(this,[Oe(d,l,!!(64&t.i))]),void He(this,a,d=32&l?this[a]:h.$hostElement$[a],t);He(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){I.jmp((()=>{var d;const h=a.get(l),p=O(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((y=>{const[[x,k]]=Object.entries(y);m[x]!=null&&(128&g||1&k)&&m[x].call(m,u,c,l)}))}return}const f=r.find((([g])=>g===h)),S=f&&4&f[1][0],b=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(o,h);b||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return a.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},qe=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Le(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&lt(o,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=O(this);if(!o)return;We(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&I.i)){const r=O(o);if(!r)return;const a=r.o;if(1&r.i)We(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,N(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Re(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Ae(u);q.has(S)||((b,v,g)=>{let m=q.get(b);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,q.set(b,m)})(S,f,!!(1&u.i))}const h=c.R,p=()=>he(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){T(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&I.i)){const r=O(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}D.has(o)&&D.delete(o),o.shadowRoot&&D.has(o.shadowRoot)&&D.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ut.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),At(e,n,3)}catch(s){return T(s),e}},Nt=(e,t)=>t,We=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const r=Ot(E.document,e,s),a=Lt(t,o),l=Pt(s);I.ael(r,i,a,l),(t.V=t.V||[]).push((()=>I.rel(r,i,a,l)))}))},Lt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Ot=(e,t,n)=>8&n?E:t,Pt=e=>at?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function os(e){return e}function Ke(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ke(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function X(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ke(e))&&(s&&(s+=" "),s+=t);return s}const Dt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>X("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),$t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>X("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Z=64,Ue=10,ze=Z/2-Ue/2,Tt=Z/2,fe=2*Math.PI*ze,Ft=`0 0 ${Z} ${Z}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(fe*i/100).toFixed(2),r=(fe-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Tt,circumference:fe,radius:ze,thickness:Ue,viewBox:Ft},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>X("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>X("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),pe=Symbol("defaultPath"),Ye=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#s(Ye)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(pe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(pe,n)}this.#e(Ye,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(pe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Bt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Gt(){return ve().haveAssetPathsBeenSet()}function Je(e){return ve().getAssetFilePath(e)}function Ht(e){return ve().onAssetPathsSet(e)}let qt=0;const Wt=(e,t="gids")=>e||`${t}-${qt++}`,Kt=e=>e.type==="hidden",Ut=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Kt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Xe={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Ze=new Map;for(const e in Xe)for(const t of Xe[e])Ze.set(t,e);function zt(e){return Ze.get(e)}function Qe(e,t="regular",n){const s=zt(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Yt}=$t,ye=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:r,...a})=>{const l=Wt(o);let c=r;return c===void 0&&Gt()&&(c=Qe(e,n,Je)),w("svg",{ref:u=>{c===void 0&&Ht((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Qe(h,p,Je)),d.appendChild(f)})(u,e,n)}))},width:"16",height:"16",class:Yt({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsSpinnerControlClassNames:Jt}=Dt,{calculateStrokeDasharray:Xt,thickness:et,radius:tt,centerPosition:Q,viewBox:Zt}=Vt,Qt=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:Xt(n,s||0),strokeDashoffset:"0"}),w("svg",{class:Jt({size:e,indeterminate:t,value:n}),viewBox:Zt,...i},w("circle",{class:"gids-spinner-control__track",cx:Q,cy:Q,r:tt,"stroke-width":et}),w("circle",{style:o,class:"gids-spinner-control__progress",cx:Q,cy:Q,r:tt,"stroke-width":et}))},es=qe(class extends Ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Ut(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return w(Nt,{key:"3364c49f298dc7205bfd1b173f7eeaf2f89c7c9a"},w("slot",{key:"c997142ff339b65f0631afeb7996bc50f921c82a",name:"leadingIcon"}),this.leadingLabel&&w("span",{key:"ef61a3c8a1fb0e796cc7a783cc87054c8186af06",class:"gids-input__label"},this.leadingLabel),w("slot",{key:"5c9b81e5ac0367f31d303f0310b6f2e65b085223",name:"leadingAccessory"}),w("input",{key:"6435d4d1e656d4ca44c7800ccb888090d40b59cd",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),w("slot",{key:"c5e15100d71349d57f3d0af1f8e5ab6b6808b350",name:"trailingAccessory"}),this.trailingLabel&&w("span",{key:"50ee400d7731b6ae7de40cb918ee2f3887fa2857",class:"gids-input__label"},this.trailingLabel),w("slot",{key:"62e4f88e0e73611a4ccd2952b2d907ae430ad1de",name:"trailingIcon"}),this.status==="incomplete"&&w(ye,{key:"7594ffc84d2fecca11158d91eaabcf023586778a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&w(ye,{key:"24fd3813e2aa8d5139da021064c62333bbec9592",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&w(Qt,{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 st(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,es))}))}st();const{getGidsDropdownClassNames:ts,getGidsChevronButtonControlClassNames:ss}=jt,be="gids-dropdown-item--active",nt=qe(class extends Ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:n,title:s,disabled:i,id:o,isPlaceholderItem:r}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:r}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const r=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!r||r!=="true")})},this.handleFilterInput=t=>{const n=t.target;this.filterValue=n?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const n=t.key,s=n==="ArrowDown";if((s||n==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(n==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(n==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(n==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(be))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(be))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const n=Math.max(0,Math.min(e,t.length-1)),s=t[n];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=n,s.classList.add(be),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const n=(t.textContent??"").toLowerCase(),s=e.length===0||n.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const n=e.onBlur;e.onBlur=i=>{n?.(i),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=i=>{s?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ts({expanded:e}),n=this.getEnhancedInputProps(),s=typeof n.id=="string"?n.id:void 0,i=s?`${s}__menu`:void 0;n.role="combobox",n["aria-expanded"]=e?"true":"false",n["aria-haspopup"]="listbox",n["aria-autocomplete"]="list",i&&(n["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",r=e?"true":"false",a=w("button",{key:"99a40510073627975e39603ce6a8221afa33b1fd",class:ss({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},w("span",{key:"aaa7754a3a47f4b3d9fd87876ef0d325c2257a13",class:"gids-button__content"},w(ye,{key:"666627197262d2001c5daf094b0672ddefea4259",name:"chevron-vertical",alt:""})));return w("div",{key:"377633cfdf472a56971b063704e1cc062900f15a",class:t},w("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:n,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&w("slot",{key:"bcf24ea40c3818afc738167ce5f840170c243e64",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&w("slot",{key:"01a8ac787d71ebd9f4c785cc43ced091de62962f",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),a),w("div",{key:"5de88270802bd09428e42b2f5a9960ab63a4a181",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},w("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 it(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,nt);break;case"gids-input":customElements.get(e)||st()}}))}it();const ns=nt,is=it;$.GidsDropdown=ns,$.defineCustomElement=is,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{f===B(b)&&p.push(b)})),d?p.filter((b=>b.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&Fe(e.S)),o},Fe=e=>{I.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(N(t,i,n??null),i["s-sh"]=void 0,U=!0)}I.i&=-2},Y=(e,t)=>{I.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===F&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==F&&i["s-ol"]&&(N(G(i).parentNode,i,G(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,U=!0),t&&Y(i,t)}I.i&=-2},Ve=(e,t,n,s,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===F&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=o;++i)s[i]&&(r=z(null,n,i),r&&(s[i].S=r,N(a,r,G(t))))},je=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Be(i),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,j=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Fe(t.S.parentElement)),de(e,t,k),i!==null&&o!==null?((c,h,d,u,p=!1)=>{let f,S,b=0,v=0,g=0,m=0,C=h.length-1,y=h[0],x=h[C],_=u.length-1,A=u[0],L=u[_];const ot=d.O==="template"?c.content:c;for(;b<=C&&v<=_;)if(y==null)y=h[++b];else if(x==null)x=h[--C];else if(A==null)A=u[++v];else if(L==null)L=u[--_];else if(J(y,A,p))j(y,A,p),y=h[++b],A=u[++v];else if(J(x,L,p))j(x,L,p),x=h[--C],L=u[--_];else if(J(y,L,p))y.O!=="slot"&&L.O!=="slot"||Y(y.S.parentNode,!1),j(y,L,p),N(ot,y.S,x.S.nextSibling),y=h[++b],L=u[--_];else if(J(x,A,p))y.O!=="slot"&&L.O!=="slot"||Y(x.S.parentNode,!1),j(x,A,p),N(ot,x.S,y.S),x=h[--C],A=u[++v];else{for(g=-1,m=b;m<=C;++m)if(h[m]&&h[m].$!==null&&h[m].$===A.$){g=m;break}g>=0?(S=h[g],S.O!==A.O?f=z(h&&h[v],d,g):(j(S,A,p),h[g]=void 0,f=S.S),A=u[++v]):(f=z(h&&h[v],d,v),A=u[++v]),f&&N(G(y.S).parentNode,f,G(y.S))}b>C?Ve(c,u[_+1]==null?null:u[_+1].S,d,u,v,_):v>_&&je(h,b,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Ve(s,null,t,o,0,o.length-1)):!n&&i!==null&&je(i,0,i.length-1),k&&r==="svg"&&(k=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},P=[],Me=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(_e(t,r)){let a=P.find((l=>l.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],P.push({N:o,k:t})),t["s-sr"]&&P.map((l=>{_e(l.k,t["s-sn"])&&(a=P.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else P.some((a=>a.k===t))||P.push({k:t})}o.nodeType===1&&Me(o)}},Be=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Be)},bt=(e,t)=>{he.push((()=>e(t)))},N=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=B(o)||"";return{slotNode:oe(le(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},St=(e,t,n=!1)=>{var s,i,o,r,a;const l=e.$hostElement$,c=e.o,h=e.M||W(null,null);var d;const u=(d=t)&&d.O===ft?t:w(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([p,f])=>{u.v[f]=l[p]}))),n&&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,R=!(!(1&c.i)||128&c.i),re=l["s-cr"],K=!1,j(h,u,n),I.i|=1,U){Me(u.S);for(const p of P){const f=p.k;if(!f["s-ol"]&&E.document){const S=E.document.createTextNode("");S["s-nr"]=f,N(f.parentNode,f["s-ol"]=S,f,n)}}for(const p of P){const f=p.k,S=p.N;if(f.nodeType===1&&n&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;g;){let m=(o=g["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(N(b,f,v,n),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=E.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,N(f.parentNode,g,f,n),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&ke(u.S),I.i&=-2,P.length=0,!R&&!(1&c.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==F&&!f["s-sh"]){if(n&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=E.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],N(f.parentNode,S,f,n),f.parentNode.removeChild(f)}}}re=void 0,ce.forEach((p=>p())),ce.length=0,he.forEach((p=>p())),he.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const n=()=>wt(e,t);if(!t)return ct(n);queueMicrotask((()=>{n()}))},wt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Ge(i,(()=>H(s,"componentWillRender",void 0,n))),Ge(i,(()=>xt(e,s,t)))},Ge=(e,t)=>Et(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,h=((d,u)=>{var p,f,S;const b=Ae(u),v=q.get(b);if(!E.document)return b;if(d=d.nodeType===11?d:E.document,v)if(typeof v=="string"){let g,m=D.get(d=d.head||d);if(m||D.set(d,m=new Set),!m.has(b)){g=E.document.createElement("style"),g.textContent=v;const C=(p=I._)!=null?p:(function(){var y,x,_;return(_=(x=(y=E.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?_:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&u.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),x=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,x?.parentNode===d?x:null)}else if("host"in d)if(ee){const y=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(g)}else d.append(g);1&u.i&&d.insertBefore(g,null),4&u.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=D.get(d);if(g||D.set(d,g=new Set),!g.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===m.CSSStyleSheet)C=v;else{C=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)C.insertRule(v.cssRules[y].cssText,y)}te?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,i,n),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>It(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,St(e,t,s)}catch(i){T(i,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,_t(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||kt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>ue(e,!1))),e.i&=-517},kt=()=>{ie((()=>gt(E,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){T(i,s)}},_t=e=>e.classList.add("hydrated"),He=(e,t,n,s)=>{const i=O(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;n=Oe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,p]]=Object.entries(d);(128&a||1&p)&&(l?l[u](n,r,t):i.T.push((()=>{i.D[u](n,r,t)})))}catch(u){T(u,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||ue(i,!1)}}},At=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&rt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const h=O(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=h?.H)==null||c.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Le(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:c,set:h}=V(o,a)||{};c&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const u=O(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),h.apply(this,[Oe(d,l,!!(64&t.i))]),void He(this,a,d=32&l?this[a]:u.$hostElement$[a],t);He(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,h){I.jmp((()=>{var d;const u=a.get(l),p=O(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const g=p?.i;if(p&&g&&!(8&g)&&h!==c){const m=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((y=>{const[[x,_]]=Object.entries(y);m[x]!=null&&(128&g||1&_)&&m[x].call(m,h,c,l)}))}return}const f=r.find((([g])=>g===u)),S=f&&4&f[1][0],b=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(o,u);b||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return a.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},qe=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Le(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&lt(o,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=O(this);if(!o)return;We(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&I.i)){const r=O(o);if(!r)return;const a=r.o;if(1&r.i)We(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,N(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Re(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Ae(h);q.has(S)||((b,v,g)=>{let m=q.get(b);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,q.set(b,m)})(S,f,!!(1&h.i))}const u=c.R,p=()=>ue(c,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){T(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&I.i)){const r=O(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}D.has(o)&&D.delete(o),o.shadowRoot&&D.has(o.shadowRoot)&&D.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ht.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),At(e,n,3)}catch(s){return T(s),e}},Nt=(e,t)=>t,We=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const r=Ot(E.document,e,s),a=Lt(t,o),l=Pt(s);I.ael(r,i,a,l),(t.V=t.V||[]).push((()=>I.rel(r,i,a,l)))}))},Lt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Ot=(e,t,n)=>8&n?E:t,Pt=e=>at?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function os(e){return e}function Ke(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ke(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function X(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ke(e))&&(s&&(s+=" "),s+=t);return s}const Dt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>X("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),$t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>X("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Z=64,Ue=10,ze=Z/2-Ue/2,Tt=Z/2,fe=2*Math.PI*ze,Ft=`0 0 ${Z} ${Z}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(fe*i/100).toFixed(2),r=(fe-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Tt,circumference:fe,radius:ze,thickness:Ue,viewBox:Ft},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>X("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>X("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),pe=Symbol("defaultPath"),Ye=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#s(Ye)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(pe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(pe,n)}this.#e(Ye,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(pe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Bt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Gt(){return ve().haveAssetPathsBeenSet()}function Je(e){return ve().getAssetFilePath(e)}function Ht(e){return ve().onAssetPathsSet(e)}let qt=0;const Wt=(e,t="gids")=>e||`${t}-${qt++}`,Kt=e=>e.type==="hidden",Ut=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Kt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Xe={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Ze=new Map;for(const e in Xe)for(const t of Xe[e])Ze.set(t,e);function zt(e){return Ze.get(e)}function Qe(e,t="regular",n){const s=zt(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Yt}=$t,ye=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:r,...a})=>{const l=Wt(o);let c=r;return c===void 0&&Gt()&&(c=Qe(e,n,Je)),w("svg",{ref:h=>{c===void 0&&Ht((()=>{(function(d,u,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Qe(u,p,Je)),d.appendChild(f)})(h,e,n)}))},width:"16",height:"16",class:Yt({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsSpinnerControlClassNames:Jt}=Dt,{calculateStrokeDasharray:Xt,thickness:et,radius:tt,centerPosition:Q,viewBox:Zt}=Vt,Qt=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:Xt(n,s||0),strokeDashoffset:"0"}),w("svg",{class:Jt({size:e,indeterminate:t,value:n}),viewBox:Zt,...i},w("circle",{class:"gids-spinner-control__track",cx:Q,cy:Q,r:tt,"stroke-width":et}),w("circle",{style:o,class:"gids-spinner-control__progress",cx:Q,cy:Q,r:tt,"stroke-width":et}))},es=qe(class extends Ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Ut(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return w(Nt,{key:"afdbc2c51c4a1f688534c76757ef7cdfb27d1cd0"},w("slot",{key:"83781fe23a5648cdd8345326e88e235c03cf60bc",name:"leadingIcon"}),this.leadingLabel&&w("span",{key:"b457d5343b714096c80ffebce6abd9e62fc57664",class:"gids-input__label"},this.leadingLabel),w("slot",{key:"e156f0f311bd7b662eb56c07c101b673c0945d14",name:"leadingAccessory"}),w("input",{key:"34d77865f743fab2e85d154b966c90b1434d212d",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),w("slot",{key:"fafb91d6e965e33b40577a10475e9a69a83e7a98",name:"trailingAccessory"}),this.trailingLabel&&w("span",{key:"3d673d4b05b850c165817615145e629f39b5859c",class:"gids-input__label"},this.trailingLabel),w("slot",{key:"ee39bb2e061ace41b7192f0fd2eae7edb35918e2",name:"trailingIcon"}),this.status==="incomplete"&&w(ye,{key:"5d2faed6c95395d82a2ae1e72483fd15599f14b6",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&w(ye,{key:"106200c1b025e3ee1467ffed2f246962933d42d0",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&w(Qt,{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 st(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,es))}))}st();const{getGidsDropdownClassNames:ts,getGidsChevronButtonControlClassNames:ss}=jt,be="gids-dropdown-item--active",nt=qe(class extends Ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:n,title:s,disabled:i,id:o,isPlaceholderItem:r}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:r}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof i!="string"||i.length===0)return;const o=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const r=s.getAttribute("is-placeholder-item")??"";let a=s.textContent?.trim()??"";a.endsWith("checkmark")&&(a=a.slice(0,-9).trim()),console.log("cleanTitle",a),this.applySelection({id:o,value:i,title:a.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!r||r!=="true")})},this.handleFilterInput=t=>{const n=t.target;this.filterValue=n?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const n=t.key,s=n==="ArrowDown";if((s||n==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(n==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(n==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(n==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(be))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(be))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const n=Math.max(0,Math.min(e,t.length-1)),s=t[n];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=n,s.classList.add(be),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const n=(t.textContent??"").toLowerCase(),s=e.length===0||n.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const n=e.onBlur;e.onBlur=i=>{n?.(i),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=i=>{s?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ts({expanded:e}),n=this.getEnhancedInputProps(),s=typeof n.id=="string"?n.id:void 0,i=s?`${s}__menu`:void 0;n.role="combobox",n["aria-expanded"]=e?"true":"false",n["aria-haspopup"]="listbox",n["aria-autocomplete"]="list",i&&(n["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",r=e?"true":"false",a=w("button",{key:"3c948278bf289c4fd943e4bff51c8e44e73ba6c9",class:ss({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},w("span",{key:"284f2a2141baa75624fcd9eeee21e6c98fd1e86e",class:"gids-button__content"},w(ye,{key:"1e6567b3d5aefedfef1697f59d79de1a0635f86b",name:"chevron-vertical",alt:""})));return w("div",{key:"82b234b661a97f00fbfb69b1c24d3b1f468521dc",class:t},w("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:n,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&w("slot",{key:"8230d44f492a98c05c5830fa984270122f0963ca",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&w("slot",{key:"3a80369ad171bc0e37dfccbb9661d0db93dd55c1",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),a),w("div",{key:"2cad6d5213802acf9b673971a748bd16c06b986a",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},w("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 it(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,nt);break;case"gids-input":customElements.get(e)||st()}}))}it();const ns=nt,is=it;$.GidsDropdown=ns,$.defineCustomElement=is,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(v=>{const m=[];for(let y=0;y<v.length;y++){const g=v[y]["s-nr"]||void 0;g&&g.isConnected&&m.push(g)}return m})(S.childNodes)).forEach((v=>{h===M(v)&&f.push(v)})),d?f.filter((v=>v.nodeType===1)):f}).bind(c);c.assignedElements=p(!0),c.assignedNodes=p(!1)})(l),r=e&&e.m&&e.m[i],r&&r.O===o.O&&e.S&&Ce(e.S)),l},Ce=e=>{N.i|=1;const t=e.closest(D.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of i?s.reverse():s)o["s-sh"]!=null&&(E(t,o,i??null),o["s-sh"]=void 0,q=!0)}N.i&=-2},Z=(e,t)=>{N.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===D&&i.push(s)}for(let s=i.length-1;s>=0;s--){const o=i[s];o["s-hn"]!==D&&o["s-ol"]&&(E(B(o).parentNode,o,B(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,q=!0),t&&Z(o,t)}N.i&=-2},ke=(e,t,i,s,o,l)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot),i.O==="template"&&(r=r.content);o<=l;++o)s[o]&&(a=Y(null,i,o),a&&(s[o].S=a,E(r,a,B(t))))},Oe=(e,t,i)=>{for(let s=t;s<=i;++s){const o=e[s];if(o){const l=o.S;Le(o),l&&(G=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,R=(e,t,i=!1)=>{const s=t.S=e.S,o=e.m,l=t.m,a=t.O,r=t.h;let n;r==null?(w=a==="svg"||a!=="foreignObject"&&w,a!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ce(t.S.parentElement)),ne(e,t,w),o!==null&&l!==null?((c,p,d,u,f=!1)=>{let h,S,v=0,m=0,y=0,g=0,T=p.length-1,b=p[0],_=p[T],C=u.length-1,k=u[0],L=u[C];const ze=d.O==="template"?c.content:c;for(;v<=T&&m<=C;)if(b==null)b=p[++v];else if(_==null)_=p[--T];else if(k==null)k=u[++m];else if(L==null)L=u[--C];else if(J(b,k,f))R(b,k,f),b=p[++v],k=u[++m];else if(J(_,L,f))R(_,L,f),_=p[--T],L=u[--C];else if(J(b,L,f))b.O!=="slot"&&L.O!=="slot"||Z(b.S.parentNode,!1),R(b,L,f),E(ze,b.S,_.S.nextSibling),b=p[++v],L=u[--C];else if(J(_,k,f))b.O!=="slot"&&L.O!=="slot"||Z(_.S.parentNode,!1),R(_,k,f),E(ze,_.S,b.S),_=p[--T],k=u[++m];else{for(y=-1,g=v;g<=T;++g)if(p[g]&&p[g].$!==null&&p[g].$===k.$){y=g;break}y>=0?(S=p[y],S.O!==k.O?h=Y(p&&p[m],d,y):(R(S,k,f),p[y]=void 0,h=S.S),k=u[++m]):(h=Y(p&&p[m],d,m),k=u[++m]),h&&E(B(b.S).parentNode,h,B(b.S))}v>T?ke(c,u[C+1]==null?null:u[C+1].S,d,u,m,C):m>C&&Oe(p,v,T)})(s,o,t,l,i):l!==null?(e.h!==null&&(s.textContent=""),ke(s,null,t,l,0,l.length-1)):!i&&o!==null&&Oe(o,0,o.length-1),w&&a==="svg"&&(w=!1)):(n=s["s-cr"])?n.parentNode.textContent=r:e.h!==r&&(s.data=r)},$=[],Ee=e=>{let t,i,s;const o=e.__childNodes||e.childNodes;for(const l of o){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=l["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ye(t,a)){let r=$.find((n=>n.k===t));G=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=l["s-hn"],r.N=l):(t["s-sh"]=l["s-hn"],$.push({N:l,k:t})),t["s-sr"]&&$.map((n=>{ye(n.k,t["s-sn"])&&(r=$.find((c=>c.k===t)),r&&!n.N&&(n.N=r.N))}))}else $.some((r=>r.k===t))||$.push({k:t})}l.nodeType===1&&Ee(l)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},Xe=(e,t)=>{re.push((()=>e(t)))},E=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:o}=(function(l,a){var r;if(!(a=a||((r=l["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const n=l["s-sn"]=M(l)||"";return{slotNode:se(ie(a,"childNodes"),a.tagName,n)[0],slotName:n}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},et=(e,t,i=!1)=>{var s,o,l,a,r;const n=e.$hostElement$,c=e.o,p=e.M||W(null,null);var d;const u=(d=t)&&d.O===be?t:O(null,null,t);if(D=n.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,h])=>{u.v[h]=n[f]}))),i&&u.v)for(const f of Object.keys(u.v))n.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=n[f]);if(u.O=null,u.i|=4,e.M=u,u.S=p.S=n.shadowRoot||n,H=!(!(1&c.i)||128&c.i),oe=n["s-cr"],G=!1,R(p,u,i),N.i|=1,q){Ee(u.S);for(const f of $){const h=f.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,E(h.parentNode,h["s-ol"]=S,h,i)}}for(const f of $){const h=f.k,S=f.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const v=S.parentNode;let m=S.nextSibling;if(m&&m.nodeType===1){let y=(o=h["s-ol"])==null?void 0:o.previousSibling;for(;y;){let g=(l=y["s-nr"])!=null?l:null;if(g&&g["s-sn"]===h["s-sn"]&&v===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===h||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){m=g;break}}y=y.previousSibling}}if((!m&&v!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(E(v,h,m,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,E(h.parentNode,y,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null&&a)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(G&&fe(u.S),N.i&=-2,$.length=0,!H&&!(1&c.i)&&n["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const h of f)if(h["s-hn"]!==D&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(r=h.hidden)!=null&&r),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],E(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}oe=void 0,ae.forEach((f=>f())),ae.length=0,re.forEach((f=>f())),re.length=0},je=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);je(e,e.R);const i=()=>tt(e,t);if(!t)return We(i);queueMicrotask((()=>{i()}))},tt=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),o=$e(o,(()=>F(s,"componentWillRender",void 0,i))),$e(o,(()=>it(e,s,t)))},$e=(e,t)=>st(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),st=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",it=async(e,t,i)=>{var s;const o=e.$hostElement$,l=o["s-rc"];i&&(a=>{const r=a.o,n=a.$hostElement$,c=r.i,p=((d,u)=>{var f,h,S;const v=me(u),m=U.get(v);if(!x.document)return v;if(d=d.nodeType===11?d:x.document,m)if(typeof m=="string"){let y,g=A.get(d=d.head||d);if(g||A.set(d,g=new Set),!g.has(v)){y=x.document.createElement("style"),y.textContent=m;const T=(f=N._)!=null?f:(function(){var b,_,C;return(C=(_=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?C:void 0})();if(T!=null&&y.setAttribute("nonce",T),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),_=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(y,_?.parentNode===d?_:null)}else if("host"in d)if(K){const b=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),Q?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=m+b.textContent:d.prepend(y)}else d.append(y);1&u.i&&d.insertBefore(y,null),4&u.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(v)}}else{let y=A.get(d);if(y||A.set(d,y=new Set),!y.has(v)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let T;if(m.constructor===g.CSSStyleSheet)T=m;else{T=new g.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)T.insertRule(m.cssRules[b].cssText,b)}Q?d.adoptedStyleSheets.push(T):d.adoptedStyleSheets=[...d.adoptedStyleSheets,T],y.add(v)}}return v})(n.shadowRoot?n.shadowRoot:n.getRootNode(),r);10&c&&(n["s-sc"]=p,n.classList.add(p+"-h"))})(e),ot(e,t,o,i),l&&(l.map((a=>a())),o["s-rc"]=void 0);{const a=(s=o["s-p"])!=null?s:[],r=()=>lt(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},ot=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,et(e,t,s)}catch(o){I(o,e.$hostElement$)}return null},lt=e=>{const t=e.$hostElement$,i=t,s=e.R;F(i,"componentDidRender",void 0,t),64&e.i?F(i,"componentDidUpdate",void 0,t):(e.i|=64,at(t),F(i,"componentDidLoad",void 0,t),e.L(t),s||nt()),e.A&&(e.A(),e.A=void 0),512&e.i&&te((()=>de(e,!1))),e.i&=-517},nt=()=>{te((()=>Je(x,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(o){I(o,s)}},at=e=>e.classList.add("hydrated"),Ae=(e,t,i,s)=>{const o=j(e);if(!o)return;const l=e,a=o.l.get(t),r=o.i,n=l;i=xe(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(o.l.set(t,i),s.F){const p=s.F[t];p&&p.map((d=>{try{const[[u,f]]=Object.entries(d);(128&r||1&f)&&(n?n[u](i,a,t):o.T.push((()=>{o.D[u](i,a,t)})))}catch(u){I(u,l)}}))}if(2&r){if(n.componentShouldUpdate&&n.componentShouldUpdate(i,a,t)===!1&&!(16&r))return;16&r||de(o,!1)}}},rt=(e,t,i)=>{var s,o;const l=e.prototype;64&t.i&&1&i&&He.forEach((a=>{const r=l[a];Object.defineProperty(l,a,{value(...n){var c;const p=j(this),d=this;d?typeof r=="function"&&r.call(d,...n):(c=p?.H)==null||c.then((u=>{const f=u[a];typeof f=="function"&&f.call(u,...n)}))}})}));{e.watchers&&!t.F&&(t.F=Se(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[n]])=>{if(31&n||32&n){const{get:c,set:p}=V(l,r)||{};c&&(t.t[r][0]|=2048),p&&(t.t[r][0]|=4096),Object.defineProperty(l,r,{get(){return c?c.apply(this):(d=r,j(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(l,r,{set(d){const u=j(this);if(u){if(p)return(32&n?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),p.apply(this,[xe(d,n,!!(64&t.i))]),void Ae(this,r,d=32&n?this[r]:u.$hostElement$[r],t);Ae(this,r,d,t)}}})}}));{const r=new Map;l.attributeChangedCallback=function(n,c,p){N.jmp((()=>{var d;const u=r.get(n),f=j(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==p)return;if(u==null){const y=f?.i;if(f&&y&&!(8&y)&&p!==c){const g=this,T=(d=t.F)==null?void 0:d[n];T?.forEach((b=>{const[[_,C]]=Object.entries(b);g[_]!=null&&(128&y||1&C)&&g[_].call(g,p,c,n)}))}return}const h=a.find((([y])=>y===u)),S=h&&4&h[1][0],v=S&&p===null&&this[u]===void 0;S&&(p=p!==null&&p!=="false");const m=Object.getOwnPropertyDescriptor(l,u);v||p==this[u]||m.get&&!m.set||(this[u]=p)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...a.filter((([n,c])=>31&c[0])).map((([n,c])=>{var p;const d=c[1]||n;return r.set(d,n),512&c[0]&&((p=t.C)==null||p.push([n,d])),d}))]))}}return e},dt=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Se(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,a)=>{const r={i:0,$hostElement$:l,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),l["s-p"]=[],l["s-rc"]=[];const n=r;l.__stencil__getHostRef=()=>n,512&a.i&&Me(l,r)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=j(this);if(!l)return;Pe(this,l,i.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&N.i)){const a=j(l);if(!a)return;const r=a.o;if(1&a.i)Pe(l,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(n=>{if(!x.document)return;const c=n["s-cr"]=x.document.createComment("");c["s-cn"]=!0,E(n,c,n.firstChild)})(l);{let n=l;for(;n=n.parentNode||n.host;)if(n["s-p"]){je(a,a.R=n);break}}r.t&&Object.entries(r.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(l,n)){const p=l[n];delete l[n],l[n]=p}})),(async(n,c,p)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=me(p);U.has(S)||((v,m,y)=>{let g=U.get(v);K&&y?(g=g||new CSSStyleSheet,typeof g=="string"?g=m:g.replaceSync(m)):g=m,U.set(v,g)})(S,h,!!(1&p.i))}const u=c.R,f=()=>de(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){I(u,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(l,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&N.i)){const a=j(l);a?.V&&(a.V.map((r=>r())),a.V=void 0)}A.has(l)&&A.delete(l),l.shadowRoot&&A.has(l.shadowRoot)&&A.delete(l.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ge.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),rt(e,i,3)}catch(s){return I(s),e}},Pe=(e,t,i)=>{i&&x.document&&i.map((([s,o,l])=>{const a=pt(x.document,e,s),r=ct(t,l),n=ut(s);N.ael(a,o,r,n),(t.V=t.V||[]).push((()=>N.rel(a,o,r,n)))}))},ct=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){I(s,e.$hostElement$)}},pt=(e,t,i)=>8&i?x:t,ut=e=>Fe?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function St(e){return e}function Ie(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=Ie(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function De(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=Ie(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:i},s)=>De("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&i==="accent-1","gids-display-tag--accent-2":t==="subtle"&&i==="accent-2","gids-display-tag--accent-3":t==="subtle"&&i==="accent-3","gids-display-tag--accent-4":t==="subtle"&&i==="accent-4","gids-display-tag--accent-5":t==="subtle"&&i==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&i==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&i==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&i==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&i==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&i==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionBodyListItemClassNames:e=>De("gids-expansion-body-list-item",e)},Symbol.toStringTag,{value:"Module"})),{getGidsDisplaTagClassNames:ft}=ht,yt=({label:e,appearance:t="subtle",color:i,size:s="md",icon:o,class:l,...a})=>O("span",{class:ft({size:s,appearance:t,color:i},l),...a},o,e),{getGidsExpansionBodyListItemClassNames:mt}=gt,Ve=dt(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.displayTagVisible=!1,this.displayTagColor="accent-5",this.displayTagSize="xs",this.displayTagAppearance="subtle",this.hasSubtitleItemListener=!1,this.hasSupportingTextItemListener=!1,this.handleSubtitleClick=t=>{this.applySubtitleSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"subtitle",originalEvent:t})},this.handleSupportingTextClick=t=>{this.applySupportingTextSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"supporting-text",originalEvent:t})}}handleDisplayTagVisibilityChange(e){this.displayTagVisible=e}handleDisplayTagColorChange(e){this.displayTagColor=e}handleDisplayTagSizeChange(e){this.displayTagSize=e}handleDisplayTagAppearanceChange(e){this.displayTagAppearance=e}connectedCallback(){this.attachSubtitleItemListener(),this.attachSupportingTextItemListener()}disconnectedCallback(){this.detachSubtitleItemListener(),this.detachSupportingTextItemListener()}applySubtitleSelection(e){this.onSubtitlePress&&this.onSubtitlePress(e)}applySupportingTextSelection(e){this.onSupportingTextPress&&this.onSupportingTextPress(e)}attachSubtitleItemListener(){this.hasSubtitleItemListener||(this.hostElement.addEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!0)}attachSupportingTextItemListener(){this.hasSupportingTextItemListener||(this.hostElement.addEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!0)}detachSubtitleItemListener(){this.hasSubtitleItemListener&&(this.hostElement.removeEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!1)}detachSupportingTextItemListener(){this.hasSupportingTextItemListener&&(this.hostElement.removeEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!1)}isValidLabel(){return!(!this?.label||this.label==="")}isValidSubtitle(){return!(!this?.subtitle||this.subtitle==="")}isValidSupportingText(){return!(!this?.supportingText||this.supportingText==="")}isDisplayTagVisible(){return!(!this.displayTagVisible||!this?.displayTagLabel||this.displayTagLabel==="")}convertTextToUppercase(e){return e&&e!==""?e.toUpperCase():""}render(){const e=mt(),t=this?.label,i=this?.subtitle,s=this?.supportingText,o=this.isValidLabel(),l=this.isValidSubtitle(),a=this.isValidSupportingText(),r=this.isDisplayTagVisible(),n=this?.displayTagLabel??"";return O(be,{key:"f8efd33b1166ad50320525759f55707077d46028",class:e},o||l||r?O("div",{class:"gids-expansion-body-list-item__primary-container"},o||r?O("div",{class:"gids-expansion-body-list-item__primary-content"},o?O("span",{class:"gids-expansion-body-list-item__label"},this.convertTextToUppercase(t)):void 0,r?O(yt,{color:this.displayTagColor||"accent-5",label:n,size:this.displayTagSize,appearance:this.displayTagAppearance}):void 0):void 0,l?O("button",{type:"button",class:"gids-expansion-body-list-item__subtitle",onClick:this.handleSubtitleClick},i):void 0):void 0,a?O("div",{class:"gids-expansion-body-list-item__secondary-container"},O("button",{type:"button",class:"gids-expansion-body-list-item__supporting-text",onClick:this.handleSupportingTextClick},this.convertTextToUppercase(s))):void 0)}get hostElement(){return this}static get watchers(){return{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}}static get style(){return'.gids-expansion-body-list-item{display:flex;flex:1;gap:var(--gids-gap-400);padding-bottom:var(--gids-padding-vertical-edge-to-element-300);position:relative;cursor:default}.gids-expansion-body-list-item::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion-body-list-item::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::before{opacity:1}.gids-expansion-body-list-item__primary-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 0;gap:var(--gids-gap-150)}.gids-expansion-body-list-item__primary-content{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-200)}.gids-expansion-body-list-item__secondary-container{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.gids-expansion-body-list-item__label{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);color:var(--gids-color-text-subtle);cursor:default}.gids-expansion-body-list-item__subtitle{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer}.gids-expansion-body-list-item__supporting-text{margin:0;padding:0;appearance:none;border:none;background:none;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);color:var(--gids-color-text-subtle);padding:var(--gids-padding-vertical-edge-to-element-050) var(--gids-padding-horizontal-edge-to-element-100);border-radius:var(--gids-border-radius-sm);cursor:pointer;transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out}.gids-expansion-body-list-item__supporting-text:hover{background-color:var(--gids-color-background-brand-bold-hovered);color:var(--gids-color-text-inverse)}.gids-expansion-body-list-item__supporting-text:active{background-color:var(--gids-color-background-brand-bold-pressed);color:var(--gids-color-text-inverse)}'}},[0,"gids-expansion-body-list-item",{listItemId:[1,"list-item-id"],label:[1],subtitle:[1],supportingText:[1,"supporting-text"],displayTagVisible:[4,"display-tag-visible"],displayTagColor:[1,"display-tag-color"],displayTagSize:[1,"display-tag-size"],displayTagAppearance:[1,"display-tag-appearance"],displayTagLabel:[1,"display-tag-label"],onSubtitlePress:[16],onSupportingTextPress:[16]},void 0,{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}]);function Re(){typeof customElements<"u"&&["gids-expansion-body-list-item"].forEach((e=>{e==="gids-expansion-body-list-item"&&(customElements.get(e)||customElements.define(e,Ve))}))}Re();const bt=Ve,vt=Re;P.GidsExpansionBodyListItem=bt,P.defineCustomElement=vt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(v=>{const m=[];for(let y=0;y<v.length;y++){const g=v[y]["s-nr"]||void 0;g&&g.isConnected&&m.push(g)}return m})(S.childNodes)).forEach((v=>{h===M(v)&&f.push(v)})),d?f.filter((v=>v.nodeType===1)):f}).bind(c);c.assignedElements=p(!0),c.assignedNodes=p(!1)})(l),r=e&&e.m&&e.m[i],r&&r.O===o.O&&e.S&&Ce(e.S)),l},Ce=e=>{N.i|=1;const t=e.closest(D.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of i?s.reverse():s)o["s-sh"]!=null&&(E(t,o,i??null),o["s-sh"]=void 0,q=!0)}N.i&=-2},Z=(e,t)=>{N.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===D&&i.push(s)}for(let s=i.length-1;s>=0;s--){const o=i[s];o["s-hn"]!==D&&o["s-ol"]&&(E(B(o).parentNode,o,B(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,q=!0),t&&Z(o,t)}N.i&=-2},ke=(e,t,i,s,o,l)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot),i.O==="template"&&(r=r.content);o<=l;++o)s[o]&&(a=Y(null,i,o),a&&(s[o].S=a,E(r,a,B(t))))},Oe=(e,t,i)=>{for(let s=t;s<=i;++s){const o=e[s];if(o){const l=o.S;Le(o),l&&(G=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,R=(e,t,i=!1)=>{const s=t.S=e.S,o=e.m,l=t.m,a=t.O,r=t.h;let n;r==null?(w=a==="svg"||a!=="foreignObject"&&w,a!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ce(t.S.parentElement)),ne(e,t,w),o!==null&&l!==null?((c,p,d,u,f=!1)=>{let h,S,v=0,m=0,y=0,g=0,T=p.length-1,b=p[0],_=p[T],C=u.length-1,k=u[0],L=u[C];const ze=d.O==="template"?c.content:c;for(;v<=T&&m<=C;)if(b==null)b=p[++v];else if(_==null)_=p[--T];else if(k==null)k=u[++m];else if(L==null)L=u[--C];else if(J(b,k,f))R(b,k,f),b=p[++v],k=u[++m];else if(J(_,L,f))R(_,L,f),_=p[--T],L=u[--C];else if(J(b,L,f))b.O!=="slot"&&L.O!=="slot"||Z(b.S.parentNode,!1),R(b,L,f),E(ze,b.S,_.S.nextSibling),b=p[++v],L=u[--C];else if(J(_,k,f))b.O!=="slot"&&L.O!=="slot"||Z(_.S.parentNode,!1),R(_,k,f),E(ze,_.S,b.S),_=p[--T],k=u[++m];else{for(y=-1,g=v;g<=T;++g)if(p[g]&&p[g].$!==null&&p[g].$===k.$){y=g;break}y>=0?(S=p[y],S.O!==k.O?h=Y(p&&p[m],d,y):(R(S,k,f),p[y]=void 0,h=S.S),k=u[++m]):(h=Y(p&&p[m],d,m),k=u[++m]),h&&E(B(b.S).parentNode,h,B(b.S))}v>T?ke(c,u[C+1]==null?null:u[C+1].S,d,u,m,C):m>C&&Oe(p,v,T)})(s,o,t,l,i):l!==null?(e.h!==null&&(s.textContent=""),ke(s,null,t,l,0,l.length-1)):!i&&o!==null&&Oe(o,0,o.length-1),w&&a==="svg"&&(w=!1)):(n=s["s-cr"])?n.parentNode.textContent=r:e.h!==r&&(s.data=r)},$=[],Ee=e=>{let t,i,s;const o=e.__childNodes||e.childNodes;for(const l of o){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=l["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ye(t,a)){let r=$.find((n=>n.k===t));G=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=l["s-hn"],r.N=l):(t["s-sh"]=l["s-hn"],$.push({N:l,k:t})),t["s-sr"]&&$.map((n=>{ye(n.k,t["s-sn"])&&(r=$.find((c=>c.k===t)),r&&!n.N&&(n.N=r.N))}))}else $.some((r=>r.k===t))||$.push({k:t})}l.nodeType===1&&Ee(l)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},Xe=(e,t)=>{re.push((()=>e(t)))},E=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:o}=(function(l,a){var r;if(!(a=a||((r=l["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const n=l["s-sn"]=M(l)||"";return{slotNode:se(ie(a,"childNodes"),a.tagName,n)[0],slotName:n}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},et=(e,t,i=!1)=>{var s,o,l,a,r;const n=e.$hostElement$,c=e.o,p=e.M||W(null,null);var d;const u=(d=t)&&d.O===be?t:O(null,null,t);if(D=n.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,h])=>{u.v[h]=n[f]}))),i&&u.v)for(const f of Object.keys(u.v))n.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=n[f]);if(u.O=null,u.i|=4,e.M=u,u.S=p.S=n.shadowRoot||n,H=!(!(1&c.i)||128&c.i),oe=n["s-cr"],G=!1,R(p,u,i),N.i|=1,q){Ee(u.S);for(const f of $){const h=f.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,E(h.parentNode,h["s-ol"]=S,h,i)}}for(const f of $){const h=f.k,S=f.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const v=S.parentNode;let m=S.nextSibling;if(m&&m.nodeType===1){let y=(o=h["s-ol"])==null?void 0:o.previousSibling;for(;y;){let g=(l=y["s-nr"])!=null?l:null;if(g&&g["s-sn"]===h["s-sn"]&&v===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===h||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){m=g;break}}y=y.previousSibling}}if((!m&&v!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(E(v,h,m,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,E(h.parentNode,y,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null&&a)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(G&&fe(u.S),N.i&=-2,$.length=0,!H&&!(1&c.i)&&n["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const h of f)if(h["s-hn"]!==D&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(r=h.hidden)!=null&&r),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],E(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}oe=void 0,ae.forEach((f=>f())),ae.length=0,re.forEach((f=>f())),re.length=0},je=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);je(e,e.R);const i=()=>tt(e,t);if(!t)return We(i);queueMicrotask((()=>{i()}))},tt=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),o=$e(o,(()=>F(s,"componentWillRender",void 0,i))),$e(o,(()=>it(e,s,t)))},$e=(e,t)=>st(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),st=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",it=async(e,t,i)=>{var s;const o=e.$hostElement$,l=o["s-rc"];i&&(a=>{const r=a.o,n=a.$hostElement$,c=r.i,p=((d,u)=>{var f,h,S;const v=me(u),m=U.get(v);if(!x.document)return v;if(d=d.nodeType===11?d:x.document,m)if(typeof m=="string"){let y,g=A.get(d=d.head||d);if(g||A.set(d,g=new Set),!g.has(v)){y=x.document.createElement("style"),y.textContent=m;const T=(f=N._)!=null?f:(function(){var b,_,C;return(C=(_=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?C:void 0})();if(T!=null&&y.setAttribute("nonce",T),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),_=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(y,_?.parentNode===d?_:null)}else if("host"in d)if(K){const b=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),Q?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=m+b.textContent:d.prepend(y)}else d.append(y);1&u.i&&d.insertBefore(y,null),4&u.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(v)}}else{let y=A.get(d);if(y||A.set(d,y=new Set),!y.has(v)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let T;if(m.constructor===g.CSSStyleSheet)T=m;else{T=new g.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)T.insertRule(m.cssRules[b].cssText,b)}Q?d.adoptedStyleSheets.push(T):d.adoptedStyleSheets=[...d.adoptedStyleSheets,T],y.add(v)}}return v})(n.shadowRoot?n.shadowRoot:n.getRootNode(),r);10&c&&(n["s-sc"]=p,n.classList.add(p+"-h"))})(e),ot(e,t,o,i),l&&(l.map((a=>a())),o["s-rc"]=void 0);{const a=(s=o["s-p"])!=null?s:[],r=()=>lt(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},ot=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,et(e,t,s)}catch(o){I(o,e.$hostElement$)}return null},lt=e=>{const t=e.$hostElement$,i=t,s=e.R;F(i,"componentDidRender",void 0,t),64&e.i?F(i,"componentDidUpdate",void 0,t):(e.i|=64,at(t),F(i,"componentDidLoad",void 0,t),e.L(t),s||nt()),e.A&&(e.A(),e.A=void 0),512&e.i&&te((()=>de(e,!1))),e.i&=-517},nt=()=>{te((()=>Je(x,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(o){I(o,s)}},at=e=>e.classList.add("hydrated"),Ae=(e,t,i,s)=>{const o=j(e);if(!o)return;const l=e,a=o.l.get(t),r=o.i,n=l;i=xe(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(o.l.set(t,i),s.F){const p=s.F[t];p&&p.map((d=>{try{const[[u,f]]=Object.entries(d);(128&r||1&f)&&(n?n[u](i,a,t):o.T.push((()=>{o.D[u](i,a,t)})))}catch(u){I(u,l)}}))}if(2&r){if(n.componentShouldUpdate&&n.componentShouldUpdate(i,a,t)===!1&&!(16&r))return;16&r||de(o,!1)}}},rt=(e,t,i)=>{var s,o;const l=e.prototype;64&t.i&&1&i&&He.forEach((a=>{const r=l[a];Object.defineProperty(l,a,{value(...n){var c;const p=j(this),d=this;d?typeof r=="function"&&r.call(d,...n):(c=p?.H)==null||c.then((u=>{const f=u[a];typeof f=="function"&&f.call(u,...n)}))}})}));{e.watchers&&!t.F&&(t.F=Se(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[n]])=>{if(31&n||32&n){const{get:c,set:p}=V(l,r)||{};c&&(t.t[r][0]|=2048),p&&(t.t[r][0]|=4096),Object.defineProperty(l,r,{get(){return c?c.apply(this):(d=r,j(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(l,r,{set(d){const u=j(this);if(u){if(p)return(32&n?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),p.apply(this,[xe(d,n,!!(64&t.i))]),void Ae(this,r,d=32&n?this[r]:u.$hostElement$[r],t);Ae(this,r,d,t)}}})}}));{const r=new Map;l.attributeChangedCallback=function(n,c,p){N.jmp((()=>{var d;const u=r.get(n),f=j(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==p)return;if(u==null){const y=f?.i;if(f&&y&&!(8&y)&&p!==c){const g=this,T=(d=t.F)==null?void 0:d[n];T?.forEach((b=>{const[[_,C]]=Object.entries(b);g[_]!=null&&(128&y||1&C)&&g[_].call(g,p,c,n)}))}return}const h=a.find((([y])=>y===u)),S=h&&4&h[1][0],v=S&&p===null&&this[u]===void 0;S&&(p=p!==null&&p!=="false");const m=Object.getOwnPropertyDescriptor(l,u);v||p==this[u]||m.get&&!m.set||(this[u]=p)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...a.filter((([n,c])=>31&c[0])).map((([n,c])=>{var p;const d=c[1]||n;return r.set(d,n),512&c[0]&&((p=t.C)==null||p.push([n,d])),d}))]))}}return e},dt=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Se(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,a)=>{const r={i:0,$hostElement$:l,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),l["s-p"]=[],l["s-rc"]=[];const n=r;l.__stencil__getHostRef=()=>n,512&a.i&&Me(l,r)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=j(this);if(!l)return;Pe(this,l,i.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&N.i)){const a=j(l);if(!a)return;const r=a.o;if(1&a.i)Pe(l,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(n=>{if(!x.document)return;const c=n["s-cr"]=x.document.createComment("");c["s-cn"]=!0,E(n,c,n.firstChild)})(l);{let n=l;for(;n=n.parentNode||n.host;)if(n["s-p"]){je(a,a.R=n);break}}r.t&&Object.entries(r.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(l,n)){const p=l[n];delete l[n],l[n]=p}})),(async(n,c,p)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=me(p);U.has(S)||((v,m,y)=>{let g=U.get(v);K&&y?(g=g||new CSSStyleSheet,typeof g=="string"?g=m:g.replaceSync(m)):g=m,U.set(v,g)})(S,h,!!(1&p.i))}const u=c.R,f=()=>de(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){I(u,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(l,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&N.i)){const a=j(l);a?.V&&(a.V.map((r=>r())),a.V=void 0)}A.has(l)&&A.delete(l),l.shadowRoot&&A.has(l.shadowRoot)&&A.delete(l.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ge.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),rt(e,i,3)}catch(s){return I(s),e}},Pe=(e,t,i)=>{i&&x.document&&i.map((([s,o,l])=>{const a=pt(x.document,e,s),r=ct(t,l),n=ut(s);N.ael(a,o,r,n),(t.V=t.V||[]).push((()=>N.rel(a,o,r,n)))}))},ct=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){I(s,e.$hostElement$)}},pt=(e,t,i)=>8&i?x:t,ut=e=>Fe?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function St(e){return e}function Ie(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=Ie(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function De(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=Ie(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:i},s)=>De("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&i==="accent-1","gids-display-tag--accent-2":t==="subtle"&&i==="accent-2","gids-display-tag--accent-3":t==="subtle"&&i==="accent-3","gids-display-tag--accent-4":t==="subtle"&&i==="accent-4","gids-display-tag--accent-5":t==="subtle"&&i==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&i==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&i==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&i==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&i==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&i==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsExpansionBodyListItemClassNames:e=>De("gids-expansion-body-list-item",e)},Symbol.toStringTag,{value:"Module"})),{getGidsDisplaTagClassNames:ft}=ht,yt=({label:e,appearance:t="subtle",color:i,size:s="md",icon:o,class:l,...a})=>O("span",{class:ft({size:s,appearance:t,color:i},l),...a},o,e),{getGidsExpansionBodyListItemClassNames:mt}=gt,Ve=dt(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.displayTagVisible=!1,this.displayTagColor="accent-5",this.displayTagSize="xs",this.displayTagAppearance="subtle",this.hasSubtitleItemListener=!1,this.hasSupportingTextItemListener=!1,this.handleSubtitleClick=t=>{this.applySubtitleSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"subtitle",originalEvent:t})},this.handleSupportingTextClick=t=>{this.applySupportingTextSelection({listItemId:this.listItemId,label:this.label,subtitle:this.subtitle,supportingText:this.supportingText,listItemPressedType:"supporting-text",originalEvent:t})}}handleDisplayTagVisibilityChange(e){this.displayTagVisible=e}handleDisplayTagColorChange(e){this.displayTagColor=e}handleDisplayTagSizeChange(e){this.displayTagSize=e}handleDisplayTagAppearanceChange(e){this.displayTagAppearance=e}connectedCallback(){this.attachSubtitleItemListener(),this.attachSupportingTextItemListener()}disconnectedCallback(){this.detachSubtitleItemListener(),this.detachSupportingTextItemListener()}applySubtitleSelection(e){this.onSubtitlePress&&this.onSubtitlePress(e)}applySupportingTextSelection(e){this.onSupportingTextPress&&this.onSupportingTextPress(e)}attachSubtitleItemListener(){this.hasSubtitleItemListener||(this.hostElement.addEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!0)}attachSupportingTextItemListener(){this.hasSupportingTextItemListener||(this.hostElement.addEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!0)}detachSubtitleItemListener(){this.hasSubtitleItemListener&&(this.hostElement.removeEventListener("onSubtitlePress",this.handleSubtitleClick),this.hasSubtitleItemListener=!1)}detachSupportingTextItemListener(){this.hasSupportingTextItemListener&&(this.hostElement.removeEventListener("onSupportingTextPress",this.handleSupportingTextClick),this.hasSupportingTextItemListener=!1)}isValidLabel(){return!(!this?.label||this.label==="")}isValidSubtitle(){return!(!this?.subtitle||this.subtitle==="")}isValidSupportingText(){return!(!this?.supportingText||this.supportingText==="")}isDisplayTagVisible(){return!(!this.displayTagVisible||!this?.displayTagLabel||this.displayTagLabel==="")}convertTextToUppercase(e){return e&&e!==""?e.toUpperCase():""}render(){const e=mt(),t=this?.label,i=this?.subtitle,s=this?.supportingText,o=this.isValidLabel(),l=this.isValidSubtitle(),a=this.isValidSupportingText(),r=this.isDisplayTagVisible(),n=this?.displayTagLabel??"";return O(be,{key:"f70f03c864cc5d3fe92f7f22a1772054636c1e9c",class:e},o||l||r?O("div",{class:"gids-expansion-body-list-item__primary-container"},o||r?O("div",{class:"gids-expansion-body-list-item__primary-content"},o?O("span",{class:"gids-expansion-body-list-item__label"},this.convertTextToUppercase(t)):void 0,r?O(yt,{color:this.displayTagColor||"accent-5",label:n,size:this.displayTagSize,appearance:this.displayTagAppearance}):void 0):void 0,l?O("button",{type:"button",class:"gids-expansion-body-list-item__subtitle",onClick:this.handleSubtitleClick},i):void 0):void 0,a?O("div",{class:"gids-expansion-body-list-item__secondary-container"},O("button",{type:"button",class:"gids-expansion-body-list-item__supporting-text",onClick:this.handleSupportingTextClick},this.convertTextToUppercase(s))):void 0)}get hostElement(){return this}static get watchers(){return{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}}static get style(){return'.gids-expansion-body-list-item{display:flex;flex:1;gap:var(--gids-gap-400);padding-bottom:var(--gids-padding-vertical-edge-to-element-300);position:relative;cursor:default}.gids-expansion-body-list-item::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion-body-list-item::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::before{opacity:1}.gids-expansion-body-list-item__primary-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 0;gap:var(--gids-gap-150)}.gids-expansion-body-list-item__primary-content{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-200)}.gids-expansion-body-list-item__secondary-container{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.gids-expansion-body-list-item__label{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);color:var(--gids-color-text-subtle);cursor:default}.gids-expansion-body-list-item__subtitle{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer}.gids-expansion-body-list-item__supporting-text{margin:0;padding:0;appearance:none;border:none;background:none;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);color:var(--gids-color-text-subtle);padding:var(--gids-padding-vertical-edge-to-element-050) var(--gids-padding-horizontal-edge-to-element-100);border-radius:var(--gids-border-radius-sm);cursor:pointer;transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out}.gids-expansion-body-list-item__supporting-text:hover{background-color:var(--gids-color-background-brand-bold-hovered);color:var(--gids-color-text-inverse)}.gids-expansion-body-list-item__supporting-text:active{background-color:var(--gids-color-background-brand-bold-pressed);color:var(--gids-color-text-inverse)}'}},[0,"gids-expansion-body-list-item",{listItemId:[1,"list-item-id"],label:[1],subtitle:[1],supportingText:[1,"supporting-text"],displayTagVisible:[4,"display-tag-visible"],displayTagColor:[1,"display-tag-color"],displayTagSize:[1,"display-tag-size"],displayTagAppearance:[1,"display-tag-appearance"],displayTagLabel:[1,"display-tag-label"],onSubtitlePress:[16],onSupportingTextPress:[16]},void 0,{displayTagVisible:[{handleDisplayTagVisibilityChange:0}],displayTagColor:[{handleDisplayTagColorChange:0}],displayTagSize:[{handleDisplayTagSizeChange:0}],displayTagAppearance:[{handleDisplayTagAppearanceChange:0}]}]);function Re(){typeof customElements<"u"&&["gids-expansion-body-list-item"].forEach((e=>{e==="gids-expansion-body-list-item"&&(customElements.get(e)||customElements.define(e,Ve))}))}Re();const bt=Ve,vt=Re;P.GidsExpansionBodyListItem=bt,P.defineCustomElement=vt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));