@ganpatiinfo/gids-core-web 8.2.0 → 9.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 (72) hide show
  1. package/dist/css/index.css +475 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +332 -0
  4. package/dist/gids-field.js +1 -1
  5. package/dist/gids-icon.js +1 -1
  6. package/dist/gids-input.js +1 -1
  7. package/dist/gids-overflow-container.js +1 -1
  8. package/dist/gids-overlay-provider.js +1 -1
  9. package/dist/gids-password-field.js +1 -1
  10. package/dist/gids-popover.d.ts +11 -0
  11. package/dist/gids-popover.js +1 -0
  12. package/dist/gids-scrim.js +1 -1
  13. package/dist/gids-text-field.js +1 -1
  14. package/dist/gids-toggle-button.js +1 -1
  15. package/dist/gids-tooltip.d.ts +11 -0
  16. package/dist/gids-tooltip.js +1 -0
  17. package/dist/index.js +1 -1
  18. package/dist/p-B8kX8Vqv.js +1 -0
  19. package/dist/p-CFw4_-5A.js +1 -0
  20. package/dist/{p-Bg3lw2Ae.js → p-DvoHLz_5.js} +1 -1
  21. package/dist/p-a3JfEYJp.js +1 -0
  22. package/dist/{p-DjvDBWCb.js → p-iCAclJND.js} +1 -1
  23. package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
  24. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
  25. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
  26. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
  27. package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
  28. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
  29. package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
  30. package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
  31. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
  32. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
  33. package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
  34. package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
  35. package/dist/types/components.d.ts +77 -2
  36. package/dist/types/index.d.ts +2 -0
  37. package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
  38. package/dist-bundled/es/gids-field.js +1 -1
  39. package/dist-bundled/es/gids-icon.js +9 -9
  40. package/dist-bundled/es/gids-input.js +4 -4
  41. package/dist-bundled/es/gids-overflow-container.js +4 -4
  42. package/dist-bundled/es/gids-overlay-provider.js +3 -3
  43. package/dist-bundled/es/gids-password-field.js +19 -19
  44. package/dist-bundled/es/gids-popover.js +110 -0
  45. package/dist-bundled/es/gids-scrim.js +3 -3
  46. package/dist-bundled/es/gids-text-field.js +7 -7
  47. package/dist-bundled/es/gids-toggle-button.js +5 -5
  48. package/dist-bundled/es/gids-tooltip.js +66 -0
  49. package/dist-bundled/es/index.js +33 -19
  50. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
  51. package/dist-bundled/es/p-CFw4_-5A-Dzvju3VE.js +25 -0
  52. package/dist-bundled/es/{p-DijVkS9b-CtFkEtlE.js → p-DijVkS9b-CeV1i4T-.js} +1 -1
  53. package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DvoHLz_5-C5EvA91N.js} +7 -7
  54. package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
  55. package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-iCAclJND-Bmsvd-W1.js} +10 -10
  56. package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-veoOgDXg-fRinub-C.js} +12 -5
  57. package/dist-bundled/umd/gids-field.umd.js +1 -1
  58. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  59. package/dist-bundled/umd/gids-input.umd.js +1 -1
  60. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  61. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  62. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  63. package/dist-bundled/umd/gids-popover.umd.js +5 -0
  64. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  65. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  66. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  67. package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
  68. package/dist-bundled/umd/index.umd.js +2 -2
  69. package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
  70. package/package.json +278 -262
  71. package/dist/p-CWdkmFbc.js +0 -1
  72. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
@@ -1,7 +1,7 @@
1
- (function(w,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(w=typeof globalThis<"u"?globalThis:w||self,B(w.gidsCoreWeb={}))})(this,(function(w){"use strict";function B(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var D,Xt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],a=B(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ve=(e,t)=>t in e,V=(e,t)=>(0,console.error)(e,t),Z=new Map,ze="http://www.w3.org/1999/xlink",C=typeof window<"u"?window:{},R=C.HTMLElement||class{},x={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},de=(()=>{try{return!!C.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ue=!!de&&!!C.document&&Object.getOwnPropertyDescriptor(C.document.adoptedStyleSheets,"length").writable,he=!1,He=[],De=[],Kt=(e,t)=>s=>{e.push(s),he||(he=!0,4&x.i?me(fe):x.raf(fe))},Qe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){V(s)}e.length=0},fe=()=>{Qe(He),Qe(De),(he=He.length>0)&&x.raf(fe)},me=e=>Promise.resolve(void 0).then(e),Zt=Kt(De),Jt=e=>{const t=new URL(e,x.u);return t.origin!==C.location.origin?t.href:t.pathname},es=e=>x.u=e;function ts(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(ue?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var We=e=>{const t=ge(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&pe(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!ss(n,Q(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ge(n,"childNodes").length&&We(n)}};function pe(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||Q(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...pe(n.childNodes,t,s)]}return o}var ss=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)Q(i)!==t||!s&&i["s-sr"]||n.push(i);return n},Ue=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ge(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var be,G,F=new WeakMap,Ye=e=>"sc-"+e.p,_e=e=>(e=typeof e)=="object"||e==="function",c=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,l=!1;const r=[],d=u=>{for(let m=0;m<u.length;m++)n=u[m],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!_e(n))&&(n=String(n)),a&&l?r[r.length-1].h+=n:r.push(a?J(null,n):n),l=a)};if(d(s),t){t.key&&(i=t.key),t.name&&(o=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter((m=>u[m])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,ns);const h=J(e,null);return h.v=t,r.length>0&&(h.m=r),h.$=i,h.j=o,h},J=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ve={},ns={forEach:(e,t)=>e.map(Xe).forEach(t),map:(e,t)=>e.map(Xe).map(t).map(is)},Xe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),is=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),c(e.vtag,s,...e.vchildren||[])}const t=J(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Ze=(e,t)=>e==null||_e(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ee=(e,t)=>{const s=e;return{emit:n=>Je(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Je=(e,t,s)=>{const n=x.ce(t,s);return e.dispatchEvent(n),n},et=(e,t,s,n,i,o)=>{if(s===n)return;let a=Ve(e,t),l=t.toLowerCase();if(t==="class"){const r=e.classList,d=tt(s);let h=tt(n);r.remove(...d.filter((u=>u&&!h.includes(u)))),r.add(...h.filter((u=>u&&!d.includes(u))))}else if(t==="style"){for(const r in s)n&&n[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in n)s&&n[r]===s[r]||(r.includes("-")?e.style.setProperty(r,n[r]):e.style[r]=n[r])}else if(t!=="key"){if(t==="ref")n&&rs(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const h=P(e);if(h&&h.o&&h.o.t){const u=h.o.t[r];u&&u[1]&&(d=u[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=n}catch{}return}{const r=_e(n);if((a||r&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const h=n??"";t==="list"?a=!1:s!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ze,t):e.removeAttribute(t)):(!a||4&o||i)&&!r&&e.nodeType===1&&(n=n===!0?"":n,d?e.setAttributeNS(ze,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Ve(C,l)?l.slice(2):l[2]+t.slice(3),s||n){const r=t.endsWith(st);t=t.replace(as,""),s&&x.rel(e,t,s,r),n&&x.ael(e,t,n,r)}}},os=/\s/,tt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(os):[]),st="Capture",as=new RegExp(st+"$"),ye=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of nt(Object.keys(i)))a in o||et(n,a,i[a],void 0,s,t.i);for(const a of nt(Object.keys(o)))et(n,a,i[a],o[a],s,t.i)};function nt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,te=!1,se=!1,E=!1,Se=[],we=[],ne=(e,t,s)=>{var n;const i=t.m[s];let o,a,l,r=0;if(W||(se=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=C.document.createTextNode(i.h);else if(1&i.i)o=i.S=C.document.createTextNode(""),ye(null,i,E);else{if(E||(E=i.O==="svg"),!C.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=C.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&i.i?"slot-fb":i.O),E&&i.O==="foreignObject"&&(E=!1),ye(null,i,E),i.m){const d=i.O==="template"?o.content:o;for(r=0;r<i.m.length;++r)a=ne(e,i,r),a&&d.appendChild(a)}i.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=G,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=be,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=u=>(function(m){const p=[],f=this["s-sn"];m?.flatten&&console.error(`
1
+ (function(E,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(E=typeof globalThis<"u"?globalThis:E||self,ce(E.gidsCoreWeb={}))})(this,(function(E){"use strict";var X;function ce(e,t,n){const i=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==i;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!n||s.get))return s;e=Object.getPrototypeOf(e)}}var be,vi=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([i,[s]])=>{if(31&s||32&s){const o=e[i],r=ce(Object.getPrototypeOf(e),i,!0)||Object.getOwnPropertyDescriptor(e,i);r&&Object.defineProperty(e,i,{get(){return r.get.call(this)},set(l){r.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(i)?e[i]=t.l.get(i):o!==void 0&&(e[i]=o)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Vt=(e,t)=>t in e,de=(e,t)=>(0,console.error)(e,t),Ae=new Map,Gt="http://www.w3.org/1999/xlink",T=typeof window<"u"?window:{},A=T.HTMLElement||class{},k={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Ke=(()=>{try{return!!T.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Ze=!!Ke&&!!T.document&&Object.getOwnPropertyDescriptor(T.document.adoptedStyleSheets,"length").writable,Je=!1,zt=[],Bt=[],yi=(e,t)=>n=>{e.push(n),Je||(Je=!0,4&k.i?tt(et):k.raf(et))},Ht=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){de(n)}e.length=0},et=()=>{Ht(zt),Ht(Bt),(Je=zt.length>0)&&k.raf(et)},tt=e=>Promise.resolve(void 0).then(e),_i=yi(Bt),wi=e=>{const t=new URL(e,k.u);return t.origin!==T.location.origin?t.href:t.pathname},Si=e=>k.u=e;function xi(){const e=this.attachShadow({mode:"open"});be===void 0&&(be=null),be&&(Ze?e.adoptedStyleSheets.push(be):e.adoptedStyleSheets=[...e.adoptedStyleSheets,be])}var Wt=e=>{const t=it(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&nt(t,e.tagName).forEach((i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(i.hidden=!!Ei(i,ve(i),!1).length)}));let n=0;for(n=0;n<t.length;n++){const i=t[n];i.nodeType===1&&it(i,"childNodes").length&&Wt(i)}};function nt(e,t,n){let i,s=0,o=[];for(;s<e.length;s++){if(i=e[s],i["s-sr"]&&(!t||i["s-hn"]===t)&&(n===void 0||ve(i)===n)&&(o.push(i),n!==void 0))return o;o=[...o,...nt(i.childNodes,t,n)]}return o}var Ei=(e,t,n=!0)=>{const i=[];(n&&e["s-sr"]||!e["s-sr"])&&i.push(e);let s=e;for(;s=s.nextSibling;)ve(s)!==t||!n&&s["s-sr"]||i.push(s);return i},Qt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ve=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function it(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var st,te,K=new WeakMap,Ut=e=>"sc-"+e.p,ot=e=>(e=typeof e)=="object"||e==="function",g=(e,t,...n)=>{let i=null,s=null,o=null,r=!1,l=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)i=d[f],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((r=typeof e!="function"&&!ot(i))&&(i=String(i)),r&&l?a[a.length-1].h+=i:a.push(r?$e(null,i):i),l=r)};if(c(n),t){t.key&&(s=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,Ci);const u=$e(e,null);return u.v=t,a.length>0&&(u.m=a),u.$=s,u.j=o,u},$e=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),rt={},Ci={forEach:(e,t)=>e.map(Xt).forEach(t),map:(e,t)=>e.map(Xt).map(t).map(Ti)},Xt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ti=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),g(e.vtag,n,...e.vchildren||[])}const t=$e(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Yt=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const s of t){if(n)break;for(const o of e[s])if(typeof o=="string"){n=!0;break}}if(!n)return e;const i={};for(const s of t)i[s]=e[s].map((o=>typeof o=="string"?{[o]:0}:o));return i},Kt=(e,t)=>e==null||ot(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Ne=(e,t)=>{const n=e;return{emit:i=>Zt(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:i})}},Zt=(e,t,n)=>{const i=k.ce(t,n);return e.dispatchEvent(i),i},Jt=(e,t,n,i,s,o)=>{if(n===i)return;let r=Vt(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=en(n);let u=en(i);a.remove(...c.filter((d=>d&&!u.includes(d)))),a.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in n)i&&i[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in i)n&&i[a]===n[a]||(a.includes("-")?e.style.setProperty(a,i[a]):e.style[a]=i[a])}else if(t!=="key"){if(t==="ref")i&&Ri(i,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const u=H(e);if(u&&u.o&&u.o.t){const d=u.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(i==null||i===!1?i===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,i===!0?"":i))}if(t[0]==="p"&&t.startsWith("prop:")){const a=t.slice(5);try{e[a]=i}catch{}return}{const a=ot(i);if((r||a&&i!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==i&&(e[t]=i);else{const u=i??"";t==="list"?r=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),i==null||i===!1?i===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Gt,t):e.removeAttribute(t)):(!r||4&o||s)&&!a&&e.nodeType===1&&(i=i===!0?"":i,c?e.setAttributeNS(Gt,t,i):e.setAttribute(t,i))}}else if(t=t[2]==="-"?t.slice(3):Vt(T,l)?l.slice(2):l[2]+t.slice(3),n||i){const a=t.endsWith(tn);t=t.replace(Oi,""),n&&k.rel(e,t,n,a),i&&k.ael(e,t,i,a)}}},ki=/\s/,en=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ki):[]),tn="Capture",Oi=new RegExp(tn+"$"),at=(e,t,n)=>{const i=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},o=t.v||{};for(const r of nn(Object.keys(s)))r in o||Jt(i,r,s[r],void 0,n,t.i);for(const r of nn(Object.keys(o)))Jt(i,r,s[r],o[r],n,t.i)};function nn(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var ye=!1,Me=!1,Pe=!1,$=!1,lt=[],ct=[],Fe=(e,t,n)=>{var i;const s=t.m[n];let o,r,l,a=0;if(ye||(Pe=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)o=s.S=T.document.createTextNode(s.h);else if(1&s.i)o=s.S=T.document.createTextNode(""),at(null,s,$);else{if($||($=s.O==="svg"),!T.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=s.S=T.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ye&&2&s.i?"slot-fb":s.O),$&&s.O==="foreignObject"&&($=!1),at(null,s,$),s.m){const c=s.O==="template"?o.content:o;for(a=0;a<s.m.length;++a)r=Fe(e,s,a),r&&c.appendChild(r)}s.O==="svg"?$=!1:o.tagName==="foreignObject"&&($=!0)}return o["s-hn"]=te,3&s.i&&(o["s-sr"]=!0,o["s-cr"]=st,o["s-sn"]=s.j||"",o["s-rf"]=(i=s.v)==null?void 0:i.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const m=[],h=this["s-sn"];f?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let b=0;b<y.length;b++){const g=y[b]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===Q(y)&&p.push(y)})),u?p.filter((y=>y.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(o),l=e&&e.m&&e.m[s],l&&l.O===i.O&&e.S&&it(e.S)),o},it=e=>{x.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(L(t,i,s??null),i["s-sh"]=void 0,se=!0)}x.i&=-2},ie=(e,t)=>{x.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==G&&i["s-ol"]&&(L(U(i).parentNode,i,U(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,se=!0),t&&ie(i,t)}x.i&=-2},ot=(e,t,s,n,i,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===G&&(l=l.shadowRoot),s.O==="template"&&(l=l.content);i<=o;++i)n[i]&&(a=ne(null,s,i),a&&(n[i].S=a,L(l,a,U(t))))},at=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;lt(i),o&&(te=!0,o["s-ol"]?o["s-ol"].remove():ie(o,!0),o.remove())}}},oe=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),U=e=>e&&e["s-ol"]||e,z=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,l=t.h;let r;l==null?(E=a==="svg"||a!=="foreignObject"&&E,a!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",it(t.S.parentElement)),ye(e,t,E),i!==null&&o!==null?((d,h,u,m,p=!1)=>{let f,S,y=0,_=0,b=0,g=0,T=h.length-1,v=h[0],k=h[T],O=m.length-1,$=m[0],q=m[O];const Yt=u.O==="template"?d.content:d;for(;y<=T&&_<=O;)if(v==null)v=h[++y];else if(k==null)k=h[--T];else if($==null)$=m[++_];else if(q==null)q=m[--O];else if(oe(v,$,p))z(v,$,p),v=h[++y],$=m[++_];else if(oe(k,q,p))z(k,q,p),k=h[--T],q=m[--O];else if(oe(v,q,p))v.O!=="slot"&&q.O!=="slot"||ie(v.S.parentNode,!1),z(v,q,p),L(Yt,v.S,k.S.nextSibling),v=h[++y],q=m[--O];else if(oe(k,$,p))v.O!=="slot"&&q.O!=="slot"||ie(k.S.parentNode,!1),z(k,$,p),L(Yt,k.S,v.S),k=h[--T],$=m[++_];else{for(b=-1,g=y;g<=T;++g)if(h[g]&&h[g].$!==null&&h[g].$===$.$){b=g;break}b>=0?(S=h[b],S.O!==$.O?f=ne(h&&h[_],u,b):(z(S,$,p),h[b]=void 0,f=S.S),$=m[++_]):(f=ne(h&&h[_],u,_),$=m[++_]),f&&L(U(v.S).parentNode,f,U(v.S))}y>T?ot(d,m[O+1]==null?null:m[O+1].S,u,m,_,O):_>O&&at(h,y,T)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),ot(n,null,t,o,0,o.length-1)):!s&&i!==null&&at(i,0,i.length-1),E&&a==="svg"&&(E=!1)):(r=n["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(n.data=l)},I=[],rt=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ue(t,a)){let l=I.find((r=>r.k===t));te=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],I.push({N:o,k:t})),t["s-sr"]&&I.map((r=>{Ue(r.k,t["s-sn"])&&(l=I.find((d=>d.k===t)),l&&!r.N&&(r.N=l.N))}))}else I.some((l=>l.k===t))||I.push({k:t})}o.nodeType===1&&rt(o)}},lt=e=>{e.v&&e.v.ref&&Se.push((()=>e.v.ref(null))),e.m&&e.m.map(lt)},rs=(e,t)=>{we.push((()=>e(t)))},L=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=Q(o)||"";return{slotNode:pe(ge(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},ct=(e,t,s=!1)=>{var n,i,o,a,l;const r=e.$hostElement$,d=e.o,h=e.M||J(null,null);var u;const m=(u=t)&&u.O===ve?t:c(null,null,t);if(G=r.tagName,d._&&(m.v=m.v||{},d._.forEach((([p,f])=>{m.v[f]=r[p]}))),s&&m.v)for(const p of Object.keys(m.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(m.v[p]=r[p]);if(m.O=null,m.i|=4,e.M=m,m.S=h.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),be=r["s-cr"],te=!1,z(h,m,s),x.i|=1,se){rt(m.S);for(const p of I){const f=p.k;if(!f["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=f,L(f.parentNode,f["s-ol"]=S,f,s)}}for(const p of I){const f=p.k,S=p.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let b=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;b;){let g=(o=b["s-nr"])!=null?o:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}b=b.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if(L(y,f,_,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const b=C.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));b["s-hn"]=f["s-hn"],b["s-sn"]=f["s-sn"],b["s-sh"]=f["s-sh"],b["s-sr"]=f["s-sr"],b["s-ol"]=f["s-ol"],b["s-ol"]["s-nr"]=b,L(f.parentNode,b,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(te&&We(m.S),x.i&=-2,I.length=0,!W&&!(1&d.i)&&r["s-cr"]){const p=m.S.__childNodes||m.S.childNodes;for(const f of p)if(f["s-hn"]!==G&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(l=f.hidden)!=null&&l),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=C.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],L(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}be=void 0,Se.forEach((p=>p())),Se.length=0,we.forEach((p=>p())),we.length=0},dt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},ae=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);dt(e,e.C);const s=()=>ls(e,t);if(!t)return Zt(s);queueMicrotask((()=>{s()}))},ls=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=Y(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=ut(i,(()=>Y(n,"componentWillRender",void 0,s))),ut(i,(()=>ds(e,n,t)))},ut=(e,t)=>cs(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),cs=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ds=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const l=a.o,r=a.$hostElement$,d=l.i,h=((u,m)=>{var p,f,S;const y=Ye(m),_=Z.get(y);if(!C.document)return y;if(u=u.nodeType===11?u:C.document,_)if(typeof _=="string"){let b,g=F.get(u=u.head||u);if(g||F.set(u,g=new Set),!g.has(y)){b=C.document.createElement("style"),b.textContent=_;const T=(p=x.L)!=null?p:(function(){var v,k,O;return(O=(k=(v=C.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?O:void 0})();if(T!=null&&b.setAttribute("nonce",T),!(1&m.i))if(u.nodeName==="HEAD"){const v=u.querySelectorAll("link[rel=preconnect]"),k=v.length>0?v[v.length-1].nextSibling:u.querySelector("style");u.insertBefore(b,k?.parentNode===u?k:null)}else if("host"in u)if(de){const v=new((f=u.defaultView)!=null?f:u.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),ue?u.adoptedStyleSheets.unshift(v):u.adoptedStyleSheets=[v,...u.adoptedStyleSheets]}else{const v=u.querySelector("style");v?v.textContent=_+v.textContent:u.prepend(b)}else u.append(b);1&m.i&&u.insertBefore(b,null),4&m.i&&(b.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let b=F.get(u);if(b||F.set(u,b=new Set),!b.has(y)){const g=(S=u.defaultView)!=null?S:u.ownerDocument.defaultView;let T;if(_.constructor===g.CSSStyleSheet)T=_;else{T=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)T.insertRule(_.cssRules[v].cssText,v)}ue?u.adoptedStyleSheets.push(T):u.adoptedStyleSheets=[...u.adoptedStyleSheets,T],b.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&d&&(r["s-sc"]=h,r.classList.add(h+"-h"))})(e),us(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],l=()=>hs(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},us=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,ct(e,t,n)}catch(i){V(i,e.$hostElement$)}return null},hs=e=>{const t=e.$hostElement$,s=t,n=e.C;Y(s,"componentDidRender",void 0,t),64&e.i?Y(s,"componentDidUpdate",void 0,t):(e.i|=64,ms(t),Y(s,"componentDidLoad",void 0,t),e.F(t),n||fs()),e.A&&(e.A(),e.A=void 0),512&e.i&&me((()=>ae(e,!1))),e.i&=-517},ht=e=>{var t;{const s=P(e),n=(t=s?.$hostElement$)==null?void 0:t.isConnected;return n&&(18&s.i)==2&&ae(s,!1),n}},fs=()=>{me((()=>Je(C,"appload",{detail:{namespace:"gids-core-web"}})))},Y=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){V(i,n)}},ms=e=>e.classList.add("hydrated"),ft=(e,t,s,n)=>{const i=P(e);if(!i)return;const o=e,a=i.l.get(t),l=i.i,r=o;s=Ze(s,n.t[t][0]);const d=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!d){if(i.l.set(t,s),n.R){const h=n.R[t];h&&h.map((u=>{try{const[[m,p]]=Object.entries(u);(128&l||1&p)&&(r?r[m](s,a,t):i.T.push((()=>{i.D[m](s,a,t)})))}catch(m){V(m,o)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,a,t)===!1&&!(16&l))return;16&l||ae(i,!1)}}},ps=(e,t)=>{var s,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Ke(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([a,[l]])=>{if(31&l||32&l){const{get:r,set:d}=B(i,a)||{};r&&(t.t[a][0]|=2048),d&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return r?r.apply(this):(h=a,P(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(h){const u=P(this);if(u){if(d)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(h=u.l.get(a)),d.apply(this,[Ze(h,l)]),void ft(this,a,h=32&l?this[a]:u.$hostElement$[a],t);ft(this,a,h,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,r,d){x.jmp((()=>{var h;const u=a.get(l),m=P(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==d)return;if(u==null){const _=m?.i;if(m&&_&&!(8&_)&&d!==r){const b=this,g=(h=t.R)==null?void 0:h[l];g?.forEach((T=>{const[[v,k]]=Object.entries(T);b[v]!=null&&(128&_||1&k)&&b[v].call(b,d,r,l)}))}return}const p=o.find((([_])=>_===u)),f=p&&4&p[1][0],S=f&&d===null&&this[u]===void 0;f&&(d=d!==null&&d!=="false");const y=Object.getOwnPropertyDescriptor(i,u);S||d==this[u]||y.get&&!y.set||(this[u]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...o.filter((([l,r])=>31&r[0])).map((([l,r])=>{var d;const h=r[1]||l;return a.set(h,l),512&r[0]&&((d=t._)==null||d.push([l,h])),h}))]))}}return e},M=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=Ke(e.R),s.H=e.H,s.P=e.P,s._=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,U:new Map};l.W=new Promise((d=>l.F=d)),o["s-p"]=[],o["s-rc"]=[];const r=l;o.__stencil__getHostRef=()=>r,512&a.i&&Xt(o,l)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!P(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&x.i)){const a=P(o);if(!a)return;const l=a.o;if(1&a.i)a?.D||a?.W&&a.W.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!C.document)return;const d=r["s-cr"]=C.document.createComment("");d["s-cn"]=!0,L(r,d,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){dt(a,a.C=r);break}}l.t&&Object.entries(l.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(o,r)){const h=o[r];delete o[r],o[r]=h}})),(async(r,d,h)=>{let u;try{if(!(32&d.i)&&(d.i|=32,u=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),u&&u.style)){let f;typeof u.style=="string"&&(f=u.style);const S=Ye(h);Z.has(S)||((y,_,b)=>{let g=Z.get(y);de&&b?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,Z.set(y,g)})(S,f,!!(1&h.i))}const m=d.C,p=()=>ae(d,!0);m&&m["s-rc"]?m["s-rc"].push(p):p()}catch(m){V(m,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(o,a,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{1&x.i||P(o),F.has(o)&&F.delete(o),o.shadowRoot&&F.has(o.shadowRoot)&&F.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ts.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ps(e,s)}catch(n){return V(n),e}},Ce=(e,t)=>t,gs=e=>x.L=e,bs=e=>Object.assign(x,e),mt=new WeakMap;function _s(e,t){let s=mt.get(t);s||(s={i:0,o:{i:0,p:t.tagName},$hostElement$:t},mt.set(t,s)),ct(s,e)}function ii(e){return e}function pt(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=pt(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function N(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=pt(e))&&(n&&(n+=" "),n+=t);return n}const vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>N("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>N("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>N("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:s,destructive:n,loading:i},o,a)=>N("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":s==="full","gids-button--destructive":n,"gids-button--icon-only":o,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),gt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Cs=/\w/,xs=e=>e.replace(Cs,t=>t.toLocaleUpperCase()),bt=(e,t)=>typeof e=="function"?e(t):t?xs(e):e,ks=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):gt(e);if(t==="required")return bt(n&&n.length>0?n:"(required)",o);if(t==="optional")return bt(s&&s.length>0?s:"(optional)",o)},isSentence:gt},Symbol.toStringTag,{value:"Module"})),re=64,_t=10,vt=re/2-_t/2,Ts=re/2,xe=2*Math.PI*vt,Es=`0 0 ${re} ${re}`,$s=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(xe*i/100).toFixed(2),a=(xe-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Ts,circumference:xe,radius:vt,thickness:_t,viewBox:Es},Symbol.toStringTag,{value:"Module"})),yt=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),ke=/[A-Z]/,Te=/[a-z]/,Ee=/[0-9]/,$e=/[^A-Za-z0-9]/,Ns=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const s=t>0?e/t*100:0;return s<=20?"is-weak":s<=40?"is-medium":s<=60?"is-good-enough":s<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:s=0})=>{if(!e||e==="")return 0;let n=0;return t.includes("1-uppercase")&&ke.test(e)&&n++,t.includes("1-lowercase")&&Te.test(e)&&n++,t.includes("1-digit")&&Ee.test(e)&&n++,t.includes("1-special-character")&&$e.test(e)&&n++,t.includes("include-min-length")&&s&&s>0&&e.length>=s&&n++,n},include1DigitReg:Ee,include1LowercaseLetterReg:Te,include1SpecialCharReg:$e,include1UppercaseLetterReg:ke},Symbol.toStringTag,{value:"Module"})),X=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Ne=e=>{const t=[];return e&&e.length>0&&e.map(s=>{s?.requirementRule&&t.push(s.requirementRule)}),t},Os=({rule:e,textMinLength:t=0,text:s})=>{if(!s||s===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ke.test(s);case"1-lowercase":return Te.test(s);case"1-digit":return Ee.test(s);case"1-special-character":return $e.test(s);case"include-min-length":return X({requirementRule:"include-min-length",textMinLength:t})===!0&&s.length>=t;default:return!1}},Oe=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return X({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Ne(t),defaultRequirementsMeterRules:t}},Rs=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Os,getDefaultRulesAndRequirementsForMeters:Oe,getMeterRulesFromRequirements:Ne,minLengthRuleCanBeApplied:X},Symbol.toStringTag,{value:"Module"})),Ls=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),Ms=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),qs=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),Ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},s)=>N("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},s)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>N("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:As}=yt,js=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":As(e)},Symbol.toStringTag,{value:"Module"})),Fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>N("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>N("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),Bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>N("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:Vs}=Ms,zs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":Vs(e)},Symbol.toStringTag,{value:"Module"})),Hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>N("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),St=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},wt=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},Ds=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:s})=>s.includes(t)?wt(e):St(e),getComponentEntryClasses:St,getComponentExitClasses:wt,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),Qs=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>N("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>N("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Re=Symbol("defaultPath"),Ct=Symbol("pathSet"),Le="gids-asset-paths-set";class Us extends EventTarget{#t=new Map;constructor(){super()}#e(t,s){this.#t.set(t,s)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(Le))};haveAssetPathsBeenSet(){return this.#s(Ct)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Re,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(Re,s)}this.#e(Ct,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(Re);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Le,t,{once:!0}),()=>{this.removeEventListener(Le,t)}}}const Me=Symbol.for("GIDS"),Ys=()=>(globalThis[Me]===void 0&&(globalThis[Me]={assetPaths:{}}),globalThis[Me]),Xs=e=>{const t=Ys().assetPaths;return t[e]===void 0&&(t[e]=new Us),t[e]};function le(){return Xs("@ganpatiinfo/gids-web-shared")}function Ks(){return le().haveAssetPathsBeenSet()}function Zs(e,t){le().setAssetPaths(e,t)}function xt(e){return le().getAssetFilePath(e)}function Js(e){return le().onAssetPathsSet(e)}let en=0;const qe=(e,t="gids")=>e||`${t}-${en++}`,tn=e=>e.type==="hidden",sn=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!tn(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},kt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Tt={"icons-other.svg":["accessibility","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Et=new Map;for(const e in Tt)for(const t of Tt[e])Et.set(t,e);function nn(e){return Et.get(e)}function $t(e,t="regular",s){const n=nn(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:on}=Ss,A=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...l})=>{const r=qe(o);let d=a;return d===void 0&&Ks()&&(d=$t(e,s,xt)),c("svg",{ref:h=>{d===void 0&&Js((()=>{(function(u,m,p){if(!u)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",$t(m,p,xt)),u.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:on({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&c("title",{id:r},n||e),d!==void 0?c("use",{href:d}):null)},H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Nt=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Pe=null;const Ie=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ae()})):void 0,Ae=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const l=n.cssRules.item(a);if(l?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(l?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(l)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ie!==void 0&&t!==Pe&&(Pe&&Ie.disconnect(),t instanceof Element&&Ie.observe(t,{childList:!0,characterData:!0,subtree:!0}),Pe=t),H.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},j=()=>(Nt||(Nt=Ae()),H),{getGidsFieldClassNames:an}=Is,Ot=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return c(ve,{key:"a8e81000bf235a842ddf98ef3be3ff5a82201b5d"},c("div",{key:"1c940955fd104dd85a5701f553d2ac5a7ddc14c8",class:an()},c("div",{key:"62e2a77c0661fc5507fe86d5343f85351895b3e7",class:"gids-field__header",hidden:!this._hasLabelContent()},c("slot",{key:"c94c3346cd083969831905e0d0a7091013d32f3d",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),c("div",{key:"ef4ba969b9ac7be32c9c88260e357661eff68d54",class:"gids-field__count","aria-live":"polite"},this.count)),c("div",{key:"cc2ea221e9c9725193238625f571848879e5c656",class:"gids-field__control"},c("slot",{key:"8530e0748d181e0c3b90e7602545cc67b404ef02",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),c("p",{key:"654ce845b3a9b5bfe3833a8122a05f3158a43fe4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?c("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?c("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),c(A,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ot))}))}je();const rn=Ot,Rt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return c(A,{key:"55114b6e5f7f440dcb4a892c0a25b234509b884e",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function ln(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Rt))}))}ln();const cn=Rt,{getGidsSpinnerControlClassNames:dn}=ys,{calculateStrokeDasharray:un,thickness:Lt,radius:Mt,centerPosition:ce,viewBox:hn}=$s,qt=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:un(s,n||0),strokeDashoffset:"0"}),c("svg",{class:dn({size:e,indeterminate:t,value:s}),viewBox:hn,...i},c("circle",{class:"gids-spinner-control__track",cx:ce,cy:ce,r:Mt,"stroke-width":Lt}),c("circle",{style:o,class:"gids-spinner-control__progress",cx:ce,cy:ce,r:Mt,"stroke-width":Lt}))},Pt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const s=t.target;s===this.#t||this._isWithinInteractiveElement(s)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(sn(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return c(Ce,{key:"5d4e79f168da55c3c8dcb9b005919af697faa2e4"},c("slot",{key:"a7c23b37ceaf94f06e53256b431e98e7a3a32602",name:"leadingIcon"}),this.leadingLabel&&c("span",{key:"0ad81289035ada60d67b1df06fb60f703dc27eed",class:"gids-input__label"},this.leadingLabel),c("slot",{key:"f5870caed190d279a95c688243607dfae8f79d60",name:"leadingAccessory"}),c("input",{key:"38ead647fc9069ed8de93293150134048fd6b4f1",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),c("slot",{key:"58ff0f57706d2c9b1e9b41549649c324c60a8f07",name:"trailingAccessory"}),this.trailingLabel&&c("span",{key:"6d400670f8c64f64fbe732e726da4d7569c2c6f3",class:"gids-input__label"},this.trailingLabel),c("slot",{key:"8b20ed8fb9169fd7c0e1415f7bcdf0df03b61534",name:"trailingIcon"}),this.status==="incomplete"&&c(A,{key:"f7d4261f5c8faa51601d3fd6c400f4891847f62c",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&c(A,{key:"6cbdc56ebc1854d0b4f6db30df670f665a9aff3f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&c(qt,{key:"a369d7c3f7e2ac4d631926aefc1a15bf9cbba362",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Fe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Pt))}))}Fe();const fn=Pt,Ge=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,It=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(s=>{const n=(()=>{const i=document.querySelector("gids-overlay-provider");if(!i||!i.shadowRoot)return 1;const o=i.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),a=o[o.length-1];if(!a)return 1;const l=a.offsetHeight,r=getComputedStyle(a).lineHeight,d=r.endsWith("px")?parseFloat(r):0;return Math.ceil(d?l/d:1)})();return n===2?s==="snackbar"?5e3:8e3:n>=3?s==="snackbar"?7e3:1e4:s==="snackbar"?3e3:6e3})(e),At=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Ge(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function mn(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,At))}))}mn();const pn=At,{showGidsOverflowContainerBottomShadow:jt,showGidsOverflowContainerTopShadow:gn}=qs,Ft=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),jt(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(gn(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),jt(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return c("div",{key:"6ec89d7178cf344a3127aa5913df8ff65c523592",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},c("slot",{key:"0cf9630efe8337aa0c7a239fa5f09ca30d368513"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function bn(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Ft))}))}bn();const _n=Ft,{getGidsButtonClassNames:vn}=ws,K=({appearance:e,size:t,destructive:s,loading:n,width:i,leadingIcon:o,trailingIcon:a,as:l,disabled:r,class:d,forceIconOnly:h=!1,...u},m)=>{const p=l||"button",f=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in u||(u.type="button"),c(p,{class:vn({appearance:e,size:t,destructive:s,loading:n,width:i},h||m.length===0&&kt(o)&&!kt(a),d),disabled:p==="button"?r:void 0,...u},c("span",{class:"gids-button__content"},o,m),n&&c(qt,{size:f,indeterminate:!0}),a)},{getGidsSnackbarContainerClassNames:yn,getSnackbarContainerIconNames:Sn}=Hs,wn=({appearance:e="default",children:t,button:s,class:n,...i})=>{const o=Sn(e);return c("div",{...i,class:yn({appearance:e},n)},c("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?c(A,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?c("p",null,t):t),s)},{getGidsNotificationContainerClassNames:Cn,getNotificationContainerIconNames:xn}=Qs,kn=({notificationTitle:e,children:t,button:s,appearance:n="default",pronunciation:i="standard",onCloseNotificationClick:o,class:a,...l})=>{const r=xn(n);return c("div",{class:Cn({appearance:n},a),...l},n!=="default"&&r?c("div",{class:"gids-notification-container__leading-icon-wrapper"},c(A,{size:"md",name:r,alt:"",appearance:"filled"})):null,c("div",{class:"gids-notification-container__content-wrapper"},c("div",{class:"gids-notification-container__top-content"},c("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?c("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?c("p",null,t):t:null),i==="standard"?c("div",{class:"gids-notification-container__cross-btn-wrapper"},c(K,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:c(A,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),s?c("div",{class:"gids-notification-container__bottom-content"},s):null))},{getComponentClasses:Tn,getComponentStackClasses:En}=Ds,Gt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,s)=>{const{id:n,message:i,appearance:o,buttonLabel:a,onButtonClick:l}=t;return c(wn,{key:n,class:s,children:i,appearance:o,button:a!=null&&a!==""?c(K,{appearance:"subtle",onClick:l},a):void 0})},this._renderNotification=(t,s)=>{const{id:n,notificationTitle:i,message:o,pronunciation:a,appearance:l,buttonLabel:r,onButtonClick:d,timerInMs:h}=t;return c(kn,{key:n,class:s,notificationTitle:i,children:o,pronunciation:a,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,h||0,!0),button:r!=null&&r!==""?c(K,{appearance:"default",size:"sm",onClick:d},r):void 0})},this._renderComponent=t=>{const{componentName:s,position:n="bottom-center",id:i}=t,o=Tn({position:n,id:i,exitingComponents:this._exitingComponents});return s==null||s==="snackbar"?this._renderSnackbar(t,o):s==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Ge(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const s=setTimeout((()=>(clearTimeout(s),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:s,buttonLabel:n,onButtonClick:i,position:o,componentName:a,...l}=e,r={id:""+(Date.now()+Math.random()),message:s,appearance:t,buttonLabel:n,onButtonClick:i,position:o,componentName:a,...l};this._componentQueue=[...this._componentQueue,r],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:s,pronunciation:n,message:i,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...d}=e,h={id:""+(Date.now()+Math.random()),notificationTitle:s,message:i,pronunciation:n,appearance:t,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...d};this._componentQueue=[...this._componentQueue,h],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,s){return s||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==e.id)),this._allowedComponentQueue=[],n()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((s=>requestAnimationFrame((()=>s()))));const t=It({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const s=It({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,s,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return c(Ce,{key:"f80c6557d382dc5af3ddcb77f20c58ffa9acbd53"},c("slot",{key:"1d763f5cedecd8b8a2e0b7d1fb207e9ffde7ad97"}),this._isRoot()?c("div",{class:En({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function $n(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,Gt))}))}$n();const Nn=Gt,{getIndicatorText:On}=ks,{getGidsLabelClassNames:Rn}=vs,Bt=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...d},h)=>{const u=On({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:r});return c("div",{class:Rn({disabled:e},l),...d},c("label",{htmlFor:o,id:a},h,u&&c("span",{class:"gids-label__field-requirement"},u)),i)},{getGidsDismissButtonClassNames:Ln}=Ps,Vt=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:o,...a})=>c("button",{class:Ln({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":o,...a},c(A,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:Mn}=Fs,{getStrengthMeterScore:qn,getColorModifierByScore:Pn}=Ns,In=({text:e,textMinLength:t,meterRules:s=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const i=(o,a,l)=>c("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?a:""].filter(Boolean).join(" ")});return s.length>0?c("div",{class:Mn(n)},(()=>{const o=s.length,a=qn({text:e,textMinLength:t,meterRules:s}),l=Pn({textScore:a,maxScore:o});return Array.from({length:o},((r,d)=>{const h=d+1,u=h<=a;return s[h]==="include-min-length"?X({requirementRule:"include-min-length",textMinLength:t})?i(h,l,u):null:i(h,l,u)}))})()):null},{getGidsRequirementsMeterLabelClassNames:An}=Gs,{getRequirementsMeterLabelLeadingIcon:jn}=Ls,Fn=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,o=jn(s);return c("div",{class:An({status:s},i)},n&&s&&o?c(A,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?c("span",null,t):null)},{checkRequirementRuleSatisfied:Gn}=Rs,{getGidsRequirementsMeterClassNames:Bn}=Bs,Vn=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(o,a)=>c(Fn,{status:a?"success":"error",label:o.requirementText});return c("div",{class:Bn(n)},e.map((o=>{if(o?.requirementText!=null&&o?.requirementRule!=null){const a=Gn({rule:o.requirementRule,textMinLength:s,text:t});return o.requirementRule==="include-min-length"?X({requirementRule:o.requirementRule,textMinLength:s})===!0?i(o,a):null:i(o,a)}return null})))},{inputToGidsFieldStatusForPassword:zn}=zs,zt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=ee(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=ee(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=qe(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?Ne(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{ht(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=Oe(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=Oe(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0,i=this.showRevealPasswordButton,o={...t},a=o?.placeholder!==void 0&&o.placeholder!==null&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,r=this.meterRules,d=this.textMinLength!==void 0?this.textMinLength:8;return c(Ce,{key:"ac0547218330d8f736228ea80758fa093106c83b"},c("gids-field",{key:"98c060a626789dbd002f5792cd80f1d774700ce8",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:zn(this.status)},c(Bt,{key:"c3bc15ae28913dd303c6f1ac115a263eb6c957d6",slot:"label",disabled:this.disabled,info:c("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),c("gids-input",{key:"27e62b83ad6ad35b88478e2098e27b90955831c8",ref:h=>this.#e=h,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...o,placeholder:a,type:l?"text":"password",id:s,maxLength:this.maxLength}},c("slot",{key:"be45ade51a541676a5b2e234fcbee46e60cde86c",name:"leadingIcon"}),c("slot",{key:"6cf1f874d8f94f0a47006f05784cbc96c6364a29",name:"leadingAccessory"}),c("div",{key:"8243a614ec6fc1d2b58f89c346123829b6ce4350",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&c(Vt,{key:"5a404ec6fbecf9d383bf11a1d06371d79b5bd1be",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&c(K,{key:"c6cac51598118d8e6fed039a08a5f6d7ad4ae3ac",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),c("div",{key:"dea7d30bac19ece0988437a663743020be7b9c47",class:"gids-password-field__meters-container"},c(In,{key:"0cd888450a7760a8c80b73ded9ccd91e2b30c39f",meterRules:r,text:this.value,textMinLength:d}),c(Vn,{key:"f5960940724dabab47fceb265ae369d1ce23e9aa",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:d})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function Hn(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,zt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Hn();const Dn=zt,{getGidsScrimClassNames:Ht}=Ws,Dt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ht(e)}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ht(this.extraClasses)}render(){return c("div",{key:"3a18dab725b1a061036e23781aaa55040bf8464c",class:this.activeClasses,part:"root"},c("slot",{key:"81e1e0fa050d3ccb490cbe082f7a67422957096a"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Qn(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,Dt))}))}Qn();const Wn=Dt,Qt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Ge(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function Un(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Qt))}))}Un();const Yn=Qt,{formatCharCount:Xn}=yt,{inputToGidsFieldStatus:Kn}=js,Wt=M(class extends R{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=ee(this,"gidsTextFieldClear"),this.#t=qe(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{ht(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0;return c("gids-field",{key:"79a6f89effd87741d2b07df6aeb47c7dca810738",disabled:this.disabled,count:Xn(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Kn(this.status)},c(Bt,{key:"04c15dd04008777bd1eff8b3e94fd26076fd0a6c",slot:"label",disabled:this.disabled,info:c("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),c("gids-input",{key:"ae41600eca7cc769e3a4e271bc7d4718c5cb9069",ref:i=>this.#e=i,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:s,maxLength:this.maxLength}},c("slot",{key:"0a1851ba9e1cb1deed77f88327e5411c0577c5d0",name:"leadingIcon"}),c("slot",{key:"140610e53fb52e6b24e0d91361c688e996de3849",name:"leadingAccessory"}),n&&c(Vt,{key:"48b5b8d8adaa5693e57d6aca9eff32ca72a2c051",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),c("slot",{key:"679c26844c467e15e144c393df13652dbe498421",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function Zn(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,Wt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Zn();const Jn=Wt,Ut=M(class extends R{get selected(){return this.#t??this.defaultSelected}set selected(e){this.#t=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=ee(this,"select"),this._toggle=this._toggle.bind(this)}#t;connectedCallback(){const e=j();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return c(ve,{key:"87505762161da81762e873e7c6318c03d9c17ef5"},c("style",{key:"4e4c082b5435ca88e816310035c2989847d4f3de"},`:host {
5
+ `);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(_=>{const p=[];for(let v=0;v<_.length;v++){const b=_[v]["s-nr"]||void 0;b&&b.isConnected&&p.push(b)}return p})(y.childNodes)).forEach((_=>{h===ve(_)&&m.push(_)})),d?m.filter((_=>_.nodeType===1)):m}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===s.O&&e.S&&sn(e.S)),o},sn=e=>{k.i|=1;const t=e.closest(te.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),i=Array.from(e.__childNodes||e.childNodes);for(const s of n?i.reverse():i)s["s-sh"]!=null&&(I(t,s,n??null),s["s-sh"]=void 0,Pe=!0)}k.i&=-2},Ie=(e,t)=>{k.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let i=e;for(;i=i.nextSibling;)i&&i["s-sn"]===e["s-sn"]&&i["s-sh"]===te&&n.push(i)}for(let i=n.length-1;i>=0;i--){const s=n[i];s["s-hn"]!==te&&s["s-ol"]&&(I(_e(s).parentNode,s,_e(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Pe=!0),t&&Ie(s,t)}k.i&=-2},on=(e,t,n,i,s,o)=>{let r,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===te&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);s<=o;++s)i[s]&&(r=Fe(null,n,s),r&&(i[s].S=r,I(l,r,_e(t))))},rn=(e,t,n)=>{for(let i=t;i<=n;++i){const s=e[i];if(s){const o=s.S;ln(s),o&&(Me=!0,o["s-ol"]?o["s-ol"].remove():Ie(o,!0),o.remove())}}},qe=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),_e=e=>e&&e["s-ol"]||e,ue=(e,t,n=!1)=>{const i=t.S=e.S,s=e.m,o=t.m,r=t.O,l=t.h;let a;l==null?($=r==="svg"||r!=="foreignObject"&&$,r!=="slot"||ye||e.j!==t.j&&(t.S["s-sn"]=t.j||"",sn(t.S.parentElement)),at(e,t,$),s!==null&&o!==null?((c,u,d,f,m=!1)=>{let h,y,_=0,p=0,v=0,b=0,S=u.length-1,w=u[0],x=u[S],C=f.length-1,O=f[0],R=f[C];const F=d.O==="template"?c.content:c;for(;_<=S&&p<=C;)if(w==null)w=u[++_];else if(x==null)x=u[--S];else if(O==null)O=f[++p];else if(R==null)R=f[--C];else if(qe(w,O,m))ue(w,O,m),w=u[++_],O=f[++p];else if(qe(x,R,m))ue(x,R,m),x=u[--S],R=f[--C];else if(qe(w,R,m))w.O!=="slot"&&R.O!=="slot"||Ie(w.S.parentNode,!1),ue(w,R,m),I(F,w.S,x.S.nextSibling),w=u[++_],R=f[--C];else if(qe(x,O,m))w.O!=="slot"&&R.O!=="slot"||Ie(x.S.parentNode,!1),ue(x,O,m),I(F,x.S,w.S),x=u[--S],O=f[++p];else{for(v=-1,b=_;b<=S;++b)if(u[b]&&u[b].$!==null&&u[b].$===O.$){v=b;break}v>=0?(y=u[v],y.O!==O.O?h=Fe(u&&u[p],d,v):(ue(y,O,m),u[v]=void 0,h=y.S),O=f[++p]):(h=Fe(u&&u[p],d,p),O=f[++p]),h&&I(_e(w.S).parentNode,h,_e(w.S))}_>S?on(c,f[C+1]==null?null:f[C+1].S,d,f,p,C):p>C&&rn(u,_,S)})(i,s,t,o,n):o!==null?(e.h!==null&&(i.textContent=""),on(i,null,t,o,0,o.length-1)):!n&&s!==null&&rn(s,0,s.length-1),$&&r==="svg"&&($=!1)):(a=i["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(i.data=l)},W=[],an=e=>{let t,n,i;const s=e.__childNodes||e.childNodes;for(const o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(i=n.length-1;i>=0;i--)if(t=n[i],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Qt(t,r)){let l=W.find((a=>a.k===t));Me=!0,t["s-sn"]=t["s-sn"]||r,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],W.push({N:o,k:t})),t["s-sr"]&&W.map((a=>{Qt(a.k,t["s-sn"])&&(l=W.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else W.some((l=>l.k===t))||W.push({k:t})}o.nodeType===1&&an(o)}},ln=e=>{e.v&&e.v.ref&&lt.push((()=>e.v.ref(null))),e.m&&e.m.map(ln)},Ri=(e,t)=>{ct.push((()=>e(t)))},I=(e,t,n,i)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:s}=(function(o,r){var l;if(!(r=r||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=o["s-sn"]=ve(o)||"";return{slotNode:nt(it(r,"childNodes"),r.tagName,a)[0],slotName:a}})(t);return s&&!i&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},cn=(e,t,n=!1)=>{var i,s,o,r,l;const a=e.$hostElement$,c=e.o,u=e.M||$e(null,null);var d;const f=(d=t)&&d.O===rt?t:g(null,null,t);if(te=a.tagName,c._&&(f.v=f.v||{},c._.forEach((([m,h])=>{f.v[h]=a[m]}))),n&&f.v)for(const m of Object.keys(f.v))a.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=a[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=a.shadowRoot||a,ye=!(!(1&c.i)||128&c.i),st=a["s-cr"],Me=!1,ue(u,f,n),k.i|=1,Pe){an(f.S);for(const m of W){const h=m.k;if(!h["s-ol"]&&T.document){const y=T.document.createTextNode("");y["s-nr"]=h,I(h.parentNode,h["s-ol"]=y,h,n)}}for(const m of W){const h=m.k,y=m.N;if(h.nodeType===1&&n&&(h["s-ih"]=(i=h.hidden)!=null&&i),y){const _=y.parentNode;let p=y.nextSibling;if(p&&p.nodeType===1){let v=(s=h["s-ol"])==null?void 0:s.previousSibling;for(;v;){let b=(o=v["s-nr"])!=null?o:null;if(b&&b["s-sn"]===h["s-sn"]&&_===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===h||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){p=b;break}}v=v.previousSibling}}if((!p&&_!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==p)&&h!==p){if(I(_,h,p,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const v=T.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=h["s-hn"],v["s-sn"]=h["s-sn"],v["s-sh"]=h["s-sh"],v["s-sr"]=h["s-sr"],v["s-ol"]=h["s-ol"],v["s-ol"]["s-nr"]=v,I(h.parentNode,v,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Me&&Wt(f.S),k.i&=-2,W.length=0,!ye&&!(1&c.i)&&a["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==te&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(l=h.hidden)!=null&&l),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const y=T.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],I(h.parentNode,y,h,n),h.parentNode.removeChild(h)}}}st=void 0,lt.forEach((m=>m())),lt.length=0,ct.forEach((m=>m())),ct.length=0},dn=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((i=>e.A=()=>{t["s-p"].splice(n-1,1),i()})))}},De=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);dn(e,e.C);const n=()=>Li(e,t);if(!t)return _i(n);queueMicrotask((()=>{n()}))},Li=(e,t)=>{const n=e.$hostElement$,i=n;if(!i)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=we(i,t?"componentWillLoad":"componentWillUpdate",void 0,n),s=un(s,(()=>we(i,"componentWillRender",void 0,n))),un(s,(()=>$i(e,i,t)))},un=(e,t)=>Ai(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Ai=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$i=async(e,t,n)=>{var i;const s=e.$hostElement$,o=s["s-rc"];n&&(r=>{const l=r.o,a=r.$hostElement$,c=l.i,u=((d,f)=>{var m,h,y;const _=Ut(f),p=Ae.get(_);if(!T.document)return _;if(d=d.nodeType===11?d:T.document,p)if(typeof p=="string"){let v,b=K.get(d=d.head||d);if(b||K.set(d,b=new Set),!b.has(_)){v=T.document.createElement("style"),v.textContent=p;const S=(m=k.L)!=null?m:(function(){var w,x,C;return(C=(x=(w=T.document.head)==null?void 0:w.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?C:void 0})();if(S!=null&&v.setAttribute("nonce",S),!(1&f.i))if(d.nodeName==="HEAD"){const w=d.querySelectorAll("link[rel=preconnect]"),x=w.length>0?w[w.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,x?.parentNode===d?x:null)}else if("host"in d)if(Ke){const w=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;w.replaceSync(p),Ze?d.adoptedStyleSheets.unshift(w):d.adoptedStyleSheets=[w,...d.adoptedStyleSheets]}else{const w=d.querySelector("style");w?w.textContent=p+w.textContent:d.prepend(v)}else d.append(v);1&f.i&&d.insertBefore(v,null),4&f.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(_)}}else{let v=K.get(d);if(v||K.set(d,v=new Set),!v.has(_)){const b=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let S;if(p.constructor===b.CSSStyleSheet)S=p;else{S=new b.CSSStyleSheet;for(let w=0;w<p.cssRules.length;w++)S.insertRule(p.cssRules[w].cssText,w)}Ze?d.adoptedStyleSheets.push(S):d.adoptedStyleSheets=[...d.adoptedStyleSheets,S],v.add(_)}}return _})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=u,a.classList.add(u+"-h"))})(e),Ni(e,t,s,n),o&&(o.map((r=>r())),s["s-rc"]=void 0);{const r=(i=s["s-p"])!=null?i:[],l=()=>Mi(e);r.length===0?l():(Promise.all(r).then(l).catch(l),e.i|=4,r.length=0)}},Ni=(e,t,n,i)=>{try{t=t.render(),e.i&=-17,e.i|=2,cn(e,t,i)}catch(s){de(s,e.$hostElement$)}return null},Mi=e=>{const t=e.$hostElement$,n=t,i=e.C;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,Fi(t),we(n,"componentDidLoad",void 0,t),e.F(t),i||Pi()),e.A&&(e.A(),e.A=void 0),512&e.i&&tt((()=>De(e,!1))),e.i&=-517},hn=e=>{var t;{const n=H(e),i=(t=n?.$hostElement$)==null?void 0:t.isConnected;return i&&(18&n.i)==2&&De(n,!1),i}},Pi=()=>{tt((()=>Zt(T,"appload",{detail:{namespace:"gids-core-web"}})))},we=(e,t,n,i)=>{if(e&&e[t])try{return e[t](n)}catch(s){de(s,i)}},Fi=e=>e.classList.add("hydrated"),fn=(e,t,n,i)=>{const s=H(e);if(!s)return;const o=e,r=s.l.get(t),l=s.i,a=o;n=Kt(n,i.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(s.l.set(t,n),i.R){const u=i.R[t];u&&u.map((d=>{try{const[[f,m]]=Object.entries(d);(128&l||1&m)&&(a?a[f](n,r,t):s.T.push((()=>{s.D[f](n,r,t)})))}catch(f){de(f,o)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,r,t)===!1&&!(16&l))return;16&l||De(s,!1)}}},Ii=(e,t)=>{var n,i;const s=e.prototype;{e.watchers&&!t.R&&(t.R=Yt(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((n=t.t)!=null?n:{});o.map((([r,[l]])=>{if(31&l||32&l){const{get:a,set:c}=ce(s,r)||{};a&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return a?a.apply(this):(u=r,H(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(u){const d=H(this);if(d){if(c)return(32&l?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[Kt(u,l)]),void fn(this,r,u=32&l?this[r]:d.$hostElement$[r],t);fn(this,r,u,t)}}})}}));{const r=new Map;s.attributeChangedCallback=function(l,a,c){k.jmp((()=>{var u;const d=r.get(l),f=H(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const p=f?.i;if(f&&p&&!(8&p)&&c!==a){const v=this,b=(u=t.R)==null?void 0:u[l];b?.forEach((S=>{const[[w,x]]=Object.entries(S);v[w]!=null&&(128&p||1&x)&&v[w].call(v,c,a,l)}))}return}const m=o.find((([p])=>p===d)),h=m&&4&m[1][0],y=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const _=Object.getOwnPropertyDescriptor(s,d);y||c==this[d]||_.get&&!_.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.R)!=null?i:{}),...o.filter((([l,a])=>31&a[0])).map((([l,a])=>{var c;const u=a[1]||l;return r.set(u,l),512&a[0]&&((c=t._)==null||c.push([l,u])),u}))]))}}return e},N=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Yt(e.R),n.H=e.H,n.P=e.P,n._=[];const i=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const l={i:0,$hostElement$:o,o:r,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),o["s-p"]=[],o["s-rc"]=[];const a=l;o.__stencil__getHostRef=()=>a,512&r.i&&vi(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!H(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&k.i)){const r=H(o);if(!r)return;const l=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&l.i&&(a=>{if(!T.document)return;const c=a["s-cr"]=T.document.createComment("");c["s-cn"]=!0,I(a,c,a.firstChild)})(o);{let a=o;for(;a=a.parentNode||a.host;)if(a["s-p"]){dn(r,r.C=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,a)){const u=o[a];delete o[a],o[a]=u}})),(async(a,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const y=Ut(u);Ae.has(y)||((_,p,v)=>{let b=Ae.get(_);Ke&&v?(b=b||new CSSStyleSheet,typeof b=="string"?b=p:b.replaceSync(p)):b=p,Ae.set(_,b)})(y,h,!!(1&u.i))}const f=c.C,m=()=>De(c,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){de(f,a),c.A&&(c.A(),c.A=void 0),c.F&&c.F(a)}})(o,r,l)}}})(this),i&&i.call(this)},disconnectedCallback(){(async o=>{1&k.i||H(o),K.has(o)&&K.delete(o),o.shadowRoot&&K.has(o.shadowRoot)&&K.delete(o.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xi.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ii(e,n)}catch(i){return de(i),e}},Se=(e,t)=>t,qi=e=>k.L=e,Di=e=>Object.assign(k,e),mn=new WeakMap;function ji(e,t){let n=mn.get(t);n||(n={i:0,o:{i:0,p:t.tagName},$hostElement$:t},mn.set(t,n)),cn(n,e)}function xr(e){return e}function gn(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=gn(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function P(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=gn(e))&&(i&&(i+=" "),i+=t);return i}const Vi=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>P("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Gi=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},i)=>P("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,i)},Symbol.toStringTag,{value:"Module"})),zi=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>P("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Bi=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:i,positive:s,loading:o},r,l)=>P("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":i&&!s,"gids-button--positive":s&&!i,"gids-button--icon-only":r,"gids-button--loading":o},l)},Symbol.toStringTag,{value:"Module"})),pn=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Hi=/\w/,Wi=e=>e.replace(Hi,t=>t.toLocaleUpperCase()),bn=(e,t)=>typeof e=="function"?e(t):t?Wi(e):e,Qi=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,isLabelSentence:s})=>{const o=s?s(e):pn(e);if(t==="required")return bn(i&&i.length>0?i:"(required)",o);if(t==="optional")return bn(n&&n.length>0?n:"(optional)",o)},isSentence:pn},Symbol.toStringTag,{value:"Module"})),je=64,vn=10,yn=je/2-vn/2,Ui=je/2,dt=2*Math.PI*yn,Xi=`0 0 ${je} ${je}`,Yi=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(n,e))/n*100,o=(dt*s/100).toFixed(2),r=(dt-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Ui,circumference:dt,radius:yn,thickness:vn,viewBox:Xi},Symbol.toStringTag,{value:"Module"})),_n=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),ut=/[A-Z]/,ht=/[a-z]/,ft=/[0-9]/,mt=/[^A-Za-z0-9]/,Ki=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const n=t>0?e/t*100:0;return n<=20?"is-weak":n<=40?"is-medium":n<=60?"is-good-enough":n<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:n=0})=>{if(!e||e==="")return 0;let i=0;return t.includes("1-uppercase")&&ut.test(e)&&i++,t.includes("1-lowercase")&&ht.test(e)&&i++,t.includes("1-digit")&&ft.test(e)&&i++,t.includes("1-special-character")&&mt.test(e)&&i++,t.includes("include-min-length")&&n&&n>0&&e.length>=n&&i++,i},include1DigitReg:ft,include1LowercaseLetterReg:ht,include1SpecialCharReg:mt,include1UppercaseLetterReg:ut},Symbol.toStringTag,{value:"Module"})),xe=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,gt=e=>{const t=[];return e&&e.length>0&&e.map(n=>{n?.requirementRule&&t.push(n.requirementRule)}),t},Zi=({rule:e,textMinLength:t=0,text:n})=>{if(!n||n===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ut.test(n);case"1-lowercase":return ht.test(n);case"1-digit":return ft.test(n);case"1-special-character":return mt.test(n);case"include-min-length":return xe({requirementRule:"include-min-length",textMinLength:t})===!0&&n.length>=t;default:return!1}},pt=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return xe({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:gt(t),defaultRequirementsMeterRules:t}},Ji=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Zi,getDefaultRulesAndRequirementsForMeters:pt,getMeterRulesFromRequirements:gt,minLengthRuleCanBeApplied:xe},Symbol.toStringTag,{value:"Module"})),es=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),ns=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},n)=>P("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},n)},Symbol.toStringTag,{value:"Module"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>P("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:os}=_n,rs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":os(e)},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>P("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>P("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>P("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:ds}=ts,us=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":ds(e)},Symbol.toStringTag,{value:"Module"})),hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>P("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),wn=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},Sn=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},fs=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:n})=>n.includes(t)?Sn(e):wn(e),getComponentEntryClasses:wn,getComponentExitClasses:Sn,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>P("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>P("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),bt=Symbol("defaultPath"),xn=Symbol("pathSet"),vt="gids-asset-paths-set";class ps extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#n(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(vt))};haveAssetPathsBeenSet(){return this.#n(xn)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(bt,t);else{for(const i in t)this.#e(i,t[i]);n&&this.#e(bt,n)}this.#e(xn,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const n=this.#n(t);if(n===null){const i=this.#n(bt);if(i!==null)return`${i}${i.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(vt,t,{once:!0}),()=>{this.removeEventListener(vt,t)}}}const yt=Symbol.for("GIDS"),bs=()=>(globalThis[yt]===void 0&&(globalThis[yt]={assetPaths:{}}),globalThis[yt]),vs=e=>{const t=bs().assetPaths;return t[e]===void 0&&(t[e]=new ps),t[e]};function Ve(){return vs("@ganpatiinfo/gids-web-shared")}function ys(){return Ve().haveAssetPathsBeenSet()}function _s(e,t){Ve().setAssetPaths(e,t)}function En(e){return Ve().getAssetFilePath(e)}function ws(e){return Ve().onAssetPathsSet(e)}let Ss=0;const _t=(e,t="gids")=>e||`${t}-${Ss++}`,xs=e=>e.type==="hidden",Es=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!xs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Cn=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Tn={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},kn=new Map;for(const e in Tn)for(const t of Tn[e])kn.set(t,e);function Cs(e){return kn.get(e)}function On(e,t="regular",n){const i=Cs(e);let s=i??"";return n&&i&&(s=n(i)??i),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ts}=zi,Q=({name:e,size:t,appearance:n,alt:i,class:s,titleId:o,src:r,...l})=>{const a=_t(o);let c=r;return c===void 0&&ys()&&(c=On(e,n,En)),g("svg",{ref:u=>{c===void 0&&ws((()=>{(function(d,f,m){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",On(f,m,En)),d.appendChild(h)})(u,e,n)}))},width:"16",height:"16",class:Ts({size:t},s),role:"img","aria-hidden":i===""?"true":void 0,"aria-labelledby":i===""?void 0:a,...l},i!==""&&g("title",{id:a},i||e),c!==void 0?g("use",{href:c}):null)},he=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Rn=!1;he&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(he):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let wt=null;const St=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{xt()})):void 0,xt=()=>{if(he===void 0)return!1;const e=(()=>{if(he===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const i=document.styleSheets.item(n);if(i)try{let s=-1,o=0;for(let r=0;r<i.cssRules.length;r++){const l=i.cssRules.item(r);if(l?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){o=r-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:o,rules:t,styleSheet:i}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return St!==void 0&&t!==wt&&(wt&&St.disconnect(),t instanceof Element&&St.observe(t,{childList:!0,characterData:!0,subtree:!0}),wt=t),he.replaceSync((n=>n.rules.map((i=>i.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:i,originalRulesCount:s,styleSheet:o}=n;for(let r=0;r<s;r++)o.deleteRule(i)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},G=()=>(Rn||(Rn=xt()),he),{getGidsFieldClassNames:ks}=ss,Ln=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],n=this._findTextControl(t);this._attachControlElement(n)},this._handleControlValueInput=t=>{if(!this._controlTouched){const n=t.target;n instanceof HTMLInputElement&&(n.type==="checkbox"||n.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,n=this._getCurrentStatus(),i=["gids-field__status-text"];if(e){const s=this._getStatusModifierClass(n,"gids-field__status-text");s!=null&&i.push(s)}return g(rt,{key:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},g("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:ks()},g("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},g("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),g("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),g("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},g("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),g("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?g("p",{class:i.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(n),t!==void 0?g("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const n=["gids-field__status-icon"],i=this._getStatusModifierClass(e,"gids-field__status-icon");i!=null&&n.push(i);let s=e;return e==="error"&&(s="danger"),e==="success"&&(s="positive"),g(Q,{appearance:"filled",size:"sm",alt:"",name:t,class:n.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${s})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((n=>{n.addEventListener("input",this._handleControlValueInput),n.addEventListener("change",this._handleControlValueInput),n.addEventListener("blur",this._handleControlBlur,!0),n.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const n=t.elements.namedItem(e.name);if(n instanceof RadioNodeList){const i=Array.from(n).filter((s=>s instanceof HTMLInputElement&&s.type==="radio"&&this._el.contains(s)));if(i.length>0)return i}}if(e.name!=null){const n=`input[type="radio"][name="${CSS.escape(e.name)}"]`,i=Array.from(this._el.querySelectorAll(n));if(i.length>0)return i}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const n=t,i=this._asTextControl(n);if(i!==null)return i;const s=n.querySelector("input, textarea");if(s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement)return s}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Et(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ln))}))}Et();const Os=Ln,An=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return g(Q,{key:"3033afda529cd2143bd0d3c3ca5c985b4b950eae",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Rs(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,An))}))}Rs();const Ls=An,{getGidsSpinnerControlClassNames:As}=Gi,{calculateStrokeDasharray:$s,thickness:$n,radius:Nn,centerPosition:Ge,viewBox:Ns}=Yi,Mn=({size:e,indeterminate:t,value:n,max:i,...s})=>{let o;return t||(o={strokeDashArray:$s(n,i||0),strokeDashoffset:"0"}),g("svg",{class:As({size:e,indeterminate:t,value:n}),viewBox:Ns,...s},g("circle",{class:"gids-spinner-control__track",cx:Ge,cy:Ge,r:Nn,"stroke-width":$n}),g("circle",{style:o,class:"gids-spinner-control__progress",cx:Ge,cy:Ge,r:Nn,"stroke-width":$n}))},Pn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Es(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return g(Se,{key:"c1e035111a8a80ef0b442bc0298785f0c7445113"},g("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&g("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),g("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),g("input",{key:"2bc7f84858a8533f33c66834ad212c38ad698075",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),g("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&g("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),g("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&g(Q,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&g(Q,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&g(Mn,{key:"4dd22cd62d87ff444794fc8f1c4f0cc78e14738a",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Ct(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Pn))}))}Ct();const Ms=Pn,Tt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Fn=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(n=>{const i=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const o=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),r=o[o.length-1];if(!r)return 1;const l=r.offsetHeight,a=getComputedStyle(r).lineHeight,c=a.endsWith("px")?parseFloat(a):0;return Math.ceil(c?l/c:1)})();return i===2?n==="snackbar"?5e3:8e3:i>=3?n==="snackbar"?7e3:1e4:n==="snackbar"?3e3:6e3})(e),In=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Tt(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function Ps(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,In))}))}Ps();const Fs=In,{showGidsOverflowContainerBottomShadow:qn,showGidsOverflowContainerTopShadow:Is}=ns,Dn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),qn(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(Is(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),qn(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return g("div",{key:"0a7916237558157e7122aeb05de6bf2eaaf5df77",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},g("slot",{key:"fda73f846c0ec7371d57b7a8e379c028e0feaa98"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function qs(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Dn))}))}qs();const Ds=Dn,{getGidsButtonClassNames:js}=Bi,Ee=({appearance:e,size:t,destructive:n,positive:i,loading:s,width:o,leadingIcon:r,trailingIcon:l,as:a,disabled:c,class:u,forceIconOnly:d=!1,...f},m)=>{const h=a||"button",y=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in f||(f.type="button"),g(h,{class:js({appearance:e,size:t,destructive:n,loading:s,width:o,positive:i},d||m.length===0&&Cn(r)&&!Cn(l),u),disabled:h==="button"?c:void 0,...f},g("span",{class:"gids-button__content"},r,m),s&&g(Mn,{size:y,indeterminate:!0}),l)},{getGidsSnackbarContainerClassNames:Vs,getSnackbarContainerIconNames:Gs}=hs,zs=({appearance:e="default",children:t,button:n,class:i,...s})=>{const o=Gs(e);return g("div",{...s,class:Vs({appearance:e},i)},g("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?g(Q,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?g("p",null,t):t),n)},{getGidsNotificationContainerClassNames:Bs,getNotificationContainerIconNames:Hs}=ms,Ws=({notificationTitle:e,children:t,button:n,appearance:i="default",pronunciation:s="standard",onCloseNotificationClick:o,class:r,...l})=>{const a=Hs(i);return g("div",{class:Bs({appearance:i},r),...l},i!=="default"&&a?g("div",{class:"gids-notification-container__leading-icon-wrapper"},g(Q,{size:"md",name:a,alt:"",appearance:"filled"})):null,g("div",{class:"gids-notification-container__content-wrapper"},g("div",{class:"gids-notification-container__top-content"},g("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?g("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?g("p",null,t):t:null),s==="standard"?g("div",{class:"gids-notification-container__cross-btn-wrapper"},g(Ee,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:g(Q,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),n?g("div",{class:"gids-notification-container__bottom-content"},n):null))},{getComponentClasses:Qs,getComponentStackClasses:Us}=fs,jn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,n)=>{const{id:i,message:s,appearance:o,buttonLabel:r,onButtonClick:l}=t;return g(zs,{key:i,class:n,children:s,appearance:o,button:r!=null&&r!==""?g(Ee,{appearance:"subtle",onClick:l},r):void 0})},this._renderNotification=(t,n)=>{const{id:i,notificationTitle:s,message:o,pronunciation:r,appearance:l,buttonLabel:a,onButtonClick:c,timerInMs:u}=t;return g(Ws,{key:i,class:n,notificationTitle:s,children:o,pronunciation:r,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:a!=null&&a!==""?g(Ee,{appearance:"default",size:"sm",onClick:c},a):void 0})},this._renderComponent=t=>{const{componentName:n,position:i="bottom-center",id:s}=t,o=Qs({position:i,id:s,exitingComponents:this._exitingComponents});return n==null||n==="snackbar"?this._renderSnackbar(t,o):n==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Tt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const n=setTimeout((()=>(clearTimeout(n),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:n,buttonLabel:i,onButtonClick:s,position:o,componentName:r,...l}=e,a={id:""+(Date.now()+Math.random()),message:n,appearance:t,buttonLabel:i,onButtonClick:s,position:o,componentName:r,...l};this._componentQueue=[...this._componentQueue,a],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:n,pronunciation:i,message:s,buttonLabel:o,onButtonClick:r,position:l,componentName:a,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:n,message:s,pronunciation:i,appearance:t,buttonLabel:o,onButtonClick:r,position:l,componentName:a,...c};this._componentQueue=[...this._componentQueue,u],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,n){return n||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((n=>requestAnimationFrame((()=>n()))));const t=Fn({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const n=Fn({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,n,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return g(Se,{key:"cfacf71807978b22d6f2a9e33c0518e9aefc3a58"},g("slot",{key:"4b4fa08f00a46a95ed4af543f85aad06affee847"}),this._isRoot()?g("div",{class:Us({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function Xs(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jn))}))}Xs();const Ys=jn,{getIndicatorText:Ks}=Qi,{getGidsLabelClassNames:Zs}=Vi,Vn=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,info:s,htmlFor:o,labelId:r,class:l,isLabelSentence:a,...c},u)=>{const d=Ks({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,isLabelSentence:a});return g("div",{class:Zs({disabled:e},l),...c},g("label",{htmlFor:o,id:r},u,d&&g("span",{class:"gids-label__field-requirement"},d)),s)},{getGidsDismissButtonClassNames:Js}=is,Gn=({appearance:e="subtle",size:t="md",disabled:n=!1,class:i,onPressDismiss:s,label:o,...r})=>g("button",{class:Js({appearance:e,size:t},i),onClick:s,disabled:n,"aria-label":o,...r},g(Q,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:eo}=as,{getStrengthMeterScore:to,getColorModifierByScore:no}=Ki,io=({text:e,textMinLength:t,meterRules:n=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:i})=>{const s=(o,r,l)=>g("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?r:""].filter(Boolean).join(" ")});return n.length>0?g("div",{class:eo(i)},(()=>{const o=n.length,r=to({text:e,textMinLength:t,meterRules:n}),l=no({textScore:r,maxScore:o});return Array.from({length:o},((a,c)=>{const u=c+1,d=u<=r;return n[u]==="include-min-length"?xe({requirementRule:"include-min-length",textMinLength:t})?s(u,l,d):null:s(u,l,d)}))})()):null},{getGidsRequirementsMeterLabelClassNames:so}=ls,{getRequirementsMeterLabelLeadingIcon:oo}=es,ro=e=>{const{label:t,status:n="default",leadingIconVisible:i=!0,class:s}=e,o=oo(n);return g("div",{class:so({status:n},s)},i&&n&&o?g(Q,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?g("span",null,t):null)},{checkRequirementRuleSatisfied:ao}=Ji,{getGidsRequirementsMeterClassNames:lo}=cs,co=({requirements:e=[],text:t,textMinLength:n,class:i})=>{const s=(o,r)=>g(ro,{status:r?"success":"error",label:o.requirementText});return g("div",{class:lo(i)},e.map((o=>{if(o?.requirementText!=null&&o?.requirementRule!=null){const r=ao({rule:o.requirementRule,textMinLength:n,text:t});return o.requirementRule==="include-min-length"?xe({requirementRule:o.requirementRule,textMinLength:n})===!0?s(o,r):null:s(o,r)}return null})))},{inputToGidsFieldStatusForPassword:uo}=us,zn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=Ne(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=Ne(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=_t(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?gt(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{hn(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=pt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=pt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},n=e??this.#t,i=this.showClearButton&&this.value!==void 0&&this.value.length>0,s=this.showRevealPasswordButton,o={...t},r=o?.placeholder!==void 0&&o.placeholder!==null&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,a=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return g(Se,{key:"674d6baf90ed0a3b9bf6821fb288972ffe255909"},g("gids-field",{key:"2b1f7f67ef3616edf29843b663c4e1efa8ce416a",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:uo(this.status)},g(Vn,{key:"ccd09eba06b8876d216181b8dd7fbcb1ff742d86",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:n},this.label),g("gids-input",{key:"f9a8c8f13347b5dd7620e8498aeb85ec646f000f",ref:u=>this.#e=u,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...o,placeholder:r,type:l?"text":"password",id:n,maxLength:this.maxLength}},g("slot",{key:"56c43774f755d7ae1ac6e633e39426d2b489414a",name:"leadingIcon"}),g("slot",{key:"1e964257af8f053e0d7c9de51fc0ec48a38b6d18",name:"leadingAccessory"}),g("div",{key:"f453197e76a4c8c01f1fa12a6f0c551a14f71f5d",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},i&&g(Gn,{key:"3127641007c6eb5db4e9b8c6bd521e6cdf80e59b",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),s&&g(Ee,{key:"bc537fa18fabe13e16ec2a7c8b5f4611e589c4c7",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),g("div",{key:"355033afd60090f7b04e48db5c1d675f29663e18",class:"gids-password-field__meters-container"},g(io,{key:"fb407fffb5de91b9bc30c1e7593fee01b5fa2a09",meterRules:a,text:this.value,textMinLength:c}),g(co,{key:"6888d147c99ea7902954e55ad91a5d64d7c1a031",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function ho(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,zn);break;case"gids-field":customElements.get(e)||Et();break;case"gids-input":customElements.get(e)||Ct()}}))}ho();const fo=zn,fe=Math.min,ne=Math.max,ze=Math.round,Be=Math.floor,z=e=>({x:e,y:e}),mo={left:"right",right:"left",bottom:"top",top:"bottom"};function kt(e,t,n){return ne(e,fe(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function Bn(e){return e==="x"?"y":"x"}function Ot(e){return e==="y"?"height":"width"}function Z(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Rt(e){return Bn(Z(e))}function go(e,t,n){n===void 0&&(n=!1);const i=Te(e),s=Rt(e),o=Ot(s);let r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=He(r)),[r,He(r)]}function po(e){const t=He(e);return[Lt(e),t,Lt(t)]}function Lt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hn=["left","right"],Wn=["right","left"],bo=["top","bottom"],vo=["bottom","top"];function yo(e,t,n){switch(e){case"top":case"bottom":return n?t?Wn:Hn:t?Hn:Wn;case"left":case"right":return t?bo:vo;default:return[]}}function _o(e,t,n,i){const s=Te(e);let o=yo(ie(e),n==="start",i);return s&&(o=o.map(r=>r+"-"+s),t&&(o=o.concat(o.map(Lt)))),o}function He(e){const t=ie(e);return mo[t]+e.slice(t.length)}function wo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qn(e){return typeof e!="number"?wo(e):{top:e,right:e,bottom:e,left:e}}function We(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function Un(e,t,n){let{reference:i,floating:s}=e;const o=Z(t),r=Rt(t),l=Ot(r),a=ie(t),c=o==="y",u=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,f=i[l]/2-s[l]/2;let m;switch(a){case"top":m={x:u,y:i.y-s.height};break;case"bottom":m={x:u,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:d};break;case"left":m={x:i.x-s.width,y:d};break;default:m={x:i.x,y:i.y}}switch(Te(t)){case"start":m[r]-=f*(n&&c?-1:1);break;case"end":m[r]+=f*(n&&c?-1:1);break}return m}async function So(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:o,rects:r,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Ce(t,e),h=Qn(m),_=l[f?d==="floating"?"reference":"floating":d],p=We(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),v=d==="floating"?{x:i,y:s,width:r.floating.width,height:r.floating.height}:r.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},w=We(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:a}):v);return{top:(p.top-w.top+h.top)/S.y,bottom:(w.bottom-p.bottom+h.bottom)/S.y,left:(p.left-w.left+h.left)/S.x,right:(w.right-p.right+h.right)/S.x}}const xo=50,Eo=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:So},a=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Un(c,i,a),f=i,m=0;const h={};for(let y=0;y<o.length;y++){const _=o[y];if(!_)continue;const{name:p,fn:v}=_,{x:b,y:S,data:w,reset:x}=await v({x:u,y:d,initialPlacement:i,placement:f,strategy:s,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});u=b??u,d=S??d,h[p]={...h[p],...w},x&&m<xo&&(m++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):x.rects),{x:u,y:d}=Un(c,f,a)),y=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:h}},Co=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:o,platform:r,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=Ce(e,t)||{};if(c==null)return{};const d=Qn(u),f={x:n,y:i},m=Rt(s),h=Ot(m),y=await r.getDimensions(c),_=m==="y",p=_?"top":"left",v=_?"bottom":"right",b=_?"clientHeight":"clientWidth",S=o.reference[h]+o.reference[m]-f[m]-o.floating[h],w=f[m]-o.reference[m],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let C=x?x[b]:0;(!C||!await(r.isElement==null?void 0:r.isElement(x)))&&(C=l.floating[b]||o.floating[h]);const O=S/2-w/2,R=C/2-y[h]/2-1,F=fe(d[p],R),Re=fe(d[v],R),ae=F,Le=C-y[h]-Re,L=C/2-y[h]/2+O,le=kt(ae,L,Le),Y=!a.arrow&&Te(s)!=null&&L!==le&&o.reference[h]/2-(L<ae?F:Re)-y[h]/2<0,j=Y?L<ae?L-ae:L-Le:0;return{[m]:f[m]+j,data:{[m]:le,centerOffset:L-le-j,...Y&&{alignmentOffset:j}},reset:Y}}}),To=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:o,rects:r,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,..._}=Ce(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=ie(s),v=Z(l),b=ie(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(c.floating)),w=f||(b||!y?[He(l)]:po(l)),x=h!=="none";!f&&x&&w.push(..._o(l,y,h,S));const C=[l,...w],O=await a.detectOverflow(t,_),R=[];let F=((i=o.flip)==null?void 0:i.overflows)||[];if(u&&R.push(O[p]),d){const L=go(s,r,S);R.push(O[L[0]],O[L[1]])}if(F=[...F,{placement:s,overflows:R}],!R.every(L=>L<=0)){var Re,ae;const L=(((Re=o.flip)==null?void 0:Re.index)||0)+1,le=C[L];if(le&&(!(d==="alignment"?v!==Z(le):!1)||F.every(V=>Z(V.placement)===v?V.overflows[0]>0:!0)))return{data:{index:L,overflows:F},reset:{placement:le}};let Y=(ae=F.filter(j=>j.overflows[0]<=0).sort((j,V)=>j.overflows[1]-V.overflows[1])[0])==null?void 0:ae.placement;if(!Y)switch(m){case"bestFit":{var Le;const j=(Le=F.filter(V=>{if(x){const ee=Z(V.placement);return ee===v||ee==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ee=>ee>0).reduce((ee,Sr)=>ee+Sr,0)]).sort((V,ee)=>V[1]-ee[1])[0])==null?void 0:Le[0];j&&(Y=j);break}case"initialPlacement":Y=l;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}},ko=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:i,elements:s}=e,o=await(i.isRTL==null?void 0:i.isRTL(s.floating)),r=ie(n),l=Te(n),a=Z(n)==="y",c=ko.has(r)?-1:1,u=o&&a?-1:1,d=Ce(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(m=l==="end"?h*-1:h),a?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const Ro=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:o,placement:r,middlewareData:l}=t,a=await Oo(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+a.x,y:o+a.y,data:{...a,placement:r}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:o}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:p=>{let{x:v,y:b}=p;return{x:v,y:b}}},...c}=Ce(e,t),u={x:n,y:i},d=await o.detectOverflow(t,c),f=Z(ie(s)),m=Bn(f);let h=u[m],y=u[f];if(r){const p=m==="y"?"top":"left",v=m==="y"?"bottom":"right",b=h+d[p],S=h-d[v];h=kt(b,h,S)}if(l){const p=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=y+d[p],S=y-d[v];y=kt(b,y,S)}const _=a.fn({...t,[m]:h,[f]:y});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[m]:r,[f]:l}}}}}};function Qe(){return typeof window<"u"}function me(e){return Xn(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function B(e){var t;return(t=(Xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xn(e){return Qe()?e instanceof Node||e instanceof M(e).Node:!1}function q(e){return Qe()?e instanceof Element||e instanceof M(e).Element:!1}function U(e){return Qe()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function Yn(e){return!Qe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function ke(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function Ao(e){return/^(table|td|th)$/.test(me(e))}function Ue(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $o=/transform|translate|scale|rotate|perspective|filter/,No=/paint|layout|strict|content/,se=e=>!!e&&e!=="none";let At;function $t(e){const t=q(e)?D(e):e;return se(t.transform)||se(t.translate)||se(t.scale)||se(t.rotate)||se(t.perspective)||!Nt()&&(se(t.backdropFilter)||se(t.filter))||$o.test(t.willChange||"")||No.test(t.contain||"")}function Mo(e){let t=J(e);for(;U(t)&&!ge(t);){if($t(t))return t;if(Ue(t))return null;t=J(t)}return null}function Nt(){return At==null&&(At=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),At}function ge(e){return/^(html|body|#document)$/.test(me(e))}function D(e){return M(e).getComputedStyle(e)}function Xe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yn(e)&&e.host||B(e);return Yn(t)?t.host:t}function Kn(e){const t=J(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&ke(t)?t:Kn(t)}function Oe(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Kn(e),o=s===((i=e.ownerDocument)==null?void 0:i.body),r=M(s);if(o){const l=Mt(r);return t.concat(r,r.visualViewport||[],ke(s)?s:[],l&&n?Oe(l):[])}else return t.concat(s,Oe(s,[],n))}function Mt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zn(e){const t=D(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=U(e),o=s?e.offsetWidth:n,r=s?e.offsetHeight:i,l=ze(n)!==o||ze(i)!==r;return l&&(n=o,i=r),{width:n,height:i,$:l}}function Pt(e){return q(e)?e:e.contextElement}function pe(e){const t=Pt(e);if(!U(t))return z(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:o}=Zn(t);let r=(o?ze(n.width):n.width)/i,l=(o?ze(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const Po=z(0);function Jn(e){const t=M(e);return!Nt()||!t.visualViewport?Po:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==M(e)?!1:t}function oe(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Pt(e);let r=z(1);t&&(i?q(i)&&(r=pe(i)):r=pe(e));const l=Fo(o,n,i)?Jn(o):z(0);let a=(s.left+l.x)/r.x,c=(s.top+l.y)/r.y,u=s.width/r.x,d=s.height/r.y;if(o){const f=M(o),m=i&&q(i)?M(i):i;let h=f,y=Mt(h);for(;y&&i&&m!==h;){const _=pe(y),p=y.getBoundingClientRect(),v=D(y),b=p.left+(y.clientLeft+parseFloat(v.paddingLeft))*_.x,S=p.top+(y.clientTop+parseFloat(v.paddingTop))*_.y;a*=_.x,c*=_.y,u*=_.x,d*=_.y,a+=b,c+=S,h=M(y),y=Mt(h)}}return We({width:u,height:d,x:a,y:c})}function Ye(e,t){const n=Xe(e).scrollLeft;return t?t.left+n:oe(B(e)).left+n}function ei(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Ye(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function Io(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const o=s==="fixed",r=B(i),l=t?Ue(t.floating):!1;if(i===r||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=z(1);const u=z(0),d=U(i);if((d||!d&&!o)&&((me(i)!=="body"||ke(r))&&(a=Xe(i)),d)){const m=oe(i);c=pe(i),u.x=m.x+i.clientLeft,u.y=m.y+i.clientTop}const f=r&&!d&&!o?ei(r,a):z(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function qo(e){return Array.from(e.getClientRects())}function Do(e){const t=B(e),n=Xe(e),i=e.ownerDocument.body,s=ne(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=ne(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+Ye(e);const l=-n.scrollTop;return D(i).direction==="rtl"&&(r+=ne(t.clientWidth,i.clientWidth)-s),{width:s,height:o,x:r,y:l}}const ti=25;function jo(e,t){const n=M(e),i=B(e),s=n.visualViewport;let o=i.clientWidth,r=i.clientHeight,l=0,a=0;if(s){o=s.width,r=s.height;const u=Nt();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}const c=Ye(i);if(c<=0){const u=i.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(i.clientWidth-d.clientWidth-m);h<=ti&&(o-=h)}else c<=ti&&(o+=c);return{width:o,height:r,x:l,y:a}}function Vo(e,t){const n=oe(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,o=U(e)?pe(e):z(1),r=e.clientWidth*o.x,l=e.clientHeight*o.y,a=s*o.x,c=i*o.y;return{width:r,height:l,x:a,y:c}}function ni(e,t,n){let i;if(t==="viewport")i=jo(e,n);else if(t==="document")i=Do(B(e));else if(q(t))i=Vo(t,n);else{const s=Jn(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return We(i)}function ii(e,t){const n=J(e);return n===t||!q(n)||ge(n)?!1:D(n).position==="fixed"||ii(n,t)}function Go(e,t){const n=t.get(e);if(n)return n;let i=Oe(e,[],!1).filter(l=>q(l)&&me(l)!=="body"),s=null;const o=D(e).position==="fixed";let r=o?J(e):e;for(;q(r)&&!ge(r);){const l=D(r),a=$t(r);!a&&l.position==="fixed"&&(s=null),(o?!a&&!s:!a&&l.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ke(r)&&!a&&ii(e,r))?i=i.filter(u=>u!==r):s=l,r=J(r)}return t.set(e,i),i}function zo(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const r=[...n==="clippingAncestors"?Ue(t)?[]:Go(t,this._c):[].concat(n),i],l=ni(t,r[0],s);let a=l.top,c=l.right,u=l.bottom,d=l.left;for(let f=1;f<r.length;f++){const m=ni(t,r[f],s);a=ne(m.top,a),c=fe(m.right,c),u=fe(m.bottom,u),d=ne(m.left,d)}return{width:c-d,height:u-a,x:d,y:a}}function Bo(e){const{width:t,height:n}=Zn(e);return{width:t,height:n}}function Ho(e,t,n){const i=U(t),s=B(t),o=n==="fixed",r=oe(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=z(0);function c(){a.x=Ye(s)}if(i||!i&&!o)if((me(t)!=="body"||ke(s))&&(l=Xe(t)),i){const m=oe(t,!0,o,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else s&&c();o&&!i&&s&&c();const u=s&&!i&&!o?ei(s,l):z(0),d=r.left+l.scrollLeft-a.x-u.x,f=r.top+l.scrollTop-a.y-u.y;return{x:d,y:f,width:r.width,height:r.height}}function Ft(e){return D(e).position==="static"}function si(e,t){if(!U(e)||D(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function oi(e,t){const n=M(e);if(Ue(e))return n;if(!U(e)){let s=J(e);for(;s&&!ge(s);){if(q(s)&&!Ft(s))return s;s=J(s)}return n}let i=si(e,t);for(;i&&Ao(i)&&Ft(i);)i=si(i,t);return i&&ge(i)&&Ft(i)&&!$t(i)?n:i||Mo(e)||n}const Wo=async function(e){const t=this.getOffsetParent||oi,n=this.getDimensions,i=await n(e.floating);return{reference:Ho(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qo(e){return D(e).direction==="rtl"}const It={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:B,getClippingRect:zo,getOffsetParent:oi,getElementRects:Wo,getClientRects:qo,getDimensions:Bo,getScale:pe,isElement:q,isRTL:Qo};function ri(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t){let n=null,i;const s=B(e);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(l||t(),!f||!m)return;const h=Be(d),y=Be(s.clientWidth-(u+f)),_=Be(s.clientHeight-(d+m)),p=Be(u),b={rootMargin:-h+"px "+-y+"px "+-_+"px "+-p+"px",threshold:ne(0,fe(1,a))||1};let S=!0;function w(x){const C=x[0].intersectionRatio;if(C!==a){if(!S)return r();C?r(!1,C):i=setTimeout(()=>{r(!1,1e-7)},1e3)}C===1&&!ri(c,e.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(w,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return r(!0),o}function Xo(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=Pt(e),u=s||o?[...c?Oe(c):[],...t?Oe(t):[]]:[];u.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const d=c&&l?Uo(c,n):null;let f=-1,m=null;r&&(m=new ResizeObserver(p=>{let[v]=p;v&&v.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!a&&m.observe(c),t&&m.observe(t));let h,y=a?oe(e):null;a&&_();function _(){const p=oe(e);y&&!ri(y,p)&&n(),y=p,h=requestAnimationFrame(_)}return n(),()=>{var p;u.forEach(v=>{s&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d?.(),(p=m)==null||p.disconnect(),m=null,a&&cancelAnimationFrame(h)}}const Yo=Ro,Ko=Lo,Zo=To,Jo=Co,er=(e,t,n)=>{const i=new Map,s={platform:It,...n},o={...s.platform,_c:i};return Eo(e,t,{...s,platform:o})};E.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(E.GidsFloatingElementType||(E.GidsFloatingElementType={}));function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const tr=/transform|translate|scale|rotate|perspective|filter/,nr=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let qt;function ir(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof ai(n).Element)?ai(i=e).getComputedStyle(i):e);var n,i;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||(qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!qt&&(re(t.backdropFilter)||re(t.filter)))||tr.test(t.willChange||"")||nr.test(t.contain||"")}function sr(e){return(function(t){for(let n=t;n;n=Dt(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=Dt(t);n;n=Dt(n)){if(!(n instanceof Element))continue;const i=getComputedStyle(n);if(i.display!=="contents"&&(i.position!=="static"||ir(i)||n.tagName==="BODY"))return n}return null})(e)}function Dt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}let li=(X=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=Xo(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[Yo(this.offset)],n=Zo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),i=this.config.elementType===E.GidsFloatingElementType.POPOVER,s=Ko({padding:this.offset,mainAxis:this.config.elementType===E.GidsFloatingElementType.TOOLTIP||i&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(n,s):t.push(s,n),this.config.showArrow!==!1&&this.arrowEl&&t.push(Jo({element:this.arrowEl,padding:this.offset})),er(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...It,getOffsetParent:o=>It.getOffsetParent(o,sr)}}).then((({x:o,y:r,middlewareData:l,placement:a})=>{if(i){const f=a.startsWith("left")||a.startsWith("right"),m=a.startsWith("top")||a.startsWith("bottom"),h=this.isAnchorInViewport(),y=!!m||(f?h:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=a,Object.assign(this.floatingElement.style,{left:`${o}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const c=a.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[c],{arrowZIndex:d}=this.normalizeFloatingElementStacking();if(l.arrow&&this.arrowEl){const f=this.arrowEl.offsetWidth,{x:m,y:h}=l.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(c)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(c)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-f/2+"px",transform:"rotate(45deg)",zIndex:`${d}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),i=Number.isNaN(n)?-1:n-1,s=Number.isNaN(n)?i+1:n;return Number.isNaN(s)||(this.floatingElement.style.zIndex=`${s}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const r=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),l=Number.parseInt(r,10),a=window.getComputedStyle?.(o).position??"";(r===""||r==="auto"||Number.isNaN(l)||l<s)&&(o.style.zIndex=`${s}`,a!==""&&a!=="static"||(o.style.position="relative"))})),{contentZIndex:s,arrowZIndex:i}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),X.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=X.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),X.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,i=window.innerWidth||document.documentElement?.clientWidth||0,s=t.height/2+2*this.offset;return t.bottom>=s&&t.top<=n-s&&t.right>=0&&t.left<=i}},X.currentFloatingElements=new Map,X);const ci=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onPopoverShow():n&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new li(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:E.GidsFloatingElementType.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],n=ui(e);t.push(...n);const i=this._el.shadowRoot?.querySelector("slot:not([name])");i&&i.assignedElements({flatten:!0}).forEach((s=>{const o=ui(s);t.push(...o)})),this.focusableElements=t.sort(((s,o)=>{const r=s.compareDocumentPosition(o),l=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),a=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:a?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let i=document.activeElement;if(i===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(i=o)}const s=this.focusableElements.indexOf(i)!==-1;e.shiftKey?i!==t&&s||(e.preventDefault(),n&&n.focus()):i!==n&&s||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return g(Se,{key:"da6cbab41d3390a940444809d9fe809225c9426e"},g("slot",{key:"5a5e5f72ab9c793e02b7bd633381363ab37cbf22",name:"anchor"}),g("div",{key:"49ab365961e8a3d9bf0e6ac67f2c73fda1eb7bb3",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},g("span",{key:"9815148f291ebca88b4a2bbe09b0e93fcbaab4a7",id:"arrow"}),g("div",{key:"b6d83da9bd180933b5f2453f3e66f66f692e35c1"},g("slot",{key:"90aaeadfe9d09ebdd6534afa762b35c38a5cc57f"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),di=e=>{if(!(e instanceof A)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const i=document.activeElement===e;return e.tabIndex=n,i&&e.blur(),i}catch{return!1}},ui=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>di(s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];di(e)&&n.push(e);let i=t.nextNode();for(;i!==null;)n.push(i),i=t.nextNode();return n};function or(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,ci))}))}or();const rr=ci,{getGidsScrimClassNames:hi}=gs,fi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=hi(e)}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=hi(this.extraClasses)}render(){return g("div",{key:"da4b587303359a6075411a1843e03eff6eed68ce",class:this.activeClasses,part:"root"},g("slot",{key:"5a52f6e5628c771b2dd0f5a6221005a0ed8b9fbb"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function ar(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,fi))}))}ar();const lr=fi,mi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Tt(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function cr(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,mi))}))}cr();const dr=mi,{formatCharCount:ur}=_n,{inputToGidsFieldStatus:hr}=rs,gi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Ne(this,"gidsTextFieldClear"),this.#t=_t(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{hn(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},n=e??this.#t,i=this.showClearButton&&this.value!==void 0&&this.value.length>0;return g("gids-field",{key:"80f1981d584f417e010322b2c5ec07a60dc1f388",disabled:this.disabled,count:ur(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:hr(this.status)},g(Vn,{key:"f222a99181809cf9ccdc1ad9ceed98c985681553",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:n},this.label),g("gids-input",{key:"7ff6cf33f16be119ecc705af8a7fb8965b01b74c",ref:s=>this.#e=s,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:n,maxLength:this.maxLength}},g("slot",{key:"d3e260125c8d8f56870e6f484894bd1a1aa8e03b",name:"leadingIcon"}),g("slot",{key:"0445885d41f43d6a76f48ed482673a266b6a0182",name:"leadingAccessory"}),i&&g(Gn,{key:"be16083a8e414be66ceb37e076f9ebc01cc4fc8f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),g("slot",{key:"0dc7436a9ca21e57409cc18340747295915d2d5f",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function fr(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gi);break;case"gids-field":customElements.get(e)||Et();break;case"gids-input":customElements.get(e)||Ct()}}))}fr();const mr=gi,pi=N(class extends A{get selected(){return this.#t??this.defaultSelected}set selected(e){this.#t=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Ne(this,"select"),this._toggle=this._toggle.bind(this)}#t;connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return g(rt,{key:"56bc99780f392c4d5064eaa47819ee1ff0897c79"},g("style",{key:"e330f982d625eeb7f72ede3f382231fb5791ec47"},`:host {
6
6
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),c(K,{key:"cc1ba98c103b2650fac9373764174b9d692a3887",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:c("slot",{name:"leadingIcon"}),trailingIcon:c("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},c("slot",{key:"009d3abc1604b5c387c1c29fad97d42e24ae70e9"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function ei(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Ut))}))}ei();const ti=Ut;function Be(e,t){Zs(e,t)}const si=e=>{Be(e)},ni=e=>{Be(e)};w.GidsField=rn,w.GidsIcon=cn,w.GidsInput=fn,w.GidsNotification=pn,w.GidsOverflowContainer=_n,w.GidsOverlayProvider=Nn,w.GidsPasswordField=Dn,w.GidsScrim=Wn,w.GidsSnackbar=Yn,w.GidsTextField=Jn,w.GidsToggleButton=ti,w.getAssetPath=Jt,w.getConstructedGidsStylesheet=j,w.refreshConstructedGidsStylesheet=Ae,w.render=_s,w.setAssetPath=es,w.setGidsAssetFilePaths=si,w.setGidsAssetPaths=Be,w.setGidsDefaultAssetDirPath=ni,w.setNonce=gs,w.setPlatformOptions=bs,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
7
+ }`),g(Ee,{key:"ccef97603f645ba92fd4180263d2cbeff0a54a07",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:g("slot",{name:"leadingIcon"}),trailingIcon:g("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},g("slot",{key:"7094015cf47ef8d045955419aa43f03174145928"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function gr(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,pi))}))}gr();const pr=pi,bi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new li(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:E.GidsFloatingElementType.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return g(Se,{key:"49747828eaa09ead2d1e2f6d9d28b66c2db76103"},g("slot",{key:"9ad53320553f1377f01f026a95f7cb894d91c98a"}),g("span",{key:"6116e418faa09d82975a3830f7e0bedcbdd8e87f",id:"tooltip",part:"tooltip",role:"tooltip"},g("span",{key:"677d275b2e161441d76315c50a60a941d6dd010a",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function br(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,bi))}))}br();const vr=bi;function jt(e,t){_s(e,t)}const yr=e=>{jt(e)},_r=e=>{jt(e)},wr=({children:e,classNameToBeValidated:t,childrenToBeValidated:n,currentComponentName:i})=>{if(e!=null){const s=Array.isArray(e)?e:[e];for(const o of s){if(!o||typeof o!="object"||!("vtag"in o))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${i}. Expected ${n}.`);{const r=o.vtag;if(r!==t&&r!==n)throw Error(`HTML/JSX Render Error: <${i}> only accepts <${n}> as direct children. Received element tag: "${typeof r=="function"?r.name:r}".`)}}}};E.GidsField=Os,E.GidsIcon=Ls,E.GidsInput=Ms,E.GidsNotification=Fs,E.GidsOverflowContainer=Ds,E.GidsOverlayProvider=Ys,E.GidsPasswordField=fo,E.GidsPopover=rr,E.GidsScrim=lr,E.GidsSnackbar=dr,E.GidsTextField=mr,E.GidsToggleButton=pr,E.GidsTooltip=vr,E.getAssetPath=wi,E.getConstructedGidsStylesheet=G,E.refreshConstructedGidsStylesheet=xt,E.render=ji,E.setAssetPath=Si,E.setGidsAssetFilePaths=yr,E.setGidsAssetPaths=jt,E.setGidsDefaultAssetDirPath=_r,E.setNonce=qi,E.setPlatformOptions=Di,E.testHtmlChildrenValidity=wr,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));