@ganpatiinfo/gids-core-web 9.0.0 → 10.1.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 (218) hide show
  1. package/dist/css/index.css +1504 -1
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.d.ts +11 -0
  4. package/dist/gids-action-bar.js +1 -0
  5. package/dist/gids-activity-gauge.d.ts +11 -0
  6. package/dist/gids-activity-gauge.js +1 -0
  7. package/dist/gids-bar-chart.d.ts +11 -0
  8. package/dist/gids-bar-chart.js +1 -0
  9. package/dist/gids-calendar-header-panel.d.ts +11 -0
  10. package/dist/gids-calendar-header-panel.js +1 -0
  11. package/dist/gids-calendar-month-list.d.ts +11 -0
  12. package/dist/gids-calendar-month-list.js +1 -0
  13. package/dist/gids-calendar-year-list.d.ts +11 -0
  14. package/dist/gids-calendar-year-list.js +1 -0
  15. package/dist/gids-calendar.d.ts +11 -0
  16. package/dist/gids-calendar.js +1 -0
  17. package/dist/gids-chart-legend-item.d.ts +11 -0
  18. package/dist/gids-chart-legend-item.js +1 -0
  19. package/dist/gids-chart-legend.d.ts +11 -0
  20. package/dist/gids-chart-legend.js +1 -0
  21. package/dist/gids-chart.d.ts +11 -0
  22. package/dist/gids-chart.js +1 -0
  23. package/dist/gids-chevron-button.d.ts +11 -0
  24. package/dist/gids-chevron-button.js +1 -0
  25. package/dist/gids-dot.d.ts +11 -0
  26. package/dist/gids-dot.js +1 -0
  27. package/dist/gids-dropdown-field.d.ts +11 -0
  28. package/dist/gids-dropdown-field.js +1 -0
  29. package/dist/gids-dropdown-picker.d.ts +11 -0
  30. package/dist/gids-dropdown-picker.js +1 -0
  31. package/dist/gids-dropdown.d.ts +11 -0
  32. package/dist/gids-dropdown.js +1 -0
  33. package/dist/gids-field.js +1 -1
  34. package/dist/gids-filter.d.ts +11 -0
  35. package/dist/gids-filter.js +1 -0
  36. package/dist/gids-icon.js +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.js +1 -1
  43. package/dist/gids-overflow-container.js +1 -1
  44. package/dist/gids-overlay-provider.js +1 -1
  45. package/dist/gids-password-field.js +1 -1
  46. package/dist/gids-pie-chart.d.ts +11 -0
  47. package/dist/gids-pie-chart.js +1 -0
  48. package/dist/gids-popover.js +1 -1
  49. package/dist/gids-progress-circle.d.ts +11 -0
  50. package/dist/gids-progress-circle.js +1 -0
  51. package/dist/gids-scrim.js +1 -1
  52. package/dist/gids-snackbar.js +1 -1
  53. package/dist/gids-text-field.js +1 -1
  54. package/dist/gids-toggle-button.js +1 -1
  55. package/dist/gids-tooltip.js +1 -1
  56. package/dist/index.js +1 -1
  57. package/dist/{p-DvoHLz_5.js → p-BQ-ZnlnH.js} +1 -1
  58. package/dist/p-BZCJlqVe.js +1 -0
  59. package/dist/p-Bf3p-DY2.js +1 -0
  60. package/dist/p-BpQB6ncp.js +1 -0
  61. package/dist/{p-DybsMR13.js → p-CHGTBObD.js} +1 -1
  62. package/dist/p-CP1wz2PI.js +1 -0
  63. package/dist/p-CQH7eAs3.js +1 -0
  64. package/dist/p-CW7tw1Fb.js +1 -0
  65. package/dist/p-CaauwQNd.js +1 -0
  66. package/dist/p-Cn3-K5eR.js +1 -0
  67. package/dist/p-CoS0NuDU.js +1 -0
  68. package/dist/{p-veoOgDXg.js → p-D4Pimu_8.js} +1 -1
  69. package/dist/p-D6lxqcxP.js +1 -0
  70. package/dist/p-DMNS1d8v.js +1 -0
  71. package/dist/{p-iCAclJND.js → p-DNTv2BQ5.js} +1 -1
  72. package/dist/p-DPIK2ayL.js +1 -0
  73. package/dist/p-Db62Pz3n.js +1 -0
  74. package/dist/p-Degg_WJz.js +1 -0
  75. package/dist/p-DfxTsSdZ.js +1 -0
  76. package/dist/p-Dg2yoUxw.js +1 -0
  77. package/dist/p-DmLoB2Dn.js +1 -0
  78. package/dist/p-DoCwI_bx.js +1 -0
  79. package/dist/p-H1JIMJ2t.js +1 -0
  80. package/dist/p-JjN8U9B5.js +1 -0
  81. package/dist/p-UVmSPzTd.js +1 -0
  82. package/dist/p-UxDcM-C5.js +1 -0
  83. package/dist/p-V48JyMbP.js +1 -0
  84. package/dist/p-mZJdpfOo.js +1 -0
  85. package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
  86. package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
  87. package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
  88. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
  89. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
  90. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
  91. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
  92. package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
  93. package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
  94. package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
  95. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
  96. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
  97. package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
  98. package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
  99. package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
  100. package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
  101. package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
  102. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
  103. package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
  104. package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
  105. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
  106. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
  107. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
  108. package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
  109. package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
  110. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
  111. package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
  112. package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
  113. package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
  114. package/dist/types/components.d.ts +1585 -49
  115. package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
  116. package/dist-bundled/es/gids-action-bar.js +177 -0
  117. package/dist-bundled/es/gids-activity-gauge.js +6 -0
  118. package/dist-bundled/es/gids-bar-chart.js +6 -0
  119. package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
  120. package/dist-bundled/es/gids-calendar-month-list.js +6 -0
  121. package/dist-bundled/es/gids-calendar-year-list.js +6 -0
  122. package/dist-bundled/es/gids-calendar.js +153 -0
  123. package/dist-bundled/es/gids-chart-legend-item.js +6 -0
  124. package/dist-bundled/es/gids-chart-legend.js +6 -0
  125. package/dist-bundled/es/gids-chart.js +108 -0
  126. package/dist-bundled/es/gids-chevron-button.js +56 -0
  127. package/dist-bundled/es/gids-dot.js +6 -0
  128. package/dist-bundled/es/gids-dropdown-field.js +88 -0
  129. package/dist-bundled/es/gids-dropdown-picker.js +6 -0
  130. package/dist-bundled/es/gids-dropdown.js +6 -0
  131. package/dist-bundled/es/gids-field.js +1 -1
  132. package/dist-bundled/es/gids-filter.js +6 -0
  133. package/dist-bundled/es/gids-icon.js +3 -29
  134. package/dist-bundled/es/gids-input.js +4 -4
  135. package/dist-bundled/es/gids-level-gauge.js +6 -0
  136. package/dist-bundled/es/gids-line-chart.js +6 -0
  137. package/dist-bundled/es/gids-notification.js +1 -1
  138. package/dist-bundled/es/gids-overflow-container.js +6 -6
  139. package/dist-bundled/es/gids-overlay-provider.js +17 -17
  140. package/dist-bundled/es/gids-password-field.js +39 -38
  141. package/dist-bundled/es/gids-pie-chart.js +6 -0
  142. package/dist-bundled/es/gids-popover.js +10 -10
  143. package/dist-bundled/es/gids-progress-circle.js +6 -0
  144. package/dist-bundled/es/gids-scrim.js +8 -8
  145. package/dist-bundled/es/gids-snackbar.js +1 -1
  146. package/dist-bundled/es/gids-text-field.js +15 -14
  147. package/dist-bundled/es/gids-toggle-button.js +4 -44
  148. package/dist-bundled/es/gids-tooltip.js +2 -2
  149. package/dist-bundled/es/index.js +3 -3
  150. package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-BQ-ZnlnH-CUVdDHzX.js} +5 -5
  151. package/dist-bundled/es/p-BZCJlqVe-BcSwze-q.js +71 -0
  152. package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
  153. package/dist-bundled/es/p-BpQB6ncp-C2AWddf-.js +180 -0
  154. package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
  155. package/dist-bundled/es/p-CP1wz2PI-DhVAsHFS.js +115 -0
  156. package/dist-bundled/es/p-CQH7eAs3-BVowyVGn.js +88 -0
  157. package/dist-bundled/es/p-CW7tw1Fb-DtJ5TwCU.js +92 -0
  158. package/dist-bundled/es/p-CaauwQNd-D6_PbcRr.js +20 -0
  159. package/dist-bundled/es/p-Cn3-K5eR-tQ1EOnDF.js +243 -0
  160. package/dist-bundled/es/p-CoS0NuDU-CqmDcRWj.js +56 -0
  161. package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-D4Pimu_8-DfEGRQGf.js} +9 -9
  162. package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
  163. package/dist-bundled/es/p-DMNS1d8v-CHF62UXm.js +29 -0
  164. package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-DNTv2BQ5-Bwgd30mM.js} +6 -6
  165. package/dist-bundled/es/p-DPIK2ayL-DPEbctqo.js +71 -0
  166. package/dist-bundled/es/p-Db62Pz3n-DpQjwBYb.js +31 -0
  167. package/dist-bundled/es/p-Degg_WJz-BLua06el.js +55 -0
  168. package/dist-bundled/es/p-DfxTsSdZ-C2Afv1lS.js +67 -0
  169. package/dist-bundled/es/p-Dg2yoUxw-Cca8ROd_.js +25 -0
  170. package/dist-bundled/es/p-DmLoB2Dn-D-FSoCvI.js +44 -0
  171. package/dist-bundled/es/p-DoCwI_bx-BXHlZI7-.js +37 -0
  172. package/dist-bundled/es/p-H1JIMJ2t-DEXp7M4I.js +152 -0
  173. package/dist-bundled/es/p-JjN8U9B5-GeWjfJBY.js +135 -0
  174. package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-UVmSPzTd-DiTxS9kW.js} +9 -9
  175. package/dist-bundled/es/p-UxDcM-C5-Dr5d_WpJ.js +15 -0
  176. package/dist-bundled/es/p-V48JyMbP-Bx-0od-Z.js +80 -0
  177. package/dist-bundled/es/p-mZJdpfOo-DicbKil0.js +47 -0
  178. package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
  179. package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
  180. package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
  181. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
  182. package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
  183. package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
  184. package/dist-bundled/umd/gids-calendar.umd.js +5 -0
  185. package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
  186. package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
  187. package/dist-bundled/umd/gids-chart.umd.js +13 -0
  188. package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
  189. package/dist-bundled/umd/gids-dot.umd.js +5 -0
  190. package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
  191. package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
  192. package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
  193. package/dist-bundled/umd/gids-field.umd.js +2 -2
  194. package/dist-bundled/umd/gids-filter.umd.js +7 -0
  195. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  196. package/dist-bundled/umd/gids-input.umd.js +2 -2
  197. package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
  198. package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
  199. package/dist-bundled/umd/gids-notification.umd.js +2 -2
  200. package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
  201. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  202. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  203. package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
  204. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  205. package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
  206. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  207. package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
  208. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  209. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  210. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  211. package/dist-bundled/umd/index.umd.js +2 -2
  212. package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
  213. package/package.json +164 -4
  214. package/dist/p-CFw4_-5A.js +0 -1
  215. package/dist/p-DijVkS9b.js +0 -1
  216. package/dist/p-ibikYq-w.js +0 -1
  217. package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
  218. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
@@ -1,7 +1,15 @@
1
- (function(E,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(E=typeof globalThis<"u"?globalThis:E||self,ce(E.gidsCoreWeb={}))})(this,(function(E){"use strict";var X;function ce(e,t,n){const i=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==i;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!n||s.get))return s;e=Object.getPrototypeOf(e)}}var be,vi=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([i,[s]])=>{if(31&s||32&s){const o=e[i],r=ce(Object.getPrototypeOf(e),i,!0)||Object.getOwnPropertyDescriptor(e,i);r&&Object.defineProperty(e,i,{get(){return r.get.call(this)},set(l){r.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(i)?e[i]=t.l.get(i):o!==void 0&&(e[i]=o)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Vt=(e,t)=>t in e,de=(e,t)=>(0,console.error)(e,t),Ae=new Map,Gt="http://www.w3.org/1999/xlink",T=typeof window<"u"?window:{},A=T.HTMLElement||class{},k={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Ke=(()=>{try{return!!T.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Ze=!!Ke&&!!T.document&&Object.getOwnPropertyDescriptor(T.document.adoptedStyleSheets,"length").writable,Je=!1,zt=[],Bt=[],yi=(e,t)=>n=>{e.push(n),Je||(Je=!0,4&k.i?tt(et):k.raf(et))},Ht=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){de(n)}e.length=0},et=()=>{Ht(zt),Ht(Bt),(Je=zt.length>0)&&k.raf(et)},tt=e=>Promise.resolve(void 0).then(e),_i=yi(Bt),wi=e=>{const t=new URL(e,k.u);return t.origin!==T.location.origin?t.href:t.pathname},Si=e=>k.u=e;function xi(){const e=this.attachShadow({mode:"open"});be===void 0&&(be=null),be&&(Ze?e.adoptedStyleSheets.push(be):e.adoptedStyleSheets=[...e.adoptedStyleSheets,be])}var Wt=e=>{const t=it(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&nt(t,e.tagName).forEach((i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(i.hidden=!!Ei(i,ve(i),!1).length)}));let n=0;for(n=0;n<t.length;n++){const i=t[n];i.nodeType===1&&it(i,"childNodes").length&&Wt(i)}};function nt(e,t,n){let i,s=0,o=[];for(;s<e.length;s++){if(i=e[s],i["s-sr"]&&(!t||i["s-hn"]===t)&&(n===void 0||ve(i)===n)&&(o.push(i),n!==void 0))return o;o=[...o,...nt(i.childNodes,t,n)]}return o}var Ei=(e,t,n=!0)=>{const i=[];(n&&e["s-sr"]||!e["s-sr"])&&i.push(e);let s=e;for(;s=s.nextSibling;)ve(s)!==t||!n&&s["s-sr"]||i.push(s);return i},Qt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ve=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function it(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var st,te,K=new WeakMap,Ut=e=>"sc-"+e.p,ot=e=>(e=typeof e)=="object"||e==="function",g=(e,t,...n)=>{let i=null,s=null,o=null,r=!1,l=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)i=d[f],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((r=typeof e!="function"&&!ot(i))&&(i=String(i)),r&&l?a[a.length-1].h+=i:a.push(r?$e(null,i):i),l=r)};if(c(n),t){t.key&&(s=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,Ci);const u=$e(e,null);return u.v=t,a.length>0&&(u.m=a),u.$=s,u.j=o,u},$e=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),rt={},Ci={forEach:(e,t)=>e.map(Xt).forEach(t),map:(e,t)=>e.map(Xt).map(t).map(Ti)},Xt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ti=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),g(e.vtag,n,...e.vchildren||[])}const t=$e(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Yt=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const s of t){if(n)break;for(const o of e[s])if(typeof o=="string"){n=!0;break}}if(!n)return e;const i={};for(const s of t)i[s]=e[s].map((o=>typeof o=="string"?{[o]:0}:o));return i},Kt=(e,t)=>e==null||ot(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,Ne=(e,t)=>{const n=e;return{emit:i=>Zt(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:i})}},Zt=(e,t,n)=>{const i=k.ce(t,n);return e.dispatchEvent(i),i},Jt=(e,t,n,i,s,o)=>{if(n===i)return;let r=Vt(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=en(n);let u=en(i);a.remove(...c.filter((d=>d&&!u.includes(d)))),a.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in n)i&&i[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in i)n&&i[a]===n[a]||(a.includes("-")?e.style.setProperty(a,i[a]):e.style[a]=i[a])}else if(t!=="key"){if(t==="ref")i&&Ri(i,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const u=H(e);if(u&&u.o&&u.o.t){const d=u.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(i==null||i===!1?i===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,i===!0?"":i))}if(t[0]==="p"&&t.startsWith("prop:")){const a=t.slice(5);try{e[a]=i}catch{}return}{const a=ot(i);if((r||a&&i!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==i&&(e[t]=i);else{const u=i??"";t==="list"?r=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),i==null||i===!1?i===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Gt,t):e.removeAttribute(t)):(!r||4&o||s)&&!a&&e.nodeType===1&&(i=i===!0?"":i,c?e.setAttributeNS(Gt,t,i):e.setAttribute(t,i))}}else if(t=t[2]==="-"?t.slice(3):Vt(T,l)?l.slice(2):l[2]+t.slice(3),n||i){const a=t.endsWith(tn);t=t.replace(Oi,""),n&&k.rel(e,t,n,a),i&&k.ael(e,t,i,a)}}},ki=/\s/,en=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ki):[]),tn="Capture",Oi=new RegExp(tn+"$"),at=(e,t,n)=>{const i=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},o=t.v||{};for(const r of nn(Object.keys(s)))r in o||Jt(i,r,s[r],void 0,n,t.i);for(const r of nn(Object.keys(o)))Jt(i,r,s[r],o[r],n,t.i)};function nn(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var ye=!1,Me=!1,Pe=!1,$=!1,lt=[],ct=[],Fe=(e,t,n)=>{var i;const s=t.m[n];let o,r,l,a=0;if(ye||(Pe=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)o=s.S=T.document.createTextNode(s.h);else if(1&s.i)o=s.S=T.document.createTextNode(""),at(null,s,$);else{if($||($=s.O==="svg"),!T.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=s.S=T.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ye&&2&s.i?"slot-fb":s.O),$&&s.O==="foreignObject"&&($=!1),at(null,s,$),s.m){const c=s.O==="template"?o.content:o;for(a=0;a<s.m.length;++a)r=Fe(e,s,a),r&&c.appendChild(r)}s.O==="svg"?$=!1:o.tagName==="foreignObject"&&($=!0)}return o["s-hn"]=te,3&s.i&&(o["s-sr"]=!0,o["s-cr"]=st,o["s-sn"]=s.j||"",o["s-rf"]=(i=s.v)==null?void 0:i.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const m=[],h=this["s-sn"];f?.flatten&&console.error(`
1
+ (function(S,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(S=typeof globalThis<"u"?globalThis:S||self,me(S.gidsCoreWeb={}))})(this,(function(S){"use strict";var ee;function me(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 ke,va=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[a]])=>{if(31&a||32&a){const n=e[s],l=me(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(o){l.set.call(this,o)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):n!==void 0&&(e[s]=n)}}))},U=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ri=(e,t)=>t in e,re=(e,t)=>(0,console.error)(e,t),Oe=new Map,li="http://www.w3.org/1999/xlink",ya=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],M=typeof window<"u"?window:{},T=M.HTMLElement||class{},A={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)},_a=(()=>{var e;let t=!1;try{(e=M.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ot=(()=>{try{return!!M.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),dt=!!ot&&!!M.document&&Object.getOwnPropertyDescriptor(M.document.adoptedStyleSheets,"length").writable,ct=!1,oi=[],di=[],xa=(e,t)=>i=>{e.push(i),ct||(ct=!0,4&A.i?gt(ht):A.raf(ht))},ci=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){re(i)}e.length=0},ht=()=>{ci(oi),ci(di),(ct=oi.length>0)&&A.raf(ht)},gt=e=>Promise.resolve(void 0).then(e),wa=xa(di),Ca=e=>{const t=new URL(e,A.u);return t.origin!==M.location.origin?t.href:t.pathname},Sa=e=>A.u=e;function ka(){const e=this.attachShadow({mode:"open"});ke===void 0&&(ke=null),ke&&(dt?e.adoptedStyleSheets.push(ke):e.adoptedStyleSheets=[...e.adoptedStyleSheets,ke])}var hi=e=>{const t=ut(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&pt(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Ea(s,Ee(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ut(s,"childNodes").length&&hi(s)}};function pt(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||Ee(s)===i)&&(n.push(s),i!==void 0))return n;n=[...n,...pt(s.childNodes,t,i)]}return n}var Ea=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let a=e;for(;a=a.nextSibling;)Ee(a)!==t||!i&&a["s-sr"]||s.push(a);return s},gi=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",Ee=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ut(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 mt,le,ie=new WeakMap,pi=e=>"sc-"+e.p,ft=e=>(e=typeof e)=="object"||e==="function",r=(e,t,...i)=>{let s=null,a=null,n=null,l=!1,o=!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"&&((l=typeof e!="function"&&!ft(s))&&(s=String(s)),l&&o?d[d.length-1].h+=s:d.push(l?Re(null,s):s),o=l)};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,Ia);const c=Re(e,null);return c.v=t,d.length>0&&(c.m=d),c.$=a,c.j=n,c},Re=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),bt={},Ia={forEach:(e,t)=>e.map(ui).forEach(t),map:(e,t)=>e.map(ui).map(t).map(Ta)},ui=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ta=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=Re(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},mi=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},fi=(e,t,i)=>e==null||ft(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,Ie=(e,t)=>{const i=e;return{emit:s=>bi(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},bi=(e,t,i)=>{const s=A.ce(t,i);return e.dispatchEvent(s),s},vi=(e,t,i,s,a,n)=>{if(i===s)return;let l=ri(e,t),o=t.toLowerCase();if(t==="class"){const d=e.classList,g=yi(i);let c=yi(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&&Ma(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=U(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=ft(s);if((l||d&&s!==null)&&!a)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const c=s??"";t==="list"?l=!1:i!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}let g=!1;o!==(o=o.replace(/^xlink\:?/,""))&&(t=o,g=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(g?e.removeAttributeNS(li,t):e.removeAttribute(t)):(!l||4&n||a)&&!d&&e.nodeType===1&&(s=s===!0?"":s,g?e.setAttributeNS(li,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ri(M,o)?o.slice(2):o[2]+t.slice(3),i||s){const d=t.endsWith(_i);t=t.replace(Da,""),i&&A.rel(e,t,i,d),s&&A.ael(e,t,s,d)}}},Pa=/\s/,yi=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Pa):[]),_i="Capture",Da=new RegExp(_i+"$"),vt=(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 l of xi(Object.keys(a)))l in n||vi(s,l,a[l],void 0,i,t.i);for(const l of xi(Object.keys(n)))vi(s,l,a[l],n[l],i,t.i)};function xi(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var Te=!1,Ve=!1,Ge=!1,N=!1,yt=[],_t=[],je=(e,t,i)=>{var s;const a=t.m[i];let n,l,o,d=0;if(Te||(Ge=!0,a.O==="slot"&&(a.i|=a.m?2:1)),a.h!=null)n=a.S=M.document.createTextNode(a.h);else if(1&a.i)n=a.S=M.document.createTextNode(""),vt(null,a,N);else{if(N||(N=a.O==="svg"),!M.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=M.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Te&&2&a.i?"slot-fb":a.O),N&&a.O==="foreignObject"&&(N=!1),vt(null,a,N),a.m){const g=a.O==="template"?n.content:n;for(d=0;d<a.m.length;++d)l=je(e,a,d),l&&g.appendChild(l)}a.O==="svg"?N=!1:n.tagName==="foreignObject"&&(N=!0)}return n["s-hn"]=le,3&a.i&&(n["s-sr"]=!0,n["s-cr"]=mt,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 y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(_=>{const p=[];for(let v=0;v<_.length;v++){const b=_[v]["s-nr"]||void 0;b&&b.isConnected&&p.push(b)}return p})(y.childNodes)).forEach((_=>{h===ve(_)&&m.push(_)})),d?m.filter((_=>_.nodeType===1)):m}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===s.O&&e.S&&sn(e.S)),o},sn=e=>{k.i|=1;const t=e.closest(te.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),i=Array.from(e.__childNodes||e.childNodes);for(const s of n?i.reverse():i)s["s-sh"]!=null&&(I(t,s,n??null),s["s-sh"]=void 0,Pe=!0)}k.i&=-2},Ie=(e,t)=>{k.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let i=e;for(;i=i.nextSibling;)i&&i["s-sn"]===e["s-sn"]&&i["s-sh"]===te&&n.push(i)}for(let i=n.length-1;i>=0;i--){const s=n[i];s["s-hn"]!==te&&s["s-ol"]&&(I(_e(s).parentNode,s,_e(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Pe=!0),t&&Ie(s,t)}k.i&=-2},on=(e,t,n,i,s,o)=>{let r,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===te&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);s<=o;++s)i[s]&&(r=Fe(null,n,s),r&&(i[s].S=r,I(l,r,_e(t))))},rn=(e,t,n)=>{for(let i=t;i<=n;++i){const s=e[i];if(s){const o=s.S;ln(s),o&&(Me=!0,o["s-ol"]?o["s-ol"].remove():Ie(o,!0),o.remove())}}},qe=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),_e=e=>e&&e["s-ol"]||e,ue=(e,t,n=!1)=>{const i=t.S=e.S,s=e.m,o=t.m,r=t.O,l=t.h;let a;l==null?($=r==="svg"||r!=="foreignObject"&&$,r!=="slot"||ye||e.j!==t.j&&(t.S["s-sn"]=t.j||"",sn(t.S.parentElement)),at(e,t,$),s!==null&&o!==null?((c,u,d,f,m=!1)=>{let h,y,_=0,p=0,v=0,b=0,S=u.length-1,w=u[0],x=u[S],C=f.length-1,O=f[0],R=f[C];const F=d.O==="template"?c.content:c;for(;_<=S&&p<=C;)if(w==null)w=u[++_];else if(x==null)x=u[--S];else if(O==null)O=f[++p];else if(R==null)R=f[--C];else if(qe(w,O,m))ue(w,O,m),w=u[++_],O=f[++p];else if(qe(x,R,m))ue(x,R,m),x=u[--S],R=f[--C];else if(qe(w,R,m))w.O!=="slot"&&R.O!=="slot"||Ie(w.S.parentNode,!1),ue(w,R,m),I(F,w.S,x.S.nextSibling),w=u[++_],R=f[--C];else if(qe(x,O,m))w.O!=="slot"&&R.O!=="slot"||Ie(x.S.parentNode,!1),ue(x,O,m),I(F,x.S,w.S),x=u[--S],O=f[++p];else{for(v=-1,b=_;b<=S;++b)if(u[b]&&u[b].$!==null&&u[b].$===O.$){v=b;break}v>=0?(y=u[v],y.O!==O.O?h=Fe(u&&u[p],d,v):(ue(y,O,m),u[v]=void 0,h=y.S),O=f[++p]):(h=Fe(u&&u[p],d,p),O=f[++p]),h&&I(_e(w.S).parentNode,h,_e(w.S))}_>S?on(c,f[C+1]==null?null:f[C+1].S,d,f,p,C):p>C&&rn(u,_,S)})(i,s,t,o,n):o!==null?(e.h!==null&&(i.textContent=""),on(i,null,t,o,0,o.length-1)):!n&&s!==null&&rn(s,0,s.length-1),$&&r==="svg"&&($=!1)):(a=i["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(i.data=l)},W=[],an=e=>{let t,n,i;const s=e.__childNodes||e.childNodes;for(const o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(i=n.length-1;i>=0;i--)if(t=n[i],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Qt(t,r)){let l=W.find((a=>a.k===t));Me=!0,t["s-sn"]=t["s-sn"]||r,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],W.push({N:o,k:t})),t["s-sr"]&&W.map((a=>{Qt(a.k,t["s-sn"])&&(l=W.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else W.some((l=>l.k===t))||W.push({k:t})}o.nodeType===1&&an(o)}},ln=e=>{e.v&&e.v.ref&&lt.push((()=>e.v.ref(null))),e.m&&e.m.map(ln)},Ri=(e,t)=>{ct.push((()=>e(t)))},I=(e,t,n,i)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:s}=(function(o,r){var l;if(!(r=r||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=o["s-sn"]=ve(o)||"";return{slotNode:nt(it(r,"childNodes"),r.tagName,a)[0],slotName:a}})(t);return s&&!i&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},cn=(e,t,n=!1)=>{var i,s,o,r,l;const a=e.$hostElement$,c=e.o,u=e.M||$e(null,null);var d;const f=(d=t)&&d.O===rt?t:g(null,null,t);if(te=a.tagName,c._&&(f.v=f.v||{},c._.forEach((([m,h])=>{f.v[h]=a[m]}))),n&&f.v)for(const m of Object.keys(f.v))a.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=a[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=a.shadowRoot||a,ye=!(!(1&c.i)||128&c.i),st=a["s-cr"],Me=!1,ue(u,f,n),k.i|=1,Pe){an(f.S);for(const m of W){const h=m.k;if(!h["s-ol"]&&T.document){const y=T.document.createTextNode("");y["s-nr"]=h,I(h.parentNode,h["s-ol"]=y,h,n)}}for(const m of W){const h=m.k,y=m.N;if(h.nodeType===1&&n&&(h["s-ih"]=(i=h.hidden)!=null&&i),y){const _=y.parentNode;let p=y.nextSibling;if(p&&p.nodeType===1){let v=(s=h["s-ol"])==null?void 0:s.previousSibling;for(;v;){let b=(o=v["s-nr"])!=null?o:null;if(b&&b["s-sn"]===h["s-sn"]&&_===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===h||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){p=b;break}}v=v.previousSibling}}if((!p&&_!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==p)&&h!==p){if(I(_,h,p,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const v=T.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=h["s-hn"],v["s-sn"]=h["s-sn"],v["s-sh"]=h["s-sh"],v["s-sr"]=h["s-sr"],v["s-ol"]=h["s-ol"],v["s-ol"]["s-nr"]=v,I(h.parentNode,v,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Me&&Wt(f.S),k.i&=-2,W.length=0,!ye&&!(1&c.i)&&a["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==te&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(l=h.hidden)!=null&&l),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const y=T.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],I(h.parentNode,y,h,n),h.parentNode.removeChild(h)}}}st=void 0,lt.forEach((m=>m())),lt.length=0,ct.forEach((m=>m())),ct.length=0},dn=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((i=>e.A=()=>{t["s-p"].splice(n-1,1),i()})))}},De=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);dn(e,e.C);const n=()=>Li(e,t);if(!t)return _i(n);queueMicrotask((()=>{n()}))},Li=(e,t)=>{const n=e.$hostElement$,i=n;if(!i)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=we(i,t?"componentWillLoad":"componentWillUpdate",void 0,n),s=un(s,(()=>we(i,"componentWillRender",void 0,n))),un(s,(()=>$i(e,i,t)))},un=(e,t)=>Ai(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Ai=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$i=async(e,t,n)=>{var i;const s=e.$hostElement$,o=s["s-rc"];n&&(r=>{const l=r.o,a=r.$hostElement$,c=l.i,u=((d,f)=>{var m,h,y;const _=Ut(f),p=Ae.get(_);if(!T.document)return _;if(d=d.nodeType===11?d:T.document,p)if(typeof p=="string"){let v,b=K.get(d=d.head||d);if(b||K.set(d,b=new Set),!b.has(_)){v=T.document.createElement("style"),v.textContent=p;const S=(m=k.L)!=null?m:(function(){var w,x,C;return(C=(x=(w=T.document.head)==null?void 0:w.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?C:void 0})();if(S!=null&&v.setAttribute("nonce",S),!(1&f.i))if(d.nodeName==="HEAD"){const w=d.querySelectorAll("link[rel=preconnect]"),x=w.length>0?w[w.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,x?.parentNode===d?x:null)}else if("host"in d)if(Ke){const w=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;w.replaceSync(p),Ze?d.adoptedStyleSheets.unshift(w):d.adoptedStyleSheets=[w,...d.adoptedStyleSheets]}else{const w=d.querySelector("style");w?w.textContent=p+w.textContent:d.prepend(v)}else d.append(v);1&f.i&&d.insertBefore(v,null),4&f.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(_)}}else{let v=K.get(d);if(v||K.set(d,v=new Set),!v.has(_)){const b=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let S;if(p.constructor===b.CSSStyleSheet)S=p;else{S=new b.CSSStyleSheet;for(let w=0;w<p.cssRules.length;w++)S.insertRule(p.cssRules[w].cssText,w)}Ze?d.adoptedStyleSheets.push(S):d.adoptedStyleSheets=[...d.adoptedStyleSheets,S],v.add(_)}}return _})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=u,a.classList.add(u+"-h"))})(e),Ni(e,t,s,n),o&&(o.map((r=>r())),s["s-rc"]=void 0);{const r=(i=s["s-p"])!=null?i:[],l=()=>Mi(e);r.length===0?l():(Promise.all(r).then(l).catch(l),e.i|=4,r.length=0)}},Ni=(e,t,n,i)=>{try{t=t.render(),e.i&=-17,e.i|=2,cn(e,t,i)}catch(s){de(s,e.$hostElement$)}return null},Mi=e=>{const t=e.$hostElement$,n=t,i=e.C;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,Fi(t),we(n,"componentDidLoad",void 0,t),e.F(t),i||Pi()),e.A&&(e.A(),e.A=void 0),512&e.i&&tt((()=>De(e,!1))),e.i&=-517},hn=e=>{var t;{const n=H(e),i=(t=n?.$hostElement$)==null?void 0:t.isConnected;return i&&(18&n.i)==2&&De(n,!1),i}},Pi=()=>{tt((()=>Zt(T,"appload",{detail:{namespace:"gids-core-web"}})))},we=(e,t,n,i)=>{if(e&&e[t])try{return e[t](n)}catch(s){de(s,i)}},Fi=e=>e.classList.add("hydrated"),fn=(e,t,n,i)=>{const s=H(e);if(!s)return;const o=e,r=s.l.get(t),l=s.i,a=o;n=Kt(n,i.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(s.l.set(t,n),i.R){const u=i.R[t];u&&u.map((d=>{try{const[[f,m]]=Object.entries(d);(128&l||1&m)&&(a?a[f](n,r,t):s.T.push((()=>{s.D[f](n,r,t)})))}catch(f){de(f,o)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,r,t)===!1&&!(16&l))return;16&l||De(s,!1)}}},Ii=(e,t)=>{var n,i;const s=e.prototype;{e.watchers&&!t.R&&(t.R=Yt(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((n=t.t)!=null?n:{});o.map((([r,[l]])=>{if(31&l||32&l){const{get:a,set:c}=ce(s,r)||{};a&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return a?a.apply(this):(u=r,H(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(u){const d=H(this);if(d){if(c)return(32&l?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[Kt(u,l)]),void fn(this,r,u=32&l?this[r]:d.$hostElement$[r],t);fn(this,r,u,t)}}})}}));{const r=new Map;s.attributeChangedCallback=function(l,a,c){k.jmp((()=>{var u;const d=r.get(l),f=H(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const p=f?.i;if(f&&p&&!(8&p)&&c!==a){const v=this,b=(u=t.R)==null?void 0:u[l];b?.forEach((S=>{const[[w,x]]=Object.entries(S);v[w]!=null&&(128&p||1&x)&&v[w].call(v,c,a,l)}))}return}const m=o.find((([p])=>p===d)),h=m&&4&m[1][0],y=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const _=Object.getOwnPropertyDescriptor(s,d);y||c==this[d]||_.get&&!_.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.R)!=null?i:{}),...o.filter((([l,a])=>31&a[0])).map((([l,a])=>{var c;const u=a[1]||l;return r.set(u,l),512&a[0]&&((c=t._)==null||c.push([l,u])),u}))]))}}return e},N=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Yt(e.R),n.H=e.H,n.P=e.P,n._=[];const i=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const l={i:0,$hostElement$:o,o:r,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),o["s-p"]=[],o["s-rc"]=[];const a=l;o.__stencil__getHostRef=()=>a,512&r.i&&vi(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!H(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&k.i)){const r=H(o);if(!r)return;const l=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&l.i&&(a=>{if(!T.document)return;const c=a["s-cr"]=T.document.createComment("");c["s-cn"]=!0,I(a,c,a.firstChild)})(o);{let a=o;for(;a=a.parentNode||a.host;)if(a["s-p"]){dn(r,r.C=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,a)){const u=o[a];delete o[a],o[a]=u}})),(async(a,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const y=Ut(u);Ae.has(y)||((_,p,v)=>{let b=Ae.get(_);Ke&&v?(b=b||new CSSStyleSheet,typeof b=="string"?b=p:b.replaceSync(p)):b=p,Ae.set(_,b)})(y,h,!!(1&u.i))}const f=c.C,m=()=>De(c,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){de(f,a),c.A&&(c.A(),c.A=void 0),c.F&&c.F(a)}})(o,r,l)}}})(this),i&&i.call(this)},disconnectedCallback(){(async o=>{1&k.i||H(o),K.has(o)&&K.delete(o),o.shadowRoot&&K.has(o.shadowRoot)&&K.delete(o.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xi.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ii(e,n)}catch(i){return de(i),e}},Se=(e,t)=>t,qi=e=>k.L=e,Di=e=>Object.assign(k,e),mn=new WeakMap;function ji(e,t){let n=mn.get(t);n||(n={i:0,o:{i:0,p:t.tagName},$hostElement$:t},mn.set(t,n)),cn(n,e)}function xr(e){return e}function gn(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=gn(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function P(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=gn(e))&&(i&&(i+=" "),i+=t);return i}const Vi=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>P("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Gi=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},i)=>P("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,i)},Symbol.toStringTag,{value:"Module"})),zi=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>P("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"})),Bi=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:i,positive:s,loading:o},r,l)=>P("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":i&&!s,"gids-button--positive":s&&!i,"gids-button--icon-only":r,"gids-button--loading":o},l)},Symbol.toStringTag,{value:"Module"})),pn=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Hi=/\w/,Wi=e=>e.replace(Hi,t=>t.toLocaleUpperCase()),bn=(e,t)=>typeof e=="function"?e(t):t?Wi(e):e,Qi=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,isLabelSentence:s})=>{const o=s?s(e):pn(e);if(t==="required")return bn(i&&i.length>0?i:"(required)",o);if(t==="optional")return bn(n&&n.length>0?n:"(optional)",o)},isSentence:pn},Symbol.toStringTag,{value:"Module"})),je=64,vn=10,yn=je/2-vn/2,Ui=je/2,dt=2*Math.PI*yn,Xi=`0 0 ${je} ${je}`,Yi=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(n,e))/n*100,o=(dt*s/100).toFixed(2),r=(dt-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Ui,circumference:dt,radius:yn,thickness:vn,viewBox:Xi},Symbol.toStringTag,{value:"Module"})),_n=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"})),ut=/[A-Z]/,ht=/[a-z]/,ft=/[0-9]/,mt=/[^A-Za-z0-9]/,Ki=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const n=t>0?e/t*100:0;return n<=20?"is-weak":n<=40?"is-medium":n<=60?"is-good-enough":n<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:n=0})=>{if(!e||e==="")return 0;let i=0;return t.includes("1-uppercase")&&ut.test(e)&&i++,t.includes("1-lowercase")&&ht.test(e)&&i++,t.includes("1-digit")&&ft.test(e)&&i++,t.includes("1-special-character")&&mt.test(e)&&i++,t.includes("include-min-length")&&n&&n>0&&e.length>=n&&i++,i},include1DigitReg:ft,include1LowercaseLetterReg:ht,include1SpecialCharReg:mt,include1UppercaseLetterReg:ut},Symbol.toStringTag,{value:"Module"})),xe=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,gt=e=>{const t=[];return e&&e.length>0&&e.map(n=>{n?.requirementRule&&t.push(n.requirementRule)}),t},Zi=({rule:e,textMinLength:t=0,text:n})=>{if(!n||n===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ut.test(n);case"1-lowercase":return ht.test(n);case"1-digit":return ft.test(n);case"1-special-character":return mt.test(n);case"include-min-length":return xe({requirementRule:"include-min-length",textMinLength:t})===!0&&n.length>=t;default:return!1}},pt=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 xe({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:gt(t),defaultRequirementsMeterRules:t}},Ji=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Zi,getDefaultRulesAndRequirementsForMeters:pt,getMeterRulesFromRequirements:gt,minLengthRuleCanBeApplied:xe},Symbol.toStringTag,{value:"Module"})),es=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"})),ts=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"})),ns=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},n)=>P("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},n)},Symbol.toStringTag,{value:"Module"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>P("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:os}=_n,rs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":os(e)},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>P("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>P("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"})),cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>P("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:ds}=ts,us=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":ds(e)},Symbol.toStringTag,{value:"Module"})),hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>P("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"})),wn=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"}},Sn=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"}},fs=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:n})=>n.includes(t)?Sn(e):wn(e),getComponentEntryClasses:wn,getComponentExitClasses:Sn,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"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>P("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"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>P("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),bt=Symbol("defaultPath"),xn=Symbol("pathSet"),vt="gids-asset-paths-set";class ps extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#n(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(vt))};haveAssetPathsBeenSet(){return this.#n(xn)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(bt,t);else{for(const i in t)this.#e(i,t[i]);n&&this.#e(bt,n)}this.#e(xn,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const n=this.#n(t);if(n===null){const i=this.#n(bt);if(i!==null)return`${i}${i.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(vt,t,{once:!0}),()=>{this.removeEventListener(vt,t)}}}const yt=Symbol.for("GIDS"),bs=()=>(globalThis[yt]===void 0&&(globalThis[yt]={assetPaths:{}}),globalThis[yt]),vs=e=>{const t=bs().assetPaths;return t[e]===void 0&&(t[e]=new ps),t[e]};function Ve(){return vs("@ganpatiinfo/gids-web-shared")}function ys(){return Ve().haveAssetPathsBeenSet()}function _s(e,t){Ve().setAssetPaths(e,t)}function En(e){return Ve().getAssetFilePath(e)}function ws(e){return Ve().onAssetPathsSet(e)}let Ss=0;const _t=(e,t="gids")=>e||`${t}-${Ss++}`,xs=e=>e.type==="hidden",Es=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&&!xs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Cn=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Tn={"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"]},kn=new Map;for(const e in Tn)for(const t of Tn[e])kn.set(t,e);function Cs(e){return kn.get(e)}function On(e,t="regular",n){const i=Cs(e);let s=i??"";return n&&i&&(s=n(i)??i),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ts}=zi,Q=({name:e,size:t,appearance:n,alt:i,class:s,titleId:o,src:r,...l})=>{const a=_t(o);let c=r;return c===void 0&&ys()&&(c=On(e,n,En)),g("svg",{ref:u=>{c===void 0&&ws((()=>{(function(d,f,m){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",On(f,m,En)),d.appendChild(h)})(u,e,n)}))},width:"16",height:"16",class:Ts({size:t},s),role:"img","aria-hidden":i===""?"true":void 0,"aria-labelledby":i===""?void 0:a,...l},i!==""&&g("title",{id:a},i||e),c!==void 0?g("use",{href:c}):null)},he=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Rn=!1;he&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(he):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let wt=null;const St=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{xt()})):void 0,xt=()=>{if(he===void 0)return!1;const e=(()=>{if(he===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const i=document.styleSheets.item(n);if(i)try{let s=-1,o=0;for(let r=0;r<i.cssRules.length;r++){const l=i.cssRules.item(r);if(l?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){o=r-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:o,rules:t,styleSheet:i}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return St!==void 0&&t!==wt&&(wt&&St.disconnect(),t instanceof Element&&St.observe(t,{childList:!0,characterData:!0,subtree:!0}),wt=t),he.replaceSync((n=>n.rules.map((i=>i.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:i,originalRulesCount:s,styleSheet:o}=n;for(let r=0;r<s;r++)o.deleteRule(i)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},G=()=>(Rn||(Rn=xt()),he),{getGidsFieldClassNames:ks}=ss,Ln=N(class extends A{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})??[],n=this._findTextControl(t);this._attachControlElement(n)},this._handleControlValueInput=t=>{if(!this._controlTouched){const n=t.target;n instanceof HTMLInputElement&&(n.type==="checkbox"||n.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=G();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,n=this._getCurrentStatus(),i=["gids-field__status-text"];if(e){const s=this._getStatusModifierClass(n,"gids-field__status-text");s!=null&&i.push(s)}return g(rt,{key:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},g("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:ks()},g("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},g("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),g("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),g("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},g("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),g("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?g("p",{class:i.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(n),t!==void 0?g("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 n=["gids-field__status-icon"],i=this._getStatusModifierClass(e,"gids-field__status-icon");i!=null&&n.push(i);let s=e;return e==="error"&&(s="danger"),e==="success"&&(s="positive"),g(Q,{appearance:"filled",size:"sm",alt:"",name:t,class:n.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${s})`}})}_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((n=>{n.addEventListener("input",this._handleControlValueInput),n.addEventListener("change",this._handleControlValueInput),n.addEventListener("blur",this._handleControlBlur,!0),n.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 n=t.elements.namedItem(e.name);if(n instanceof RadioNodeList){const i=Array.from(n).filter((s=>s instanceof HTMLInputElement&&s.type==="radio"&&this._el.contains(s)));if(i.length>0)return i}}if(e.name!=null){const n=`input[type="radio"][name="${CSS.escape(e.name)}"]`,i=Array.from(this._el.querySelectorAll(n));if(i.length>0)return i}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 n=t,i=this._asTextControl(n);if(i!==null)return i;const s=n.querySelector("input, textarea");if(s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement)return s}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 Et(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ln))}))}Et();const Os=Ln,An=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return g(Q,{key:"3033afda529cd2143bd0d3c3ca5c985b4b950eae",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 Rs(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,An))}))}Rs();const Ls=An,{getGidsSpinnerControlClassNames:As}=Gi,{calculateStrokeDasharray:$s,thickness:$n,radius:Nn,centerPosition:Ge,viewBox:Ns}=Yi,Mn=({size:e,indeterminate:t,value:n,max:i,...s})=>{let o;return t||(o={strokeDashArray:$s(n,i||0),strokeDashoffset:"0"}),g("svg",{class:As({size:e,indeterminate:t,value:n}),viewBox:Ns,...s},g("circle",{class:"gids-spinner-control__track",cx:Ge,cy:Ge,r:Nn,"stroke-width":$n}),g("circle",{style:o,class:"gids-spinner-control__progress",cx:Ge,cy:Ge,r:Nn,"stroke-width":$n}))},Pn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Es(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 g(Se,{key:"c1e035111a8a80ef0b442bc0298785f0c7445113"},g("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&g("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),g("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),g("input",{key:"2bc7f84858a8533f33c66834ad212c38ad698075",...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}),g("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&g("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),g("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&g(Q,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&g(Q,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&g(Mn,{key:"4dd22cd62d87ff444794fc8f1c4f0cc78e14738a",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 Ct(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Pn))}))}Ct();const Ms=Pn,Tt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Fn=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(n=>{const i=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const o=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),r=o[o.length-1];if(!r)return 1;const l=r.offsetHeight,a=getComputedStyle(r).lineHeight,c=a.endsWith("px")?parseFloat(a):0;return Math.ceil(c?l/c:1)})();return i===2?n==="snackbar"?5e3:8e3:i>=3?n==="snackbar"?7e3:1e4:n==="snackbar"?3e3:6e3})(e),In=N(class extends A{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=Tt(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 Ps(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,In))}))}Ps();const Fs=In,{showGidsOverflowContainerBottomShadow:qn,showGidsOverflowContainerTopShadow:Is}=ns,Dn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),qn(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&&(Is(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),qn(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 g("div",{key:"0a7916237558157e7122aeb05de6bf2eaaf5df77",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},g("slot",{key:"fda73f846c0ec7371d57b7a8e379c028e0feaa98"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function qs(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Dn))}))}qs();const Ds=Dn,{getGidsButtonClassNames:js}=Bi,Ee=({appearance:e,size:t,destructive:n,positive:i,loading:s,width:o,leadingIcon:r,trailingIcon:l,as:a,disabled:c,class:u,forceIconOnly:d=!1,...f},m)=>{const h=a||"button",y=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in f||(f.type="button"),g(h,{class:js({appearance:e,size:t,destructive:n,loading:s,width:o,positive:i},d||m.length===0&&Cn(r)&&!Cn(l),u),disabled:h==="button"?c:void 0,...f},g("span",{class:"gids-button__content"},r,m),s&&g(Mn,{size:y,indeterminate:!0}),l)},{getGidsSnackbarContainerClassNames:Vs,getSnackbarContainerIconNames:Gs}=hs,zs=({appearance:e="default",children:t,button:n,class:i,...s})=>{const o=Gs(e);return g("div",{...s,class:Vs({appearance:e},i)},g("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?g(Q,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?g("p",null,t):t),n)},{getGidsNotificationContainerClassNames:Bs,getNotificationContainerIconNames:Hs}=ms,Ws=({notificationTitle:e,children:t,button:n,appearance:i="default",pronunciation:s="standard",onCloseNotificationClick:o,class:r,...l})=>{const a=Hs(i);return g("div",{class:Bs({appearance:i},r),...l},i!=="default"&&a?g("div",{class:"gids-notification-container__leading-icon-wrapper"},g(Q,{size:"md",name:a,alt:"",appearance:"filled"})):null,g("div",{class:"gids-notification-container__content-wrapper"},g("div",{class:"gids-notification-container__top-content"},g("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?g("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?g("p",null,t):t:null),s==="standard"?g("div",{class:"gids-notification-container__cross-btn-wrapper"},g(Ee,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:g(Q,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),n?g("div",{class:"gids-notification-container__bottom-content"},n):null))},{getComponentClasses:Qs,getComponentStackClasses:Us}=fs,jn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,n)=>{const{id:i,message:s,appearance:o,buttonLabel:r,onButtonClick:l}=t;return g(zs,{key:i,class:n,children:s,appearance:o,button:r!=null&&r!==""?g(Ee,{appearance:"subtle",onClick:l},r):void 0})},this._renderNotification=(t,n)=>{const{id:i,notificationTitle:s,message:o,pronunciation:r,appearance:l,buttonLabel:a,onButtonClick:c,timerInMs:u}=t;return g(Ws,{key:i,class:n,notificationTitle:s,children:o,pronunciation:r,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:a!=null&&a!==""?g(Ee,{appearance:"default",size:"sm",onClick:c},a):void 0})},this._renderComponent=t=>{const{componentName:n,position:i="bottom-center",id:s}=t,o=Qs({position:i,id:s,exitingComponents:this._exitingComponents});return n==null||n==="snackbar"?this._renderSnackbar(t,o):n==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Tt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const n=setTimeout((()=>(clearTimeout(n),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:n,buttonLabel:i,onButtonClick:s,position:o,componentName:r,...l}=e,a={id:""+(Date.now()+Math.random()),message:n,appearance:t,buttonLabel:i,onButtonClick:s,position:o,componentName:r,...l};this._componentQueue=[...this._componentQueue,a],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:n,pronunciation:i,message:s,buttonLabel:o,onButtonClick:r,position:l,componentName:a,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:n,message:s,pronunciation:i,appearance:t,buttonLabel:o,onButtonClick:r,position:l,componentName:a,...c};this._componentQueue=[...this._componentQueue,u],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,n){return n||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((n=>requestAnimationFrame((()=>n()))));const t=Fn({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 n=Fn({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,n,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return g(Se,{key:"cfacf71807978b22d6f2a9e33c0518e9aefc3a58"},g("slot",{key:"4b4fa08f00a46a95ed4af543f85aad06affee847"}),this._isRoot()?g("div",{class:Us({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 Xs(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jn))}))}Xs();const Ys=jn,{getIndicatorText:Ks}=Qi,{getGidsLabelClassNames:Zs}=Vi,Vn=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,info:s,htmlFor:o,labelId:r,class:l,isLabelSentence:a,...c},u)=>{const d=Ks({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,isLabelSentence:a});return g("div",{class:Zs({disabled:e},l),...c},g("label",{htmlFor:o,id:r},u,d&&g("span",{class:"gids-label__field-requirement"},d)),s)},{getGidsDismissButtonClassNames:Js}=is,Gn=({appearance:e="subtle",size:t="md",disabled:n=!1,class:i,onPressDismiss:s,label:o,...r})=>g("button",{class:Js({appearance:e,size:t},i),onClick:s,disabled:n,"aria-label":o,...r},g(Q,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:eo}=as,{getStrengthMeterScore:to,getColorModifierByScore:no}=Ki,io=({text:e,textMinLength:t,meterRules:n=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:i})=>{const s=(o,r,l)=>g("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?r:""].filter(Boolean).join(" ")});return n.length>0?g("div",{class:eo(i)},(()=>{const o=n.length,r=to({text:e,textMinLength:t,meterRules:n}),l=no({textScore:r,maxScore:o});return Array.from({length:o},((a,c)=>{const u=c+1,d=u<=r;return n[u]==="include-min-length"?xe({requirementRule:"include-min-length",textMinLength:t})?s(u,l,d):null:s(u,l,d)}))})()):null},{getGidsRequirementsMeterLabelClassNames:so}=ls,{getRequirementsMeterLabelLeadingIcon:oo}=es,ro=e=>{const{label:t,status:n="default",leadingIconVisible:i=!0,class:s}=e,o=oo(n);return g("div",{class:so({status:n},s)},i&&n&&o?g(Q,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?g("span",null,t):null)},{checkRequirementRuleSatisfied:ao}=Ji,{getGidsRequirementsMeterClassNames:lo}=cs,co=({requirements:e=[],text:t,textMinLength:n,class:i})=>{const s=(o,r)=>g(ro,{status:r?"success":"error",label:o.requirementText});return g("div",{class:lo(i)},e.map((o=>{if(o?.requirementText!=null&&o?.requirementRule!=null){const r=ao({rule:o.requirementRule,textMinLength:n,text:t});return o.requirementRule==="include-min-length"?xe({requirementRule:o.requirementRule,textMinLength:n})===!0?s(o,r):null:s(o,r)}return null})))},{inputToGidsFieldStatusForPassword:uo}=us,zn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=Ne(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=Ne(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=_t(),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?gt(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{hn(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=pt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=pt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=G();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??{},n=e??this.#t,i=this.showClearButton&&this.value!==void 0&&this.value.length>0,s=this.showRevealPasswordButton,o={...t},r=o?.placeholder!==void 0&&o.placeholder!==null&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,a=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return g(Se,{key:"674d6baf90ed0a3b9bf6821fb288972ffe255909"},g("gids-field",{key:"2b1f7f67ef3616edf29843b663c4e1efa8ce416a",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:uo(this.status)},g(Vn,{key:"ccd09eba06b8876d216181b8dd7fbcb1ff742d86",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:n},this.label),g("gids-input",{key:"f9a8c8f13347b5dd7620e8498aeb85ec646f000f",ref:u=>this.#e=u,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:r,type:l?"text":"password",id:n,maxLength:this.maxLength}},g("slot",{key:"56c43774f755d7ae1ac6e633e39426d2b489414a",name:"leadingIcon"}),g("slot",{key:"1e964257af8f053e0d7c9de51fc0ec48a38b6d18",name:"leadingAccessory"}),g("div",{key:"f453197e76a4c8c01f1fa12a6f0c551a14f71f5d",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},i&&g(Gn,{key:"3127641007c6eb5db4e9b8c6bd521e6cdf80e59b",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),s&&g(Ee,{key:"bc537fa18fabe13e16ec2a7c8b5f4611e589c4c7",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),g("div",{key:"355033afd60090f7b04e48db5c1d675f29663e18",class:"gids-password-field__meters-container"},g(io,{key:"fb407fffb5de91b9bc30c1e7593fee01b5fa2a09",meterRules:a,text:this.value,textMinLength:c}),g(co,{key:"6888d147c99ea7902954e55ad91a5d64d7c1a031",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}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 ho(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,zn);break;case"gids-field":customElements.get(e)||Et();break;case"gids-input":customElements.get(e)||Ct()}}))}ho();const fo=zn,fe=Math.min,ne=Math.max,ze=Math.round,Be=Math.floor,z=e=>({x:e,y:e}),mo={left:"right",right:"left",bottom:"top",top:"bottom"};function kt(e,t,n){return ne(e,fe(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function Bn(e){return e==="x"?"y":"x"}function Ot(e){return e==="y"?"height":"width"}function Z(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Rt(e){return Bn(Z(e))}function go(e,t,n){n===void 0&&(n=!1);const i=Te(e),s=Rt(e),o=Ot(s);let r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=He(r)),[r,He(r)]}function po(e){const t=He(e);return[Lt(e),t,Lt(t)]}function Lt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hn=["left","right"],Wn=["right","left"],bo=["top","bottom"],vo=["bottom","top"];function yo(e,t,n){switch(e){case"top":case"bottom":return n?t?Wn:Hn:t?Hn:Wn;case"left":case"right":return t?bo:vo;default:return[]}}function _o(e,t,n,i){const s=Te(e);let o=yo(ie(e),n==="start",i);return s&&(o=o.map(r=>r+"-"+s),t&&(o=o.concat(o.map(Lt)))),o}function He(e){const t=ie(e);return mo[t]+e.slice(t.length)}function wo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qn(e){return typeof e!="number"?wo(e):{top:e,right:e,bottom:e,left:e}}function We(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function Un(e,t,n){let{reference:i,floating:s}=e;const o=Z(t),r=Rt(t),l=Ot(r),a=ie(t),c=o==="y",u=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,f=i[l]/2-s[l]/2;let m;switch(a){case"top":m={x:u,y:i.y-s.height};break;case"bottom":m={x:u,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:d};break;case"left":m={x:i.x-s.width,y:d};break;default:m={x:i.x,y:i.y}}switch(Te(t)){case"start":m[r]-=f*(n&&c?-1:1);break;case"end":m[r]+=f*(n&&c?-1:1);break}return m}async function So(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:o,rects:r,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Ce(t,e),h=Qn(m),_=l[f?d==="floating"?"reference":"floating":d],p=We(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),v=d==="floating"?{x:i,y:s,width:r.floating.width,height:r.floating.height}:r.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},w=We(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:a}):v);return{top:(p.top-w.top+h.top)/S.y,bottom:(w.bottom-p.bottom+h.bottom)/S.y,left:(p.left-w.left+h.left)/S.x,right:(w.right-p.right+h.right)/S.x}}const xo=50,Eo=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:So},a=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Un(c,i,a),f=i,m=0;const h={};for(let y=0;y<o.length;y++){const _=o[y];if(!_)continue;const{name:p,fn:v}=_,{x:b,y:S,data:w,reset:x}=await v({x:u,y:d,initialPlacement:i,placement:f,strategy:s,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});u=b??u,d=S??d,h[p]={...h[p],...w},x&&m<xo&&(m++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):x.rects),{x:u,y:d}=Un(c,f,a)),y=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:h}},Co=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:o,platform:r,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=Ce(e,t)||{};if(c==null)return{};const d=Qn(u),f={x:n,y:i},m=Rt(s),h=Ot(m),y=await r.getDimensions(c),_=m==="y",p=_?"top":"left",v=_?"bottom":"right",b=_?"clientHeight":"clientWidth",S=o.reference[h]+o.reference[m]-f[m]-o.floating[h],w=f[m]-o.reference[m],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let C=x?x[b]:0;(!C||!await(r.isElement==null?void 0:r.isElement(x)))&&(C=l.floating[b]||o.floating[h]);const O=S/2-w/2,R=C/2-y[h]/2-1,F=fe(d[p],R),Re=fe(d[v],R),ae=F,Le=C-y[h]-Re,L=C/2-y[h]/2+O,le=kt(ae,L,Le),Y=!a.arrow&&Te(s)!=null&&L!==le&&o.reference[h]/2-(L<ae?F:Re)-y[h]/2<0,j=Y?L<ae?L-ae:L-Le:0;return{[m]:f[m]+j,data:{[m]:le,centerOffset:L-le-j,...Y&&{alignmentOffset:j}},reset:Y}}}),To=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:o,rects:r,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,..._}=Ce(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=ie(s),v=Z(l),b=ie(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(c.floating)),w=f||(b||!y?[He(l)]:po(l)),x=h!=="none";!f&&x&&w.push(..._o(l,y,h,S));const C=[l,...w],O=await a.detectOverflow(t,_),R=[];let F=((i=o.flip)==null?void 0:i.overflows)||[];if(u&&R.push(O[p]),d){const L=go(s,r,S);R.push(O[L[0]],O[L[1]])}if(F=[...F,{placement:s,overflows:R}],!R.every(L=>L<=0)){var Re,ae;const L=(((Re=o.flip)==null?void 0:Re.index)||0)+1,le=C[L];if(le&&(!(d==="alignment"?v!==Z(le):!1)||F.every(V=>Z(V.placement)===v?V.overflows[0]>0:!0)))return{data:{index:L,overflows:F},reset:{placement:le}};let Y=(ae=F.filter(j=>j.overflows[0]<=0).sort((j,V)=>j.overflows[1]-V.overflows[1])[0])==null?void 0:ae.placement;if(!Y)switch(m){case"bestFit":{var Le;const j=(Le=F.filter(V=>{if(x){const ee=Z(V.placement);return ee===v||ee==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ee=>ee>0).reduce((ee,Sr)=>ee+Sr,0)]).sort((V,ee)=>V[1]-ee[1])[0])==null?void 0:Le[0];j&&(Y=j);break}case"initialPlacement":Y=l;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}},ko=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:i,elements:s}=e,o=await(i.isRTL==null?void 0:i.isRTL(s.floating)),r=ie(n),l=Te(n),a=Z(n)==="y",c=ko.has(r)?-1:1,u=o&&a?-1:1,d=Ce(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(m=l==="end"?h*-1:h),a?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const Ro=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:o,placement:r,middlewareData:l}=t,a=await Oo(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+a.x,y:o+a.y,data:{...a,placement:r}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:o}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:p=>{let{x:v,y:b}=p;return{x:v,y:b}}},...c}=Ce(e,t),u={x:n,y:i},d=await o.detectOverflow(t,c),f=Z(ie(s)),m=Bn(f);let h=u[m],y=u[f];if(r){const p=m==="y"?"top":"left",v=m==="y"?"bottom":"right",b=h+d[p],S=h-d[v];h=kt(b,h,S)}if(l){const p=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=y+d[p],S=y-d[v];y=kt(b,y,S)}const _=a.fn({...t,[m]:h,[f]:y});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[m]:r,[f]:l}}}}}};function Qe(){return typeof window<"u"}function me(e){return Xn(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function B(e){var t;return(t=(Xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xn(e){return Qe()?e instanceof Node||e instanceof M(e).Node:!1}function q(e){return Qe()?e instanceof Element||e instanceof M(e).Element:!1}function U(e){return Qe()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function Yn(e){return!Qe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function ke(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function Ao(e){return/^(table|td|th)$/.test(me(e))}function Ue(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $o=/transform|translate|scale|rotate|perspective|filter/,No=/paint|layout|strict|content/,se=e=>!!e&&e!=="none";let At;function $t(e){const t=q(e)?D(e):e;return se(t.transform)||se(t.translate)||se(t.scale)||se(t.rotate)||se(t.perspective)||!Nt()&&(se(t.backdropFilter)||se(t.filter))||$o.test(t.willChange||"")||No.test(t.contain||"")}function Mo(e){let t=J(e);for(;U(t)&&!ge(t);){if($t(t))return t;if(Ue(t))return null;t=J(t)}return null}function Nt(){return At==null&&(At=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),At}function ge(e){return/^(html|body|#document)$/.test(me(e))}function D(e){return M(e).getComputedStyle(e)}function Xe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yn(e)&&e.host||B(e);return Yn(t)?t.host:t}function Kn(e){const t=J(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&ke(t)?t:Kn(t)}function Oe(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Kn(e),o=s===((i=e.ownerDocument)==null?void 0:i.body),r=M(s);if(o){const l=Mt(r);return t.concat(r,r.visualViewport||[],ke(s)?s:[],l&&n?Oe(l):[])}else return t.concat(s,Oe(s,[],n))}function Mt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zn(e){const t=D(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=U(e),o=s?e.offsetWidth:n,r=s?e.offsetHeight:i,l=ze(n)!==o||ze(i)!==r;return l&&(n=o,i=r),{width:n,height:i,$:l}}function Pt(e){return q(e)?e:e.contextElement}function pe(e){const t=Pt(e);if(!U(t))return z(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:o}=Zn(t);let r=(o?ze(n.width):n.width)/i,l=(o?ze(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const Po=z(0);function Jn(e){const t=M(e);return!Nt()||!t.visualViewport?Po:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==M(e)?!1:t}function oe(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Pt(e);let r=z(1);t&&(i?q(i)&&(r=pe(i)):r=pe(e));const l=Fo(o,n,i)?Jn(o):z(0);let a=(s.left+l.x)/r.x,c=(s.top+l.y)/r.y,u=s.width/r.x,d=s.height/r.y;if(o){const f=M(o),m=i&&q(i)?M(i):i;let h=f,y=Mt(h);for(;y&&i&&m!==h;){const _=pe(y),p=y.getBoundingClientRect(),v=D(y),b=p.left+(y.clientLeft+parseFloat(v.paddingLeft))*_.x,S=p.top+(y.clientTop+parseFloat(v.paddingTop))*_.y;a*=_.x,c*=_.y,u*=_.x,d*=_.y,a+=b,c+=S,h=M(y),y=Mt(h)}}return We({width:u,height:d,x:a,y:c})}function Ye(e,t){const n=Xe(e).scrollLeft;return t?t.left+n:oe(B(e)).left+n}function ei(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Ye(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function Io(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const o=s==="fixed",r=B(i),l=t?Ue(t.floating):!1;if(i===r||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=z(1);const u=z(0),d=U(i);if((d||!d&&!o)&&((me(i)!=="body"||ke(r))&&(a=Xe(i)),d)){const m=oe(i);c=pe(i),u.x=m.x+i.clientLeft,u.y=m.y+i.clientTop}const f=r&&!d&&!o?ei(r,a):z(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function qo(e){return Array.from(e.getClientRects())}function Do(e){const t=B(e),n=Xe(e),i=e.ownerDocument.body,s=ne(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=ne(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+Ye(e);const l=-n.scrollTop;return D(i).direction==="rtl"&&(r+=ne(t.clientWidth,i.clientWidth)-s),{width:s,height:o,x:r,y:l}}const ti=25;function jo(e,t){const n=M(e),i=B(e),s=n.visualViewport;let o=i.clientWidth,r=i.clientHeight,l=0,a=0;if(s){o=s.width,r=s.height;const u=Nt();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}const c=Ye(i);if(c<=0){const u=i.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(i.clientWidth-d.clientWidth-m);h<=ti&&(o-=h)}else c<=ti&&(o+=c);return{width:o,height:r,x:l,y:a}}function Vo(e,t){const n=oe(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,o=U(e)?pe(e):z(1),r=e.clientWidth*o.x,l=e.clientHeight*o.y,a=s*o.x,c=i*o.y;return{width:r,height:l,x:a,y:c}}function ni(e,t,n){let i;if(t==="viewport")i=jo(e,n);else if(t==="document")i=Do(B(e));else if(q(t))i=Vo(t,n);else{const s=Jn(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return We(i)}function ii(e,t){const n=J(e);return n===t||!q(n)||ge(n)?!1:D(n).position==="fixed"||ii(n,t)}function Go(e,t){const n=t.get(e);if(n)return n;let i=Oe(e,[],!1).filter(l=>q(l)&&me(l)!=="body"),s=null;const o=D(e).position==="fixed";let r=o?J(e):e;for(;q(r)&&!ge(r);){const l=D(r),a=$t(r);!a&&l.position==="fixed"&&(s=null),(o?!a&&!s:!a&&l.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ke(r)&&!a&&ii(e,r))?i=i.filter(u=>u!==r):s=l,r=J(r)}return t.set(e,i),i}function zo(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const r=[...n==="clippingAncestors"?Ue(t)?[]:Go(t,this._c):[].concat(n),i],l=ni(t,r[0],s);let a=l.top,c=l.right,u=l.bottom,d=l.left;for(let f=1;f<r.length;f++){const m=ni(t,r[f],s);a=ne(m.top,a),c=fe(m.right,c),u=fe(m.bottom,u),d=ne(m.left,d)}return{width:c-d,height:u-a,x:d,y:a}}function Bo(e){const{width:t,height:n}=Zn(e);return{width:t,height:n}}function Ho(e,t,n){const i=U(t),s=B(t),o=n==="fixed",r=oe(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=z(0);function c(){a.x=Ye(s)}if(i||!i&&!o)if((me(t)!=="body"||ke(s))&&(l=Xe(t)),i){const m=oe(t,!0,o,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else s&&c();o&&!i&&s&&c();const u=s&&!i&&!o?ei(s,l):z(0),d=r.left+l.scrollLeft-a.x-u.x,f=r.top+l.scrollTop-a.y-u.y;return{x:d,y:f,width:r.width,height:r.height}}function Ft(e){return D(e).position==="static"}function si(e,t){if(!U(e)||D(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function oi(e,t){const n=M(e);if(Ue(e))return n;if(!U(e)){let s=J(e);for(;s&&!ge(s);){if(q(s)&&!Ft(s))return s;s=J(s)}return n}let i=si(e,t);for(;i&&Ao(i)&&Ft(i);)i=si(i,t);return i&&ge(i)&&Ft(i)&&!$t(i)?n:i||Mo(e)||n}const Wo=async function(e){const t=this.getOffsetParent||oi,n=this.getDimensions,i=await n(e.floating);return{reference:Ho(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qo(e){return D(e).direction==="rtl"}const It={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:B,getClippingRect:zo,getOffsetParent:oi,getElementRects:Wo,getClientRects:qo,getDimensions:Bo,getScale:pe,isElement:q,isRTL:Qo};function ri(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t){let n=null,i;const s=B(e);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(l||t(),!f||!m)return;const h=Be(d),y=Be(s.clientWidth-(u+f)),_=Be(s.clientHeight-(d+m)),p=Be(u),b={rootMargin:-h+"px "+-y+"px "+-_+"px "+-p+"px",threshold:ne(0,fe(1,a))||1};let S=!0;function w(x){const C=x[0].intersectionRatio;if(C!==a){if(!S)return r();C?r(!1,C):i=setTimeout(()=>{r(!1,1e-7)},1e3)}C===1&&!ri(c,e.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(w,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return r(!0),o}function Xo(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=Pt(e),u=s||o?[...c?Oe(c):[],...t?Oe(t):[]]:[];u.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const d=c&&l?Uo(c,n):null;let f=-1,m=null;r&&(m=new ResizeObserver(p=>{let[v]=p;v&&v.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!a&&m.observe(c),t&&m.observe(t));let h,y=a?oe(e):null;a&&_();function _(){const p=oe(e);y&&!ri(y,p)&&n(),y=p,h=requestAnimationFrame(_)}return n(),()=>{var p;u.forEach(v=>{s&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d?.(),(p=m)==null||p.disconnect(),m=null,a&&cancelAnimationFrame(h)}}const Yo=Ro,Ko=Lo,Zo=To,Jo=Co,er=(e,t,n)=>{const i=new Map,s={platform:It,...n},o={...s.platform,_c:i};return Eo(e,t,{...s,platform:o})};E.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(E.GidsFloatingElementType||(E.GidsFloatingElementType={}));function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const tr=/transform|translate|scale|rotate|perspective|filter/,nr=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let qt;function ir(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof ai(n).Element)?ai(i=e).getComputedStyle(i):e);var n,i;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||(qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!qt&&(re(t.backdropFilter)||re(t.filter)))||tr.test(t.willChange||"")||nr.test(t.contain||"")}function sr(e){return(function(t){for(let n=t;n;n=Dt(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=Dt(t);n;n=Dt(n)){if(!(n instanceof Element))continue;const i=getComputedStyle(n);if(i.display!=="contents"&&(i.position!=="static"||ir(i)||n.tagName==="BODY"))return n}return null})(e)}function Dt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}let li=(X=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.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=Xo(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=[Yo(this.offset)],n=Zo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),i=this.config.elementType===E.GidsFloatingElementType.POPOVER,s=Ko({padding:this.offset,mainAxis:this.config.elementType===E.GidsFloatingElementType.TOOLTIP||i&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(n,s):t.push(s,n),this.config.showArrow!==!1&&this.arrowEl&&t.push(Jo({element:this.arrowEl,padding:this.offset})),er(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...It,getOffsetParent:o=>It.getOffsetParent(o,sr)}}).then((({x:o,y:r,middlewareData:l,placement:a})=>{if(i){const f=a.startsWith("left")||a.startsWith("right"),m=a.startsWith("top")||a.startsWith("bottom"),h=this.isAnchorInViewport(),y=!!m||(f?h:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=a,Object.assign(this.floatingElement.style,{left:`${o}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const c=a.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[c],{arrowZIndex:d}=this.normalizeFloatingElementStacking();if(l.arrow&&this.arrowEl){const f=this.arrowEl.offsetWidth,{x:m,y:h}=l.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(c)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(c)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-f/2+"px",transform:"rotate(45deg)",zIndex:`${d}`,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??""),n=Number.parseInt(t,10),i=Number.isNaN(n)?-1:n-1,s=Number.isNaN(n)?i+1:n;return Number.isNaN(s)||(this.floatingElement.style.zIndex=`${s}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const r=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),l=Number.parseInt(r,10),a=window.getComputedStyle?.(o).position??"";(r===""||r==="auto"||Number.isNaN(l)||l<s)&&(o.style.zIndex=`${s}`,a!==""&&a!=="static"||(o.style.position="relative"))})),{contentZIndex:s,arrowZIndex:i}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),X.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=X.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),X.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(),n=window.innerHeight||document.documentElement?.clientHeight||0,i=window.innerWidth||document.documentElement?.clientWidth||0,s=t.height/2+2*this.offset;return t.bottom>=s&&t.top<=n-s&&t.right>=0&&t.left<=i}},X.currentFloatingElements=new Map,X);const ci=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onPopoverShow():n&&!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 li(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:E.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=[],n=ui(e);t.push(...n);const i=this._el.shadowRoot?.querySelector("slot:not([name])");i&&i.assignedElements({flatten:!0}).forEach((s=>{const o=ui(s);t.push(...o)})),this.focusableElements=t.sort(((s,o)=>{const r=s.compareDocumentPosition(o),l=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),a=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:a?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let i=document.activeElement;if(i===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(i=o)}const s=this.focusableElements.indexOf(i)!==-1;e.shiftKey?i!==t&&s||(e.preventDefault(),n&&n.focus()):i!==n&&s||(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 g(Se,{key:"da6cbab41d3390a940444809d9fe809225c9426e"},g("slot",{key:"5a5e5f72ab9c793e02b7bd633381363ab37cbf22",name:"anchor"}),g("div",{key:"49ab365961e8a3d9bf0e6ac67f2c73fda1eb7bb3",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},g("span",{key:"9815148f291ebca88b4a2bbe09b0e93fcbaab4a7",id:"arrow"}),g("div",{key:"b6d83da9bd180933b5f2453f3e66f66f692e35c1"},g("slot",{key:"90aaeadfe9d09ebdd6534afa762b35c38a5cc57f"}))))}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}]}]),di=e=>{if(!(e instanceof A)||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 n=e.tabIndex;e.tabIndex=-1,e.focus();const i=document.activeElement===e;return e.tabIndex=n,i&&e.blur(),i}catch{return!1}},ui=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>di(s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];di(e)&&n.push(e);let i=t.nextNode();for(;i!==null;)n.push(i),i=t.nextNode();return n};function or(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,ci))}))}or();const rr=ci,{getGidsScrimClassNames:hi}=gs,fi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=hi(e)}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=hi(this.extraClasses)}render(){return g("div",{key:"da4b587303359a6075411a1843e03eff6eed68ce",class:this.activeClasses,part:"root"},g("slot",{key:"5a52f6e5628c771b2dd0f5a6221005a0ed8b9fbb"}))}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 ar(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,fi))}))}ar();const lr=fi,mi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Tt(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 cr(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,mi))}))}cr();const dr=mi,{formatCharCount:ur}=_n,{inputToGidsFieldStatus:hr}=rs,gi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Ne(this,"gidsTextFieldClear"),this.#t=_t(),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((()=>{hn(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=G();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??{},n=e??this.#t,i=this.showClearButton&&this.value!==void 0&&this.value.length>0;return g("gids-field",{key:"80f1981d584f417e010322b2c5ec07a60dc1f388",disabled:this.disabled,count:ur(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:hr(this.status)},g(Vn,{key:"f222a99181809cf9ccdc1ad9ceed98c985681553",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:n},this.label),g("gids-input",{key:"7ff6cf33f16be119ecc705af8a7fb8965b01b74c",ref:s=>this.#e=s,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:n,maxLength:this.maxLength}},g("slot",{key:"d3e260125c8d8f56870e6f484894bd1a1aa8e03b",name:"leadingIcon"}),g("slot",{key:"0445885d41f43d6a76f48ed482673a266b6a0182",name:"leadingAccessory"}),i&&g(Gn,{key:"be16083a8e414be66ceb37e076f9ebc01cc4fc8f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),g("slot",{key:"0dc7436a9ca21e57409cc18340747295915d2d5f",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 fr(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gi);break;case"gids-field":customElements.get(e)||Et();break;case"gids-input":customElements.get(e)||Ct()}}))}fr();const mr=gi,pi=N(class extends A{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=Ne(this,"select"),this._toggle=this._toggle.bind(this)}#t;connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return g(rt,{key:"56bc99780f392c4d5064eaa47819ee1ff0897c79"},g("style",{key:"e330f982d625eeb7f72ede3f382231fb5791ec47"},`:host {
5
+ `);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(v=>{const _=[];for(let y=0;y<v.length;y++){const f=v[y]["s-nr"]||void 0;f&&f.isConnected&&_.push(f)}return _})(b.childNodes)).forEach((v=>{u===Ee(v)&&m.push(v)})),h?m.filter((v=>v.nodeType===1)):m}).bind(g);g.assignedElements=c(!0),g.assignedNodes=c(!1)})(n),o=e&&e.m&&e.m[i],o&&o.O===a.O&&e.S&&wi(e.S)),n},wi=e=>{A.i|=1;const t=e.closest(le.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&&(B(t,a,i??null),a["s-sh"]=void 0,Ge=!0)}A.i&=-2},Be=(e,t)=>{A.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"]===le&&i.push(s)}for(let s=i.length-1;s>=0;s--){const a=i[s];a["s-hn"]!==le&&a["s-ol"]&&(B(Pe(a).parentNode,a,Pe(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Ge=!0),t&&Be(a,t)}A.i&=-2},Ci=(e,t,i,s,a,n)=>{let l,o=e["s-cr"]&&e["s-cr"].parentNode||e;for(o.shadowRoot&&o.tagName===le&&(o=o.shadowRoot),i.O==="template"&&(o=o.content);a<=n;++a)s[a]&&(l=je(null,i,a),l&&(s[a].S=l,B(o,l,Pe(t))))},Si=(e,t,i)=>{for(let s=t;s<=i;++s){const a=e[s];if(a){const n=a.S;Ei(a),n&&(Ve=!0,n["s-ol"]?n["s-ol"].remove():Be(n,!0),n.remove())}}},Ye=(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,fe=(e,t,i=!1)=>{const s=t.S=e.S,a=e.m,n=t.m,l=t.O,o=t.h;let d;o==null?(N=l==="svg"||l!=="foreignObject"&&N,l!=="slot"||Te||e.j!==t.j&&(t.S["s-sn"]=t.j||"",wi(t.S.parentElement)),vt(e,t,N),a!==null&&n!==null?((g,c,h,p,m=!1)=>{let u,b,v=0,_=0,y=0,f=0,w=c.length-1,x=c[0],C=c[w],k=p.length-1,I=p[0],D=p[k];const F=h.O==="template"?g.content:g;for(;v<=w&&_<=k;)if(x==null)x=c[++v];else if(C==null)C=c[--w];else if(I==null)I=p[++_];else if(D==null)D=p[--k];else if(Ye(x,I,m))fe(x,I,m),x=c[++v],I=p[++_];else if(Ye(C,D,m))fe(C,D,m),C=c[--w],D=p[--k];else if(Ye(x,D,m))x.O!=="slot"&&D.O!=="slot"||Be(x.S.parentNode,!1),fe(x,D,m),B(F,x.S,C.S.nextSibling),x=c[++v],D=p[--k];else if(Ye(C,I,m))x.O!=="slot"&&D.O!=="slot"||Be(C.S.parentNode,!1),fe(C,I,m),B(F,C.S,x.S),C=c[--w],I=p[++_];else{for(y=-1,f=v;f<=w;++f)if(c[f]&&c[f].$!==null&&c[f].$===I.$){y=f;break}y>=0?(b=c[y],b.O!==I.O?u=je(c&&c[_],h,y):(fe(b,I,m),c[y]=void 0,u=b.S),I=p[++_]):(u=je(c&&c[_],h,_),I=p[++_]),u&&B(Pe(x.S).parentNode,u,Pe(x.S))}v>w?Ci(g,p[k+1]==null?null:p[k+1].S,h,p,_,k):_>k&&Si(c,v,w)})(s,a,t,n,i):n!==null?(e.h!==null&&(s.textContent=""),Ci(s,null,t,n,0,n.length-1)):!i&&a!==null&&Si(a,0,a.length-1),N&&l==="svg"&&(N=!1)):(d=s["s-cr"])?d.parentNode.textContent=o:e.h!==o&&(s.data=o)},Z=[],ki=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 l=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(gi(t,l)){let o=Z.find((d=>d.k===t));Ve=!0,t["s-sn"]=t["s-sn"]||l,o?(o.k["s-sh"]=n["s-hn"],o.N=n):(t["s-sh"]=n["s-hn"],Z.push({N:n,k:t})),t["s-sr"]&&Z.map((d=>{gi(d.k,t["s-sn"])&&(o=Z.find((g=>g.k===t)),o&&!d.N&&(d.N=o.N))}))}else Z.some((o=>o.k===t))||Z.push({k:t})}n.nodeType===1&&ki(n)}},Ei=e=>{e.v&&e.v.ref&&yt.push((()=>e.v.ref(null))),e.m&&e.m.map(Ei)},Ma=(e,t)=>{_t.push((()=>e(t)))},B=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:a}=(function(n,l){var o;if(!(l=l||((o=n["s-ol"])==null?void 0:o.parentElement)))return{slotNode:null,slotName:""};const d=n["s-sn"]=Ee(n)||"";return{slotNode:pt(ut(l,"childNodes"),l.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)},Ii=(e,t,i=!1)=>{var s,a,n,l,o;const d=e.$hostElement$,g=e.o,c=e.M||Re(null,null);var h;const p=(h=t)&&h.O===bt?t:r(null,null,t);if(le=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,Te=!(!(1&g.i)||128&g.i),mt=d["s-cr"],Ve=!1,fe(c,p,i),A.i|=1,Ge){ki(p.S);for(const m of Z){const u=m.k;if(!u["s-ol"]&&M.document){const b=M.document.createTextNode("");b["s-nr"]=u,B(u.parentNode,u["s-ol"]=b,u,i)}}for(const m of Z){const u=m.k,b=m.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const v=b.parentNode;let _=b.nextSibling;if(_&&_.nodeType===1){let y=(a=u["s-ol"])==null?void 0:a.previousSibling;for(;y;){let f=(n=y["s-nr"])!=null?n:null;if(f&&f["s-sn"]===u["s-sn"]&&v===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===u||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){_=f;break}}y=y.previousSibling}}if((!_&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==_)&&u!==_){if(B(v,u,_,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const y=M.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,B(u.parentNode,y,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(Ve&&hi(p.S),A.i&=-2,Z.length=0,!Te&&!(1&g.i)&&d["s-cr"]){const m=p.S.__childNodes||p.S.childNodes;for(const u of m)if(u["s-hn"]!==le&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(o=u.hidden)!=null&&o),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=M.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],B(u.parentNode,b,u,i),u.parentNode.removeChild(u)}}}mt=void 0,yt.forEach((m=>m())),yt.length=0,_t.forEach((m=>m())),_t.length=0},Ti=(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);Ti(e,e.R);const i=()=>Aa(e,t);if(!t)return wa(i);queueMicrotask((()=>{i()}))},Aa=(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=De(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),a=Pi(a,(()=>De(s,"componentWillRender",void 0,i))),Pi(a,(()=>Fa(e,s,t)))},Pi=(e,t)=>La(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),La=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Fa=async(e,t,i)=>{var s;const a=e.$hostElement$,n=a["s-rc"];i&&(l=>{const o=l.o,d=l.$hostElement$,g=o.i,c=((h,p)=>{var m,u,b;const v=pi(p),_=Oe.get(v);if(!M.document)return v;if(h=h.nodeType===11?h:M.document,_)if(typeof _=="string"){let y,f=ie.get(h=h.head||h);if(f||ie.set(h,f=new Set),!f.has(v)){y=M.document.createElement("style"),y.textContent=_;const w=(m=A._)!=null?m:(function(){var x,C,k;return(k=(C=(x=M.document.head)==null?void 0:x.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?k:void 0})();if(w!=null&&y.setAttribute("nonce",w),!(1&p.i))if(h.nodeName==="HEAD"){const x=h.querySelectorAll("link[rel=preconnect]"),C=x.length>0?x[x.length-1].nextSibling:h.querySelector("style");h.insertBefore(y,C?.parentNode===h?C:null)}else if("host"in h)if(ot){const x=new((u=h.defaultView)!=null?u:h.ownerDocument.defaultView).CSSStyleSheet;x.replaceSync(_),dt?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}"),f&&f.add(v)}}else{let y=ie.get(h);if(y||ie.set(h,y=new Set),!y.has(v)){const f=(b=h.defaultView)!=null?b:h.ownerDocument.defaultView;let w;if(_.constructor===f.CSSStyleSheet)w=_;else{w=new f.CSSStyleSheet;for(let x=0;x<_.cssRules.length;x++)w.insertRule(_.cssRules[x].cssText,x)}dt?h.adoptedStyleSheets.push(w):h.adoptedStyleSheets=[...h.adoptedStyleSheets,w],y.add(v)}}return v})(d.shadowRoot?d.shadowRoot:d.getRootNode(),o);10&g&&(d["s-sc"]=c,d.classList.add(c+"-h"))})(e),$a(e,t,a,i),n&&(n.map((l=>l())),a["s-rc"]=void 0);{const l=(s=a["s-p"])!=null?s:[],o=()=>Na(e);l.length===0?o():(Promise.all(l).then(o).catch(o),e.i|=4,l.length=0)}},$a=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ii(e,t,s)}catch(a){re(a,e.$hostElement$)}return null},Na=e=>{const t=e.$hostElement$,i=t,s=e.R;De(i,"componentDidRender",void 0,t),64&e.i?De(i,"componentDidUpdate",void 0,t):(e.i|=64,Oa(t),De(i,"componentDidLoad",void 0,t),e.L(t),s||za()),e.A&&(e.A(),e.A=void 0),512&e.i&&gt((()=>qe(e,!1))),e.i&=-517},Di=e=>{var t;{const i=U(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&qe(i,!1),s}},za=()=>{gt((()=>bi(M,"appload",{detail:{namespace:"gids-core-web"}})))},De=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(a){re(a,s)}},Oa=e=>e.classList.add("hydrated"),Mi=(e,t,i,s)=>{const a=U(e);if(!a)return;const n=e,l=a.l.get(t),o=a.i,d=n;i=fi(i,s.t[t][0],!!(64&s.i));const g=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!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&o||1&m)&&(d?d[p](i,l,t):a.T.push((()=>{a.D[p](i,l,t)})))}catch(p){re(p,n)}}))}if(2&o){if(d.componentShouldUpdate&&d.componentShouldUpdate(i,l,t)===!1&&!(16&o))return;16&o||qe(a,!1)}}},Ra=(e,t,i)=>{var s,a;const n=e.prototype;64&t.i&&1&i&&ya.forEach((l=>{const o=n[l];Object.defineProperty(n,l,{value(...d){var g;const c=U(this),h=this;h?typeof o=="function"&&o.call(h,...d):(g=c?.H)==null||g.then((p=>{const m=p[l];typeof m=="function"&&m.call(p,...d)}))}})}));{e.watchers&&!t.F&&(t.F=mi(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([o,[d]])=>{if(31&d||32&d){const{get:g,set:c}=me(n,o)||{};g&&(t.t[o][0]|=2048),c&&(t.t[o][0]|=4096),Object.defineProperty(n,o,{get(){return g?g.apply(this):(h=o,U(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,o,{set(h){const p=U(this);if(p){if(c)return(32&d?this[o]:p.$hostElement$[o])===void 0&&p.l.get(o)&&(h=p.l.get(o)),c.apply(this,[fi(h,d,!!(64&t.i))]),void Mi(this,o,h=32&d?this[o]:p.$hostElement$[o],t);Mi(this,o,h,t)}}})}}));{const o=new Map;n.attributeChangedCallback=function(d,g,c){A.jmp((()=>{var h;const p=o.get(d),m=U(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 f=this,w=(h=t.F)==null?void 0:h[d];w?.forEach((x=>{const[[C,k]]=Object.entries(x);f[C]!=null&&(128&y||1&k)&&f[C].call(f,c,g,d)}))}return}const u=l.find((([y])=>y===p)),b=u&&4&u[1][0],v=b&&c===null&&this[p]===void 0;b&&(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:{}),...l.filter((([d,g])=>31&g[0])).map((([d,g])=>{var c;const h=g[1]||d;return o.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.W=t[3],i.F=mi(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,l)=>{const o={i:0,$hostElement$:n,o:l,l:new Map,B:new Map};o.H=new Promise((g=>o.L=g)),n["s-p"]=[],n["s-rc"]=[];const d=o;n.__stencil__getHostRef=()=>d,512&l.i&&va(n,o)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const n=U(this);if(!n)return;Ai(this,n,i.W),this.__hasHostListenerAttached=!0}(n=>{if(!(1&A.i)){const l=U(n);if(!l)return;const o=l.o;if(1&l.i)Ai(n,l,o.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&o.i&&(d=>{if(!M.document)return;const g=d["s-cr"]=M.document.createComment("");g["s-cn"]=!0,B(d,g,d.firstChild)})(n);{let d=n;for(;d=d.parentNode||d.host;)if(d["s-p"]){Ti(l,l.R=d);break}}o.t&&Object.entries(o.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 b=pi(c);Oe.has(b)||((v,_,y)=>{let f=Oe.get(v);ot&&y?(f=f||new CSSStyleSheet,typeof f=="string"?f=_:f.replaceSync(_)):f=_,Oe.set(v,f)})(b,u,!!(1&c.i))}const p=g.R,m=()=>qe(g,!0);p&&p["s-rc"]?p["s-rc"].push(m):m()}catch(p){re(p,d),g.A&&(g.A(),g.A=void 0),g.L&&g.L(d)}})(n,l,o)}}})(this),s&&s.call(this)},disconnectedCallback(){(async n=>{if(!(1&A.i)){const l=U(n);l?.V&&(l.V.map((o=>o())),l.V=void 0)}ie.has(n)&&ie.delete(n),n.shadowRoot&&ie.has(n.shadowRoot)&&ie.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 ka.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ra(e,i,3)}catch(s){return re(s),e}},oe=(e,t)=>t,Ai=(e,t,i)=>{i&&M.document&&i.map((([s,a,n])=>{const l=Ga(M.document,e,s),o=Va(t,n),d=ja(s);A.ael(l,a,o,d),(t.V=t.V||[]).push((()=>A.rel(l,a,o,d)))}))},Va=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){re(s,e.$hostElement$)}},Ga=(e,t,i)=>8&i?M:t,ja=e=>_a?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),Ba=e=>A._=e,Ya=e=>Object.assign(A,e),Li=new WeakMap;function qa(e,t){let i=Li.get(t);i||(i={i:0,o:{i:0,p:t.tagName},$hostElement$:t},Li.set(t,i)),Ii(i,e)}function Ed(e){return e}function Fi(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=Fi(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function E(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=Fi(e))&&(s&&(s+=" "),s+=t);return s}const Ha=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>E("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Wa=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>E("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Ua=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>E("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"})),Qa=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>E("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"})),Xa=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>E("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"})),Ka=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:a,loading:n},l,o)=>E("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":l,"gids-button--loading":n},o)},Symbol.toStringTag,{value:"Module"})),$i=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Za=/\w/,Ja=e=>e.replace(Za,t=>t.toLocaleUpperCase()),Ni=(e,t)=>typeof e=="function"?e(t):t?Ja(e):e,en=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:a})=>{const n=a?a(e):$i(e);if(t==="required")return Ni(s&&s.length>0?s:"(required)",n);if(t==="optional")return Ni(i&&i.length>0?i:"(optional)",n)},isSentence:$i},Symbol.toStringTag,{value:"Module"})),tn=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,zi=10,Oi=He/2-zi/2,sn=He/2,xt=2*Math.PI*Oi,an=`0 0 ${He} ${He}`,nn=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=(xt*a/100).toFixed(2),l=(xt-parseFloat(n)).toFixed(2);return`${n} ${l}`},centerPosition:sn,circumference:xt,radius:Oi,thickness:zi,viewBox:an},Symbol.toStringTag,{value:"Module"})),Ri=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"})),wt=/[A-Z]/,Ct=/[a-z]/,St=/[0-9]/,kt=/[^A-Za-z0-9]/,rn=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")&&wt.test(e)&&s++,t.includes("1-lowercase")&&Ct.test(e)&&s++,t.includes("1-digit")&&St.test(e)&&s++,t.includes("1-special-character")&&kt.test(e)&&s++,t.includes("include-min-length")&&i&&i>0&&e.length>=i&&s++,s},include1DigitReg:St,include1LowercaseLetterReg:Ct,include1SpecialCharReg:kt,include1UppercaseLetterReg:wt},Symbol.toStringTag,{value:"Module"})),Me=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Et=e=>{const t=[];return e&&e.length>0&&e.map(i=>{i?.requirementRule&&t.push(i.requirementRule)}),t},ln=({rule:e,textMinLength:t=0,text:i})=>{if(!i||i===""||!e&&!t)return!1;switch(e){case"1-uppercase":return wt.test(i);case"1-lowercase":return Ct.test(i);case"1-digit":return St.test(i);case"1-special-character":return kt.test(i);case"include-min-length":return Me({requirementRule:"include-min-length",textMinLength:t})===!0&&i.length>=t;default:return!1}},It=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 Me({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Et(t),defaultRequirementsMeterRules:t}},on=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:ln,getDefaultRulesAndRequirementsForMeters:It,getMeterRulesFromRequirements:Et,minLengthRuleCanBeApplied:Me},Symbol.toStringTag,{value:"Module"})),dn=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"})),cn=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"})),hn=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),gn="No Data!",pn=e=>`There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`,Vi=100,un=50,Gi="Invalid Progress Value!",ji=e=>`The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`,mn="Invalid Chart Type!",fn=e=>`You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`,bn=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>E("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),vn=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonDockClassNames:e=>E("gids-button-dock",e)},Symbol.toStringTag,{value:"Module"})),yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>E("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"})),_n=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>E("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:xn}=Ri,wn=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":xn(e)},Symbol.toStringTag,{value:"Module"})),Cn=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>E("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Sn=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>E("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"})),kn=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>E("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),En=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>E("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:In}=cn,Tn=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":In(e)},Symbol.toStringTag,{value:"Module"})),Pn=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>E("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"})),Bi=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"}},Yi=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"}},Dn=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:i})=>i.includes(t)?Yi(e):Bi(e),getComponentEntryClasses:Bi,getComponentExitClasses:Yi,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"})),Mn=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>E("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"})),An=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>E("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Ln=Object.freeze(Object.defineProperty({__proto__:null,getGidsFeedbackBlockClassNames:e=>E("gids-feedback-block",e)},Symbol.toStringTag,{value:"Module"})),Fn=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>E("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"})),$n=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>E("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),Nn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonClassNames:({size:e},t)=>E("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"})),zn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>E("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),On=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>E("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Rn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>E("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"})),Vn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>E("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>E("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Gn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarCellClassNames:({disabled:e,selected:t,today:i,cellType:s,dot:a},n)=>E("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"})),jn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:i},s)=>E("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"})),Bn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarDayCellClassNames:e=>E("gids-calendar-day-cell",e)},Symbol.toStringTag,{value:"Module"})),Yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarMonthListClassNames:e=>E("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"})),qn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>E("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"})),Hn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>E("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),qi=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=>E("gids-calendar-header-panel",e)},Symbol.toStringTag,{value:"Module"})),Wn=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(),l=new Date(i,s,0).getDate(),o=[],d=new Date().toISOString().split("T")[0];for(let c=a-1;c>=0;c--){const h=l-c,p=s===0?12:s,u=`${s===0?i-1:i}-${String(p).padStart(2,"0")}-${String(h).padStart(2,"0")}`;o.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")}`;o.push({day:c,isCurrentMonth:!0,dateString:h,isToday:d===h})}const g=42-o.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")}`;o.push({day:c,isCurrentMonth:!1,dateString:m,isToday:d===m})}return o},generateCalendarWeekdays:()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],getGidsCalendarClassNames:({width:e},t)=>E("gids-calendar",{"gids-calendar--width-fixed":e==="fixed","gids-calendar--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Un=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>E("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"})),Qn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>E("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Xn=Object.freeze(Object.defineProperty({__proto__:null,getGidsLineChartClassNames:({breakpoint:e},t)=>E("gids-line-chart",{"gids-line-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Kn=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>E("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Zn=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>E("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Jn=Object.freeze(Object.defineProperty({__proto__:null,getGidsLevelGaugeClassNames:({breakpoint:e},t)=>E("gids-level-gauge",{"gids-level-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),er=Object.freeze(Object.defineProperty({__proto__:null,getGidsProgressCircleClassNames:({breakpoint:e},t)=>E("gids-progress-circle",{"gids-progress-circle--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),tr=Object.freeze(Object.defineProperty({__proto__:null,getGidsActivityGaugeClassNames:({breakpoint:e},t)=>E("gids-activity-gauge",{"gids-activity-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),ir=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartClassNames:e=>E("gids-chart",e)},Symbol.toStringTag,{value:"Module"})),sr=Object.freeze(Object.defineProperty({__proto__:null,getGidsFilterClassNames:({expanded:e},t)=>E("gids-filter",{"gids-filter--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ar=Object.freeze(Object.defineProperty({__proto__:null,getGidsActionBarClassNames:e=>E("gids-action-bar",e)},Symbol.toStringTag,{value:"Module"})),Tt=Symbol("defaultPath"),Hi=Symbol("pathSet"),Pt="gids-asset-paths-set";class nr extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#i(t){return this.#t.get(t)??null}#s=()=>{this.dispatchEvent(new Event(Pt))};haveAssetPathsBeenSet(){return this.#i(Hi)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Tt,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(Tt,i)}this.#e(Hi,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const i=this.#i(t);if(i===null){const s=this.#i(Tt);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Pt,t,{once:!0}),()=>{this.removeEventListener(Pt,t)}}}const Dt=Symbol.for("GIDS"),rr=()=>(globalThis[Dt]===void 0&&(globalThis[Dt]={assetPaths:{}}),globalThis[Dt]),lr=e=>{const t=rr().assetPaths;return t[e]===void 0&&(t[e]=new nr),t[e]};function We(){return lr("@ganpatiinfo/gids-web-shared")}function or(){return We().haveAssetPathsBeenSet()}function dr(e,t){We().setAssetPaths(e,t)}function Wi(e){return We().getAssetFilePath(e)}function cr(e){return We().onAssetPathsSet(e)}let hr=0;const Ue=(e,t="gids")=>e||`${t}-${hr++}`,gr=e=>e.type==="hidden",pr=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&&!gr(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Ui=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:ur}=Ua,{calculateStrokeDasharray:mr,thickness:Qi,radius:Xi,centerPosition:Qe,viewBox:fr}=nn,Mt=({size:e,indeterminate:t,value:i,max:s,...a})=>{let n;return t||(n={strokeDashArray:mr(i,s||0),strokeDashoffset:"0"}),r("svg",{class:ur({size:e,indeterminate:t,value:i}),viewBox:fr,...a},r("circle",{class:"gids-spinner-control__track",cx:Qe,cy:Qe,r:Xi,"stroke-width":Qi}),r("circle",{style:n,class:"gids-spinner-control__progress",cx:Qe,cy:Qe,r:Xi,"stroke-width":Qi}))},{getGidsSpinnerClassNames:br}=Qa,{getElementVisibility:vr}=tn,de=({label:e,supportingText:t,size:i,indeterminate:s,value:a,max:n,class:l,...o})=>{const{hasLabel:d,hasSupportingText:g}=vr({label:e,supportingText:t});return r("span",{class:br({size:i},l),...o},r(Mt,{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))},Ki={"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"]},Zi=new Map;for(const e in Ki)for(const t of Ki[e])Zi.set(t,e);function yr(e){return Zi.get(e)}function Ji(e,t="regular",i){const s=yr(e);let a=s??"";return i&&s&&(a=i(s)??s),`${a}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:_r}=Xa,L=({name:e,size:t,appearance:i,alt:s,class:a,titleId:n,src:l,...o})=>{const d=Ue(n);let g=l;return g===void 0&&or()&&(g=Ji(e,i,Wi)),r("svg",{ref:c=>{g===void 0&&cr((()=>{(function(h,p,m){if(!h)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ji(p,m,Wi)),h.appendChild(u)})(c,e,i)}))},width:"16",height:"16",class:_r({size:t},a),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:d,...o},s!==""&&r("title",{id:d},s||e),g!==void 0?r("use",{href:g}):null)},{getGidsButtonGroupClassNames:xr}=bn,At=({layout:e,class:t},i)=>r("span",{class:xr({layout:e},t)},i),{getGidsDropdownMenuGroupClassNames:wr}=Rn,Xe=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>r("div",{class:wr({type:e},i),...s},e==="loading"?r(de,{indeterminate:!0,size:"md"}):null,e==="no-options"?r("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsHeadingClassNames:Cr,getGidsHeadingSupportingTextTypographyClass:Sr}=En,kr=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:a,class:n})=>r("div",{class:Cr(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"} ${Sr(a)}`},t):null:t:null),s?r(At,{layout:"wrap"},s):null),{getGidsDropdownMenuClassNames:Er}=On,Ke=({sectionLabel:e,class:t,...i},s)=>r("div",{class:Er(t),...i},e!=null&&e!==""?r(kr,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?r("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsEditButtonClassNames:Ir}=Fn,Tr=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:a,class:n,...l})=>r("button",{class:Ir({size:i},n),...l,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(L,{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(L,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:Pr}=Ha,Dr=({orientation:e})=>r("hr",{class:Pr({orientation:e})}),{getGidsListItemClassNames:Mr}=$n,Ar=({id:e,value:t,index:i,defaultSelected:s,disabled:a,selected:n,editButton:l,onPressEditButton:o,onPressListItem:d,leadingAccessory:g,leadingSupport:c,leadingParagraph:h,trailingContent:p,trailingAccessory:m,trailingSupport:u,trailingParagraph:b,divider:v,role:_="list-item-option",isPlaceholderItem:y,class:f,...w},x)=>{const C=n||s;return r("button",{type:"button",id:e,class:Mr({selected:C,disabled:a},f),role:_,"aria-selected":C?"true":"false",disabled:a,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const k=x;return k?(Array.isArray(k)?k:[k]).map((I=>typeof I=="string"||typeof I=="number"?String(I):I&&typeof I=="object"&&"text"in I?I.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:k=>{const I=k.currentTarget;if(!I||k.defaultPrevented||I.disabled)return;const D=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:y}});d?.(D)},"is-placeholder-item":y?"true":"false",...w},r("div",{class:"gids-list-item__main-container"},l==null||l==="none"||a?null:r(Tr,{size:"md",editButtonType:l,onPressEditButton:o}),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(oe,null,x!=null?r("span",{class:a?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},x):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(oe,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,b!=null?typeof b=="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"},b):b:null)))),C?r("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},r(L,{name:"checkmark",size:"md",appearance:"regular"})):null,C||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&&!C?r("div",{class:"gids-list-item__divider"},r(Dr,{orientation:"horizontal"})):null)},{getGidsDropdownItemClassNames:Lr}=zn,Ze=({id:e,title:t,class:i,selected:s=!1,disabled:a=!1,role:n="list-item-option",value:l,name:o,onPressDropdownItem:d,index:g,defaultSelected:c,leadingAccessory:h,divider:p,isPlaceholderItem:m,...u})=>{const b=Lr(typeof i=="string"?i:void 0);return r(Ar,{id:e,index:g??0,defaultSelected:c,selected:s,disabled:a,role:n,value:l,name:o,leadingAccessory:h,class:b,onPressListItem:v=>{if(v.defaultPrevented)return;const _=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:l,disabled:a,selectedIndex:g,defaultSelected:c,isPlaceholderItem:m}});d?.(_)},divider:p,isPlaceholderItem:m,...u},t)},{getGidsButtonClassNames:Fr}=Ka,Q=({appearance:e,size:t,destructive:i,positive:s,loading:a,width:n,leadingIcon:l,trailingIcon:o,as:d,disabled:g,class:c,forceIconOnly:h=!1,...p},m)=>{const u=d||"button",b=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in p||(p.type="button"),r(u,{class:Fr({appearance:e,size:t,destructive:i,loading:a,width:n,positive:s},h||m.length===0&&Ui(l)&&!Ui(o),c),disabled:u==="button"?g:void 0,...p},r("span",{class:"gids-button__content"},l,m),a&&r(Mt,{size:b,indeterminate:!0}),o)},be=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let es=!1;be&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(be):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Lt=null;const Ft=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{$t()})):void 0,$t=()=>{if(be===void 0)return!1;const e=(()=>{if(be===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 l=0;l<s.cssRules.length;l++){const o=s.cssRules.item(l);if(o?.cssText.startsWith("gids-global-styles-start"))a=l;else if(a>-1){if(o?.cssText.startsWith("gids-global-styles-end")){n=l-a+1;break}t.push(o)}}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 Ft!==void 0&&t!==Lt&&(Lt&&Ft.disconnect(),t instanceof Element&&Ft.observe(t,{childList:!0,characterData:!0,subtree:!0}),Lt=t),be.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:a,styleSheet:n}=i;for(let l=0;l<a;l++)n.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},j=()=>(es||(es=$t()),be),ts=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Ie(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected=e}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=this.selected,this.select?.emit(e),this.selected=this.selected}render(){return r(bt,{key:"f7fe1215b0945a6d71c23d3644121dd73ff653cf"},r("style",{key:"78195ef784f5f4df916d0a61e9b988233db31fef"},`:host {
6
6
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),g(Ee,{key:"ccef97603f645ba92fd4180263d2cbeff0a54a07",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:g("slot",{name:"leadingIcon"}),trailingIcon:g("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},g("slot",{key:"7094015cf47ef8d045955419aa43f03174145928"})))}_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 gr(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,pi))}))}gr();const pr=pi,bi=N(class extends A{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=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new li(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:E.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 g(Se,{key:"49747828eaa09ead2d1e2f6d9d28b66c2db76103"},g("slot",{key:"9ad53320553f1377f01f026a95f7cb894d91c98a"}),g("span",{key:"6116e418faa09d82975a3830f7e0bedcbdd8e87f",id:"tooltip",part:"tooltip",role:"tooltip"},g("span",{key:"677d275b2e161441d76315c50a60a941d6dd010a",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 br(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,bi))}))}br();const vr=bi;function jt(e,t){_s(e,t)}const yr=e=>{jt(e)},_r=e=>{jt(e)},wr=({children:e,classNameToBeValidated:t,childrenToBeValidated:n,currentComponentName:i})=>{if(e!=null){const s=Array.isArray(e)?e:[e];for(const o of s){if(!o||typeof o!="object"||!("vtag"in o))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${i}. Expected ${n}.`);{const r=o.vtag;if(r!==t&&r!==n)throw Error(`HTML/JSX Render Error: <${i}> only accepts <${n}> as direct children. Received element tag: "${typeof r=="function"?r.name:r}".`)}}}};E.GidsField=Os,E.GidsIcon=Ls,E.GidsInput=Ms,E.GidsNotification=Fs,E.GidsOverflowContainer=Ds,E.GidsOverlayProvider=Ys,E.GidsPasswordField=fo,E.GidsPopover=rr,E.GidsScrim=lr,E.GidsSnackbar=dr,E.GidsTextField=mr,E.GidsToggleButton=pr,E.GidsTooltip=vr,E.getAssetPath=wi,E.getConstructedGidsStylesheet=G,E.refreshConstructedGidsStylesheet=xt,E.render=ji,E.setAssetPath=Si,E.setGidsAssetFilePaths=yr,E.setGidsAssetPaths=jt,E.setGidsDefaultAssetDirPath=_r,E.setNonce=qi,E.setPlatformOptions=Di,E.testHtmlChildrenValidity=wr,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
7
+ }`),r(Q,{key:"c0ae6269f93d930064073e1091cd145e453b7e7f",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:"1e8fd27fe3a99d3957b0cc4d6334cd297bc8fb21"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function Nt(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,ts))}))}Nt();const{getGidsFilterClassNames:$r}=sr,is=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.type="none",this.filterItemType="primary",this.filterSelected=!1,this.filterDefaultSelected=!1,this.disabled=!1,this.size="sm",this.loading=!1,this.filterIndex=0,this.hasSlottedMenu=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleFilterPickerItemSelect=t=>{const{value:i,title:s,disabled:a,id:n,selectedIndex:l,isPlaceholderItem:o,defaultSelected:d}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:n,filterId:this?.filterId,value:i,title:s,disabled:!1,selectedFilterMenuIndex:l,defaultSelected:d,filterType:this.type,filterItemType:this.filterItemType,filterTitle:s,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:t,filterSelected:!o,isPlaceholderItem:o||!1}))},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")??"";if(typeof n!="string"||n.length===0)return;const l=s instanceof HTMLButtonElement?s.tabIndex:s.getAttribute("tabIndex")??"",o=s.getAttribute("is-placeholder-item")??"",d=s.querySelector(".gids-dropdown-item__label")||s.querySelector("span"),g=d?d.textContent?.trim():s.firstChild?.textContent?.trim()||a,c=!(!o||o!=="true");this.applySelection({id:n,filterId:this.filterId,value:a,title:g,disabled:!1,selectedFilterMenuIndex:Number(l),defaultSelected:this.filterDefaultSelected,filterType:this.type,filterItemType:this.filterItemType,filterTitle:g,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:t,filterSelected:!c,isPlaceholderItem:c})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleFilterButtonClickToggle=t=>{if(!t.defaultPrevented)if(t.stopPropagation(),this.isMenuToggler())this.handleTriggerToggle(t);else{this.filterSelected=t.detail,t?.detail===!1&&this.handleFormReset(),this.applySelection({id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:t,filterSelected:t.detail,hasFilterMenu:!1,isPlaceholderItem:!1});const i={expanded:!1,originalEvent:t};this.onToggle?.(i)}},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=this.initialValue,this.filterSelected=!1,this.isMenuToggler()?this.setExpandedState(!1):this.expanded=!1},this.setFilterDropdownPosition=()=>{if(!this.hostElement)return;const t=this.hostElement.querySelector(".gids-filter__menu");if(!t)return;const i=window.innerWidth/2,s=this.hostElement.getBoundingClientRect();s.left+s.width/2>i?t.classList.add("gids-filter__menu--align-right"):t.classList.remove("gids-filter__menu--align-right")}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}handleFilterTypeChange(e){this.type=e}handleFilterSelectedChange(e){this.filterSelected=e}connectedCallback(){this.attachItemListener(),this.attachFormListener()}componentDidLoad(){this.initialValue=this.value,this.evaluateSlottedMenuExistence()}disconnectedCallback(){this.detachItemListener(),this.detachFormListener()}getFilterButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}evaluateSlottedMenuExistence(){const e=this.hostElement.querySelector(".gids-filter__menu");if(!e)return void(this.hasSlottedMenu=!1);const t=Array.from(e.childNodes).filter((i=>i.nodeType!==Node.COMMENT_NODE&&!(i.nodeType===Node.TEXT_NODE&&!i.textContent?.trim())));this.hasSlottedMenu=t.length>0}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.isMenuToggler()?this.setExpandedState(!1,this.coerceEvent(e.originalEvent)):this.expanded=!1,this.onFilterMenuItemChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const i=!!e;if(this.setFilterDropdownPosition(),i&&!this.isInteractive()||this.expanded===i)return;this.expanded=i,i||(this.clearActive(),this.syncFilterDisplayValue());const s={expanded:i,originalEvent:t};this.onToggle?.(s)}syncFilterDisplayValue(){const e=this.getFilterButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}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}isMenuToggler(){return(this.type==="none"||this.type==="more")&&this.hasSlottedMenu}handleWindowClick(e){this.expanded&&(e.composedPath().includes(this.hostElement)||this.setExpandedState(!1,e))}render(){const e=this.expanded&&this.isInteractive(),t=$r({expanded:e}),i=this.isMenuToggler(),s=typeof this.filterPickerId=="string"?this.filterPickerId:void 0,a=s?`${s}__menu`:void 0,n=this.selectedItemTitle??this.value??"",l=this.type==="more",o=this.type==="all",d=this.type==="none";return r("div",{key:"278b8b3901a5c836c7e078aeafb2c6338726d76a",class:t,"aria-control":a??""},r("gids-toggle-button",{key:"b35f6770a815537932f617318e31df74a8031b3c",id:s,name:this.name,expanded:e,value:n,disabled:this.disabled,size:this.size,loading:this.loading,tabIndex:this.filterIndex,defaultSelected:this.filterDefaultSelected,selected:this.filterSelected||this.filterDefaultSelected,onSelect:this.handleFilterButtonClickToggle},l||o?r(L,{name:l?"options":"filter",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"}):void 0,d||o?n:void 0,i&&!l?r(L,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"trailingIcon"}):void 0),r("div",{key:"d6b40dcae48bfb4b4f6654e2126c707afd2b0801",class:"gids-filter__menu",id:a,role:"pickerbox",onClick:this.handleMenuClick},r("slot",{key:"32c88f98018ebad487c6acdd02cf5c1e0cc00050",onSlotchange:()=>this.evaluateSlottedMenuExistence()})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterSelected:[{handleFilterSelectedChange:0}]}}static get style(){return".gids-filter{position:relative}.gids-filter__menu{position:absolute;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);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}"}},[260,"gids-filter",{name:[1],filterId:[1,"filter-id"],filterPickerId:[1,"filter-picker-id"],expanded:[4],type:[1],filterItemType:[1,"filter-item-type"],value:[1],filterSelected:[1540,"filter-selected"],filterDefaultSelected:[4,"filter-default-selected"],disabled:[4],size:[1],loading:[4],filterIndex:[2,"filter-index"],onFilterMenuItemChange:[16],onToggle:[16],selectedItemTitle:[32],hasSlottedMenu:[32]},[[8,"click","handleWindowClick"]],{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterSelected:[{handleFilterSelectedChange:0}]}]);function ss(){typeof customElements<"u"&&["gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-filter":customElements.get(e)||customElements.define(e,is);break;case"gids-toggle-button":customElements.get(e)||Nt()}}))}ss();const{getGidsActionBarClassNames:Nr}=ar,as=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.actionGroup=!1,this.allFiltersTabVisible=!1,this.moreFiltersTabVisible=!1,this.clearAllFiltersVisible=!0,this.clearAllFiltersButtonAppearance="primary",this.primaryFilters=[],this.secondaryFilters=[],this.filterSize="xs",this.disabled=!1,this.activeExpandedFilterId=void 0,this.handleAllFilterClick=t=>{const{id:i,filterId:s,title:a,value:n,disabled:l,selectedFilterMenuIndex:o,filterType:d,filterItemType:g,filterTitle:c,filterIndex:h,filterSelected:p,defaultSelected:m,hasFilterMenu:u,isPlaceholderItem:b}=t;this.applyAllToggleSelection({title:a,value:n,selectedFilterMenuIndex:o,filterType:d,filterItemType:g,filterTitle:c,filterIndex:h,hasFilterMenu:u,filterSelected:p,isPlaceholderItem:b,filterId:s,filterPickerId:i,filterDisabled:l,filterDefaultSelected:m||!1,selectedFilterMenuSectionIndex:void 0,filterPickerData:void 0})},this.handleSecondaryFilterClick=t=>{const{id:i,filterId:s,title:a,value:n,disabled:l,selectedFilterMenuIndex:o,filterType:d,filterItemType:g,filterTitle:c,filterIndex:h,filterSelected:p,defaultSelected:m,hasFilterMenu:u,isPlaceholderItem:b}=t;this.applySecondaryFilterToggleSelection({title:a,value:n,selectedFilterMenuIndex:o,filterType:d,filterItemType:g,filterTitle:c,filterIndex:h,hasFilterMenu:u,filterSelected:p,isPlaceholderItem:b,filterId:s,filterPickerId:i,filterDisabled:l,filterDefaultSelected:m||!1,selectedFilterMenuSectionIndex:void 0,filterPickerData:void 0})},this.applySecondaryFilterToggleSelection=t=>{this.setFilterPickerExpandedState(t?.filterId,{expanded:!1}),this.applyNormalFiltersSelectedStateChange(t),this.onToggleActionBarNoneFilter&&this.onToggleActionBarNoneFilter(t)},this.toggleDropdownFilter=({detail:t,filterId:i,pickerData:s})=>{this.setFilterPickerExpandedState(i,t),this.onToggleActionBarDropdownFilter&&this.onToggleActionBarDropdownFilter({filterId:i,pickerData:s,...t})},this.handleDropdownFilterMenuItemClick=({event:t,filterItemType:i,filterType:s,filterIndex:a,filterId:n,filterMenuSectionIndex:l})=>{const o=t.detail,{id:d,defaultSelected:g,disabled:c,isPlaceholderItem:h,selectedIndex:p,title:m,value:u}=o;this.applyDropdownFilterMenuItemSelection({title:m,value:u,selectedFilterMenuIndex:p,filterType:s,filterItemType:i,filterTitle:m,filterIndex:a,hasFilterMenu:!0,filterSelected:!h,isPlaceholderItem:h,filterId:n,filterPickerId:d,filterDisabled:c,filterDefaultSelected:g||!1,selectedFilterMenuSectionIndex:l,filterPickerData:o})},this.applyDropdownFilterMenuItemSelection=t=>{this.applyDropdownFiltersSelectedStateChange(t),this.onDropdownSelectionActionBarFilterChange&&this.onDropdownSelectionActionBarFilterChange(t)},this.applyDropdownFiltersSelectedStateChange=t=>{const i=this?.selectedFilters?[...this.selectedFilters]:[];if(i.length>0){const s=i.findIndex((a=>a.filterId===t?.filterId));s!=null&&s!==-1?t?.isPlaceholderItem?i.splice(s,1):i[s]={...t,filterPickerData:{...t.filterPickerData}}:t?.isPlaceholderItem||i.push({...t,filterPickerData:{...t.filterPickerData}})}else t?.isPlaceholderItem||i.push({...t,filterPickerData:{...t.filterPickerData}});this.selectedFilters=i},this.handleClearAllFiltersClick=t=>{this.selectedFilters=[],this.onClearAllFiltersButton&&this.onClearAllFiltersButton(t)}}handleFilterSizeChange(e){this.filterSize=e}handleDropdownDividerVisibilityChange(e){this.dropdownDividerVisible=e}handlePrimaryFiltersChange(e){this.primaryFilters=e}handleSecondaryFiltersChange(e){this.secondaryFilters=e}handleAllFiltersDataChange(e){this.allFiltersData=e}handleMoreFiltersValueChange(e){this.moreFiltersData=e}handleDisabilityChange(e){this.disabled=e}handleActionGroupChange(e){this.actionGroup=e}handleClearAllFiltersButtonAppearanceChange(e){this.clearAllFiltersButtonAppearance=e}connectedCallback(){this.createAllFiltersData()}applyAllToggleSelection(e){this.setFilterPickerExpandedState(e?.filterId,{expanded:!1}),this.applyNormalFiltersSelectedStateChange(e),this.onToggleActionBarAllFilter&&this.onToggleActionBarAllFilter(e)}applyNormalFiltersSelectedStateChange(e){const t=this?.selectedFilters?[...this.selectedFilters]:[];if(t&&t.length>0){const i=t.findIndex((s=>s.filterId===e?.filterId));i!=null&&i!==-1?t.splice(i,1):e?.filterSelected&&t.push({...e})}else e?.filterSelected&&t.push({...e});this.selectedFilters=t}isMoreFilterVisible(){const e=this.moreFiltersData;return!!(this.moreFiltersTabVisible&&e&&Object.keys(e).length>0&&e?.filterPickerData&&e.filterPickerData.length>0)}isAllFilterVisible(){return!!this.allFiltersTabVisible}isAllFiltersTabDisabled(){const e=this?.allFiltersData?.disabled;return!(!this.disabled&&!e)}isMoreFiltersTabDisabled(){const e=this?.moreFiltersData?.disabled;return!(!this.disabled&&!e)}isActionGroup(){const e=this.isMoreFilterVisible(),t=this?.secondaryFilters&&this.secondaryFilters.length>0,i=this?.actionGroup;return!(!e&&!t||!i)}createAllFiltersData(){const e=this.allFiltersData;e?.label&&e.label!==""||(this.allFiltersData={...this.allFiltersData,label:"All"})}getAllFiltersValue(){return this.allFiltersData?.label??"All"}getSelectedFilter(e){return(this?.selectedFilters??[]).find((t=>t.filterId===e))}getSelectedDropdownFilterTitle(e){const t=this.getSelectedFilter(e);if(t?.filterTitle)return t.filterTitle;const i=(this?.primaryFilters??[]).find((l=>l?.filterId===e)),s=i?.filterPickerData??[],a=s?.[0]?.items?.[0];let n="";return a?.isPlaceholderItem&&a?.title&&(n=a.title),n}isNormalFilterSelected(e){return!!this.getSelectedFilter(e)}isDropdownFilterSelected(e){const t=this.getSelectedFilter(e),i=t?.filterPickerData;return!(!i?.title&&!i?.value||i?.isPlaceholderItem)}getSelectedFilterPickerData(e){return this.getSelectedFilter(e)?.filterPickerData}setFilterPickerExpandedState(e,t){this.activeExpandedFilterId=t?.expanded?e:void 0}render(){const e=Nr(),t=this?.primaryFilters??[],i=this?.secondaryFilters??[],s=this.isMoreFilterVisible(),a=this.moreFiltersData,n=a?.filterPickerData??[],l={disabled:this?.moreFiltersData?.disabled,filterDefaultSelected:this?.moreFiltersData?.filterDefaultSelected,loading:this?.moreFiltersData?.loading},o=this.isAllFilterVisible(),d=this.getAllFiltersValue(),g={defaultSelected:this?.allFiltersData?.defaultSelected,disabled:this?.allFiltersData?.disabled,loading:this?.allFiltersData?.loading},c=this.dropdownDividerVisible,h=this.filterSize,p=this.isActionGroup(),m=this?.allFiltersData?.filterId&&this.allFiltersData.filterId!==""?this.allFiltersData.filterId:`1_${d}_primary`,u=this?.moreFiltersData?.filterId&&this.moreFiltersData.filterId!==""?this.moreFiltersData.filterId:i.length+1+"_more_secondary",b="secondary",v="more",_=i.length+1,y=this.getSelectedDropdownFilterTitle(u);return r("div",{key:"5488b75338374739aad8fbca04538fb7eb195cb8",class:e},r("div",{key:"e91a050f2b0e0b6c43b2d9c3d5739690535df94b",class:"gids-action-bar__primary-filters"},r(At,{key:"e90539d289a5ef842d17a31fef13d5efb71e1503",layout:"wrap"},o?r("gids-filter",{type:"all",filterId:m,filterIndex:0,filterItemType:"primary",filterSelected:this.isNormalFilterSelected(m),value:d,...g,disabled:this.isAllFiltersTabDisabled(),size:h,onFilterMenuItemChange:this.handleAllFilterClick}):void 0,t.map(((f,w)=>{const x=f?.filterPickerData??[],C=f?.filterId&&f.filterId!==""?f.filterId:w+1+"_primary",k="primary",I="none",D=this.getSelectedDropdownFilterTitle(C);return r("gids-filter",{key:`${C}_${D}`,...f,filterIndex:w+1,filterId:C,disabled:f?.disabled||this.disabled,filterDefaultSelected:f?.filterDefaultSelected,filterSelected:this.isDropdownFilterSelected(C),type:I,filterItemType:k,title:D,value:D,size:h,expanded:this.activeExpandedFilterId===C,onToggle:F=>this.toggleDropdownFilter({detail:F,filterId:C,pickerData:x})},r(Xe,{type:"default"},x.map(((F,H)=>{const W=F?.sectionLabel;return r(Ke,{sectionLabel:W,key:""+H},(F?.items??[]).map(((z,$)=>{const te=z?.isPlaceholderItem??!1,R=z?.id&&z.id!==""?z.id:`${C}_s${H}_i${$}`,V=this.getSelectedFilterPickerData(C);return r(Ze,{key:R,id:R,index:$,title:z?.title,value:z?.value,disabled:z?.disabled,defaultSelected:z?.defaultSelected,isPlaceholderItem:te,selected:V?.id===R,divider:c,onPressDropdownItem:G=>this.handleDropdownFilterMenuItemClick({event:G,filterItemType:k,filterType:I,filterIndex:w,filterId:C,filterMenuSectionIndex:H})})})))}))))})),this.clearAllFiltersVisible&&!p?r(Q,{size:this.filterSize,appearance:this.clearAllFiltersButtonAppearance,leadingIcon:r(L,{name:"cross",size:this.filterSize,slot:"leadingIcon"}),onClick:this.handleClearAllFiltersClick}):void 0)),p?r("div",{class:"gids-action-bar__secondary-filters"},r(At,{layout:"wrap"},i.map(((f,w)=>{const x=f?.filterId&&f.filterId!==""?f.filterId:`${w+1}_${f?.label}_secondary`;return r("gids-filter",{key:""+(t.length+w+1),...f,filterIndex:w,filterId:x,disabled:f?.disabled||this.disabled,filterDefaultSelected:f?.defaultSelected,type:"none",filterItemType:"secondary",value:f?.label,size:h,filterSelected:this.isNormalFilterSelected(x),onFilterMenuItemChange:this.handleSecondaryFilterClick})})),s?r("gids-filter",{key:`${u}_${y}`,type:v,filterItemType:b,filterIndex:_,filterId:u,...l,disabled:this.isMoreFiltersTabDisabled(),filterSelected:this.isDropdownFilterSelected(u),size:h,expanded:this.activeExpandedFilterId===u},r(Xe,{type:"default"},n.map(((f,w)=>{const x=f?.items??[],C=f?.sectionLabel;return r(Ke,{sectionLabel:C,key:""+w},x.map(((k,I)=>{const D=k?.isPlaceholderItem??!1,F=k?.id&&k.id!==""?k.id:`${u}_s${w}_i${I}`,H=this.getSelectedFilterPickerData(u);return r(Ze,{key:F,id:F,index:I,title:k?.title,value:k?.value,disabled:k?.disabled,isPlaceholderItem:D,selected:H?.id===F,defaultSelected:k?.defaultSelected,divider:c,onPressDropdownItem:W=>this.handleDropdownFilterMenuItemClick({event:W,filterItemType:b,filterType:v,filterIndex:_,filterId:u,filterMenuSectionIndex:w})})})))})))):void 0,this.clearAllFiltersVisible?r(Q,{size:this.filterSize,appearance:this.clearAllFiltersButtonAppearance,leadingIcon:r(L,{name:"cross",size:this.filterSize,slot:"leadingIcon"}),onClick:this.handleClearAllFiltersClick}):void 0)):void 0)}static get watchers(){return{filterSize:[{handleFilterSizeChange:0}],dropdownDividerVisible:[{handleDropdownDividerVisibilityChange:0}],primaryFilters:[{handlePrimaryFiltersChange:0}],secondaryFilters:[{handleSecondaryFiltersChange:0}],allFiltersData:[{handleAllFiltersDataChange:0}],moreFiltersData:[{handleMoreFiltersValueChange:0}],disabled:[{handleDisabilityChange:0}],actionGroup:[{handleActionGroupChange:0}],clearAllFiltersButtonAppearance:[{handleClearAllFiltersButtonAppearanceChange:0}]}}static get style(){return".gids-action-bar{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:var(--gids-gap-600);align-self:stretch}.gids-action-bar__primary-filters{display:flex;align-items:center;justify-content:flex-start;flex:1 0 0}.gids-action-bar__secondary-filters{display:flex;align-items:center;justify-content:flex-end}"}},[0,"gids-action-bar",{actionGroup:[4,"action-group"],allFiltersTabVisible:[4,"all-filters-tab-visible"],moreFiltersTabVisible:[4,"more-filters-tab-visible"],clearAllFiltersVisible:[4,"clear-all-filters-visible"],clearAllFiltersButtonAppearance:[1,"clear-all-filters-button-appearance"],primaryFilters:[16],secondaryFilters:[16],allFiltersData:[16],moreFiltersData:[16],filterSize:[1,"filter-size"],dropdownDividerVisible:[4,"dropdown-divider-visible"],disabled:[4],onToggleActionBarAllFilter:[16],onToggleActionBarDropdownFilter:[16],onToggleActionBarMoreFilter:[16],onToggleActionBarNoneFilter:[16],onDropdownSelectionActionBarFilterChange:[16],onMoreSelectionActionBarFilterChange:[16],onClearAllFiltersButton:[16],selectedFilters:[32],activeExpandedFilterId:[32]},void 0,{filterSize:[{handleFilterSizeChange:0}],dropdownDividerVisible:[{handleDropdownDividerVisibilityChange:0}],primaryFilters:[{handlePrimaryFiltersChange:0}],secondaryFilters:[{handleSecondaryFiltersChange:0}],allFiltersData:[{handleAllFiltersDataChange:0}],moreFiltersData:[{handleMoreFiltersValueChange:0}],disabled:[{handleDisabilityChange:0}],actionGroup:[{handleActionGroupChange:0}],clearAllFiltersButtonAppearance:[{handleClearAllFiltersButtonAppearanceChange:0}]}]);function zr(){typeof customElements<"u"&&["gids-action-bar","gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-action-bar":customElements.get(e)||customElements.define(e,as);break;case"gids-filter":customElements.get(e)||ss();break;case"gids-toggle-button":customElements.get(e)||Nt()}}))}zr();const Or=as,{getGidsChartLegendClassNames:Rr}=Qn,ns=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=Rr({orientation:this.orientation});return r("div",{key:"91b00cc799a723fe520513e41dc67df2b19c871e",class:e},r("slot",{key:"83968874a18a0fb86706516b4083d6582a3341fb"}))}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 ve(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,ns))}))}ve();const{getGidsChartLegendItemClassNames:Vr}=Un,rs=P(class extends T{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=Vr({seriesType:this.seriesType,orientation:this.orientation});return r("div",{key:"a168968003ccd7216f5c69beac50898a1f176dc7",class:e},r("div",{key:"995b46947af3677386a2c67a7b7fa469483a8745",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},r(L,{key:"6b8b0a267e30a77f8c6d4ae18db2f4dfcf4041e7",name:"new",alt:"new_icon",appearance:"filled"})),r("span",{key:"c9e38851fd89a20e06e111fe2ca4faf3211f03fa",class:"gids-chart-legend-item__label"},r("slot",{key:"aa30a8f07ef92ff658f76fe1dce2d10dbfb636c1"})))}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 ye(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,rs))}))}ye();const{getGidsActivityGaugeClassNames:Gr}=tr,ls=P(class extends T{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(de,{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=Gr({breakpoint:this.breakpoint}),n=[{radius:42,strokeWidth:5.5},{radius:34,strokeWidth:5.5},{radius:26,strokeWidth:5.5}],l=this.size==="xxs",o=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,b=`${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":b,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"}))}))),r("div",{class:"gids-activity-gauge__center-content"},o&&!l?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),l&&o?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 os(){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,ls);break;case"gids-chart-legend":customElements.get(e)||ve();break;case"gids-chart-legend-item":customElements.get(e)||ye()}}))}os();const jr=ls,{getGidsBarChartClassNames:Br}=Kn,ds=P(class extends T{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(de,{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(((b,v)=>{v<t&&(i[v]=(i[v]??0)+(b?.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 l=Math.ceil(s/n)*n,o=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const u=[...this.dataPoints].sort(((y,f)=>y-f)),b=u.length>1?(u[1]??200)-(u[0]??0):200,v=Math.max(...u,l,...i),_=Math.ceil(v/(b||1));for(let y=0;y<=_;y++)o.push(y*b)}else{const b=l/4;for(let v=0;v<5;v++)o.push(Math.round(0+v*b))}const d=Math.max(...o)-0||1,g=Br({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,b)=>r("gids-chart-legend-item",{key:u.label,seriesType:`${b+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"},o.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"},o.map((u=>{const b=100-(u-0)/d*100;return r("line",{x1:"0",y1:b,x2:"100",y2:b,class:"gids-bar-chart__grid-line",key:u})})),e.map(((u,b)=>{const v=b*p+(p-m)/2;let _=0;const y=[...this.chartData.map(((f,w)=>{if(!Array.isArray(f.data))return null;const x=f.data[b];if(!x)return null;const C=(x.value||0)/d*100,k=100-C-_;return _+=C,{seriesIdx:w,crownY:k,height:C}})).filter((f=>f!==null&&f.height>0))].sort(((f,w)=>w.seriesIdx-f.seriesIdx));return r("g",{key:b},y.map((f=>{const w=.3*m,x=`
8
+ M ${v},${f.crownY+w}
9
+ Q ${v},${f.crownY} ${v+w},${f.crownY}
10
+ H ${v+m-w}
11
+ Q ${v+m},${f.crownY} ${v+m},${f.crownY+w}
12
+ V 100
13
+ H ${v}
14
+ Z
15
+ `.replace(/\s+/g," ").trim();return r("path",{key:f.seriesIdx,d:x,class:`gids-bar-chart__bar gids-bar-chart__series-bar-${f.seriesIdx+1}`})})))}))))),r("div",{class:"gids-bar-chart__x-axis-scale-container"},e.map(((u,b)=>r("span",{class:"gids-bar-chart__scale-text",key:b},u)))),r("span",{class:"gids-bar-chart__x-axis-label"},this.xAxisLabel)),h?r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((u,b)=>r("gids-chart-legend-item",{key:u.label,seriesType:`${b+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 cs(){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,ds);break;case"gids-chart-legend":customElements.get(e)||ve();break;case"gids-chart-legend-item":customElements.get(e)||ye()}}))}cs();const Yr=ds,{getGidsCalendarMonthListClassNames:qr,getGidsCalendarMonthListMonths:Hr}=Yn,hs=P(class extends T{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:l}=t.detail;n||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:l,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=()=>Hr(),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=qr();return r("div",{key:"a4c3d291302079299a702892a7feb47fecdc0ab3",class:e},r(Xe,{key:"57a34a46ff0d264d11faf29a1c852385d20f4303",type:this.type,supportingText:this.noOptionsText},r(Ke,{key:"f6bed17740192c11aabd7de928396147e8da7dfd",sectionLabel:"Months"},this.monthsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(i);return r(Ze,{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,isPlaceholderItem:!1})})))))}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 zt(){typeof customElements<"u"&&["gids-calendar-month-list"].forEach((e=>{e==="gids-calendar-month-list"&&(customElements.get(e)||customElements.define(e,hs))}))}zt();const{getGidsCalendarYearListClassNames:Wr,getGidsCalendarYearListYears:Ur,isValidFourDigitYear:gs}=qn,ps=P(class extends T{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:l}=t.detail;n||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:l,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=()=>Ur({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&&gs(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&gs(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=Wr();return r("div",{key:"6f7e9060d5bae75255f0c82d6e39c59350e115db",class:e},r(Xe,{key:"6d8c2cf5f688ed922abb21d2243c8101ea3a2e45",type:this.type,supportingText:this.noOptionsText},r(Ke,{key:"f832e544140b66b74c64e306eb23f7c42a2db960",sectionLabel:"Years"},this.yearsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(t.value);return r(Ze,{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,isPlaceholderItem:!1})})))))}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 Ot(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,ps))}))}Ot();const{getGidsDropdownPickerClassNames:Qr}=Hn,us=P(class extends T{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,isPlaceholderItem:l}=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,isPlaceholderItem:l}))},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")??"";if(typeof n!="string"||n.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:n,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const 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=Qr({expanded:e}),i=typeof this.idPicker=="string"?this.idPicker:void 0,s=i?`${i}__menu`:void 0;return r("div",{key:"fd8821be1aecb1e5ba7f725d9ebec0f6222a16cd",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},r(Q,{key:"63016b4e74dfeaa3f9c29139f69a2d46ca97ae76",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(L,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),r("div",{key:"4f463a8f04de48e3b8b6ceeab69c90cbc8ba7631",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},r("slot",{key:"1fab2b1bd8cd2bcd0fd7031712d0585635620be1"})))}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 Rt(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,us))}))}Rt();function ms(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=ms(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Xr(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=ms(e))&&(s&&(s+=" "),s+=t);return s}const{getGidsCalendarHeaderPanelClassNames:Kr,getCalendarMonthNameViaMonthNumber:_e}=qi,fs=P(class extends T{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=_e(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=_e(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=_e(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=_e(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=_e(e),this.panelMonthNumber=e):(this.selectedMonthNumber=this.fallbackMonth,this.panelMonth=_e(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=Kr(),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:"465c3b150920df42f6a9d190f14ad6bc809c0e6a",class:e},r(Q,{key:"45e5d278d5bd65137c2370876de0b436051b3528",leadingIcon:r(L,{name:"arrow-left",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handlePreviousActionClick,disabled:s}),r("div",{key:"2f06fecf2a5867e1e5e6fc47cd23233b4986e92b",class:"gids-calendar-header-panel__main-container"},r("gids-dropdown-picker",{key:"a6ae7c21488af8889ad699726f85bfff8dd368bc",expanded:t,appearance:this.appearance,size:"sm",value:`${this.panelMonthNumber}`,disabled:this.monthPickerDisabled},r("gids-calendar-month-list",{key:"fe3fe13b098d9fa83c25bb13fe7842bd0cd1b908",type:"default",selectedMonthNumber:this.panelMonthNumber,onSelectionMonthChange:this.handleMonthPickerMenuClick})),r("span",{key:"eb58738544b7ca0d2880b181d892cfd5f05d2c4f",class:Xr("gids-calendar-header-panel__panel-value",{"gids-calendar-header-panel__panel-value-disabled":this.panelDisabled})},this.getPanelValue()),r("gids-dropdown-picker",{key:"312f4cbf867709075b94c90e22421314b8999fce",expanded:i,appearance:this.appearance,size:"sm",value:`${this.panelYear}`,disabled:this.yearPickerDisabled},r("gids-calendar-year-list",{key:"2a66a9cd7a4cea5c819b7fdabde227b6019f3a25",type:"default",selectedYear:this.panelYear,startYear:this.startYear??this.fallbackStartYear,endYear:this.endYear,onSelectionYearChange:this.handleYearPickerMenuClick}))),r(Q,{key:"681dbcb21ce0fa989d61a2a03872fc6eeed6afd8",leadingIcon:r(L,{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 bs(){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,fs);break;case"gids-calendar-month-list":customElements.get(e)||zt();break;case"gids-calendar-year-list":customElements.get(e)||Ot();break;case"gids-dropdown-picker":customElements.get(e)||Rt()}}))}bs();const Zr=fs,Jr=hs,el=ps,vs=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return r(L,{key:"38a60d81d2e4682272e7892c137bad482b471f52",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 Vt(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,vs))}))}Vt();const{getGidsDotClassNames:Gt}=jn,ys=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=Gt({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=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Gt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=Gt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return r("gids-icon",{key:"1bd6ab72dde2a54f1836483ea5990426c3bfc9f7",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 _s(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,ys);break;case"gids-icon":customElements.get(e)||Vt()}}))}_s();const{getGidsCalendarCellClassNames:tl}=Gn,xs=({label:e,dot:t,disabled:i,selected:s,today:a,onPressCalendarCell:n,class:l,role:o="gridcell",cellType:d="effective",...g})=>{const c=!i&&d==="effective";return r("button",{class:tl({disabled:i,selected:s,today:a,cellType:d,dot:t},l),type:"button",role:o,"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:il}=Bn,sl=({id:e,label:t,class:i,...s})=>r(xs,{...s,id:e,label:t,name:t,dot:!1,disabled:!1,selected:!1,today:!1,cellType:"non-effective",class:il(i)}),{getGidsCalendarClassNames:al,generateCalendarDays:nl,generateCalendarWeekdays:rl}=Wn,{getCalendarMonthNameViaMonthNumber:ll}=qi,ws=P(class extends T{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=ll(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=nl({currentYear:this.currentYear,currentMonth:this.currentMonth}),t=rl(),i=al({width:this.width});return r("div",{key:"c2ea7d80305333995ae64525aa8aea441ee608e2",class:i},r("gids-calendar-header-panel",{key:"5331e43e9e2c91767b94100ce6cea5cf0e9f1afe",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:"59e02ed20a285cd6d8f28132ec56f96548ef4bcc",class:"gids-calendar__weekdays-grid"},t.map((s=>r(sl,{label:s})))),r("div",{key:"d6cba0bf0a15a393ffb56865fd9f57af5f6086ca",class:"gids-calendar__days-grid"},e.map((s=>{const a=this.selectedDate===s.dateString,n=this.dotVisibleDates?.includes(s.dateString);return r(xs,{label:s.day+"",today:s.isToday,selected:a,dot:n,cellType:"effective",disabled:!s.isCurrentMonth,onPressCalendarCell:l=>this.handleDateCellClick({event:l,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 ol(){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,ws);break;case"gids-calendar-header-panel":customElements.get(e)||bs();break;case"gids-calendar-month-list":customElements.get(e)||zt();break;case"gids-calendar-year-list":customElements.get(e)||Ot();break;case"gids-dot":customElements.get(e)||_s();break;case"gids-dropdown-picker":customElements.get(e)||Rt();break;case"gids-icon":customElements.get(e)||Vt()}}))}ol();const dl=ws,cl=rs,hl=ns,{getGidsButtonDockClassNames:gl}=vn,pl=({class:e,primaryChildren:t,secondaryChildren:i,...s})=>r("div",{class:gl(e),...s},r("div",{class:"gids-button-dock__secondary-area"},i),r("div",{class:"gids-button-dock__primary-area"},t)),{getGidsFeedbackBlockClassNames:ul}=Ln,Ae=({title:e,supportingText:t,image:i,children:s})=>r("div",{class:ul()},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(pl,{primaryChildren:s}))),{getGidsLevelGaugeClassNames:ml}=Jn,Cs=P(class extends T{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(de,{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=Vi;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=t&&this.value>=0))return r("div",{class:"gids-level-gauge__no-data"},r(Ae,{title:Gi,supportingText:ji(100),image:r("slot",{name:"chartFeedbackBlockImage"})}));const i=Math.min(Math.max(e/t,0),1),s=`${Math.round(100*i)}%`,a=ml({breakpoint:this.breakpoint}),n=2*Math.PI*40,l=`${i*n} ${n}`,o=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":l,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"})),r("div",{class:"gids-level-gauge__center-content"},o?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))),o?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 Ss(){typeof customElements<"u"&&["gids-level-gauge"].forEach((e=>{e==="gids-level-gauge"&&(customElements.get(e)||customElements.define(e,Cs))}))}Ss();const{getGidsLineChartClassNames:fl}=Xn,ks=P(class extends T{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(de,{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 l=Math.max(...n,a)-0||1,o=this?.chartData?.[0]?.data?.map((p=>p.label))??[],d=o.length,g=fl({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)/l*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)/l*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(((b,v)=>`${v===0?"M":"L"} ${v/(d-1)*100} ${100-(b.value-0)/l*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"},o.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 Es(){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,ks);break;case"gids-chart-legend":customElements.get(e)||ve();break;case"gids-chart-legend-item":customElements.get(e)||ye()}}))}Es();const{getGidsPieChartClassNames:bl}=Zn,Is=P(class extends T{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(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((o,d)=>o+(d.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,a=bl({breakpoint:this.breakpoint}),n=2*Math.PI*25;let l=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(((o,d)=>{const g=(o.value||0)/s,c=`${g*n} ${n}`,h=-l*n;return l+=g,r("circle",{key:o.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(((o,d)=>r("gids-chart-legend-item",{key:o.label,seriesType:`${d+1}`,orientation:"vertical"},o.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 Ts(){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,Is);break;case"gids-chart-legend":customElements.get(e)||ve();break;case"gids-chart-legend-item":customElements.get(e)||ye()}}))}Ts();const{getGidsProgressCircleClassNames:vl}=er,Ps=P(class extends T{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(de,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.shape==="half-circle"?un:Vi;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return r("div",{class:"gids-progress-circle__no-data"},r(Ae,{title:Gi,supportingText:ji(e)}));const t=this.value/e,i=`${this.value}%`,s=vl({breakpoint:this.breakpoint}),a=this.shape==="half-circle";let n=2*Math.PI*40,l=t*n,o=0,d="0 0 100 100",g="rotate(-90 50 50)";a&&(n=40*Math.PI,l=t*n,o=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":`${l} ${n}`,"stroke-dashoffset":o})):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":`${l} ${n}`,"stroke-dashoffset":o,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 Ds(){typeof customElements<"u"&&["gids-progress-circle"].forEach((e=>{e==="gids-progress-circle"&&(customElements.get(e)||customElements.define(e,Ps))}))}Ds();const{getGidsChartClassNames:yl}=ir,Ms=P(class extends T{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(Ae,{title:mn,supportingText:fn(this.getChartTypes().join(", "))}));const e=this.isChartDataValid(),t=this.getChartTypeText();if(!e)return r("div",{class:"gids-activity-gauge__no-data"},r(Ae,{title:gn,supportingText:pn(t)}));const i=yl(),s=this.chartType,a=this.barChartProps,n=this.pieChartProps,l=this.activityGaugeProps,o=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",{...l,breakpoint:this.breakpoint}):null,s==="level-gauge"?r("gids-level-gauge",{...o,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(Ae,{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 _l(){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,Ms);break;case"gids-activity-gauge":customElements.get(e)||os();break;case"gids-bar-chart":customElements.get(e)||cs();break;case"gids-chart-legend":customElements.get(e)||ve();break;case"gids-chart-legend-item":customElements.get(e)||ye();break;case"gids-level-gauge":customElements.get(e)||Ss();break;case"gids-line-chart":customElements.get(e)||Es();break;case"gids-pie-chart":customElements.get(e)||Ts();break;case"gids-progress-circle":customElements.get(e)||Ds()}}))}_l();const xl=Ms,{getGidsChevronButtonClassNames:jt}=Nn,As=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=Ie(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=jt({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=jt({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=jt({size:this.size},this.extraClasses)}render(){return r("button",{key:"dd10979a904980892fbb220bfe6da96375414eda",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:"629b4c694e59bcd6c6c0d5ab86845dba8afb055b",class:"gids-button__content"},r(L,{key:"770618c0d5e45311be0aa155813226b66bb14a77",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 wl(){typeof customElements<"u"&&["gids-chevron-button"].forEach((e=>{e==="gids-chevron-button"&&(customElements.get(e)||customElements.define(e,As))}))}wl();const Cl=As,Sl=ys,{getIndicatorText:kl}=en,{getGidsLabelClassNames:El}=Wa,Bt=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:a,htmlFor:n,labelId:l,class:o,isLabelSentence:d,...g},c)=>{const h=kl({children:c,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:d});return r("div",{class:El({disabled:e},o),...g},r("label",{htmlFor:n,id:l},c,h&&r("span",{class:"gids-label__field-requirement"},h)),a)},Ls=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(pr(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(oe,{key:"013d4a68291d4a3897246142cd611a2bc442d6a3"},r("slot",{key:"97f0d9030c5061b219cc35c409820b81e3d4098a",name:"leadingIcon"}),this.leadingLabel&&r("span",{key:"2f8726384a877b0bee51579661f66f6e3da811e1",class:"gids-input__label"},this.leadingLabel),r("slot",{key:"4843ddf9a10afba03ec0a552fd61cfddd3470749",name:"leadingAccessory"}),r("input",{key:"657559522ac7908ebb5dc27992cb50eb69d1fbd8",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),r("slot",{key:"c80c3ce3bf17f60e8f773b9c2f5dc25dacdf5446",name:"trailingAccessory"}),this.trailingLabel&&r("span",{key:"f9ba8d097b660cdeaeacc0ac1ba970d3fa839fcc",class:"gids-input__label"},this.trailingLabel),r("slot",{key:"35116e82425db12c08580460ac9c84f89faec71e",name:"trailingIcon"}),this.status==="incomplete"&&r(L,{key:"2634986e80dfbbfb98b5a4dd95829e6af3b229a0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&r(L,{key:"63ab6b357df47d2d96ad6d3d33f22ab7864f395e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&r(Mt,{key:"1eb7af66b5005a6f8dea895c00f100e7cc6e7548",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Le(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ls))}))}Le();const{getGidsDropdownClassNames:Il,getGidsChevronButtonControlClassNames:Tl}=Vn,Yt="gids-dropdown-item--active",Fs=P(class extends T{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,isPlaceholderItem:l}=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,isPlaceholderItem:l}))},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")??"";if(typeof n!="string"||n.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:n,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},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(Yt))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((a=>a.classList.remove(Yt))),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(Yt),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=Il({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??"",l=e?"true":"false",o=r("button",{key:"7308fb3cd3804b1945e023107018d16bafd166b3",class:Tl({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":l,"aria-haspopup":"listbox","aria-controls":a,disabled:this.disabled||this.readOnly,tabIndex:-1},r("span",{key:"39816bde9d3e2e43f3f0b19bd6abda300e1362c4",class:"gids-button__content"},r(L,{key:"95d25d7a9f0b9e0ee2f7dcd9bad178580198184b",name:"chevron-vertical",alt:""})));return r("div",{key:"c86f983fe0481939441ef4750ac3af7f41ba1334",class:t},r("gids-input",{key:"00f171ce20bd3dca41c799993259e19c86ad9df5",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:"fbeb48c6376fb0d35f989bbc97bb7b186a237029",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&r("slot",{key:"32bd6bea5335946f1e78efe067be89dead314ea9",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),o),r("div",{key:"0ea93131baf32b00593992131a4eb866a87af1bf",class:"gids-dropdown__menu",id:a,role:"listbox",onClick:this.handleMenuClick},r("slot",{key:"d2b232c3a364e9e467340b45f4ad08e9b5431cf7"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function $s(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,Fs);break;case"gids-input":customElements.get(e)||Le()}}))}$s();const{getGidsFieldClassNames:Pl}=_n,Ns=P(class extends T{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=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,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(bt,{key:"f830ae3da5de21c80d9fd5b7161fa3f2845a82df"},r("div",{key:"8c6c4af1b4ebe897873a49c42975a8730905cf27",class:Pl()},r("div",{key:"3afa55c23b729296ff65fb03b501919dcaa420d3",class:"gids-field__header",hidden:!this._hasLabelContent()},r("slot",{key:"6d8c9adf2b04d19a446fdd2707259d931dbc2eb9",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),r("div",{key:"46cc09d9414bb88622f95e7ccffba84b602b25f0",class:"gids-field__count","aria-live":"polite"},this.count)),r("div",{key:"0e6ddf85cf459c53f2cfc5f453cd4fe35e532d9b",class:"gids-field__control"},r("slot",{key:"d2d007d50a5f7001872b368dee5d648a8751c1af",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),r("p",{key:"09e08e474051efd8bb9e526311cd8d3bb14f8671",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(L,{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 Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ns))}))}Je();const zs=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#t=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}))}}#t;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.#t,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return r("gids-field",{key:"e6a0a13ea0e4af7eed1fe4fdf4a75a0cc2e25781",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?r(Bt,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,r("gids-dropdown",{key:"8bc3cc97ae4c0aca628ec4b23886084e1e640235",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:"fc99a57e26453a285f0f0b9f229b6cd51807308d",name:"leadingIconDropdown"}),r("slot",{key:"97ef4d59ff8b845879ac34f3b32e47f8e8174fd2",name:"leadingAccessoryDropdown"}),r("slot",{key:"0b61c948bf3e1419e4db201fb3b659666e112fbf"})))}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 Dl(){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,zs);break;case"gids-dropdown":customElements.get(e)||$s();break;case"gids-field":customElements.get(e)||Je();break;case"gids-input":customElements.get(e)||Le()}}))}Dl();const Ml=zs,Al=us,Ll=Fs,Fl=Ns,$l=is,Nl=vs,zl=Ls,Ol=Cs,Rl=ks,qt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Os=({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"),l=n[n.length-1];if(!l)return 1;const o=l.offsetHeight,d=getComputedStyle(l).lineHeight,g=d.endsWith("px")?parseFloat(d):0;return Math.ceil(g?o/g:1)})();return s===2?i==="snackbar"?5e3:8e3:s>=3?i==="snackbar"?7e3:1e4:i==="snackbar"?3e3:6e3})(e),Rs=P(class extends T{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=qt(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 Vl(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,Rs))}))}Vl();const Gl=Rs,{showGidsOverflowContainerBottomShadow:Vs,showGidsOverflowContainerTopShadow:jl}=hn,Gs=P(class extends T{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"),Vs(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&&(jl(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),Vs(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:"97362225f8b3eb16c63650c2265649f0c10cd02d",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},r("slot",{key:"833add367bb620d6405caab9aa0fddbbf99185a5"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function Bl(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Gs))}))}Bl();const Yl=Gs,{getGidsSnackbarContainerClassNames:ql,getSnackbarContainerIconNames:Hl}=Pn,Wl=({appearance:e="default",children:t,button:i,class:s,...a})=>{const n=Hl(e);return r("div",{...a,class:ql({appearance:e},s)},r("div",{class:"gids-snackbar-container__content"},e!=="default"&&n!=null?r(L,{name:n,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?r("p",null,t):t),i)},{getGidsNotificationContainerClassNames:Ul,getNotificationContainerIconNames:Ql}=Mn,Xl=({notificationTitle:e,children:t,button:i,appearance:s="default",pronunciation:a="standard",onCloseNotificationClick:n,class:l,...o})=>{const d=Ql(s);return r("div",{class:Ul({appearance:s},l),...o},s!=="default"&&d?r("div",{class:"gids-notification-container__leading-icon-wrapper"},r(L,{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(Q,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:r(L,{name:"cross",size:"md",appearance:"regular"}),onClick:n})):null),i?r("div",{class:"gids-notification-container__bottom-content"},i):null))},{getComponentClasses:Kl,getComponentStackClasses:Zl}=Dn,js=P(class extends T{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:l,onButtonClick:o}=t;return r(Wl,{key:s,class:i,children:a,appearance:n,button:l!=null&&l!==""?r(Q,{appearance:"subtle",onClick:o},l):void 0})},this._renderNotification=(t,i)=>{const{id:s,notificationTitle:a,message:n,pronunciation:l,appearance:o,buttonLabel:d,onButtonClick:g,timerInMs:c}=t;return r(Xl,{key:s,class:i,notificationTitle:a,children:n,pronunciation:l,appearance:o,onCloseNotificationClick:()=>this.removeComponent(t,c||0,!0),button:d!=null&&d!==""?r(Q,{appearance:"default",size:"sm",onClick:g},d):void 0})},this._renderComponent=t=>{const{componentName:i,position:s="bottom-center",id:a}=t,n=Kl({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=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=qt(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:l,...o}=e,d={id:""+(Date.now()+Math.random()),message:i,appearance:t,buttonLabel:s,onButtonClick:a,position:n,componentName:l,...o};this._componentQueue=[...this._componentQueue,d],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:i,pronunciation:s,message:a,buttonLabel:n,onButtonClick:l,position:o,componentName:d,...g}=e,c={id:""+(Date.now()+Math.random()),notificationTitle:i,message:a,pronunciation:s,appearance:t,buttonLabel:n,onButtonClick:l,position:o,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=Os({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=Os({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(oe,{key:"98b34b44016b714b3ea32f097a954e7044928a09"},r("slot",{key:"81a68d3e2087bb2cb547e33579bd9f92ef45e968"}),this._isRoot()?r("div",{class:Zl({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 Jl(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,js))}))}Jl();const eo=js,{getGidsDismissButtonClassNames:to}=yn,Bs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:a,label:n,...l})=>r("button",{class:to({appearance:e,size:t},s),onClick:a,disabled:i,"aria-label":n,...l},r(L,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:io}=Cn,{getStrengthMeterScore:so,getColorModifierByScore:ao}=rn,no=({text:e,textMinLength:t,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:s})=>{const a=(n,l,o)=>r("div",{key:n,class:["gids-strength-meter__strength-"+n,o?"is-active":"",o?l:""].filter(Boolean).join(" ")});return i.length>0?r("div",{class:io(s)},(()=>{const n=i.length,l=so({text:e,textMinLength:t,meterRules:i}),o=ao({textScore:l,maxScore:n});return Array.from({length:n},((d,g)=>{const c=g+1,h=c<=l;return i[c]==="include-min-length"?Me({requirementRule:"include-min-length",textMinLength:t})?a(c,o,h):null:a(c,o,h)}))})()):null},{getGidsRequirementsMeterLabelClassNames:ro}=Sn,{getRequirementsMeterLabelLeadingIcon:lo}=dn,oo=e=>{const{label:t,status:i="default",leadingIconVisible:s=!0,class:a}=e,n=lo(i);return r("div",{class:ro({status:i},a)},s&&i&&n?r(L,{name:n,size:"sm",appearance:"filled"}):null,t&&t!==""?r("span",null,t):null)},{checkRequirementRuleSatisfied:co}=on,{getGidsRequirementsMeterClassNames:ho}=kn,go=({requirements:e=[],text:t,textMinLength:i,class:s})=>{const a=(n,l)=>r(oo,{status:l?"success":"error",label:n.requirementText});return r("div",{class:ho(s)},e.map((n=>{if(n?.requirementText!=null&&n?.requirementRule!=null){const l=co({rule:n.requirementRule,textMinLength:i,text:t});return n.requirementRule==="include-min-length"?Me({requirementRule:n.requirementRule,textMinLength:i})===!0?a(n,l):null:a(n,l)}return null})))},{inputToGidsFieldStatusForPassword:po}=Tn,Ys=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=Ie(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=Ie(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=Ue(),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?Et(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Di(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=It(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=It(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??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0,a=this.showRevealPasswordButton,n={...t},l=n?.placeholder!==void 0&&n.placeholder!==null&&n.placeholder!=""?n.placeholder:"Enter password",o=this.isPasswordRevealed,d=this.meterRules,g=this.textMinLength!==void 0?this.textMinLength:8;return r(oe,{key:"ad8824cc057aa37efa91c06726fdc1b557d409de"},r("gids-field",{key:"59ebf5007857762d94d9b97e43b78ddff47c9ff0",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:po(this.status)},r(Bt,{key:"48268834c82d79a615a8664cc82392ced99fdca7",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:"b788da8c254e5d60500d61d304ec651d3fedea0c",ref:c=>this.#e=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:l,type:o?"text":"password",id:i,maxLength:this.maxLength}},r("slot",{key:"d391d4aa12d3141c90ed75738407d1c67b0d0702",name:"leadingIcon"}),r("slot",{key:"6e832b40ffd56cf269c1a0a864f5d87766a27388",name:"leadingAccessory"}),r("div",{key:"583893f7fa33d8f6a38f3751e47294ac48f96176",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},s&&r(Bs,{key:"405c0a96c792c3ea4ab9ed3f62b902865328a878",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&r(Q,{key:"20239498d925c2b88a0197cd24d32dc5f0a3d241",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},o?"Hide":"Show")))),r("div",{key:"0f86c1cdf84b819848c7e4051720482ff5a5247f",class:"gids-password-field__meters-container"},r(no,{key:"646c27887adf3f4913bfa78c9f2c30758a4c2491",meterRules:d,text:this.value,textMinLength:g}),r(go,{key:"07ff4be07b41ea41504a40c775402b138c2c0dc8",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 uo(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Ys);break;case"gids-field":customElements.get(e)||Je();break;case"gids-input":customElements.get(e)||Le()}}))}uo();const mo=Ys,fo=Is,xe=Math.min,ce=Math.max,et=Math.round,tt=Math.floor,X=e=>({x:e,y:e}),bo={left:"right",right:"left",bottom:"top",top:"bottom"};function Ht(e,t,i){return ce(e,xe(t,i))}function Fe(e,t){return typeof e=="function"?e(t):e}function he(e){return e.split("-")[0]}function $e(e){return e.split("-")[1]}function qs(e){return e==="x"?"y":"x"}function Wt(e){return e==="y"?"height":"width"}function se(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ut(e){return qs(se(e))}function vo(e,t,i){i===void 0&&(i=!1);const s=$e(e),a=Ut(e),n=Wt(a);let l=a==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(l=it(l)),[l,it(l)]}function yo(e){const t=it(e);return[Qt(e),t,Qt(t)]}function Qt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hs=["left","right"],Ws=["right","left"],_o=["top","bottom"],xo=["bottom","top"];function wo(e,t,i){switch(e){case"top":case"bottom":return i?t?Ws:Hs:t?Hs:Ws;case"left":case"right":return t?_o:xo;default:return[]}}function Co(e,t,i,s){const a=$e(e);let n=wo(he(e),i==="start",s);return a&&(n=n.map(l=>l+"-"+a),t&&(n=n.concat(n.map(Qt)))),n}function it(e){const t=he(e);return bo[t]+e.slice(t.length)}function So(e){return{top:0,right:0,bottom:0,left:0,...e}}function Us(e){return typeof e!="number"?So(e):{top:e,right:e,bottom:e,left:e}}function st(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 Qs(e,t,i){let{reference:s,floating:a}=e;const n=se(t),l=Ut(t),o=Wt(l),d=he(t),g=n==="y",c=s.x+s.width/2-a.width/2,h=s.y+s.height/2-a.height/2,p=s[o]/2-a[o]/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[l]-=p*(i&&g?-1:1);break;case"end":m[l]+=p*(i&&g?-1:1);break}return m}async function ko(e,t){var i;t===void 0&&(t={});const{x:s,y:a,platform:n,rects:l,elements:o,strategy:d}=e,{boundary:g="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=Fe(t,e),u=Us(m),v=o[p?h==="floating"?"reference":"floating":h],_=st(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(o.floating)),boundary:g,rootBoundary:c,strategy:d})),y=h==="floating"?{x:s,y:a,width:l.floating.width,height:l.floating.height}:l.reference,f=await(n.getOffsetParent==null?void 0:n.getOffsetParent(o.floating)),w=await(n.isElement==null?void 0:n.isElement(f))?await(n.getScale==null?void 0:n.getScale(f))||{x:1,y:1}:{x:1,y:1},x=st(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:f,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 Eo=50,Io=async(e,t,i)=>{const{placement:s="bottom",strategy:a="absolute",middleware:n=[],platform:l}=i,o=l.detectOverflow?l:{...l,detectOverflow:ko},d=await(l.isRTL==null?void 0:l.isRTL(t));let g=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=Qs(g,s,d),p=s,m=0;const u={};for(let b=0;b<n.length;b++){const v=n[b];if(!v)continue;const{name:_,fn:y}=v,{x:f,y:w,data:x,reset:C}=await y({x:c,y:h,initialPlacement:s,placement:p,strategy:a,middlewareData:u,rects:g,platform:o,elements:{reference:e,floating:t}});c=f??c,h=w??h,u[_]={...u[_],...x},C&&m<Eo&&(m++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(g=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:c,y:h}=Qs(g,p,d)),b=-1)}return{x:c,y:h,placement:p,strategy:a,middlewareData:u}},To=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:s,placement:a,rects:n,platform:l,elements:o,middlewareData:d}=t,{element:g,padding:c=0}=Fe(e,t)||{};if(g==null)return{};const h=Us(c),p={x:i,y:s},m=Ut(a),u=Wt(m),b=await l.getDimensions(g),v=m==="y",_=v?"top":"left",y=v?"bottom":"right",f=v?"clientHeight":"clientWidth",w=n.reference[u]+n.reference[m]-p[m]-n.floating[u],x=p[m]-n.reference[m],C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(g));let k=C?C[f]:0;(!k||!await(l.isElement==null?void 0:l.isElement(C)))&&(k=o.floating[f]||n.floating[u]);const I=w/2-x/2,D=k/2-b[u]/2-1,F=xe(h[_],D),H=xe(h[y],D),W=F,z=k-b[u]-H,$=k/2-b[u]/2+I,te=Ht(W,$,z),R=!d.arrow&&$e(a)!=null&&$!==te&&n.reference[u]/2-($<W?F:H)-b[u]/2<0,V=R?$<W?$-W:$-z:0;return{[m]:p[m]+V,data:{[m]:te,centerOffset:$-te-V,...R&&{alignmentOffset:V}},reset:R}}}),Po=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,s;const{placement:a,middlewareData:n,rects:l,initialPlacement:o,platform:d,elements:g}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:b=!0,...v}=Fe(e,t);if((i=n.arrow)!=null&&i.alignmentOffset)return{};const _=he(a),y=se(o),f=he(o)===o,w=await(d.isRTL==null?void 0:d.isRTL(g.floating)),x=p||(f||!b?[it(o)]:yo(o)),C=u!=="none";!p&&C&&x.push(...Co(o,b,u,w));const k=[o,...x],I=await d.detectOverflow(t,v),D=[];let F=((s=n.flip)==null?void 0:s.overflows)||[];if(c&&D.push(I[_]),h){const $=vo(a,l,w);D.push(I[$[0]],I[$[1]])}if(F=[...F,{placement:a,overflows:D}],!D.every($=>$<=0)){var H,W;const $=(((H=n.flip)==null?void 0:H.index)||0)+1,te=k[$];if(te&&(!(h==="alignment"?y!==se(te):!1)||F.every(G=>se(G.placement)===y?G.overflows[0]>0:!0)))return{data:{index:$,overflows:F},reset:{placement:te}};let R=(W=F.filter(V=>V.overflows[0]<=0).sort((V,G)=>V.overflows[1]-G.overflows[1])[0])==null?void 0:W.placement;if(!R)switch(m){case"bestFit":{var z;const V=(z=F.filter(G=>{if(C){const ne=se(G.placement);return ne===y||ne==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ne=>ne>0).reduce((ne,kd)=>ne+kd,0)]).sort((G,ne)=>G[1]-ne[1])[0])==null?void 0:z[0];V&&(R=V);break}case"initialPlacement":R=o;break}if(a!==R)return{reset:{placement:R}}}return{}}}},Do=new Set(["left","top"]);async function Mo(e,t){const{placement:i,platform:s,elements:a}=e,n=await(s.isRTL==null?void 0:s.isRTL(a.floating)),l=he(i),o=$e(i),d=se(i)==="y",g=Do.has(l)?-1:1,c=n&&d?-1:1,h=Fe(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 o&&typeof u=="number"&&(m=o==="end"?u*-1:u),d?{x:m*c,y:p*g}:{x:p*g,y:m*c}}const Ao=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,s;const{x:a,y:n,placement:l,middlewareData:o}=t,d=await Mo(t,e);return l===((i=o.offset)==null?void 0:i.placement)&&(s=o.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:n+d.y,data:{...d,placement:l}}}}},Lo=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:l=!0,crossAxis:o=!1,limiter:d={fn:_=>{let{x:y,y:f}=_;return{x:y,y:f}}},...g}=Fe(e,t),c={x:i,y:s},h=await n.detectOverflow(t,g),p=se(he(a)),m=qs(p);let u=c[m],b=c[p];if(l){const _=m==="y"?"top":"left",y=m==="y"?"bottom":"right",f=u+h[_],w=u-h[y];u=Ht(f,u,w)}if(o){const _=p==="y"?"top":"left",y=p==="y"?"bottom":"right",f=b+h[_],w=b-h[y];b=Ht(f,b,w)}const v=d.fn({...t,[m]:u,[p]:b});return{...v,data:{x:v.x-i,y:v.y-s,enabled:{[m]:l,[p]:o}}}}}};function at(){return typeof window<"u"}function we(e){return Xs(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function K(e){var t;return(t=(Xs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xs(e){return at()?e instanceof Node||e instanceof O(e).Node:!1}function Y(e){return at()?e instanceof Element||e instanceof O(e).Element:!1}function J(e){return at()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function Ks(e){return!at()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}function Ne(e){const{overflow:t,overflowX:i,overflowY:s,display:a}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&a!=="inline"&&a!=="contents"}function Fo(e){return/^(table|td|th)$/.test(we(e))}function nt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $o=/transform|translate|scale|rotate|perspective|filter/,No=/paint|layout|strict|content/,ge=e=>!!e&&e!=="none";let Xt;function Kt(e){const t=Y(e)?q(e):e;return ge(t.transform)||ge(t.translate)||ge(t.scale)||ge(t.rotate)||ge(t.perspective)||!Zt()&&(ge(t.backdropFilter)||ge(t.filter))||$o.test(t.willChange||"")||No.test(t.contain||"")}function zo(e){let t=ae(e);for(;J(t)&&!Ce(t);){if(Kt(t))return t;if(nt(t))return null;t=ae(t)}return null}function Zt(){return Xt==null&&(Xt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xt}function Ce(e){return/^(html|body|#document)$/.test(we(e))}function q(e){return O(e).getComputedStyle(e)}function rt(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ae(e){if(we(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ks(e)&&e.host||K(e);return Ks(t)?t.host:t}function Zs(e){const t=ae(e);return Ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:J(t)&&Ne(t)?t:Zs(t)}function ze(e,t,i){var s;t===void 0&&(t=[]),i===void 0&&(i=!0);const a=Zs(e),n=a===((s=e.ownerDocument)==null?void 0:s.body),l=O(a);if(n){const o=Jt(l);return t.concat(l,l.visualViewport||[],Ne(a)?a:[],o&&i?ze(o):[])}else return t.concat(a,ze(a,[],i))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Js(e){const t=q(e);let i=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=J(e),n=a?e.offsetWidth:i,l=a?e.offsetHeight:s,o=et(i)!==n||et(s)!==l;return o&&(i=n,s=l),{width:i,height:s,$:o}}function ei(e){return Y(e)?e:e.contextElement}function Se(e){const t=ei(e);if(!J(t))return X(1);const i=t.getBoundingClientRect(),{width:s,height:a,$:n}=Js(t);let l=(n?et(i.width):i.width)/s,o=(n?et(i.height):i.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!o||!Number.isFinite(o))&&(o=1),{x:l,y:o}}const Oo=X(0);function ea(e){const t=O(e);return!Zt()||!t.visualViewport?Oo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ro(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==O(e)?!1:t}function pe(e,t,i,s){t===void 0&&(t=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),n=ei(e);let l=X(1);t&&(s?Y(s)&&(l=Se(s)):l=Se(e));const o=Ro(n,i,s)?ea(n):X(0);let d=(a.left+o.x)/l.x,g=(a.top+o.y)/l.y,c=a.width/l.x,h=a.height/l.y;if(n){const p=O(n),m=s&&Y(s)?O(s):s;let u=p,b=Jt(u);for(;b&&s&&m!==u;){const v=Se(b),_=b.getBoundingClientRect(),y=q(b),f=_.left+(b.clientLeft+parseFloat(y.paddingLeft))*v.x,w=_.top+(b.clientTop+parseFloat(y.paddingTop))*v.y;d*=v.x,g*=v.y,c*=v.x,h*=v.y,d+=f,g+=w,u=O(b),b=Jt(u)}}return st({width:c,height:h,x:d,y:g})}function lt(e,t){const i=rt(e).scrollLeft;return t?t.left+i:pe(K(e)).left+i}function ta(e,t){const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-lt(e,i),a=i.top+t.scrollTop;return{x:s,y:a}}function Vo(e){let{elements:t,rect:i,offsetParent:s,strategy:a}=e;const n=a==="fixed",l=K(s),o=t?nt(t.floating):!1;if(s===l||o&&n)return i;let d={scrollLeft:0,scrollTop:0},g=X(1);const c=X(0),h=J(s);if((h||!h&&!n)&&((we(s)!=="body"||Ne(l))&&(d=rt(s)),h)){const m=pe(s);g=Se(s),c.x=m.x+s.clientLeft,c.y=m.y+s.clientTop}const p=l&&!h&&!n?ta(l,d):X(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 Go(e){return Array.from(e.getClientRects())}function jo(e){const t=K(e),i=rt(e),s=e.ownerDocument.body,a=ce(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),n=ce(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let l=-i.scrollLeft+lt(e);const o=-i.scrollTop;return q(s).direction==="rtl"&&(l+=ce(t.clientWidth,s.clientWidth)-a),{width:a,height:n,x:l,y:o}}const ia=25;function Bo(e,t){const i=O(e),s=K(e),a=i.visualViewport;let n=s.clientWidth,l=s.clientHeight,o=0,d=0;if(a){n=a.width,l=a.height;const c=Zt();(!c||c&&t==="fixed")&&(o=a.offsetLeft,d=a.offsetTop)}const g=lt(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<=ia&&(n-=u)}else g<=ia&&(n+=g);return{width:n,height:l,x:o,y:d}}function Yo(e,t){const i=pe(e,!0,t==="fixed"),s=i.top+e.clientTop,a=i.left+e.clientLeft,n=J(e)?Se(e):X(1),l=e.clientWidth*n.x,o=e.clientHeight*n.y,d=a*n.x,g=s*n.y;return{width:l,height:o,x:d,y:g}}function sa(e,t,i){let s;if(t==="viewport")s=Bo(e,i);else if(t==="document")s=jo(K(e));else if(Y(t))s=Yo(t,i);else{const a=ea(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return st(s)}function aa(e,t){const i=ae(e);return i===t||!Y(i)||Ce(i)?!1:q(i).position==="fixed"||aa(i,t)}function qo(e,t){const i=t.get(e);if(i)return i;let s=ze(e,[],!1).filter(o=>Y(o)&&we(o)!=="body"),a=null;const n=q(e).position==="fixed";let l=n?ae(e):e;for(;Y(l)&&!Ce(l);){const o=q(l),d=Kt(l);!d&&o.position==="fixed"&&(a=null),(n?!d&&!a:!d&&o.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ne(l)&&!d&&aa(e,l))?s=s.filter(c=>c!==l):a=o,l=ae(l)}return t.set(e,s),s}function Ho(e){let{element:t,boundary:i,rootBoundary:s,strategy:a}=e;const l=[...i==="clippingAncestors"?nt(t)?[]:qo(t,this._c):[].concat(i),s],o=sa(t,l[0],a);let d=o.top,g=o.right,c=o.bottom,h=o.left;for(let p=1;p<l.length;p++){const m=sa(t,l[p],a);d=ce(m.top,d),g=xe(m.right,g),c=xe(m.bottom,c),h=ce(m.left,h)}return{width:g-h,height:c-d,x:h,y:d}}function Wo(e){const{width:t,height:i}=Js(e);return{width:t,height:i}}function Uo(e,t,i){const s=J(t),a=K(t),n=i==="fixed",l=pe(e,!0,n,t);let o={scrollLeft:0,scrollTop:0};const d=X(0);function g(){d.x=lt(a)}if(s||!s&&!n)if((we(t)!=="body"||Ne(a))&&(o=rt(t)),s){const m=pe(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?ta(a,o):X(0),h=l.left+o.scrollLeft-d.x-c.x,p=l.top+o.scrollTop-d.y-c.y;return{x:h,y:p,width:l.width,height:l.height}}function ti(e){return q(e).position==="static"}function na(e,t){if(!J(e)||q(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return K(e)===i&&(i=i.ownerDocument.body),i}function ra(e,t){const i=O(e);if(nt(e))return i;if(!J(e)){let a=ae(e);for(;a&&!Ce(a);){if(Y(a)&&!ti(a))return a;a=ae(a)}return i}let s=na(e,t);for(;s&&Fo(s)&&ti(s);)s=na(s,t);return s&&Ce(s)&&ti(s)&&!Kt(s)?i:s||zo(e)||i}const Qo=async function(e){const t=this.getOffsetParent||ra,i=this.getDimensions,s=await i(e.floating);return{reference:Uo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Xo(e){return q(e).direction==="rtl"}const ii={convertOffsetParentRelativeRectToViewportRelativeRect:Vo,getDocumentElement:K,getClippingRect:Ho,getOffsetParent:ra,getElementRects:Qo,getClientRects:Go,getDimensions:Wo,getScale:Se,isElement:Y,isRTL:Xo};function la(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ko(e,t){let i=null,s;const a=K(e);function n(){var o;clearTimeout(s),(o=i)==null||o.disconnect(),i=null}function l(o,d){o===void 0&&(o=!1),d===void 0&&(d=1),n();const g=e.getBoundingClientRect(),{left:c,top:h,width:p,height:m}=g;if(o||t(),!p||!m)return;const u=tt(h),b=tt(a.clientWidth-(c+p)),v=tt(a.clientHeight-(h+m)),_=tt(c),f={rootMargin:-u+"px "+-b+"px "+-v+"px "+-_+"px",threshold:ce(0,xe(1,d))||1};let w=!0;function x(C){const k=C[0].intersectionRatio;if(k!==d){if(!w)return l();k?l(!1,k):s=setTimeout(()=>{l(!1,1e-7)},1e3)}k===1&&!la(g,e.getBoundingClientRect())&&l(),w=!1}try{i=new IntersectionObserver(x,{...f,root:a.ownerDocument})}catch{i=new IntersectionObserver(x,f)}i.observe(e)}return l(!0),n}function Zo(e,t,i,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:n=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,g=ei(e),c=a||n?[...g?ze(g):[],...t?ze(t):[]]:[];c.forEach(_=>{a&&_.addEventListener("scroll",i,{passive:!0}),n&&_.addEventListener("resize",i)});const h=g&&o?Ko(g,i):null;let p=-1,m=null;l&&(m=new ResizeObserver(_=>{let[y]=_;y&&y.target===g&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var f;(f=m)==null||f.observe(t)})),i()}),g&&!d&&m.observe(g),t&&m.observe(t));let u,b=d?pe(e):null;d&&v();function v(){const _=pe(e);b&&!la(b,_)&&i(),b=_,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 Jo=Ao,ed=Lo,td=Po,id=To,sd=(e,t,i)=>{const s=new Map,a={platform:ii,...i},n={...a.platform,_c:s};return Io(e,t,{...a,platform:n})};S.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(S.GidsFloatingElementType||(S.GidsFloatingElementType={}));function oa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const ad=/transform|translate|scale|rotate|perspective|filter/,nd=/paint|layout|strict|content/,ue=e=>!!e&&e!=="none";let si;function rd(e){const t=(i=e,typeof window<"u"&&(i instanceof Element||i instanceof oa(i).Element)?oa(s=e).getComputedStyle(s):e);var i,s;return ue(t.transform)||ue(t.translate)||ue(t.scale)||ue(t.rotate)||ue(t.perspective)||(si==null&&(si=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!si&&(ue(t.backdropFilter)||ue(t.filter)))||ad.test(t.willChange||"")||nd.test(t.contain||"")}function ld(e){return(function(t){for(let i=t;i;i=ai(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=ai(t);i;i=ai(i)){if(!(i instanceof Element))continue;const s=getComputedStyle(i);if(s.display!=="contents"&&(s.position!=="static"||rd(s)||i.tagName==="BODY"))return i}return null})(e)}function ai(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}let da=(ee=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=Zo(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=[Jo(this.offset)],i=td({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),s=this.config.elementType===S.GidsFloatingElementType.POPOVER,a=ed({padding:this.offset,mainAxis:this.config.elementType===S.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(id({element:this.arrowEl,padding:this.offset})),sd(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...ii,getOffsetParent:n=>ii.getOffsetParent(n,ld)}}).then((({x:n,y:l,middlewareData:o,placement:d})=>{if(s){const p=d.startsWith("left")||d.startsWith("right"),m=d.startsWith("top")||d.startsWith("bottom"),u=this.isAnchorInViewport(),b=!!m||(p?u:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=d,Object.assign(this.floatingElement.style,{left:`${n}px`,top:`${l}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(o.arrow&&this.arrowEl){const p=this.arrowEl.offsetWidth,{x:m,y:u}=o.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 l=n.style.zIndex||(window.getComputedStyle?.(n).zIndex??""),o=Number.parseInt(l,10),d=window.getComputedStyle?.(n).position??"";(l===""||l==="auto"||Number.isNaN(o)||o<a)&&(n.style.zIndex=`${a}`,d!==""&&d!=="static"||(n.style.position="relative"))})),{contentZIndex:a,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),ee.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=ee.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),ee.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}},ee.currentFloatingElements=new Map,ee);const ca=P(class extends T{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 da(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:S.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=ga(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const n=ga(a);t.push(...n)})),this.focusableElements=t.sort(((a,n)=>{const l=a.compareDocumentPosition(n),o=!!(l&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(l&Node.DOCUMENT_POSITION_PRECEDING);return o?-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(oe,{key:"d46aad4680cea0578107034ca4945659910c6dd8"},r("slot",{key:"71b5b313244ca9be78ca0e76e0056a8d6f201f89",name:"anchor"}),r("div",{key:"9be3b9f604bf8a15795ff2f6cbbc439936734795",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},r("span",{key:"48f4b97c8c0f2df0bea15c067ebf7cc28f98e98c",id:"arrow"}),r("div",{key:"5547088b9b186ab816e4d6a9e9a3c6bfdde41fd2"},r("slot",{key:"460c256bddf41d061352917b129501fdd3f383a2"}))))}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}]}]),ha=e=>{if(!(e instanceof T)||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}},ga=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>ha(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];ha(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function od(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,ca))}))}od();const dd=ca,cd=Ps,{getGidsScrimClassNames:pa}=An,ua=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=pa(e)}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=pa(this.extraClasses)}render(){return r("div",{key:"43ae2df4c05e5ce29bb2cd6755ef4472e9a6e078",class:this.activeClasses,part:"root"},r("slot",{key:"2610048a1d440e95632575b232ca7d923f66cea5"}))}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 hd(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,ua))}))}hd();const gd=ua,ma=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=qt(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 pd(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,ma))}))}pd();const ud=ma,{formatCharCount:md}=Ri,{inputToGidsFieldStatus:fd}=wn,fa=P(class extends T{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Ie(this,"gidsTextFieldClear"),this.#t=Ue(),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((()=>{Di(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??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return r("gids-field",{key:"67703f015d57768e530aff47b206ff6716f35332",disabled:this.disabled,count:md(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:fd(this.status)},r(Bt,{key:"182405668848cdfe3960eef04a7862862fb42117",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:"f625d9ca7001879c392f55e806e7f080d7bb4185",ref:a=>this.#e=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:"4283d3712a98973ccb96d57b3d6f9fc42a0ff04e",name:"leadingIcon"}),r("slot",{key:"c61b5a4a62ecf2002426d167155fd8687f84b99f",name:"leadingAccessory"}),s&&r(Bs,{key:"61d1a7b396fa1a8bacce9ade90a36de46886b3c0",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),r("slot",{key:"b1f35a7a5e7ffc719d86741033fdfc25ee20debc",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 bd(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,fa);break;case"gids-field":customElements.get(e)||Je();break;case"gids-input":customElements.get(e)||Le()}}))}bd();const vd=fa,yd=ts,ba=P(class extends T{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=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new da(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:S.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(oe,{key:"87da0ed1ded01cd47b54a7445df2ec4a1ce621b2"},r("slot",{key:"31b07131bcd26021340d37cadc8aa01f59ad0262"}),r("span",{key:"03fa6ca6e6f3d9bfa2b319254a22a817091fa9b5",id:"tooltip",part:"tooltip",role:"tooltip"},r("span",{key:"7affbdf276e42c78a4829b5c47854786b97af3bd",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 _d(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,ba))}))}_d();const xd=ba;function ni(e,t){dr(e,t)}const wd=e=>{ni(e)},Cd=e=>{ni(e)},Sd=({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 l=n.vtag;if(l!==t&&l!==i)throw Error(`HTML/JSX Render Error: <${s}> only accepts <${i}> as direct children. Received element tag: "${typeof l=="function"?l.name:l}".`)}}}};S.GidsActionBar=Or,S.GidsActivityGauge=jr,S.GidsBarChart=Yr,S.GidsCalendar=dl,S.GidsCalendarHeaderPanel=Zr,S.GidsCalendarMonthList=Jr,S.GidsCalendarYearList=el,S.GidsChart=xl,S.GidsChartLegend=hl,S.GidsChartLegendItem=cl,S.GidsChevronButton=Cl,S.GidsDot=Sl,S.GidsDropdown=Ll,S.GidsDropdownField=Ml,S.GidsDropdownPicker=Al,S.GidsField=Fl,S.GidsFilter=$l,S.GidsIcon=Nl,S.GidsInput=zl,S.GidsLevelGauge=Ol,S.GidsLineChart=Rl,S.GidsNotification=Gl,S.GidsOverflowContainer=Yl,S.GidsOverlayProvider=eo,S.GidsPasswordField=mo,S.GidsPieChart=fo,S.GidsPopover=dd,S.GidsProgressCircle=cd,S.GidsScrim=gd,S.GidsSnackbar=ud,S.GidsTextField=vd,S.GidsToggleButton=yd,S.GidsTooltip=xd,S.getAssetPath=Ca,S.getConstructedGidsStylesheet=j,S.refreshConstructedGidsStylesheet=$t,S.render=qa,S.setAssetPath=Sa,S.setGidsAssetFilePaths=wd,S.setGidsAssetPaths=ni,S.setGidsDefaultAssetDirPath=Cd,S.setNonce=Ba,S.setPlatformOptions=Ya,S.testHtmlChildrenValidity=Sd,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));