@ganpatiinfo/gids-core-web 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/css/index.css +130 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-field.d.ts +1 -1
  4. package/dist/gids-field.js +1 -1
  5. package/dist/gids-icon.d.ts +1 -1
  6. package/dist/gids-icon.js +1 -1
  7. package/dist/gids-input.d.ts +1 -1
  8. package/dist/gids-input.js +1 -1
  9. package/dist/gids-notification.d.ts +1 -1
  10. package/dist/gids-overlay-provider.d.ts +1 -1
  11. package/dist/gids-overlay-provider.js +1 -1
  12. package/dist/gids-password-field.d.ts +1 -1
  13. package/dist/gids-password-field.js +1 -1
  14. package/dist/gids-scrim.d.ts +11 -0
  15. package/dist/gids-scrim.js +1 -0
  16. package/dist/gids-snackbar.d.ts +1 -1
  17. package/dist/gids-text-field.d.ts +1 -1
  18. package/dist/gids-text-field.js +1 -1
  19. package/dist/gids-toggle-button.d.ts +1 -1
  20. package/dist/gids-toggle-button.js +1 -1
  21. package/dist/{p-RqpjvEHh.js → p-BVh4zbX4.js} +1 -1
  22. package/dist/{p-D4xtPT_U.js → p-BplPYg8z.js} +1 -1
  23. package/dist/types/components/html/GidsSegmentedControl/GidsSegmentedControl.d.ts +1 -1
  24. package/dist/types/components/html/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +1 -1
  25. package/dist/types/components/html/GidsTopNavigation/GidsTopNavigation.d.ts +1 -1
  26. package/dist/types/components/html/_GidsSideMenuItem/GidsSideMenuItem.d.ts +7 -0
  27. package/dist/types/components/webComponents/GidsScrim/GidsScrim.d.ts +7 -0
  28. package/dist/types/components.d.ts +18 -0
  29. package/dist-bundled/es/gids-field.js +3 -3
  30. package/dist-bundled/es/gids-icon.js +3 -3
  31. package/dist-bundled/es/gids-input.js +2 -2
  32. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  33. package/dist-bundled/es/gids-password-field.js +25 -25
  34. package/dist-bundled/es/gids-scrim.js +35 -0
  35. package/dist-bundled/es/gids-text-field.js +11 -11
  36. package/dist-bundled/es/gids-toggle-button.js +5 -5
  37. package/dist-bundled/es/{p-RqpjvEHh-BGGYsIBf.js → p-BVh4zbX4-C4UJ8LPX.js} +6 -6
  38. package/dist-bundled/es/{p-D4xtPT_U-04HkZiXU.js → p-BplPYg8z-B8uAAfo4.js} +4 -4
  39. package/dist-bundled/umd/gids-field.umd.js +1 -1
  40. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  41. package/dist-bundled/umd/gids-input.umd.js +1 -1
  42. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  43. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  44. package/dist-bundled/umd/gids-scrim.umd.js +5 -0
  45. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  46. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  47. package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
  48. package/package.json +12 -4
@@ -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 H,Qt=(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)}}))},M=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:{},q=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,De=[],He=[],Wt=(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(De),Qe(He),(he=De.length>0)&&x.raf(fe)},me=e=>Promise.resolve(void 0).then(e),Ut=Wt(He),Yt=e=>{const t=new URL(e,x.u);return t.origin!==C.location.origin?t.href:t.pathname},Xt=e=>x.u=e;function Kt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(ue?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}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=!!Zt(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 Zt=(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,F,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,Jt);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={},Jt={forEach:(e,t)=>e.map(Xe).forEach(t),map:(e,t)=>e.map(Xe).map(t).map(es)},Xe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),es=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&&ns(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=M(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(ss,""),s&&x.rel(e,t,s,r),n&&x.ael(e,t,n,r)}}},ts=/\s/,tt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ts):[]),st="Capture",ss=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"]=F,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,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,Wt=(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=[],Ut=(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),Yt=Ut(De),Xt=e=>{const t=new URL(e,x.u);return t.origin!==C.location.origin?t.href:t.pathname},Kt=e=>x.u=e;function Zt(){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=!!Jt(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 Jt=(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,es);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={},es={forEach:(e,t)=>e.map(Xe).forEach(t),map:(e,t)=>e.map(Xe).map(t).map(ts)},Xe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ts=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&&is(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(ns,""),s&&x.rel(e,t,s,r),n&&x.ael(e,t,n,r)}}},ss=/\s/,tt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ss):[]),st="Capture",ns=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(`
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(F.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&&(R(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"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(R(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===F&&(l=l.shadowRoot),s.O==="template"&&(l=l.content);i<=o;++i)n[i]&&(a=ne(null,s,i),a&&(n[i].S=a,R(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],$=m.length-1,N=m[0],O=m[$];const Ht=u.O==="template"?c.content:c;for(;y<=T&&_<=$;)if(v==null)v=h[++y];else if(k==null)k=h[--T];else if(N==null)N=m[++_];else if(O==null)O=m[--$];else if(oe(v,N,p))z(v,N,p),v=h[++y],N=m[++_];else if(oe(k,O,p))z(k,O,p),k=h[--T],O=m[--$];else if(oe(v,O,p))v.O!=="slot"&&O.O!=="slot"||ie(v.S.parentNode,!1),z(v,O,p),R(Ht,v.S,k.S.nextSibling),v=h[++y],O=m[--$];else if(oe(k,N,p))v.O!=="slot"&&O.O!=="slot"||ie(k.S.parentNode,!1),z(k,N,p),R(Ht,k.S,v.S),k=h[--T],N=m[++_];else{for(b=-1,g=y;g<=T;++g)if(h[g]&&h[g].$!==null&&h[g].$===N.$){b=g;break}b>=0?(S=h[b],S.O!==N.O?f=ne(h&&h[_],u,b):(z(S,N,p),h[b]=void 0,f=S.S),N=m[++_]):(f=ne(h&&h[_],u,_),N=m[++_]),f&&R(U(v.S).parentNode,f,U(v.S))}y>T?ot(c,m[$+1]==null?null:m[$+1].S,u,m,_,$):_>$&&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)},P=[],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=P.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"],P.push({N:o,k:t})),t["s-sr"]&&P.map((r=>{Ue(r.k,t["s-sn"])&&(l=P.find((c=>c.k===t)),l&&!r.N&&(r.N=l.N))}))}else P.some((l=>l.k===t))||P.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)},ns=(e,t)=>{we.push((()=>e(t)))},R=(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(F=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 P){const f=p.k;if(!f["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=f,R(f.parentNode,f["s-ol"]=S,f,s)}}for(const p of P){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(R(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,R(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,P.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"]!==F&&!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"],R(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=()=>is(e,t);if(!t)return Ut(s);queueMicrotask((()=>{s()}))},is=(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,(()=>as(e,n,t)))},ut=(e,t)=>os(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),os=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",as=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,$;return($=(k=(v=C.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$: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),rs(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],l=()=>ls(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},rs=(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},ls=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,ds(t),Y(s,"componentDidLoad",void 0,t),e.F(t),n||cs()),e.A&&(e.A(),e.A=void 0),512&e.i&&me((()=>ae(e,!1))),e.i&=-517},ht=e=>{var t;{const s=M(e),n=(t=s?.$hostElement$)==null?void 0:t.isConnected;return n&&(18&s.i)==2&&ae(s,!1),n}},cs=()=>{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)}},ds=e=>e.classList.add("hydrated"),ft=(e,t,s,n)=>{const i=M(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)}}},us=(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,M(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(h){const u=M(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=M(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},I=(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&&Qt(o,l)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!M(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&x.i)){const a=M(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,R(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||M(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 Kt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),us(e,s)}catch(n){return B(n),e}},Ce=(e,t)=>t,hs=e=>x.L=e,fs=e=>Object.assign(x,e),mt=new WeakMap;function ms(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 Wn(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 L(){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 ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>L("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>L("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"})),bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>L("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"})),_s=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:s,destructive:n,loading:i},o,a)=>L("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(".")},vs=/\w/,ys=e=>e.replace(vs,t=>t.toLocaleUpperCase()),bt=(e,t)=>typeof e=="function"?e(t):t?ys(e):e,Ss=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,ws=re/2,xe=2*Math.PI*vt,Cs=`0 0 ${re} ${re}`,xs=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:ws,circumference:xe,radius:vt,thickness:_t,viewBox:Cs},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]/,Ne=/[^A-Za-z0-9]/,ks=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")&&Ne.test(e)&&n++,t.includes("include-min-length")&&s&&s>0&&e.length>=s&&n++,n},include1DigitReg:Ee,include1LowercaseLetterReg:Te,include1SpecialCharReg:Ne,include1UppercaseLetterReg:ke},Symbol.toStringTag,{value:"Module"})),X=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,$e=e=>{const t=[];return e&&e.length>0&&e.map(s=>{s?.requirementRule&&t.push(s.requirementRule)}),t},Ts=({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 Ne.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:$e(t),defaultRequirementsMeterRules:t}},Es=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Ts,getDefaultRulesAndRequirementsForMeters:Re,getMeterRulesFromRequirements:$e,minLengthRuleCanBeApplied:X},Symbol.toStringTag,{value:"Module"})),Ns=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"})),$s=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"})),Rs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},s)=>L("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"})),Ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>L("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Os}=yt,Ms=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Os(e)},Symbol.toStringTag,{value:"Module"})),qs=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>L("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>L("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"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>L("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:As}=$s,js=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":As(e)},Symbol.toStringTag,{value:"Module"})),Fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>L("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"}},Gs=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"})),Vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>L("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"})),Le=Symbol("defaultPath"),Ct=Symbol("pathSet"),Oe="gids-asset-paths-set";class Bs 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"),zs=()=>(globalThis[Me]===void 0&&(globalThis[Me]={assetPaths:{}}),globalThis[Me]),Ds=e=>{const t=zs().assetPaths;return t[e]===void 0&&(t[e]=new Bs),t[e]};function le(){return Ds("@ganpatiinfo/gids-web-shared")}function Hs(){return le().haveAssetPathsBeenSet()}function Qs(e,t){le().setAssetPaths(e,t)}function xt(e){return le().getAssetFilePath(e)}function Ws(e){return le().onAssetPathsSet(e)}let Us=0;const qe=(e,t="gids")=>e||`${t}-${Us++}`,Ys=e=>e.type==="hidden",Xs=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&&!Ys(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 Ks(e){return Et.get(e)}function Nt(e,t="regular",s){const n=Ks(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Zs}=bs,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&&Hs()&&(c=Nt(e,s,xt)),d("svg",{ref:h=>{c===void 0&&Ws((()=>{(function(u,m,p){if(!u)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Nt(m,p,xt)),u.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:Zs({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)},D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let $t=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):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(D===void 0)return!1;const e=(()=>{if(D===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),D.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},G=()=>($t||($t=Ae()),D),{getGidsFieldClassNames:Js}=Ls,Rt=I(class extends q{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=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,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:"fed52ee2bacf334f4ec630fdaea5285d8aee56b3"},d("div",{key:"fe65a5714ae0e8369a2e6d91f5ccbe37ce1b04b4",class:Js()},d("div",{key:"37d656971e39e9c26085b54fd253f9758e6110fa",class:"gids-field__header",hidden:!this._hasLabelContent()},d("slot",{key:"eda62c8170fb5caf2e69f66bae079d1646a52ff8",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),d("div",{key:"28677c5ebd0e8bfb7f9f0c43634c9a70b84f4cd0",class:"gids-field__count","aria-live":"polite"},this.count)),d("div",{key:"0a816504a863304e13be74c64429b74700fc3590",class:"gids-field__control"},d("slot",{key:"1081771bfb182da6b0527303132555458de3ff2e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),d("p",{key:"632636f8c4d819b6c32658a7ae72ab9308973fda",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 en=Rt,Lt=I(class extends q{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return d(A,{key:"b3a3cfcc04ab9526dd924d24df2ad992a2018ffc",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%)}.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 tn(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Lt))}))}tn();const sn=Lt,{getGidsSpinnerControlClassNames:nn}=gs,{calculateStrokeDasharray:on,thickness:Ot,radius:Mt,centerPosition:ce,viewBox:an}=xs,qt=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:on(s,n||0),strokeDashoffset:"0"}),d("svg",{class:nn({size:e,indeterminate:t,value:s}),viewBox:an,...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=I(class extends q{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(Xs(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:"9d1ed3749495c830b3940d4da09056620ccaef1d"},d("slot",{key:"ae4b6e25b50e1b2fc04ff7eb1b2695437b25b974",name:"leadingIcon"}),this.leadingLabel&&d("span",{key:"408038e8921dc443f14b5c57541d8ca74205e193",class:"gids-input__label"},this.leadingLabel),d("slot",{key:"033b3c940545c99f3aa356e08267c77c25c0f89c",name:"leadingAccessory"}),d("input",{key:"d302436fe388ce84e775ee73c83723cd4bfb46b3",...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:"85d41d8a06da0c88a6defe65eae2d6f1e69c3abd",name:"trailingAccessory"}),this.trailingLabel&&d("span",{key:"1fec370bdb270031d6e3cdd9bed84871116be21f",class:"gids-input__label"},this.trailingLabel),d("slot",{key:"65800ff524221d70b659901d440c5459e64975a8",name:"trailingIcon"}),this.status==="incomplete"&&d(A,{key:"2bec2513415dad3294abc23ebcdc0493fa44399a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&d(A,{key:"2e21e9cb5ccfad300400c97dba89642395f84b04",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&d(qt,{key:"5fb23cf0b1e280cf7acd8ccd47c1a8d9611a1f19",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 rn=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=I(class extends q{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 ln(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,At))}))}ln();const cn=At,{getGidsButtonClassNames:dn}=_s,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:dn({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:un,getSnackbarContainerIconNames:hn}=Fs,fn=({appearance:e="default",children:t,button:s,class:n,...i})=>{const o=hn(e);return d("div",{...i,class:un({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:mn,getNotificationContainerIconNames:pn}=Vs,gn=({notificationTitle:e,children:t,button:s,appearance:n="default",pronunciation:i="standard",onCloseNotificationClick:o,class:a,...l})=>{const r=pn(n);return d("div",{class:mn({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:bn,getComponentStackClasses:_n}=Gs,jt=I(class extends q{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 console.log("_renderSnackbar_called"),d(fn,{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(gn,{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=bn({position:n,id:i,exitingComponents:this._exitingComponents});return console.log("_renderComponent_called",s),s==null||s==="snackbar"?this._renderSnackbar(t,o):s==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=G();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};console.log("component_1",r),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:"41dc60790fe64bf9e0daa2da5fd6c39f30d8ceac"},d("slot",{key:"a480a4344336cbbf75ac3bc771c9416d27d9d742"}),this._isRoot()?d("div",{class:_n({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 vn(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jt))}))}vn();const yn=jt,{getIndicatorText:Sn}=Ss,{getGidsLabelClassNames:wn}=ps,Ft=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...c},h)=>{const u=Sn({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:r});return d("div",{class:wn({disabled:e},l),...c},d("label",{htmlFor:o,id:a},h,u&&d("span",{class:"gids-label__field-requirement"},u)),i)},{getGidsDismissButtonClassNames:Cn}=Rs,Gt=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:o,...a})=>d("button",{class:Cn({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":o,...a},d(A,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:xn}=qs,{getStrengthMeterScore:kn,getColorModifierByScore:Tn}=ks,En=({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:xn(n)},(()=>{const o=s.length,a=kn({text:e,textMinLength:t,meterRules:s}),l=Tn({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:Nn}=Ps,{getRequirementsMeterLabelLeadingIcon:$n}=Ns,Rn=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,o=$n(s);return d("div",{class:Nn({status:s},i)},n&&s&&o?d(A,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?d("span",null,t):null)},{checkRequirementRuleSatisfied:Ln}=Es,{getGidsRequirementsMeterClassNames:On}=Is,Mn=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(o,a)=>d(Rn,{status:a?"success":"error",label:o.requirementText});return d("div",{class:On(n)},(console.log("requirements",e),e.map((o=>{if(o?.requirementText&&o?.requirementRule){const a=Ln({rule:o.requirementRule,textMinLength:s,text:t});return o.requirementRule==="include-min-length"?X({requirementRule:o.requirementRule,textMinLength:s})?i(o,a):null:i(o,a)}return null}))))},{inputToGidsFieldStatusForPassword:qn}=js,Vt=I(class extends q{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?$e(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=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0,i=this.showRevealPasswordButton,o={...t},a=o?.placeholder&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,r=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return d(Ce,{key:"548bcf66b7ee93974d790e7b3a44ba764ace509f"},d("gids-field",{key:"4e52e64a5ad558317cb35b72121be744befeab1b",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:qn(this.status)},d(Ft,{key:"2b797611f9f104f9a99a9e0d4bdda31dee0839b4",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:"725f94aff51966525b640f1fe1e010c700c1ddc8",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:"ef742cdd2cb00887f74589ad44304cb401194688",name:"leadingIcon"}),d("slot",{key:"6f38de10ddb3acd5ec39b72bea3e3b4b08aabc9e",name:"leadingAccessory"}),d("div",{key:"c607f812340a2a5e22323682d3a739b31d8fb66c",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&d(Gt,{key:"a12067b7e8b1cd30edd61fae71c980ad1c5f269a",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&d(K,{key:"0b2a76bd61aba94d2fa17c2a97f87b28f99b2a0e",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),d("div",{key:"9a6624d2963148db0c20713a565be4dcf6815f7b",class:"gids-password-field__meters-container"},d(En,{key:"f5edecbaf4438d0ca4cb457034fe8f59cd665a1d",meterRules:r,text:this.value,textMinLength:c}),d(Mn,{key:"04d03abd215fbdcc966ccd9321942d7a25717fa1",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 Pn(){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()}}))}Pn();const In=Vt,Bt=I(class extends q{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 An(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Bt))}))}An();const jn=Bt,{formatCharCount:Fn}=yt,{inputToGidsFieldStatus:Gn}=Ms,zt=I(class extends q{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=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},s=e??this.#t,n=this.showClearButton&&this.value!==void 0&&this.value.length>0;return d("gids-field",{key:"cc94d948b69f9a9cfeee2b9df2a06d8985448963",disabled:this.disabled,count:Fn(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Gn(this.status)},d(Ft,{key:"16ed76aa12c2a256cd7ca7d2862b552e444f57c7",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:"2b5ac45e1c828db13394d003cec5acfef2d02f82",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:"e36107774a78bf7162d88784474b9dc77aa4fffa",name:"leadingIcon"}),d("slot",{key:"0c8d888dc3f46d2d49be0e55e1833604e703724c",name:"leadingAccessory"}),n&&d(Gt,{key:"06804811547b79a273271a467cc3020e49b66ea6",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),d("slot",{key:"d05029b11a4aa635123da84611e671edbfb925c6",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 Vn(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,zt);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Vn();const Bn=zt,Dt=I(class extends q{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=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return d(ve,{key:"0f65cdb9d34f2cb5db90104964b7d76f63b7546c"},d("style",{key:"410fa1ed0c7f2ee1fa431e639adae9b09643635b"},`: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(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 Qt=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(Qt,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(Qt,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)},is=(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=()=>os(e,t);if(!t)return Yt(s);queueMicrotask((()=>{s()}))},os=(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,(()=>rs(e,n,t)))},ut=(e,t)=>as(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),as=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",rs=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),ls(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],l=()=>cs(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},ls=(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},cs=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,us(t),Y(s,"componentDidLoad",void 0,t),e.F(t),n||ds()),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}},ds=()=>{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)}},us=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)}}},hs=(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&&Wt(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 Zt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),hs(e,s)}catch(n){return B(n),e}},Ce=(e,t)=>t,fs=e=>x.L=e,ms=e=>Object.assign(x,e),mt=new WeakMap;function ps(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 gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>N("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),bs=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"})),_s=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"})),vs=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(".")},ys=/\w/,Ss=e=>e.replace(ys,t=>t.toLocaleUpperCase()),bt=(e,t)=>typeof e=="function"?e(t):t?Ss(e):e,ws=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,Cs=re/2,xe=2*Math.PI*vt,xs=`0 0 ${re} ${re}`,ks=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:Cs,circumference:xe,radius:vt,thickness:_t,viewBox:xs},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]/,Ts=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},Es=({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}},$s=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Es,getDefaultRulesAndRequirementsForMeters:Re,getMeterRulesFromRequirements:Ne,minLengthRuleCanBeApplied:X},Symbol.toStringTag,{value:"Module"})),Ns=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"})),Rs=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"})),Ls=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"})),Os=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>N("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Ms}=yt,qs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Ms(e)},Symbol.toStringTag,{value:"Module"})),Ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>N("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),Is=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"})),As=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>N("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:js}=Rs,Fs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":js(e)},Symbol.toStringTag,{value:"Module"})),Gs=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"}},Vs=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"})),Bs=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"})),zs=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 Hs 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"),Ds=()=>(globalThis[Me]===void 0&&(globalThis[Me]={assetPaths:{}}),globalThis[Me]),Qs=e=>{const t=Ds().assetPaths;return t[e]===void 0&&(t[e]=new Hs),t[e]};function le(){return Qs("@ganpatiinfo/gids-web-shared")}function Ws(){return le().haveAssetPathsBeenSet()}function Us(e,t){le().setAssetPaths(e,t)}function xt(e){return le().getAssetFilePath(e)}function Ys(e){return le().onAssetPathsSet(e)}let Xs=0;const qe=(e,t="gids")=>e||`${t}-${Xs++}`,Ks=e=>e.type==="hidden",Zs=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&&!Ks(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 Js(e){return Et.get(e)}function $t(e,t="regular",s){const n=Js(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:en}=_s,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&&Ws()&&(c=$t(e,s,xt)),d("svg",{ref:h=>{c===void 0&&Ys((()=>{(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:en({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:tn}=Os,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:tn()},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 sn=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%)}.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 nn(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Lt))}))}nn();const on=Lt,{getGidsSpinnerControlClassNames:an}=bs,{calculateStrokeDasharray:rn,thickness:Ot,radius:Mt,centerPosition:ce,viewBox:ln}=ks,qt=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:rn(s,n||0),strokeDashoffset:"0"}),d("svg",{class:an({size:e,indeterminate:t,value:s}),viewBox:ln,...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(Zs(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 cn=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 dn(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,At))}))}dn();const un=At,{getGidsButtonClassNames:hn}=vs,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:hn({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:fn,getSnackbarContainerIconNames:mn}=Gs,pn=({appearance:e="default",children:t,button:s,class:n,...i})=>{const o=mn(e);return d("div",{...i,class:fn({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:gn,getNotificationContainerIconNames:bn}=Bs,_n=({notificationTitle:e,children:t,button:s,appearance:n="default",pronunciation:i="standard",onCloseNotificationClick:o,class:a,...l})=>{const r=bn(n);return d("div",{class:gn({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:vn,getComponentStackClasses:yn}=Vs,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 console.log("_renderSnackbar_called"),d(pn,{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(_n,{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=vn({position:n,id:i,exitingComponents:this._exitingComponents});return console.log("_renderComponent_called",s),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};console.log("component_1",r),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:"cc411e4a7fd0174d11d189a107dc1558a93c8ea2"},d("slot",{key:"724e2c2ccdd2e3e7917808906d7308067da2ae87"}),this._isRoot()?d("div",{class:yn({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 Sn(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jt))}))}Sn();const wn=jt,{getIndicatorText:Cn}=ws,{getGidsLabelClassNames:xn}=gs,Ft=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...c},h)=>{const u=Cn({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:r});return d("div",{class:xn({disabled:e},l),...c},d("label",{htmlFor:o,id:a},h,u&&d("span",{class:"gids-label__field-requirement"},u)),i)},{getGidsDismissButtonClassNames:kn}=Ls,Gt=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:o,...a})=>d("button",{class:kn({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":o,...a},d(A,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:Tn}=Ps,{getStrengthMeterScore:En,getColorModifierByScore:$n}=Ts,Nn=({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:Tn(n)},(()=>{const o=s.length,a=En({text:e,textMinLength:t,meterRules:s}),l=$n({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:Rn}=Is,{getRequirementsMeterLabelLeadingIcon:Ln}=Ns,On=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,o=Ln(s);return d("div",{class:Rn({status:s},i)},n&&s&&o?d(A,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?d("span",null,t):null)},{checkRequirementRuleSatisfied:Mn}=$s,{getGidsRequirementsMeterClassNames:qn}=As,Pn=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(o,a)=>d(On,{status:a?"success":"error",label:o.requirementText});return d("div",{class:qn(n)},(console.log("requirements",e),e.map((o=>{if(o?.requirementText&&o?.requirementRule){const a=Mn({rule:o.requirementRule,textMinLength:s,text:t});return o.requirementRule==="include-min-length"?X({requirementRule:o.requirementRule,textMinLength:s})?i(o,a):null:i(o,a)}return null}))))},{inputToGidsFieldStatusForPassword:In}=Fs,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&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,r=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return d(Ce,{key:"84bc020da1e496c4127ef65e4f7432b1ffb9654c"},d("gids-field",{key:"484452f7974320a9aa937435cfb2a38027de9bc8",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:In(this.status)},d(Ft,{key:"d89c25ed9f385009ce353bb5ceee083f25b6a685",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:"83c256b3a95e253c9fed98c31b28350dfaa91f01",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:"7c60013a0c976f72e68c7055885969d0dfcc86bc",name:"leadingIcon"}),d("slot",{key:"d04ba13ed7d1188085cee4f77f2ead6f5d63688e",name:"leadingAccessory"}),d("div",{key:"a527bcf421410accbb74effe758eee728c152ac8",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&d(Gt,{key:"9a2aa3cd9bd7cb11dc48976e7bafa1ac9c86fde8",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&d(K,{key:"d1b11a62438c98f74ce0c52b49ebd72727a42305",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),d("div",{key:"2ba8e5b0e4c3fef3c19d151455cdefea6c619126",class:"gids-password-field__meters-container"},d(Nn,{key:"57b83f9ac75d5fac702b7992863ea6603fc48dd1",meterRules:r,text:this.value,textMinLength:c}),d(Pn,{key:"018f5c35f66b3d80aade1b827b323274b27fd7bb",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 An(){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()}}))}An();const jn=Vt,{getGidsScrimClassNames:Fn}=zs,Bt=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("div",{key:"befcd12706dbf780586972ee76bda7d7a64e8702",class:Fn(this.extraClasses)},d("slot",{key:"a7bf7c4732706d7bc954d5160b6154868a785913"}))}get _el(){return this}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(calc(var(24px) / 2))}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"]}]);function Gn(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,Bt))}))}Gn();const Vn=Bt,zt=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,zt))}))}Bn();const zn=zt,{formatCharCount:Hn}=yt,{inputToGidsFieldStatus:Dn}=qs,Ht=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,Ht);break;case"gids-field":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Fe()}}))}Qn();const Wn=Ht,Dt=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 {
6
6
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),d(K,{key:"c60640620902451f4c635b802d1cd298f218772f",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:"7904b661a3eb9be25e25a0a9668580462ebfc393"})))}_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 zn(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Dt))}))}zn();const Dn=Dt;function Ve(e,t){Qs(e,t)}const Hn=e=>{Ve(e)},Qn=e=>{Ve(e)};w.GidsField=en,w.GidsIcon=sn,w.GidsInput=rn,w.GidsNotification=cn,w.GidsOverlayProvider=yn,w.GidsPasswordField=In,w.GidsSnackbar=jn,w.GidsTextField=Bn,w.GidsToggleButton=Dn,w.getAssetPath=Yt,w.getConstructedGidsStylesheet=G,w.refreshConstructedGidsStylesheet=Ae,w.render=ms,w.setAssetPath=Xt,w.setGidsAssetFilePaths=Hn,w.setGidsAssetPaths=Ve,w.setGidsDefaultAssetDirPath=Qn,w.setNonce=hs,w.setPlatformOptions=fs,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
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,Dt))}))}Un();const Yn=Dt;function Ve(e,t){Us(e,t)}const Xn=e=>{Ve(e)},Kn=e=>{Ve(e)};w.GidsField=sn,w.GidsIcon=on,w.GidsInput=cn,w.GidsNotification=un,w.GidsOverlayProvider=wn,w.GidsPasswordField=jn,w.GidsScrim=Vn,w.GidsSnackbar=zn,w.GidsTextField=Wn,w.GidsToggleButton=Yn,w.getAssetPath=Xt,w.getConstructedGidsStylesheet=F,w.refreshConstructedGidsStylesheet=Ae,w.render=ps,w.setAssetPath=Kt,w.setGidsAssetFilePaths=Xn,w.setGidsAssetPaths=Ve,w.setGidsDefaultAssetDirPath=Kn,w.setNonce=fs,w.setPlatformOptions=ms,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": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "private": false,
5
5
  "description": "This is a core web package contains html components",
6
6
  "homepage": "https://ganpatiinfosystem.vercel.app/",
@@ -145,6 +145,14 @@
145
145
  "types": "./dist/gids-notification.d.ts",
146
146
  "default": "./dist/gids-notification.js"
147
147
  },
148
+ "./gids-scrim.js": {
149
+ "types": "./dist/gids-scrim.d.ts",
150
+ "default": "./dist/gids-scrim.js"
151
+ },
152
+ "./dist/gids-scrim.js": {
153
+ "types": "./dist/gids-scrim.d.ts",
154
+ "default": "./dist/gids-scrim.js"
155
+ },
148
156
  "./customElements": {
149
157
  "default": "./dist/custom-elements.json"
150
158
  },
@@ -163,8 +171,8 @@
163
171
  "dependencies": {
164
172
  "@floating-ui/dom": "1.7.6",
165
173
  "clsx": "^2.1.1",
166
- "@ganpatiinfo/gids-core-shared": "^4.0.0",
167
- "@ganpatiinfo/gids-web-shared": "^4.0.0",
174
+ "@ganpatiinfo/gids-core-shared": "^5.0.0",
175
+ "@ganpatiinfo/gids-web-shared": "^5.0.0",
168
176
  "composed-offset-position": "^0.0.6"
169
177
  },
170
178
  "devDependencies": {
@@ -174,7 +182,7 @@
174
182
  "@ganpatiinfo/gids-liquid-renderer": "^3.0.0",
175
183
  "@ganpatiinfo/gids-storybook-theme": "^5.0.0",
176
184
  "@ganpatiinfo/gids-storybook-utilities": "^3.0.0",
177
- "@ganpatiinfo/gids-web-dom-reference": "^4.0.0",
185
+ "@ganpatiinfo/gids-web-dom-reference": "^5.0.0",
178
186
  "@ganpatiinfo/gids-web-theme-ganpatiinfo": "^4.0.0",
179
187
  "@jest/globals": "^30.2.0",
180
188
  "@stencil/angular-output-target": "^1.3.0",