@ganpatiinfo/gids-core-web 8.2.0 → 10.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 (231) hide show
  1. package/dist/css/index.css +1919 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +332 -0
  4. package/dist/gids-activity-gauge.d.ts +11 -0
  5. package/dist/gids-activity-gauge.js +1 -0
  6. package/dist/gids-bar-chart.d.ts +11 -0
  7. package/dist/gids-bar-chart.js +1 -0
  8. package/dist/gids-calendar-header-panel.d.ts +11 -0
  9. package/dist/gids-calendar-header-panel.js +1 -0
  10. package/dist/gids-calendar-month-list.d.ts +11 -0
  11. package/dist/gids-calendar-month-list.js +1 -0
  12. package/dist/gids-calendar-year-list.d.ts +11 -0
  13. package/dist/gids-calendar-year-list.js +1 -0
  14. package/dist/gids-calendar.d.ts +11 -0
  15. package/dist/gids-calendar.js +1 -0
  16. package/dist/gids-chart-legend-item.d.ts +11 -0
  17. package/dist/gids-chart-legend-item.js +1 -0
  18. package/dist/gids-chart-legend.d.ts +11 -0
  19. package/dist/gids-chart-legend.js +1 -0
  20. package/dist/gids-chart.d.ts +11 -0
  21. package/dist/gids-chart.js +1 -0
  22. package/dist/gids-chevron-button.d.ts +11 -0
  23. package/dist/gids-chevron-button.js +1 -0
  24. package/dist/gids-dot.d.ts +11 -0
  25. package/dist/gids-dot.js +1 -0
  26. package/dist/gids-dropdown-field.d.ts +11 -0
  27. package/dist/gids-dropdown-field.js +1 -0
  28. package/dist/gids-dropdown-picker.d.ts +11 -0
  29. package/dist/gids-dropdown-picker.js +1 -0
  30. package/dist/gids-dropdown.d.ts +11 -0
  31. package/dist/gids-dropdown.js +1 -0
  32. package/dist/gids-field.d.ts +1 -1
  33. package/dist/gids-field.js +1 -1
  34. package/dist/gids-icon.d.ts +1 -1
  35. package/dist/gids-icon.js +1 -1
  36. package/dist/gids-input.d.ts +1 -1
  37. package/dist/gids-input.js +1 -1
  38. package/dist/gids-level-gauge.d.ts +11 -0
  39. package/dist/gids-level-gauge.js +1 -0
  40. package/dist/gids-line-chart.d.ts +11 -0
  41. package/dist/gids-line-chart.js +1 -0
  42. package/dist/gids-notification.d.ts +1 -1
  43. package/dist/gids-notification.js +1 -1
  44. package/dist/gids-overflow-container.d.ts +1 -1
  45. package/dist/gids-overflow-container.js +1 -1
  46. package/dist/gids-overlay-provider.d.ts +1 -1
  47. package/dist/gids-overlay-provider.js +1 -1
  48. package/dist/gids-password-field.d.ts +1 -1
  49. package/dist/gids-password-field.js +1 -1
  50. package/dist/gids-pie-chart.d.ts +11 -0
  51. package/dist/gids-pie-chart.js +1 -0
  52. package/dist/gids-popover.d.ts +11 -0
  53. package/dist/gids-popover.js +1 -0
  54. package/dist/gids-progress-circle.d.ts +11 -0
  55. package/dist/gids-progress-circle.js +1 -0
  56. package/dist/gids-scrim.d.ts +1 -1
  57. package/dist/gids-scrim.js +1 -1
  58. package/dist/gids-snackbar.d.ts +1 -1
  59. package/dist/gids-snackbar.js +1 -1
  60. package/dist/gids-text-field.d.ts +1 -1
  61. package/dist/gids-text-field.js +1 -1
  62. package/dist/gids-toggle-button.d.ts +1 -1
  63. package/dist/gids-toggle-button.js +1 -1
  64. package/dist/gids-tooltip.d.ts +11 -0
  65. package/dist/gids-tooltip.js +1 -0
  66. package/dist/index.js +1 -1
  67. package/dist/p-9_mrQ7ac.js +1 -0
  68. package/dist/p-B81J5HCC.js +1 -0
  69. package/dist/p-B8kX8Vqv.js +1 -0
  70. package/dist/p-BFHWXEeg.js +1 -0
  71. package/dist/p-B_HaXpJZ.js +1 -0
  72. package/dist/p-BaO-kEWS.js +1 -0
  73. package/dist/p-BiPAgxAQ.js +1 -0
  74. package/dist/p-Bmb-HiXg.js +1 -0
  75. package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
  76. package/dist/{p-DjvDBWCb.js → p-BvYnawkJ.js} +1 -1
  77. package/dist/p-CIP0xyhD.js +1 -0
  78. package/dist/p-CJzporPT.js +1 -0
  79. package/dist/p-CPSHPtGE.js +1 -0
  80. package/dist/p-CRngHsR7.js +1 -0
  81. package/dist/p-Ct3Ixgvf.js +1 -0
  82. package/dist/p-D93TNeOt.js +1 -0
  83. package/dist/p-DKsrt7dx.js +1 -0
  84. package/dist/p-DZWWuJac.js +1 -0
  85. package/dist/p-D_wcwB7E.js +1 -0
  86. package/dist/p-Dehss-X0.js +1 -0
  87. package/dist/{p-Bg3lw2Ae.js → p-DfFqFdmS.js} +1 -1
  88. package/dist/p-KxRqlvSh.js +1 -0
  89. package/dist/p-MgTlrSP_.js +1 -0
  90. package/dist/p-a3JfEYJp.js +1 -0
  91. package/dist/p-h6alWGT8.js +1 -0
  92. package/dist/p-quZYWCxU.js +1 -0
  93. package/dist/p-tyIgTtUC.js +1 -0
  94. package/dist/p-uqSjmNkw.js +1 -0
  95. package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
  96. package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
  97. package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
  98. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
  99. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
  100. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
  101. package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
  102. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
  103. package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
  104. package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
  105. package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
  106. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
  107. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
  108. package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
  109. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
  110. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
  111. package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
  112. package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
  113. package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
  114. package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
  115. package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
  116. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
  117. package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
  118. package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
  119. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
  120. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
  121. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
  122. package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
  123. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
  124. package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
  125. package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
  126. package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
  127. package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
  128. package/dist/types/components.d.ts +1420 -64
  129. package/dist/types/index.d.ts +2 -0
  130. package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
  131. package/dist-bundled/es/gids-activity-gauge.js +6 -0
  132. package/dist-bundled/es/gids-bar-chart.js +6 -0
  133. package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
  134. package/dist-bundled/es/gids-calendar-month-list.js +6 -0
  135. package/dist-bundled/es/gids-calendar-year-list.js +6 -0
  136. package/dist-bundled/es/gids-calendar.js +153 -0
  137. package/dist-bundled/es/gids-chart-legend-item.js +6 -0
  138. package/dist-bundled/es/gids-chart-legend.js +6 -0
  139. package/dist-bundled/es/gids-chart.js +108 -0
  140. package/dist-bundled/es/gids-chevron-button.js +56 -0
  141. package/dist-bundled/es/gids-dot.js +6 -0
  142. package/dist-bundled/es/gids-dropdown-field.js +88 -0
  143. package/dist-bundled/es/gids-dropdown-picker.js +6 -0
  144. package/dist-bundled/es/gids-dropdown.js +6 -0
  145. package/dist-bundled/es/gids-field.js +1 -1
  146. package/dist-bundled/es/gids-icon.js +4 -30
  147. package/dist-bundled/es/gids-input.js +4 -4
  148. package/dist-bundled/es/gids-level-gauge.js +6 -0
  149. package/dist-bundled/es/gids-line-chart.js +6 -0
  150. package/dist-bundled/es/gids-notification.js +1 -1
  151. package/dist-bundled/es/gids-overflow-container.js +9 -9
  152. package/dist-bundled/es/gids-overlay-provider.js +17 -17
  153. package/dist-bundled/es/gids-password-field.js +21 -20
  154. package/dist-bundled/es/gids-pie-chart.js +6 -0
  155. package/dist-bundled/es/gids-popover.js +110 -0
  156. package/dist-bundled/es/gids-progress-circle.js +6 -0
  157. package/dist-bundled/es/gids-scrim.js +7 -7
  158. package/dist-bundled/es/gids-snackbar.js +1 -1
  159. package/dist-bundled/es/gids-text-field.js +14 -13
  160. package/dist-bundled/es/gids-toggle-button.js +8 -8
  161. package/dist-bundled/es/gids-tooltip.js +66 -0
  162. package/dist-bundled/es/index.js +33 -19
  163. package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
  164. package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
  165. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
  166. package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
  167. package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
  168. package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
  169. package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
  170. package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
  171. package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-BnL97lOW-BO0p4EdC.js} +20 -13
  172. package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-BvYnawkJ-DohV9UNG.js} +10 -10
  173. package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
  174. package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
  175. package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
  176. package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
  177. package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
  178. package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
  179. package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
  180. package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
  181. package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
  182. package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
  183. package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
  184. package/dist-bundled/es/p-KxRqlvSh-JOFDmT0B.js +25 -0
  185. package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
  186. package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
  187. package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
  188. package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
  189. package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
  190. package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
  191. package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
  192. package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
  193. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
  194. package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
  195. package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
  196. package/dist-bundled/umd/gids-calendar.umd.js +5 -0
  197. package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
  198. package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
  199. package/dist-bundled/umd/gids-chart.umd.js +13 -0
  200. package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
  201. package/dist-bundled/umd/gids-dot.umd.js +5 -0
  202. package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
  203. package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
  204. package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
  205. package/dist-bundled/umd/gids-field.umd.js +2 -2
  206. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  207. package/dist-bundled/umd/gids-input.umd.js +2 -2
  208. package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
  209. package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
  210. package/dist-bundled/umd/gids-notification.umd.js +2 -2
  211. package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
  212. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  213. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  214. package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
  215. package/dist-bundled/umd/gids-popover.umd.js +5 -0
  216. package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
  217. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  218. package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
  219. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  220. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  221. package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
  222. package/dist-bundled/umd/index.umd.js +2 -2
  223. package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
  224. package/package.json +422 -262
  225. package/dist/p-CWdkmFbc.js +0 -1
  226. package/dist/p-DijVkS9b.js +0 -1
  227. package/dist/p-DybsMR13.js +0 -1
  228. package/dist/p-ibikYq-w.js +0 -1
  229. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
  230. package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +0 -35
  231. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
@@ -1,7 +1,15 @@
1
- (function(w,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(w=typeof globalThis<"u"?globalThis:w||self,B(w.gidsCoreWeb={}))})(this,(function(w){"use strict";function B(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var D,Xt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],a=B(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ve=(e,t)=>t in e,V=(e,t)=>(0,console.error)(e,t),Z=new Map,ze="http://www.w3.org/1999/xlink",C=typeof window<"u"?window:{},R=C.HTMLElement||class{},x={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},de=(()=>{try{return!!C.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ue=!!de&&!!C.document&&Object.getOwnPropertyDescriptor(C.document.adoptedStyleSheets,"length").writable,he=!1,He=[],De=[],Kt=(e,t)=>s=>{e.push(s),he||(he=!0,4&x.i?me(fe):x.raf(fe))},Qe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){V(s)}e.length=0},fe=()=>{Qe(He),Qe(De),(he=He.length>0)&&x.raf(fe)},me=e=>Promise.resolve(void 0).then(e),Zt=Kt(De),Jt=e=>{const t=new URL(e,x.u);return t.origin!==C.location.origin?t.href:t.pathname},es=e=>x.u=e;function ts(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(ue?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var We=e=>{const t=ge(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&pe(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!ss(n,Q(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ge(n,"childNodes").length&&We(n)}};function pe(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||Q(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...pe(n.childNodes,t,s)]}return o}var ss=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)Q(i)!==t||!s&&i["s-sr"]||n.push(i);return n},Ue=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ge(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 be,G,F=new WeakMap,Ye=e=>"sc-"+e.p,_e=e=>(e=typeof e)=="object"||e==="function",c=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,l=!1;const r=[],d=u=>{for(let m=0;m<u.length;m++)n=u[m],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!_e(n))&&(n=String(n)),a&&l?r[r.length-1].h+=n:r.push(a?J(null,n):n),l=a)};if(d(s),t){t.key&&(i=t.key),t.name&&(o=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter((m=>u[m])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,ns);const h=J(e,null);return h.v=t,r.length>0&&(h.m=r),h.$=i,h.j=o,h},J=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ve={},ns={forEach:(e,t)=>e.map(Xe).forEach(t),map:(e,t)=>e.map(Xe).map(t).map(is)},Xe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),is=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),c(e.vtag,s,...e.vchildren||[])}const t=J(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 i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Ze=(e,t)=>e==null||_e(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ee=(e,t)=>{const s=e;return{emit:n=>Je(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Je=(e,t,s)=>{const n=x.ce(t,s);return e.dispatchEvent(n),n},et=(e,t,s,n,i,o)=>{if(s===n)return;let a=Ve(e,t),l=t.toLowerCase();if(t==="class"){const r=e.classList,d=tt(s);let h=tt(n);r.remove(...d.filter((u=>u&&!h.includes(u)))),r.add(...h.filter((u=>u&&!d.includes(u))))}else if(t==="style"){for(const r in s)n&&n[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in n)s&&n[r]===s[r]||(r.includes("-")?e.style.setProperty(r,n[r]):e.style[r]=n[r])}else if(t!=="key"){if(t==="ref")n&&rs(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const h=P(e);if(h&&h.o&&h.o.t){const u=h.o.t[r];u&&u[1]&&(d=u[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=n}catch{}return}{const r=_e(n);if((a||r&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const h=n??"";t==="list"?a=!1:s!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ze,t):e.removeAttribute(t)):(!a||4&o||i)&&!r&&e.nodeType===1&&(n=n===!0?"":n,d?e.setAttributeNS(ze,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Ve(C,l)?l.slice(2):l[2]+t.slice(3),s||n){const r=t.endsWith(st);t=t.replace(as,""),s&&x.rel(e,t,s,r),n&&x.ael(e,t,n,r)}}},os=/\s/,tt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(os):[]),st="Capture",as=new RegExp(st+"$"),ye=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of nt(Object.keys(i)))a in o||et(n,a,i[a],void 0,s,t.i);for(const a of nt(Object.keys(o)))et(n,a,i[a],o[a],s,t.i)};function nt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,te=!1,se=!1,E=!1,Se=[],we=[],ne=(e,t,s)=>{var n;const i=t.m[s];let o,a,l,r=0;if(W||(se=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=C.document.createTextNode(i.h);else if(1&i.i)o=i.S=C.document.createTextNode(""),ye(null,i,E);else{if(E||(E=i.O==="svg"),!C.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=C.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&i.i?"slot-fb":i.O),E&&i.O==="foreignObject"&&(E=!1),ye(null,i,E),i.m){const d=i.O==="template"?o.content:o;for(r=0;r<i.m.length;++r)a=ne(e,i,r),a&&d.appendChild(a)}i.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=G,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=be,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=u=>(function(m){const p=[],f=this["s-sn"];m?.flatten&&console.error(`
1
+ (function(C,ge){typeof exports=="object"&&typeof module<"u"?ge(exports):typeof define=="function"&&define.amd?define(["exports"],ge):(C=typeof globalThis<"u"?globalThis:C||self,ge(C.gidsCoreWeb={}))})(this,(function(C){"use strict";var Q;function ge(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const a=Object.getOwnPropertyDescriptor(e,t);if(a&&(!i||a.get))return a;e=Object.getPrototypeOf(e)}}var Ce,ga=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[a]])=>{if(31&a||32&a){const n=e[s],o=ge(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(e,s,{get(){return o.get.call(this)},set(l){o.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):n!==void 0&&(e[s]=n)}}))},B=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ti=(e,t)=>t in e,pe=(e,t)=>(0,console.error)(e,t),Re=new Map,ii="http://www.w3.org/1999/xlink",pa=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],L=typeof window<"u"?window:{},E=L.HTMLElement||class{},I={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},nt=(()=>{try{return!!L.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),rt=!!nt&&!!L.document&&Object.getOwnPropertyDescriptor(L.document.adoptedStyleSheets,"length").writable,ot=!1,si=[],ai=[],ua=(e,t)=>i=>{e.push(i),ot||(ot=!0,4&I.i?dt(lt):I.raf(lt))},ni=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){pe(i)}e.length=0},lt=()=>{ni(si),ni(ai),(ot=si.length>0)&&I.raf(lt)},dt=e=>Promise.resolve(void 0).then(e),ma=ua(ai),fa=e=>{const t=new URL(e,I.u);return t.origin!==L.location.origin?t.href:t.pathname},ba=e=>I.u=e;function va(){const e=this.attachShadow({mode:"open"});Ce===void 0&&(Ce=null),Ce&&(rt?e.adoptedStyleSheets.push(Ce):e.adoptedStyleSheets=[...e.adoptedStyleSheets,Ce])}var ri=e=>{const t=ht(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ct(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ya(s,ke(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ht(s,"childNodes").length&&ri(s)}};function ct(e,t,i){let s,a=0,n=[];for(;a<e.length;a++){if(s=e[a],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||ke(s)===i)&&(n.push(s),i!==void 0))return n;n=[...n,...ct(s.childNodes,t,i)]}return n}var ya=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let a=e;for(;a=a.nextSibling;)ke(a)!==t||!i&&a["s-sr"]||s.push(a);return s},oi=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ke=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ht(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var gt,ie,K=new WeakMap,li=e=>"sc-"+e.p,pt=e=>(e=typeof e)=="object"||e==="function",r=(e,t,...i)=>{let s=null,a=null,n=null,o=!1,l=!1;const d=[],g=h=>{for(let p=0;p<h.length;p++)s=h[p],Array.isArray(s)?g(s):s!=null&&typeof s!="boolean"&&((o=typeof e!="function"&&!pt(s))&&(s=String(s)),o&&l?d[d.length-1].h+=s:d.push(o?Fe(null,s):s),l=o)};if(g(i),t){t.key&&(a=t.key),t.name&&(n=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter((p=>h[p])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,d,_a);const c=Fe(e,null);return c.v=t,d.length>0&&(c.m=d),c.$=a,c.j=n,c},Fe=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ut={},_a={forEach:(e,t)=>e.map(di).forEach(t),map:(e,t)=>e.map(di).map(t).map(xa)},di=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),xa=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),r(e.vtag,i,...e.vchildren||[])}const t=Fe(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ci=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const a of t){if(i)break;for(const n of e[a])if(typeof n=="string"){i=!0;break}}if(!i)return e;const s={};for(const a of t)s[a]=e[a].map((n=>typeof n=="string"?{[n]:0}:n));return s},hi=(e,t,i)=>e==null||pt(e)?e:4&t?(i&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Se=(e,t)=>{const i=e;return{emit:s=>gi(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},gi=(e,t,i)=>{const s=I.ce(t,i);return e.dispatchEvent(s),s},pi=(e,t,i,s,a,n)=>{if(i===s)return;let o=ti(e,t),l=t.toLowerCase();if(t==="class"){const d=e.classList,g=ui(i);let c=ui(s);d.remove(...g.filter((h=>h&&!c.includes(h)))),d.add(...c.filter((h=>h&&!g.includes(h))))}else if(t==="style"){for(const d in i)s&&s[d]!=null||(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(const d in s)i&&s[d]===i[d]||(d.includes("-")?e.style.setProperty(d,s[d]):e.style[d]=s[d])}else if(t!=="key"){if(t==="ref")s&&ka(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const d=t.slice(5);let g;{const c=B(e);if(c&&c.o&&c.o.t){const h=c.o.t[d];h&&h[1]&&(g=h[1])}}return g||(g=d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(g)!==""||e.removeAttribute(g):e.setAttribute(g,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const d=t.slice(5);try{e[d]=s}catch{}return}{const d=pt(s);if((o||d&&s!==null)&&!a)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const c=s??"";t==="list"?o=!1:i!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}let g=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,g=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(g?e.removeAttributeNS(ii,t):e.removeAttribute(t)):(!o||4&n||a)&&!d&&e.nodeType===1&&(s=s===!0?"":s,g?e.setAttributeNS(ii,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ti(L,l)?l.slice(2):l[2]+t.slice(3),i||s){const d=t.endsWith(mi);t=t.replace(Ca,""),i&&I.rel(e,t,i,d),s&&I.ael(e,t,s,d)}}},wa=/\s/,ui=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(wa):[]),mi="Capture",Ca=new RegExp(mi+"$"),mt=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,a=e&&e.v||{},n=t.v||{};for(const o of fi(Object.keys(a)))o in n||pi(s,o,a[o],void 0,i,t.i);for(const o of fi(Object.keys(n)))pi(s,o,a[o],n[o],i,t.i)};function fi(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var Ee=!1,Ge=!1,Ve=!1,N=!1,ft=[],bt=[],je=(e,t,i)=>{var s;const a=t.m[i];let n,o,l,d=0;if(Ee||(Ve=!0,a.O==="slot"&&(a.i|=a.m?2:1)),a.h!=null)n=a.S=L.document.createTextNode(a.h);else if(1&a.i)n=a.S=L.document.createTextNode(""),mt(null,a,N);else{if(N||(N=a.O==="svg"),!L.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(n=a.S=L.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Ee&&2&a.i?"slot-fb":a.O),N&&a.O==="foreignObject"&&(N=!1),mt(null,a,N),a.m){const g=a.O==="template"?n.content:n;for(d=0;d<a.m.length;++d)o=je(e,a,d),o&&g.appendChild(o)}a.O==="svg"?N=!1:n.tagName==="foreignObject"&&(N=!0)}return n["s-hn"]=ie,3&a.i&&(n["s-sr"]=!0,n["s-cr"]=gt,n["s-sn"]=a.j||"",n["s-rf"]=(s=a.v)==null?void 0:s.ref,(function(g){if(g.assignedElements||g.assignedNodes||!g["s-sr"])return;const c=h=>(function(p){const m=[],u=this["s-sn"];p?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let b=0;b<y.length;b++){const g=y[b]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===Q(y)&&p.push(y)})),u?p.filter((y=>y.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(o),l=e&&e.m&&e.m[s],l&&l.O===i.O&&e.S&&it(e.S)),o},it=e=>{x.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(L(t,i,s??null),i["s-sh"]=void 0,se=!0)}x.i&=-2},ie=(e,t)=>{x.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==G&&i["s-ol"]&&(L(U(i).parentNode,i,U(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,se=!0),t&&ie(i,t)}x.i&=-2},ot=(e,t,s,n,i,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===G&&(l=l.shadowRoot),s.O==="template"&&(l=l.content);i<=o;++i)n[i]&&(a=ne(null,s,i),a&&(n[i].S=a,L(l,a,U(t))))},at=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;lt(i),o&&(te=!0,o["s-ol"]?o["s-ol"].remove():ie(o,!0),o.remove())}}},oe=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),U=e=>e&&e["s-ol"]||e,z=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,l=t.h;let r;l==null?(E=a==="svg"||a!=="foreignObject"&&E,a!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",it(t.S.parentElement)),ye(e,t,E),i!==null&&o!==null?((d,h,u,m,p=!1)=>{let f,S,y=0,_=0,b=0,g=0,T=h.length-1,v=h[0],k=h[T],O=m.length-1,$=m[0],q=m[O];const Yt=u.O==="template"?d.content:d;for(;y<=T&&_<=O;)if(v==null)v=h[++y];else if(k==null)k=h[--T];else if($==null)$=m[++_];else if(q==null)q=m[--O];else if(oe(v,$,p))z(v,$,p),v=h[++y],$=m[++_];else if(oe(k,q,p))z(k,q,p),k=h[--T],q=m[--O];else if(oe(v,q,p))v.O!=="slot"&&q.O!=="slot"||ie(v.S.parentNode,!1),z(v,q,p),L(Yt,v.S,k.S.nextSibling),v=h[++y],q=m[--O];else if(oe(k,$,p))v.O!=="slot"&&q.O!=="slot"||ie(k.S.parentNode,!1),z(k,$,p),L(Yt,k.S,v.S),k=h[--T],$=m[++_];else{for(b=-1,g=y;g<=T;++g)if(h[g]&&h[g].$!==null&&h[g].$===$.$){b=g;break}b>=0?(S=h[b],S.O!==$.O?f=ne(h&&h[_],u,b):(z(S,$,p),h[b]=void 0,f=S.S),$=m[++_]):(f=ne(h&&h[_],u,_),$=m[++_]),f&&L(U(v.S).parentNode,f,U(v.S))}y>T?ot(d,m[O+1]==null?null:m[O+1].S,u,m,_,O):_>O&&at(h,y,T)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),ot(n,null,t,o,0,o.length-1)):!s&&i!==null&&at(i,0,i.length-1),E&&a==="svg"&&(E=!1)):(r=n["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(n.data=l)},I=[],rt=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ue(t,a)){let l=I.find((r=>r.k===t));te=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],I.push({N:o,k:t})),t["s-sr"]&&I.map((r=>{Ue(r.k,t["s-sn"])&&(l=I.find((d=>d.k===t)),l&&!r.N&&(r.N=l.N))}))}else I.some((l=>l.k===t))||I.push({k:t})}o.nodeType===1&&rt(o)}},lt=e=>{e.v&&e.v.ref&&Se.push((()=>e.v.ref(null))),e.m&&e.m.map(lt)},rs=(e,t)=>{we.push((()=>e(t)))},L=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=Q(o)||"";return{slotNode:pe(ge(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},ct=(e,t,s=!1)=>{var n,i,o,a,l;const r=e.$hostElement$,d=e.o,h=e.M||J(null,null);var u;const m=(u=t)&&u.O===ve?t:c(null,null,t);if(G=r.tagName,d._&&(m.v=m.v||{},d._.forEach((([p,f])=>{m.v[f]=r[p]}))),s&&m.v)for(const p of Object.keys(m.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(m.v[p]=r[p]);if(m.O=null,m.i|=4,e.M=m,m.S=h.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),be=r["s-cr"],te=!1,z(h,m,s),x.i|=1,se){rt(m.S);for(const p of I){const f=p.k;if(!f["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=f,L(f.parentNode,f["s-ol"]=S,f,s)}}for(const p of I){const f=p.k,S=p.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let b=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;b;){let g=(o=b["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"]){_=g;break}}b=b.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if(L(y,f,_,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const b=C.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));b["s-hn"]=f["s-hn"],b["s-sn"]=f["s-sn"],b["s-sh"]=f["s-sh"],b["s-sr"]=f["s-sr"],b["s-ol"]=f["s-ol"],b["s-ol"]["s-nr"]=b,L(f.parentNode,b,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(te&&We(m.S),x.i&=-2,I.length=0,!W&&!(1&d.i)&&r["s-cr"]){const p=m.S.__childNodes||m.S.childNodes;for(const f of p)if(f["s-hn"]!==G&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(l=f.hidden)!=null&&l),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=C.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],L(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}be=void 0,Se.forEach((p=>p())),Se.length=0,we.forEach((p=>p())),we.length=0},dt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},ae=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);dt(e,e.C);const s=()=>ls(e,t);if(!t)return Zt(s);queueMicrotask((()=>{s()}))},ls=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=Y(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=ut(i,(()=>Y(n,"componentWillRender",void 0,s))),ut(i,(()=>ds(e,n,t)))},ut=(e,t)=>cs(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),cs=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ds=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const l=a.o,r=a.$hostElement$,d=l.i,h=((u,m)=>{var p,f,S;const y=Ye(m),_=Z.get(y);if(!C.document)return y;if(u=u.nodeType===11?u:C.document,_)if(typeof _=="string"){let b,g=F.get(u=u.head||u);if(g||F.set(u,g=new Set),!g.has(y)){b=C.document.createElement("style"),b.textContent=_;const T=(p=x.L)!=null?p:(function(){var v,k,O;return(O=(k=(v=C.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?O:void 0})();if(T!=null&&b.setAttribute("nonce",T),!(1&m.i))if(u.nodeName==="HEAD"){const v=u.querySelectorAll("link[rel=preconnect]"),k=v.length>0?v[v.length-1].nextSibling:u.querySelector("style");u.insertBefore(b,k?.parentNode===u?k:null)}else if("host"in u)if(de){const v=new((f=u.defaultView)!=null?f:u.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),ue?u.adoptedStyleSheets.unshift(v):u.adoptedStyleSheets=[v,...u.adoptedStyleSheets]}else{const v=u.querySelector("style");v?v.textContent=_+v.textContent:u.prepend(b)}else u.append(b);1&m.i&&u.insertBefore(b,null),4&m.i&&(b.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let b=F.get(u);if(b||F.set(u,b=new Set),!b.has(y)){const g=(S=u.defaultView)!=null?S:u.ownerDocument.defaultView;let T;if(_.constructor===g.CSSStyleSheet)T=_;else{T=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)T.insertRule(_.cssRules[v].cssText,v)}ue?u.adoptedStyleSheets.push(T):u.adoptedStyleSheets=[...u.adoptedStyleSheets,T],b.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&d&&(r["s-sc"]=h,r.classList.add(h+"-h"))})(e),us(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],l=()=>hs(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},us=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,ct(e,t,n)}catch(i){V(i,e.$hostElement$)}return null},hs=e=>{const t=e.$hostElement$,s=t,n=e.C;Y(s,"componentDidRender",void 0,t),64&e.i?Y(s,"componentDidUpdate",void 0,t):(e.i|=64,ms(t),Y(s,"componentDidLoad",void 0,t),e.F(t),n||fs()),e.A&&(e.A(),e.A=void 0),512&e.i&&me((()=>ae(e,!1))),e.i&=-517},ht=e=>{var t;{const s=P(e),n=(t=s?.$hostElement$)==null?void 0:t.isConnected;return n&&(18&s.i)==2&&ae(s,!1),n}},fs=()=>{me((()=>Je(C,"appload",{detail:{namespace:"gids-core-web"}})))},Y=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){V(i,n)}},ms=e=>e.classList.add("hydrated"),ft=(e,t,s,n)=>{const i=P(e);if(!i)return;const o=e,a=i.l.get(t),l=i.i,r=o;s=Ze(s,n.t[t][0]);const d=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!d){if(i.l.set(t,s),n.R){const h=n.R[t];h&&h.map((u=>{try{const[[m,p]]=Object.entries(u);(128&l||1&p)&&(r?r[m](s,a,t):i.T.push((()=>{i.D[m](s,a,t)})))}catch(m){V(m,o)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,a,t)===!1&&!(16&l))return;16&l||ae(i,!1)}}},ps=(e,t)=>{var s,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Ke(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([a,[l]])=>{if(31&l||32&l){const{get:r,set:d}=B(i,a)||{};r&&(t.t[a][0]|=2048),d&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return r?r.apply(this):(h=a,P(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(h){const u=P(this);if(u){if(d)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(h=u.l.get(a)),d.apply(this,[Ze(h,l)]),void ft(this,a,h=32&l?this[a]:u.$hostElement$[a],t);ft(this,a,h,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,r,d){x.jmp((()=>{var h;const u=a.get(l),m=P(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==d)return;if(u==null){const _=m?.i;if(m&&_&&!(8&_)&&d!==r){const b=this,g=(h=t.R)==null?void 0:h[l];g?.forEach((T=>{const[[v,k]]=Object.entries(T);b[v]!=null&&(128&_||1&k)&&b[v].call(b,d,r,l)}))}return}const p=o.find((([_])=>_===u)),f=p&&4&p[1][0],S=f&&d===null&&this[u]===void 0;f&&(d=d!==null&&d!=="false");const y=Object.getOwnPropertyDescriptor(i,u);S||d==this[u]||y.get&&!y.set||(this[u]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...o.filter((([l,r])=>31&r[0])).map((([l,r])=>{var d;const h=r[1]||l;return a.set(h,l),512&r[0]&&((d=t._)==null||d.push([l,h])),h}))]))}}return e},M=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=Ke(e.R),s.H=e.H,s.P=e.P,s._=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,U:new Map};l.W=new Promise((d=>l.F=d)),o["s-p"]=[],o["s-rc"]=[];const r=l;o.__stencil__getHostRef=()=>r,512&a.i&&Xt(o,l)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!P(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&x.i)){const a=P(o);if(!a)return;const l=a.o;if(1&a.i)a?.D||a?.W&&a.W.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!C.document)return;const d=r["s-cr"]=C.document.createComment("");d["s-cn"]=!0,L(r,d,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){dt(a,a.C=r);break}}l.t&&Object.entries(l.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(o,r)){const h=o[r];delete o[r],o[r]=h}})),(async(r,d,h)=>{let u;try{if(!(32&d.i)&&(d.i|=32,u=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),u&&u.style)){let f;typeof u.style=="string"&&(f=u.style);const S=Ye(h);Z.has(S)||((y,_,b)=>{let g=Z.get(y);de&&b?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,Z.set(y,g)})(S,f,!!(1&h.i))}const m=d.C,p=()=>ae(d,!0);m&&m["s-rc"]?m["s-rc"].push(p):p()}catch(m){V(m,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(o,a,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{1&x.i||P(o),F.has(o)&&F.delete(o),o.shadowRoot&&F.has(o.shadowRoot)&&F.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ts.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ps(e,s)}catch(n){return V(n),e}},Ce=(e,t)=>t,gs=e=>x.L=e,bs=e=>Object.assign(x,e),mt=new WeakMap;function _s(e,t){let s=mt.get(t);s||(s={i:0,o:{i:0,p:t.tagName},$hostElement$:t},mt.set(t,s)),ct(s,e)}function ii(e){return e}function pt(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=pt(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function N(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=pt(e))&&(n&&(n+=" "),n+=t);return n}const vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>N("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>N("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>N("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"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:s,destructive:n,loading:i},o,a)=>N("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":s==="full","gids-button--destructive":n,"gids-button--icon-only":o,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),gt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Cs=/\w/,xs=e=>e.replace(Cs,t=>t.toLocaleUpperCase()),bt=(e,t)=>typeof e=="function"?e(t):t?xs(e):e,ks=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):gt(e);if(t==="required")return bt(n&&n.length>0?n:"(required)",o);if(t==="optional")return bt(s&&s.length>0?s:"(optional)",o)},isSentence:gt},Symbol.toStringTag,{value:"Module"})),re=64,_t=10,vt=re/2-_t/2,Ts=re/2,xe=2*Math.PI*vt,Es=`0 0 ${re} ${re}`,$s=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(xe*i/100).toFixed(2),a=(xe-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Ts,circumference:xe,radius:vt,thickness:_t,viewBox:Es},Symbol.toStringTag,{value:"Module"})),yt=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"})),ke=/[A-Z]/,Te=/[a-z]/,Ee=/[0-9]/,$e=/[^A-Za-z0-9]/,Ns=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const s=t>0?e/t*100:0;return s<=20?"is-weak":s<=40?"is-medium":s<=60?"is-good-enough":s<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:s=0})=>{if(!e||e==="")return 0;let n=0;return t.includes("1-uppercase")&&ke.test(e)&&n++,t.includes("1-lowercase")&&Te.test(e)&&n++,t.includes("1-digit")&&Ee.test(e)&&n++,t.includes("1-special-character")&&$e.test(e)&&n++,t.includes("include-min-length")&&s&&s>0&&e.length>=s&&n++,n},include1DigitReg:Ee,include1LowercaseLetterReg:Te,include1SpecialCharReg:$e,include1UppercaseLetterReg:ke},Symbol.toStringTag,{value:"Module"})),X=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Ne=e=>{const t=[];return e&&e.length>0&&e.map(s=>{s?.requirementRule&&t.push(s.requirementRule)}),t},Os=({rule:e,textMinLength:t=0,text:s})=>{if(!s||s===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ke.test(s);case"1-lowercase":return Te.test(s);case"1-digit":return Ee.test(s);case"1-special-character":return $e.test(s);case"include-min-length":return X({requirementRule:"include-min-length",textMinLength:t})===!0&&s.length>=t;default:return!1}},Oe=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return X({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Ne(t),defaultRequirementsMeterRules:t}},Rs=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Os,getDefaultRulesAndRequirementsForMeters:Oe,getMeterRulesFromRequirements:Ne,minLengthRuleCanBeApplied:X},Symbol.toStringTag,{value:"Module"})),Ls=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),Ms=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),qs=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),Ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},s)=>N("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},s)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>N("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:As}=yt,js=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":As(e)},Symbol.toStringTag,{value:"Module"})),Fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>N("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>N("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),Bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>N("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:Vs}=Ms,zs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":Vs(e)},Symbol.toStringTag,{value:"Module"})),Hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>N("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),St=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},wt=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},Ds=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:s})=>s.includes(t)?wt(e):St(e),getComponentEntryClasses:St,getComponentExitClasses:wt,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),Qs=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>N("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>N("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Re=Symbol("defaultPath"),Ct=Symbol("pathSet"),Le="gids-asset-paths-set";class Us extends EventTarget{#t=new Map;constructor(){super()}#e(t,s){this.#t.set(t,s)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(Le))};haveAssetPathsBeenSet(){return this.#s(Ct)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Re,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(Re,s)}this.#e(Ct,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(Re);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Le,t,{once:!0}),()=>{this.removeEventListener(Le,t)}}}const Me=Symbol.for("GIDS"),Ys=()=>(globalThis[Me]===void 0&&(globalThis[Me]={assetPaths:{}}),globalThis[Me]),Xs=e=>{const t=Ys().assetPaths;return t[e]===void 0&&(t[e]=new Us),t[e]};function le(){return Xs("@ganpatiinfo/gids-web-shared")}function Ks(){return le().haveAssetPathsBeenSet()}function Zs(e,t){le().setAssetPaths(e,t)}function xt(e){return le().getAssetFilePath(e)}function Js(e){return le().onAssetPathsSet(e)}let en=0;const qe=(e,t="gids")=>e||`${t}-${en++}`,tn=e=>e.type==="hidden",sn=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&&!tn(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},kt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Tt={"icons-other.svg":["accessibility","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","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Et=new Map;for(const e in Tt)for(const t of Tt[e])Et.set(t,e);function nn(e){return Et.get(e)}function $t(e,t="regular",s){const n=nn(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:on}=Ss,A=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...l})=>{const r=qe(o);let d=a;return d===void 0&&Ks()&&(d=$t(e,s,xt)),c("svg",{ref:h=>{d===void 0&&Js((()=>{(function(u,m,p){if(!u)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",$t(m,p,xt)),u.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:on({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&c("title",{id:r},n||e),d!==void 0?c("use",{href:d}):null)},H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Nt=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Pe=null;const Ie=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ae()})):void 0,Ae=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const l=n.cssRules.item(a);if(l?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(l?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(l)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ie!==void 0&&t!==Pe&&(Pe&&Ie.disconnect(),t instanceof Element&&Ie.observe(t,{childList:!0,characterData:!0,subtree:!0}),Pe=t),H.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},j=()=>(Nt||(Nt=Ae()),H),{getGidsFieldClassNames:an}=Is,Ot=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return c(ve,{key:"a8e81000bf235a842ddf98ef3be3ff5a82201b5d"},c("div",{key:"1c940955fd104dd85a5701f553d2ac5a7ddc14c8",class:an()},c("div",{key:"62e2a77c0661fc5507fe86d5343f85351895b3e7",class:"gids-field__header",hidden:!this._hasLabelContent()},c("slot",{key:"c94c3346cd083969831905e0d0a7091013d32f3d",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),c("div",{key:"ef4ba969b9ac7be32c9c88260e357661eff68d54",class:"gids-field__count","aria-live":"polite"},this.count)),c("div",{key:"cc2ea221e9c9725193238625f571848879e5c656",class:"gids-field__control"},c("slot",{key:"8530e0748d181e0c3b90e7602545cc67b404ef02",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),c("p",{key:"654ce845b3a9b5bfe3833a8122a05f3158a43fe4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?c("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?c("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),c(A,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ot))}))}je();const rn=Ot,Rt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return c(A,{key:"55114b6e5f7f440dcb4a892c0a25b234509b884e",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function ln(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Rt))}))}ln();const cn=Rt,{getGidsSpinnerControlClassNames:dn}=ys,{calculateStrokeDasharray:un,thickness:Lt,radius:Mt,centerPosition:ce,viewBox:hn}=$s,qt=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:un(s,n||0),strokeDashoffset:"0"}),c("svg",{class:dn({size:e,indeterminate:t,value:s}),viewBox:hn,...i},c("circle",{class:"gids-spinner-control__track",cx:ce,cy:ce,r:Mt,"stroke-width":Lt}),c("circle",{style:o,class:"gids-spinner-control__progress",cx:ce,cy:ce,r:Mt,"stroke-width":Lt}))},Pt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const s=t.target;s===this.#t||this._isWithinInteractiveElement(s)||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(sn(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 c(Ce,{key:"5d4e79f168da55c3c8dcb9b005919af697faa2e4"},c("slot",{key:"a7c23b37ceaf94f06e53256b431e98e7a3a32602",name:"leadingIcon"}),this.leadingLabel&&c("span",{key:"0ad81289035ada60d67b1df06fb60f703dc27eed",class:"gids-input__label"},this.leadingLabel),c("slot",{key:"f5870caed190d279a95c688243607dfae8f79d60",name:"leadingAccessory"}),c("input",{key:"38ead647fc9069ed8de93293150134048fd6b4f1",...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}),c("slot",{key:"58ff0f57706d2c9b1e9b41549649c324c60a8f07",name:"trailingAccessory"}),this.trailingLabel&&c("span",{key:"6d400670f8c64f64fbe732e726da4d7569c2c6f3",class:"gids-input__label"},this.trailingLabel),c("slot",{key:"8b20ed8fb9169fd7c0e1415f7bcdf0df03b61534",name:"trailingIcon"}),this.status==="incomplete"&&c(A,{key:"f7d4261f5c8faa51601d3fd6c400f4891847f62c",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&c(A,{key:"6cbdc56ebc1854d0b4f6db30df670f665a9aff3f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&c(qt,{key:"a369d7c3f7e2ac4d631926aefc1a15bf9cbba362",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 Fe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Pt))}))}Fe();const fn=Pt,Ge=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,It=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(s=>{const n=(()=>{const i=document.querySelector("gids-overlay-provider");if(!i||!i.shadowRoot)return 1;const o=i.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),a=o[o.length-1];if(!a)return 1;const l=a.offsetHeight,r=getComputedStyle(a).lineHeight,d=r.endsWith("px")?parseFloat(r):0;return Math.ceil(d?l/d:1)})();return n===2?s==="snackbar"?5e3:8e3:n>=3?s==="snackbar"?7e3:1e4:s==="snackbar"?3e3:6e3})(e),At=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Ge(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function mn(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,At))}))}mn();const pn=At,{showGidsOverflowContainerBottomShadow:jt,showGidsOverflowContainerTopShadow:gn}=qs,Ft=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),jt(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(gn(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),jt(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return c("div",{key:"6ec89d7178cf344a3127aa5913df8ff65c523592",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},c("slot",{key:"0cf9630efe8337aa0c7a239fa5f09ca30d368513"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function bn(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Ft))}))}bn();const _n=Ft,{getGidsButtonClassNames:vn}=ws,K=({appearance:e,size:t,destructive:s,loading:n,width:i,leadingIcon:o,trailingIcon:a,as:l,disabled:r,class:d,forceIconOnly:h=!1,...u},m)=>{const p=l||"button",f=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in u||(u.type="button"),c(p,{class:vn({appearance:e,size:t,destructive:s,loading:n,width:i},h||m.length===0&&kt(o)&&!kt(a),d),disabled:p==="button"?r:void 0,...u},c("span",{class:"gids-button__content"},o,m),n&&c(qt,{size:f,indeterminate:!0}),a)},{getGidsSnackbarContainerClassNames:yn,getSnackbarContainerIconNames:Sn}=Hs,wn=({appearance:e="default",children:t,button:s,class:n,...i})=>{const o=Sn(e);return c("div",{...i,class:yn({appearance:e},n)},c("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?c(A,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?c("p",null,t):t),s)},{getGidsNotificationContainerClassNames:Cn,getNotificationContainerIconNames:xn}=Qs,kn=({notificationTitle:e,children:t,button:s,appearance:n="default",pronunciation:i="standard",onCloseNotificationClick:o,class:a,...l})=>{const r=xn(n);return c("div",{class:Cn({appearance:n},a),...l},n!=="default"&&r?c("div",{class:"gids-notification-container__leading-icon-wrapper"},c(A,{size:"md",name:r,alt:"",appearance:"filled"})):null,c("div",{class:"gids-notification-container__content-wrapper"},c("div",{class:"gids-notification-container__top-content"},c("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?c("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?c("p",null,t):t:null),i==="standard"?c("div",{class:"gids-notification-container__cross-btn-wrapper"},c(K,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:c(A,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),s?c("div",{class:"gids-notification-container__bottom-content"},s):null))},{getComponentClasses:Tn,getComponentStackClasses:En}=Ds,Gt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,s)=>{const{id:n,message:i,appearance:o,buttonLabel:a,onButtonClick:l}=t;return c(wn,{key:n,class:s,children:i,appearance:o,button:a!=null&&a!==""?c(K,{appearance:"subtle",onClick:l},a):void 0})},this._renderNotification=(t,s)=>{const{id:n,notificationTitle:i,message:o,pronunciation:a,appearance:l,buttonLabel:r,onButtonClick:d,timerInMs:h}=t;return c(kn,{key:n,class:s,notificationTitle:i,children:o,pronunciation:a,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,h||0,!0),button:r!=null&&r!==""?c(K,{appearance:"default",size:"sm",onClick:d},r):void 0})},this._renderComponent=t=>{const{componentName:s,position:n="bottom-center",id:i}=t,o=Tn({position:n,id:i,exitingComponents:this._exitingComponents});return s==null||s==="snackbar"?this._renderSnackbar(t,o):s==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Ge(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const s=setTimeout((()=>(clearTimeout(s),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:s,buttonLabel:n,onButtonClick:i,position:o,componentName:a,...l}=e,r={id:""+(Date.now()+Math.random()),message:s,appearance:t,buttonLabel:n,onButtonClick:i,position:o,componentName:a,...l};this._componentQueue=[...this._componentQueue,r],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:s,pronunciation:n,message:i,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...d}=e,h={id:""+(Date.now()+Math.random()),notificationTitle:s,message:i,pronunciation:n,appearance:t,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...d};this._componentQueue=[...this._componentQueue,h],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,s){return s||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==e.id)),this._allowedComponentQueue=[],n()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((s=>requestAnimationFrame((()=>s()))));const t=It({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const s=It({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,s,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return c(Ce,{key:"f80c6557d382dc5af3ddcb77f20c58ffa9acbd53"},c("slot",{key:"1d763f5cedecd8b8a2e0b7d1fb207e9ffde7ad97"}),this._isRoot()?c("div",{class:En({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function $n(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,Gt))}))}$n();const Nn=Gt,{getIndicatorText:On}=ks,{getGidsLabelClassNames:Rn}=vs,Bt=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...d},h)=>{const u=On({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:r});return c("div",{class:Rn({disabled:e},l),...d},c("label",{htmlFor:o,id:a},h,u&&c("span",{class:"gids-label__field-requirement"},u)),i)},{getGidsDismissButtonClassNames:Ln}=Ps,Vt=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:o,...a})=>c("button",{class:Ln({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":o,...a},c(A,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:Mn}=Fs,{getStrengthMeterScore:qn,getColorModifierByScore:Pn}=Ns,In=({text:e,textMinLength:t,meterRules:s=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const i=(o,a,l)=>c("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?a:""].filter(Boolean).join(" ")});return s.length>0?c("div",{class:Mn(n)},(()=>{const o=s.length,a=qn({text:e,textMinLength:t,meterRules:s}),l=Pn({textScore:a,maxScore:o});return Array.from({length:o},((r,d)=>{const h=d+1,u=h<=a;return s[h]==="include-min-length"?X({requirementRule:"include-min-length",textMinLength:t})?i(h,l,u):null:i(h,l,u)}))})()):null},{getGidsRequirementsMeterLabelClassNames:An}=Gs,{getRequirementsMeterLabelLeadingIcon:jn}=Ls,Fn=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,o=jn(s);return c("div",{class:An({status:s},i)},n&&s&&o?c(A,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?c("span",null,t):null)},{checkRequirementRuleSatisfied:Gn}=Rs,{getGidsRequirementsMeterClassNames:Bn}=Bs,Vn=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(o,a)=>c(Fn,{status:a?"success":"error",label:o.requirementText});return c("div",{class:Bn(n)},e.map((o=>{if(o?.requirementText!=null&&o?.requirementRule!=null){const a=Gn({rule:o.requirementRule,textMinLength:s,text:t});return o.requirementRule==="include-min-length"?X({requirementRule:o.requirementRule,textMinLength:s})===!0?i(o,a):null:i(o,a)}return null})))},{inputToGidsFieldStatusForPassword:zn}=zs,zt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=ee(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=ee(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=qe(),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.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?Ne(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{ht(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=Oe(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=Oe(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0,i=this.showRevealPasswordButton,o={...t},a=o?.placeholder!==void 0&&o.placeholder!==null&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,r=this.meterRules,d=this.textMinLength!==void 0?this.textMinLength:8;return c(Ce,{key:"ac0547218330d8f736228ea80758fa093106c83b"},c("gids-field",{key:"98c060a626789dbd002f5792cd80f1d774700ce8",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:zn(this.status)},c(Bt,{key:"c3bc15ae28913dd303c6f1ac115a263eb6c957d6",slot:"label",disabled:this.disabled,info:c("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),c("gids-input",{key:"27e62b83ad6ad35b88478e2098e27b90955831c8",ref:h=>this.#e=h,appearance:"default",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:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...o,placeholder:a,type:l?"text":"password",id:s,maxLength:this.maxLength}},c("slot",{key:"be45ade51a541676a5b2e234fcbee46e60cde86c",name:"leadingIcon"}),c("slot",{key:"6cf1f874d8f94f0a47006f05784cbc96c6364a29",name:"leadingAccessory"}),c("div",{key:"8243a614ec6fc1d2b58f89c346123829b6ce4350",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&c(Vt,{key:"5a404ec6fbecf9d383bf11a1d06371d79b5bd1be",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&c(K,{key:"c6cac51598118d8e6fed039a08a5f6d7ad4ae3ac",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),c("div",{key:"dea7d30bac19ece0988437a663743020be7b9c47",class:"gids-password-field__meters-container"},c(In,{key:"0cd888450a7760a8c80b73ded9ccd91e2b30c39f",meterRules:r,text:this.value,textMinLength:d}),c(Vn,{key:"f5960940724dabab47fceb265ae369d1ce23e9aa",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:d})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],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],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function Hn(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,zt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Hn();const Dn=zt,{getGidsScrimClassNames:Ht}=Ws,Dt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ht(e)}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ht(this.extraClasses)}render(){return c("div",{key:"3a18dab725b1a061036e23781aaa55040bf8464c",class:this.activeClasses,part:"root"},c("slot",{key:"81e1e0fa050d3ccb490cbe082f7a67422957096a"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Qn(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,Dt))}))}Qn();const Wn=Dt,Qt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Ge(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function Un(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Qt))}))}Un();const Yn=Qt,{formatCharCount:Xn}=yt,{inputToGidsFieldStatus:Kn}=js,Wt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=ee(this,"gidsTextFieldClear"),this.#t=qe(),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((()=>{ht(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=j();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??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0;return c("gids-field",{key:"79a6f89effd87741d2b07df6aeb47c7dca810738",disabled:this.disabled,count:Xn(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Kn(this.status)},c(Bt,{key:"04c15dd04008777bd1eff8b3e94fd26076fd0a6c",slot:"label",disabled:this.disabled,info:c("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),c("gids-input",{key:"ae41600eca7cc769e3a4e271bc7d4718c5cb9069",ref:i=>this.#e=i,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:s,maxLength:this.maxLength}},c("slot",{key:"0a1851ba9e1cb1deed77f88327e5411c0577c5d0",name:"leadingIcon"}),c("slot",{key:"140610e53fb52e6b24e0d91361c688e996de3849",name:"leadingAccessory"}),n&&c(Vt,{key:"48b5b8d8adaa5693e57d6aca9eff32ca72a2c051",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),c("slot",{key:"679c26844c467e15e144c393df13652dbe498421",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 Zn(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,Wt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Zn();const Jn=Wt,Ut=M(class extends R{get selected(){return this.#t??this.defaultSelected}set selected(e){this.#t=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=ee(this,"select"),this._toggle=this._toggle.bind(this)}#t;connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return c(ve,{key:"87505762161da81762e873e7c6318c03d9c17ef5"},c("style",{key:"4e4c082b5435ca88e816310035c2989847d4f3de"},`:host {
5
+ `);const f=this["s-cr"].parentElement;return(f.__childNodes?f.childNodes:(v=>{const _=[];for(let y=0;y<v.length;y++){const b=v[y]["s-nr"]||void 0;b&&b.isConnected&&_.push(b)}return _})(f.childNodes)).forEach((v=>{u===ke(v)&&m.push(v)})),h?m.filter((v=>v.nodeType===1)):m}).bind(g);g.assignedElements=c(!0),g.assignedNodes=c(!1)})(n),l=e&&e.m&&e.m[i],l&&l.O===a.O&&e.S&&bi(e.S)),n},bi=e=>{I.i|=1;const t=e.closest(ie.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((a=>a["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const a of i?s.reverse():s)a["s-sh"]!=null&&(F(t,a,i??null),a["s-sh"]=void 0,Ve=!0)}I.i&=-2},Ye=(e,t)=>{I.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"]===ie&&i.push(s)}for(let s=i.length-1;s>=0;s--){const a=i[s];a["s-hn"]!==ie&&a["s-ol"]&&(F(Pe(a).parentNode,a,Pe(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Ve=!0),t&&Ye(a,t)}I.i&=-2},vi=(e,t,i,s,a,n)=>{let o,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===ie&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);a<=n;++a)s[a]&&(o=je(null,i,a),o&&(s[a].S=o,F(l,o,Pe(t))))},yi=(e,t,i)=>{for(let s=t;s<=i;++s){const a=e[s];if(a){const n=a.S;xi(a),n&&(Ge=!0,n["s-ol"]?n["s-ol"].remove():Ye(n,!0),n.remove())}}},Be=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Pe=e=>e&&e["s-ol"]||e,ue=(e,t,i=!1)=>{const s=t.S=e.S,a=e.m,n=t.m,o=t.O,l=t.h;let d;l==null?(N=o==="svg"||o!=="foreignObject"&&N,o!=="slot"||Ee||e.j!==t.j&&(t.S["s-sn"]=t.j||"",bi(t.S.parentElement)),mt(e,t,N),a!==null&&n!==null?((g,c,h,p,m=!1)=>{let u,f,v=0,_=0,y=0,b=0,w=c.length-1,x=c[0],k=c[w],T=p.length-1,M=p[0],$=p[T];const R=h.O==="template"?g.content:g;for(;v<=w&&_<=T;)if(x==null)x=c[++v];else if(k==null)k=c[--w];else if(M==null)M=p[++_];else if($==null)$=p[--T];else if(Be(x,M,m))ue(x,M,m),x=c[++v],M=p[++_];else if(Be(k,$,m))ue(k,$,m),k=c[--w],$=p[--T];else if(Be(x,$,m))x.O!=="slot"&&$.O!=="slot"||Ye(x.S.parentNode,!1),ue(x,$,m),F(R,x.S,k.S.nextSibling),x=c[++v],$=p[--T];else if(Be(k,M,m))x.O!=="slot"&&$.O!=="slot"||Ye(k.S.parentNode,!1),ue(k,M,m),F(R,k.S,x.S),k=c[--w],M=p[++_];else{for(y=-1,b=v;b<=w;++b)if(c[b]&&c[b].$!==null&&c[b].$===M.$){y=b;break}y>=0?(f=c[y],f.O!==M.O?u=je(c&&c[_],h,y):(ue(f,M,m),c[y]=void 0,u=f.S),M=p[++_]):(u=je(c&&c[_],h,_),M=p[++_]),u&&F(Pe(x.S).parentNode,u,Pe(x.S))}v>w?vi(g,p[T+1]==null?null:p[T+1].S,h,p,_,T):_>T&&yi(c,v,w)})(s,a,t,n,i):n!==null?(e.h!==null&&(s.textContent=""),vi(s,null,t,n,0,n.length-1)):!i&&a!==null&&yi(a,0,a.length-1),N&&o==="svg"&&(N=!1)):(d=s["s-cr"])?d.parentNode.textContent=l:e.h!==l&&(s.data=l)},W=[],_i=e=>{let t,i,s;const a=e.__childNodes||e.childNodes;for(const n of a){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const o=n["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===n["s-hn"]||t["s-sh"]&&t["s-sh"]===n["s-hn"]))if(oi(t,o)){let l=W.find((d=>d.k===t));Ge=!0,t["s-sn"]=t["s-sn"]||o,l?(l.k["s-sh"]=n["s-hn"],l.N=n):(t["s-sh"]=n["s-hn"],W.push({N:n,k:t})),t["s-sr"]&&W.map((d=>{oi(d.k,t["s-sn"])&&(l=W.find((g=>g.k===t)),l&&!d.N&&(d.N=l.N))}))}else W.some((l=>l.k===t))||W.push({k:t})}n.nodeType===1&&_i(n)}},xi=e=>{e.v&&e.v.ref&&ft.push((()=>e.v.ref(null))),e.m&&e.m.map(xi)},ka=(e,t)=>{bt.push((()=>e(t)))},F=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:a}=(function(n,o){var l;if(!(o=o||((l=n["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const d=n["s-sn"]=ke(n)||"";return{slotNode:ct(ht(o,"childNodes"),o.tagName,d)[0],slotName:d}})(t);return a&&!s&&a.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},wi=(e,t,i=!1)=>{var s,a,n,o,l;const d=e.$hostElement$,g=e.o,c=e.M||Fe(null,null);var h;const p=(h=t)&&h.O===ut?t:r(null,null,t);if(ie=d.tagName,g.C&&(p.v=p.v||{},g.C.forEach((([m,u])=>{p.v[u]=d[m]}))),i&&p.v)for(const m of Object.keys(p.v))d.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(p.v[m]=d[m]);if(p.O=null,p.i|=4,e.M=p,p.S=c.S=d.shadowRoot||d,Ee=!(!(1&g.i)||128&g.i),gt=d["s-cr"],Ge=!1,ue(c,p,i),I.i|=1,Ve){_i(p.S);for(const m of W){const u=m.k;if(!u["s-ol"]&&L.document){const f=L.document.createTextNode("");f["s-nr"]=u,F(u.parentNode,u["s-ol"]=f,u,i)}}for(const m of W){const u=m.k,f=m.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),f){const v=f.parentNode;let _=f.nextSibling;if(_&&_.nodeType===1){let y=(a=u["s-ol"])==null?void 0:a.previousSibling;for(;y;){let b=(n=y["s-nr"])!=null?n:null;if(b&&b["s-sn"]===u["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===u||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){_=b;break}}y=y.previousSibling}}if((!_&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==_)&&u!==_){if(F(v,u,_,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const y=L.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=u["s-hn"],y["s-sn"]=u["s-sn"],y["s-sh"]=u["s-sh"],y["s-sr"]=u["s-sr"],y["s-ol"]=u["s-ol"],y["s-ol"]["s-nr"]=y,F(u.parentNode,y,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(o=u["s-ih"])!=null&&o)}u&&typeof f["s-rf"]=="function"&&f["s-rf"](f)}else u.nodeType===1&&(u.hidden=!0)}}if(Ge&&ri(p.S),I.i&=-2,W.length=0,!Ee&&!(1&g.i)&&d["s-cr"]){const m=p.S.__childNodes||p.S.childNodes;for(const u of m)if(u["s-hn"]!==ie&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const f=L.document.createComment("s-nt-"+u.nodeValue);f["s-sn"]=u["s-sn"],F(u.parentNode,f,u,i),u.parentNode.removeChild(u)}}}gt=void 0,ft.forEach((m=>m())),ft.length=0,bt.forEach((m=>m())),bt.length=0},Ci=(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()})))}},qe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ci(e,e.R);const i=()=>Sa(e,t);if(!t)return ma(i);queueMicrotask((()=>{i()}))},Sa=(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 a;return a=Te(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),a=ki(a,(()=>Te(s,"componentWillRender",void 0,i))),ki(a,(()=>Pa(e,s,t)))},ki=(e,t)=>Ea(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Ea=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Pa=async(e,t,i)=>{var s;const a=e.$hostElement$,n=a["s-rc"];i&&(o=>{const l=o.o,d=o.$hostElement$,g=l.i,c=((h,p)=>{var m,u,f;const v=li(p),_=Re.get(v);if(!L.document)return v;if(h=h.nodeType===11?h:L.document,_)if(typeof _=="string"){let y,b=K.get(h=h.head||h);if(b||K.set(h,b=new Set),!b.has(v)){y=L.document.createElement("style"),y.textContent=_;const w=(m=I._)!=null?m:(function(){var x,k,T;return(T=(k=(x=L.document.head)==null?void 0:x.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?T:void 0})();if(w!=null&&y.setAttribute("nonce",w),!(1&p.i))if(h.nodeName==="HEAD"){const x=h.querySelectorAll("link[rel=preconnect]"),k=x.length>0?x[x.length-1].nextSibling:h.querySelector("style");h.insertBefore(y,k?.parentNode===h?k:null)}else if("host"in h)if(nt){const x=new((u=h.defaultView)!=null?u:h.ownerDocument.defaultView).CSSStyleSheet;x.replaceSync(_),rt?h.adoptedStyleSheets.unshift(x):h.adoptedStyleSheets=[x,...h.adoptedStyleSheets]}else{const x=h.querySelector("style");x?x.textContent=_+x.textContent:h.prepend(y)}else h.append(y);1&p.i&&h.insertBefore(y,null),4&p.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let y=K.get(h);if(y||K.set(h,y=new Set),!y.has(v)){const b=(f=h.defaultView)!=null?f:h.ownerDocument.defaultView;let w;if(_.constructor===b.CSSStyleSheet)w=_;else{w=new b.CSSStyleSheet;for(let x=0;x<_.cssRules.length;x++)w.insertRule(_.cssRules[x].cssText,x)}rt?h.adoptedStyleSheets.push(w):h.adoptedStyleSheets=[...h.adoptedStyleSheets,w],y.add(v)}}return v})(d.shadowRoot?d.shadowRoot:d.getRootNode(),l);10&g&&(d["s-sc"]=c,d.classList.add(c+"-h"))})(e),Ta(e,t,a,i),n&&(n.map((o=>o())),a["s-rc"]=void 0);{const o=(s=a["s-p"])!=null?s:[],l=()=>La(e);o.length===0?l():(Promise.all(o).then(l).catch(l),e.i|=4,o.length=0)}},Ta=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,wi(e,t,s)}catch(a){pe(a,e.$hostElement$)}return null},La=e=>{const t=e.$hostElement$,i=t,s=e.R;Te(i,"componentDidRender",void 0,t),64&e.i?Te(i,"componentDidUpdate",void 0,t):(e.i|=64,Ma(t),Te(i,"componentDidLoad",void 0,t),e.L(t),s||Ia()),e.A&&(e.A(),e.A=void 0),512&e.i&&dt((()=>qe(e,!1))),e.i&=-517},Si=e=>{var t;{const i=B(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&qe(i,!1),s}},Ia=()=>{dt((()=>gi(L,"appload",{detail:{namespace:"gids-core-web"}})))},Te=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(a){pe(a,s)}},Ma=e=>e.classList.add("hydrated"),Ei=(e,t,i,s)=>{const a=B(e);if(!a)return;const n=e,o=a.l.get(t),l=a.i,d=n;i=hi(i,s.t[t][0],!!(64&s.i));const g=Number.isNaN(o)&&Number.isNaN(i);if(i!==o&&!g){if(a.l.set(t,i),s.F){const c=s.F[t];c&&c.map((h=>{try{const[[p,m]]=Object.entries(h);(128&l||1&m)&&(d?d[p](i,o,t):a.T.push((()=>{a.D[p](i,o,t)})))}catch(p){pe(p,n)}}))}if(2&l){if(d.componentShouldUpdate&&d.componentShouldUpdate(i,o,t)===!1&&!(16&l))return;16&l||qe(a,!1)}}},Da=(e,t,i)=>{var s,a;const n=e.prototype;64&t.i&&1&i&&pa.forEach((o=>{const l=n[o];Object.defineProperty(n,o,{value(...d){var g;const c=B(this),h=this;h?typeof l=="function"&&l.call(h,...d):(g=c?.H)==null||g.then((p=>{const m=p[o];typeof m=="function"&&m.call(p,...d)}))}})}));{e.watchers&&!t.F&&(t.F=ci(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([l,[d]])=>{if(31&d||32&d){const{get:g,set:c}=ge(n,l)||{};g&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return g?g.apply(this):(h=l,B(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const p=B(this);if(p){if(c)return(32&d?this[l]:p.$hostElement$[l])===void 0&&p.l.get(l)&&(h=p.l.get(l)),c.apply(this,[hi(h,d,!!(64&t.i))]),void Ei(this,l,h=32&d?this[l]:p.$hostElement$[l],t);Ei(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(d,g,c){I.jmp((()=>{var h;const p=l.get(d),m=B(this);if(this.hasOwnProperty(p),n.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==c)return;if(p==null){const y=m?.i;if(m&&y&&!(8&y)&&c!==g){const b=this,w=(h=t.F)==null?void 0:h[d];w?.forEach((x=>{const[[k,T]]=Object.entries(x);b[k]!=null&&(128&y||1&T)&&b[k].call(b,c,g,d)}))}return}const u=o.find((([y])=>y===p)),f=u&&4&u[1][0],v=f&&c===null&&this[p]===void 0;f&&(c=c!==null&&c!=="false");const _=Object.getOwnPropertyDescriptor(n,p);v||c==this[p]||_.get&&!_.set||(this[p]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.F)!=null?a:{}),...o.filter((([d,g])=>31&g[0])).map((([d,g])=>{var c;const h=g[1]||d;return l.set(h,d),512&g[0]&&((c=t.C)==null||c.push([d,h])),h}))]))}}return e},P=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.F=ci(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((n,o)=>{const l={i:0,$hostElement$:n,o,l:new Map,W:new Map};l.H=new Promise((g=>l.L=g)),n["s-p"]=[],n["s-rc"]=[];const d=l;n.__stencil__getHostRef=()=>d,512&o.i&&ga(n,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!B(this))return;this.__hasHostListenerAttached=!0}(n=>{if(!(1&I.i)){const o=B(n);if(!o)return;const l=o.o;if(1&o.i)o?.D||o?.H&&o.H.then((()=>{}));else{o.i|=1,12&l.i&&(d=>{if(!L.document)return;const g=d["s-cr"]=L.document.createComment("");g["s-cn"]=!0,F(d,g,d.firstChild)})(n);{let d=n;for(;d=d.parentNode||d.host;)if(d["s-p"]){Ci(o,o.R=d);break}}l.t&&Object.entries(l.t).map((([d,[g]])=>{if(31&g&&Object.prototype.hasOwnProperty.call(n,d)){const c=n[d];delete n[d],n[d]=c}})),(async(d,g,c)=>{let h;try{if(!(32&g.i)&&(g.i|=32,h=d.constructor,customElements.whenDefined(d.localName).then((()=>g.i|=128)),h&&h.style)){let u;typeof h.style=="string"&&(u=h.style);const f=li(c);Re.has(f)||((v,_,y)=>{let b=Re.get(v);nt&&y?(b=b||new CSSStyleSheet,typeof b=="string"?b=_:b.replaceSync(_)):b=_,Re.set(v,b)})(f,u,!!(1&c.i))}const p=g.R,m=()=>qe(g,!0);p&&p["s-rc"]?p["s-rc"].push(m):m()}catch(p){pe(p,d),g.A&&(g.A(),g.A=void 0),g.L&&g.L(d)}})(n,o,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async n=>{1&I.i||B(n),K.has(n)&&K.delete(n),n.shadowRoot&&K.has(n.shadowRoot)&&K.delete(n.shadowRoot)})(this),a&&a.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 va.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Da(e,i,3)}catch(s){return pe(s),e}},se=(e,t)=>t,$a=e=>I._=e,Aa=e=>Object.assign(I,e),Pi=new WeakMap;function Na(e,t){let i=Pi.get(t);i||(i={i:0,o:{i:0,p:t.tagName},$hostElement$:t},Pi.set(t,i)),wi(i,e)}function hd(e){return e}function Ti(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=Ti(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function S(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=Ti(e))&&(s&&(s+=" "),s+=t);return s}const za=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>S("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Oa=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>S("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Ra=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>S("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"})),Fa=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>S("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),Ga=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>S("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"})),Va=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:a,loading:n},o,l)=>S("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":i==="full","gids-button--destructive":s&&!a,"gids-button--positive":a&&!s,"gids-button--icon-only":o,"gids-button--loading":n},l)},Symbol.toStringTag,{value:"Module"})),Li=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},ja=/\w/,Ya=e=>e.replace(ja,t=>t.toLocaleUpperCase()),Ii=(e,t)=>typeof e=="function"?e(t):t?Ya(e):e,Ba=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:a})=>{const n=a?a(e):Li(e);if(t==="required")return Ii(s&&s.length>0?s:"(required)",n);if(t==="optional")return Ii(i&&i.length>0?i:"(optional)",n)},isSentence:Li},Symbol.toStringTag,{value:"Module"})),qa=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,a=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:a}}},Symbol.toStringTag,{value:"Module"})),He=64,Mi=10,Di=He/2-Mi/2,Ha=He/2,vt=2*Math.PI*Di,Wa=`0 0 ${He} ${He}`,Ua=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,a=Math.max(0,Math.min(i,e))/i*100,n=(vt*a/100).toFixed(2),o=(vt-parseFloat(n)).toFixed(2);return`${n} ${o}`},centerPosition:Ha,circumference:vt,radius:Di,thickness:Mi,viewBox:Wa},Symbol.toStringTag,{value:"Module"})),$i=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"})),yt=/[A-Z]/,_t=/[a-z]/,xt=/[0-9]/,wt=/[^A-Za-z0-9]/,Qa=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const i=t>0?e/t*100:0;return i<=20?"is-weak":i<=40?"is-medium":i<=60?"is-good-enough":i<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:i=0})=>{if(!e||e==="")return 0;let s=0;return t.includes("1-uppercase")&&yt.test(e)&&s++,t.includes("1-lowercase")&&_t.test(e)&&s++,t.includes("1-digit")&&xt.test(e)&&s++,t.includes("1-special-character")&&wt.test(e)&&s++,t.includes("include-min-length")&&i&&i>0&&e.length>=i&&s++,s},include1DigitReg:xt,include1LowercaseLetterReg:_t,include1SpecialCharReg:wt,include1UppercaseLetterReg:yt},Symbol.toStringTag,{value:"Module"})),Le=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Ct=e=>{const t=[];return e&&e.length>0&&e.map(i=>{i?.requirementRule&&t.push(i.requirementRule)}),t},Xa=({rule:e,textMinLength:t=0,text:i})=>{if(!i||i===""||!e&&!t)return!1;switch(e){case"1-uppercase":return yt.test(i);case"1-lowercase":return _t.test(i);case"1-digit":return xt.test(i);case"1-special-character":return wt.test(i);case"include-min-length":return Le({requirementRule:"include-min-length",textMinLength:t})===!0&&i.length>=t;default:return!1}},kt=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return Le({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Ct(t),defaultRequirementsMeterRules:t}},Ka=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Xa,getDefaultRulesAndRequirementsForMeters:kt,getMeterRulesFromRequirements:Ct,minLengthRuleCanBeApplied:Le},Symbol.toStringTag,{value:"Module"})),Za=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),Ja=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),en=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),tn="No Data!",sn=e=>`There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`,Ai=100,an=50,Ni="Invalid Progress Value!",zi=e=>`The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`,nn="Invalid Chart Type!",rn=e=>`You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`,on=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>S("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),ln=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonDockClassNames:e=>S("gids-button-dock",e)},Symbol.toStringTag,{value:"Module"})),dn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>S("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"})),cn=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>S("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:hn}=$i,gn=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":hn(e)},Symbol.toStringTag,{value:"Module"})),pn=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>S("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),un=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>S("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),mn=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>S("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>S("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:bn}=Ja,vn=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":bn(e)},Symbol.toStringTag,{value:"Module"})),yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>S("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Oi=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},Ri=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},_n=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:i})=>i.includes(t)?Ri(e):Oi(e),getComponentEntryClasses:Oi,getComponentExitClasses:Ri,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),xn=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>S("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),wn=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>S("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Cn=Object.freeze(Object.defineProperty({__proto__:null,getGidsFeedbackBlockClassNames:e=>S("gids-feedback-block",e)},Symbol.toStringTag,{value:"Module"})),kn=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>S("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Sn=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>S("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),En=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonClassNames:({size:e},t)=>S("gids-chevron-button",{"gids-chevron-button--sm":e==="sm","gids-chevron-button--md":e==="md","gids-chevron-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Pn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>S("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),Tn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>S("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Ln=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>S("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),In=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>S("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>S("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Mn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarCellClassNames:({disabled:e,selected:t,today:i,cellType:s,dot:a},n)=>S("gids-calendar-cell",{"gids-calendar-cell--selected":t&&!e&&!i,"gids-calendar-cell--today":i&&!e&&!a,"gids-calendar-cell--label-non-effective":s==="non-effective","gids-calendar-cell--default-effective":s==="effective"&&!e&&!i&&!t,"gids-calendar-cell--selected-effective":t&&s==="effective"&&!e&&!i,"gids-calendar-cell--today-effective":i&&s==="effective"&&!e&&!a,"gids-calendar-cell--default-disabled":e&&!i&&!t,"gids-calendar-cell--selected-disabled":e&&t&&!i,"gids-calendar-cell--today-disabled":e&&i&&!a,"gids-calendar-cell--today-dot":i&&!e&&a,"gids-calendar-cell--today-dot-effective":i&&s==="effective"&&!e&&a,"gids-calendar-cell--today-dot-disabled":e&&i&&a},n)},Symbol.toStringTag,{value:"Module"})),Dn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:i},s)=>S("gids-dot",{"gids-dot--disabled":i,"gids-dot--subtle":e==="subtle"&&!i,"gids-dot--static-inverse":e==="static-inverse"&&!i,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),$n=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarDayCellClassNames:e=>S("gids-calendar-day-cell",e)},Symbol.toStringTag,{value:"Module"})),An=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarMonthListClassNames:e=>S("gids-calendar-month-list",e),getGidsCalendarMonthListMonths:()=>{const e=[],t=new Intl.DateTimeFormat("en-US",{month:"long"});for(let i=1;i<=12;i+=1){const s=new Date(2e3,i-1,1),a=t.format(s);e.push({id:`${i}`,title:a,value:i})}return e}},Symbol.toStringTag,{value:"Module"})),Nn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>S("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const i=[];let s=1;for(let a=e;a<=t;a+=1)i.push({id:`${s}_${a}`,title:`${a}`,value:a}),s=s+1;return i},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),zn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>S("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Fi=Object.freeze(Object.defineProperty({__proto__:null,getCalendarMonthNameViaMonthNumber:(e,t="en-US")=>{const i=new Date(2e3,e-1,1);return new Intl.DateTimeFormat(t,{month:"long"}).format(i)},getGidsCalendarHeaderPanelClassNames:e=>S("gids-calendar-header-panel",e)},Symbol.toStringTag,{value:"Module"})),On=Object.freeze(Object.defineProperty({__proto__:null,generateCalendarDays:({currentMonth:e,currentYear:t})=>{if(!t||!e)return[];const i=t,s=e-1,a=new Date(i,s,1).getDay(),n=new Date(i,s+1,0).getDate(),o=new Date(i,s,0).getDate(),l=[],d=new Date().toISOString().split("T")[0];for(let c=a-1;c>=0;c--){const h=o-c,p=s===0?12:s,u=`${s===0?i-1:i}-${String(p).padStart(2,"0")}-${String(h).padStart(2,"0")}`;l.push({day:h,isCurrentMonth:!1,dateString:u,isToday:d===u})}for(let c=1;c<=n;c++){const h=`${i}-${String(e).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!0,dateString:h,isToday:d===h})}const g=42-l.length;for(let c=1;c<=g;c++){const h=s===11?1:s+2,m=`${s===11?i+1:i}-${String(h).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!1,dateString:m,isToday:d===m})}return l},generateCalendarWeekdays:()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],getGidsCalendarClassNames:({width:e},t)=>S("gids-calendar",{"gids-calendar--width-fixed":e==="fixed","gids-calendar--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Rn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>S("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),Fn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>S("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Gn=Object.freeze(Object.defineProperty({__proto__:null,getGidsLineChartClassNames:({breakpoint:e},t)=>S("gids-line-chart",{"gids-line-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Vn=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>S("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),jn=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>S("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsLevelGaugeClassNames:({breakpoint:e},t)=>S("gids-level-gauge",{"gids-level-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Bn=Object.freeze(Object.defineProperty({__proto__:null,getGidsProgressCircleClassNames:({breakpoint:e},t)=>S("gids-progress-circle",{"gids-progress-circle--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),qn=Object.freeze(Object.defineProperty({__proto__:null,getGidsActivityGaugeClassNames:({breakpoint:e},t)=>S("gids-activity-gauge",{"gids-activity-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Hn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartClassNames:e=>S("gids-chart",e)},Symbol.toStringTag,{value:"Module"})),St=Symbol("defaultPath"),Gi=Symbol("pathSet"),Et="gids-asset-paths-set";class Wn extends EventTarget{#e=new Map;constructor(){super()}#t(t,i){this.#e.set(t,i)}#i(t){return this.#e.get(t)??null}#s=()=>{this.dispatchEvent(new Event(Et))};haveAssetPathsBeenSet(){return this.#i(Gi)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(St,t);else{for(const s in t)this.#t(s,t[s]);i&&this.#t(St,i)}this.#t(Gi,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const i=this.#i(t);if(i===null){const s=this.#i(St);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Et,t,{once:!0}),()=>{this.removeEventListener(Et,t)}}}const Pt=Symbol.for("GIDS"),Un=()=>(globalThis[Pt]===void 0&&(globalThis[Pt]={assetPaths:{}}),globalThis[Pt]),Qn=e=>{const t=Un().assetPaths;return t[e]===void 0&&(t[e]=new Wn),t[e]};function We(){return Qn("@ganpatiinfo/gids-web-shared")}function Xn(){return We().haveAssetPathsBeenSet()}function Kn(e,t){We().setAssetPaths(e,t)}function Vi(e){return We().getAssetFilePath(e)}function Zn(e){return We().onAssetPathsSet(e)}let Jn=0;const Ue=(e,t="gids")=>e||`${t}-${Jn++}`,er=e=>e.type==="hidden",tr=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&&!er(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},ji=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:ir}=Ra,{calculateStrokeDasharray:sr,thickness:Yi,radius:Bi,centerPosition:Qe,viewBox:ar}=Ua,Tt=({size:e,indeterminate:t,value:i,max:s,...a})=>{let n;return t||(n={strokeDashArray:sr(i,s||0),strokeDashoffset:"0"}),r("svg",{class:ir({size:e,indeterminate:t,value:i}),viewBox:ar,...a},r("circle",{class:"gids-spinner-control__track",cx:Qe,cy:Qe,r:Bi,"stroke-width":Yi}),r("circle",{style:n,class:"gids-spinner-control__progress",cx:Qe,cy:Qe,r:Bi,"stroke-width":Yi}))},{getGidsSpinnerClassNames:nr}=Fa,{getElementVisibility:rr}=qa,ae=({label:e,supportingText:t,size:i,indeterminate:s,value:a,max:n,class:o,...l})=>{const{hasLabel:d,hasSupportingText:g}=rr({label:e,supportingText:t});return r("span",{class:nr({size:i},o),...l},r(Tt,{size:i,indeterminate:s,value:a,max:n}),d&&r("span",{class:"gids-spinner__label"},e),g&&r("span",{class:"gids-spinner__supporting-text"},t))},{getGidsChartLegendClassNames:or}=Fn,qi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=or({orientation:this.orientation});return r("div",{key:"cf7740304d4b3616d7bc15d2a2009c537665bbc7",class:e},r("slot",{key:"940d3744a6ea0da0684ff2d16c9734e8d265b485"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function me(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,qi))}))}me();const Hi={"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"]},Wi=new Map;for(const e in Hi)for(const t of Hi[e])Wi.set(t,e);function lr(e){return Wi.get(e)}function Ui(e,t="regular",i){const s=lr(e);let a=s??"";return i&&s&&(a=i(s)??s),`${a}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:dr}=Ga,D=({name:e,size:t,appearance:i,alt:s,class:a,titleId:n,src:o,...l})=>{const d=Ue(n);let g=o;return g===void 0&&Xn()&&(g=Ui(e,i,Vi)),r("svg",{ref:c=>{g===void 0&&Zn((()=>{(function(h,p,m){if(!h)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ui(p,m,Vi)),h.appendChild(u)})(c,e,i)}))},width:"16",height:"16",class:dr({size:t},a),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:d,...l},s!==""&&r("title",{id:d},s||e),g!==void 0?r("use",{href:g}):null)},{getGidsChartLegendItemClassNames:cr}=Rn,Qi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}render(){const e=cr({seriesType:this.seriesType,orientation:this.orientation});return r("div",{key:"8878b090e147405a847be15581708ec707a806b1",class:e},r("div",{key:"8ac35d56d1e31cbc613490bec5e5d5a698c5aa7c",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},r(D,{key:"2edad86b9fd18809923775308e580f39688a7f47",name:"new",alt:"new_icon",appearance:"filled"})),r("span",{key:"db1611c5d945b5e470623d0ac1c93a3bfd24f1e7",class:"gids-chart-legend-item__label"},r("slot",{key:"e3ad93df0b136e4f80a214131caf77c01dac9049"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-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);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}]);function fe(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,Qi))}))}fe();const{getGidsActivityGaugeClassNames:hr}=qn,Xi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartData=[],this.label="",this.size="xs",this.legend="none",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendChanged(e){this.legend=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-activity-gauge__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.map((c=>c.value||0)),t=e.length>0?Math.max(...e):0,i=Math.max(1e3,t),s=i.toLocaleString(),a=hr({breakpoint:this.breakpoint}),n=[{radius:42,strokeWidth:5.5},{radius:34,strokeWidth:5.5},{radius:26,strokeWidth:5.5}],o=this.size==="xxs",l=typeof this.label=="string"&&this.label.trim()!=="",d=this.legend&&this.legend==="right"&&this.breakpoint!=="mobile",g=this.legend&&(this.legend==="bottom"||this.breakpoint==="mobile");return r("div",{class:a},r("div",{class:"gids-activity-gauge__main-container"},r("div",{class:"gids-activity-gauge__chart-stage-container"},r("div",{class:`gids-activity-gauge__svg-wrapper gids-activity-gauge--size-${this.size}`},r("svg",{viewBox:"0 0 100 100",class:"gids-activity-gauge__chart-vector"},this.chartData.slice(0,3).map(((c,h)=>{const p=n[h]||n[0]||{radius:26,strokeWidth:5.5},m=i>0?Math.min(Math.max((c.value||0)/i,0),1):0,u=2*Math.PI*p.radius,f=`${m*u} ${u}`;return r("g",{key:c.label||h},r("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:"gids-activity-gauge__track-background"}),r("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:`gids-activity-gauge__segment gids-activity-gauge__segment-series-${h+1}`,"stroke-dasharray":f,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"}))}))),r("div",{class:"gids-activity-gauge__center-content"},l&&!o?r("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label):null,r("span",{class:`gids-activity-gauge__value-common gids-activity-gauge__value-${this.size}`},s)))),d?r("div",{class:"gids-activity-gauge__sidebar"},r("gids-chart-legend",{orientation:"vertical"},this.chartData.slice(0,3).map(((c,h)=>r("gids-chart-legend-item",{key:c.label,seriesType:`${h+1}`,orientation:"vertical"},c.label))))):null),o&&l?r("div",{class:"gids-activity-gauge__bottom-content"},r("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label)):null,g?r("div",{class:"gids-activity-gauge__legend-container gids-activity-gauge__legend-container--bottom"},r("gids-chart-legend",{orientation:"horizontal"},this.chartData.slice(0,3).map(((c,h)=>r("gids-chart-legend-item",{key:c.label,seriesType:`${h+1}`,orientation:"horizontal"},c.label))))):null)}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-activity-gauge__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-activity-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-activity-gauge--size-xxs{width:180px;height:180px}.gids-activity-gauge--size-xs{width:220px;height:220px}.gids-activity-gauge--size-sm{width:260px;height:260px}.gids-activity-gauge--size-md{width:300px;height:300px}.gids-activity-gauge--size-lg{width:340px;height:340px}.gids-activity-gauge__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-activity-gauge__chart-vector{display:block;width:100%;height:100%}.gids-activity-gauge__track-background{fill:none;stroke:var(--gids-color-background-brand-subtlest-default);stroke-linecap:round}.gids-activity-gauge__segment{fill:none;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-1{stroke:var(--gids-color-icon-subtle)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-2{stroke:var(--gids-color-icon-warning)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-3{stroke:var(--gids-color-icon-danger)}.gids-activity-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-activity-gauge__label-xxs{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)}.gids-activity-gauge__label-xs{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)}.gids-activity-gauge__label-sm{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)}.gids-activity-gauge__label-md{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)}.gids-activity-gauge__label-lg{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)}.gids-activity-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-activity-gauge__value-xxs{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)}.gids-activity-gauge__value-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-common{color:var(--gids-color-text-default)}.gids-activity-gauge__bottom-content{display:flex;justify-content:center;align-items:center;text-align:center}.gids-activity-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-activity-gauge",{breakpoint:[1],chartData:[16],label:[1],size:[1],legend:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}]);function Ki(){typeof customElements<"u"&&["gids-activity-gauge","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-activity-gauge":customElements.get(e)||customElements.define(e,Xi);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}Ki();const gr=Xi,{getGidsBarChartClassNames:pr}=Vn,Zi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}render(){if(this.chartLoading)return r("div",{class:"gids-bar-chart__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this?.chartData?.[0]?.data?.map((u=>u.label))??[],t=e.length,i=Array(t).fill(0);this.chartData.forEach((u=>{Array.isArray(u?.data)&&u.data.forEach(((f,v)=>{v<t&&(i[v]=(i[v]??0)+(f?.value||0))}))}));const s=i.length>0?Math.max(...i):10,a=Math.pow(10,Math.floor(Math.log10(s||1)));let n=a;s/a<=2?n=a/5:s/a<=5&&(n=a/2);const o=Math.ceil(s/n)*n,l=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const u=[...this.dataPoints].sort(((y,b)=>y-b)),f=u.length>1?(u[1]??200)-(u[0]??0):200,v=Math.max(...u,o,...i),_=Math.ceil(v/(f||1));for(let y=0;y<=_;y++)l.push(y*f)}else{const f=o/4;for(let v=0;v<5;v++)l.push(Math.round(0+v*f))}const d=Math.max(...l)-0||1,g=pr({breakpoint:this.breakpoint});let c=!1,h=!1;this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(h=!0);const p=100/t,m=.4*p;return r("div",{class:g},c?r("div",{class:"gids-bar-chart__header"},r("gids-chart-legend",{orientation:"horizontal"},this.chartData.map(((u,f)=>r("gids-chart-legend-item",{key:u.label,seriesType:`${f+1}`,orientation:"horizontal"},u.label))))):null,r("div",{class:"gids-bar-chart__main-container"},r("div",{class:"gids-bar-chart__grid-layout"},r("span",{class:"gids-bar-chart__y-axis-label"},this.yAxisLabel),r("div",{class:"gids-bar-chart__chart-stage-container"},this.yAxisVisible?r("div",{class:"gids-bar-chart__y-axis-scale-container"},l.map((u=>r("span",{class:"gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value",key:u,style:{bottom:(u-0)/d*100+"%"}},u)))):null,r("div",{class:"gids-bar-chart__chart-stage"},r("svg",{viewBox:"0 0 100 100",class:"gids-bar-chart__chart-vector",preserveAspectRatio:"none"},l.map((u=>{const f=100-(u-0)/d*100;return r("line",{x1:"0",y1:f,x2:"100",y2:f,class:"gids-bar-chart__grid-line",key:u})})),e.map(((u,f)=>{const v=f*p+(p-m)/2;let _=0;const y=[...this.chartData.map(((b,w)=>{if(!Array.isArray(b.data))return null;const x=b.data[f];if(!x)return null;const k=(x.value||0)/d*100,T=100-k-_;return _+=k,{seriesIdx:w,crownY:T,height:k}})).filter((b=>b!==null&&b.height>0))].sort(((b,w)=>w.seriesIdx-b.seriesIdx));return r("g",{key:f},y.map((b=>{const w=.3*m,x=`
6
+ M ${v},${b.crownY+w}
7
+ Q ${v},${b.crownY} ${v+w},${b.crownY}
8
+ H ${v+m-w}
9
+ Q ${v+m},${b.crownY} ${v+m},${b.crownY+w}
10
+ V 100
11
+ H ${v}
12
+ Z
13
+ `.replace(/\s+/g," ").trim();return r("path",{key:b.seriesIdx,d:x,class:`gids-bar-chart__bar gids-bar-chart__series-bar-${b.seriesIdx+1}`})})))}))))),r("div",{class:"gids-bar-chart__x-axis-scale-container"},e.map(((u,f)=>r("span",{class:"gids-bar-chart__scale-text",key:f},u)))),r("span",{class:"gids-bar-chart__x-axis-label"},this.xAxisLabel)),h?r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((u,f)=>r("gids-chart-legend-item",{key:u.label,seriesType:`${f+1}`,orientation:"vertical"},u.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-bar-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-bar-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-bar-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-150);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-bar-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-bar-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-bar-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-bar-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-bar-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-bar-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-bar-chart{}.gids-bar-chart__bar{vector-effect:non-scaling-stroke;}.gids-bar-chart__bar.gids-bar-chart__series-bar-1{fill:var(--gids-color-icon-subtle)}.gids-bar-chart__bar.gids-bar-chart__series-bar-2{fill:var(--gids-color-icon-warning)}.gids-bar-chart__bar.gids-bar-chart__series-bar-3{fill:var(--gids-color-icon-danger)}.gids-bar-chart{}.gids-bar-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-around;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-bar-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-bar-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-bar-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-bar-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function Ji(){typeof customElements<"u"&&["gids-bar-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-bar-chart":customElements.get(e)||customElements.define(e,Zi);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}Ji();const ur=Zi,{getGidsButtonClassNames:mr}=Va,Z=({appearance:e,size:t,destructive:i,positive:s,loading:a,width:n,leadingIcon:o,trailingIcon:l,as:d,disabled:g,class:c,forceIconOnly:h=!1,...p},m)=>{const u=d||"button",f=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in p||(p.type="button"),r(u,{class:mr({appearance:e,size:t,destructive:i,loading:a,width:n,positive:s},h||m.length===0&&ji(o)&&!ji(l),c),disabled:u==="button"?g:void 0,...p},r("span",{class:"gids-button__content"},o,m),a&&r(Tt,{size:f,indeterminate:!0}),l)},{getGidsDropdownMenuGroupClassNames:fr}=Ln,es=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>r("div",{class:fr({type:e},i),...s},e==="loading"?r(ae,{indeterminate:!0,size:"md"}):null,e==="no-options"?r("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsButtonGroupClassNames:br}=on,vr=({layout:e,children:t,class:i})=>r("span",{class:br({layout:e},i)},t),{getGidsHeadingClassNames:yr,getGidsHeadingSupportingTextTypographyClass:_r}=fn,xr=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:a,class:n})=>r("div",{class:yr(n)},r("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?r("span",{class:i==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?r("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${_r(a)}`},t):null:t:null),s?r(vr,{layout:"wrap"},s):null),{getGidsDropdownMenuClassNames:wr}=Tn,ts=({sectionLabel:e,class:t,...i},s)=>r("div",{class:wr(t),...i},e!=null&&e!==""?r(xr,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?r("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsEditButtonClassNames:Cr}=kn,kr=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:a,class:n,...o})=>r("button",{class:Cr({size:i},n),...o,onClick:a,disabled:e},s==="custom"&&t?r("div",null,t):s==="add"?r("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},r(D,{name:"add",appearance:"filled",size:i})):s==="remove"?r("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},r(D,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:Sr}=za,Er=({orientation:e})=>r("hr",{class:Sr({orientation:e})}),{getGidsListItemClassNames:Pr}=Sn,Tr=({id:e,value:t,index:i,defaultSelectedIndex:s,disabled:a,selected:n,editButton:o,onPressEditButton:l,onPressListItem:d,leadingAccessory:g,leadingSupport:c,leadingParagraph:h,trailingContent:p,trailingAccessory:m,trailingSupport:u,trailingParagraph:f,divider:v,role:_="list-item-option",class:y,...b},w)=>r("button",{type:"button",id:e,class:Pr({selected:n,disabled:a},y),role:_,"aria-selected":n?"true":"false",disabled:a,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const x=w;return x?(Array.isArray(x)?x:[x]).map((k=>typeof k=="string"||typeof k=="number"?String(k):k&&typeof k=="object"&&"text"in k?k.text??"":"")).join("").trim():""})(),onClick:x=>{const k=x.currentTarget;if(!k||x.defaultPrevented||k.disabled)return;const T=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelectedIndex:s}});d?.(T)},...b},r("div",{class:"gids-list-item__main-container"},o==null||o==="none"||a?null:r(kr,{size:"md",editButtonType:o,onPressEditButton:l}),g!=null?r("div",{class:a?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},g):null,r("div",{class:"gids-list-item__middle-content-container"},r("div",{class:"gids-list-item__leading-content-container"},r(se,null,w!=null?r("span",{class:a?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},w):null,r("div",{class:"gids-list-item__leading-support-content"},c!=null?typeof c=="string"?r("p",{class:a?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},c):c:null,h!=null?typeof h=="string"?r("p",{class:a?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},h):h:null))),r("div",{class:"gids-list-item__trailing-content-container"},r(se,null,p!=null?typeof p=="string"?r("span",{class:a?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},p):p:null,r("div",{class:"gids-list-item__trailing-support-content"},u!=null?typeof u=="string"?r("p",{class:a?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},u):u:null,f!=null?typeof f=="string"?r("p",{class:a?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},f):f:null)))),n?r("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},r(D,{name:"checkmark",size:"md",appearance:"regular"})):null,n||m==null?null:r("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},m)),v&&!n?r("div",{class:"gids-list-item__divider"},r(Er,{orientation:"horizontal"})):null),{getGidsDropdownItemClassNames:Lr}=Pn,is=({id:e,title:t,class:i,selected:s=!1,disabled:a=!1,role:n="list-item-option",value:o,name:l,onPressDropdownItem:d,index:g,defaultSelectedIndex:c,leadingAccessory:h,divider:p,...m})=>{const u=Lr(typeof i=="string"?i:void 0);return r(Tr,{id:e,index:g??0,defaultSelectedIndex:c,selected:s,disabled:a,role:n,value:o,name:l,leadingAccessory:h,class:u,onPressListItem:f=>{if(f.defaultPrevented)return;const v=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:o,disabled:a,selectedIndex:g,defaultSelectedIndex:c}});d?.(v)},divider:p,...m},t)},{getGidsCalendarMonthListClassNames:Ir,getGidsCalendarMonthListMonths:Mr}=An,ss=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:n,id:o}=t.detail;n||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,month:i,monthInNumber:Number(s),disabled:!1,selectedIndex:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,monthInNumber:Number(i.value),month:i.title,disabled:!1,selectedIndex:i.selectedIndex})},this.monthsList=()=>Mr(),this.getSelectedItem=()=>{const t=this.selectedMonthNumber,i=this.monthsList(),s=i.findIndex((n=>n.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}applySelection(e){this.clearActive(),this.onSelectionMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarMonthChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Ir();return r("div",{key:"a3d78c655f5f3d2fa1c26a06f78d96c6964a8f2b",class:e},r(es,{key:"ee53fe9e5f94249400d4339c5baf0dcebb87218e",type:this.type,supportingText:this.noOptionsText},r(ts,{key:"50059fdc97b6e206ffd3389470d6fd2f25747cbd",sectionLabel:"Months"},this.monthsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(i);return r(is,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider})})))))}get hostElement(){return this}},[0,"gids-calendar-month-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedMonthNumber:[2,"selected-month-number"],onSelectionMonthChange:[16]}]);function Lt(){typeof customElements<"u"&&["gids-calendar-month-list"].forEach((e=>{e==="gids-calendar-month-list"&&(customElements.get(e)||customElements.define(e,ss))}))}Lt();const{getGidsCalendarYearListClassNames:Dr,getGidsCalendarYearListYears:$r,isValidFourDigitYear:as}=Nn,ns=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:n,id:o}=t.detail;n||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,year:Number(s),disabled:!1,selectedIndex:a,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,year:Number(i.value),disabled:!1,selectedIndex:i.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>$r({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,i=this.yearsList(),s=i.findIndex((n=>n.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&as(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&as(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Dr();return r("div",{key:"afdd86d1ea769bf6eff33c2710277d297605fe7a",class:e},r(es,{key:"08adcde70afe51cb1a4696b8a8b1c1d0cc42d2f5",type:this.type,supportingText:this.noOptionsText},r(ts,{key:"5fdf94ef27bf0c1ec096744fc6de970f5539a54f",sectionLabel:"Years"},this.yearsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(t.value);return r(is,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function It(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,ns))}))}It();const{getGidsDropdownPickerClassNames:Ar}=zn,rs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:i,title:s,disabled:a,id:n}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:n,value:i,title:s,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof a!="string"||a.length===0)return;const n=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";typeof n=="string"&&n.length!==0&&this.applySelection({id:n,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Ar({expanded:e}),i=typeof this.idPicker=="string"?this.idPicker:void 0,s=i?`${i}__menu`:void 0;return r("div",{key:"60aba19be894123a4fb11cf8d682c89c1e1dfc9c",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},r(Z,{key:"6e691f9fee63c676d7a66d42024a4688730f9503",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?r("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):r(D,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),r("div",{key:"b44514baae627324d71f1114c3ba18bc6b946b01",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},r("slot",{key:"1e3b9e592646a1bda41d2cf5bfc8556908c0499f"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function Mt(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,rs))}))}Mt();function os(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=os(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Nr(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=os(e))&&(s&&(s+=" "),s+=t);return s}const{getGidsCalendarHeaderPanelClassNames:zr,getCalendarMonthNameViaMonthNumber:be}=Fi,ls=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="primary",this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.panelDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.expandedMonthPicker=!1,this.expandedYearPicker=!1,this.internalPreviousDisabled=!1,this.internalNextDisabled=!1,this.suppressNextMenuClickSelection=!1,this.suppressNextActionClickSelection=!1,this.fallbackYear=new Date().getFullYear(),this.fallbackMonth=1,this.fallbackStartYear=new Date().getFullYear(),this.fallbackEndYear=new Date().getFullYear()+100,this.handleMonthPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:i?.monthInNumber??this.fallbackMonth,newSelectedYear:this.panelYear??this.fallbackYear}),this.applyMonthSelection({id:i.id,type:"month",month:i.month,monthNumber:Number(i.monthInNumber),year:this.panelYear,disabled:!1,panelValue:`${i.month} ${this.panelYear}`})},this.handleYearPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:this?.panelMonthNumber??this.fallbackMonth,newSelectedYear:i?.year??this.fallbackYear}),this.applyYearSelection({id:i.id,type:"year",month:this.panelMonth,monthNumber:Number(this?.panelMonthNumber),year:i?.year,disabled:!1,panelValue:`${this.panelMonth} ${i.year}`})},this.handlePreviousActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isPreviousActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onPreviousActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=be(i);this.applyActionsSelection({type:"previous",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})},this.handleNextActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isNextActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onNextActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=be(i);this.applyActionsSelection({type:"next",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})}}handleSelectedMonthNumberChange(e){e!=null&&(this.panelMonthNumber=e,this.panelMonth=be(e),this.syncPanelDisplayValue())}handleSelectedYearChange(e){e!=null&&(this.panelYear=e,this.syncPanelDisplayValue())}handleExpandedMonthPickerChange(e){e&&!this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1),e&&this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1)}handleExpandedYearPickerChange(e){e&&!this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1),e&&this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1)}handleMonthPickerInteractivityChange(){!this.isMonthPickerInteractive()&&this.expandedMonthPicker&&this.setExpandedMonthPickerState(!1)}handleYearPickerInteractivityChange(){!this.isYearPickerInteractive()&&this.expandedYearPicker&&this.setExpandedYearPickerState(!1)}handleAppearanceChange(e){this.appearance=e}connectedCallback(){this.panelMonthNumber=this.selectedMonthNumber??this.fallbackMonth,this.panelMonth=be(this.selectedMonthNumber??this.fallbackMonth),this.panelYear=this.selectedYear??this.fallbackYear,this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`,this.syncPanelDisplayValue(),this.setPreviousActionInteractivity(),this.setNextActionInteractivity()}applyMonthSelection(e){this.setExpandedMonthPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelMonthChange",{bubbles:!0,composed:!0,detail:e}))}applyYearSelection(e){this.setExpandedYearPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelYearChange",{bubbles:!0,composed:!0,detail:e}))}setExpandedMonthPickerState(e,t){const i=!!e;i&&!this.isMonthPickerInteractive()||this.expandedMonthPicker!==i&&(this.expandedMonthPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelMonthToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:i,expandedYearPicker:!!this.expandedYearPicker,originalEvent:t}})))}setExpandedYearPickerState(e,t){const i=!!e;i&&!this.isYearPickerInteractive()||this.expandedYearPicker!==i&&(this.expandedYearPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelYearToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:!!this.expandedMonthPicker,expandedYearPicker:i,originalEvent:t}})))}syncPanelDisplayValue(){this.panelMonth&&this.panelYear&&(this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`)}applyActionsSelection(e){this.setNextActionInteractivity(),this.setPreviousActionInteractivity(),e.type==="previous"&&this.onPreviousChange?.(e),e.type==="next"&&this.onNextChange?.(e)}checkPrevYearIsAllowed(e){return e>=(this.startYear??this.fallbackStartYear)}checkNextYearIsAllowed(e){return e<=(this.endYear??this.fallbackEndYear)}isPreviousActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===1?this.checkPrevYearIsAllowed((this.panelYear??this.fallbackYear)-1)&&!this.previousDisabled:!this.previousDisabled}isNextActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===12?this.checkNextYearIsAllowed((this.panelYear??this.fallbackYear)+1)&&!this.nextDisabled:!this.nextDisabled}onPreviousActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isPreviousActionInteractive()?{newSelectedMonthNumber:e===1?12:e-1,newSelectedYear:e===1?t-1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}onNextActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isNextActionInteractive()?{newSelectedMonthNumber:e===12?1:e+1,newSelectedYear:e===12?t+1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}isMonthPickerInteractive(){return!this.monthPickerDisabled}isYearPickerInteractive(){return!this.yearPickerDisabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}updatePanelMonth(e){e?(this.selectedMonthNumber=e,this.panelMonth=be(e),this.panelMonthNumber=e):(this.selectedMonthNumber=this.fallbackMonth,this.panelMonth=be(this.fallbackMonth),this.panelMonthNumber=this.fallbackMonth)}updatePanelYear(e){e?(this.selectedYear=e,this.panelYear=e):this.panelYear=this.fallbackYear}setPreviousActionInteractivity(){this.internalPreviousDisabled=!this.isPreviousActionInteractive()}setNextActionInteractivity(){this.internalNextDisabled=!this.isNextActionInteractive()}updateActionProps({newSelectedYear:e,newSelectedMonthNumber:t}){this.updatePanelYear(e),this.updatePanelMonth(t),this.syncPanelDisplayValue()}getPanelValue(){return this.panelDisplayValue}render(){const e=zr(),t=this.expandedMonthPicker&&this.isMonthPickerInteractive()&&!this.expandedYearPicker,i=this.expandedYearPicker&&this.isYearPickerInteractive()&&!this.expandedMonthPicker,s=this.internalPreviousDisabled||this.previousDisabled,a=this.internalNextDisabled||this.nextDisabled;return r("div",{key:"f133f5f42023ed81b5768988dd56e37f528307bf",class:e},r(Z,{key:"78c89c0e2626c03a9ae2cb03aee07c8f4b524e66",leadingIcon:r(D,{name:"arrow-left",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handlePreviousActionClick,disabled:s}),r("div",{key:"6765fafe678ff7878738cc5420b095eb1e160f45",class:"gids-calendar-header-panel__main-container"},r("gids-dropdown-picker",{key:"816c126bfc83578f51e43e12c4e05d03973c09ea",expanded:t,appearance:this.appearance,size:"sm",value:`${this.panelMonthNumber}`,disabled:this.monthPickerDisabled},r("gids-calendar-month-list",{key:"831eed0f1a19b62abd582650f15e36fd45829667",type:"default",selectedMonthNumber:this.panelMonthNumber,onSelectionMonthChange:this.handleMonthPickerMenuClick})),r("span",{key:"619fab64e1bb4c10f8be1f6a7aa3b63802f08441",class:Nr("gids-calendar-header-panel__panel-value",{"gids-calendar-header-panel__panel-value-disabled":this.panelDisabled})},this.getPanelValue()),r("gids-dropdown-picker",{key:"323800237b9f31ec23d3a5308599dcd74bf51515",expanded:i,appearance:this.appearance,size:"sm",value:`${this.panelYear}`,disabled:this.yearPickerDisabled},r("gids-calendar-year-list",{key:"58bb467fed7bef005c5f57af6fffde64b43f6781",type:"default",selectedYear:this.panelYear,startYear:this.startYear??this.fallbackStartYear,endYear:this.endYear,onSelectionYearChange:this.handleYearPickerMenuClick}))),r(Z,{key:"22ccdac9dd0824659214bc29da5ea1a4a7e0bed3",leadingIcon:r(D,{name:"arrow-right",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handleNextActionClick,disabled:a}))}get hostElement(){return this}static get watchers(){return{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}}static get style(){return".gids-calendar-header-panel{display:flex;justify-content:center;align-items:center;align-self:stretch;gap:var(--gids-gap-150);width:100%}.gids-calendar-header-panel__main-container{display:flex;flex:1 0 0;align-items:center;justify-content:center;align-self:stretch;gap:var(--gids-gap-100)}.gids-calendar-header-panel__panel-value{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);text-align:center}.gids-calendar-header-panel__panel-value-disabled{color:var(--gids-color-text-disabled)}"}},[0,"gids-calendar-header-panel",{selectedMonthNumber:[1538,"selected-month-number"],selectedYear:[1538,"selected-year"],startYear:[1538,"start-year"],endYear:[1538,"end-year"],appearance:[1],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],panelDisabled:[4,"panel-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],expandedMonthPicker:[1540,"expanded-month-picker"],expandedYearPicker:[1540,"expanded-year-picker"],onPreviousChange:[16],onNextChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],panelMonth:[32],panelMonthNumber:[32],panelYear:[32],panelDisplayValue:[32],internalPreviousDisabled:[32],internalNextDisabled:[32]},void 0,{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}]);function ds(){typeof customElements<"u"&&["gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dropdown-picker"].forEach((e=>{switch(e){case"gids-calendar-header-panel":customElements.get(e)||customElements.define(e,ls);break;case"gids-calendar-month-list":customElements.get(e)||Lt();break;case"gids-calendar-year-list":customElements.get(e)||It();break;case"gids-dropdown-picker":customElements.get(e)||Mt()}}))}ds();const Or=ls,Rr=ss,Fr=ns,ve=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let cs=!1;ve&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(ve):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Dt=null;const $t=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{At()})):void 0,At=()=>{if(ve===void 0)return!1;const e=(()=>{if(ve===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let a=-1,n=0;for(let o=0;o<s.cssRules.length;o++){const l=s.cssRules.item(o);if(l?.cssText.startsWith("gids-global-styles-start"))a=o;else if(a>-1){if(l?.cssText.startsWith("gids-global-styles-end")){n=o-a+1;break}t.push(l)}}if(a>-1)return{rulesStartIndex:a,originalRulesCount:n,rules:t,styleSheet:s}}catch(a){if(!(a instanceof DOMException))throw a}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return $t!==void 0&&t!==Dt&&(Dt&&$t.disconnect(),t instanceof Element&&$t.observe(t,{childList:!0,characterData:!0,subtree:!0}),Dt=t),ve.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:a,styleSheet:n}=i;for(let o=0;o<a;o++)n.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},O=()=>(cs||(cs=At()),ve),hs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return r(D,{key:"7c74510543b6eae79c31fbf55124ad4e37f64c63",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Nt(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,hs))}))}Nt();const{getGidsDotClassNames:zt}=Dn,gs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=zt({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=zt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=zt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return r("gids-icon",{key:"1bb15dd637ede00b3e465e3da72f412ef0d710f9",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function ps(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,gs);break;case"gids-icon":customElements.get(e)||Nt()}}))}ps();const{getGidsCalendarCellClassNames:Gr}=Mn,us=({label:e,dot:t,disabled:i,selected:s,today:a,onPressCalendarCell:n,class:o,role:l="gridcell",cellType:d="effective",...g})=>{const c=!i&&d==="effective";return r("button",{class:Gr({disabled:i,selected:s,today:a,cellType:d,dot:t},o),type:"button",role:l,"aria-selected":s?"true":"false",disabled:i,onClick:h=>{if(h.defaultPrevented||i||!c)return;const p=new CustomEvent("onPressCalendarCell",{bubbles:!0,composed:!0,detail:{cellValue:e,selected:s,disabled:i,dot:t,today:a}});n&&n(p)},...g},e?r("span",null,e):null,t?r("gids-dot",{appearance:(()=>{let h="subtle";return s&&!i&&(h="static-inverse"),h})(),disabled:i,size:"xs"}):null)},{getGidsCalendarDayCellClassNames:Vr}=$n,jr=({id:e,label:t,class:i,...s})=>r(us,{...s,id:e,label:t,name:t,dot:!1,disabled:!1,selected:!1,today:!1,cellType:"non-effective",class:Vr(i)}),{getGidsCalendarClassNames:Yr,generateCalendarDays:Br,generateCalendarWeekdays:qr}=On,{getCalendarMonthNameViaMonthNumber:Hr}=Fi,ms=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.panelActionsAppearance="primary",this.dotVisibleDates=[],this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.panelDisabled=!1,this.currentMonth=new Date().getMonth()+1,this.currentYear=new Date().getFullYear(),this.handleCHPOnPreviousActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPreviousChange&&this.onPreviousChange(t))},this.handleCHPOnNextActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onNextChange&&this.onNextChange(t))},this.handleCHPOnPanelMonthChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelMonthChange&&this.onPanelMonthChange(t))},this.handleCHPOnPanelYearChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelYearChange&&this.onPanelYearChange(t))},this.setLocalStates=t=>{const{monthNumber:i,year:s}=t;i&&(this.currentMonth=Number(i)),s&&(this.currentYear=Number(s))}}handleActiveMonthPropChange(e){e!=null&&(this.currentMonth=Number(e))}handleActiveYearPropChange(e){e!=null&&(this.currentYear=Number(e))}componentWillLoad(){this.activeMonthNumber!=null&&(this.currentMonth=Number(this.activeMonthNumber)),this.activeYear!=null&&(this.currentYear=Number(this.activeYear))}handleDateCellClick({event:e,dateStr:t,isCurrentMonth:i}){if(e?.detail?.disabled)return;const a=new Date().toISOString().split("T")[0],n=Hr(this.currentMonth);this.onSelectionCalendarCell&&this.onSelectionCalendarCell({currentActivePanelState:{monthNumber:this.currentMonth,year:this.currentYear,month:n,panelValue:`${n} ${this.currentYear}`},date:t,isCurrentMonth:i,selected:!0,today:a===t,dotVisibleDates:this.dotVisibleDates??[]})}render(){const e=Br({currentYear:this.currentYear,currentMonth:this.currentMonth}),t=qr(),i=Yr({width:this.width});return r("div",{key:"aff90d6c0767654bc26a6d8d50af709d9aa8cdb9",class:i},r("gids-calendar-header-panel",{key:"c3aba25935a89601684765269f5b4c51c7060519",appearance:this.panelActionsAppearance,startYear:this.startYear,endYear:this.endYear,monthPickerDisabled:this.monthPickerDisabled,yearPickerDisabled:this.yearPickerDisabled,previousDisabled:this.previousDisabled,nextDisabled:this.nextDisabled,panelDisabled:this.panelDisabled,selectedMonthNumber:this.currentMonth,selectedYear:this.currentYear,onPanelMonthChange:this.handleCHPOnPanelMonthChangeEvent,onPanelYearChange:this.handleCHPOnPanelYearChangeEvent,onNextChange:this.handleCHPOnNextActionEvent,onPreviousChange:this.handleCHPOnPreviousActionEvent}),r("div",{key:"de085679ec28367ad327d87e69ff5a8aa69739cc",class:"gids-calendar__weekdays-grid"},t.map((s=>r(jr,{label:s})))),r("div",{key:"e538630d3e1084de6b76be7c4eea40ab835267c4",class:"gids-calendar__days-grid"},e.map((s=>{const a=this.selectedDate===s.dateString,n=this.dotVisibleDates?.includes(s.dateString);return r(us,{label:s.day+"",today:s.isToday,selected:a,dot:n,cellType:"effective",disabled:!s.isCurrentMonth,onPressCalendarCell:o=>this.handleDateCellClick({event:o,dateStr:s.dateString,isCurrentMonth:s.isCurrentMonth})})}))))}static get watchers(){return{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}}static get style(){return".gids-calendar{display:flex;flex-direction:column;background-color:transparent;box-sizing:border-box;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-300);gap:var(--gids-gap-200)}.gids-calendar--width-fixed{width:100%;max-width:var(--gids-width-xs)}.gids-calendar--width-intrinsic{width:100%;max-width:100%}.gids-calendar--width-intrinsic .gids-calendar-cell{--cell-width:100%;--cell-aspect-ratio:1 / 1}.gids-calendar__weekdays-grid{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center;align-items:center;width:100%}.gids-calendar__days-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:var(--gids-gap-050);justify-items:center;align-items:center;width:100%}"}},[0,"gids-calendar",{width:[1],panelActionsAppearance:[1,"panel-actions-appearance"],selectedDate:[1,"selected-date"],dotVisibleDates:[16],startYear:[2,"start-year"],endYear:[2,"end-year"],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],panelDisabled:[4,"panel-disabled"],activeMonthNumber:[2,"active-month-number"],activeYear:[2,"active-year"],onNextChange:[16],onPreviousChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],onSelectionCalendarCell:[16],currentMonth:[32],currentYear:[32]},void 0,{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}]);function Wr(){typeof customElements<"u"&&["gids-calendar","gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dot","gids-dropdown-picker","gids-icon"].forEach((e=>{switch(e){case"gids-calendar":customElements.get(e)||customElements.define(e,ms);break;case"gids-calendar-header-panel":customElements.get(e)||ds();break;case"gids-calendar-month-list":customElements.get(e)||Lt();break;case"gids-calendar-year-list":customElements.get(e)||It();break;case"gids-dot":customElements.get(e)||ps();break;case"gids-dropdown-picker":customElements.get(e)||Mt();break;case"gids-icon":customElements.get(e)||Nt()}}))}Wr();const Ur=ms,Qr=Qi,Xr=qi,{getGidsButtonDockClassNames:Kr}=ln,Zr=({class:e,primaryChildren:t,secondaryChildren:i,...s})=>r("div",{class:Kr(e),...s},r("div",{class:"gids-button-dock__secondary-area"},i),r("div",{class:"gids-button-dock__primary-area"},t)),{getGidsFeedbackBlockClassNames:Jr}=Cn,Ie=({title:e,supportingText:t,image:i,children:s})=>r("div",{class:Jr()},r("div",{class:"gids-feedback-block__inner-container"},i&&r("div",{class:"gids-feedback-block__image-container"},i),r("p",{class:"gids-feedback-block__title"},r("strong",null,e)),r("div",{class:"gids-feedback-block__supporting-text"},t),s&&r(Zr,{primaryChildren:s}))),{getGidsLevelGaugeClassNames:eo}=Yn,fs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.label="Completed",this.size="xxs",this.color="amber",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-level-gauge__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));let e=0;typeof this.value=="number"&&!isNaN(this.value)&&(e=this.value);const t=Ai;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=t&&this.value>=0))return r("div",{class:"gids-level-gauge__no-data"},r(Ie,{title:Ni,supportingText:zi(100),image:r("slot",{name:"chartFeedbackBlockImage"})}));const i=Math.min(Math.max(e/t,0),1),s=`${Math.round(100*i)}%`,a=eo({breakpoint:this.breakpoint}),n=2*Math.PI*40,o=`${i*n} ${n}`,l=this.size==="xxs";return r("div",{class:a},r("div",{class:`gids-level-gauge__main-container gids-level-gauge__main-container--variant-${this.color}`},r("div",{class:`gids-level-gauge__svg-wrapper gids-level-gauge__svg-wrapper--size-${this.size}`},r("svg",{viewBox:"0 0 100 100",class:"gids-level-gauge__chart-vector"},r("circle",{cx:"50",cy:"50",r:40,class:"gids-level-gauge__track-background"}),r("circle",{cx:"50",cy:"50",r:40,class:`gids-level-gauge__segment gids-level-gauge__segment--variant-${this.color}`,"stroke-dasharray":o,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"})),r("div",{class:"gids-level-gauge__center-content"},l?null:r("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label),r("span",{class:`gids-level-gauge__percentage-common gids-level-gauge__percentage-${this.size}`},s))),l?r("div",{class:"gids-level-gauge__bottom-content"},r("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],max:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-level-gauge{display:block;box-sizing:border-box}.gids-level-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-level-gauge__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-level-gauge__svg-wrapper--size-xxs{width:180px;height:180px}.gids-level-gauge__svg-wrapper--size-xs{width:220px;height:220px}.gids-level-gauge__svg-wrapper--size-sm{width:260px;height:260px}.gids-level-gauge__svg-wrapper--size-md{width:300px;height:300px}.gids-level-gauge__svg-wrapper--size-lg{width:340px;height:340px}.gids-level-gauge__chart-vector{display:block;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__main-container{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-level-gauge__main-container--variant-amber .gids-level-gauge__track-background{stroke:rgb(248, 248, 248)}.gids-level-gauge__main-container--variant-burgundy .gids-level-gauge__track-background{stroke:rgb(246, 243, 243)}.gids-level-gauge__main-container--variant-teal .gids-level-gauge__track-background{stroke:rgb(232, 245, 250)}.gids-level-gauge__track-background{fill:none;stroke-width:6}.gids-level-gauge__segment{fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-level-gauge__segment--variant-amber{stroke:rgb(80, 82, 88)}.gids-level-gauge__segment--variant-burgundy{stroke:rgb(132, 84, 95)}.gids-level-gauge__segment--variant-teal{stroke:rgb(23, 60, 102)}.gids-level-gauge{}.gids-level-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;gap:var(--gids-gap-025)}.gids-level-gauge__label-xxs{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)}.gids-level-gauge__label-xs{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)}.gids-level-gauge__label-sm{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)}.gids-level-gauge__label-md{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)}.gids-level-gauge__label-lg{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)}.gids-level-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-level-gauge__percentage-xxs{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)}.gids-level-gauge__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-common{color:var(--gids-color-text-default)}.gids-level-gauge{}.gids-level-gauge__bottom-content{display:flex;justify-content:center;text-align:center}.gids-level-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[260,"gids-level-gauge",{breakpoint:[1],value:[2],label:[1],size:[1],color:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],max:[{valueChanged:0}]}]);function bs(){typeof customElements<"u"&&["gids-level-gauge"].forEach((e=>{e==="gids-level-gauge"&&(customElements.get(e)||customElements.define(e,fs))}))}bs();const{getGidsLineChartClassNames:to}=Gn,vs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}render(){if(this.chartLoading)return r("div",{class:"gids-line-chart__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.flatMap((p=>Array.isArray(p?.data)?p.data.map((m=>m.value)):[])),t=e.length>0?Math.max(...e):10,i=Math.pow(10,Math.floor(Math.log10(t||1)));let s=i;t/i<=2?s=i/5:t/i<=5&&(s=i/2);const a=Math.ceil(t/s)*s;let n=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0)n=[...this.dataPoints].sort(((p,m)=>p-m));else{const m=a/4;for(let u=0;u<5;u++)n.push(Math.round(0+u*m))}const o=Math.max(...n,a)-0||1,l=this?.chartData?.[0]?.data?.map((p=>p.label))??[],d=l.length,g=to({breakpoint:this.breakpoint});let c=!1,h=!1;return this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(h=!0),r("div",{class:g},c?r("div",{class:"gids-line-chart__header"},r("gids-chart-legend",{orientation:"horizontal"},this.chartData.map(((p,m)=>r("gids-chart-legend-item",{key:p.label,seriesType:`${m+1}`,orientation:"horizontal"},p.label))))):null,r("div",{class:"gids-line-chart__main-container"},r("div",{class:"gids-line-chart__grid-layout"},r("span",{class:"gids-line-chart__y-axis-label"},this.yAxisLabel),r("div",{class:"gids-line-chart__chart-stage-container"},this.yAxisVisible?r("div",{class:"gids-line-chart__y-axis-scale-container"},n.map((p=>r("span",{class:"gids-line-chart__scale-text gids-line-chart__y-axis-scale-value",key:p,style:{bottom:(p-0)/o*100+"%"}},p)))):null,r("div",{class:"gids-line-chart__chart-stage"},r("svg",{viewBox:"0 0 100 100",class:"gids-line-chart__chart-vector",preserveAspectRatio:"none"},r("defs",null,this.chartData.map(((p,m)=>r("linearGradient",{id:`areaGradient-${m}`,x1:"0",y1:"0",x2:"0",y2:"1",key:m},r("stop",{offset:"0%",class:`gids-line-chart__gradient-start-${m}`}),r("stop",{offset:"100%",class:`gids-line-chart__gradient-end-${m}`}))))),n.map((p=>{const m=100-(p-0)/o*100;return r("line",{x1:"0",y1:m,x2:"100",y2:m,class:"gids-line-chart__grid-line",key:p})})),this.chartData.map(((p,m)=>{if(!Array.isArray(p.data)||p.data.length<2)return null;const u=p.data.map(((f,v)=>`${v===0?"M":"L"} ${v/(d-1)*100} ${100-(f.value-0)/o*100}`)).join(" ");return r("g",{key:p.label||m},r("path",{d:`${u} L 100 100 L 0 100 Z`,fill:`url(#areaGradient-${m})`,class:"gids-line-chart__chart-area"}),r("path",{d:u,class:`gids-line-chart__chart-line gids-line-chart__series-line-${m+1}`}))}))))),r("div",{class:"gids-line-chart__x-axis-scale-container"},l.map(((p,m)=>r("span",{class:"gids-line-chart__scale-text",key:m},p)))),r("span",{class:"gids-line-chart__x-axis-label"},this.xAxisLabel)),h?r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((p,m)=>r("gids-chart-legend-item",{key:p.label,seriesType:`${m+1}`,orientation:"vertical"},p.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-line-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-150);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-line-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-line-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-line-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__chart-line.gids-line-chart__series-line-1{stroke:var(--gids-color-icon-subtle)}.gids-line-chart__chart-line.gids-line-chart__series-line-2{stroke:var(--gids-color-icon-warning)}.gids-line-chart__chart-line.gids-line-chart__series-line-3{stroke:var(--gids-color-icon-danger)}.gids-line-chart__gradient-start-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:1}.gids-line-chart__gradient-end-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:0}.gids-line-chart__gradient-start-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:1}.gids-line-chart__gradient-end-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:0}.gids-line-chart__gradient-start-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:1}.gids-line-chart__gradient-end-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:0}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-line-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-line-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-line-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-line-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function ys(){typeof customElements<"u"&&["gids-line-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-line-chart":customElements.get(e)||customElements.define(e,vs);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}ys();const{getGidsPieChartClassNames:io}=jn,_s=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-pie-chart__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((l,d)=>l+(d.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,a=io({breakpoint:this.breakpoint}),n=2*Math.PI*25;let o=0;return r("div",{class:a},r("div",{class:"gids-pie-chart__main-container"},r("div",{class:"gids-pie-chart__chart-stage-container"},r("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},r("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},r("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((l,d)=>{const g=(l.value||0)/s,c=`${g*n} ${n}`,h=-o*n;return o+=g,r("circle",{key:l.label||d,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${d+1}`,"stroke-dasharray":c,"stroke-dashoffset":h,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?r("div",{class:"gids-pie-chart__legend-container"},r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((l,d)=>r("gids-chart-legend-item",{key:l.label,seriesType:`${d+1}`,orientation:"vertical"},l.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function xs(){typeof customElements<"u"&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-pie-chart":customElements.get(e)||customElements.define(e,_s);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}xs();const{getGidsProgressCircleClassNames:so}=Bn,ws=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.shape="circle",this.label="",this.size="xs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-progress-circle__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.shape==="half-circle"?an:Ai;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return r("div",{class:"gids-progress-circle__no-data"},r(Ie,{title:Ni,supportingText:zi(e)}));const t=this.value/e,i=`${this.value}%`,s=so({breakpoint:this.breakpoint}),a=this.shape==="half-circle";let n=2*Math.PI*40,o=t*n,l=0,d="0 0 100 100",g="rotate(-90 50 50)";a&&(n=40*Math.PI,o=t*n,l=0,d="0 0 100 50",g="");const c=this.size==="xxs",h=typeof this.label=="string"&&this.label.trim()!=="";return r("div",{class:s},r("div",{class:"gids-progress-circle__main-container"},r("div",{class:`gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}`},r("svg",{viewBox:d,class:"gids-progress-circle__chart-vector"},a?r("g",null,r("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__track-background"}),r("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${n}`,"stroke-dashoffset":l})):r("g",null,r("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__track-background"}),r("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${n}`,"stroke-dashoffset":l,transform:g}))),r("div",{class:`gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}`},h&&!c?r("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label):null,r("span",{class:`gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}`},i))),c&&h?r("div",{class:"gids-progress-circle__bottom-content"},r("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],shape:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{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)}.gids-progress-circle__label-xs{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)}.gids-progress-circle__label-sm{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)}.gids-progress-circle__label-md{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)}.gids-progress-circle__label-lg{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)}.gids-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{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)}.gids-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-progress-circle",{breakpoint:[1],value:[2],shape:[1],label:[1],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],shape:[{valueChanged:0}]}]);function Cs(){typeof customElements<"u"&&["gids-progress-circle"].forEach((e=>{e==="gids-progress-circle"&&(customElements.get(e)||customElements.define(e,ws))}))}Cs();const{getGidsChartClassNames:ao}=Hn,ks=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartType="line-chart",this.getChartTypes=()=>["line-chart","bar-chart","pie-chart","activity-gauge","level-gauge","progress-circle","radar-chart"],this.isChartTypeValid=()=>{const t=this.getChartTypes(),i=this.chartType;return!(!i||!t.includes(i))},this.isChartDataValid=()=>{const t=this.chartType;if(t==="line-chart"){const i=this.lineChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="bar-chart"){const i=this.barChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="pie-chart"){const i=this.pieChartProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}if(t==="activity-gauge"){const i=this.activityGaugeProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}return t==="radar-chart"},this.getChartTypeText=()=>{const t=this.chartType;if(t){const i=t.split("-");let s="";return i.map(((a,n)=>{s=n===0?""+a:`${s} ${a}`})),s}return""}}handleBreakpointChange(e){this.breakpoint=e}handleChartTypeChange(e){this.chartType=e}render(){if(!this.isChartTypeValid())return r("div",{class:"gids-chart__no-data"},r(Ie,{title:nn,supportingText:rn(this.getChartTypes().join(", "))}));const e=this.isChartDataValid(),t=this.getChartTypeText();if(!e)return r("div",{class:"gids-activity-gauge__no-data"},r(Ie,{title:tn,supportingText:sn(t)}));const i=ao(),s=this.chartType,a=this.barChartProps,n=this.pieChartProps,o=this.activityGaugeProps,l=this.levelGaugeProps,d=this.progressCircleProps;return r("div",{class:i},s==="line-chart"?r("gids-line-chart",{...this.lineChartProps,breakpoint:this.breakpoint}):null,s==="bar-chart"?r("gids-bar-chart",{...a,breakpoint:this.breakpoint}):null,s==="pie-chart"?r("gids-pie-chart",{...n,breakpoint:this.breakpoint}):null,s==="activity-gauge"?r("gids-activity-gauge",{...o,breakpoint:this.breakpoint}):null,s==="level-gauge"?r("gids-level-gauge",{...l,breakpoint:this.breakpoint}):null,s==="progress-circle"?r("gids-progress-circle",{...d,breakpoint:this.breakpoint}):null,s==="radar-chart"?r("div",{class:"gids-chart__no-data"},r(Ie,{title:"Coming Soon!",supportingText:"Radar chart is under progress. This will be available in next major version of GIDS."})):null)}static get watchers(){return{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}}static get style(){return".gids-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-chart",{breakpoint:[1],chartType:[1,"chart-type"],lineChartProps:[16],barChartProps:[16],pieChartProps:[16],activityGaugeProps:[16],levelGaugeProps:[16],progressCircleProps:[16]},void 0,{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}]);function no(){typeof customElements<"u"&&["gids-chart","gids-activity-gauge","gids-bar-chart","gids-chart-legend","gids-chart-legend-item","gids-level-gauge","gids-line-chart","gids-pie-chart","gids-progress-circle"].forEach((e=>{switch(e){case"gids-chart":customElements.get(e)||customElements.define(e,ks);break;case"gids-activity-gauge":customElements.get(e)||Ki();break;case"gids-bar-chart":customElements.get(e)||Ji();break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe();break;case"gids-level-gauge":customElements.get(e)||bs();break;case"gids-line-chart":customElements.get(e)||ys();break;case"gids-pie-chart":customElements.get(e)||xs();break;case"gids-progress-circle":customElements.get(e)||Cs()}}))}no();const ro=ks,{getGidsChevronButtonClassNames:Ot}=En,Ss=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=Se(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=Ot({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ot({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=Ot({size:this.size},this.extraClasses)}render(){return r("button",{key:"b2c4dce0b1b731f18f7bc51d4f2dc3b2bc4814e0",class:this.activeClasses,slot:"trailingAccessory",type:"button",onClick:e=>this.gidsChevronButton.emit(e),"aria-label":this?.ariaLabel??"","aria-expanded":this?.ariaExpanded??"","aria-haspopup":this?.ariaHaspopup??"","aria-controls":this?.ariaControls??"",disabled:this.disabled,tabIndex:-1},r("span",{key:"42f01ac64723aa9195d2f36b0b02e0a36811f19e",class:"gids-button__content"},r(D,{key:"a78239b33647d4f4653f8c7660ae7cf69f9a1307",name:"chevron-vertical",alt:""})))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}"}},[1,"gids-chevron-button",{extraClasses:[513,"extra-classes"],size:[513],disabled:[516],ariaLabel:[513,"aria-label"],ariaHaspopup:[513,"aria-haspopup"],ariaExpanded:[513,"aria-expanded"],ariaControls:[513,"aria-controls"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}]);function oo(){typeof customElements<"u"&&["gids-chevron-button"].forEach((e=>{e==="gids-chevron-button"&&(customElements.get(e)||customElements.define(e,Ss))}))}oo();const lo=Ss,co=gs,{getIndicatorText:ho}=Ba,{getGidsLabelClassNames:go}=Oa,Rt=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:a,htmlFor:n,labelId:o,class:l,isLabelSentence:d,...g},c)=>{const h=ho({children:c,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:d});return r("div",{class:go({disabled:e},l),...g},r("label",{htmlFor:n,id:o},c,h&&r("span",{class:"gids-label__field-requirement"},h)),a)},Es=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const i=t.target;i===this.#e||this._isWithinInteractiveElement(i)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(tr(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 r(se,{key:"8cfc78682bffd38298aaa5bc8fe63bc996f17586"},r("slot",{key:"5e5c57234e3e531b0d095597e021ab3d4756173d",name:"leadingIcon"}),this.leadingLabel&&r("span",{key:"5d0fc2c8a8716806891347f30ba961db61e1cf91",class:"gids-input__label"},this.leadingLabel),r("slot",{key:"881161160b2e933479c7af0a63846c0f86c7bbfe",name:"leadingAccessory"}),r("input",{key:"f0db6b63f0aa4a1a778743620753184ff0a7086a",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),r("slot",{key:"5bb8549e6aa491b7ebbf56bce66bab6f386f98fe",name:"trailingAccessory"}),this.trailingLabel&&r("span",{key:"3ef3319efd5512bbd370e314724820a539e342f9",class:"gids-input__label"},this.trailingLabel),r("slot",{key:"22dcea487ee58e5df65a5b88d3f7ce7bcc32f828",name:"trailingIcon"}),this.status==="incomplete"&&r(D,{key:"808723d08c4e8a1533652d6c20fd7f8ff0e98275",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&r(D,{key:"10c61d22cb2a4fa56dc0de3025cfc07c1268f91e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&r(Tt,{key:"58147d27b92c93a6bf9dde27c394de2868d6225e",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 Me(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Es))}))}Me();const{getGidsDropdownClassNames:po,getGidsChevronButtonControlClassNames:uo}=In,Ft="gids-dropdown-item--active",Ps=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:i,title:s,disabled:a,id:n}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:n,value:i,title:s,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof a!="string"||a.length===0)return;const n=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";typeof n=="string"&&n.length!==0&&this.applySelection({id:n,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleFilterInput=t=>{const i=t.target;this.filterValue=i?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const i=t.key,s=i==="ArrowDown";if((s||i==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(i==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(i==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(i==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ft))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((a=>a.classList.remove(Ft))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const i=Math.max(0,Math.min(e,t.length-1)),s=t[i];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=i,s.classList.add(Ft),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const i=(t.textContent??"").toLowerCase(),s=e.length===0||i.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=a=>{t?.(a),this.handleFilterInput(a)};const i=e.onBlur;e.onBlur=a=>{i?.(a),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=a=>{s?.(a),a.defaultPrevented||this.handleInputKeyDown(a)},e}render(){const e=this.expanded&&this.isInteractive(),t=po({expanded:e}),i=this.getEnhancedInputProps(),s=typeof i.id=="string"?i.id:void 0,a=s?`${s}__menu`:void 0;i.role="combobox",i["aria-expanded"]=e?"true":"false",i["aria-haspopup"]="listbox",i["aria-autocomplete"]="list",a&&(i["aria-controls"]=a);const n=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",o=e?"true":"false",l=r("button",{key:"94ed9ae19e3a6e1e9e02c6e3fab0c70a5193667b",class:uo({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":o,"aria-haspopup":"listbox","aria-controls":a,disabled:this.disabled||this.readOnly,tabIndex:-1},r("span",{key:"f6e79003a75a80623564c81c83158640c407c8f4",class:"gids-button__content"},r(D,{key:"85c0caf667a50f629375652ead7c1e8d86bc96ed",name:"chevron-vertical",alt:""})));return r("div",{key:"d02c0b39097b0307ca22a7e86bccfb37083d447f",class:t},r("gids-input",{key:"16475e8ebce7a5909f6c4c102ef781eed657a6e0",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:n,name:this.name,inputProps:i,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&r("slot",{key:"fbdf6ef356a9d1ade43eecfa3bb92ef0fe538f1c",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&r("slot",{key:"f9e0fc631f4a3a4758d9b446312ae9d0ff9bcd01",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),l),r("div",{key:"ae2974b210c297fa1e1160ad93d22b45297a1613",class:"gids-dropdown__menu",id:a,role:"listbox",onClick:this.handleMenuClick},r("slot",{key:"d7bd637af09568522549e2551173efd90fa40e4b"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function Ts(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,Ps);break;case"gids-input":customElements.get(e)||Me()}}))}Ts();const{getGidsFieldClassNames:mo}=cn,Ls=P(class extends E{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=O();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 a=this._getStatusModifierClass(i,"gids-field__status-text");a!=null&&s.push(a)}return r(ut,{key:"98078538f6970b0cf756c7a172e635f3302381b2"},r("div",{key:"6751ea942c38270fce42e025ca17e29a38207028",class:mo()},r("div",{key:"5c4969bedfd54b42603ff3de69c72bc513aeaeb6",class:"gids-field__header",hidden:!this._hasLabelContent()},r("slot",{key:"9f98f47e3285551c67f7a350d058a55953c88756",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),r("div",{key:"6660ed1c29faf2ca838ba8714dee7feb79257187",class:"gids-field__count","aria-live":"polite"},this.count)),r("div",{key:"ab2bb081db7e8e8caddcc515580e02f32d4c054a",class:"gids-field__control"},r("slot",{key:"5df4538b894f7daedcb03bcab1316c9452e65caf",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),r("p",{key:"d7dce2f4a0b03b056ac8888a918e88b15931c8e5",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?r("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?r("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 a=e;return e==="error"&&(a="danger"),e==="success"&&(a="positive"),r(D,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${a})`}})}_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((a=>a instanceof HTMLInputElement&&a.type==="radio"&&this._el.contains(a)));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 a=i.querySelector("input, textarea");if(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)return a}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 Xe(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ls))}))}Xe();const Is=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=Ue(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return r("gids-field",{key:"9d896c1a60c010c49f17578133b1f593637ee25a",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?r(Rt,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,r("gids-dropdown",{key:"cb5e873f42af870aec073f553a660aea8f61ffcb",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},r("slot",{key:"fbdd00ab717487697bc705af19c6e304ff77bd82",name:"leadingIconDropdown"}),r("slot",{key:"1f6ffc78105de5a1e2e4f8906271e8e2c5ca385d",name:"leadingAccessoryDropdown"}),r("slot",{key:"04404c104113d9b83afbe594bd7b9381864b526f"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function fo(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,Is);break;case"gids-dropdown":customElements.get(e)||Ts();break;case"gids-field":customElements.get(e)||Xe();break;case"gids-input":customElements.get(e)||Me()}}))}fo();const bo=Is,vo=rs,yo=Ps,_o=Ls,xo=hs,wo=Es,Co=fs,ko=vs,Gt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ms=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(i=>{const s=(()=>{const a=document.querySelector("gids-overlay-provider");if(!a||!a.shadowRoot)return 1;const n=a.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),o=n[n.length-1];if(!o)return 1;const l=o.offsetHeight,d=getComputedStyle(o).lineHeight,g=d.endsWith("px")?parseFloat(d):0;return Math.ceil(g?l/g:1)})();return s===2?i==="snackbar"?5e3:8e3:s>=3?i==="snackbar"?7e3:1e4:i==="snackbar"?3e3:6e3})(e),Ds=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Gt(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function So(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,Ds))}))}So();const Eo=Ds,{showGidsOverflowContainerBottomShadow:$s,showGidsOverflowContainerTopShadow:Po}=en,As=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),$s(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(Po(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),$s(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return r("div",{key:"fbc4a9851c77e92b2261392c6d8f00664f8adb94",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},r("slot",{key:"a825b7f435064d06a22f751e507c8a765817abec"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function To(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,As))}))}To();const Lo=As,{getGidsSnackbarContainerClassNames:Io,getSnackbarContainerIconNames:Mo}=yn,Do=({appearance:e="default",children:t,button:i,class:s,...a})=>{const n=Mo(e);return r("div",{...a,class:Io({appearance:e},s)},r("div",{class:"gids-snackbar-container__content"},e!=="default"&&n!=null?r(D,{name:n,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?r("p",null,t):t),i)},{getGidsNotificationContainerClassNames:$o,getNotificationContainerIconNames:Ao}=xn,No=({notificationTitle:e,children:t,button:i,appearance:s="default",pronunciation:a="standard",onCloseNotificationClick:n,class:o,...l})=>{const d=Ao(s);return r("div",{class:$o({appearance:s},o),...l},s!=="default"&&d?r("div",{class:"gids-notification-container__leading-icon-wrapper"},r(D,{size:"md",name:d,alt:"",appearance:"filled"})):null,r("div",{class:"gids-notification-container__content-wrapper"},r("div",{class:"gids-notification-container__top-content"},r("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?r("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?r("p",null,t):t:null),a==="standard"?r("div",{class:"gids-notification-container__cross-btn-wrapper"},r(Z,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:r(D,{name:"cross",size:"md",appearance:"regular"}),onClick:n})):null),i?r("div",{class:"gids-notification-container__bottom-content"},i):null))},{getComponentClasses:zo,getComponentStackClasses:Oo}=_n,Ns=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,i)=>{const{id:s,message:a,appearance:n,buttonLabel:o,onButtonClick:l}=t;return r(Do,{key:s,class:i,children:a,appearance:n,button:o!=null&&o!==""?r(Z,{appearance:"subtle",onClick:l},o):void 0})},this._renderNotification=(t,i)=>{const{id:s,notificationTitle:a,message:n,pronunciation:o,appearance:l,buttonLabel:d,onButtonClick:g,timerInMs:c}=t;return r(No,{key:s,class:i,notificationTitle:a,children:n,pronunciation:o,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,c||0,!0),button:d!=null&&d!==""?r(Z,{appearance:"default",size:"sm",onClick:g},d):void 0})},this._renderComponent=t=>{const{componentName:i,position:s="bottom-center",id:a}=t,n=zo({position:s,id:a,exitingComponents:this._exitingComponents});return i==null||i==="snackbar"?this._renderSnackbar(t,n):i==="notification"?this._renderNotification(t,n):null}}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Gt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const i=setTimeout((()=>(clearTimeout(i),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:i,buttonLabel:s,onButtonClick:a,position:n,componentName:o,...l}=e,d={id:""+(Date.now()+Math.random()),message:i,appearance:t,buttonLabel:s,onButtonClick:a,position:n,componentName:o,...l};this._componentQueue=[...this._componentQueue,d],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:i,pronunciation:s,message:a,buttonLabel:n,onButtonClick:o,position:l,componentName:d,...g}=e,c={id:""+(Date.now()+Math.random()),notificationTitle:i,message:a,pronunciation:s,appearance:t,buttonLabel:n,onButtonClick:o,position:l,componentName:d,...g};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,i){return i||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((s=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((a=>a.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((a=>a!==e.id)),this._allowedComponentQueue=[],s()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((i=>requestAnimationFrame((()=>i()))));const t=Ms({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=Ms({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return r(se,{key:"c130346274545aa8cb3b12390fa28f65b612dcd9"},r("slot",{key:"6bfbde0f8f8a9cc75e3236ac806d762a9f2e0049"}),this._isRoot()?r("div",{class:Oo({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function Ro(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,Ns))}))}Ro();const Fo=Ns,{getGidsDismissButtonClassNames:Go}=dn,zs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:a,label:n,...o})=>r("button",{class:Go({appearance:e,size:t},s),onClick:a,disabled:i,"aria-label":n,...o},r(D,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:Vo}=pn,{getStrengthMeterScore:jo,getColorModifierByScore:Yo}=Qa,Bo=({text:e,textMinLength:t,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:s})=>{const a=(n,o,l)=>r("div",{key:n,class:["gids-strength-meter__strength-"+n,l?"is-active":"",l?o:""].filter(Boolean).join(" ")});return i.length>0?r("div",{class:Vo(s)},(()=>{const n=i.length,o=jo({text:e,textMinLength:t,meterRules:i}),l=Yo({textScore:o,maxScore:n});return Array.from({length:n},((d,g)=>{const c=g+1,h=c<=o;return i[c]==="include-min-length"?Le({requirementRule:"include-min-length",textMinLength:t})?a(c,l,h):null:a(c,l,h)}))})()):null},{getGidsRequirementsMeterLabelClassNames:qo}=un,{getRequirementsMeterLabelLeadingIcon:Ho}=Za,Wo=e=>{const{label:t,status:i="default",leadingIconVisible:s=!0,class:a}=e,n=Ho(i);return r("div",{class:qo({status:i},a)},s&&i&&n?r(D,{name:n,size:"sm",appearance:"filled"}):null,t&&t!==""?r("span",null,t):null)},{checkRequirementRuleSatisfied:Uo}=Ka,{getGidsRequirementsMeterClassNames:Qo}=mn,Xo=({requirements:e=[],text:t,textMinLength:i,class:s})=>{const a=(n,o)=>r(Wo,{status:o?"success":"error",label:n.requirementText});return r("div",{class:Qo(s)},e.map((n=>{if(n?.requirementText!=null&&n?.requirementRule!=null){const o=Uo({rule:n.requirementRule,textMinLength:i,text:t});return n.requirementRule==="include-min-length"?Le({requirementRule:n.requirementRule,textMinLength:i})===!0?a(n,o):null:a(n,o)}return null})))},{inputToGidsFieldStatusForPassword:Ko}=vn,Os=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=Se(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=Se(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=Ue(),this._handleDismiss=()=>{const t=this.#t?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?Ct(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Si(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=kt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=kt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&this.value!==void 0&&this.value.length>0,a=this.showRevealPasswordButton,n={...t},o=n?.placeholder!==void 0&&n.placeholder!==null&&n.placeholder!=""?n.placeholder:"Enter password",l=this.isPasswordRevealed,d=this.meterRules,g=this.textMinLength!==void 0?this.textMinLength:8;return r(se,{key:"20e80248a1bf89a1fbcc45afde2d53bd51fbdbcc"},r("gids-field",{key:"f3b8a64102cca5dc4342cc06c24c42ade33ff182",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:Ko(this.status)},r(Rt,{key:"49d56818bb59470c86a1375540849ac72a85ec39",slot:"label",disabled:this.disabled,info:r("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),r("gids-input",{key:"b4c52f50b940fd6d9bf8102cd8e9982827348294",ref:c=>this.#t=c,appearance:"default",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:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...n,placeholder:o,type:l?"text":"password",id:i,maxLength:this.maxLength}},r("slot",{key:"125c163e6d2b647aee98931303cd133e67ccdd75",name:"leadingIcon"}),r("slot",{key:"137a5bf21cd658dc4eca833fb09954b3b68393d4",name:"leadingAccessory"}),r("div",{key:"4e87732b5d198ac176dc0fc68a99cb4b82cbcdf4",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},s&&r(zs,{key:"a8016058d8823a75c0188fe707f39aad1834a6e6",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&r(Z,{key:"3bfe55f6787c42df0a9a9351ac96b12fa90826ab",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),r("div",{key:"d2b12032cafa7414481251d9b2c5cacc94bcf745",class:"gids-password-field__meters-container"},r(Bo,{key:"5aa93ffa5361c3b4d5b8f9d7fd13ff6628821ebe",meterRules:d,text:this.value,textMinLength:g}),r(Xo,{key:"96131ad3f4c4318450952b2c6b8325d2bd567cf6",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:g})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],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],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function Zo(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Os);break;case"gids-field":customElements.get(e)||Xe();break;case"gids-input":customElements.get(e)||Me()}}))}Zo();const Jo=Os,el=_s,ye=Math.min,ne=Math.max,Ke=Math.round,Ze=Math.floor,q=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"};function Vt(e,t,i){return ne(e,ye(t,i))}function De(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function $e(e){return e.split("-")[1]}function Rs(e){return e==="x"?"y":"x"}function jt(e){return e==="y"?"height":"width"}function J(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Yt(e){return Rs(J(e))}function il(e,t,i){i===void 0&&(i=!1);const s=$e(e),a=Yt(e),n=jt(a);let o=a==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(o=Je(o)),[o,Je(o)]}function sl(e){const t=Je(e);return[Bt(e),t,Bt(t)]}function Bt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fs=["left","right"],Gs=["right","left"],al=["top","bottom"],nl=["bottom","top"];function rl(e,t,i){switch(e){case"top":case"bottom":return i?t?Gs:Fs:t?Fs:Gs;case"left":case"right":return t?al:nl;default:return[]}}function ol(e,t,i,s){const a=$e(e);let n=rl(re(e),i==="start",s);return a&&(n=n.map(o=>o+"-"+a),t&&(n=n.concat(n.map(Bt)))),n}function Je(e){const t=re(e);return tl[t]+e.slice(t.length)}function ll(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vs(e){return typeof e!="number"?ll(e):{top:e,right:e,bottom:e,left:e}}function et(e){const{x:t,y:i,width:s,height:a}=e;return{width:s,height:a,top:i,left:t,right:t+s,bottom:i+a,x:t,y:i}}function js(e,t,i){let{reference:s,floating:a}=e;const n=J(t),o=Yt(t),l=jt(o),d=re(t),g=n==="y",c=s.x+s.width/2-a.width/2,h=s.y+s.height/2-a.height/2,p=s[l]/2-a[l]/2;let m;switch(d){case"top":m={x:c,y:s.y-a.height};break;case"bottom":m={x:c,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:h};break;case"left":m={x:s.x-a.width,y:h};break;default:m={x:s.x,y:s.y}}switch($e(t)){case"start":m[o]-=p*(i&&g?-1:1);break;case"end":m[o]+=p*(i&&g?-1:1);break}return m}async function dl(e,t){var i;t===void 0&&(t={});const{x:s,y:a,platform:n,rects:o,elements:l,strategy:d}=e,{boundary:g="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=De(t,e),u=Vs(m),v=l[p?h==="floating"?"reference":"floating":h],_=et(await n.getClippingRect({element:(i=await(n.isElement==null?void 0:n.isElement(v)))==null||i?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:g,rootBoundary:c,strategy:d})),y=h==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),w=await(n.isElement==null?void 0:n.isElement(b))?await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1}:{x:1,y:1},x=et(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:d}):y);return{top:(_.top-x.top+u.top)/w.y,bottom:(x.bottom-_.bottom+u.bottom)/w.y,left:(_.left-x.left+u.left)/w.x,right:(x.right-_.right+u.right)/w.x}}const cl=50,hl=async(e,t,i)=>{const{placement:s="bottom",strategy:a="absolute",middleware:n=[],platform:o}=i,l=o.detectOverflow?o:{...o,detectOverflow:dl},d=await(o.isRTL==null?void 0:o.isRTL(t));let g=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=js(g,s,d),p=s,m=0;const u={};for(let f=0;f<n.length;f++){const v=n[f];if(!v)continue;const{name:_,fn:y}=v,{x:b,y:w,data:x,reset:k}=await y({x:c,y:h,initialPlacement:s,placement:p,strategy:a,middlewareData:u,rects:g,platform:l,elements:{reference:e,floating:t}});c=b??c,h=w??h,u[_]={...u[_],...x},k&&m<cl&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(g=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:c,y:h}=js(g,p,d)),f=-1)}return{x:c,y:h,placement:p,strategy:a,middlewareData:u}},gl=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:s,placement:a,rects:n,platform:o,elements:l,middlewareData:d}=t,{element:g,padding:c=0}=De(e,t)||{};if(g==null)return{};const h=Vs(c),p={x:i,y:s},m=Yt(a),u=jt(m),f=await o.getDimensions(g),v=m==="y",_=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=n.reference[u]+n.reference[m]-p[m]-n.floating[u],x=p[m]-n.reference[m],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(g));let T=k?k[b]:0;(!T||!await(o.isElement==null?void 0:o.isElement(k)))&&(T=l.floating[b]||n.floating[u]);const M=w/2-x/2,$=T/2-f[u]/2-1,R=ye(h[_],$),ze=ye(h[y],$),ce=R,Oe=T-f[u]-ze,A=T/2-f[u]/2+M,he=Vt(ce,A,Oe),X=!d.arrow&&$e(a)!=null&&A!==he&&n.reference[u]/2-(A<ce?R:ze)-f[u]/2<0,j=X?A<ce?A-ce:A-Oe:0;return{[m]:p[m]+j,data:{[m]:he,centerOffset:A-he-j,...X&&{alignmentOffset:j}},reset:X}}}),pl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,s;const{placement:a,middlewareData:n,rects:o,initialPlacement:l,platform:d,elements:g}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...v}=De(e,t);if((i=n.arrow)!=null&&i.alignmentOffset)return{};const _=re(a),y=J(l),b=re(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(g.floating)),x=p||(b||!f?[Je(l)]:sl(l)),k=u!=="none";!p&&k&&x.push(...ol(l,f,u,w));const T=[l,...x],M=await d.detectOverflow(t,v),$=[];let R=((s=n.flip)==null?void 0:s.overflows)||[];if(c&&$.push(M[_]),h){const A=il(a,o,w);$.push(M[A[0]],M[A[1]])}if(R=[...R,{placement:a,overflows:$}],!$.every(A=>A<=0)){var ze,ce;const A=(((ze=n.flip)==null?void 0:ze.index)||0)+1,he=T[A];if(he&&(!(h==="alignment"?y!==J(he):!1)||R.every(Y=>J(Y.placement)===y?Y.overflows[0]>0:!0)))return{data:{index:A,overflows:R},reset:{placement:he}};let X=(ce=R.filter(j=>j.overflows[0]<=0).sort((j,Y)=>j.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!X)switch(m){case"bestFit":{var Oe;const j=(Oe=R.filter(Y=>{if(k){const te=J(Y.placement);return te===y||te==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(te=>te>0).reduce((te,cd)=>te+cd,0)]).sort((Y,te)=>Y[1]-te[1])[0])==null?void 0:Oe[0];j&&(X=j);break}case"initialPlacement":X=l;break}if(a!==X)return{reset:{placement:X}}}return{}}}},ul=new Set(["left","top"]);async function ml(e,t){const{placement:i,platform:s,elements:a}=e,n=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=re(i),l=$e(i),d=J(i)==="y",g=ul.has(o)?-1:1,c=n&&d?-1:1,h=De(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:u}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof u=="number"&&(m=l==="end"?u*-1:u),d?{x:m*c,y:p*g}:{x:p*g,y:m*c}}const fl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,s;const{x:a,y:n,placement:o,middlewareData:l}=t,d=await ml(t,e);return o===((i=l.offset)==null?void 0:i.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:n+d.y,data:{...d,placement:o}}}}},bl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:s,placement:a,platform:n}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:_=>{let{x:y,y:b}=_;return{x:y,y:b}}},...g}=De(e,t),c={x:i,y:s},h=await n.detectOverflow(t,g),p=J(re(a)),m=Rs(p);let u=c[m],f=c[p];if(o){const _=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=u+h[_],w=u-h[y];u=Vt(b,u,w)}if(l){const _=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=f+h[_],w=f-h[y];f=Vt(b,f,w)}const v=d.fn({...t,[m]:u,[p]:f});return{...v,data:{x:v.x-i,y:v.y-s,enabled:{[m]:o,[p]:l}}}}}};function tt(){return typeof window<"u"}function _e(e){return Ys(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){var t;return(t=(Ys(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ys(e){return tt()?e instanceof Node||e instanceof z(e).Node:!1}function G(e){return tt()?e instanceof Element||e instanceof z(e).Element:!1}function U(e){return tt()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function Bs(e){return!tt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Ae(e){const{overflow:t,overflowX:i,overflowY:s,display:a}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&a!=="inline"&&a!=="contents"}function vl(e){return/^(table|td|th)$/.test(_e(e))}function it(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const yl=/transform|translate|scale|rotate|perspective|filter/,_l=/paint|layout|strict|content/,oe=e=>!!e&&e!=="none";let qt;function Ht(e){const t=G(e)?V(e):e;return oe(t.transform)||oe(t.translate)||oe(t.scale)||oe(t.rotate)||oe(t.perspective)||!Wt()&&(oe(t.backdropFilter)||oe(t.filter))||yl.test(t.willChange||"")||_l.test(t.contain||"")}function xl(e){let t=ee(e);for(;U(t)&&!xe(t);){if(Ht(t))return t;if(it(t))return null;t=ee(t)}return null}function Wt(){return qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qt}function xe(e){return/^(html|body|#document)$/.test(_e(e))}function V(e){return z(e).getComputedStyle(e)}function st(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if(_e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bs(e)&&e.host||H(e);return Bs(t)?t.host:t}function qs(e){const t=ee(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&Ae(t)?t:qs(t)}function Ne(e,t,i){var s;t===void 0&&(t=[]),i===void 0&&(i=!0);const a=qs(e),n=a===((s=e.ownerDocument)==null?void 0:s.body),o=z(a);if(n){const l=Ut(o);return t.concat(o,o.visualViewport||[],Ae(a)?a:[],l&&i?Ne(l):[])}else return t.concat(a,Ne(a,[],i))}function Ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hs(e){const t=V(e);let i=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=U(e),n=a?e.offsetWidth:i,o=a?e.offsetHeight:s,l=Ke(i)!==n||Ke(s)!==o;return l&&(i=n,s=o),{width:i,height:s,$:l}}function Qt(e){return G(e)?e:e.contextElement}function we(e){const t=Qt(e);if(!U(t))return q(1);const i=t.getBoundingClientRect(),{width:s,height:a,$:n}=Hs(t);let o=(n?Ke(i.width):i.width)/s,l=(n?Ke(i.height):i.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const wl=q(0);function Ws(e){const t=z(e);return!Wt()||!t.visualViewport?wl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cl(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==z(e)?!1:t}function le(e,t,i,s){t===void 0&&(t=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),n=Qt(e);let o=q(1);t&&(s?G(s)&&(o=we(s)):o=we(e));const l=Cl(n,i,s)?Ws(n):q(0);let d=(a.left+l.x)/o.x,g=(a.top+l.y)/o.y,c=a.width/o.x,h=a.height/o.y;if(n){const p=z(n),m=s&&G(s)?z(s):s;let u=p,f=Ut(u);for(;f&&s&&m!==u;){const v=we(f),_=f.getBoundingClientRect(),y=V(f),b=_.left+(f.clientLeft+parseFloat(y.paddingLeft))*v.x,w=_.top+(f.clientTop+parseFloat(y.paddingTop))*v.y;d*=v.x,g*=v.y,c*=v.x,h*=v.y,d+=b,g+=w,u=z(f),f=Ut(u)}}return et({width:c,height:h,x:d,y:g})}function at(e,t){const i=st(e).scrollLeft;return t?t.left+i:le(H(e)).left+i}function Us(e,t){const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-at(e,i),a=i.top+t.scrollTop;return{x:s,y:a}}function kl(e){let{elements:t,rect:i,offsetParent:s,strategy:a}=e;const n=a==="fixed",o=H(s),l=t?it(t.floating):!1;if(s===o||l&&n)return i;let d={scrollLeft:0,scrollTop:0},g=q(1);const c=q(0),h=U(s);if((h||!h&&!n)&&((_e(s)!=="body"||Ae(o))&&(d=st(s)),h)){const m=le(s);g=we(s),c.x=m.x+s.clientLeft,c.y=m.y+s.clientTop}const p=o&&!h&&!n?Us(o,d):q(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-d.scrollLeft*g.x+c.x+p.x,y:i.y*g.y-d.scrollTop*g.y+c.y+p.y}}function Sl(e){return Array.from(e.getClientRects())}function El(e){const t=H(e),i=st(e),s=e.ownerDocument.body,a=ne(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),n=ne(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-i.scrollLeft+at(e);const l=-i.scrollTop;return V(s).direction==="rtl"&&(o+=ne(t.clientWidth,s.clientWidth)-a),{width:a,height:n,x:o,y:l}}const Qs=25;function Pl(e,t){const i=z(e),s=H(e),a=i.visualViewport;let n=s.clientWidth,o=s.clientHeight,l=0,d=0;if(a){n=a.width,o=a.height;const c=Wt();(!c||c&&t==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}const g=at(s);if(g<=0){const c=s.ownerDocument,h=c.body,p=getComputedStyle(h),m=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,u=Math.abs(s.clientWidth-h.clientWidth-m);u<=Qs&&(n-=u)}else g<=Qs&&(n+=g);return{width:n,height:o,x:l,y:d}}function Tl(e,t){const i=le(e,!0,t==="fixed"),s=i.top+e.clientTop,a=i.left+e.clientLeft,n=U(e)?we(e):q(1),o=e.clientWidth*n.x,l=e.clientHeight*n.y,d=a*n.x,g=s*n.y;return{width:o,height:l,x:d,y:g}}function Xs(e,t,i){let s;if(t==="viewport")s=Pl(e,i);else if(t==="document")s=El(H(e));else if(G(t))s=Tl(t,i);else{const a=Ws(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return et(s)}function Ks(e,t){const i=ee(e);return i===t||!G(i)||xe(i)?!1:V(i).position==="fixed"||Ks(i,t)}function Ll(e,t){const i=t.get(e);if(i)return i;let s=Ne(e,[],!1).filter(l=>G(l)&&_e(l)!=="body"),a=null;const n=V(e).position==="fixed";let o=n?ee(e):e;for(;G(o)&&!xe(o);){const l=V(o),d=Ht(o);!d&&l.position==="fixed"&&(a=null),(n?!d&&!a:!d&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ae(o)&&!d&&Ks(e,o))?s=s.filter(c=>c!==o):a=l,o=ee(o)}return t.set(e,s),s}function Il(e){let{element:t,boundary:i,rootBoundary:s,strategy:a}=e;const o=[...i==="clippingAncestors"?it(t)?[]:Ll(t,this._c):[].concat(i),s],l=Xs(t,o[0],a);let d=l.top,g=l.right,c=l.bottom,h=l.left;for(let p=1;p<o.length;p++){const m=Xs(t,o[p],a);d=ne(m.top,d),g=ye(m.right,g),c=ye(m.bottom,c),h=ne(m.left,h)}return{width:g-h,height:c-d,x:h,y:d}}function Ml(e){const{width:t,height:i}=Hs(e);return{width:t,height:i}}function Dl(e,t,i){const s=U(t),a=H(t),n=i==="fixed",o=le(e,!0,n,t);let l={scrollLeft:0,scrollTop:0};const d=q(0);function g(){d.x=at(a)}if(s||!s&&!n)if((_e(t)!=="body"||Ae(a))&&(l=st(t)),s){const m=le(t,!0,n,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else a&&g();n&&!s&&a&&g();const c=a&&!s&&!n?Us(a,l):q(0),h=o.left+l.scrollLeft-d.x-c.x,p=o.top+l.scrollTop-d.y-c.y;return{x:h,y:p,width:o.width,height:o.height}}function Xt(e){return V(e).position==="static"}function Zs(e,t){if(!U(e)||V(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return H(e)===i&&(i=i.ownerDocument.body),i}function Js(e,t){const i=z(e);if(it(e))return i;if(!U(e)){let a=ee(e);for(;a&&!xe(a);){if(G(a)&&!Xt(a))return a;a=ee(a)}return i}let s=Zs(e,t);for(;s&&vl(s)&&Xt(s);)s=Zs(s,t);return s&&xe(s)&&Xt(s)&&!Ht(s)?i:s||xl(e)||i}const $l=async function(e){const t=this.getOffsetParent||Js,i=this.getDimensions,s=await i(e.floating);return{reference:Dl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Al(e){return V(e).direction==="rtl"}const Kt={convertOffsetParentRelativeRectToViewportRelativeRect:kl,getDocumentElement:H,getClippingRect:Il,getOffsetParent:Js,getElementRects:$l,getClientRects:Sl,getDimensions:Ml,getScale:we,isElement:G,isRTL:Al};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nl(e,t){let i=null,s;const a=H(e);function n(){var l;clearTimeout(s),(l=i)==null||l.disconnect(),i=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),n();const g=e.getBoundingClientRect(),{left:c,top:h,width:p,height:m}=g;if(l||t(),!p||!m)return;const u=Ze(h),f=Ze(a.clientWidth-(c+p)),v=Ze(a.clientHeight-(h+m)),_=Ze(c),b={rootMargin:-u+"px "+-f+"px "+-v+"px "+-_+"px",threshold:ne(0,ye(1,d))||1};let w=!0;function x(k){const T=k[0].intersectionRatio;if(T!==d){if(!w)return o();T?o(!1,T):s=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!ea(g,e.getBoundingClientRect())&&o(),w=!1}try{i=new IntersectionObserver(x,{...b,root:a.ownerDocument})}catch{i=new IntersectionObserver(x,b)}i.observe(e)}return o(!0),n}function zl(e,t,i,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:n=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,g=Qt(e),c=a||n?[...g?Ne(g):[],...t?Ne(t):[]]:[];c.forEach(_=>{a&&_.addEventListener("scroll",i,{passive:!0}),n&&_.addEventListener("resize",i)});const h=g&&l?Nl(g,i):null;let p=-1,m=null;o&&(m=new ResizeObserver(_=>{let[y]=_;y&&y.target===g&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),i()}),g&&!d&&m.observe(g),t&&m.observe(t));let u,f=d?le(e):null;d&&v();function v(){const _=le(e);f&&!ea(f,_)&&i(),f=_,u=requestAnimationFrame(v)}return i(),()=>{var _;c.forEach(y=>{a&&y.removeEventListener("scroll",i),n&&y.removeEventListener("resize",i)}),h?.(),(_=m)==null||_.disconnect(),m=null,d&&cancelAnimationFrame(u)}}const Ol=fl,Rl=bl,Fl=pl,Gl=gl,Vl=(e,t,i)=>{const s=new Map,a={platform:Kt,...i},n={...a.platform,_c:s};return hl(e,t,{...a,platform:n})};C.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(C.GidsFloatingElementType||(C.GidsFloatingElementType={}));function ta(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const jl=/transform|translate|scale|rotate|perspective|filter/,Yl=/paint|layout|strict|content/,de=e=>!!e&&e!=="none";let Zt;function Bl(e){const t=(i=e,typeof window<"u"&&(i instanceof Element||i instanceof ta(i).Element)?ta(s=e).getComputedStyle(s):e);var i,s;return de(t.transform)||de(t.translate)||de(t.scale)||de(t.rotate)||de(t.perspective)||(Zt==null&&(Zt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!Zt&&(de(t.backdropFilter)||de(t.filter)))||jl.test(t.willChange||"")||Yl.test(t.contain||"")}function ql(e){return(function(t){for(let i=t;i;i=Jt(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=Jt(t);i;i=Jt(i)){if(!(i instanceof Element))continue;const s=getComputedStyle(i);if(s.display!=="contents"&&(s.position!=="static"||Bl(s)||i.tagName==="BODY"))return i}return null})(e)}function Jt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}let ia=(Q=class{constructor(t,i){this.el=t,this.config=i,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=i.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=zl(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[Ol(this.offset)],i=Fl({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),s=this.config.elementType===C.GidsFloatingElementType.POPOVER,a=Rl({padding:this.offset,mainAxis:this.config.elementType===C.GidsFloatingElementType.TOOLTIP||s&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(i,a):t.push(a,i),this.config.showArrow!==!1&&this.arrowEl&&t.push(Gl({element:this.arrowEl,padding:this.offset})),Vl(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...Kt,getOffsetParent:n=>Kt.getOffsetParent(n,ql)}}).then((({x:n,y:o,middlewareData:l,placement:d})=>{if(s){const p=d.startsWith("left")||d.startsWith("right"),m=d.startsWith("top")||d.startsWith("bottom"),u=this.isAnchorInViewport(),f=!!m||(p?u:this.popoverMainAxisEnabled);if(f!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=f,void this.updatePosition()}this.currentPlacement=d,Object.assign(this.floatingElement.style,{left:`${n}px`,top:`${o}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const g=d.split("-")[0]??"bottom",c={top:"bottom",right:"left",bottom:"top",left:"right"}[g],{arrowZIndex:h}=this.normalizeFloatingElementStacking();if(l.arrow&&this.arrowEl){const p=this.arrowEl.offsetWidth,{x:m,y:u}=l.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(g)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(g)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:u!==null?`${u}px`:"",right:"",bottom:"",[c]:-p/2+"px",transform:"rotate(45deg)",zIndex:`${h}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),i=Number.parseInt(t,10),s=Number.isNaN(i)?-1:i-1,a=Number.isNaN(i)?s+1:i;return Number.isNaN(a)||(this.floatingElement.style.zIndex=`${a}`),Array.from(this.floatingElement.children).forEach((n=>{if(!(n instanceof HTMLElement)||n===this.arrowEl)return;const o=n.style.zIndex||(window.getComputedStyle?.(n).zIndex??""),l=Number.parseInt(o,10),d=window.getComputedStyle?.(n).position??"";(o===""||o==="auto"||Number.isNaN(l)||l<a)&&(n.style.zIndex=`${a}`,d!==""&&d!=="static"||(n.style.position="relative"))})),{contentZIndex:a,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),Q.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=Q.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),Q.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),i=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,a=t.height/2+2*this.offset;return t.bottom>=a&&t.top<=i-a&&t.right>=0&&t.left<=s}},Q.currentFloatingElements=new Map,Q);const sa=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const i=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!i&&this.floatingElementManager.isVisible()?this.onPopoverShow():i&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new ia(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:C.GidsFloatingElementType.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],i=na(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const n=na(a);t.push(...n)})),this.focusableElements=t.sort(((a,n)=>{const o=a.compareDocumentPosition(n),l=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:d?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const n=this._el.shadowRoot?.activeElement;n!==null&&(s=n)}const a=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&a||(e.preventDefault(),i&&i.focus()):s!==i&&a||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return r(se,{key:"4147e2407a0e2592d65db07e6d92dcbd37e52b5d"},r("slot",{key:"82f2de1b78ee81f7b2363a2fbf4fc80029c6529f",name:"anchor"}),r("div",{key:"371b9c7c170bf8621e2a847eca6771e140ee161e",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},r("span",{key:"19dbf2c247353839c075674f068f2d435a23bec1",id:"arrow"}),r("div",{key:"374d276cdd13093c74b8a35d7447c328f4f90d0c"},r("slot",{key:"45d5f02df1f6aa160d080a5f5a10e0ba9e6aa8f8"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{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);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),aa=e=>{if(!(e instanceof E)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const i=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=i,s&&e.blur(),s}catch{return!1}},na=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>aa(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];aa(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function Hl(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,sa))}))}Hl();const Wl=sa,Ul=ws,{getGidsScrimClassNames:ra}=wn,oa=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=ra(e)}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ra(this.extraClasses)}render(){return r("div",{key:"bb28bc59d4522f27c3637774153603462d628be0",class:this.activeClasses,part:"root"},r("slot",{key:"24becefcfa3a4842163b62a255266d71dd27d765"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Ql(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,oa))}))}Ql();const Xl=oa,la=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Gt(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function Kl(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,la))}))}Kl();const Zl=la,{formatCharCount:Jl}=$i,{inputToGidsFieldStatus:ed}=gn,da=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Se(this,"gidsTextFieldClear"),this.#e=Ue(),this._handleDismiss=()=>{const t=this.#t?.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((()=>{Si(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return r("gids-field",{key:"d11133ec5a64d0bc929a2c09530e1c4b7040a441",disabled:this.disabled,count:Jl(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:ed(this.status)},r(Rt,{key:"edf0168bd4940b9f98fff8b7e03d865f46f4b6ac",slot:"label",disabled:this.disabled,info:r("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),r("gids-input",{key:"317347850ebc9f671a16c816807f9ca55f0f9fa6",ref:a=>this.#t=a,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}},r("slot",{key:"87815f4d215bbb0c542457b9216f7446595d9ec2",name:"leadingIcon"}),r("slot",{key:"6648b1d8d3585e1df78039a356a297760272af4f",name:"leadingAccessory"}),s&&r(zs,{key:"7eba5acbfdfe1c9173d43bce1592f8e12c8602cb",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),r("slot",{key:"85017d875b4390fec245b9da8409787a2bd86909",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 td(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,da);break;case"gids-field":customElements.get(e)||Xe();break;case"gids-input":customElements.get(e)||Me()}}))}td();const id=da,ca=P(class extends E{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Se(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return r(ut,{key:"d95b05ee98862e9fa4ee50ae676fded8234de63d"},r("style",{key:"844be4d370a1d44e4c18b828ed2cfab3bd702cfd"},`:host {
6
14
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),c(K,{key:"cc1ba98c103b2650fac9373764174b9d692a3887",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:c("slot",{name:"leadingIcon"}),trailingIcon:c("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},c("slot",{key:"009d3abc1604b5c387c1c29fad97d42e24ae70e9"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function ei(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Ut))}))}ei();const ti=Ut;function Be(e,t){Zs(e,t)}const si=e=>{Be(e)},ni=e=>{Be(e)};w.GidsField=rn,w.GidsIcon=cn,w.GidsInput=fn,w.GidsNotification=pn,w.GidsOverflowContainer=_n,w.GidsOverlayProvider=Nn,w.GidsPasswordField=Dn,w.GidsScrim=Wn,w.GidsSnackbar=Yn,w.GidsTextField=Jn,w.GidsToggleButton=ti,w.getAssetPath=Jt,w.getConstructedGidsStylesheet=j,w.refreshConstructedGidsStylesheet=Ae,w.render=_s,w.setAssetPath=es,w.setGidsAssetFilePaths=si,w.setGidsAssetPaths=Be,w.setGidsDefaultAssetDirPath=ni,w.setNonce=gs,w.setPlatformOptions=bs,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
15
+ }`),r(Z,{key:"510307e7bfce966e96422999f5309e0df3e62634",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:r("slot",{name:"leadingIcon"}),trailingIcon:r("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},r("slot",{key:"38bff264ed88090ee4567650417ccb86805fca98"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function sd(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,ca))}))}sd();const ad=ca,ha=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ia(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:C.GidsFloatingElementType.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return r(se,{key:"f9e6c76e1f2b3faa2c2ed5b1f5c28c4b11878819"},r("slot",{key:"1c36da89ba7d6a20f0e5204d5c079dbc64226d56"}),r("span",{key:"ac4972259978f2e52fc15545a28dc2375ef370cd",id:"tooltip",part:"tooltip",role:"tooltip"},r("span",{key:"49a7b319f5f0a87befe6e5d355d846dae12a9644",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{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);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function nd(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,ha))}))}nd();const rd=ha;function ei(e,t){Kn(e,t)}const od=e=>{ei(e)},ld=e=>{ei(e)},dd=({children:e,classNameToBeValidated:t,childrenToBeValidated:i,currentComponentName:s})=>{if(e!=null){const a=Array.isArray(e)?e:[e];for(const n of a){if(!n||typeof n!="object"||!("vtag"in n))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${s}. Expected ${i}.`);{const o=n.vtag;if(o!==t&&o!==i)throw Error(`HTML/JSX Render Error: <${s}> only accepts <${i}> as direct children. Received element tag: "${typeof o=="function"?o.name:o}".`)}}}};C.GidsActivityGauge=gr,C.GidsBarChart=ur,C.GidsCalendar=Ur,C.GidsCalendarHeaderPanel=Or,C.GidsCalendarMonthList=Rr,C.GidsCalendarYearList=Fr,C.GidsChart=ro,C.GidsChartLegend=Xr,C.GidsChartLegendItem=Qr,C.GidsChevronButton=lo,C.GidsDot=co,C.GidsDropdown=yo,C.GidsDropdownField=bo,C.GidsDropdownPicker=vo,C.GidsField=_o,C.GidsIcon=xo,C.GidsInput=wo,C.GidsLevelGauge=Co,C.GidsLineChart=ko,C.GidsNotification=Eo,C.GidsOverflowContainer=Lo,C.GidsOverlayProvider=Fo,C.GidsPasswordField=Jo,C.GidsPieChart=el,C.GidsPopover=Wl,C.GidsProgressCircle=Ul,C.GidsScrim=Xl,C.GidsSnackbar=Zl,C.GidsTextField=id,C.GidsToggleButton=ad,C.GidsTooltip=rd,C.getAssetPath=fa,C.getConstructedGidsStylesheet=O,C.refreshConstructedGidsStylesheet=At,C.render=Na,C.setAssetPath=ba,C.setGidsAssetFilePaths=od,C.setGidsAssetPaths=ei,C.setGidsDefaultAssetDirPath=ld,C.setNonce=$a,C.setPlatformOptions=Aa,C.testHtmlChildrenValidity=dd,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));