@ganpatiinfo/gids-core-web 8.0.0 → 8.2.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 (44) hide show
  1. package/dist/css/index.css +221 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-field.js +1 -1
  4. package/dist/gids-icon.js +1 -1
  5. package/dist/gids-input.js +1 -1
  6. package/dist/gids-overflow-container.d.ts +11 -0
  7. package/dist/gids-overflow-container.js +1 -0
  8. package/dist/gids-overlay-provider.js +1 -1
  9. package/dist/gids-password-field.js +1 -1
  10. package/dist/gids-scrim.js +1 -1
  11. package/dist/gids-text-field.js +1 -1
  12. package/dist/gids-toggle-button.js +1 -1
  13. package/dist/{p-BVh4zbX4.js → p-Bg3lw2Ae.js} +1 -1
  14. package/dist/{p-BplPYg8z.js → p-DjvDBWCb.js} +1 -1
  15. package/dist/types/components/html/GidsAccordionItem/GidsAccordionItem.d.ts +4 -0
  16. package/dist/types/components/html/GidsAccordionItemContent/GidsAccordionItemContent.d.ts +5 -0
  17. package/dist/types/components/html/GidsAccordionItemHeader/GidsAccordionItemHeader.d.ts +4 -0
  18. package/dist/types/components/html/GidsBreadcrumbItem/GidsBreadcrumbItem.d.ts +2 -1
  19. package/dist/types/components/html/GidsFeedbackBlock/GidsFeedbackBlock.d.ts +4 -0
  20. package/dist/types/components/html/GidsProgressBar/GidsProgressBar.d.ts +4 -0
  21. package/dist/types/components/webComponents/GidsOverflowContainer/GidsOverflowContainer.d.ts +10 -0
  22. package/dist/types/components.d.ts +26 -2
  23. package/dist-bundled/es/gids-field.js +2 -2
  24. package/dist-bundled/es/gids-icon.js +1 -1
  25. package/dist-bundled/es/gids-input.js +4 -4
  26. package/dist-bundled/es/gids-overflow-container.js +39 -0
  27. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  28. package/dist-bundled/es/gids-password-field.js +21 -21
  29. package/dist-bundled/es/gids-scrim.js +3 -3
  30. package/dist-bundled/es/gids-text-field.js +9 -9
  31. package/dist-bundled/es/gids-toggle-button.js +7 -7
  32. package/dist-bundled/es/{p-BVh4zbX4-C4UJ8LPX.js → p-Bg3lw2Ae-CkC8nUqv.js} +6 -6
  33. package/dist-bundled/es/{p-BplPYg8z-B8uAAfo4.js → p-DjvDBWCb-C9js0PPL.js} +9 -9
  34. package/dist-bundled/umd/gids-field.umd.js +1 -1
  35. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  36. package/dist-bundled/umd/gids-input.umd.js +1 -1
  37. package/dist-bundled/umd/gids-overflow-container.umd.js +5 -0
  38. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  39. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  40. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  41. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  42. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  43. package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
  44. package/package.json +13 -5
@@ -1,7 +1,7 @@
1
- (function(w,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(w=typeof globalThis<"u"?globalThis:w||self,V(w.gidsCoreWeb={}))})(this,(function(w){"use strict";function V(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,Ut=(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=V(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()},Be=(e,t)=>t in e,B=(e,t)=>(0,console.error)(e,t),Z=new Map,ze="http://www.w3.org/1999/xlink",C=typeof window<"u"?window:{},O=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=[],Yt=(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){B(s)}e.length=0},fe=()=>{Qe(He),Qe(De),(he=He.length>0)&&x.raf(fe)},me=e=>Promise.resolve(void 0).then(e),Xt=Yt(De),Kt=e=>{const t=new URL(e,x.u);return t.origin!==C.location.origin?t.href:t.pathname},Zt=e=>x.u=e;function Jt(){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=!!es(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 es=(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,j=new WeakMap,Ye=e=>"sc-"+e.p,_e=e=>(e=typeof e)=="object"||e==="function",d=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,l=!1;const r=[],c=u=>{for(let m=0;m<u.length;m++)n=u[m],Array.isArray(n)?c(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(c(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,ts);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={},ts={forEach:(e,t)=>e.map(Xe).forEach(t),map:(e,t)=>e.map(Xe).map(t).map(ss)},Xe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ss=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),d(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=Be(e,t),l=t.toLowerCase();if(t==="class"){const r=e.classList,c=tt(s);let h=tt(n);r.remove(...c.filter((u=>u&&!h.includes(u)))),r.add(...h.filter((u=>u&&!c.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&&os(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 c;{const h=P(e);if(h&&h.o&&h.o.t){const u=h.o.t[r];u&&u[1]&&(c=u[1])}}return c||(c=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,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 c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ze,t):e.removeAttribute(t)):(!a||4&o||i)&&!r&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(ze,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Be(C,l)?l.slice(2):l[2]+t.slice(3),s||n){const r=t.endsWith(st);t=t.replace(is,""),s&&x.rel(e,t,s,r),n&&x.ael(e,t,n,r)}}},ns=/\s/,tt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ns):[]),st="Capture",is=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 c=i.O==="template"?o.content:o;for(r=0;r<i.m.length;++r)a=ne(e,i,r),a&&c.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(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=u=>(function(m){const p=[],f=this["s-sn"];m?.flatten&&console.error(`
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(`
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(c);c.assignedElements=h(!0),c.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?((c,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],R=m.length-1,$=m[0],q=m[R];const Wt=u.O==="template"?c.content:c;for(;y<=T&&_<=R;)if(v==null)v=h[++y];else if(k==null)k=h[--T];else if($==null)$=m[++_];else if(q==null)q=m[--R];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[--R];else if(oe(v,q,p))v.O!=="slot"&&q.O!=="slot"||ie(v.S.parentNode,!1),z(v,q,p),L(Wt,v.S,k.S.nextSibling),v=h[++y],q=m[--R];else if(oe(k,$,p))v.O!=="slot"&&q.O!=="slot"||ie(k.S.parentNode,!1),z(k,$,p),L(Wt,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(c,m[R+1]==null?null:m[R+1].S,u,m,_,R):_>R&&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((c=>c.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)},os=(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$,c=e.o,h=e.M||J(null,null);var u;const m=(u=t)&&u.O===ve?t:d(null,null,t);if(G=r.tagName,c._&&(m.v=m.v||{},c._.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&c.i)||128&c.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&c.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=()=>as(e,t);if(!t)return Xt(s);queueMicrotask((()=>{s()}))},as=(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,(()=>ls(e,n,t)))},ut=(e,t)=>rs(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),rs=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ls=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const l=a.o,r=a.$hostElement$,c=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=j.get(u=u.head||u);if(g||j.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,R;return(R=(k=(v=C.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?R: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=j.get(u);if(b||j.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&c&&(r["s-sc"]=h,r.classList.add(h+"-h"))})(e),cs(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],l=()=>ds(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},cs=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,ct(e,t,n)}catch(i){B(i,e.$hostElement$)}return null},ds=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,hs(t),Y(s,"componentDidLoad",void 0,t),e.F(t),n||us()),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}},us=()=>{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){B(i,n)}},hs=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 c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){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){B(m,o)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,a,t)===!1&&!(16&l))return;16&l||ae(i,!1)}}},fs=(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:c}=V(i,a)||{};r&&(t.t[a][0]|=2048),c&&(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(c)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(h=u.l.get(a)),c.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,c){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]==c)return;if(u==null){const _=m?.i;if(m&&_&&!(8&_)&&c!==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,c,r,l)}))}return}const p=o.find((([_])=>_===u)),f=p&&4&p[1][0],S=f&&c===null&&this[u]===void 0;f&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(i,u);S||c==this[u]||y.get&&!y.set||(this[u]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...o.filter((([l,r])=>31&r[0])).map((([l,r])=>{var c;const h=r[1]||l;return a.set(h,l),512&r[0]&&((c=t._)==null||c.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((c=>l.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=l;o.__stencil__getHostRef=()=>r,512&a.i&&Ut(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 c=r["s-cr"]=C.document.createComment("");c["s-cn"]=!0,L(r,c,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,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const h=o[r];delete o[r],o[r]=h}})),(async(r,c,h)=>{let u;try{if(!(32&c.i)&&(c.i|=32,u=r.constructor,customElements.whenDefined(r.localName).then((()=>c.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=c.C,p=()=>ae(c,!0);m&&m["s-rc"]?m["s-rc"].push(p):p()}catch(m){B(m,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,a,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{1&x.i||P(o),j.has(o)&&j.delete(o),o.shadowRoot&&j.has(o.shadowRoot)&&j.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 Jt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),fs(e,s)}catch(n){return B(n),e}},Ce=(e,t)=>t,ms=e=>x.L=e,ps=e=>Object.assign(x,e),mt=new WeakMap;function gs(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 Zn(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 bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>N("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),_s=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"})),vs=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"})),ys=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(".")},Ss=/\w/,ws=e=>e.replace(Ss,t=>t.toLocaleUpperCase()),bt=(e,t)=>typeof e=="function"?e(t):t?ws(e):e,Cs=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,xs=re/2,xe=2*Math.PI*vt,ks=`0 0 ${re} ${re}`,Ts=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:xs,circumference:xe,radius:vt,thickness:_t,viewBox:ks},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]/,Es=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},$s=({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}},Re=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}},Ns=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:$s,getDefaultRulesAndRequirementsForMeters:Re,getMeterRulesFromRequirements:Ne,minLengthRuleCanBeApplied:X},Symbol.toStringTag,{value:"Module"})),Rs=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"})),Ls=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"})),Os=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"})),Ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>N("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:qs}=yt,Ps=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":qs(e)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>N("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),As=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"})),js=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>N("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:Fs}=Ls,Gs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":Fs(e)},Symbol.toStringTag,{value:"Module"})),Vs=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"}},Bs=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"})),zs=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"})),Hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>N("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Le=Symbol("defaultPath"),Ct=Symbol("pathSet"),Oe="gids-asset-paths-set";class Ds 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(Oe))};haveAssetPathsBeenSet(){return this.#s(Ct)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Le,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(Le,s)}this.#e(Ct,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(Le);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Oe,t,{once:!0}),()=>{this.removeEventListener(Oe,t)}}}const Me=Symbol.for("GIDS"),Qs=()=>(globalThis[Me]===void 0&&(globalThis[Me]={assetPaths:{}}),globalThis[Me]),Ws=e=>{const t=Qs().assetPaths;return t[e]===void 0&&(t[e]=new Ds),t[e]};function le(){return Ws("@ganpatiinfo/gids-web-shared")}function Us(){return le().haveAssetPathsBeenSet()}function Ys(e,t){le().setAssetPaths(e,t)}function xt(e){return le().getAssetFilePath(e)}function Xs(e){return le().onAssetPathsSet(e)}let Ks=0;const qe=(e,t="gids")=>e||`${t}-${Ks++}`,Zs=e=>e.type==="hidden",Js=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&&!Zs(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 en(e){return Et.get(e)}function $t(e,t="regular",s){const n=en(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:tn}=vs,A=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...l})=>{const r=qe(o);let c=a;return c===void 0&&Us()&&(c=$t(e,s,xt)),d("svg",{ref:h=>{c===void 0&&Xs((()=>{(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:tn({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&d("title",{id:r},n||e),c!==void 0?d("use",{href:c}):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},F=()=>(Nt||(Nt=Ae()),H),{getGidsFieldClassNames:sn}=Ms,Rt=M(class extends O{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=F();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 d(ve,{key:"4bd0ef4ac11ded5f563595485082650801fdbe1b"},d("div",{key:"3617e3301f53dcb21a9beb98b4a23d620e3dd39d",class:sn()},d("div",{key:"bb1f6710ee27c94346f7ee9459389d901b23d913",class:"gids-field__header",hidden:!this._hasLabelContent()},d("slot",{key:"8fa03ca31936bc6082052b099ac29afea2ec3032",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),d("div",{key:"1b50c69005c2d0b89c47dc01c2dcbb343bdeecff",class:"gids-field__count","aria-live":"polite"},this.count)),d("div",{key:"b8664a96496a6e7289fb14bdadbb59dcee9af3d1",class:"gids-field__control"},d("slot",{key:"bff757557406c0165be3569c4eb34adb1fe346ca",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),d("p",{key:"0638e493fc4ac98f6c10a8392c45ffde8b8340a4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?d("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?d("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"),d(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,Rt))}))}je();const nn=Rt,Lt=M(class extends O{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=F();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return d(A,{key:"d1215bf1b178ca6fb73458ecb8370b315239fa5b",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 on(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Lt))}))}on();const an=Lt,{getGidsSpinnerControlClassNames:rn}=_s,{calculateStrokeDasharray:ln,thickness:Ot,radius:Mt,centerPosition:ce,viewBox:cn}=Ts,qt=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:ln(s,n||0),strokeDashoffset:"0"}),d("svg",{class:rn({size:e,indeterminate:t,value:s}),viewBox:cn,...i},d("circle",{class:"gids-spinner-control__track",cx:ce,cy:ce,r:Mt,"stroke-width":Ot}),d("circle",{style:o,class:"gids-spinner-control__progress",cx:ce,cy:ce,r:Mt,"stroke-width":Ot}))},Pt=M(class extends O{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(Js(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 d(Ce,{key:"281c832656cace745109fdd8208fe24b90f2c126"},d("slot",{key:"5f8424a1d9bc196e3efee9d1e5d099bed15ddb4b",name:"leadingIcon"}),this.leadingLabel&&d("span",{key:"2ce161a38f74618d60f38028c646c80e361aeced",class:"gids-input__label"},this.leadingLabel),d("slot",{key:"12383525faf774eef618705cf68338a4fc9c9e55",name:"leadingAccessory"}),d("input",{key:"19de1aa1ad2a47db2979dfcbbf9b8e49d045f5af",...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}),d("slot",{key:"3e0f6ae8c23b2536891ddd0adb7be1215d86ac66",name:"trailingAccessory"}),this.trailingLabel&&d("span",{key:"9b2ac9fbf6c198dd0a4e1decf4631b2b46902587",class:"gids-input__label"},this.trailingLabel),d("slot",{key:"d9848f786ce38136f1ad8c07d685215ede87f157",name:"trailingIcon"}),this.status==="incomplete"&&d(A,{key:"bc8bcc01f07bd345b448f4662a37b28d8029a94f",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&d(A,{key:"cafc44041a1d4eac859face7ec5eea2ced1ca3f5",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&d(qt,{key:"0daca638742b098d06da6cd9a7b9cfd6e9c90921",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 dn=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,c=r.endsWith("px")?parseFloat(r):0;return Math.ceil(c?l/c:1)})();return n===2?s==="snackbar"?5e3:8e3:n>=3?s==="snackbar"?7e3:1e4:s==="snackbar"?3e3:6e3})(e),At=M(class extends O{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 un(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,At))}))}un();const hn=At,{getGidsButtonClassNames:fn}=ys,K=({appearance:e,size:t,destructive:s,loading:n,width:i,leadingIcon:o,trailingIcon:a,as:l,disabled:r,class:c,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"),d(p,{class:fn({appearance:e,size:t,destructive:s,loading:n,width:i},h||m.length===0&&kt(o)&&!kt(a),c),disabled:p==="button"?r:void 0,...u},d("span",{class:"gids-button__content"},o,m),n&&d(qt,{size:f,indeterminate:!0}),a)},{getGidsSnackbarContainerClassNames:mn,getSnackbarContainerIconNames:pn}=Vs,gn=({appearance:e="default",children:t,button:s,class:n,...i})=>{const o=pn(e);return d("div",{...i,class:mn({appearance:e},n)},d("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?d(A,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?d("p",null,t):t),s)},{getGidsNotificationContainerClassNames:bn,getNotificationContainerIconNames:_n}=zs,vn=({notificationTitle:e,children:t,button:s,appearance:n="default",pronunciation:i="standard",onCloseNotificationClick:o,class:a,...l})=>{const r=_n(n);return d("div",{class:bn({appearance:n},a),...l},n!=="default"&&r?d("div",{class:"gids-notification-container__leading-icon-wrapper"},d(A,{size:"md",name:r,alt:"",appearance:"filled"})):null,d("div",{class:"gids-notification-container__content-wrapper"},d("div",{class:"gids-notification-container__top-content"},d("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?d("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?d("p",null,t):t:null),i==="standard"?d("div",{class:"gids-notification-container__cross-btn-wrapper"},d(K,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:d(A,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),s?d("div",{class:"gids-notification-container__bottom-content"},s):null))},{getComponentClasses:yn,getComponentStackClasses:Sn}=Bs,jt=M(class extends O{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 d(gn,{key:n,class:s,children:i,appearance:o,button:a!=null&&a!==""?d(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:c,timerInMs:h}=t;return d(vn,{key:n,class:s,notificationTitle:i,children:o,pronunciation:a,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,h||0,!0),button:r!=null&&r!==""?d(K,{appearance:"default",size:"sm",onClick:c},r):void 0})},this._renderComponent=t=>{const{componentName:s,position:n="bottom-center",id:i}=t,o=yn({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=F();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,...c}=e,h={id:""+(Date.now()+Math.random()),notificationTitle:s,message:i,pronunciation:n,appearance:t,buttonLabel:o,onButtonClick:a,position:l,componentName:r,...c};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 d(Ce,{key:"90aa53804ede45cefeb6439d7d5466fbf3ce9bd9"},d("slot",{key:"5705eaedb944a16514dc3570258ec67d60ad82c2"}),this._isRoot()?d("div",{class:Sn({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 wn(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jt))}))}wn();const Cn=jt,{getIndicatorText:xn}=Cs,{getGidsLabelClassNames:kn}=bs,Ft=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...c},h)=>{const u=xn({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:r});return d("div",{class:kn({disabled:e},l),...c},d("label",{htmlFor:o,id:a},h,u&&d("span",{class:"gids-label__field-requirement"},u)),i)},{getGidsDismissButtonClassNames:Tn}=Os,Gt=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:o,...a})=>d("button",{class:Tn({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":o,...a},d(A,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:En}=Is,{getStrengthMeterScore:$n,getColorModifierByScore:Nn}=Es,Rn=({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)=>d("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?a:""].filter(Boolean).join(" ")});return s.length>0?d("div",{class:En(n)},(()=>{const o=s.length,a=$n({text:e,textMinLength:t,meterRules:s}),l=Nn({textScore:a,maxScore:o});return Array.from({length:o},((r,c)=>{const h=c+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:Ln}=As,{getRequirementsMeterLabelLeadingIcon:On}=Rs,Mn=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,o=On(s);return d("div",{class:Ln({status:s},i)},n&&s&&o?d(A,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?d("span",null,t):null)},{checkRequirementRuleSatisfied:qn}=Ns,{getGidsRequirementsMeterClassNames:Pn}=js,In=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(o,a)=>d(Mn,{status:a?"success":"error",label:o.requirementText});return d("div",{class:Pn(n)},e.map((o=>{if(o?.requirementText!=null&&o?.requirementRule!=null){const a=qn({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:An}=Gs,Vt=M(class extends O{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=Re(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=Re(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=F();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,c=this.textMinLength!==void 0?this.textMinLength:8;return d(Ce,{key:"b83ca111267e69120811c23a02754fc2f3132131"},d("gids-field",{key:"b10ea7b36a8f7daa4b5877e541ffa468ca06c474",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:An(this.status)},d(Ft,{key:"04f8c7ee920968585e77dff7e67494547285b6a6",slot:"label",disabled:this.disabled,info:d("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),d("gids-input",{key:"2892c5cda5ac6125e1b1c16195cbe45fed9ed0cd",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}},d("slot",{key:"e6690ff215ac059385463b250d4b75876af23b6b",name:"leadingIcon"}),d("slot",{key:"a22761b031bc9e5d7d115d2c82969685dc4ec150",name:"leadingAccessory"}),d("div",{key:"6e4ddee96b624e07453b06966d02fe22060bdddf",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&d(Gt,{key:"1499342b7785379b68472713b19f2846cb39315c",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&d(K,{key:"b309f288c0e7108f0896de407e1b8b4b6cd1f628",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),d("div",{key:"7cbcb6a793de21d9f990b26ee0ff956a73d3f20e",class:"gids-password-field__meters-container"},d(Rn,{key:"f0085914442e068821fc01304e75a0fab47d3dd5",meterRules:r,text:this.value,textMinLength:c}),d(In,{key:"832be45d45074a520896001b80a20a0fd54695b7",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 jn(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Vt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}jn();const Fn=Vt,{getGidsScrimClassNames:Bt}=Hs,zt=M(class extends O{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Bt(e)}connectedCallback(){const e=F();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Bt(this.extraClasses)}render(){return d("div",{key:"d2bbb04ec12ea535ec8d17e46ff365cb60ca3a38",class:this.activeClasses,part:"root"},d("slot",{key:"00440386c5a5f7a1f58c27b7e182d08447e68d22"}))}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 Gn(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,zt))}))}Gn();const Vn=zt,Ht=M(class extends O{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 Bn(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Ht))}))}Bn();const zn=Ht,{formatCharCount:Hn}=yt,{inputToGidsFieldStatus:Dn}=Ps,Dt=M(class extends O{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=F();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 d("gids-field",{key:"7aa5bbe489adc1310365d37aac41ca9772fa1d0f",disabled:this.disabled,count:Hn(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Dn(this.status)},d(Ft,{key:"5a9bf6cfe25a0800b466a0aaccd21ac80aca59bb",slot:"label",disabled:this.disabled,info:d("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),d("gids-input",{key:"53f0d81f5227ed7a872ec9acebb559d21c4adc6e",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}},d("slot",{key:"42a2856da9b6d31452fc3fb199eacb336bff3475",name:"leadingIcon"}),d("slot",{key:"3b5cbe26cc943ffeab09231a7d7df750f7b473f7",name:"leadingAccessory"}),n&&d(Gt,{key:"51a7942f8e31430bf1d74abad31049e9ad11f92e",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),d("slot",{key:"ae4eccacb0f60d70b57e5df949f7a0dbc9098654",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 Qn(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,Dt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Qn();const Wn=Dt,Qt=M(class extends O{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=F();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return d(ve,{key:"629bf94de5dcf8979c4c52f749e6f1528506cb7f"},d("style",{key:"45b2ada2ba3e26b574f7c34675622db5352802d2"},`:host {
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 {
6
6
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),d(K,{key:"2f93e85e5dbf968c09c245e71a41a9b587ead04c",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:d("slot",{name:"leadingIcon"}),trailingIcon:d("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},d("slot",{key:"599d014741a1d931f44976866e92837ed2184e5f"})))}_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 Un(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Qt))}))}Un();const Yn=Qt;function Ve(e,t){Ys(e,t)}const Xn=e=>{Ve(e)},Kn=e=>{Ve(e)};w.GidsField=nn,w.GidsIcon=an,w.GidsInput=dn,w.GidsNotification=hn,w.GidsOverlayProvider=Cn,w.GidsPasswordField=Fn,w.GidsScrim=Vn,w.GidsSnackbar=zn,w.GidsTextField=Wn,w.GidsToggleButton=Yn,w.getAssetPath=Kt,w.getConstructedGidsStylesheet=F,w.refreshConstructedGidsStylesheet=Ae,w.render=gs,w.setAssetPath=Zt,w.setGidsAssetFilePaths=Xn,w.setGidsAssetPaths=Ve,w.setGidsDefaultAssetDirPath=Kn,w.setNonce=ms,w.setPlatformOptions=ps,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
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"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganpatiinfo/gids-core-web",
3
- "version": "8.0.0",
3
+ "version": "8.2.0",
4
4
  "private": false,
5
5
  "description": "This is a core web package contains html components",
6
6
  "homepage": "https://ganpatiinfosystem.vercel.app/",
@@ -153,6 +153,14 @@
153
153
  "types": "./dist/gids-scrim.d.ts",
154
154
  "default": "./dist/gids-scrim.js"
155
155
  },
156
+ "./gids-overflow-container.js": {
157
+ "types": "./dist/gids-overflow-container.d.ts",
158
+ "default": "./dist/gids-overflow-container.js"
159
+ },
160
+ "./dist/gids-overflow-container.js": {
161
+ "types": "./dist/gids-overflow-container.d.ts",
162
+ "default": "./dist/gids-overflow-container.js"
163
+ },
156
164
  "./customElements": {
157
165
  "default": "./dist/custom-elements.json"
158
166
  },
@@ -171,8 +179,8 @@
171
179
  "dependencies": {
172
180
  "@floating-ui/dom": "1.7.6",
173
181
  "clsx": "^2.1.1",
174
- "@ganpatiinfo/gids-core-shared": "^7.0.0",
175
- "@ganpatiinfo/gids-web-shared": "^7.0.0",
182
+ "@ganpatiinfo/gids-core-shared": "^7.1.0",
183
+ "@ganpatiinfo/gids-web-shared": "^7.1.0",
176
184
  "composed-offset-position": "^0.0.6"
177
185
  },
178
186
  "devDependencies": {
@@ -180,9 +188,9 @@
180
188
  "@fontsource/inter": "^5.2.8",
181
189
  "@fontsource/libre-caslon-text": "^5.2.7",
182
190
  "@ganpatiinfo/gids-liquid-renderer": "^4.0.0",
183
- "@ganpatiinfo/gids-storybook-theme": "^6.0.1",
191
+ "@ganpatiinfo/gids-storybook-theme": "^6.1.0",
184
192
  "@ganpatiinfo/gids-storybook-utilities": "^4.0.0",
185
- "@ganpatiinfo/gids-web-dom-reference": "^7.0.1",
193
+ "@ganpatiinfo/gids-web-dom-reference": "^7.2.0",
186
194
  "@ganpatiinfo/gids-web-theme-ganpatiinfo": "^5.0.1",
187
195
  "@jest/globals": "^30.2.0",
188
196
  "@stencil/core": "^4.43.2",