@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
@@ -1,5 +1,5 @@
1
- (function(P,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(P=typeof globalThis<"u"?globalThis:P||self,V(P.gidsCoreWebGidsTabItem={}))})(this,(function(P){"use strict";function V(e,t,s){const o=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==o;){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!s||r.get))return r;e=Object.getPrototypeOf(e)}}var D,Fe=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([o,[r]])=>{if(31&r||32&r){const i=e[o],l=V(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);l&&Object.defineProperty(e,o,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(o)?e[o]=t.l.get(o):i!==void 0&&(e[o]=i)}}))},$=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ue=(e,t)=>t in e,L=(e,t)=>(0,console.error)(e,t),G=new Map,ge="http://www.w3.org/1999/xlink",Ge=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],k=typeof window<"u"?window:{},ze=k.HTMLElement||class{},_={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,o)=>e.addEventListener(t,s,o),rel:(e,t,s,o)=>e.removeEventListener(t,s,o),ce:(e,t)=>new CustomEvent(e,t)},Ue=(()=>{var e;let t=!1;try{(e=k.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!k.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!k.document&&Object.getOwnPropertyDescriptor(k.document.adoptedStyleSheets,"length").writable,ee=!1,he=[],fe=[],qe=(e,t)=>s=>{e.push(s),ee||(ee=!0,4&_.i?oe(te):_.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){L(s)}e.length=0},te=()=>{be(he),be(fe),(ee=he.length>0)&&_.raf(te)},oe=e=>Promise.resolve(void 0).then(e),Ye=qe(fe);function Ze(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(X?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var pe=e=>{const t=re(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&se(t,e.tagName).forEach((o=>{o.nodeType===1&&o.tagName==="SLOT-FB"&&(o.hidden=!!Je(o,H(o),!1).length)}));let s=0;for(s=0;s<t.length;s++){const o=t[s];o.nodeType===1&&re(o,"childNodes").length&&pe(o)}};function se(e,t,s){let o,r=0,i=[];for(;r<e.length;r++){if(o=e[r],o["s-sr"]&&(!t||o["s-hn"]===t)&&(s===void 0||H(o)===s)&&(i.push(o),s!==void 0))return i;i=[...i,...se(o.childNodes,t,s)]}return i}var Je=(e,t,s=!0)=>{const o=[];(s&&e["s-sr"]||!e["s-sr"])&&o.push(e);let r=e;for(;r=r.nextSibling;)H(r)!==t||!s&&r["s-sr"]||o.push(r);return o},me=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",H=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,R,I=new WeakMap,ve=e=>"sc-"+e.p,ne=e=>(e=typeof e)=="object"||e==="function",x=(e,t,...s)=>{let o=null,r=null,i=null,l=!1,a=!1;const n=[],c=d=>{for(let g=0;g<d.length;g++)o=d[g],Array.isArray(o)?c(o):o!=null&&typeof o!="boolean"&&((l=typeof e!="function"&&!ne(o))&&(o=String(o)),l&&a?n[n.length-1].h+=o:n.push(l?z(null,o):o),a=l)};if(c(s),t){t.key&&(r=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((g=>d[g])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,n,Ke);const u=z(e,null);return u.v=t,n.length>0&&(u.m=n),u.$=r,u.j=i,u},z=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ye={},Ke={forEach:(e,t)=>e.map(Se).forEach(t),map:(e,t)=>e.map(Se).map(t).map(Qe)},Se=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Qe=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),x(e.vtag,s,...e.vchildren||[])}const t=z(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const r of t){if(s)break;for(const i of e[r])if(typeof i=="string"){s=!0;break}}if(!s)return e;const o={};for(const r of t)o[r]=e[r].map((i=>typeof i=="string"?{[i]:0}:i));return o},we=(e,t,s)=>e==null||ne(e)?e:4&t?(s&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Xe=(e,t,s)=>{const o=_.ce(t,s);return e.dispatchEvent(o),o},Ne=(e,t,s,o,r,i)=>{if(s===o)return;let l=ue(e,t),a=t.toLowerCase();if(t==="class"){const n=e.classList,c=_e(s);let u=_e(o);n.remove(...c.filter((d=>d&&!u.includes(d)))),n.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const n in s)o&&o[n]!=null||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in o)s&&o[n]===s[n]||(n.includes("-")?e.style.setProperty(n,o[n]):e.style[n]=o[n])}else if(t!=="key"){if(t==="ref")o&&ot(o,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let c;{const u=$(e);if(u&&u.o&&u.o.t){const d=u.o.t[n];d&&d[1]&&(c=d[1])}}return c||(c=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(o==null||o===!1?o===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,o===!0?"":o))}if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=o}catch{}return}{const n=ne(o);if((l||n&&o!==null)&&!r)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const u=o??"";t==="list"?l=!1:s!=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),o==null||o===!1?o===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ge,t):e.removeAttribute(t)):(!l||4&i||r)&&!n&&e.nodeType===1&&(o=o===!0?"":o,c?e.setAttributeNS(ge,t,o):e.setAttribute(t,o))}}else if(t=t[2]==="-"?t.slice(3):ue(k,a)?a.slice(2):a[2]+t.slice(3),s||o){const n=t.endsWith(Ce);t=t.replace(tt,""),s&&_.rel(e,t,s,n),o&&_.ael(e,t,o,n)}}},et=/\s/,_e=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(et):[]),Ce="Capture",tt=new RegExp(Ce+"$"),ae=(e,t,s)=>{const o=t.S.nodeType===11&&t.S.host?t.S.host:t.S,r=e&&e.v||{},i=t.v||{};for(const l of Oe(Object.keys(r)))l in i||Ne(o,l,r[l],void 0,s,t.i);for(const l of Oe(Object.keys(i)))Ne(o,l,r[l],i[l],s,t.i)};function Oe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var M=!1,U=!1,q=!1,C=!1,le=[],de=[],Y=(e,t,s)=>{var o;const r=t.m[s];let i,l,a,n=0;if(M||(q=!0,r.O==="slot"&&(r.i|=r.m?2:1)),r.h!=null)i=r.S=k.document.createTextNode(r.h);else if(1&r.i)i=r.S=k.document.createTextNode(""),ae(null,r,C);else{if(C||(C=r.O==="svg"),!k.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=r.S=k.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!M&&2&r.i?"slot-fb":r.O),C&&r.O==="foreignObject"&&(C=!1),ae(null,r,C),r.m){const c=r.O==="template"?i.content:i;for(n=0;n<r.m.length;++n)l=Y(e,r,n),l&&c.appendChild(l)}r.O==="svg"?C=!1:i.tagName==="foreignObject"&&(C=!0)}return i["s-hn"]=R,3&r.i&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=r.j||"",i["s-rf"]=(o=r.v)==null?void 0:o.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(g){const b=[],h=this["s-sn"];g?.flatten&&console.error(`
1
+ (function(P,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(P=typeof globalThis<"u"?globalThis:P||self,V(P.gidsCoreWebGidsTabItem={}))})(this,(function(P){"use strict";function V(e,t,s){const o=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==o;){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!s||r.get))return r;e=Object.getPrototypeOf(e)}}var D,Fe=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([o,[r]])=>{if(31&r||32&r){const i=e[o],l=V(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);l&&Object.defineProperty(e,o,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(o)?e[o]=t.l.get(o):i!==void 0&&(e[o]=i)}}))},$=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ue=(e,t)=>t in e,L=(e,t)=>(0,console.error)(e,t),G=new Map,ge="http://www.w3.org/1999/xlink",Ge=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],k=typeof window<"u"?window:{},ze=k.HTMLElement||class{},_={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,o)=>e.addEventListener(t,s,o),rel:(e,t,s,o)=>e.removeEventListener(t,s,o),ce:(e,t)=>new CustomEvent(e,t)},Ue=(()=>{var e;let t=!1;try{(e=k.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!k.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!k.document&&Object.getOwnPropertyDescriptor(k.document.adoptedStyleSheets,"length").writable,ee=!1,he=[],fe=[],qe=(e,t)=>s=>{e.push(s),ee||(ee=!0,4&_.i?oe(te):_.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){L(s)}e.length=0},te=()=>{be(he),be(fe),(ee=he.length>0)&&_.raf(te)},oe=e=>Promise.resolve(void 0).then(e),Ye=qe(fe);function Ze(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(X?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var pe=e=>{const t=re(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&se(t,e.tagName).forEach((o=>{o.nodeType===1&&o.tagName==="SLOT-FB"&&(o.hidden=!!Je(o,H(o),!1).length)}));let s=0;for(s=0;s<t.length;s++){const o=t[s];o.nodeType===1&&re(o,"childNodes").length&&pe(o)}};function se(e,t,s){let o,r=0,i=[];for(;r<e.length;r++){if(o=e[r],o["s-sr"]&&(!t||o["s-hn"]===t)&&(s===void 0||H(o)===s)&&(i.push(o),s!==void 0))return i;i=[...i,...se(o.childNodes,t,s)]}return i}var Je=(e,t,s=!0)=>{const o=[];(s&&e["s-sr"]||!e["s-sr"])&&o.push(e);let r=e;for(;r=r.nextSibling;)H(r)!==t||!s&&r["s-sr"]||o.push(r);return o},me=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",H=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,R,I=new WeakMap,ve=e=>"sc-"+e.p,ne=e=>(e=typeof e)=="object"||e==="function",A=(e,t,...s)=>{let o=null,r=null,i=null,l=!1,a=!1;const n=[],c=d=>{for(let g=0;g<d.length;g++)o=d[g],Array.isArray(o)?c(o):o!=null&&typeof o!="boolean"&&((l=typeof e!="function"&&!ne(o))&&(o=String(o)),l&&a?n[n.length-1].h+=o:n.push(l?z(null,o):o),a=l)};if(c(s),t){t.key&&(r=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((g=>d[g])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,n,Ke);const u=z(e,null);return u.v=t,n.length>0&&(u.m=n),u.$=r,u.j=i,u},z=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ye={},Ke={forEach:(e,t)=>e.map(Se).forEach(t),map:(e,t)=>e.map(Se).map(t).map(Qe)},Se=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Qe=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),A(e.vtag,s,...e.vchildren||[])}const t=z(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const r of t){if(s)break;for(const i of e[r])if(typeof i=="string"){s=!0;break}}if(!s)return e;const o={};for(const r of t)o[r]=e[r].map((i=>typeof i=="string"?{[i]:0}:i));return o},we=(e,t,s)=>e==null||ne(e)?e:4&t?(s&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Xe=(e,t,s)=>{const o=_.ce(t,s);return e.dispatchEvent(o),o},Ne=(e,t,s,o,r,i)=>{if(s===o)return;let l=ue(e,t),a=t.toLowerCase();if(t==="class"){const n=e.classList,c=_e(s);let u=_e(o);n.remove(...c.filter((d=>d&&!u.includes(d)))),n.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const n in s)o&&o[n]!=null||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in o)s&&o[n]===s[n]||(n.includes("-")?e.style.setProperty(n,o[n]):e.style[n]=o[n])}else if(t!=="key"){if(t==="ref")o&&ot(o,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let c;{const u=$(e);if(u&&u.o&&u.o.t){const d=u.o.t[n];d&&d[1]&&(c=d[1])}}return c||(c=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(o==null||o===!1?o===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,o===!0?"":o))}if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=o}catch{}return}{const n=ne(o);if((l||n&&o!==null)&&!r)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const u=o??"";t==="list"?l=!1:s!=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),o==null||o===!1?o===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ge,t):e.removeAttribute(t)):(!l||4&i||r)&&!n&&e.nodeType===1&&(o=o===!0?"":o,c?e.setAttributeNS(ge,t,o):e.setAttribute(t,o))}}else if(t=t[2]==="-"?t.slice(3):ue(k,a)?a.slice(2):a[2]+t.slice(3),s||o){const n=t.endsWith(Ce);t=t.replace(tt,""),s&&_.rel(e,t,s,n),o&&_.ael(e,t,o,n)}}},et=/\s/,_e=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(et):[]),Ce="Capture",tt=new RegExp(Ce+"$"),ae=(e,t,s)=>{const o=t.S.nodeType===11&&t.S.host?t.S.host:t.S,r=e&&e.v||{},i=t.v||{};for(const l of Oe(Object.keys(r)))l in i||Ne(o,l,r[l],void 0,s,t.i);for(const l of Oe(Object.keys(i)))Ne(o,l,r[l],i[l],s,t.i)};function Oe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var M=!1,U=!1,q=!1,C=!1,le=[],de=[],Y=(e,t,s)=>{var o;const r=t.m[s];let i,l,a,n=0;if(M||(q=!0,r.O==="slot"&&(r.i|=r.m?2:1)),r.h!=null)i=r.S=k.document.createTextNode(r.h);else if(1&r.i)i=r.S=k.document.createTextNode(""),ae(null,r,C);else{if(C||(C=r.O==="svg"),!k.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=r.S=k.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!M&&2&r.i?"slot-fb":r.O),C&&r.O==="foreignObject"&&(C=!1),ae(null,r,C),r.m){const c=r.O==="template"?i.content:i;for(n=0;n<r.m.length;++n)l=Y(e,r,n),l&&c.appendChild(l)}r.O==="svg"?C=!1:i.tagName==="foreignObject"&&(C=!0)}return i["s-hn"]=R,3&r.i&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=r.j||"",i["s-rf"]=(o=r.v)==null?void 0:o.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(g){const b=[],h=this["s-sn"];g?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const m=[];for(let p=0;p<y.length;p++){const f=y[p]["s-nr"]||void 0;f&&f.isConnected&&m.push(f)}return m})(S.childNodes)).forEach((y=>{h===H(y)&&b.push(y)})),d?b.filter((y=>y.nodeType===1)):b}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[s],a&&a.O===r.O&&e.S&&Te(e.S)),i},Te=e=>{_.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const r of s?o.reverse():o)r["s-sh"]!=null&&(A(t,r,s??null),r["s-sh"]=void 0,q=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===R&&s.push(o)}for(let o=s.length-1;o>=0;o--){const r=s[o];r["s-hn"]!==R&&r["s-ol"]&&(A(W(r).parentNode,r,W(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Z(r,t)}_.i&=-2},Ae=(e,t,s,o,r,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);r<=i;++r)o[r]&&(l=Y(null,s,r),l&&(o[r].S=l,A(a,l,W(t))))},xe=(e,t,s)=>{for(let o=t;o<=s;++o){const r=e[o];if(r){const i=r.S;$e(r),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,B=(e,t,s=!1)=>{const o=t.S=e.S,r=e.m,i=t.m,l=t.O,a=t.h;let n;a==null?(C=l==="svg"||l!=="foreignObject"&&C,l!=="slot"||M||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Te(t.S.parentElement)),ae(e,t,C),r!==null&&i!==null?((c,u,d,g,b=!1)=>{let h,S,y=0,m=0,p=0,f=0,N=u.length-1,v=u[0],w=u[N],O=g.length-1,T=g[0],j=g[O];const We=d.O==="template"?c.content:c;for(;y<=N&&m<=O;)if(v==null)v=u[++y];else if(w==null)w=u[--N];else if(T==null)T=g[++m];else if(j==null)j=g[--O];else if(J(v,T,b))B(v,T,b),v=u[++y],T=g[++m];else if(J(w,j,b))B(w,j,b),w=u[--N],j=g[--O];else if(J(v,j,b))v.O!=="slot"&&j.O!=="slot"||Z(v.S.parentNode,!1),B(v,j,b),A(We,v.S,w.S.nextSibling),v=u[++y],j=g[--O];else if(J(w,T,b))v.O!=="slot"&&j.O!=="slot"||Z(w.S.parentNode,!1),B(w,T,b),A(We,w.S,v.S),w=u[--N],T=g[++m];else{for(p=-1,f=y;f<=N;++f)if(u[f]&&u[f].$!==null&&u[f].$===T.$){p=f;break}p>=0?(S=u[p],S.O!==T.O?h=Y(u&&u[m],d,p):(B(S,T,b),u[p]=void 0,h=S.S),T=g[++m]):(h=Y(u&&u[m],d,m),T=g[++m]),h&&A(W(v.S).parentNode,h,W(v.S))}y>N?Ae(c,g[O+1]==null?null:g[O+1].S,d,g,m,O):m>O&&xe(u,y,N)})(o,r,t,i,s):i!==null?(e.h!==null&&(o.textContent=""),Ae(o,null,t,i,0,i.length-1)):!s&&r!==null&&xe(r,0,r.length-1),C&&l==="svg"&&(C=!1)):(n=o["s-cr"])?n.parentNode.textContent=a:e.h!==a&&(o.data=a)},E=[],je=e=>{let t,s,o;const r=e.__childNodes||e.childNodes;for(const i of r){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(me(t,l)){let a=E.find((n=>n.k===t));U=!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"],E.push({N:i,k:t})),t["s-sr"]&&E.map((n=>{me(n.k,t["s-sn"])&&(a=E.find((c=>c.k===t)),a&&!n.N&&(n.N=a.N))}))}else E.some((a=>a.k===t))||E.push({k:t})}i.nodeType===1&&je(i)}},$e=e=>{e.v&&e.v.ref&&le.push((()=>e.v.ref(null))),e.m&&e.m.map($e)},ot=(e,t)=>{de.push((()=>e(t)))},A=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:r}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const n=i["s-sn"]=H(i)||"";return{slotNode:se(re(l,"childNodes"),l.tagName,n)[0],slotName:n}})(t);return r&&!o&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},st=(e,t,s=!1)=>{var o,r,i,l,a;const n=e.$hostElement$,c=e.o,u=e.M||z(null,null);var d;const g=(d=t)&&d.O===ye?t:x(null,null,t);if(R=n.tagName,c.C&&(g.v=g.v||{},c.C.forEach((([b,h])=>{g.v[h]=n[b]}))),s&&g.v)for(const b of Object.keys(g.v))n.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(g.v[b]=n[b]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=n.shadowRoot||n,M=!(!(1&c.i)||128&c.i),ie=n["s-cr"],U=!1,B(u,g,s),_.i|=1,q){je(g.S);for(const b of E){const h=b.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,A(h.parentNode,h["s-ol"]=S,h,s)}}for(const b of E){const h=b.k,S=b.N;if(h.nodeType===1&&s&&(h["s-ih"]=(o=h.hidden)!=null&&o),S){const y=S.parentNode;let m=S.nextSibling;if(m&&m.nodeType===1){let p=(r=h["s-ol"])==null?void 0:r.previousSibling;for(;p;){let f=(i=p["s-nr"])!=null?i:null;if(f&&f["s-sn"]===h["s-sn"]&&y===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===h||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){m=f;break}}p=p.previousSibling}}if((!m&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(A(y,h,m,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const p=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=h["s-hn"],p["s-sn"]=h["s-sn"],p["s-sh"]=h["s-sh"],p["s-sr"]=h["s-sr"],p["s-ol"]=h["s-ol"],p["s-ol"]["s-nr"]=p,A(h.parentNode,p,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&pe(g.S),_.i&=-2,E.length=0,!M&&!(1&c.i)&&n["s-cr"]){const b=g.S.__childNodes||g.S.childNodes;for(const h of b)if(h["s-hn"]!==R&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],A(h.parentNode,S,h,s),h.parentNode.removeChild(h)}}}ie=void 0,le.forEach((b=>b())),le.length=0,de.forEach((b=>b())),de.length=0},Ee=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ee(e,e.R);const s=()=>rt(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},rt=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=F(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),r=Ie(r,(()=>F(o,"componentWillRender",void 0,s))),Ie(r,(()=>nt(e,o,t)))},Ie=(e,t)=>it(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const r=e.$hostElement$,i=r["s-rc"];s&&(l=>{const a=l.o,n=l.$hostElement$,c=a.i,u=((d,g)=>{var b,h,S;const y=ve(g),m=G.get(y);if(!k.document)return y;if(d=d.nodeType===11?d:k.document,m)if(typeof m=="string"){let p,f=I.get(d=d.head||d);if(f||I.set(d,f=new Set),!f.has(y)){p=k.document.createElement("style"),p.textContent=m;const N=(b=_._)!=null?b:(function(){var v,w,O;return(O=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?O:void 0})();if(N!=null&&p.setAttribute("nonce",N),!(1&g.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(p,w?.parentNode===d?w:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(m),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=m+v.textContent:d.prepend(p)}else d.append(p);1&g.i&&d.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(y)}}else{let p=I.get(d);if(p||I.set(d,p=new Set),!p.has(y)){const f=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let N;if(m.constructor===f.CSSStyleSheet)N=m;else{N=new f.CSSStyleSheet;for(let v=0;v<m.cssRules.length;v++)N.insertRule(m.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(N):d.adoptedStyleSheets=[...d.adoptedStyleSheets,N],p.add(y)}}return y})(n.shadowRoot?n.shadowRoot:n.getRootNode(),a);10&c&&(n["s-sc"]=u,n.classList.add(u+"-h"))})(e),at(e,t,r,s),i&&(i.map((l=>l())),r["s-rc"]=void 0);{const l=(o=r["s-p"])!=null?o:[],a=()=>lt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},at=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,st(e,t,o)}catch(r){L(r,e.$hostElement$)}return null},lt=e=>{const t=e.$hostElement$,s=t,o=e.R;F(s,"componentDidRender",void 0,t),64&e.i?F(s,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),F(s,"componentDidLoad",void 0,t),e.L(t),o||dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ce(e,!1))),e.i&=-517},dt=()=>{oe((()=>Xe(k,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(r){L(r,o)}},ct=e=>e.classList.add("hydrated"),Pe=(e,t,s,o)=>{const r=$(e);if(!r)return;const i=e,l=r.l.get(t),a=r.i,n=i;s=we(s,o.t[t][0],!!(64&o.i));const c=Number.isNaN(l)&&Number.isNaN(s);if(s!==l&&!c){if(r.l.set(t,s),o.F){const u=o.F[t];u&&u.map((d=>{try{const[[g,b]]=Object.entries(d);(128&a||1&b)&&(n?n[g](s,l,t):r.T.push((()=>{r.D[g](s,l,t)})))}catch(g){L(g,i)}}))}if(2&a){if(n.componentShouldUpdate&&n.componentShouldUpdate(s,l,t)===!1&&!(16&a))return;16&a||ce(r,!1)}}},ut=(e,t,s)=>{var o,r;const i=e.prototype;64&t.i&&1&s&&Ge.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...n){var c;const u=$(this),d=this;d?typeof a=="function"&&a.call(d,...n):(c=u?.H)==null||c.then((g=>{const b=g[l];typeof b=="function"&&b.call(g,...n)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([a,[n]])=>{if(31&n||32&n){const{get:c,set:u}=V(i,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return c?c.apply(this):(d=a,$(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(d){const g=$(this);if(g){if(u)return(32&n?this[a]:g.$hostElement$[a])===void 0&&g.l.get(a)&&(d=g.l.get(a)),u.apply(this,[we(d,n,!!(64&t.i))]),void Pe(this,a,d=32&n?this[a]:g.$hostElement$[a],t);Pe(this,a,d,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(n,c,u){_.jmp((()=>{var d;const g=a.get(n),b=$(this);if(this.hasOwnProperty(g),i.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const p=b?.i;if(b&&p&&!(8&p)&&u!==c){const f=this,N=(d=t.F)==null?void 0:d[n];N?.forEach((v=>{const[[w,O]]=Object.entries(v);f[w]!=null&&(128&p||1&O)&&f[w].call(f,u,c,n)}))}return}const h=l.find((([p])=>p===g)),S=h&&4&h[1][0],y=S&&u===null&&this[g]===void 0;S&&(u=u!==null&&u!=="false");const m=Object.getOwnPropertyDescriptor(i,g);y||u==this[g]||m.get&&!m.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...l.filter((([n,c])=>31&c[0])).map((([n,c])=>{var u;const d=c[1]||n;return a.set(d,n),512&c[0]&&((u=t.C)==null||u.push([n,d])),d}))]))}}return e},gt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=ke(e.F),s.P=e.P,s.U=e.U,s.C=[];const o=e.prototype.connectedCallback,r=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((c=>a.L=c)),i["s-p"]=[],i["s-rc"]=[];const n=a;i.__stencil__getHostRef=()=>n,512&l.i&&Fe(i,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=$(this);if(!i)return;Le(this,i,s.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const l=$(i);if(!l)return;const a=l.o;if(1&l.i)Le(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(n=>{if(!k.document)return;const c=n["s-cr"]=k.document.createComment("");c["s-cn"]=!0,A(n,c,n.firstChild)})(i);{let n=i;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ee(l,l.R=n);break}}a.t&&Object.entries(a.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,n)){const u=i[n];delete i[n],i[n]=u}})),(async(n,c,u)=>{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=ve(u);G.has(S)||((y,m,p)=>{let f=G.get(y);Q&&p?(f=f||new CSSStyleSheet,typeof f=="string"?f=m:f.replaceSync(m)):f=m,G.set(y,f)})(S,h,!!(1&u.i))}const g=c.R,b=()=>ce(c,!0);g&&g["s-rc"]?g["s-rc"].push(b):b()}catch(g){L(g,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(i,l,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const l=$(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}I.has(i)&&I.delete(i),i.shadowRoot&&I.has(i.shadowRoot)&&I.delete(i.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ze.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ut(e,s,3)}catch(o){return L(o),e}},Le=(e,t,s)=>{s&&k.document&&s.map((([o,r,i])=>{const l=ft(k.document,e,o),a=ht(t,i),n=bt(o);_.ael(l,r,a,n),(t.V=t.V||[]).push((()=>_.rel(l,r,a,n)))}))},ht=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(o){L(o,e.$hostElement$)}},ft=(e,t,s)=>8&s?k:t,bt=e=>Ue?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ct(e){return e}function Re(e){var t,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(s=Re(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function Ve(){for(var e,t,s=0,o="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=Re(e))&&(o&&(o+=" "),o+=t);return o}const pt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:s},o)=>Ve("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":s},o)},Symbol.toStringTag,{value:"Module"})),K=99,mt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>K?`${K}+`:e.toString(),maxCount:K,shouldIncludeA11yText:(e,t,s)=>e==="dot"||t!==void 0&&t>K||s},Symbol.toStringTag,{value:"Module"})),vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabItemClassNames:({appearance:e,width:t="intrinsic",active:s},o)=>Ve("gids-tab-item",{"gids-tab-item--full":t==="full","gids-tab-item--active-default":e==="default"&&s,"gids-tab-item--active-primary":e==="primary"&&s,"gids-tab-item--active-bordered":e==="bordered"&&s,"gids-tab-item--active-underlined":e==="underlined"&&s,"gids-tab-item--active-subtle":e==="subtle"&&s,"gids-tab-item--default":e==="default"&&!s,"gids-tab-item--primary":e==="primary"&&!s,"gids-tab-item--bordered":e==="bordered"&&!s,"gids-tab-item--underlined":e==="underlined"&&!s,"gids-tab-item--subtle":e==="subtle"&&!s},o)},Symbol.toStringTag,{value:"Module"})),Be=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:De,shouldIncludeA11yText:yt}=mt,{getGidsBadgeClassNames:St}=pt,kt=({appearance:e,type:t,count:s,accessibleText:o,outline:r,class:i,...l})=>{const a=yt(t,s,Be(o));return x("span",{class:St({appearance:e,type:t,outline:r},i),...l},a&&x("span",{class:"gids-visually-hidden"},Be(o)?o:s),t==="notification"?a?x("span",{"aria-hidden":"true"},De(s,o)):De(s,o):null)},{getGidsTabItemClassNames:wt}=vt,He=gt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const e=wt({appearance:this.appearance,width:this.width,active:this.active}),t=this.hasTrailingIcon,s=this.badgeVisible,o=this.appearance==="primary"&&this.active?"inverse":this.badgeAppearance??"information",r=this.label;return x(ye,{key:"e5da712f4c782e26eec2c448896841999085f426",class:e,onClick:this.handleHostClick},this.hasLeadingIcon?x("slot",{name:"leadingIconTabItem"}):void 0,r&&r!==""?x("span",{class:"gids-tab-item__label"},r&&r!==""?r:void 0,s?x(kt,{appearance:o,type:this.badgeType,count:this.badgeCount}):void 0):void 0,t?x("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);display:flex;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function Me(){typeof customElements<"u"&&["gids-tab-item"].forEach((e=>{e==="gids-tab-item"&&(customElements.get(e)||customElements.define(e,He))}))}Me();const Nt=He,_t=Me;P.GidsTabItem=Nt,P.defineCustomElement=_t,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const m=[];for(let p=0;p<y.length;p++){const f=y[p]["s-nr"]||void 0;f&&f.isConnected&&m.push(f)}return m})(S.childNodes)).forEach((y=>{h===H(y)&&b.push(y)})),d?b.filter((y=>y.nodeType===1)):b}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[s],a&&a.O===r.O&&e.S&&Te(e.S)),i},Te=e=>{_.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const r of s?o.reverse():o)r["s-sh"]!=null&&(x(t,r,s??null),r["s-sh"]=void 0,q=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===R&&s.push(o)}for(let o=s.length-1;o>=0;o--){const r=s[o];r["s-hn"]!==R&&r["s-ol"]&&(x(W(r).parentNode,r,W(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Z(r,t)}_.i&=-2},xe=(e,t,s,o,r,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);r<=i;++r)o[r]&&(l=Y(null,s,r),l&&(o[r].S=l,x(a,l,W(t))))},Ae=(e,t,s)=>{for(let o=t;o<=s;++o){const r=e[o];if(r){const i=r.S;$e(r),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,B=(e,t,s=!1)=>{const o=t.S=e.S,r=e.m,i=t.m,l=t.O,a=t.h;let n;a==null?(C=l==="svg"||l!=="foreignObject"&&C,l!=="slot"||M||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Te(t.S.parentElement)),ae(e,t,C),r!==null&&i!==null?((c,u,d,g,b=!1)=>{let h,S,y=0,m=0,p=0,f=0,N=u.length-1,v=u[0],w=u[N],O=g.length-1,T=g[0],j=g[O];const We=d.O==="template"?c.content:c;for(;y<=N&&m<=O;)if(v==null)v=u[++y];else if(w==null)w=u[--N];else if(T==null)T=g[++m];else if(j==null)j=g[--O];else if(J(v,T,b))B(v,T,b),v=u[++y],T=g[++m];else if(J(w,j,b))B(w,j,b),w=u[--N],j=g[--O];else if(J(v,j,b))v.O!=="slot"&&j.O!=="slot"||Z(v.S.parentNode,!1),B(v,j,b),x(We,v.S,w.S.nextSibling),v=u[++y],j=g[--O];else if(J(w,T,b))v.O!=="slot"&&j.O!=="slot"||Z(w.S.parentNode,!1),B(w,T,b),x(We,w.S,v.S),w=u[--N],T=g[++m];else{for(p=-1,f=y;f<=N;++f)if(u[f]&&u[f].$!==null&&u[f].$===T.$){p=f;break}p>=0?(S=u[p],S.O!==T.O?h=Y(u&&u[m],d,p):(B(S,T,b),u[p]=void 0,h=S.S),T=g[++m]):(h=Y(u&&u[m],d,m),T=g[++m]),h&&x(W(v.S).parentNode,h,W(v.S))}y>N?xe(c,g[O+1]==null?null:g[O+1].S,d,g,m,O):m>O&&Ae(u,y,N)})(o,r,t,i,s):i!==null?(e.h!==null&&(o.textContent=""),xe(o,null,t,i,0,i.length-1)):!s&&r!==null&&Ae(r,0,r.length-1),C&&l==="svg"&&(C=!1)):(n=o["s-cr"])?n.parentNode.textContent=a:e.h!==a&&(o.data=a)},E=[],je=e=>{let t,s,o;const r=e.__childNodes||e.childNodes;for(const i of r){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(me(t,l)){let a=E.find((n=>n.k===t));U=!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"],E.push({N:i,k:t})),t["s-sr"]&&E.map((n=>{me(n.k,t["s-sn"])&&(a=E.find((c=>c.k===t)),a&&!n.N&&(n.N=a.N))}))}else E.some((a=>a.k===t))||E.push({k:t})}i.nodeType===1&&je(i)}},$e=e=>{e.v&&e.v.ref&&le.push((()=>e.v.ref(null))),e.m&&e.m.map($e)},ot=(e,t)=>{de.push((()=>e(t)))},x=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:r}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const n=i["s-sn"]=H(i)||"";return{slotNode:se(re(l,"childNodes"),l.tagName,n)[0],slotName:n}})(t);return r&&!o&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},st=(e,t,s=!1)=>{var o,r,i,l,a;const n=e.$hostElement$,c=e.o,u=e.M||z(null,null);var d;const g=(d=t)&&d.O===ye?t:A(null,null,t);if(R=n.tagName,c.C&&(g.v=g.v||{},c.C.forEach((([b,h])=>{g.v[h]=n[b]}))),s&&g.v)for(const b of Object.keys(g.v))n.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(g.v[b]=n[b]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=n.shadowRoot||n,M=!(!(1&c.i)||128&c.i),ie=n["s-cr"],U=!1,B(u,g,s),_.i|=1,q){je(g.S);for(const b of E){const h=b.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,x(h.parentNode,h["s-ol"]=S,h,s)}}for(const b of E){const h=b.k,S=b.N;if(h.nodeType===1&&s&&(h["s-ih"]=(o=h.hidden)!=null&&o),S){const y=S.parentNode;let m=S.nextSibling;if(m&&m.nodeType===1){let p=(r=h["s-ol"])==null?void 0:r.previousSibling;for(;p;){let f=(i=p["s-nr"])!=null?i:null;if(f&&f["s-sn"]===h["s-sn"]&&y===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===h||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){m=f;break}}p=p.previousSibling}}if((!m&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(x(y,h,m,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const p=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=h["s-hn"],p["s-sn"]=h["s-sn"],p["s-sh"]=h["s-sh"],p["s-sr"]=h["s-sr"],p["s-ol"]=h["s-ol"],p["s-ol"]["s-nr"]=p,x(h.parentNode,p,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&pe(g.S),_.i&=-2,E.length=0,!M&&!(1&c.i)&&n["s-cr"]){const b=g.S.__childNodes||g.S.childNodes;for(const h of b)if(h["s-hn"]!==R&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],x(h.parentNode,S,h,s),h.parentNode.removeChild(h)}}}ie=void 0,le.forEach((b=>b())),le.length=0,de.forEach((b=>b())),de.length=0},Ee=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ee(e,e.R);const s=()=>rt(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},rt=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=F(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),r=Ie(r,(()=>F(o,"componentWillRender",void 0,s))),Ie(r,(()=>nt(e,o,t)))},Ie=(e,t)=>it(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const r=e.$hostElement$,i=r["s-rc"];s&&(l=>{const a=l.o,n=l.$hostElement$,c=a.i,u=((d,g)=>{var b,h,S;const y=ve(g),m=G.get(y);if(!k.document)return y;if(d=d.nodeType===11?d:k.document,m)if(typeof m=="string"){let p,f=I.get(d=d.head||d);if(f||I.set(d,f=new Set),!f.has(y)){p=k.document.createElement("style"),p.textContent=m;const N=(b=_._)!=null?b:(function(){var v,w,O;return(O=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?O:void 0})();if(N!=null&&p.setAttribute("nonce",N),!(1&g.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(p,w?.parentNode===d?w:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(m),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=m+v.textContent:d.prepend(p)}else d.append(p);1&g.i&&d.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(y)}}else{let p=I.get(d);if(p||I.set(d,p=new Set),!p.has(y)){const f=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let N;if(m.constructor===f.CSSStyleSheet)N=m;else{N=new f.CSSStyleSheet;for(let v=0;v<m.cssRules.length;v++)N.insertRule(m.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(N):d.adoptedStyleSheets=[...d.adoptedStyleSheets,N],p.add(y)}}return y})(n.shadowRoot?n.shadowRoot:n.getRootNode(),a);10&c&&(n["s-sc"]=u,n.classList.add(u+"-h"))})(e),at(e,t,r,s),i&&(i.map((l=>l())),r["s-rc"]=void 0);{const l=(o=r["s-p"])!=null?o:[],a=()=>lt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},at=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,st(e,t,o)}catch(r){L(r,e.$hostElement$)}return null},lt=e=>{const t=e.$hostElement$,s=t,o=e.R;F(s,"componentDidRender",void 0,t),64&e.i?F(s,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),F(s,"componentDidLoad",void 0,t),e.L(t),o||dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ce(e,!1))),e.i&=-517},dt=()=>{oe((()=>Xe(k,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(r){L(r,o)}},ct=e=>e.classList.add("hydrated"),Pe=(e,t,s,o)=>{const r=$(e);if(!r)return;const i=e,l=r.l.get(t),a=r.i,n=i;s=we(s,o.t[t][0],!!(64&o.i));const c=Number.isNaN(l)&&Number.isNaN(s);if(s!==l&&!c){if(r.l.set(t,s),o.F){const u=o.F[t];u&&u.map((d=>{try{const[[g,b]]=Object.entries(d);(128&a||1&b)&&(n?n[g](s,l,t):r.T.push((()=>{r.D[g](s,l,t)})))}catch(g){L(g,i)}}))}if(2&a){if(n.componentShouldUpdate&&n.componentShouldUpdate(s,l,t)===!1&&!(16&a))return;16&a||ce(r,!1)}}},ut=(e,t,s)=>{var o,r;const i=e.prototype;64&t.i&&1&s&&Ge.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...n){var c;const u=$(this),d=this;d?typeof a=="function"&&a.call(d,...n):(c=u?.H)==null||c.then((g=>{const b=g[l];typeof b=="function"&&b.call(g,...n)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([a,[n]])=>{if(31&n||32&n){const{get:c,set:u}=V(i,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return c?c.apply(this):(d=a,$(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(d){const g=$(this);if(g){if(u)return(32&n?this[a]:g.$hostElement$[a])===void 0&&g.l.get(a)&&(d=g.l.get(a)),u.apply(this,[we(d,n,!!(64&t.i))]),void Pe(this,a,d=32&n?this[a]:g.$hostElement$[a],t);Pe(this,a,d,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(n,c,u){_.jmp((()=>{var d;const g=a.get(n),b=$(this);if(this.hasOwnProperty(g),i.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const p=b?.i;if(b&&p&&!(8&p)&&u!==c){const f=this,N=(d=t.F)==null?void 0:d[n];N?.forEach((v=>{const[[w,O]]=Object.entries(v);f[w]!=null&&(128&p||1&O)&&f[w].call(f,u,c,n)}))}return}const h=l.find((([p])=>p===g)),S=h&&4&h[1][0],y=S&&u===null&&this[g]===void 0;S&&(u=u!==null&&u!=="false");const m=Object.getOwnPropertyDescriptor(i,g);y||u==this[g]||m.get&&!m.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...l.filter((([n,c])=>31&c[0])).map((([n,c])=>{var u;const d=c[1]||n;return a.set(d,n),512&c[0]&&((u=t.C)==null||u.push([n,d])),d}))]))}}return e},gt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=ke(e.F),s.P=e.P,s.U=e.U,s.C=[];const o=e.prototype.connectedCallback,r=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((c=>a.L=c)),i["s-p"]=[],i["s-rc"]=[];const n=a;i.__stencil__getHostRef=()=>n,512&l.i&&Fe(i,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=$(this);if(!i)return;Le(this,i,s.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const l=$(i);if(!l)return;const a=l.o;if(1&l.i)Le(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(n=>{if(!k.document)return;const c=n["s-cr"]=k.document.createComment("");c["s-cn"]=!0,x(n,c,n.firstChild)})(i);{let n=i;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ee(l,l.R=n);break}}a.t&&Object.entries(a.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,n)){const u=i[n];delete i[n],i[n]=u}})),(async(n,c,u)=>{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=ve(u);G.has(S)||((y,m,p)=>{let f=G.get(y);Q&&p?(f=f||new CSSStyleSheet,typeof f=="string"?f=m:f.replaceSync(m)):f=m,G.set(y,f)})(S,h,!!(1&u.i))}const g=c.R,b=()=>ce(c,!0);g&&g["s-rc"]?g["s-rc"].push(b):b()}catch(g){L(g,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(i,l,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const l=$(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}I.has(i)&&I.delete(i),i.shadowRoot&&I.has(i.shadowRoot)&&I.delete(i.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ze.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ut(e,s,3)}catch(o){return L(o),e}},Le=(e,t,s)=>{s&&k.document&&s.map((([o,r,i])=>{const l=ft(k.document,e,o),a=ht(t,i),n=bt(o);_.ael(l,r,a,n),(t.V=t.V||[]).push((()=>_.rel(l,r,a,n)))}))},ht=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(o){L(o,e.$hostElement$)}},ft=(e,t,s)=>8&s?k:t,bt=e=>Ue?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ct(e){return e}function Re(e){var t,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(s=Re(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function Ve(){for(var e,t,s=0,o="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=Re(e))&&(o&&(o+=" "),o+=t);return o}const pt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:s},o)=>Ve("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":s},o)},Symbol.toStringTag,{value:"Module"})),K=99,mt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>K?`${K}+`:e.toString(),maxCount:K,shouldIncludeA11yText:(e,t,s)=>e==="dot"||t!==void 0&&t>K||s},Symbol.toStringTag,{value:"Module"})),vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabItemClassNames:({appearance:e,width:t="intrinsic",active:s},o)=>Ve("gids-tab-item",{"gids-tab-item--full":t==="full","gids-tab-item--active-default":e==="default"&&s,"gids-tab-item--active-primary":e==="primary"&&s,"gids-tab-item--active-bordered":e==="bordered"&&s,"gids-tab-item--active-underlined":e==="underlined"&&s,"gids-tab-item--active-subtle":e==="subtle"&&s,"gids-tab-item--default":e==="default"&&!s,"gids-tab-item--primary":e==="primary"&&!s,"gids-tab-item--bordered":e==="bordered"&&!s,"gids-tab-item--underlined":e==="underlined"&&!s,"gids-tab-item--subtle":e==="subtle"&&!s},o)},Symbol.toStringTag,{value:"Module"})),Be=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:De,shouldIncludeA11yText:yt}=mt,{getGidsBadgeClassNames:St}=pt,kt=({appearance:e,type:t,count:s,accessibleText:o,outline:r,class:i,...l})=>{const a=yt(t,s,Be(o));return A("span",{class:St({appearance:e,type:t,outline:r},i),...l},a&&A("span",{class:"gids-visually-hidden"},Be(o)?o:s),t==="notification"?a?A("span",{"aria-hidden":"true"},De(s,o)):De(s,o):null)},{getGidsTabItemClassNames:wt}=vt,He=gt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const e=wt({appearance:this.appearance,width:this.width,active:this.active}),t=this.hasTrailingIcon,s=this.badgeVisible,o=this.appearance==="primary"&&this.active?"inverse":this.badgeAppearance??"information",r=this.label;return A(ye,{key:"df04041b0085eba54f6347803d7dd5795cdcd412",class:e,onClick:this.handleHostClick},this.hasLeadingIcon?A("slot",{name:"leadingIconTabItem"}):void 0,r&&r!==""?A("span",{class:"gids-tab-item__label"},r&&r!==""?r:void 0,s?A(kt,{appearance:o,type:this.badgeType,count:this.badgeCount}):void 0):void 0,t?A("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);white-space:nowrap;flex-shrink:0;cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);display:flex;justify-content:center;align-items:center;flex:1;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function Me(){typeof customElements<"u"&&["gids-tab-item"].forEach((e=>{e==="gids-tab-item"&&(customElements.get(e)||customElements.define(e,He))}))}Me();const Nt=He,_t=Me;P.GidsTabItem=Nt,P.defineCustomElement=_t,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Te(e.S)),l},Te=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,z=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(j(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,z=!0),t&&Z(n,t)}_.i&=-2},Ee=(e,t,o,s,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=l;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,j(a,i,W(t))))},je=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Ae(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Te(t.S.parentElement)),re(e,t,C),n!==null&&l!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,O=u.length-1,v=u[0],N=u[O],T=f.length-1,E=f[0],k=f[T];const Me=c.O==="template"?d.content:d;for(;b<=O&&y<=T;)if(v==null)v=u[++b];else if(N==null)N=u[--O];else if(E==null)E=f[++y];else if(k==null)k=f[--T];else if(J(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(J(N,k,m))H(N,k,m),N=u[--O],k=f[--T];else if(J(v,k,m))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),H(v,k,m),j(Me,v.S,N.S.nextSibling),v=u[++b],k=f[--T];else if(J(N,E,m))v.O!=="slot"&&k.O!=="slot"||Z(N.S.parentNode,!1),H(N,E,m),j(Me,N.S,v.S),N=u[--O],E=f[++y];else{for(g=-1,p=b;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&j(W(v.S).parentNode,h,W(v.S))}b>O?Ee(d,f[T+1]==null?null:f[T+1].S,c,f,y,T):y>T&&je(u,b,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,l,0,l.length-1)):!o&&n!==null&&je(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},$=[],ke=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ge(t,i)){let a=$.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],$.push({N:l,k:t})),t["s-sr"]&&$.map((r=>{ge(r.k,t["s-sn"])&&(a=$.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else $.some((a=>a.k===t))||$.push({k:t})}l.nodeType===1&&ke(l)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Qe=(e,t)=>{ae.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=F(l)||"";return{slotNode:se(oe(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Xe=(e,t,o=!1)=>{var s,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||G(null,null);var c;const f=(c=t)&&c.O===ve?t:U(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,V=!(!(1&d.i)||128&d.i),ne=r["s-cr"],q=!1,H(u,f,o),_.i|=1,z){ke(f.S);for(const m of $){const h=m.k;if(!h["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=h,j(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of $){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(l=g["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(j(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,j(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&me(f.S),_.i&=-2,$.length=0,!V&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=w.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],j(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ne=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},$e=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);$e(e,e.R);const o=()=>et(e,t);if(!t)return Ue(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=I(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>I(s,"componentWillRender",void 0,o))),Pe(n,(()=>st(e,s,t)))},Pe=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=B.get(b);if(!w.document)return b;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=y;const O=(m=_._)!=null?m:(function(){var v,N,T;return(T=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?T:void 0})();if(O!=null&&g.setAttribute("nonce",O),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(K){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),Q?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let O;if(y.constructor===p.CSSStyleSheet)O=y;else{O=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)O.insertRule(y.cssRules[v].cssText,v)}Q?c.adoptedStyleSheets.push(O):c.adoptedStyleSheets=[...c.adoptedStyleSheets,O],g.add(b)}}return b})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),ot(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Xe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;I(o,"componentDidRender",void 0,t),64&e.i?I(o,"componentDidUpdate",void 0,t):(e.i|=64,rt(t),I(o,"componentDidLoad",void 0,t),e.L(t),s||lt()),e.A&&(e.A(),e.A=void 0),512&e.i&&te((()=>ce(e,!1))),e.i&=-517},lt=()=>{te((()=>Ze(w,"appload",{detail:{namespace:"gids-core-web"}})))},I=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},rt=e=>e.classList.add("hydrated"),xe=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;o=we(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{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 i=Object.entries((s=t.t)!=null?s:{});i.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=D(l,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(c){const f=A(this);if(f){if(u)return(32&r?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[we(c,r,!!(64&t.i))]),void xe(this,a,c=32&r?this[a]:f.$hostElement$[a],t);xe(this,a,c,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var c;const f=a.get(r),m=A(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,O=(c=t.F)==null?void 0:c[r];O?.forEach((v=>{const[[N,T]]=Object.entries(v);p[N]!=null&&(128&g||1&T)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(l,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.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},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Fe(l,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=A(this);if(!l)return;Re(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=A(l);if(!i)return;const a=i.o;if(1&i.i)Re(l,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){$e(i,i.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);B.has(S)||((b,y,g)=>{let p=B.get(b);K&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,B.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=A(l);i?.V&&(i.V.map((a=>a())),i.V=void 0)}P.has(l)&&P.delete(l),l.shadowRoot&&P.has(l.shadowRoot)&&P.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ge.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=dt(w.document,e,s),a=ct(t,l),r=ut(s);_.ael(i,n,a,r),(t.V=t.V||[]).push((()=>_.rel(i,n,a,r)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?w:t,ut=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabClassNames:({width:e,appearance:t},o)=>ft("gids-tab",{"gids-tab--full":e==="full","gids-tab--item-subtle":t==="subtle","gids-tab--item-underlined":t==="underlined"},o)},Symbol.toStringTag,{value:"Module"})),{getGidsTabClassNames:pt}=ht,De=at(class extends We{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.appearance="default"}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleActiveTabIdChange(e){this.activeTabId=e}componentDidLoad(){this.syncPropsToChildren(),this.hostElement.addEventListener("slotchange",(()=>this.syncPropsToChildren()))}componentDidUpdate(){this.syncPropsToChildren()}syncPropsToChildren(){this.hostElement.querySelectorAll("gids-tab-item").forEach((e=>{e&&(e.appearance=this.appearance,e.width=this.width,e.active=this.isTabActive(e.itemId),e.onPressGidsTabItem=t=>{this.activeTabId=t?.itemId,this.onPressGidsTab&&this.onPressGidsTab(t),this.syncPropsToChildren()})}))}isTabActive(e){return e===this.activeTabId}render(){const e=pt({width:this.width,appearance:this.appearance});return U(ve,{key:"38866821d37edc4393a72972c944a94cf0f277e4",class:e},U("slot",{key:"edfefab3cc002e1935c1a49f84f34d24bcbaa281"}))}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}}static get style(){return".gids-tab{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--gids-gap-150)}.gids-tab--full{display:flex}.gids-tab--item-subtle{gap:0}.gids-tab--item-underlined{gap:0}"}},[260,"gids-tab",{width:[1],appearance:[1],activeTabId:[1,"active-tab-id"],onPressGidsTab:[16]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}]);function He(){typeof customElements<"u"&&["gids-tab"].forEach((e=>{e==="gids-tab"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;x.GidsTab=mt,x.defineCustomElement=gt,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Te(e.S)),l},Te=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,z=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(j(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,z=!0),t&&Z(n,t)}_.i&=-2},Ee=(e,t,o,s,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=l;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,j(a,i,W(t))))},je=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Ae(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Te(t.S.parentElement)),re(e,t,C),n!==null&&l!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,O=u.length-1,v=u[0],N=u[O],T=f.length-1,E=f[0],k=f[T];const Me=c.O==="template"?d.content:d;for(;b<=O&&y<=T;)if(v==null)v=u[++b];else if(N==null)N=u[--O];else if(E==null)E=f[++y];else if(k==null)k=f[--T];else if(J(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(J(N,k,m))H(N,k,m),N=u[--O],k=f[--T];else if(J(v,k,m))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),H(v,k,m),j(Me,v.S,N.S.nextSibling),v=u[++b],k=f[--T];else if(J(N,E,m))v.O!=="slot"&&k.O!=="slot"||Z(N.S.parentNode,!1),H(N,E,m),j(Me,N.S,v.S),N=u[--O],E=f[++y];else{for(g=-1,p=b;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&j(W(v.S).parentNode,h,W(v.S))}b>O?Ee(d,f[T+1]==null?null:f[T+1].S,c,f,y,T):y>T&&je(u,b,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,l,0,l.length-1)):!o&&n!==null&&je(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},$=[],ke=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ge(t,i)){let a=$.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],$.push({N:l,k:t})),t["s-sr"]&&$.map((r=>{ge(r.k,t["s-sn"])&&(a=$.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else $.some((a=>a.k===t))||$.push({k:t})}l.nodeType===1&&ke(l)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Qe=(e,t)=>{ae.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=F(l)||"";return{slotNode:se(oe(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Xe=(e,t,o=!1)=>{var s,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||G(null,null);var c;const f=(c=t)&&c.O===ve?t:U(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,V=!(!(1&d.i)||128&d.i),ne=r["s-cr"],q=!1,H(u,f,o),_.i|=1,z){ke(f.S);for(const m of $){const h=m.k;if(!h["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=h,j(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of $){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(l=g["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(j(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,j(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&me(f.S),_.i&=-2,$.length=0,!V&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=w.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],j(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ne=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},$e=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);$e(e,e.R);const o=()=>et(e,t);if(!t)return Ue(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=I(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>I(s,"componentWillRender",void 0,o))),Pe(n,(()=>st(e,s,t)))},Pe=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=B.get(b);if(!w.document)return b;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=y;const O=(m=_._)!=null?m:(function(){var v,N,T;return(T=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?T:void 0})();if(O!=null&&g.setAttribute("nonce",O),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(K){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),Q?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let O;if(y.constructor===p.CSSStyleSheet)O=y;else{O=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)O.insertRule(y.cssRules[v].cssText,v)}Q?c.adoptedStyleSheets.push(O):c.adoptedStyleSheets=[...c.adoptedStyleSheets,O],g.add(b)}}return b})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),ot(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Xe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;I(o,"componentDidRender",void 0,t),64&e.i?I(o,"componentDidUpdate",void 0,t):(e.i|=64,rt(t),I(o,"componentDidLoad",void 0,t),e.L(t),s||lt()),e.A&&(e.A(),e.A=void 0),512&e.i&&te((()=>ce(e,!1))),e.i&=-517},lt=()=>{te((()=>Ze(w,"appload",{detail:{namespace:"gids-core-web"}})))},I=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},rt=e=>e.classList.add("hydrated"),xe=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;o=we(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{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 i=Object.entries((s=t.t)!=null?s:{});i.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=D(l,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(c){const f=A(this);if(f){if(u)return(32&r?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[we(c,r,!!(64&t.i))]),void xe(this,a,c=32&r?this[a]:f.$hostElement$[a],t);xe(this,a,c,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var c;const f=a.get(r),m=A(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,O=(c=t.F)==null?void 0:c[r];O?.forEach((v=>{const[[N,T]]=Object.entries(v);p[N]!=null&&(128&g||1&T)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(l,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.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},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Fe(l,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=A(this);if(!l)return;Re(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=A(l);if(!i)return;const a=i.o;if(1&i.i)Re(l,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){$e(i,i.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);B.has(S)||((b,y,g)=>{let p=B.get(b);K&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,B.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=A(l);i?.V&&(i.V.map((a=>a())),i.V=void 0)}P.has(l)&&P.delete(l),l.shadowRoot&&P.has(l.shadowRoot)&&P.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ge.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=dt(w.document,e,s),a=ct(t,l),r=ut(s);_.ael(i,n,a,r),(t.V=t.V||[]).push((()=>_.rel(i,n,a,r)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?w:t,ut=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabClassNames:({width:e,appearance:t},o)=>ft("gids-tab",{"gids-tab--full":e==="full","gids-tab--item-subtle":t==="subtle","gids-tab--item-underlined":t==="underlined"},o)},Symbol.toStringTag,{value:"Module"})),{getGidsTabClassNames:pt}=ht,De=at(class extends We{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.appearance="default"}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleActiveTabIdChange(e){this.activeTabId=e}componentDidLoad(){this.syncPropsToChildren(),this.hostElement.addEventListener("slotchange",(()=>this.syncPropsToChildren()))}componentDidUpdate(){this.syncPropsToChildren()}syncPropsToChildren(){this.hostElement.querySelectorAll("gids-tab-item").forEach((e=>{e&&(e.appearance=this.appearance,e.width=this.width,e.active=this.isTabActive(e.itemId),e.onPressGidsTabItem=t=>{this.activeTabId=t?.itemId,this.onPressGidsTab&&this.onPressGidsTab(t),this.syncPropsToChildren()})}))}isTabActive(e){return e===this.activeTabId}render(){const e=pt({width:this.width,appearance:this.appearance});return U(ve,{key:"00bf73ca04f70d14966823cdd4d228c3d05222e3",class:e},U("slot",{key:"9b693f9975560d559d972388fb15ca2407ff5d4c"}))}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}}static get style(){return".gids-tab{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--gids-gap-150);overflow-y:hidden;overflow-x:scroll}.gids-tab--full{display:flex}.gids-tab--item-subtle{gap:0}.gids-tab--item-underlined{gap:0}"}},[260,"gids-tab",{width:[1],appearance:[1],activeTabId:[1,"active-tab-id"],onPressGidsTab:[16]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],activeTabId:[{handleActiveTabIdChange:0}]}]);function He(){typeof customElements<"u"&&["gids-tab"].forEach((e=>{e==="gids-tab"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;x.GidsTab=mt,x.defineCustomElement=gt,Object.defineProperty(x,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:(y=>{const b=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&b.push(g)}return b})(S.childNodes)).forEach((y=>{f===B(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.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"]===P&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==P&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(r=J(null,i,n),r&&(s[n].S=r,$(a,r,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,y=0,b=0,m=0,g=0,w=u.length-1,v=u[0],C=u[w],L=h.length-1,N=h[0],O=h[L];const _t=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(C==null)C=u[--w];else if(N==null)N=h[++b];else if(O==null)O=h[--L];else if(Z(v,N,p))V(v,N,p),v=u[++y],N=h[++b];else if(Z(C,O,p))V(C,O,p),C=u[--w],O=h[--L];else if(Z(v,O,p))v.O!=="slot"&&O.O!=="slot"||X(v.S.parentNode,!1),V(v,O,p),$(_t,v.S,C.S.nextSibling),v=u[++y],O=h[--L];else if(Z(C,N,p))v.O!=="slot"&&O.O!=="slot"||X(C.S.parentNode,!1),V(C,N,p),$(_t,C.S,v.S),C=u[--w],N=h[++b];else{for(m=-1,g=y;g<=w;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){m=g;break}m>=0?(S=u[m],S.O!==N.O?f=J(u&&u[b],d,m):(V(S,N,p),u[m]=void 0,f=S.S),N=h[++b]):(f=J(u&&u[b],d,b),N=h[++b]),f&&$(q(v.S).parentNode,f,q(v.S))}y>w?De(c,h[L+1]==null?null:h[L+1].S,d,h,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[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=A.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"],A.push({N:o,k:t})),t["s-sr"]&&A.map((l=>{ke(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},kt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(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:de(ce(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Ot=(e,t,i=!1)=>{var s,n,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const h=(d=t)&&d.O===Ae?t:_(null,null,t);if(P=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),i&&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,D=!(!(1&c.i)||128&c.i),ue=l["s-cr"],K=!1,V(u,h,i),T.i|=1,Y){He(h.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){b=g;break}}m=m.previousSibling}}if((!b&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==b)&&f!==b){if($(y,f,b,i),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,$(f.parentNode,m,f,i),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),T.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==P&&!f["s-sh"]){if(i&&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=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,i),f.parentNode.removeChild(f)}}}ue=void 0,pe.forEach((p=>p())),pe.length=0,ge.forEach((p=>p())),ge.length=0},We=(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()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>At(e,t);if(!t)return xt(i);queueMicrotask((()=>{i()}))},At=(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 n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Mt(e,s,t)))},Ue=(e,t)=>It(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),It=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Mt=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const y=Oe(h),b=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,b)if(typeof b=="string"){let m,g=I.get(d=d.head||d);if(g||I.set(d,g=new Set),!g.has(y)){m=x.document.createElement("style"),m.textContent=b;const w=(p=T._)!=null?p:(function(){var v,C,L;return(L=(C=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&h.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),C=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&h.i&&d.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===g.CSSStyleSheet)w=b;else{w=new g.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),jt(e,t,n,i),o&&(o.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Pt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},jt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ot(e,t,s)}catch(n){j(n,e.$hostElement$)}return null},Pt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Rt(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||Vt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Ft=e=>{var t;{const i=k(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},Vt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){j(n,s)}},Rt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=k(e);if(!n)return;const o=e,r=n.l.get(t),a=n.i,l=o;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),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](i,r,t):n.T.push((()=>{n.D[h](i,r,t)})))}catch(h){j(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Gt=(e,t,i)=>{var s,n;const o=e.prototype;64&t.i&&1&i&&vt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=k(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=Me(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}=F(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,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=k(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,[je(d,l,!!(64&t.i))]),void Ke(this,a,d=32&l?this[a]:h.$hostElement$[a],t);Ke(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){T.jmp((()=>{var d;const h=a.get(l),p=k(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const m=p?.i;if(p&&m&&!(8&m)&&u!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((v=>{const[[C,L]]=Object.entries(v);g[C]!=null&&(128&m||1&L)&&g[C].call(g,u,c,l)}))}return}const f=r.find((([m])=>m===h)),S=f&&4&f[1][0],y=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const b=Object.getOwnPropertyDescriptor(o,h);y||u==this[h]||b.get&&!b.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...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},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Me(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=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&&bt(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=k(this);if(!o)return;Ye(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const r=k(o);if(!r)return;const a=r.o;if(1&r.i)Ye(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){We(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=Oe(u);W.has(S)||((y,b,m)=>{let g=W.get(y);ne&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=b:g.replaceSync(b)):g=b,W.set(y,g)})(S,f,!!(1&u.i))}const h=c.R,p=()=>Q(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){j(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&T.i)){const r=k(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ct.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Gt(e,i,3)}catch(s){return j(s),e}},Bt=(e,t)=>t,Ye=(e,t,i)=>{i&&x.document&&i.map((([s,n,o])=>{const r=qt(x.document,e,s),a=Dt(t,o),l=Ht(s);T.ael(r,n,a,l),(t.V=t.V||[]).push((()=>T.rel(r,n,a,l)))}))},Dt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},qt=(e,t,i)=>8&i?x:t,Ht=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ks(e){return e}const Je=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Wt=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Xe=(e,t)=>typeof e=="function"?e(t):t?Wt(e):e,Ut=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Je(e);if(t==="required")return Xe(s&&s.length>0?s:"(required)",o);if(t==="optional")return Xe(i&&i.length>0?i:"(optional)",o)},isSentence:Je},Symbol.toStringTag,{value:"Module"})),ee=64,Ze=10,Qe=ee/2-Ze/2,Kt=ee/2,_e=2*Math.PI*Qe,Yt=`0 0 ${ee} ${ee}`,Jt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),r=(_e-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Kt,circumference:_e,radius:Qe,thickness:Ze,viewBox:Yt},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function tt(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=tt(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=tt(e))&&(s&&(s+=" "),s+=t);return s}const Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("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},i,s)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("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"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:ss}=et,is=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":ss(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),st=Symbol("pathSet"),ve="gids-asset-paths-set";class ns extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(st,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),os=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),ls=e=>{const t=os().assetPaths;return t[e]===void 0&&(t[e]=new ns),t[e]};function Se(){return ls("@ganpatiinfo/gids-web-shared")}function rs(){return Se().haveAssetPathsBeenSet()}function it(e){return Se().getAssetFilePath(e)}function as(e){return Se().onAssetPathsSet(e)}let ds=0;const nt=(e,t="gids")=>e||`${t}-${ds++}`,cs=e=>e.type==="hidden",us=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&&!cs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ot=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{lt()})):void 0,lt=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let r=0;r<n;r++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},rt=()=>(ot||(ot=lt()),R),{getIndicatorText:hs}=Ut,{getGidsLabelClassNames:fs}=Xt,ps=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:r,class:a,isLabelSentence:l,...c},u)=>{const d=hs({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:l});return _("div",{class:fs({disabled:e},a),...c},_("label",{htmlFor:o,id:r},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},at={"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"]},dt=new Map;for(const e in at)for(const t of at[e])dt.set(t,e);function gs(e){return dt.get(e)}function ct(e,t="regular",i){const s=gs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ms}=Qt,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:r,...a})=>{const l=nt(o);let c=r;return c===void 0&&rs()&&(c=ct(e,i,it)),_("svg",{ref:u=>{c===void 0&&as((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",ct(h,p,it)),d.appendChild(f)})(u,e,i)}))},width:"16",height:"16",class:ms({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&_("title",{id:l},s||e),c!==void 0?_("use",{href:c}):null)},{getGidsDismissButtonClassNames:_s}=es,bs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...r})=>_("button",{class:_s({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...r},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:vs}=ts,ys=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"57aae828a0cdd8ac1044cdafab34dc0f76731814"},_("div",{key:"3455d9ff33bf012679e0c25869cbdcf43ea40742",class:vs()},_("div",{key:"ca6948c95470527551c40ef14ae5af5e40a0e301",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"caac19c05af1b41de4e6301c3c7060bbb995cb5c",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"9151fef3965568bd2f9e7fc9971b56791b681de6",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"b2e41f4ccb83f9c3b2f310250a28f68758689649",class:"gids-field__control"},_("slot",{key:"faad5db257df90576e73fb7383c20ecc796c3b43",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"e4bc41ccde6d8713e599d6595aceeb7d60a833ed",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ut(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ys))}))}ut();const{getGidsSpinnerControlClassNames:Ss}=Zt,{calculateStrokeDasharray:xs,thickness:ht,radius:ft,centerPosition:se,viewBox:Cs}=Jt,ws=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:xs(i,s||0),strokeDashoffset:"0"}),_("svg",{class:Ss({size:e,indeterminate:t,value:i}),viewBox:Cs,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ft,"stroke-width":ht}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ft,"stroke-width":ht}))},Ts=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||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(us(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 _(Bt,{key:"3364c49f298dc7205bfd1b173f7eeaf2f89c7c9a"},_("slot",{key:"c997142ff339b65f0631afeb7996bc50f921c82a",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"ef61a3c8a1fb0e796cc7a783cc87054c8186af06",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"5c9b81e5ac0367f31d303f0310b6f2e65b085223",name:"leadingAccessory"}),_("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}),_("slot",{key:"c5e15100d71349d57f3d0af1f8e5ab6b6808b350",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"50ee400d7731b6ae7de40cb918ee2f3887fa2857",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"62e4f88e0e73611a4ccd2952b2d907ae430ad1de",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"7594ffc84d2fecca11158d91eaabcf023586778a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"24fd3813e2aa8d5139da021064c62333bbec9592",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(ws,{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 pt(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ts))}))}pt();const{formatCharCount:Es}=et,{inputToGidsFieldStatus:Ls}=is,gt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Lt(this,"gidsTextFieldClear"),this.#t=nt(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Ft(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"1afb001542da72cbc0c7d9cef733bd7b9005fc1b",disabled:this.disabled,count:Es(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ls(this.status)},_(ps,{key:"6c1ab66cefcc2b75793c41c970adcdc3b5206c0f",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"413c676b85ea6332b03e94901c2645cd4846aa76",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"0d9f234f1fb10bb1c7e607a2f6a787a29d7e47de",name:"leadingIcon"}),_("slot",{key:"5a2d8b98924b9c76874c1967e0a532ae023dfbc0",name:"leadingAccessory"}),s&&_(bs,{key:"27145c73ac38c854be2ca8c1bf7406afe4e965ed",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"6b85b3a79ee36ec7d76514adfeeb7b7121f5ca81",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function mt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gt);break;case"gids-field":customElements.get(e)||ut();break;case"gids-input":customElements.get(e)||pt()}}))}mt();const Ns=gt,$s=mt;M.GidsTextField=Ns,M.defineCustomElement=$s,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const b=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&b.push(g)}return b})(S.childNodes)).forEach((y=>{f===B(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.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"]===P&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==P&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(r=J(null,i,n),r&&(s[n].S=r,$(a,r,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,y=0,b=0,m=0,g=0,w=u.length-1,v=u[0],C=u[w],L=h.length-1,N=h[0],O=h[L];const _t=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(C==null)C=u[--w];else if(N==null)N=h[++b];else if(O==null)O=h[--L];else if(Z(v,N,p))V(v,N,p),v=u[++y],N=h[++b];else if(Z(C,O,p))V(C,O,p),C=u[--w],O=h[--L];else if(Z(v,O,p))v.O!=="slot"&&O.O!=="slot"||X(v.S.parentNode,!1),V(v,O,p),$(_t,v.S,C.S.nextSibling),v=u[++y],O=h[--L];else if(Z(C,N,p))v.O!=="slot"&&O.O!=="slot"||X(C.S.parentNode,!1),V(C,N,p),$(_t,C.S,v.S),C=u[--w],N=h[++b];else{for(m=-1,g=y;g<=w;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){m=g;break}m>=0?(S=u[m],S.O!==N.O?f=J(u&&u[b],d,m):(V(S,N,p),u[m]=void 0,f=S.S),N=h[++b]):(f=J(u&&u[b],d,b),N=h[++b]),f&&$(q(v.S).parentNode,f,q(v.S))}y>w?De(c,h[L+1]==null?null:h[L+1].S,d,h,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[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=A.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"],A.push({N:o,k:t})),t["s-sr"]&&A.map((l=>{ke(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},kt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(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:de(ce(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Ot=(e,t,i=!1)=>{var s,n,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const h=(d=t)&&d.O===Ae?t:_(null,null,t);if(P=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),i&&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,D=!(!(1&c.i)||128&c.i),ue=l["s-cr"],K=!1,V(u,h,i),T.i|=1,Y){He(h.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){b=g;break}}m=m.previousSibling}}if((!b&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==b)&&f!==b){if($(y,f,b,i),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,$(f.parentNode,m,f,i),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),T.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==P&&!f["s-sh"]){if(i&&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=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,i),f.parentNode.removeChild(f)}}}ue=void 0,pe.forEach((p=>p())),pe.length=0,ge.forEach((p=>p())),ge.length=0},We=(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()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>At(e,t);if(!t)return xt(i);queueMicrotask((()=>{i()}))},At=(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 n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Mt(e,s,t)))},Ue=(e,t)=>It(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),It=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Mt=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const y=Oe(h),b=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,b)if(typeof b=="string"){let m,g=I.get(d=d.head||d);if(g||I.set(d,g=new Set),!g.has(y)){m=x.document.createElement("style"),m.textContent=b;const w=(p=T._)!=null?p:(function(){var v,C,L;return(L=(C=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&h.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),C=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&h.i&&d.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===g.CSSStyleSheet)w=b;else{w=new g.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),jt(e,t,n,i),o&&(o.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Pt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},jt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ot(e,t,s)}catch(n){j(n,e.$hostElement$)}return null},Pt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Rt(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||Vt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Ft=e=>{var t;{const i=k(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},Vt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){j(n,s)}},Rt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=k(e);if(!n)return;const o=e,r=n.l.get(t),a=n.i,l=o;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),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](i,r,t):n.T.push((()=>{n.D[h](i,r,t)})))}catch(h){j(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Gt=(e,t,i)=>{var s,n;const o=e.prototype;64&t.i&&1&i&&vt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=k(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=Me(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}=F(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,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=k(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,[je(d,l,!!(64&t.i))]),void Ke(this,a,d=32&l?this[a]:h.$hostElement$[a],t);Ke(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){T.jmp((()=>{var d;const h=a.get(l),p=k(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const m=p?.i;if(p&&m&&!(8&m)&&u!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((v=>{const[[C,L]]=Object.entries(v);g[C]!=null&&(128&m||1&L)&&g[C].call(g,u,c,l)}))}return}const f=r.find((([m])=>m===h)),S=f&&4&f[1][0],y=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const b=Object.getOwnPropertyDescriptor(o,h);y||u==this[h]||b.get&&!b.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...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},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Me(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=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&&bt(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=k(this);if(!o)return;Ye(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const r=k(o);if(!r)return;const a=r.o;if(1&r.i)Ye(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){We(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=Oe(u);W.has(S)||((y,b,m)=>{let g=W.get(y);ne&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=b:g.replaceSync(b)):g=b,W.set(y,g)})(S,f,!!(1&u.i))}const h=c.R,p=()=>Q(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){j(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&T.i)){const r=k(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ct.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Gt(e,i,3)}catch(s){return j(s),e}},Bt=(e,t)=>t,Ye=(e,t,i)=>{i&&x.document&&i.map((([s,n,o])=>{const r=qt(x.document,e,s),a=Dt(t,o),l=Ht(s);T.ael(r,n,a,l),(t.V=t.V||[]).push((()=>T.rel(r,n,a,l)))}))},Dt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},qt=(e,t,i)=>8&i?x:t,Ht=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ks(e){return e}const Je=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Wt=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Xe=(e,t)=>typeof e=="function"?e(t):t?Wt(e):e,Ut=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Je(e);if(t==="required")return Xe(s&&s.length>0?s:"(required)",o);if(t==="optional")return Xe(i&&i.length>0?i:"(optional)",o)},isSentence:Je},Symbol.toStringTag,{value:"Module"})),ee=64,Ze=10,Qe=ee/2-Ze/2,Kt=ee/2,_e=2*Math.PI*Qe,Yt=`0 0 ${ee} ${ee}`,Jt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),r=(_e-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Kt,circumference:_e,radius:Qe,thickness:Ze,viewBox:Yt},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function tt(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=tt(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=tt(e))&&(s&&(s+=" "),s+=t);return s}const Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("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},i,s)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("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"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:ss}=et,is=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":ss(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),st=Symbol("pathSet"),ve="gids-asset-paths-set";class ns extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(st,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),os=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),ls=e=>{const t=os().assetPaths;return t[e]===void 0&&(t[e]=new ns),t[e]};function Se(){return ls("@ganpatiinfo/gids-web-shared")}function rs(){return Se().haveAssetPathsBeenSet()}function it(e){return Se().getAssetFilePath(e)}function as(e){return Se().onAssetPathsSet(e)}let ds=0;const nt=(e,t="gids")=>e||`${t}-${ds++}`,cs=e=>e.type==="hidden",us=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&&!cs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ot=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{lt()})):void 0,lt=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let r=0;r<n;r++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},rt=()=>(ot||(ot=lt()),R),{getIndicatorText:hs}=Ut,{getGidsLabelClassNames:fs}=Xt,ps=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:r,class:a,isLabelSentence:l,...c},u)=>{const d=hs({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:l});return _("div",{class:fs({disabled:e},a),...c},_("label",{htmlFor:o,id:r},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},at={"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"]},dt=new Map;for(const e in at)for(const t of at[e])dt.set(t,e);function gs(e){return dt.get(e)}function ct(e,t="regular",i){const s=gs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ms}=Qt,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:r,...a})=>{const l=nt(o);let c=r;return c===void 0&&rs()&&(c=ct(e,i,it)),_("svg",{ref:u=>{c===void 0&&as((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",ct(h,p,it)),d.appendChild(f)})(u,e,i)}))},width:"16",height:"16",class:ms({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&_("title",{id:l},s||e),c!==void 0?_("use",{href:c}):null)},{getGidsDismissButtonClassNames:_s}=es,bs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...r})=>_("button",{class:_s({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...r},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:vs}=ts,ys=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"b4c75ae8db2c6a526bca9abbdefa794697f79d6e"},_("div",{key:"7f1d56122271224e78b84482bbd1aa31dee0d6b5",class:vs()},_("div",{key:"21986a7bc03029da85eeef02af059b175c208bb9",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"2c3e7e5e7ebc8b5b30157e755422267cffeb9333",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"db267881b537d312154b4b7b51c0816595b5c064",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"34ee7450b5bce2c5ae58d151a6503f1079fdfc7e",class:"gids-field__control"},_("slot",{key:"d5a7c20818abf658fd1651d90bc7fe552ff4366e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"2859a75cb1f15eb4b998a8c9d0642b3a260967bc",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ut(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ys))}))}ut();const{getGidsSpinnerControlClassNames:Ss}=Zt,{calculateStrokeDasharray:xs,thickness:ht,radius:ft,centerPosition:se,viewBox:Cs}=Jt,ws=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:xs(i,s||0),strokeDashoffset:"0"}),_("svg",{class:Ss({size:e,indeterminate:t,value:i}),viewBox:Cs,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ft,"stroke-width":ht}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ft,"stroke-width":ht}))},Ts=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||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(us(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 _(Bt,{key:"afdbc2c51c4a1f688534c76757ef7cdfb27d1cd0"},_("slot",{key:"83781fe23a5648cdd8345326e88e235c03cf60bc",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"b457d5343b714096c80ffebce6abd9e62fc57664",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"e156f0f311bd7b662eb56c07c101b673c0945d14",name:"leadingAccessory"}),_("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}),_("slot",{key:"fafb91d6e965e33b40577a10475e9a69a83e7a98",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"3d673d4b05b850c165817615145e629f39b5859c",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"ee39bb2e061ace41b7192f0fd2eae7edb35918e2",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"5d2faed6c95395d82a2ae1e72483fd15599f14b6",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"106200c1b025e3ee1467ffed2f246962933d42d0",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(ws,{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 pt(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ts))}))}pt();const{formatCharCount:Es}=et,{inputToGidsFieldStatus:Ls}=is,gt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Lt(this,"gidsTextFieldClear"),this.#t=nt(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Ft(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"31fd12bcfe97625c517a2e85734e01dbbd5b59b5",disabled:this.disabled,count:Es(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ls(this.status)},_(ps,{key:"5dd9b4158a9262f88364d07788791f10a037d906",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"45980a5df8d74d027f7d15fb3f2f1dffcfe35ea3",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"ca0f5b7206e450dc4223013a3bfa15922c3ea7ee",name:"leadingIcon"}),_("slot",{key:"2f9809ef064300e999f60fd34305232e2cdb5c97",name:"leadingAccessory"}),s&&_(bs,{key:"adcb2d1e5c9eedd94bb6d276333cdb30ff31147c",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"5633a1c325c3442044b31e925cda6654764fbb3f",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function mt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gt);break;case"gids-field":customElements.get(e)||ut();break;case"gids-input":customElements.get(e)||pt()}}))}mt();const Ns=gt,$s=mt;M.GidsTextField=Ns,M.defineCustomElement=$s,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));