@ganpatiinfo/gids-core-web 9.0.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/css/index.css +1445 -1
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-activity-gauge.d.ts +11 -0
  4. package/dist/gids-activity-gauge.js +1 -0
  5. package/dist/gids-bar-chart.d.ts +11 -0
  6. package/dist/gids-bar-chart.js +1 -0
  7. package/dist/gids-calendar-header-panel.d.ts +11 -0
  8. package/dist/gids-calendar-header-panel.js +1 -0
  9. package/dist/gids-calendar-month-list.d.ts +11 -0
  10. package/dist/gids-calendar-month-list.js +1 -0
  11. package/dist/gids-calendar-year-list.d.ts +11 -0
  12. package/dist/gids-calendar-year-list.js +1 -0
  13. package/dist/gids-calendar.d.ts +11 -0
  14. package/dist/gids-calendar.js +1 -0
  15. package/dist/gids-chart-legend-item.d.ts +11 -0
  16. package/dist/gids-chart-legend-item.js +1 -0
  17. package/dist/gids-chart-legend.d.ts +11 -0
  18. package/dist/gids-chart-legend.js +1 -0
  19. package/dist/gids-chart.d.ts +11 -0
  20. package/dist/gids-chart.js +1 -0
  21. package/dist/gids-chevron-button.d.ts +11 -0
  22. package/dist/gids-chevron-button.js +1 -0
  23. package/dist/gids-dot.d.ts +11 -0
  24. package/dist/gids-dot.js +1 -0
  25. package/dist/gids-dropdown-field.d.ts +11 -0
  26. package/dist/gids-dropdown-field.js +1 -0
  27. package/dist/gids-dropdown-picker.d.ts +11 -0
  28. package/dist/gids-dropdown-picker.js +1 -0
  29. package/dist/gids-dropdown.d.ts +11 -0
  30. package/dist/gids-dropdown.js +1 -0
  31. package/dist/gids-field.d.ts +1 -1
  32. package/dist/gids-field.js +1 -1
  33. package/dist/gids-icon.d.ts +1 -1
  34. package/dist/gids-icon.js +1 -1
  35. package/dist/gids-input.d.ts +1 -1
  36. package/dist/gids-input.js +1 -1
  37. package/dist/gids-level-gauge.d.ts +11 -0
  38. package/dist/gids-level-gauge.js +1 -0
  39. package/dist/gids-line-chart.d.ts +11 -0
  40. package/dist/gids-line-chart.js +1 -0
  41. package/dist/gids-notification.d.ts +1 -1
  42. package/dist/gids-notification.js +1 -1
  43. package/dist/gids-overflow-container.d.ts +1 -1
  44. package/dist/gids-overflow-container.js +1 -1
  45. package/dist/gids-overlay-provider.d.ts +1 -1
  46. package/dist/gids-overlay-provider.js +1 -1
  47. package/dist/gids-password-field.d.ts +1 -1
  48. package/dist/gids-password-field.js +1 -1
  49. package/dist/gids-pie-chart.d.ts +11 -0
  50. package/dist/gids-pie-chart.js +1 -0
  51. package/dist/gids-popover.d.ts +1 -1
  52. package/dist/gids-popover.js +1 -1
  53. package/dist/gids-progress-circle.d.ts +11 -0
  54. package/dist/gids-progress-circle.js +1 -0
  55. package/dist/gids-scrim.d.ts +1 -1
  56. package/dist/gids-scrim.js +1 -1
  57. package/dist/gids-snackbar.d.ts +1 -1
  58. package/dist/gids-snackbar.js +1 -1
  59. package/dist/gids-text-field.d.ts +1 -1
  60. package/dist/gids-text-field.js +1 -1
  61. package/dist/gids-toggle-button.d.ts +1 -1
  62. package/dist/gids-toggle-button.js +1 -1
  63. package/dist/gids-tooltip.d.ts +1 -1
  64. package/dist/gids-tooltip.js +1 -1
  65. package/dist/index.js +1 -1
  66. package/dist/p-9_mrQ7ac.js +1 -0
  67. package/dist/p-B81J5HCC.js +1 -0
  68. package/dist/p-BFHWXEeg.js +1 -0
  69. package/dist/p-B_HaXpJZ.js +1 -0
  70. package/dist/p-BaO-kEWS.js +1 -0
  71. package/dist/p-BiPAgxAQ.js +1 -0
  72. package/dist/p-Bmb-HiXg.js +1 -0
  73. package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
  74. package/dist/{p-iCAclJND.js → p-BvYnawkJ.js} +1 -1
  75. package/dist/p-CIP0xyhD.js +1 -0
  76. package/dist/p-CJzporPT.js +1 -0
  77. package/dist/p-CPSHPtGE.js +1 -0
  78. package/dist/p-CRngHsR7.js +1 -0
  79. package/dist/p-Ct3Ixgvf.js +1 -0
  80. package/dist/p-D93TNeOt.js +1 -0
  81. package/dist/p-DKsrt7dx.js +1 -0
  82. package/dist/p-DZWWuJac.js +1 -0
  83. package/dist/p-D_wcwB7E.js +1 -0
  84. package/dist/p-Dehss-X0.js +1 -0
  85. package/dist/{p-DvoHLz_5.js → p-DfFqFdmS.js} +1 -1
  86. package/dist/p-KxRqlvSh.js +1 -0
  87. package/dist/p-MgTlrSP_.js +1 -0
  88. package/dist/p-h6alWGT8.js +1 -0
  89. package/dist/p-quZYWCxU.js +1 -0
  90. package/dist/p-tyIgTtUC.js +1 -0
  91. package/dist/p-uqSjmNkw.js +1 -0
  92. package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
  93. package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
  94. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
  95. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
  96. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
  97. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
  98. package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
  99. package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
  100. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
  101. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
  102. package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
  103. package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
  104. package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
  105. package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
  106. package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
  107. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
  108. package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
  109. package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
  110. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
  111. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
  112. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
  113. package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
  114. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
  115. package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
  116. package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
  117. package/dist/types/components.d.ts +1352 -71
  118. package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
  119. package/dist-bundled/es/gids-activity-gauge.js +6 -0
  120. package/dist-bundled/es/gids-bar-chart.js +6 -0
  121. package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
  122. package/dist-bundled/es/gids-calendar-month-list.js +6 -0
  123. package/dist-bundled/es/gids-calendar-year-list.js +6 -0
  124. package/dist-bundled/es/gids-calendar.js +153 -0
  125. package/dist-bundled/es/gids-chart-legend-item.js +6 -0
  126. package/dist-bundled/es/gids-chart-legend.js +6 -0
  127. package/dist-bundled/es/gids-chart.js +108 -0
  128. package/dist-bundled/es/gids-chevron-button.js +56 -0
  129. package/dist-bundled/es/gids-dot.js +6 -0
  130. package/dist-bundled/es/gids-dropdown-field.js +88 -0
  131. package/dist-bundled/es/gids-dropdown-picker.js +6 -0
  132. package/dist-bundled/es/gids-dropdown.js +6 -0
  133. package/dist-bundled/es/gids-field.js +1 -1
  134. package/dist-bundled/es/gids-icon.js +4 -30
  135. package/dist-bundled/es/gids-input.js +4 -4
  136. package/dist-bundled/es/gids-level-gauge.js +6 -0
  137. package/dist-bundled/es/gids-line-chart.js +6 -0
  138. package/dist-bundled/es/gids-notification.js +1 -1
  139. package/dist-bundled/es/gids-overflow-container.js +6 -6
  140. package/dist-bundled/es/gids-overlay-provider.js +17 -17
  141. package/dist-bundled/es/gids-password-field.js +29 -28
  142. package/dist-bundled/es/gids-pie-chart.js +6 -0
  143. package/dist-bundled/es/gids-popover.js +7 -7
  144. package/dist-bundled/es/gids-progress-circle.js +6 -0
  145. package/dist-bundled/es/gids-scrim.js +8 -8
  146. package/dist-bundled/es/gids-snackbar.js +1 -1
  147. package/dist-bundled/es/gids-text-field.js +16 -15
  148. package/dist-bundled/es/gids-toggle-button.js +8 -8
  149. package/dist-bundled/es/gids-tooltip.js +5 -5
  150. package/dist-bundled/es/index.js +1 -1
  151. package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
  152. package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
  153. package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
  154. package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
  155. package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
  156. package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
  157. package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
  158. package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-BnL97lOW-BO0p4EdC.js} +9 -9
  159. package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-BvYnawkJ-DohV9UNG.js} +3 -3
  160. package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
  161. package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
  162. package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
  163. package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
  164. package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
  165. package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
  166. package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
  167. package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
  168. package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
  169. package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
  170. package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
  171. package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-KxRqlvSh-JOFDmT0B.js} +5 -5
  172. package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
  173. package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
  174. package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
  175. package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
  176. package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
  177. package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
  178. package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
  179. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
  180. package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
  181. package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
  182. package/dist-bundled/umd/gids-calendar.umd.js +5 -0
  183. package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
  184. package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
  185. package/dist-bundled/umd/gids-chart.umd.js +13 -0
  186. package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
  187. package/dist-bundled/umd/gids-dot.umd.js +5 -0
  188. package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
  189. package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
  190. package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
  191. package/dist-bundled/umd/gids-field.umd.js +2 -2
  192. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  193. package/dist-bundled/umd/gids-input.umd.js +2 -2
  194. package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
  195. package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
  196. package/dist-bundled/umd/gids-notification.umd.js +2 -2
  197. package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
  198. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  199. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  200. package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
  201. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  202. package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
  203. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  204. package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
  205. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  206. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  207. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  208. package/dist-bundled/umd/index.umd.js +2 -2
  209. package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
  210. package/package.json +148 -4
  211. package/dist/p-CFw4_-5A.js +0 -1
  212. package/dist/p-DijVkS9b.js +0 -1
  213. package/dist/p-DybsMR13.js +0 -1
  214. package/dist/p-ibikYq-w.js +0 -1
  215. package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
  216. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
@@ -1,5 +1,5 @@
1
- (function(R,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(R=typeof globalThis<"u"?globalThis:R||self,L(R.gidsCoreWebGidsScrim={}))})(this,(function(R){"use strict";function L(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var W,ze=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],i=L(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(a){i.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},he=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),G=new Map,pe="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},Ge=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ee=!1,me=[],ye=[],qe=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&O.i?se(te):O.raf(te))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},te=()=>{ge(me),ge(ye),(ee=me.length>0)&&O.raf(te)},se=e=>Promise.resolve(void 0).then(e),Ue=qe(ye);function Ie(){const e=this.attachShadow({mode:"open"});W===void 0&&(W=null),W&&(X?e.adoptedStyleSheets.push(W):e.adoptedStyleSheets=[...e.adoptedStyleSheets,W])}var Se=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Ye(s,F(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&Se(s)}};function oe(e,t,o){let s,n=0,l=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||F(s)===o)&&(l.push(s),o!==void 0))return l;l=[...l,...oe(s.childNodes,t,o)]}return l}var Ye=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)F(n)!==t||!o&&n["s-sr"]||s.push(n);return s},ve=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",F=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,P,T=new WeakMap,be=e=>"sc-"+e.p,re=e=>(e=typeof e)=="object"||e==="function",q=(e,t,...o)=>{let s=null,n=null,l=null,i=!1,a=!1;const r=[],d=c=>{for(let h=0;h<c.length;h++)s=c[h],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!re(s))&&(s=String(s)),i&&a?r[r.length-1].h+=s:r.push(i?U(null,s):s),a=i)};if(d(o),t){t.key&&(n=t.key),t.name&&(l=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((h=>c[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,Je);const f=U(e,null);return f.v=t,r.length>0&&(f.m=r),f.$=n,f.j=l,f},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ze={},Je={forEach:(e,t)=>e.map(we).forEach(t),map:(e,t)=>e.map(we).map(t).map(Ke)},we=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ke=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),q(e.vtag,o,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ne=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const l of e[n])if(typeof l=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return s},_e=(e,t)=>e==null||re(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,Qe=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},Oe=(e,t,o,s,n,l)=>{if(o===s)return;let i=he(e,t),a=t.toLowerCase();if(t==="class"){const r=e.classList,d=Ce(o);let f=Ce(s);r.remove(...d.filter((c=>c&&!f.includes(c)))),r.add(...f.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const r in o)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)o&&s[r]===o[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&tt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const f=A(e);if(f&&f.o&&f.o.t){const c=f.o.t[r];c&&c[1]&&(d=c[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=re(s);if((i||r&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const f=s??"";t==="list"?i=!1:o!=null&&e[t]===f||(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(pe,t):e.removeAttribute(t)):(!i||4&l||n)&&!r&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(pe,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):he(w,a)?a.slice(2):a[2]+t.slice(3),o||s){const r=t.endsWith(ke);t=t.replace(et,""),o&&O.rel(e,t,o,r),s&&O.ael(e,t,s,r)}}},Xe=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Xe):[]),ke="Capture",et=new RegExp(ke+"$"),ie=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const i of $e(Object.keys(n)))i in l||Oe(s,i,n[i],void 0,o,t.i);for(const i of $e(Object.keys(l)))Oe(s,i,n[i],l[i],o,t.i)};function $e(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,I=!1,Y=!1,C=!1,ae=[],ce=[],Z=(e,t,o)=>{var s;const n=t.m[o];let l,i,a,r=0;if(B||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=w.document.createTextNode(n.h);else if(1&n.i)l=n.S=w.document.createTextNode(""),ie(null,n,C);else{if(C||(C=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=w.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&n.i?"slot-fb":n.O),C&&n.O==="foreignObject"&&(C=!1),ie(null,n,C),n.m){const d=n.O==="template"?l.content:l;for(r=0;r<n.m.length;++r)i=Z(e,n,r),i&&d.appendChild(i)}n.O==="svg"?C=!1:l.tagName==="foreignObject"&&(C=!0)}return l["s-hn"]=P,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=le,l["s-sn"]=n.j||"",l["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const f=c=>(function(h){const y=[],u=this["s-sn"];h?.flatten&&console.error(`
1
+ (function(R,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(R=typeof globalThis<"u"?globalThis:R||self,L(R.gidsCoreWebGidsScrim={}))})(this,(function(R){"use strict";function L(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var F,Ue=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],i=L(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(c){i.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},he=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),z=new Map,pe="http://www.w3.org/1999/xlink",ze=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],N=typeof window<"u"?window:{},Ge=N.HTMLElement||class{},_={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!N.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!N.document&&Object.getOwnPropertyDescriptor(N.document.adoptedStyleSheets,"length").writable,ee=!1,me=[],ye=[],qe=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&_.i?se(te):_.raf(te))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},te=()=>{ge(me),ge(ye),(ee=me.length>0)&&_.raf(te)},se=e=>Promise.resolve(void 0).then(e),Ie=qe(ye);function Ye(){const e=this.attachShadow({mode:"open"});F===void 0&&(F=null),F&&(X?e.adoptedStyleSheets.push(F):e.adoptedStyleSheets=[...e.adoptedStyleSheets,F])}var Se=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Ze(s,W(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&Se(s)}};function oe(e,t,o){let s,n=0,l=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||W(s)===o)&&(l.push(s),o!==void 0))return l;l=[...l,...oe(s.childNodes,t,o)]}return l}var Ze=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)W(n)!==t||!o&&n["s-sr"]||s.push(n);return s},ve=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",W=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,P,T=new WeakMap,be=e=>"sc-"+e.p,re=e=>(e=typeof e)=="object"||e==="function",G=(e,t,...o)=>{let s=null,n=null,l=null,i=!1,c=!1;const r=[],d=a=>{for(let f=0;f<a.length;f++)s=a[f],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!re(s))&&(s=String(s)),i&&c?r[r.length-1].h+=s:r.push(i?q(null,s):s),c=i)};if(d(o),t){t.key&&(n=t.key),t.name&&(l=t.name);{const a=t.className||t.class;a&&(t.class=typeof a!="object"?a:Object.keys(a).filter((f=>a[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,Ke);const u=q(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=n,u.j=l,u},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Je={},Ke={forEach:(e,t)=>e.map(we).forEach(t),map:(e,t)=>e.map(we).map(t).map(Qe)},we=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Qe=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),G(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ne=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const l of e[n])if(typeof l=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return s},Oe=(e,t,o)=>e==null||re(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Xe=(e,t,o)=>{const s=_.ce(t,o);return e.dispatchEvent(s),s},_e=(e,t,o,s,n,l)=>{if(o===s)return;let i=he(e,t),c=t.toLowerCase();if(t==="class"){const r=e.classList,d=Ce(o);let u=Ce(s);r.remove(...d.filter((a=>a&&!u.includes(a)))),r.add(...u.filter((a=>a&&!d.includes(a))))}else if(t==="style"){for(const r in o)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)o&&s[r]===o[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&st(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=x(e);if(u&&u.o&&u.o.t){const a=u.o.t[r];a&&a[1]&&(d=a[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=re(s);if((i||r&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?i=!1:o!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let d=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(pe,t):e.removeAttribute(t)):(!i||4&l||n)&&!r&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(pe,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):he(N,c)?c.slice(2):c[2]+t.slice(3),o||s){const r=t.endsWith(ke);t=t.replace(tt,""),o&&_.rel(e,t,o,r),s&&_.ael(e,t,s,r)}}},et=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(et):[]),ke="Capture",tt=new RegExp(ke+"$"),ie=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const i of je(Object.keys(n)))i in l||_e(s,i,n[i],void 0,o,t.i);for(const i of je(Object.keys(l)))_e(s,i,n[i],l[i],o,t.i)};function je(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var V=!1,I=!1,Y=!1,C=!1,ce=[],ae=[],Z=(e,t,o)=>{var s;const n=t.m[o];let l,i,c,r=0;if(V||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=N.document.createTextNode(n.h);else if(1&n.i)l=n.S=N.document.createTextNode(""),ie(null,n,C);else{if(C||(C=n.O==="svg"),!N.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=N.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!V&&2&n.i?"slot-fb":n.O),C&&n.O==="foreignObject"&&(C=!1),ie(null,n,C),n.m){const d=n.O==="template"?l.content:l;for(r=0;r<n.m.length;++r)i=Z(e,n,r),i&&d.appendChild(i)}n.O==="svg"?C=!1:l.tagName==="foreignObject"&&(C=!0)}return l["s-hn"]=P,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=le,l["s-sn"]=n.j||"",l["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=a=>(function(f){const m=[],h=this["s-sn"];f?.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 b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(v=>{const g=[];for(let m=0;m<v.length;m++){const p=v[m]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((v=>{u===F(v)&&y.push(v)})),c?y.filter((v=>v.nodeType===1)):y}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(l),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),l},je=e=>{O.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(j(V(n).parentNode,n,V(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},xe=(e,t,o,s,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,j(a,i,V(t))))},Ee=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,f,c,h,y=!1)=>{let u,b,v=0,g=0,m=0,p=0,_=f.length-1,S=f[0],N=f[_],$=h.length-1,k=h[0],x=h[$];const Ve=c.O==="template"?d.content:d;for(;v<=_&&g<=$;)if(S==null)S=f[++v];else if(N==null)N=f[--_];else if(k==null)k=h[++g];else if(x==null)x=h[--$];else if(K(S,k,y))H(S,k,y),S=f[++v],k=h[++g];else if(K(N,x,y))H(N,x,y),N=f[--_],x=h[--$];else if(K(S,x,y))S.O!=="slot"&&x.O!=="slot"||J(S.S.parentNode,!1),H(S,x,y),j(Ve,S.S,N.S.nextSibling),S=f[++v],x=h[--$];else if(K(N,k,y))S.O!=="slot"&&x.O!=="slot"||J(N.S.parentNode,!1),H(N,k,y),j(Ve,N.S,S.S),N=f[--_],k=h[++g];else{for(m=-1,p=v;p<=_;++p)if(f[p]&&f[p].$!==null&&f[p].$===k.$){m=p;break}m>=0?(b=f[m],b.O!==k.O?u=Z(f&&f[g],c,m):(H(b,k,y),f[m]=void 0,u=b.S),k=h[++g]):(u=Z(f&&f[g],c,g),k=h[++g]),u&&j(V(S.S).parentNode,u,V(S.S))}v>_?xe(d,h[$+1]==null?null:h[$+1].S,c,h,g,$):g>$&&Ee(f,v,_)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),xe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Ee(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},E=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ve(t,i)){let a=E.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],E.push({N:l,k:t})),t["s-sr"]&&E.map((r=>{ve(r.k,t["s-sn"])&&(a=E.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else E.some((a=>a.k===t))||E.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},tt=(e,t)=>{ce.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=F(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},st=(e,t,o=!1)=>{var s,n,l,i,a;const r=e.$hostElement$,d=e.o,f=e.M||U(null,null);var c;const h=(c=t)&&c.O===Ze?t:q(null,null,t);if(P=r.tagName,d._&&(h.v=h.v||{},d._.forEach((([y,u])=>{h.v[u]=r[y]}))),o&&h.v)for(const y of Object.keys(h.v))r.hasAttribute(y)&&!["key","ref","style","class"].includes(y)&&(h.v[y]=r[y]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=r.shadowRoot||r,B=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,H(f,h,o),O.i|=1,Y){Ae(h.S);for(const y of E){const u=y.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,j(u.parentNode,u["s-ol"]=b,u,o)}}for(const y of E){const u=y.k,b=y.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const v=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===u["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}m=m.previousSibling}}if((!g&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==g)&&u!==g){if(j(v,u,g,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,j(u.parentNode,m,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(i=u["s-ih"])!=null&&i)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(I&&Se(h.S),O.i&=-2,E.length=0,!B&&!(1&d.i)&&r["s-cr"]){const y=h.S.__childNodes||h.S.childNodes;for(const u of y)if(u["s-hn"]!==P&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],j(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}le=void 0,ae.forEach((y=>y())),ae.length=0,ce.forEach((y=>y())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.C);const o=()=>ot(e,t);if(!t)return Ue(o);queueMicrotask((()=>{o()}))},ot=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>z(s,"componentWillRender",void 0,o))),Pe(n,(()=>lt(e,s,t)))},Pe=(e,t)=>nt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),nt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",lt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,f=((c,h)=>{var y,u,b;const v=be(h),g=G.get(v);if(!w.document)return v;if(c=c.nodeType===11?c:w.document,g)if(typeof g=="string"){let m,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(v)){m=w.document.createElement("style"),m.textContent=g;const _=(y=O.L)!=null?y:(function(){var S,N,$;return($=(N=(S=w.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?$:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&h.i))if(c.nodeName==="HEAD"){const S=c.querySelectorAll("link[rel=preconnect]"),N=S.length>0?S[S.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const S=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),X?c.adoptedStyleSheets.unshift(S):c.adoptedStyleSheets=[S,...c.adoptedStyleSheets]}else{const S=c.querySelector("style");S?S.textContent=g+S.textContent:c.prepend(m)}else c.append(m);1&h.i&&c.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(v)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(g.constructor===p.CSSStyleSheet)_=g;else{_=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)_.insertRule(g.cssRules[S].cssText,S)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],m.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),rt(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>it(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},rt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,st(e,t,s)}catch(n){M(n,e.$hostElement$)}return null},it=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||at()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},at=()=>{se((()=>Qe(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){M(n,s)}},ct=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;o=_e(o,s.t[t][0]);const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((c=>{try{const[[h,y]]=Object.entries(c);(128&a||1&y)&&(r?r[h](o,i,t):n.T.push((()=>{n.D[h](o,i,t)})))}catch(h){M(h,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},dt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ne(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([i,[a]])=>{if(31&a||32&a){const{get:r,set:d}=L(n,i)||{};r&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return r?r.apply(this):(f=i,A(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(f){const c=A(this);if(c){if(d)return(32&a?this[i]:c.$hostElement$[i])===void 0&&c.l.get(i)&&(f=c.l.get(i)),d.apply(this,[_e(f,a)]),void Le(this,i,f=32&a?this[i]:c.$hostElement$[i],t);Le(this,i,f,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(a,r,d){O.jmp((()=>{var f;const c=i.get(a),h=A(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const g=h?.i;if(h&&g&&!(8&g)&&d!==r){const m=this,p=(f=t.R)==null?void 0:f[a];p?.forEach((_=>{const[[S,N]]=Object.entries(_);m[S]!=null&&(128&g||1&N)&&m[S].call(m,d,r,a)}))}return}const y=l.find((([g])=>g===c)),u=y&&4&y[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const v=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||v.get&&!v.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...l.filter((([a,r])=>31&r[0])).map((([a,r])=>{var d;const f=r[1]||a;return i.set(f,a),512&r[0]&&((d=t._)==null||d.push([a,f])),f}))]))}}return e},ut=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ne(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&ze(l,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=A(l);if(!i)return;const a=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.C=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const f=l[r];delete l[r],l[r]=f}})),(async(r,d,f)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=be(f);G.has(b)||((v,g,m)=>{let p=G.get(v);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,G.set(v,p)})(b,u,!!(1&f.i))}const h=d.C,y=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(y):y()}catch(h){M(h,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(l,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{1&O.i||A(l),T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ie.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),dt(e,o)}catch(s){return M(s),e}};function gt(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Me=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const a=s.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),D.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ft=()=>(Me||(Me=He()),D);function De(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=De(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ht(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const pt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>ht("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:We}=pt,Fe=ut(class extends Ge{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=We(e)}connectedCallback(){const e=ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=We(this.extraClasses)}render(){return q("div",{key:"da4b587303359a6075411a1843e03eff6eed68ce",class:this.activeClasses,part:"root"},q("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 Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,Fe))}))}Be();const mt=Fe,yt=Be;R.GidsScrim=mt,R.defineCustomElement=yt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(v=>{const g=[];for(let y=0;y<v.length;y++){const p=v[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((v=>{h===W(v)&&m.push(v)})),a?m.filter((v=>v.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Ee(e.S)),l},Ee=e=>{_.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,Y=!0)}_.i&=-2},J=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}_.i&=-2},$e=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===P&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,E(c,i,B(t))))},xe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ee(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,a,f,m=!1)=>{let h,b,v=0,g=0,y=0,p=0,O=u.length-1,S=u[0],w=u[O],k=f.length-1,j=f[0],$=f[k];const Be=a.O==="template"?d.content:d;for(;v<=O&&g<=k;)if(S==null)S=u[++v];else if(w==null)w=u[--O];else if(j==null)j=f[++g];else if($==null)$=f[--k];else if(K(S,j,m))D(S,j,m),S=u[++v],j=f[++g];else if(K(w,$,m))D(w,$,m),w=u[--O],$=f[--k];else if(K(S,$,m))S.O!=="slot"&&$.O!=="slot"||J(S.S.parentNode,!1),D(S,$,m),E(Be,S.S,w.S.nextSibling),S=u[++v],$=f[--k];else if(K(w,j,m))S.O!=="slot"&&$.O!=="slot"||J(w.S.parentNode,!1),D(w,j,m),E(Be,w.S,S.S),w=u[--O],j=f[++g];else{for(y=-1,p=v;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===j.$){y=p;break}y>=0?(b=u[y],b.O!==j.O?h=Z(u&&u[g],a,y):(D(b,j,m),u[y]=void 0,h=b.S),j=f[++g]):(h=Z(u&&u[g],a,g),j=f[++g]),h&&E(B(S.S).parentNode,h,B(S.S))}v>O?$e(d,f[k+1]==null?null:f[k+1].S,a,f,g,k):g>k&&xe(u,v,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),$e(s,null,t,l,0,l.length-1)):!o&&n!==null&&xe(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ve(t,i)){let c=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{ve(r.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!r.N&&(r.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},st=(e,t)=>{ae.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=W(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ot=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,d=e.o,u=e.M||q(null,null);var a;const f=(a=t)&&a.O===Je?t:G(null,null,t);if(P=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,V=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,D(u,f,o),_.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&N.document){const b=N.document.createTextNode("");b["s-nr"]=h,E(h.parentNode,h["s-ol"]=b,h,o)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),b){const v=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&v!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(E(v,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=N.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,E(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&Se(f.S),_.i&=-2,A.length=0,!V&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==P&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const b=N.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],E(h.parentNode,b,h,o),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((m=>m())),ce.length=0,ae.forEach((m=>m())),ae.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const o=()=>nt(e,t);if(!t)return Ie(o);queueMicrotask((()=>{o()}))},nt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=U(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>U(s,"componentWillRender",void 0,o))),Pe(n,(()=>rt(e,s,t)))},Pe=(e,t)=>lt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),lt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",rt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,d=c.i,u=((a,f)=>{var m,h,b;const v=be(f),g=z.get(v);if(!N.document)return v;if(a=a.nodeType===11?a:N.document,g)if(typeof g=="string"){let y,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(v)){y=N.document.createElement("style"),y.textContent=g;const O=(m=_._)!=null?m:(function(){var S,w,k;return(k=(w=(S=N.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?k:void 0})();if(O!=null&&y.setAttribute("nonce",O),!(1&f.i))if(a.nodeName==="HEAD"){const S=a.querySelectorAll("link[rel=preconnect]"),w=S.length>0?S[S.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,w?.parentNode===a?w:null)}else if("host"in a)if(Q){const S=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),X?a.adoptedStyleSheets.unshift(S):a.adoptedStyleSheets=[S,...a.adoptedStyleSheets]}else{const S=a.querySelector("style");S?S.textContent=g+S.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let y=T.get(a);if(y||T.set(a,y=new Set),!y.has(v)){const p=(b=a.defaultView)!=null?b:a.ownerDocument.defaultView;let O;if(g.constructor===p.CSSStyleSheet)O=g;else{O=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)O.insertRule(g.cssRules[S].cssText,S)}X?a.adoptedStyleSheets.push(O):a.adoptedStyleSheets=[...a.adoptedStyleSheets,O],y.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),it(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>ct(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},it=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ot(e,t,s)}catch(n){M(n,e.$hostElement$)}return null},ct=e=>{const t=e.$hostElement$,o=t,s=e.R;U(o,"componentDidRender",void 0,t),64&e.i?U(o,"componentDidUpdate",void 0,t):(e.i|=64,dt(t),U(o,"componentDidLoad",void 0,t),e.L(t),s||at()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},at=()=>{se((()=>Xe(N,"appload",{detail:{namespace:"gids-core-web"}})))},U=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){M(n,s)}},dt=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=x(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Oe(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((a=>{try{const[[f,m]]=Object.entries(a);(128&c||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){M(f,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||de(n,!1)}}},ut=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&ze.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),a=this;a?typeof c=="function"&&c.call(a,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ne(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([c,[r]])=>{if(31&r||32&r){const{get:d,set:u}=L(l,c)||{};d&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return d?d.apply(this):(a=c,x(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const f=x(this);if(f){if(u)return(32&r?this[c]:f.$hostElement$[c])===void 0&&f.l.get(c)&&(a=f.l.get(c)),u.apply(this,[Oe(a,r,!!(64&t.i))]),void Le(this,c,a=32&r?this[c]:f.$hostElement$[c],t);Le(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var a;const f=c.get(r),m=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,O=(a=t.F)==null?void 0:a[r];O?.forEach((S=>{const[[w,k]]=Object.entries(S);p[w]!=null&&(128&y||1&k)&&p[w].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],v=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(l,f);v||u==this[f]||g.get&&!g.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const a=d[1]||r;return c.set(a,r),512&d[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},ft=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.F=Ne(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,W:new Map};c.H=new Promise((d=>c.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&Ue(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=x(l);if(!i)return;const c=i.o;if(1&i.i)i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!N.document)return;const d=r["s-cr"]=N.document.createComment("");d["s-cn"]=!0,E(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const b=be(u);z.has(b)||((v,g,y)=>{let p=z.get(v);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,z.set(v,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){M(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{1&_.i||x(l),T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ye.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),ut(e,o,3)}catch(s){return M(s),e}};function St(e){return e}const H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Me=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{De()})):void 0,De=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),H.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ht=()=>(Me||(Me=De()),H);function He(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=He(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function pt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=He(e))&&(s&&(s+=" "),s+=t);return s}const mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>pt("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:Fe}=mt,We=ft(class extends Ge{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Fe(e)}connectedCallback(){const e=ht();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Fe(this.extraClasses)}render(){return G("div",{key:"bb28bc59d4522f27c3637774153603462d628be0",class:this.activeClasses,part:"root"},G("slot",{key:"24becefcfa3a4842163b62a255266d71dd27d765"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Ve(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,We))}))}Ve();const yt=We,gt=Ve;R.GidsScrim=yt,R.defineCustomElement=gt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R.gidsCoreWebGidsSnackbar={}))})(this,(function(R){"use strict";function P(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var D,Le=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],i=P(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(c){i.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},T=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ae=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),q=new Map,ue="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},Pe=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Y=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Z=!!Y&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,J=!1,de=[],fe=[],Me=(e,t)=>o=>{e.push(o),J||(J=!0,4&O.i?X(K):O.raf(K))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},K=()=>{he(de),he(fe),(J=de.length>0)&&O.raf(K)},X=e=>Promise.resolve(void 0).then(e),He=Me(fe);function De(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(Z?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var pe=e=>{const t=te(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ee(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Be(s,B(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&te(s,"childNodes").length&&pe(s)}};function ee(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||B(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...ee(s.childNodes,t,o)]}return r}var Be=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!o&&n["s-sr"]||s.push(n);return s},me=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function te(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var se,L,x=new WeakMap,ge=e=>"sc-"+e.p,oe=e=>(e=typeof e)=="object"||e==="function",We=(e,t,...o)=>{let s=null,n=null,r=null,i=!1,c=!1;const l=[],a=u=>{for(let h=0;h<u.length;h++)s=u[h],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=!oe(s))&&(s=String(s)),i&&c?l[l.length-1].h+=s:l.push(i?ne(null,s):s),c=i)};a(o);const f=ne(e,null);return f.v=t,l.length>0&&(f.m=l),f.$=n,f.j=r,f},ne=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Fe={},ye=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},Se=(e,t)=>e==null||oe(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,Ve=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},be=(e,t,o,s,n,r)=>{if(o===s)return;let i=ae(e,t),c=t.toLowerCase();if(t==="class"){const l=e.classList,a=ve(o);let f=ve(s);l.remove(...a.filter((u=>u&&!f.includes(u)))),l.add(...f.filter((u=>u&&!a.includes(u))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&Ue(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let a;{const f=T(e);if(f&&f.o&&f.o.t){const u=f.o.t[l];u&&u[1]&&(a=u[1])}}return a||(a=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(a)!==""||e.removeAttribute(a):e.setAttribute(a,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=oe(s);if((i||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const f=s??"";t==="list"?i=!1:o!=null&&e[t]===f||(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(a?e.removeAttributeNS(ue,t):e.removeAttribute(t)):(!i||4&r||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,a?e.setAttributeNS(ue,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ae(w,c)?c.slice(2):c[2]+t.slice(3),o||s){const l=t.endsWith(we);t=t.replace(ze,""),o&&O.rel(e,t,o,l),s&&O.ael(e,t,s,l)}}},qe=/\s/,ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(qe):[]),we="Capture",ze=new RegExp(we+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const i of Ne(Object.keys(n)))i in r||be(s,i,n[i],void 0,o,t.i);for(const i of Ne(Object.keys(r)))be(s,i,n[i],r[i],o,t.i)};function Ne(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,z=!1,U=!1,k=!1,re=[],ie=[],I=(e,t,o)=>{var s;const n=t.m[o];let r,i,c,l=0;if(W||(U=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=w.document.createTextNode(n.h);else if(1&n.i)r=n.S=w.document.createTextNode(""),le(null,n,k);else{if(k||(k=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=w.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),le(null,n,k),n.m){const a=n.O==="template"?r.content:r;for(l=0;l<n.m.length;++l)i=I(e,n,l),i&&a.appendChild(i)}n.O==="svg"?k=!1:r.tagName==="foreignObject"&&(k=!0)}return r["s-hn"]=L,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=se,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(a){if(a.assignedElements||a.assignedNodes||!a["s-sr"])return;const f=u=>(function(h){const g=[],d=this["s-sn"];h?.flatten&&console.error(`
1
+ (function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R.gidsCoreWebGidsSnackbar={}))})(this,(function(R){"use strict";function P(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var D,Le=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],c=P(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);c&&Object.defineProperty(e,s,{get(){return c.get.call(this)},set(i){c.set.call(this,i)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ae=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),U=new Map,ue="http://www.w3.org/1999/xlink",Pe=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],N=typeof window<"u"?window:{},Me=N.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Y=(()=>{try{return!!N.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Z=!!Y&&!!N.document&&Object.getOwnPropertyDescriptor(N.document.adoptedStyleSheets,"length").writable,J=!1,de=[],fe=[],He=(e,t)=>o=>{e.push(o),J||(J=!0,4&O.i?X(K):O.raf(K))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},K=()=>{he(de),he(fe),(J=de.length>0)&&O.raf(K)},X=e=>Promise.resolve(void 0).then(e),De=He(fe);function Fe(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(Z?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var pe=e=>{const t=te(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ee(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Be(s,F(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&te(s,"childNodes").length&&pe(s)}};function ee(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||F(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...ee(s.childNodes,t,o)]}return r}var Be=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)F(n)!==t||!o&&n["s-sr"]||s.push(n);return s},me=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",F=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function te(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var se,L,x=new WeakMap,ye=e=>"sc-"+e.p,oe=e=>(e=typeof e)=="object"||e==="function",Ve=(e,t,...o)=>{let s=null,n=null,r=null,c=!1,i=!1;const l=[],u=a=>{for(let f=0;f<a.length;f++)s=a[f],Array.isArray(s)?u(s):s!=null&&typeof s!="boolean"&&((c=!oe(s))&&(s=String(s)),c&&i?l[l.length-1].h+=s:l.push(c?ne(null,s):s),i=c)};u(o);const d=ne(e,null);return d.v=t,l.length>0&&(d.m=l),d.$=n,d.j=r,d},ne=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),We={},ge=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},Se=(e,t,o)=>e==null||oe(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Ue=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},be=(e,t,o,s,n,r)=>{if(o===s)return;let c=ae(e,t),i=t.toLowerCase();if(t==="class"){const l=e.classList,u=ve(o);let d=ve(s);l.remove(...u.filter((a=>a&&!d.includes(a)))),l.add(...d.filter((a=>a&&!u.includes(a))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&Ie(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let u;{const d=A(e);if(d&&d.o&&d.o.t){const a=d.o.t[l];a&&a[1]&&(u=a[1])}}return u||(u=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(u)!==""||e.removeAttribute(u):e.setAttribute(u,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=oe(s);if((c||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const d=s??"";t==="list"?c=!1:o!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}let u=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(t=i,u=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(u?e.removeAttributeNS(ue,t):e.removeAttribute(t)):(!c||4&r||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,u?e.setAttributeNS(ue,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ae(N,i)?i.slice(2):i[2]+t.slice(3),o||s){const l=t.endsWith(we);t=t.replace(ze,""),o&&O.rel(e,t,o,l),s&&O.ael(e,t,s,l)}}},qe=/\s/,ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(qe):[]),we="Capture",ze=new RegExp(we+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const c of Ne(Object.keys(n)))c in r||be(s,c,n[c],void 0,o,t.i);for(const c of Ne(Object.keys(r)))be(s,c,n[c],r[c],o,t.i)};function Ne(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,q=!1,z=!1,k=!1,re=[],ie=[],I=(e,t,o)=>{var s;const n=t.m[o];let r,c,i,l=0;if(B||(z=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=N.document.createTextNode(n.h);else if(1&n.i)r=n.S=N.document.createTextNode(""),le(null,n,k);else{if(k||(k=n.O==="svg"),!N.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=N.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),le(null,n,k),n.m){const u=n.O==="template"?r.content:r;for(l=0;l<n.m.length;++l)c=I(e,n,l),c&&u.appendChild(c)}n.O==="svg"?k=!1:r.tagName==="foreignObject"&&(k=!0)}return r["s-hn"]=L,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=se,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(u){if(u.assignedElements||u.assignedNodes||!u["s-sr"])return;const d=a=>(function(f){const m=[],h=this["s-sn"];f?.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 v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(b=>{const y=[];for(let m=0;m<b.length;m++){const p=b[m]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(v.childNodes)).forEach((b=>{d===B(b)&&g.push(b)})),u?g.filter((b=>b.nodeType===1)):g}).bind(a);a.assignedElements=f(!0),a.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&_e(e.S)),r},_e=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,U=!0)}O.i&=-2},Q=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(F(n).parentNode,n,F(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,U=!0),t&&Q(n,t)}O.i&=-2},Oe=(e,t,o,s,n,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=r;++n)s[n]&&(i=I(null,o,n),i&&(s[n].S=i,$(c,i,F(t))))},ke=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ee(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():Q(r,!0),r.remove())}}},G=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,c=t.h;let l;c==null?(k=i==="svg"||i!=="foreignObject"&&k,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",_e(t.S.parentElement)),le(e,t,k),n!==null&&r!==null?((a,f,u,h,g=!1)=>{let d,v,b=0,y=0,m=0,p=0,_=f.length-1,S=f[0],N=f[_],E=h.length-1,C=h[0],j=h[E];const Re=u.O==="template"?a.content:a;for(;b<=_&&y<=E;)if(S==null)S=f[++b];else if(N==null)N=f[--_];else if(C==null)C=h[++y];else if(j==null)j=h[--E];else if(G(S,C,g))H(S,C,g),S=f[++b],C=h[++y];else if(G(N,j,g))H(N,j,g),N=f[--_],j=h[--E];else if(G(S,j,g))S.O!=="slot"&&j.O!=="slot"||Q(S.S.parentNode,!1),H(S,j,g),$(Re,S.S,N.S.nextSibling),S=f[++b],j=h[--E];else if(G(N,C,g))S.O!=="slot"&&j.O!=="slot"||Q(N.S.parentNode,!1),H(N,C,g),$(Re,N.S,S.S),N=f[--_],C=h[++y];else{for(m=-1,p=b;p<=_;++p)if(f[p]&&f[p].$!==null&&f[p].$===C.$){m=p;break}m>=0?(v=f[m],v.O!==C.O?d=I(f&&f[y],u,m):(H(v,C,g),f[m]=void 0,d=v.S),C=h[++y]):(d=I(f&&f[y],u,y),C=h[++y]),d&&$(F(S.S).parentNode,d,F(S.S))}b>_?Oe(a,h[E+1]==null?null:h[E+1].S,u,h,y,E):y>E&&ke(f,b,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Oe(s,null,t,r,0,r.length-1)):!o&&n!==null&&ke(n,0,n.length-1),k&&i==="svg"&&(k=!1)):(l=s["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(me(t,i)){let c=A.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],A.push({N:r,k:t})),t["s-sr"]&&A.map((l=>{me(l.k,t["s-sn"])&&(c=A.find((a=>a.k===t)),c&&!l.N&&(l.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}r.nodeType===1&&Ce(r)}},Ee=e=>{e.v&&e.v.ref&&re.push((()=>e.v.ref(null))),e.m&&e.m.map(Ee)},Ue=(e,t)=>{ie.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var c;if(!(i=i||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=B(r)||"";return{slotNode:ee(te(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Ie=(e,t,o=!1)=>{var s,n,r,i,c;const l=e.$hostElement$,a=e.o,f=e.M||ne(null,null);var u;const h=(u=t)&&u.O===Fe?t:We(null,null,t);if(L=l.tagName,a._&&(h.v=h.v||{},a._.forEach((([g,d])=>{h.v[d]=l[g]}))),o&&h.v)for(const g of Object.keys(h.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=l[g]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=l.shadowRoot||l,W=!(!(1&a.i)||128&a.i),se=l["s-cr"],z=!1,H(f,h,o),O.i|=1,U){Ce(h.S);for(const g of A){const d=g.k;if(!d["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=d,$(d.parentNode,d["s-ol"]=v,d,o)}}for(const g of A){const d=g.k,v=g.N;if(d.nodeType===1&&o&&(d["s-ih"]=(s=d.hidden)!=null&&s),v){const b=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=d["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(r=m["s-nr"])!=null?r:null;if(p&&p["s-sn"]===d["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===d||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}m=m.previousSibling}}if((!y&&b!==(d.__parentNode||d.parentNode)||(d.__nextSibling||d.nextSibling)!==y)&&d!==y){if($(b,d,y,o),d.nodeType===8&&d.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(d.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=d["s-hn"],m["s-sn"]=d["s-sn"],m["s-sh"]=d["s-sh"],m["s-sr"]=d["s-sr"],m["s-ol"]=d["s-ol"],m["s-ol"]["s-nr"]=m,$(d.parentNode,m,d,o),d.parentNode.removeChild(d)}d.nodeType===1&&d.tagName!=="SLOT-FB"&&(d.hidden=(i=d["s-ih"])!=null&&i)}d&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else d.nodeType===1&&(d.hidden=!0)}}if(z&&pe(h.S),O.i&=-2,A.length=0,!W&&!(1&a.i)&&l["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const d of g)if(d["s-hn"]!==L&&!d["s-sh"]){if(o&&d["s-ih"]==null&&(d["s-ih"]=(c=d.hidden)!=null&&c),d.nodeType===1)d.hidden=!0;else if(d.nodeType===3&&d.nodeValue.trim()){const v=w.document.createComment("s-nt-"+d.nodeValue);v["s-sn"]=d["s-sn"],$(d.parentNode,v,d,o),d.parentNode.removeChild(d)}}}se=void 0,re.forEach((g=>g())),re.length=0,ie.forEach((g=>g())),ie.length=0},$e=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);$e(e,e.C);const o=()=>Qe(e,t);if(!t)return He(o);queueMicrotask((()=>{o()}))},Qe=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=V(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=je(n,(()=>V(s,"componentWillRender",void 0,o))),je(n,(()=>Ye(e,s,t)))},je=(e,t)=>Ge(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ye=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const c=i.o,l=i.$hostElement$,a=c.i,f=((u,h)=>{var g,d,v;const b=ge(h),y=q.get(b);if(!w.document)return b;if(u=u.nodeType===11?u:w.document,y)if(typeof y=="string"){let m,p=x.get(u=u.head||u);if(p||x.set(u,p=new Set),!p.has(b)){m=w.document.createElement("style"),m.textContent=y;const _=(g=O.L)!=null?g:(function(){var S,N,E;return(E=(N=(S=w.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?E:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&h.i))if(u.nodeName==="HEAD"){const S=u.querySelectorAll("link[rel=preconnect]"),N=S.length>0?S[S.length-1].nextSibling:u.querySelector("style");u.insertBefore(m,N?.parentNode===u?N:null)}else if("host"in u)if(Y){const S=new((d=u.defaultView)!=null?d:u.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(y),Z?u.adoptedStyleSheets.unshift(S):u.adoptedStyleSheets=[S,...u.adoptedStyleSheets]}else{const S=u.querySelector("style");S?S.textContent=y+S.textContent:u.prepend(m)}else u.append(m);1&h.i&&u.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let m=x.get(u);if(m||x.set(u,m=new Set),!m.has(b)){const p=(v=u.defaultView)!=null?v:u.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let S=0;S<y.cssRules.length;S++)_.insertRule(y.cssRules[S].cssText,S)}Z?u.adoptedStyleSheets.push(_):u.adoptedStyleSheets=[...u.adoptedStyleSheets,_],m.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&a&&(l["s-sc"]=f,l.classList.add(f+"-h"))})(e),Ze(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>Je(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},Ze=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ie(e,t,s)}catch(n){M(n,e.$hostElement$)}return null},Je=e=>{const t=e.$hostElement$,o=t,s=e.C;V(o,"componentDidRender",void 0,t),64&e.i?V(o,"componentDidUpdate",void 0,t):(e.i|=64,Xe(t),V(o,"componentDidLoad",void 0,t),e.F(t),s||Ke()),e.A&&(e.A(),e.A=void 0),512&e.i&&X((()=>ce(e,!1))),e.i&=-517},Ke=()=>{X((()=>Ve(w,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){M(n,s)}},Xe=e=>e.classList.add("hydrated"),Ae=(e,t,o,s)=>{const n=T(e);if(!n)return;const r=e,i=n.l.get(t),c=n.i,l=r;o=Se(o,s.t[t][0]);const a=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!a){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((u=>{try{const[[h,g]]=Object.entries(u);(128&c||1&g)&&(l?l[h](o,i,t):n.T.push((()=>{n.D[h](o,i,t)})))}catch(h){M(h,r)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||ce(n,!1)}}},et=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=ye(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([i,[c]])=>{if(31&c||32&c){const{get:l,set:a}=P(n,i)||{};l&&(t.t[i][0]|=2048),a&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return l?l.apply(this):(f=i,T(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(f){const u=T(this);if(u){if(a)return(32&c?this[i]:u.$hostElement$[i])===void 0&&u.l.get(i)&&(f=u.l.get(i)),a.apply(this,[Se(f,c)]),void Ae(this,i,f=32&c?this[i]:u.$hostElement$[i],t);Ae(this,i,f,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(c,l,a){O.jmp((()=>{var f;const u=i.get(c),h=T(this);if(this.hasOwnProperty(u),n.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==a)return;if(u==null){const y=h?.i;if(h&&y&&!(8&y)&&a!==l){const m=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((_=>{const[[S,N]]=Object.entries(_);m[S]!=null&&(128&y||1&N)&&m[S].call(m,a,l,c)}))}return}const g=r.find((([y])=>y===u)),d=g&&4&g[1][0],v=d&&a===null&&this[u]===void 0;d&&(a=a!==null&&a!=="false");const b=Object.getOwnPropertyDescriptor(n,u);v||a==this[u]||b.get&&!b.set||(this[u]=a)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,l])=>31&l[0])).map((([c,l])=>{var a;const f=l[1]||c;return i.set(f,c),512&l[0]&&((a=t._)==null||a.push([c,f])),f}))]))}}return e},tt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=ye(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const c={i:0,$hostElement$:r,o:i,l:new Map,U:new Map};c.W=new Promise((a=>c.F=a)),r["s-p"]=[],r["s-rc"]=[];const l=c;r.__stencil__getHostRef=()=>l,512&i.i&&Le(r,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!T(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=T(r);if(!i)return;const c=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&c.i&&(l=>{if(!w.document)return;const a=l["s-cr"]=w.document.createComment("");a["s-cn"]=!0,$(l,a,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){$e(i,i.C=l);break}}c.t&&Object.entries(c.t).map((([l,[a]])=>{if(31&a&&Object.prototype.hasOwnProperty.call(r,l)){const f=r[l];delete r[l],r[l]=f}})),(async(l,a,f)=>{let u;try{if(!(32&a.i)&&(a.i|=32,u=l.constructor,customElements.whenDefined(l.localName).then((()=>a.i|=128)),u&&u.style)){let d;typeof u.style=="string"&&(d=u.style);const v=ge(f);q.has(v)||((b,y,m)=>{let p=q.get(b);Y&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,q.set(b,p)})(v,d,!!(1&f.i))}const h=a.C,g=()=>ce(a,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){M(h,l),a.A&&(a.A(),a.A=void 0),a.F&&a.F(l)}})(r,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||T(r),x.has(r)&&x.delete(r),r.shadowRoot&&x.has(r.shadowRoot)&&x.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else De.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),et(e,o)}catch(s){return M(s),e}};function lt(e){return e}const st=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Te=tt(class extends Pe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=st(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 xe(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Te))}))}xe();const ot=Te,nt=xe;R.GidsSnackbar=ot,R.defineCustomElement=nt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(b=>{const g=[];for(let y=0;y<b.length;y++){const p=b[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(v.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),a?m.filter((b=>b.nodeType===1)):m}).bind(u);u.assignedElements=d(!0),u.assignedNodes=d(!1)})(r),i=e&&e.m&&e.m[o],i&&i.O===n.O&&e.S&&_e(e.S)),r},_e=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,z=!0)}O.i&=-2},Q=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(j(V(n).parentNode,n,V(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,z=!0),t&&Q(n,t)}O.i&=-2},Oe=(e,t,o,s,n,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===L&&(i=i.shadowRoot),o.O==="template"&&(i=i.content);n<=r;++n)s[n]&&(c=I(null,o,n),c&&(s[n].S=c,j(i,c,V(t))))},ke=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ee(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Q(r,!0),r.remove())}}},G=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,c=t.O,i=t.h;let l;i==null?(k=c==="svg"||c!=="foreignObject"&&k,c!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",_e(t.S.parentElement)),le(e,t,k),n!==null&&r!==null?((u,d,a,f,m=!1)=>{let h,v,b=0,g=0,y=0,p=0,_=d.length-1,S=d[0],w=d[_],C=f.length-1,E=f[0],$=f[C];const Re=a.O==="template"?u.content:u;for(;b<=_&&g<=C;)if(S==null)S=d[++b];else if(w==null)w=d[--_];else if(E==null)E=f[++g];else if($==null)$=f[--C];else if(G(S,E,m))H(S,E,m),S=d[++b],E=f[++g];else if(G(w,$,m))H(w,$,m),w=d[--_],$=f[--C];else if(G(S,$,m))S.O!=="slot"&&$.O!=="slot"||Q(S.S.parentNode,!1),H(S,$,m),j(Re,S.S,w.S.nextSibling),S=d[++b],$=f[--C];else if(G(w,E,m))S.O!=="slot"&&$.O!=="slot"||Q(w.S.parentNode,!1),H(w,E,m),j(Re,w.S,S.S),w=d[--_],E=f[++g];else{for(y=-1,p=b;p<=_;++p)if(d[p]&&d[p].$!==null&&d[p].$===E.$){y=p;break}y>=0?(v=d[y],v.O!==E.O?h=I(d&&d[g],a,y):(H(v,E,m),d[y]=void 0,h=v.S),E=f[++g]):(h=I(d&&d[g],a,g),E=f[++g]),h&&j(V(S.S).parentNode,h,V(S.S))}b>_?Oe(u,f[C+1]==null?null:f[C+1].S,a,f,g,C):g>C&&ke(d,b,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Oe(s,null,t,r,0,r.length-1)):!o&&n!==null&&ke(n,0,n.length-1),k&&c==="svg"&&(k=!1)):(l=s["s-cr"])?l.parentNode.textContent=i:e.h!==i&&(s.data=i)},T=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const c=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(me(t,c)){let i=T.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||c,i?(i.k["s-sh"]=r["s-hn"],i.N=r):(t["s-sh"]=r["s-hn"],T.push({N:r,k:t})),t["s-sr"]&&T.map((l=>{me(l.k,t["s-sn"])&&(i=T.find((u=>u.k===t)),i&&!l.N&&(l.N=i.N))}))}else T.some((i=>i.k===t))||T.push({k:t})}r.nodeType===1&&Ce(r)}},Ee=e=>{e.v&&e.v.ref&&re.push((()=>e.v.ref(null))),e.m&&e.m.map(Ee)},Ie=(e,t)=>{ie.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,c){var i;if(!(c=c||((i=r["s-ol"])==null?void 0:i.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:ee(te(c,"childNodes"),c.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,c,i;const l=e.$hostElement$,u=e.o,d=e.M||ne(null,null);var a;const f=(a=t)&&a.O===We?t:Ve(null,null,t);if(L=l.tagName,u.C&&(f.v=f.v||{},u.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=d.S=l.shadowRoot||l,B=!(!(1&u.i)||128&u.i),se=l["s-cr"],q=!1,H(d,f,o),O.i|=1,z){Ce(f.S);for(const m of T){const h=m.k;if(!h["s-ol"]&&N.document){const v=N.document.createTextNode("");v["s-nr"]=h,j(h.parentNode,h["s-ol"]=v,h,o)}}for(const m of T){const h=m.k,v=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),v){const b=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(r=y["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(j(b,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=N.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,j(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(c=h["s-ih"])!=null&&c)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&pe(f.S),O.i&=-2,T.length=0,!B&&!(1&u.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(i=h.hidden)!=null&&i),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=N.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],j(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}se=void 0,re.forEach((m=>m())),re.length=0,ie.forEach((m=>m())),ie.length=0},je=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);je(e,e.R);const o=()=>Ge(e,t);if(!t)return De(o);queueMicrotask((()=>{o()}))},Ge=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=$e(n,(()=>W(s,"componentWillRender",void 0,o))),$e(n,(()=>Ze(e,s,t)))},$e=(e,t)=>Ye(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),Ye=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ze=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(c=>{const i=c.o,l=c.$hostElement$,u=i.i,d=((a,f)=>{var m,h,v;const b=ye(f),g=U.get(b);if(!N.document)return b;if(a=a.nodeType===11?a:N.document,g)if(typeof g=="string"){let y,p=x.get(a=a.head||a);if(p||x.set(a,p=new Set),!p.has(b)){y=N.document.createElement("style"),y.textContent=g;const _=(m=O._)!=null?m:(function(){var S,w,C;return(C=(w=(S=N.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?C:void 0})();if(_!=null&&y.setAttribute("nonce",_),!(1&f.i))if(a.nodeName==="HEAD"){const S=a.querySelectorAll("link[rel=preconnect]"),w=S.length>0?S[S.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,w?.parentNode===a?w:null)}else if("host"in a)if(Y){const S=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),Z?a.adoptedStyleSheets.unshift(S):a.adoptedStyleSheets=[S,...a.adoptedStyleSheets]}else{const S=a.querySelector("style");S?S.textContent=g+S.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let y=x.get(a);if(y||x.set(a,y=new Set),!y.has(b)){const p=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let _;if(g.constructor===p.CSSStyleSheet)_=g;else{_=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)_.insertRule(g.cssRules[S].cssText,S)}Z?a.adoptedStyleSheets.push(_):a.adoptedStyleSheets=[...a.adoptedStyleSheets,_],y.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),i);10&u&&(l["s-sc"]=d,l.classList.add(d+"-h"))})(e),Je(e,t,n,o),r&&(r.map((c=>c())),n["s-rc"]=void 0);{const c=(s=n["s-p"])!=null?s:[],i=()=>Ke(e);c.length===0?i():(Promise.all(c).then(i).catch(i),e.i|=4,c.length=0)}},Je=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){M(n,e.$hostElement$)}return null},Ke=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,et(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||Xe()),e.A&&(e.A(),e.A=void 0),512&e.i&&X((()=>ce(e,!1))),e.i&=-517},Xe=()=>{X((()=>Ue(N,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){M(n,s)}},et=e=>e.classList.add("hydrated"),Ae=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,c=n.l.get(t),i=n.i,l=r;o=Se(o,s.t[t][0],!!(64&s.i));const u=Number.isNaN(c)&&Number.isNaN(o);if(o!==c&&!u){if(n.l.set(t,o),s.F){const d=s.F[t];d&&d.map((a=>{try{const[[f,m]]=Object.entries(a);(128&i||1&m)&&(l?l[f](o,c,t):n.T.push((()=>{n.D[f](o,c,t)})))}catch(f){M(f,r)}}))}if(2&i){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,c,t)===!1&&!(16&i))return;16&i||ce(n,!1)}}},tt=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Pe.forEach((c=>{const i=r[c];Object.defineProperty(r,c,{value(...l){var u;const d=A(this),a=this;a?typeof i=="function"&&i.call(a,...l):(u=d?.H)==null||u.then((f=>{const m=f[c];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=ge(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const c=Object.entries((s=t.t)!=null?s:{});c.map((([i,[l]])=>{if(31&l||32&l){const{get:u,set:d}=P(r,i)||{};u&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(r,i,{get(){return u?u.apply(this):(a=i,A(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(r,i,{set(a){const f=A(this);if(f){if(d)return(32&l?this[i]:f.$hostElement$[i])===void 0&&f.l.get(i)&&(a=f.l.get(i)),d.apply(this,[Se(a,l,!!(64&t.i))]),void Ae(this,i,a=32&l?this[i]:f.$hostElement$[i],t);Ae(this,i,a,t)}}})}}));{const i=new Map;r.attributeChangedCallback=function(l,u,d){O.jmp((()=>{var a;const f=i.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==d)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&d!==u){const p=this,_=(a=t.F)==null?void 0:a[l];_?.forEach((S=>{const[[w,C]]=Object.entries(S);p[w]!=null&&(128&y||1&C)&&p[w].call(p,d,u,l)}))}return}const h=c.find((([y])=>y===f)),v=h&&4&h[1][0],b=v&&d===null&&this[f]===void 0;v&&(d=d!==null&&d!=="false");const g=Object.getOwnPropertyDescriptor(r,f);b||d==this[f]||g.get&&!g.set||(this[f]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...c.filter((([l,u])=>31&u[0])).map((([l,u])=>{var d;const a=u[1]||l;return i.set(a,l),512&u[0]&&((d=t.C)==null||d.push([l,a])),a}))]))}}return e},st=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.F=ge(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,c)=>{const i={i:0,$hostElement$:r,o:c,l:new Map,W:new Map};i.H=new Promise((u=>i.L=u)),r["s-p"]=[],r["s-rc"]=[];const l=i;r.__stencil__getHostRef=()=>l,512&c.i&&Le(r,i)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const c=A(r);if(!c)return;const i=c.o;if(1&c.i)c?.D||c?.H&&c.H.then((()=>{}));else{c.i|=1,12&i.i&&(l=>{if(!N.document)return;const u=l["s-cr"]=N.document.createComment("");u["s-cn"]=!0,j(l,u,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){je(c,c.R=l);break}}i.t&&Object.entries(i.t).map((([l,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(r,l)){const d=r[l];delete r[l],r[l]=d}})),(async(l,u,d)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=l.constructor,customElements.whenDefined(l.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=ye(d);U.has(v)||((b,g,y)=>{let p=U.get(b);Y&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,U.set(b,p)})(v,h,!!(1&d.i))}const f=u.R,m=()=>ce(u,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){M(f,l),u.A&&(u.A(),u.A=void 0),u.L&&u.L(l)}})(r,c,i)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||A(r),x.has(r)&&x.delete(r),r.shadowRoot&&x.has(r.shadowRoot)&&x.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Fe.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),tt(e,o,3)}catch(s){return M(s),e}};function rt(e){return e}const ot=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Te=st(class extends Me{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=ot(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 xe(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Te))}))}xe();const nt=Te,lt=xe;R.GidsSnackbar=nt,R.defineCustomElement=lt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function(M,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(M=typeof globalThis<"u"?globalThis:M||self,P(M.gidsCoreWebGidsTextField={}))})(this,(function(M){"use strict";function P(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var G,_t=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[n]])=>{if(31&n||32&n){const o=e[s],l=P(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},we=(e,t)=>t in e,F=(e,t)=>(0,console.error)(e,t),W=new Map,Te="http://www.w3.org/1999/xlink",x=typeof window<"u"?window:{},ie=x.HTMLElement||class{},T={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)},ne=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ne&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,le=!1,Ee=[],Ne=[],vt=(e,t)=>i=>{e.push(i),le||(le=!0,4&T.i?ae(re):T.raf(re))},Le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){F(i)}e.length=0},re=()=>{Le(Ee),Le(Ne),(le=Ee.length>0)&&T.raf(re)},ae=e=>Promise.resolve(void 0).then(e),bt=vt(Ne);function yt(){const e=this.attachShadow({mode:"open"});G===void 0&&(G=null),G&&(oe?e.adoptedStyleSheets.push(G):e.adoptedStyleSheets=[...e.adoptedStyleSheets,G])}var $e=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!St(s,B(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ce(s,"childNodes").length&&$e(s)}};function de(e,t,i){let s,n=0,o=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||B(s)===i)&&(o.push(s),i!==void 0))return o;o=[...o,...de(s.childNodes,t,i)]}return o}var St=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!i&&n["s-sr"]||s.push(n);return s},ke=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(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 ue,j,I=new WeakMap,Oe=e=>"sc-"+e.p,he=e=>(e=typeof e)=="object"||e==="function",_=(e,t,...i)=>{let s=null,n=null,o=null,l=!1,a=!1;const r=[],c=d=>{for(let f=0;f<d.length;f++)s=d[f],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!he(s))&&(s=String(s)),l&&a?r[r.length-1].h+=s:r.push(l?U(null,s):s),a=l)};if(c(i),t){t.key&&(n=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,r,xt);const u=U(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=n,u.j=o,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ae={},xt={forEach:(e,t)=>e.map(Ie).forEach(t),map:(e,t)=>e.map(Ie).map(t).map(Ct)},Ie=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ct=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),_(e.vtag,i,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Me=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const n of t){if(i)break;for(const o of e[n])if(typeof o=="string"){i=!0;break}}if(!i)return e;const s={};for(const n of t)s[n]=e[n].map((o=>typeof o=="string"?{[o]:0}:o));return s},je=(e,t)=>e==null||he(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,wt=(e,t)=>{const i=e;return{emit:s=>Pe(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},Pe=(e,t,i)=>{const s=T.ce(t,i);return e.dispatchEvent(s),s},Fe=(e,t,i,s,n,o)=>{if(i===s)return;let l=we(e,t),a=t.toLowerCase();if(t==="class"){const r=e.classList,c=Ve(i);let u=Ve(s);r.remove(...c.filter((d=>d&&!u.includes(d)))),r.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const r in i)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)i&&s[r]===i[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&Nt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let c;{const u=O(e);if(u&&u.o&&u.o.t){const d=u.o.t[r];d&&d[1]&&(c=d[1])}}return c||(c=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=he(s);if((l||r&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?l=!1:i!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Te,t):e.removeAttribute(t)):(!l||4&o||n)&&!r&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Te,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):we(x,a)?a.slice(2):a[2]+t.slice(3),i||s){const r=t.endsWith(Re);t=t.replace(Et,""),i&&T.rel(e,t,i,r),s&&T.ael(e,t,s,r)}}},Tt=/\s/,Ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Tt):[]),Re="Capture",Et=new RegExp(Re+"$"),fe=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},o=t.v||{};for(const l of Ge(Object.keys(n)))l in o||Fe(s,l,n[l],void 0,i,t.i);for(const l of Ge(Object.keys(o)))Fe(s,l,n[l],o[l],i,t.i)};function Ge(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,K=!1,Y=!1,E=!1,pe=[],ge=[],J=(e,t,i)=>{var s;const n=t.m[i];let o,l,a,r=0;if(D||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)o=n.S=x.document.createTextNode(n.h);else if(1&n.i)o=n.S=x.document.createTextNode(""),fe(null,n,E);else{if(E||(E=n.O==="svg"),!x.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=n.S=x.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),E&&n.O==="foreignObject"&&(E=!1),fe(null,n,E),n.m){const c=n.O==="template"?o.content:o;for(r=0;r<n.m.length;++r)l=J(e,n,r),l&&c.appendChild(l)}n.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=j,3&n.i&&(o["s-sr"]=!0,o["s-cr"]=ue,o["s-sn"]=n.j||"",o["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const g=[],h=this["s-sn"];f?.flatten&&console.error(`
1
+ (function(M,j){typeof exports=="object"&&typeof module<"u"?j(exports):typeof define=="function"&&define.amd?define(["exports"],j):(M=typeof globalThis<"u"?globalThis:M||self,j(M.gidsCoreWebGidsTextField={}))})(this,(function(M){"use strict";function j(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var G,_t=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[n]])=>{if(31&n||32&n){const o=e[s],r=j(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},$=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},we=(e,t)=>t in e,F=(e,t)=>(0,console.error)(e,t),W=new Map,Te="http://www.w3.org/1999/xlink",bt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],C=typeof window<"u"?window:{},ie=C.HTMLElement||class{},T={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)},ne=(()=>{try{return!!C.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ne&&!!C.document&&Object.getOwnPropertyDescriptor(C.document.adoptedStyleSheets,"length").writable,le=!1,Ee=[],Le=[],vt=(e,t)=>i=>{e.push(i),le||(le=!0,4&T.i?ae(re):T.raf(re))},Ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){F(i)}e.length=0},re=()=>{Ne(Ee),Ne(Le),(le=Ee.length>0)&&T.raf(re)},ae=e=>Promise.resolve(void 0).then(e),yt=vt(Le);function St(){const e=this.attachShadow({mode:"open"});G===void 0&&(G=null),G&&(oe?e.adoptedStyleSheets.push(G):e.adoptedStyleSheets=[...e.adoptedStyleSheets,G])}var ke=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!xt(s,B(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ce(s,"childNodes").length&&ke(s)}};function de(e,t,i){let s,n=0,o=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||B(s)===i)&&(o.push(s),i!==void 0))return o;o=[...o,...de(s.childNodes,t,i)]}return o}var xt=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!i&&n["s-sr"]||s.push(n);return s},$e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(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 ue,P,I=new WeakMap,Oe=e=>"sc-"+e.p,he=e=>(e=typeof e)=="object"||e==="function",_=(e,t,...i)=>{let s=null,n=null,o=null,r=!1,a=!1;const l=[],c=d=>{for(let h=0;h<d.length;h++)s=d[h],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!he(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?U(null,s):s),a=r)};if(c(i),t){t.key&&(n=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((h=>d[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Ct);const u=U(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=n,u.j=o,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ae={},Ct={forEach:(e,t)=>e.map(Ie).forEach(t),map:(e,t)=>e.map(Ie).map(t).map(wt)},Ie=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),wt=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),_(e.vtag,i,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Me=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const n of t){if(i)break;for(const o of e[n])if(typeof o=="string"){i=!0;break}}if(!i)return e;const s={};for(const n of t)s[n]=e[n].map((o=>typeof o=="string"?{[o]:0}:o));return s},Pe=(e,t,i)=>e==null||he(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,Tt=(e,t)=>{const i=e;return{emit:s=>je(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},je=(e,t,i)=>{const s=T.ce(t,i);return e.dispatchEvent(s),s},Fe=(e,t,i,s,n,o)=>{if(i===s)return;let r=we(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Ve(i);let u=Ve(s);l.remove(...c.filter((d=>d&&!u.includes(d)))),l.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in i)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)i&&s[l]===i[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&Nt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const u=$(e);if(u&&u.o&&u.o.t){const d=u.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=he(s);if((r||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?r=!1:i!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Te,t):e.removeAttribute(t)):(!r||4&o||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Te,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):we(C,a)?a.slice(2):a[2]+t.slice(3),i||s){const l=t.endsWith(Re);t=t.replace(Lt,""),i&&T.rel(e,t,i,l),s&&T.ael(e,t,s,l)}}},Et=/\s/,Ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Et):[]),Re="Capture",Lt=new RegExp(Re+"$"),fe=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},o=t.v||{};for(const r of Ge(Object.keys(n)))r in o||Fe(s,r,n[r],void 0,i,t.i);for(const r of Ge(Object.keys(o)))Fe(s,r,n[r],o[r],i,t.i)};function Ge(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,K=!1,Y=!1,E=!1,pe=[],ge=[],J=(e,t,i)=>{var s;const n=t.m[i];let o,r,a,l=0;if(D||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)o=n.S=C.document.createTextNode(n.h);else if(1&n.i)o=n.S=C.document.createTextNode(""),fe(null,n,E);else{if(E||(E=n.O==="svg"),!C.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=n.S=C.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),E&&n.O==="foreignObject"&&(E=!1),fe(null,n,E),n.m){const c=n.O==="template"?o.content:o;for(l=0;l<n.m.length;++l)r=J(e,n,l),r&&c.appendChild(r)}n.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=P,3&n.i&&(o["s-sr"]=!0,o["s-cr"]=ue,o["s-sn"]=n.j||"",o["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(h){const p=[],f=this["s-sn"];h?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const v=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((y=>{h===B(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==j&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(l=J(null,i,n),l&&(s[n].S=l,$(a,l,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,l=t.O,a=t.h;let r;a==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,v=0,m=0,p=0,w=u.length-1,b=u[0],C=u[w],L=f.length-1,N=f[0],k=f[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&v<=L;)if(b==null)b=u[++y];else if(C==null)C=u[--w];else if(N==null)N=f[++v];else if(k==null)k=f[--L];else if(Z(b,N,g))V(b,N,g),b=u[++y],N=f[++v];else if(Z(C,k,g))V(C,k,g),C=u[--w],k=f[--L];else if(Z(b,k,g))b.O!=="slot"&&k.O!=="slot"||X(b.S.parentNode,!1),V(b,k,g),$(mt,b.S,C.S.nextSibling),b=u[++y],k=f[--L];else if(Z(C,N,g))b.O!=="slot"&&k.O!=="slot"||X(C.S.parentNode,!1),V(C,N,g),$(mt,C.S,b.S),C=u[--w],N=f[++v];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===N.$){m=p;break}m>=0?(S=u[m],S.O!==N.O?h=J(u&&u[v],d,m):(V(S,N,g),u[m]=void 0,h=S.S),N=f[++v]):(h=J(u&&u[v],d,v),N=f[++v]),h&&$(q(b.S).parentNode,h,q(b.S))}y>w?De(c,f[L+1]==null?null:f[L+1].S,d,f,v,L):v>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&l==="svg"&&(E=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,l)){let a=A.find((r=>r.k===t));K=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((r=>{ke(r.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,l){var a;if(!(l=l||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=B(o)||"";return{slotNode:de(ce(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Lt=(e,t,i=!1)=>{var s,n,o,l,a;const r=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const f=(d=t)&&d.O===Ae?t:_(null,null,t);if(j=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=r[g]}))),i&&f.v)for(const g of Object.keys(f.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=r[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,D=!(!(1&c.i)||128&c.i),ue=r["s-cr"],K=!1,V(u,f,i),T.i|=1,Y){He(f.S);for(const g of A){const h=g.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,i)}}for(const g of A){const h=g.k,S=g.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(o=m["s-nr"])!=null?o:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}m=m.previousSibling}}if((!v&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if($(y,h,v,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(K&&$e(f.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&r["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==j&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}ue=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.C);const i=()=>$t(e,t);if(!t)return bt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Ot(e,s,t)))},Ue=(e,t)=>kt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(l=>{const a=l.o,r=l.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Oe(f),v=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,v)if(typeof v=="string"){let m,p=I.get(d=d.head||d);if(p||I.set(d,p=new Set),!p.has(y)){m=x.document.createElement("style"),m.textContent=v;const w=(g=T.L)!=null?g:(function(){var b,C,L;return(L=(C=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),C=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const b=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(v.constructor===p.CSSStyleSheet)w=v;else{w=new p.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)w.insertRule(v.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,n,i),o&&(o.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>It(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},At=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,i=t,s=e.C;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),H(i,"componentDidLoad",void 0,t),e.F(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Mt=e=>{var t;{const i=O(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Pt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=O(e);if(!n)return;const o=e,l=n.l.get(t),a=n.i,r=o;i=je(i,s.t[t][0]);const c=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!c){if(n.l.set(t,i),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(r?r[f](i,l,t):n.T.push((()=>{n.D[f](i,l,t)})))}catch(f){F(f,o)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(i,l,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Ft=(e,t)=>{var i,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Me(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((i=t.t)!=null?i:{});o.map((([l,[a]])=>{if(31&a||32&a){const{get:r,set:c}=P(n,l)||{};r&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return r?r.apply(this):(u=l,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(u){const d=O(this);if(d){if(c)return(32&a?this[l]:d.$hostElement$[l])===void 0&&d.l.get(l)&&(u=d.l.get(l)),c.apply(this,[je(u,a)]),void Ke(this,l,u=32&a?this[l]:d.$hostElement$[l],t);Ke(this,l,u,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,r,c){T.jmp((()=>{var u;const d=l.get(a),f=O(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const v=f?.i;if(f&&v&&!(8&v)&&c!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[b,C]]=Object.entries(w);m[b]!=null&&(128&v||1&C)&&m[b].call(m,c,r,a)}))}return}const g=o.find((([v])=>v===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...o.filter((([a,r])=>31&r[0])).map((([a,r])=>{var c;const u=r[1]||a;return l.set(u,a),512&r[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.R=Me(e.R),i.H=e.H,i.P=e.P,i._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,l)=>{const a={i:0,$hostElement$:o,o:l,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=a;o.__stencil__getHostRef=()=>r,512&l.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const l=O(o);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!x.document)return;const c=r["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){We(l,l.C=r);break}}a.t&&Object.entries(a.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Oe(u);W.has(S)||((y,v,m)=>{let p=W.get(y);ne&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>Q(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){F(f,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||O(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ft(e,i)}catch(s){return F(s),e}},Vt=(e,t)=>t;function ws(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Rt=/\w/,Gt=e=>e.replace(Rt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Bt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,Dt=ee/2,_e=2*Math.PI*Ze,qt=`0 0 ${ee} ${ee}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),l=(_e-parseFloat(o)).toFixed(2);return`${o} ${l}`},centerPosition:Dt,circumference:_e,radius:Ze,thickness:Xe,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Jt}=Qe,Xt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Jt(e)},Symbol.toStringTag,{value:"Module"})),ve=Symbol("defaultPath"),tt=Symbol("pathSet"),be="gids-asset-paths-set";class Zt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),es=e=>{const t=Qt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return es("@ganpatiinfo/gids-web-shared")}function ts(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function ss(e){return Se().onAssetPathsSet(e)}let is=0;const it=(e,t="gids")=>e||`${t}-${is++}`,ns=e=>e.type==="hidden",os=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&&!ns(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let l=0;l<n;l++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),rt={"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"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function ls(e){return at.get(e)}function dt(e,t="regular",i){const s=ls(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Ut,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:l,...a})=>{const r=it(o);let c=l;return c===void 0&&ts()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&ss((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",dt(f,g,st)),d.appendChild(h)})(u,e,i)}))},width:"16",height:"16",class:rs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&_("title",{id:r},s||e),c!==void 0?_("use",{href:c}):null)},{getIndicatorText:as}=Bt,{getGidsLabelClassNames:ds}=zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:l,class:a,isLabelSentence:r,...c},u)=>{const d=as({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:r});return _("div",{class:ds({disabled:e},a),...c},_("label",{htmlFor:o,id:l},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},{getGidsDismissButtonClassNames:us}=Kt,hs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...l})=>_("button",{class:us({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...l},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:fs}=Yt,ps=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},_("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:fs()},_("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},_("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ps))}))}ct();const{getGidsSpinnerControlClassNames:gs}=Wt,{calculateStrokeDasharray:ms,thickness:ut,radius:ht,centerPosition:se,viewBox:_s}=Ht,vs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:ms(i,s||0),strokeDashoffset:"0"}),_("svg",{class:gs({size:e,indeterminate:t,value:i}),viewBox:_s,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},bs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(os(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 _(Vt,{key:"c1e035111a8a80ef0b442bc0298785f0c7445113"},_("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),_("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}),_("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(vs,{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 ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,bs))}))}ft();const{formatCharCount:ys}=Qe,{inputToGidsFieldStatus:Ss}=Xt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=wt(this,"gidsTextFieldClear"),this.#t=it(),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((()=>{Mt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"80f1981d584f417e010322b2c5ec07a60dc1f388",disabled:this.disabled,count:ys(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ss(this.status)},_(cs,{key:"f222a99181809cf9ccdc1ad9ceed98c985681553",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"7ff6cf33f16be119ecc705af8a7fb8965b01b74c",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"d3e260125c8d8f56870e6f484894bd1a1aa8e03b",name:"leadingIcon"}),_("slot",{key:"0445885d41f43d6a76f48ed482673a266b6a0182",name:"leadingAccessory"}),s&&_(hs,{key:"be16083a8e414be66ceb37e076f9ebc01cc4fc8f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("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 gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const xs=pt,Cs=gt;M.GidsTextField=xs,M.defineCustomElement=Cs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const b=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&b.push(g)}return b})(S.childNodes)).forEach((y=>{f===B(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(k(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===P&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==P&&n["s-ol"]&&(k(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(r=J(null,i,n),r&&(s[n].S=r,k(a,r,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,y=0,b=0,m=0,g=0,w=u.length-1,v=u[0],x=u[w],L=h.length-1,N=h[0],O=h[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(x==null)x=u[--w];else if(N==null)N=h[++b];else if(O==null)O=h[--L];else if(Z(v,N,p))V(v,N,p),v=u[++y],N=h[++b];else if(Z(x,O,p))V(x,O,p),x=u[--w],O=h[--L];else if(Z(v,O,p))v.O!=="slot"&&O.O!=="slot"||X(v.S.parentNode,!1),V(v,O,p),k(mt,v.S,x.S.nextSibling),v=u[++y],O=h[--L];else if(Z(x,N,p))v.O!=="slot"&&O.O!=="slot"||X(x.S.parentNode,!1),V(x,N,p),k(mt,x.S,v.S),x=u[--w],N=h[++b];else{for(m=-1,g=y;g<=w;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){m=g;break}m>=0?(S=u[m],S.O!==N.O?f=J(u&&u[b],d,m):(V(S,N,p),u[m]=void 0,f=S.S),N=h[++b]):(f=J(u&&u[b],d,b),N=h[++b]),f&&k(q(v.S).parentNode,f,q(v.S))}y>w?De(c,h[L+1]==null?null:h[L+1].S,d,h,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if($e(t,r)){let a=A.find((l=>l.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((l=>{$e(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},k=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=B(o)||"";return{slotNode:de(ce(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},kt=(e,t,i=!1)=>{var s,n,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const h=(d=t)&&d.O===Ae?t:_(null,null,t);if(P=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),i&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ue=l["s-cr"],K=!1,V(u,h,i),T.i|=1,Y){He(h.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=f,k(f.parentNode,f["s-ol"]=S,f,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){b=g;break}}m=m.previousSibling}}if((!b&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==b)&&f!==b){if(k(y,f,b,i),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=C.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,k(f.parentNode,m,f,i),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&ke(h.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==P&&!f["s-sh"]){if(i&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=C.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],k(f.parentNode,S,f,i),f.parentNode.removeChild(f)}}}ue=void 0,pe.forEach((p=>p())),pe.length=0,ge.forEach((p=>p())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>$t(e,t);if(!t)return yt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>At(e,s,t)))},Ue=(e,t)=>Ot(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Ot=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",At=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const y=Oe(h),b=W.get(y);if(!C.document)return y;if(d=d.nodeType===11?d:C.document,b)if(typeof b=="string"){let m,g=I.get(d=d.head||d);if(g||I.set(d,g=new Set),!g.has(y)){m=C.document.createElement("style"),m.textContent=b;const w=(p=T._)!=null?p:(function(){var v,x,L;return(L=(x=(v=C.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&h.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(ne){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&h.i&&d.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===g.CSSStyleSheet)w=b;else{w=new g.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),It(e,t,n,i),o&&(o.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Mt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},It=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,kt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},Mt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Ft(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Pt=e=>{var t;{const i=$(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>je(C,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Ft=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=$(e);if(!n)return;const o=e,r=n.l.get(t),a=n.i,l=o;i=Pe(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,p]]=Object.entries(d);(128&a||1&p)&&(l?l[h](i,r,t):n.T.push((()=>{n.D[h](i,r,t)})))}catch(h){F(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Vt=(e,t,i)=>{var s,n;const o=e.prototype;64&t.i&&1&i&&bt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=$(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((h=>{const p=h[r];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Me(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:c,set:u}=j(o,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,$(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=$(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(d=h.l.get(a)),u.apply(this,[Pe(d,l,!!(64&t.i))]),void Ke(this,a,d=32&l?this[a]:h.$hostElement$[a],t);Ke(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){T.jmp((()=>{var d;const h=a.get(l),p=$(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const m=p?.i;if(p&&m&&!(8&m)&&u!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((v=>{const[[x,L]]=Object.entries(v);g[x]!=null&&(128&m||1&L)&&g[x].call(g,u,c,l)}))}return}const f=r.find((([m])=>m===h)),S=f&&4&f[1][0],y=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const b=Object.getOwnPropertyDescriptor(o,h);y||u==this[h]||b.get&&!b.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return a.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.F=Me(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,W:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!$(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const r=$(o);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!C.document)return;const c=l["s-cr"]=C.document.createComment("");c["s-cn"]=!0,k(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){We(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Oe(u);W.has(S)||((y,b,m)=>{let g=W.get(y);ne&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=b:g.replaceSync(b)):g=b,W.set(y,g)})(S,f,!!(1&u.i))}const h=c.R,p=()=>Q(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){F(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||$(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else St.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Vt(e,i,3)}catch(s){return F(s),e}},Rt=(e,t)=>t;function Ts(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Gt=/\w/,Bt=e=>e.replace(Gt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Bt(e):e,Dt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,qt=ee/2,_e=2*Math.PI*Ze,Ht=`0 0 ${ee} ${ee}`,zt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),r=(_e-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:qt,circumference:_e,radius:Ze,thickness:Xe,viewBox:Ht},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Xt}=Qe,Zt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Xt(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),tt=Symbol("pathSet"),ve="gids-asset-paths-set";class Qt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),es=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),ts=e=>{const t=es().assetPaths;return t[e]===void 0&&(t[e]=new Qt),t[e]};function Se(){return ts("@ganpatiinfo/gids-web-shared")}function ss(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let ns=0;const it=(e,t="gids")=>e||`${t}-${ns++}`,os=e=>e.type==="hidden",ls=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&&!os(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let r=0;r<n;r++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),{getIndicatorText:rs}=Dt,{getGidsLabelClassNames:as}=Wt,ds=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:r,class:a,isLabelSentence:l,...c},u)=>{const d=rs({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:l});return _("div",{class:as({disabled:e},a),...c},_("label",{htmlFor:o,id:r},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},rt={"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"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function cs(e){return at.get(e)}function dt(e,t="regular",i){const s=cs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Kt,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:r,...a})=>{const l=it(o);let c=r;return c===void 0&&ss()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&is((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",dt(h,p,st)),d.appendChild(f)})(u,e,i)}))},width:"16",height:"16",class:us({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&_("title",{id:l},s||e),c!==void 0?_("use",{href:c}):null)},{getGidsDismissButtonClassNames:hs}=Yt,fs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...r})=>_("button",{class:hs({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...r},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:ps}=Jt,gs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"98078538f6970b0cf756c7a172e635f3302381b2"},_("div",{key:"6751ea942c38270fce42e025ca17e29a38207028",class:ps()},_("div",{key:"5c4969bedfd54b42603ff3de69c72bc513aeaeb6",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"9f98f47e3285551c67f7a350d058a55953c88756",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"6660ed1c29faf2ca838ba8714dee7feb79257187",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"ab2bb081db7e8e8caddcc515580e02f32d4c054a",class:"gids-field__control"},_("slot",{key:"5df4538b894f7daedcb03bcab1316c9452e65caf",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"d7dce2f4a0b03b056ac8888a918e88b15931c8e5",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,gs))}))}ct();const{getGidsSpinnerControlClassNames:ms}=Ut,{calculateStrokeDasharray:_s,thickness:ut,radius:ht,centerPosition:se,viewBox:bs}=zt,vs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:_s(i,s||0),strokeDashoffset:"0"}),_("svg",{class:ms({size:e,indeterminate:t,value:i}),viewBox:bs,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},ys=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(ls(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 _(Rt,{key:"8cfc78682bffd38298aaa5bc8fe63bc996f17586"},_("slot",{key:"5e5c57234e3e531b0d095597e021ab3d4756173d",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"5d0fc2c8a8716806891347f30ba961db61e1cf91",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"881161160b2e933479c7af0a63846c0f86c7bbfe",name:"leadingAccessory"}),_("input",{key:"f0db6b63f0aa4a1a778743620753184ff0a7086a",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),_("slot",{key:"5bb8549e6aa491b7ebbf56bce66bab6f386f98fe",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"3ef3319efd5512bbd370e314724820a539e342f9",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"22dcea487ee58e5df65a5b88d3f7ce7bcc32f828",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"808723d08c4e8a1533652d6c20fd7f8ff0e98275",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"10c61d22cb2a4fa56dc0de3025cfc07c1268f91e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(vs,{key:"58147d27b92c93a6bf9dde27c394de2868d6225e",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,ys))}))}ft();const{formatCharCount:Ss}=Qe,{inputToGidsFieldStatus:xs}=Zt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Tt(this,"gidsTextFieldClear"),this.#t=it(),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((()=>{Pt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"d11133ec5a64d0bc929a2c09530e1c4b7040a441",disabled:this.disabled,count:Ss(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:xs(this.status)},_(ds,{key:"edf0168bd4940b9f98fff8b7e03d865f46f4b6ac",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"317347850ebc9f671a16c816807f9ca55f0f9fa6",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"87815f4d215bbb0c542457b9216f7446595d9ec2",name:"leadingIcon"}),_("slot",{key:"6648b1d8d3585e1df78039a356a297760272af4f",name:"leadingAccessory"}),s&&_(fs,{key:"7eba5acbfdfe1c9173d43bce1592f8e12c8602cb",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"85017d875b4390fec245b9da8409787a2bd86909",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const Cs=pt,ws=gt;M.GidsTextField=Cs,M.defineCustomElement=ws,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));