@ganpatiinfo/gids-core-web 3.0.0 → 4.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 (85) hide show
  1. package/dist/css/index.css +901 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +90 -0
  4. package/dist/gids-field.d.ts +11 -0
  5. package/dist/gids-field.js +1 -0
  6. package/dist/gids-icon.js +1 -1
  7. package/dist/gids-input.d.ts +11 -0
  8. package/dist/gids-input.js +1 -0
  9. package/dist/gids-notification.d.ts +11 -0
  10. package/dist/gids-notification.js +1 -0
  11. package/dist/gids-overlay-provider.d.ts +11 -0
  12. package/dist/gids-overlay-provider.js +1 -0
  13. package/dist/gids-password-field.d.ts +11 -0
  14. package/dist/gids-password-field.js +1 -0
  15. package/dist/gids-snackbar.d.ts +11 -0
  16. package/dist/gids-snackbar.js +1 -0
  17. package/dist/gids-text-field.d.ts +11 -0
  18. package/dist/gids-text-field.js +1 -0
  19. package/dist/gids-toggle-button.js +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/p-B2zUuNXz.js +1 -0
  22. package/dist/p-CVtNa0cL.js +1 -0
  23. package/dist/p-CWdkmFbc.js +1 -0
  24. package/dist/p-D4xtPT_U.js +1 -0
  25. package/dist/p-DijVkS9b.js +1 -0
  26. package/dist/p-DybsMR13.js +1 -0
  27. package/dist/p-RqpjvEHh.js +1 -0
  28. package/dist/p-ibikYq-w.js +1 -0
  29. package/dist/p-veoOgDXg.js +1 -0
  30. package/dist/types/components/html/GidsDismissButton/GidsDismissButton.d.ts +6 -0
  31. package/dist/types/components/html/GidsHeading/GidsHeading.d.ts +6 -0
  32. package/dist/types/components/html/GidsLogo/GidsLogo.d.ts +9 -0
  33. package/dist/types/components/html/GidsRequirementsMeter/GidsRequirementsMeter.d.ts +4 -0
  34. package/dist/types/components/html/GidsSearchBar/GidsSearchBar.d.ts +10 -0
  35. package/dist/types/components/html/GidsSegmentedControl/GidsSegmentedControl.d.ts +6 -0
  36. package/dist/types/components/html/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +6 -0
  37. package/dist/types/components/html/GidsStatusTag/GidsStatusTag.d.ts +5 -0
  38. package/dist/types/components/html/GidsStepper/GidsStepper.d.ts +7 -0
  39. package/dist/types/components/html/GidsStrengthMeter/GidsStrengthMeter.d.ts +5 -0
  40. package/dist/types/components/html/GidsTopNavigation/GidsTopNavigation.d.ts +8 -0
  41. package/dist/types/components/html/_GidsNotificationContainer/GidsNotificationContainer.d.ts +7 -0
  42. package/dist/types/components/html/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.d.ts +4 -0
  43. package/dist/types/components/html/_GidsSnackbarContainer/GidsSnackbarContainer.d.ts +6 -0
  44. package/dist/types/components/webComponents/GidsField/GidsField.d.ts +54 -0
  45. package/dist/types/components/webComponents/GidsInput/GidsInput.d.ts +27 -0
  46. package/dist/types/components/webComponents/GidsNotification/GidsNotification.d.ts +17 -0
  47. package/dist/types/components/webComponents/GidsOverlayProvider/GidsOverlayProvider.d.ts +23 -0
  48. package/dist/types/components/webComponents/GidsOverlayProvider/GidsOverlayProviderUtils.d.ts +8 -0
  49. package/dist/types/components/webComponents/GidsPasswordField/GidsPasswordField.d.ts +49 -0
  50. package/dist/types/components/webComponents/GidsSnackbar/GidsSnackbar.d.ts +15 -0
  51. package/dist/types/components/webComponents/GidsTextField/GidsTextField.d.ts +39 -0
  52. package/dist/types/components.d.ts +437 -4
  53. package/dist-bundled/es/gids-field.js +6 -0
  54. package/dist-bundled/es/gids-icon.js +16 -200
  55. package/dist-bundled/es/gids-input.js +6 -0
  56. package/dist-bundled/es/gids-notification.js +31 -0
  57. package/dist-bundled/es/gids-overlay-provider.js +209 -0
  58. package/dist-bundled/es/gids-password-field.js +221 -0
  59. package/dist-bundled/es/gids-snackbar.js +31 -0
  60. package/dist-bundled/es/gids-text-field.js +78 -0
  61. package/dist-bundled/es/gids-toggle-button.js +14 -55
  62. package/dist-bundled/es/index.js +8 -7
  63. package/dist-bundled/es/p-B2zUuNXz-BLBgQDu7.js +45 -0
  64. package/dist-bundled/es/p-CVtNa0cL-sSVeJsR3.js +15 -0
  65. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +24 -0
  66. package/dist-bundled/es/p-D4xtPT_U-04HkZiXU.js +181 -0
  67. package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +35 -0
  68. package/dist-bundled/es/p-DybsMR13-DpmsG3Q1.js +31 -0
  69. package/dist-bundled/es/p-RqpjvEHh-BGGYsIBf.js +74 -0
  70. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +635 -0
  71. package/dist-bundled/es/p-veoOgDXg-DElc87c0.js +192 -0
  72. package/dist-bundled/umd/gids-field.umd.js +5 -0
  73. package/dist-bundled/umd/gids-icon.umd.js +5 -1
  74. package/dist-bundled/umd/gids-input.umd.js +5 -0
  75. package/dist-bundled/umd/gids-notification.umd.js +5 -0
  76. package/dist-bundled/umd/gids-overlay-provider.umd.js +5 -0
  77. package/dist-bundled/umd/gids-password-field.umd.js +5 -0
  78. package/dist-bundled/umd/gids-snackbar.umd.js +5 -0
  79. package/dist-bundled/umd/gids-text-field.umd.js +5 -0
  80. package/dist-bundled/umd/gids-toggle-button.umd.js +6 -2
  81. package/dist-bundled/umd/index.umd.js +5 -1
  82. package/dist-bundled/umd-complete/gids-core-web.umd.js +6 -2
  83. package/package.json +65 -9
  84. package/dist/p-CgujYzVX.js +0 -1
  85. package/dist-bundled/es/p-CgujYzVX-xo1axnk6.js +0 -465
@@ -0,0 +1,5 @@
1
+ (function(M,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(M=typeof globalThis<"u"?globalThis:M||self,L(M.gidsCoreWebGidsOverlayProvider={}))})(this,(function(M){"use strict";function L(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!o||s.get))return s;e=Object.getPrototypeOf(e)}}var D,ut=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[s]])=>{if(31&s||32&s){const i=e[n],r=L(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(l){r.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):i!==void 0&&(e[n]=i)}}))},E=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ke=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),z=new Map,Ce="http://www.w3.org/1999/xlink",_=typeof window<"u"?window:{},mt=_.HTMLElement||class{},N={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},te=(()=>{try{return!!_.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ne=!!te&&!!_.document&&Object.getOwnPropertyDescriptor(_.document.adoptedStyleSheets,"length").writable,oe=!1,Ne=[],xe=[],ft=(e,t)=>o=>{e.push(o),oe||(oe=!0,4&N.i?ie(se):N.raf(se))},Oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},se=()=>{Oe(Ne),Oe(xe),(oe=Ne.length>0)&&N.raf(se)},ie=e=>Promise.resolve(void 0).then(e),pt=ft(xe);function ht(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(ne?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var $e=e=>{const t=ae(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&re(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!gt(n,Q(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&ae(n,"childNodes").length&&$e(n)}};function re(e,t,o){let n,s=0,i=[];for(;s<e.length;s++){if(n=e[s],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||Q(n)===o)&&(i.push(n),o!==void 0))return i;i=[...i,...re(n.childNodes,t,o)]}return i}var gt=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)!==t||!o&&s["s-sr"]||n.push(s);return n},je=(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 ae(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,R,T=new WeakMap,Pe=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",y=(e,t,...o)=>{let n=null,s=null,i=null,r=!1,l=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)n=d[f],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!ce(n))&&(n=String(n)),r&&l?a[a.length-1].h+=n:a.push(r?V(null,n):n),l=r)};if(c(o),t){t.key&&(s=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,bt);const u=V(e,null);return u.v=t,a.length>0&&(u.m=a),u.$=s,u.j=i,u},V=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),vt={},bt={forEach:(e,t)=>e.map(Ae).forEach(t),map:(e,t)=>e.map(Ae).map(t).map(yt)},Ae=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),yt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),y(e.vtag,o,...e.vchildren||[])}const t=V(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ee=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const s of t){if(o)break;for(const i of e[s])if(typeof i=="string"){o=!0;break}}if(!o)return e;const n={};for(const s of t)n[s]=e[s].map((i=>typeof i=="string"?{[i]:0}:i));return n},Te=(e,t)=>e==null||ce(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,St=(e,t,o)=>{const n=N.ce(t,o);return e.dispatchEvent(n),n},Me=(e,t,o,n,s,i)=>{if(o===n)return;let r=ke(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=Re(o);let u=Re(n);a.remove(...c.filter((d=>d&&!u.includes(d)))),a.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in o)n&&n[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in n)o&&n[a]===o[a]||(a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(t!=="key"){if(t==="ref")n&&kt(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const u=E(e);if(u&&u.o&&u.o.t){const d=u.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(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 a=t.slice(5);try{e[a]=n}catch{}return}{const a=ce(n);if((r||a&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const u=n??"";t==="list"?r=!1:o!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Ce,t):e.removeAttribute(t)):(!r||4&i||s)&&!a&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(Ce,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):ke(_,l)?l.slice(2):l[2]+t.slice(3),o||n){const a=t.endsWith(Le);t=t.replace(_t,""),o&&N.rel(e,t,o,a),n&&N.ael(e,t,n,a)}}},wt=/\s/,Re=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(wt):[]),Le="Capture",_t=new RegExp(Le+"$"),de=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},i=t.v||{};for(const r of Ie(Object.keys(s)))r in i||Me(n,r,s[r],void 0,o,t.i);for(const r of Ie(Object.keys(i)))Me(n,r,s[r],i[r],o,t.i)};function Ie(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var H=!1,Y=!1,X=!1,x=!1,ue=[],me=[],U=(e,t,o)=>{var n;const s=t.m[o];let i,r,l,a=0;if(H||(X=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)i=s.S=_.document.createTextNode(s.h);else if(1&s.i)i=s.S=_.document.createTextNode(""),de(null,s,x);else{if(x||(x=s.O==="svg"),!_.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=s.S=_.document.createElementNS(x?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!H&&2&s.i?"slot-fb":s.O),x&&s.O==="foreignObject"&&(x=!1),de(null,s,x),s.m){const c=s.O==="template"?i.content:i;for(a=0;a<s.m.length;++a)r=U(e,s,a),r&&c.appendChild(r)}s.O==="svg"?x=!1:i.tagName==="foreignObject"&&(x=!0)}return i["s-hn"]=R,3&s.i&&(i["s-sr"]=!0,i["s-cr"]=le,i["s-sn"]=s.j||"",i["s-rf"]=(n=s.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const p=[],m=this["s-sn"];f?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
4
+ If you have a particular use case, please open an issue on the Stencil repo.
5
+ `);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const h=S[g]["s-nr"]||void 0;h&&h.isConnected&&v.push(h)}return v})(w.childNodes)).forEach((S=>{m===Q(S)&&p.push(S)})),d?p.filter((S=>S.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),l=e&&e.m&&e.m[o],l&&l.O===s.O&&e.S&&Ge(e.S)),i},Ge=e=>{N.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const s of o?n.reverse():n)s["s-sh"]!=null&&(j(t,s,o??null),s["s-sh"]=void 0,X=!0)}N.i&=-2},K=(e,t)=>{N.i|=1;const o=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"]===R&&o.push(n)}for(let n=o.length-1;n>=0;n--){const s=o[n];s["s-hn"]!==R&&s["s-ol"]&&(j(q(s).parentNode,s,q(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,X=!0),t&&K(s,t)}N.i&=-2},Be=(e,t,o,n,s,i)=>{let r,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===R&&(l=l.shadowRoot),o.O==="template"&&(l=l.content);s<=i;++s)n[s]&&(r=U(null,o,s),r&&(n[s].S=r,j(l,r,q(t))))},De=(e,t,o)=>{for(let n=t;n<=o;++n){const s=e[n];if(s){const i=s.S;He(s),i&&(Y=!0,i["s-ol"]?i["s-ol"].remove():K(i,!0),i.remove())}}},Z=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,G=(e,t,o=!1)=>{const n=t.S=e.S,s=e.m,i=t.m,r=t.O,l=t.h;let a;l==null?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ge(t.S.parentElement)),de(e,t,x),s!==null&&i!==null?((c,u,d,f,p=!1)=>{let m,w,S=0,v=0,g=0,h=0,C=u.length-1,b=u[0],k=u[C],$=f.length-1,O=f[0],P=f[$];const dt=d.O==="template"?c.content:c;for(;S<=C&&v<=$;)if(b==null)b=u[++S];else if(k==null)k=u[--C];else if(O==null)O=f[++v];else if(P==null)P=f[--$];else if(Z(b,O,p))G(b,O,p),b=u[++S],O=f[++v];else if(Z(k,P,p))G(k,P,p),k=u[--C],P=f[--$];else if(Z(b,P,p))b.O!=="slot"&&P.O!=="slot"||K(b.S.parentNode,!1),G(b,P,p),j(dt,b.S,k.S.nextSibling),b=u[++S],P=f[--$];else if(Z(k,O,p))b.O!=="slot"&&P.O!=="slot"||K(k.S.parentNode,!1),G(k,O,p),j(dt,k.S,b.S),k=u[--C],O=f[++v];else{for(g=-1,h=S;h<=C;++h)if(u[h]&&u[h].$!==null&&u[h].$===O.$){g=h;break}g>=0?(w=u[g],w.O!==O.O?m=U(u&&u[v],d,g):(G(w,O,p),u[g]=void 0,m=w.S),O=f[++v]):(m=U(u&&u[v],d,v),O=f[++v]),m&&j(q(b.S).parentNode,m,q(b.S))}S>C?Be(c,f[$+1]==null?null:f[$+1].S,d,f,v,$):v>$&&De(u,S,C)})(n,s,t,i,o):i!==null?(e.h!==null&&(n.textContent=""),Be(n,null,t,i,0,i.length-1)):!o&&s!==null&&De(s,0,s.length-1),x&&r==="svg"&&(x=!1)):(a=n["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(n.data=l)},A=[],Qe=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const i of s){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(je(t,r)){let l=A.find((a=>a.k===t));Y=!0,t["s-sn"]=t["s-sn"]||r,l?(l.k["s-sh"]=i["s-hn"],l.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((a=>{je(a.k,t["s-sn"])&&(l=A.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else A.some((l=>l.k===t))||A.push({k:t})}i.nodeType===1&&Qe(i)}},He=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(He)},kt=(e,t)=>{me.push((()=>e(t)))},j=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:s}=(function(i,r){var l;if(!(r=r||((l=i["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=i["s-sn"]=Q(i)||"";return{slotNode:re(ae(r,"childNodes"),r.tagName,a)[0],slotName:a}})(t);return s&&!n&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Ct=(e,t,o=!1)=>{var n,s,i,r,l;const a=e.$hostElement$,c=e.o,u=e.M||V(null,null);var d;const f=(d=t)&&d.O===vt?t:y(null,null,t);if(R=a.tagName,c._&&(f.v=f.v||{},c._.forEach((([p,m])=>{f.v[m]=a[p]}))),o&&f.v)for(const p of Object.keys(f.v))a.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(f.v[p]=a[p]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=a.shadowRoot||a,H=!(!(1&c.i)||128&c.i),le=a["s-cr"],Y=!1,G(u,f,o),N.i|=1,X){Qe(f.S);for(const p of A){const m=p.k;if(!m["s-ol"]&&_.document){const w=_.document.createTextNode("");w["s-nr"]=m,j(m.parentNode,m["s-ol"]=w,m,o)}}for(const p of A){const m=p.k,w=p.N;if(m.nodeType===1&&o&&(m["s-ih"]=(n=m.hidden)!=null&&n),w){const S=w.parentNode;let v=w.nextSibling;if(v&&v.nodeType===1){let g=(s=m["s-ol"])==null?void 0:s.previousSibling;for(;g;){let h=(i=g["s-nr"])!=null?i:null;if(h&&h["s-sn"]===m["s-sn"]&&S===(h.__parentNode||h.parentNode)){for(h=h.nextSibling;h===m||h?.["s-sr"];)h=h?.nextSibling;if(!h||!h["s-nr"]){v=h;break}}g=g.previousSibling}}if((!v&&S!==(m.__parentNode||m.parentNode)||(m.__nextSibling||m.nextSibling)!==v)&&m!==v){if(j(S,m,v,o),m.nodeType===8&&m.nodeValue.startsWith("s-nt-")){const g=_.document.createTextNode(m.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=m["s-hn"],g["s-sn"]=m["s-sn"],g["s-sh"]=m["s-sh"],g["s-sr"]=m["s-sr"],g["s-ol"]=m["s-ol"],g["s-ol"]["s-nr"]=g,j(m.parentNode,g,m,o),m.parentNode.removeChild(m)}m.nodeType===1&&m.tagName!=="SLOT-FB"&&(m.hidden=(r=m["s-ih"])!=null&&r)}m&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else m.nodeType===1&&(m.hidden=!0)}}if(Y&&$e(f.S),N.i&=-2,A.length=0,!H&&!(1&c.i)&&a["s-cr"]){const p=f.S.__childNodes||f.S.childNodes;for(const m of p)if(m["s-hn"]!==R&&!m["s-sh"]){if(o&&m["s-ih"]==null&&(m["s-ih"]=(l=m.hidden)!=null&&l),m.nodeType===1)m.hidden=!0;else if(m.nodeType===3&&m.nodeValue.trim()){const w=_.document.createComment("s-nt-"+m.nodeValue);w["s-sn"]=m["s-sn"],j(m.parentNode,w,m,o),m.parentNode.removeChild(m)}}}le=void 0,ue.forEach((p=>p())),ue.length=0,me.forEach((p=>p())),me.length=0},qe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);qe(e,e.C);const o=()=>Nt(e,t);if(!t)return pt(o);queueMicrotask((()=>{o()}))},Nt=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=F(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),s=Fe(s,(()=>F(n,"componentWillRender",void 0,o))),Fe(s,(()=>Ot(e,n,t)))},Fe=(e,t)=>xt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),xt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,o)=>{var n;const s=e.$hostElement$,i=s["s-rc"];o&&(r=>{const l=r.o,a=r.$hostElement$,c=l.i,u=((d,f)=>{var p,m,w;const S=Pe(f),v=z.get(S);if(!_.document)return S;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let g,h=T.get(d=d.head||d);if(h||T.set(d,h=new Set),!h.has(S)){g=_.document.createElement("style"),g.textContent=v;const C=(p=N.L)!=null?p:(function(){var b,k,$;return($=(k=(b=_.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&f.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),k=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,k?.parentNode===d?k:null)}else if("host"in d)if(te){const b=new((m=d.defaultView)!=null?m:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),ne?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(g)}else d.append(g);1&f.i&&d.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(S)}}else{let g=T.get(d);if(g||T.set(d,g=new Set),!g.has(S)){const h=(w=d.defaultView)!=null?w:d.ownerDocument.defaultView;let C;if(v.constructor===h.CSSStyleSheet)C=v;else{C=new h.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)C.insertRule(v.cssRules[b].cssText,b)}ne?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(S)}}return S})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=u,a.classList.add(u+"-h"))})(e),$t(e,t,s,o),i&&(i.map((r=>r())),s["s-rc"]=void 0);{const r=(n=s["s-p"])!=null?n:[],l=()=>jt(e);r.length===0?l():(Promise.all(r).then(l).catch(l),e.i|=4,r.length=0)}},$t=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ct(e,t,n)}catch(s){I(s,e.$hostElement$)}return null},jt=e=>{const t=e.$hostElement$,o=t,n=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,At(t),F(o,"componentDidLoad",void 0,t),e.F(t),n||Pt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>fe(e,!1))),e.i&=-517},Pt=()=>{ie((()=>St(_,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){I(s,n)}},At=e=>e.classList.add("hydrated"),We=(e,t,o,n)=>{const s=E(e);if(!s)return;const i=e,r=s.l.get(t),l=s.i,a=i;o=Te(o,n.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(s.l.set(t,o),n.R){const u=n.R[t];u&&u.map((d=>{try{const[[f,p]]=Object.entries(d);(128&l||1&p)&&(a?a[f](o,r,t):s.T.push((()=>{s.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(o,r,t)===!1&&!(16&l))return;16&l||fe(s,!1)}}},Et=(e,t)=>{var o,n;const s=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[l]])=>{if(31&l||32&l){const{get:a,set:c}=L(s,r)||{};a&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return a?a.apply(this):(u=r,E(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(u){const d=E(this);if(d){if(c)return(32&l?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[Te(u,l)]),void We(this,r,u=32&l?this[r]:d.$hostElement$[r],t);We(this,r,u,t)}}})}}));{const r=new Map;s.attributeChangedCallback=function(l,a,c){N.jmp((()=>{var u;const d=r.get(l),f=E(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const v=f?.i;if(f&&v&&!(8&v)&&c!==a){const g=this,h=(u=t.R)==null?void 0:u[l];h?.forEach((C=>{const[[b,k]]=Object.entries(C);g[b]!=null&&(128&v||1&k)&&g[b].call(g,c,a,l)}))}return}const p=i.find((([v])=>v===d)),m=p&&4&p[1][0],w=m&&c===null&&this[d]===void 0;m&&(c=c!==null&&c!=="false");const S=Object.getOwnPropertyDescriptor(s,d);w||c==this[d]||S.get&&!S.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...i.filter((([l,a])=>31&a[0])).map((([l,a])=>{var c;const u=a[1]||l;return r.set(u,l),512&a[0]&&((c=t._)==null||c.push([l,u])),u}))]))}}return e},Tt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ee(e.R),o.H=e.H,o.P=e.P,o._=[];const n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const l={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),i["s-p"]=[],i["s-rc"]=[];const a=l;i.__stencil__getHostRef=()=>a,512&r.i&&ut(i,l)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!E(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&N.i)){const r=E(i);if(!r)return;const l=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&l.i&&(a=>{if(!_.document)return;const c=a["s-cr"]=_.document.createComment("");c["s-cn"]=!0,j(a,c,a.firstChild)})(i);{let a=i;for(;a=a.parentNode||a.host;)if(a["s-p"]){qe(r,r.C=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,a)){const u=i[a];delete i[a],i[a]=u}})),(async(a,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let m;typeof d.style=="string"&&(m=d.style);const w=Pe(u);z.has(w)||((S,v,g)=>{let h=z.get(S);te&&g?(h=h||new CSSStyleSheet,typeof h=="string"?h=v:h.replaceSync(v)):h=v,z.set(S,h)})(w,m,!!(1&u.i))}const f=c.C,p=()=>fe(c,!0);f&&f["s-rc"]?f["s-rc"].push(p):p()}catch(f){I(f,a),c.A&&(c.A(),c.A=void 0),c.F&&c.F(a)}})(i,r,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async i=>{1&N.i||E(i),T.has(i)&&T.delete(i),i.shadowRoot&&T.has(i.shadowRoot)&&T.delete(i.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ht.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Et(e,o)}catch(n){return I(n),e}},Mt=(e,t)=>t;function vn(e){return e}const B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let s=-1,i=0;for(let r=0;r<n.cssRules.length;r++){const l=n.cssRules.item(r);if(l?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){i=r-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:i,rules:t,styleSheet:n}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==pe&&(pe&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:s,styleSheet:i}=o;for(let r=0;r<s;r++)i.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Rt=()=>(ze||(ze=Ve()),B),Lt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ye=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(o=>{const n=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const i=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),r=i[i.length-1];if(!r)return 1;const l=r.offsetHeight,a=getComputedStyle(r).lineHeight,c=a.endsWith("px")?parseFloat(a):0;return Math.ceil(c?l/c:1)})();return n===2?o==="snackbar"?5e3:8e3:n>=3?o==="snackbar"?7e3:1e4:o==="snackbar"?3e3:6e3})(e);function Xe(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=Xe(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function W(){for(var e,t,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const It=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>W("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},o,n)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>W("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"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,loading:s},i,r)=>W("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":o==="full","gids-button--destructive":n,"gids-button--icon-only":i,"gids-button--loading":s},r)},Symbol.toStringTag,{value:"Module"})),J=64,Ue=10,Ke=J/2-Ue/2,Dt=J/2,ge=2*Math.PI*Ke,Qt=`0 0 ${J} ${J}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(o,e))/o*100,i=(ge*s/100).toFixed(2),r=(ge-parseFloat(i)).toFixed(2);return`${i} ${r}`},centerPosition:Dt,circumference:ge,radius:Ke,thickness:Ue,viewBox:Qt},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>W("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"})),Ze=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"}},Je=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"}},Ft=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:o})=>o.includes(t)?Je(e):Ze(e),getComponentEntryClasses:Ze,getComponentExitClasses:Je,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"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>W("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"})),ve=Symbol("defaultPath"),et=Symbol("pathSet"),be="gids-asset-paths-set";class zt extends EventTarget{#n=new Map;constructor(){super()}#e(t,o){this.#n.set(t,o)}#t(t){return this.#n.get(t)??null}#o=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(et)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const n in t)this.#e(n,t[n]);o&&this.#e(ve,o)}this.#e(et,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const n=this.#t(ve);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Vt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Yt=e=>{const t=Vt().assetPaths;return t[e]===void 0&&(t[e]=new zt),t[e]};function Se(){return Yt("@ganpatiinfo/gids-web-shared")}function Xt(){return Se().haveAssetPathsBeenSet()}function tt(e){return Se().getAssetFilePath(e)}function Ut(e){return Se().onAssetPathsSet(e)}let Kt=0;const Zt=(e,t="gids")=>e||`${t}-${Kt++}`,nt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ot={"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"]},st=new Map;for(const e in ot)for(const t of ot[e])st.set(t,e);function Jt(e){return st.get(e)}function it(e,t="regular",o){const n=Jt(e);let s=n??"";return o&&n&&(s=o(n)??n),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:en}=Gt,we=({name:e,size:t,appearance:o,alt:n,class:s,titleId:i,src:r,...l})=>{const a=Zt(i);let c=r;return c===void 0&&Xt()&&(c=it(e,o,tt)),y("svg",{ref:u=>{c===void 0&&Ut((()=>{(function(d,f,p){if(!d)return;const m=document.createElementNS("http://www.w3.org/2000/svg","use");m.setAttribute("href",it(f,p,tt)),d.appendChild(m)})(u,e,o)}))},width:"16",height:"16",class:en({size:t},s),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:a,...l},n!==""&&y("title",{id:a},n||e),c!==void 0?y("use",{href:c}):null)},{getGidsSpinnerControlClassNames:tn}=It,{calculateStrokeDasharray:nn,thickness:rt,radius:at,centerPosition:ee,viewBox:on}=Ht,sn=({size:e,indeterminate:t,value:o,max:n,...s})=>{let i;return t||(i={strokeDashArray:nn(o,n||0),strokeDashoffset:"0"}),y("svg",{class:tn({size:e,indeterminate:t,value:o}),viewBox:on,...s},y("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:at,"stroke-width":rt}),y("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:at,"stroke-width":rt}))},{getGidsButtonClassNames:rn}=Bt,_e=({appearance:e,size:t,destructive:o,loading:n,width:s,leadingIcon:i,trailingIcon:r,as:l,disabled:a,class:c,forceIconOnly:u=!1,...d},f)=>{const p=l||"button",m=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in d||(d.type="button"),y(p,{class:rn({appearance:e,size:t,destructive:o,loading:n,width:s},u||f.length===0&&nt(i)&&!nt(r),c),disabled:p==="button"?a:void 0,...d},y("span",{class:"gids-button__content"},i,f),n&&y(sn,{size:m,indeterminate:!0}),r)},{getGidsSnackbarContainerClassNames:an,getSnackbarContainerIconNames:ln}=qt,cn=({appearance:e="default",children:t,button:o,class:n,...s})=>{const i=ln(e);return y("div",{...s,class:an({appearance:e},n)},y("div",{class:"gids-snackbar-container__content"},e!=="default"&&i!=null?y(we,{name:i,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?y("p",null,t):t),o)},{getGidsNotificationContainerClassNames:dn,getNotificationContainerIconNames:un}=Wt,mn=({notificationTitle:e,children:t,button:o,appearance:n="default",pronunciation:s="standard",onCloseNotificationClick:i,class:r,...l})=>{const a=un(n);return y("div",{class:dn({appearance:n},r),...l},n!=="default"&&a?y("div",{class:"gids-notification-container__leading-icon-wrapper"},y(we,{size:"md",name:a,alt:"",appearance:"filled"})):null,y("div",{class:"gids-notification-container__content-wrapper"},y("div",{class:"gids-notification-container__top-content"},y("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?y("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?y("p",null,t):t:null),s==="standard"?y("div",{class:"gids-notification-container__cross-btn-wrapper"},y(_e,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:y(we,{name:"cross",size:"md",appearance:"regular"}),onClick:i})):null),o?y("div",{class:"gids-notification-container__bottom-content"},o):null))},{getComponentClasses:fn,getComponentStackClasses:pn}=Ft,lt=Tt(class extends mt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,o)=>{const{id:n,message:s,appearance:i,buttonLabel:r,onButtonClick:l}=t;return console.log("_renderSnackbar_called"),y(cn,{key:n,class:o,children:s,appearance:i,button:r!=null&&r!==""?y(_e,{appearance:"subtle",onClick:l},r):void 0})},this._renderNotification=(t,o)=>{const{id:n,notificationTitle:s,message:i,pronunciation:r,appearance:l,buttonLabel:a,onButtonClick:c,timerInMs:u}=t;return y(mn,{key:n,class:o,notificationTitle:s,children:i,pronunciation:r,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:a!=null&&a!==""?y(_e,{appearance:"default",size:"sm",onClick:c},a):void 0})},this._renderComponent=t=>{const{componentName:o,position:n="bottom-center",id:s}=t,i=fn({position:n,id:s,exitingComponents:this._exitingComponents});return console.log("_renderComponent_called",o),o==null||o==="snackbar"?this._renderSnackbar(t,i):o==="notification"?this._renderNotification(t,i):null}}connectedCallback(){const e=Rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Lt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const o=setTimeout((()=>(clearTimeout(o),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:o,buttonLabel:n,onButtonClick:s,position:i,componentName:r,...l}=e,a={id:""+(Date.now()+Math.random()),message:o,appearance:t,buttonLabel:n,onButtonClick:s,position:i,componentName:r,...l};console.log("component_1",a),this._componentQueue=[...this._componentQueue,a],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:o,pronunciation:n,message:s,buttonLabel:i,onButtonClick:r,position:l,componentName:a,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:o,message:s,pronunciation:n,appearance:t,buttonLabel:i,onButtonClick:r,position:l,componentName:a,...c};this._componentQueue=[...this._componentQueue,u],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,o){return o||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==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((o=>requestAnimationFrame((()=>o()))));const t=Ye({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 o=Ye({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,o,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return y(Mt,{key:"41dc60790fe64bf9e0daa2da5fd6c39f30d8ceac"},y("slot",{key:"a480a4344336cbbf75ac3bc771c9416d27d9d742"}),this._isRoot()?y("div",{class:pn({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 ct(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,lt))}))}ct();const hn=lt,gn=ct;M.GidsOverlayProvider=hn,M.defineCustomElement=gn,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,5 @@
1
+ (function(P,j){typeof exports=="object"&&typeof module<"u"?j(exports):typeof define=="function"&&define.amd?define(["exports"],j):(P=typeof globalThis<"u"?globalThis:P||self,j(P.gidsCoreWebGidsPasswordField={}))})(this,(function(P){"use strict";function j(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 G,Rt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const r=e[n],o=j(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);o&&Object.defineProperty(e,n,{get(){return o.get.call(this)},set(a){o.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):r!==void 0&&(e[n]=r)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Oe=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),K=new Map,Me="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},ie=w.HTMLElement||class{},T={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)},re=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!re&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,le=!1,ke=[],qe=[],Lt=(e,t)=>s=>{e.push(s),le||(le=!0,4&T.i?de(ae):T.raf(ae))},Pe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){I(s)}e.length=0},ae=()=>{Pe(ke),Pe(qe),(le=ke.length>0)&&T.raf(ae)},de=e=>Promise.resolve(void 0).then(e),Nt=Lt(qe);function $t(){const e=this.attachShadow({mode:"open"});G===void 0&&(G=null),G&&(oe?e.adoptedStyleSheets.push(G):e.adoptedStyleSheets=[...e.adoptedStyleSheets,G])}var Ae=e=>{const t=ue(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ce(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!Ot(n,B(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ue(n,"childNodes").length&&Ae(n)}};function ce(e,t,s){let n,i=0,r=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||B(n)===s)&&(r.push(n),s!==void 0))return r;r=[...r,...ce(n.childNodes,t,s)]}return r}var Ot=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)B(i)!==t||!s&&i["s-sr"]||n.push(i);return n},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ue(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 he,A,q=new WeakMap,Ie=e=>"sc-"+e.p,fe=e=>(e=typeof e)=="object"||e==="function",g=(e,t,...s)=>{let n=null,i=null,r=null,o=!1,a=!1;const l=[],c=d=>{for(let f=0;f<d.length;f++)n=d[f],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((o=typeof e!="function"&&!fe(n))&&(n=String(n)),o&&a?l[l.length-1].h+=n:l.push(o?Y(null,n):n),a=o)};if(c(s),t){t.key&&(i=t.key),t.name&&(r=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Mt);const u=Y(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=r,u},Y=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Fe={},Mt={forEach:(e,t)=>e.map(Ve).forEach(t),map:(e,t)=>e.map(Ve).map(t).map(kt)},Ve=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),kt=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),g(e.vtag,s,...e.vchildren||[])}const t=Y(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ge=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 r of e[i])if(typeof r=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((r=>typeof r=="string"?{[r]:0}:r));return n},Be=(e,t)=>e==null||fe(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,ze=(e,t)=>{const s=e;return{emit:n=>De(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},De=(e,t,s)=>{const n=T.ce(t,s);return e.dispatchEvent(n),n},He=(e,t,s,n,i,r)=>{if(s===n)return;let o=Oe(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=We(s);let u=We(n);l.remove(...c.filter((d=>d&&!u.includes(d)))),l.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in s)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)s&&n[l]===s[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&At(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const u=O(e);if(u&&u.o&&u.o.t){const d=u.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(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 l=t.slice(5);try{e[l]=n}catch{}return}{const l=fe(n);if((o||l&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const u=n??"";t==="list"?o=!1:s!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Me,t):e.removeAttribute(t)):(!o||4&r||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(Me,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Oe(w,a)?a.slice(2):a[2]+t.slice(3),s||n){const l=t.endsWith(Ue);t=t.replace(Pt,""),s&&T.rel(e,t,s,l),n&&T.ael(e,t,n,l)}}},qt=/\s/,We=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(qt):[]),Ue="Capture",Pt=new RegExp(Ue+"$"),ge=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},r=t.v||{};for(const o of Ke(Object.keys(i)))o in r||He(n,o,i[o],void 0,s,t.i);for(const o of Ke(Object.keys(r)))He(n,o,i[o],r[o],s,t.i)};function Ke(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var z=!1,Z=!1,J=!1,E=!1,pe=[],me=[],X=(e,t,s)=>{var n;const i=t.m[s];let r,o,a,l=0;if(z||(J=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)r=i.S=w.document.createTextNode(i.h);else if(1&i.i)r=i.S=w.document.createTextNode(""),ge(null,i,E);else{if(E||(E=i.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=i.S=w.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!z&&2&i.i?"slot-fb":i.O),E&&i.O==="foreignObject"&&(E=!1),ge(null,i,E),i.m){const c=i.O==="template"?r.content:r;for(l=0;l<i.m.length;++l)o=X(e,i,l),o&&c.appendChild(o)}i.O==="svg"?E=!1:r.tagName==="foreignObject"&&(E=!0)}return r["s-hn"]=A,3&i.i&&(r["s-sr"]=!0,r["s-cr"]=he,r["s-sn"]=i.j||"",r["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const p=[],h=this["s-sn"];f?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
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 b=[];for(let _=0;_<y.length;_++){const m=y[_]["s-nr"]||void 0;m&&m.isConnected&&b.push(m)}return b})(S.childNodes)).forEach((y=>{h===B(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[s],a&&a.O===i.O&&e.S&&Ye(e.S)),r},Ye=e=>{T.i|=1;const t=e.closest(A.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&&(N(t,i,s??null),i["s-sh"]=void 0,J=!0)}T.i&=-2},Q=(e,t)=>{T.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"]===A&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==A&&i["s-ol"]&&(N(D(i).parentNode,i,D(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Q(i,t)}T.i&=-2},Ze=(e,t,s,n,i,r)=>{let o,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===A&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);i<=r;++i)n[i]&&(o=X(null,s,i),o&&(n[i].S=o,N(a,o,D(t))))},Je=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const r=i.S;Qe(i),r&&(Z=!0,r["s-ol"]?r["s-ol"].remove():Q(r,!0),r.remove())}}},ee=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),D=e=>e&&e["s-ol"]||e,F=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,r=t.m,o=t.O,a=t.h;let l;a==null?(E=o==="svg"||o!=="foreignObject"&&E,o!=="slot"||z||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ye(t.S.parentElement)),ge(e,t,E),i!==null&&r!==null?((c,u,d,f,p=!1)=>{let h,S,y=0,b=0,_=0,m=0,C=u.length-1,v=u[0],x=u[C],L=f.length-1,R=f[0],$=f[L];const Et=d.O==="template"?c.content:c;for(;y<=C&&b<=L;)if(v==null)v=u[++y];else if(x==null)x=u[--C];else if(R==null)R=f[++b];else if($==null)$=f[--L];else if(ee(v,R,p))F(v,R,p),v=u[++y],R=f[++b];else if(ee(x,$,p))F(x,$,p),x=u[--C],$=f[--L];else if(ee(v,$,p))v.O!=="slot"&&$.O!=="slot"||Q(v.S.parentNode,!1),F(v,$,p),N(Et,v.S,x.S.nextSibling),v=u[++y],$=f[--L];else if(ee(x,R,p))v.O!=="slot"&&$.O!=="slot"||Q(x.S.parentNode,!1),F(x,R,p),N(Et,x.S,v.S),x=u[--C],R=f[++b];else{for(_=-1,m=y;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===R.$){_=m;break}_>=0?(S=u[_],S.O!==R.O?h=X(u&&u[b],d,_):(F(S,R,p),u[_]=void 0,h=S.S),R=f[++b]):(h=X(u&&u[b],d,b),R=f[++b]),h&&N(D(v.S).parentNode,h,D(v.S))}y>C?Ze(c,f[L+1]==null?null:f[L+1].S,d,f,b,L):b>L&&Je(u,y,C)})(n,i,t,r,s):r!==null?(e.h!==null&&(n.textContent=""),Ze(n,null,t,r,0,r.length-1)):!s&&i!==null&&Je(i,0,i.length-1),E&&o==="svg"&&(E=!1)):(l=n["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(n.data=a)},M=[],Xe=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const r of i){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const o=r["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(je(t,o)){let a=M.find((l=>l.k===t));Z=!0,t["s-sn"]=t["s-sn"]||o,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],M.push({N:r,k:t})),t["s-sr"]&&M.map((l=>{je(l.k,t["s-sn"])&&(a=M.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else M.some((a=>a.k===t))||M.push({k:t})}r.nodeType===1&&Xe(r)}},Qe=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(Qe)},At=(e,t)=>{me.push((()=>e(t)))},N=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(r,o){var a;if(!(o=o||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=B(r)||"";return{slotNode:ce(ue(o,"childNodes"),o.tagName,l)[0],slotName:l}})(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)},jt=(e,t,s=!1)=>{var n,i,r,o,a;const l=e.$hostElement$,c=e.o,u=e.M||Y(null,null);var d;const f=(d=t)&&d.O===Fe?t:g(null,null,t);if(A=l.tagName,c._&&(f.v=f.v||{},c._.forEach((([p,h])=>{f.v[h]=l[p]}))),s&&f.v)for(const p of Object.keys(f.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(f.v[p]=l[p]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,z=!(!(1&c.i)||128&c.i),he=l["s-cr"],Z=!1,F(u,f,s),T.i|=1,J){Xe(f.S);for(const p of M){const h=p.k;if(!h["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=h,N(h.parentNode,h["s-ol"]=S,h,s)}}for(const p of M){const h=p.k,S=p.N;if(h.nodeType===1&&s&&(h["s-ih"]=(n=h.hidden)!=null&&n),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let _=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;_;){let m=(r=_["s-nr"])!=null?r:null;if(m&&m["s-sn"]===h["s-sn"]&&y===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){b=m;break}}_=_.previousSibling}}if((!b&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if(N(y,h,b,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const _=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));_["s-hn"]=h["s-hn"],_["s-sn"]=h["s-sn"],_["s-sh"]=h["s-sh"],_["s-sr"]=h["s-sr"],_["s-ol"]=h["s-ol"],_["s-ol"]["s-nr"]=_,N(h.parentNode,_,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(o=h["s-ih"])!=null&&o)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(Z&&Ae(f.S),T.i&=-2,M.length=0,!z&&!(1&c.i)&&l["s-cr"]){const p=f.S.__childNodes||f.S.childNodes;for(const h of p)if(h["s-hn"]!==A&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=w.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],N(h.parentNode,S,h,s),h.parentNode.removeChild(h)}}}he=void 0,pe.forEach((p=>p())),pe.length=0,me.forEach((p=>p())),me.length=0},et=(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()})))}},te=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);et(e,e.C);const s=()=>It(e,t);if(!t)return Nt(s);queueMicrotask((()=>{s()}))},It=(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=H(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=tt(i,(()=>H(n,"componentWillRender",void 0,s))),tt(i,(()=>Vt(e,n,t)))},tt=(e,t)=>Ft(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Ft=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Vt=async(e,t,s)=>{var n;const i=e.$hostElement$,r=i["s-rc"];s&&(o=>{const a=o.o,l=o.$hostElement$,c=a.i,u=((d,f)=>{var p,h,S;const y=Ie(f),b=K.get(y);if(!w.document)return y;if(d=d.nodeType===11?d:w.document,b)if(typeof b=="string"){let _,m=q.get(d=d.head||d);if(m||q.set(d,m=new Set),!m.has(y)){_=w.document.createElement("style"),_.textContent=b;const C=(p=T.L)!=null?p:(function(){var v,x,L;return(L=(x=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?L:void 0})();if(C!=null&&_.setAttribute("nonce",C),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(_,x?.parentNode===d?x:null)}else if("host"in d)if(re){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(_)}else d.append(_);1&f.i&&d.insertBefore(_,null),4&f.i&&(_.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(y)}}else{let _=q.get(d);if(_||q.set(d,_=new Set),!_.has(y)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(b.constructor===m.CSSStyleSheet)C=b;else{C=new m.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)C.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],_.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Gt(e,t,i,s),r&&(r.map((o=>o())),i["s-rc"]=void 0);{const o=(n=i["s-p"])!=null?n:[],a=()=>Bt(e);o.length===0?a():(Promise.all(o).then(a).catch(a),e.i|=4,o.length=0)}},Gt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,jt(e,t,n)}catch(i){I(i,e.$hostElement$)}return null},Bt=e=>{const t=e.$hostElement$,s=t,n=e.C;H(s,"componentDidRender",void 0,t),64&e.i?H(s,"componentDidUpdate",void 0,t):(e.i|=64,Ht(t),H(s,"componentDidLoad",void 0,t),e.F(t),n||Dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&de((()=>te(e,!1))),e.i&=-517},zt=e=>{var t;{const s=O(e),n=(t=s?.$hostElement$)==null?void 0:t.isConnected;return n&&(18&s.i)==2&&te(s,!1),n}},Dt=()=>{de((()=>De(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){I(i,n)}},Ht=e=>e.classList.add("hydrated"),st=(e,t,s,n)=>{const i=O(e);if(!i)return;const r=e,o=i.l.get(t),a=i.i,l=r;s=Be(s,n.t[t][0]);const c=Number.isNaN(o)&&Number.isNaN(s);if(s!==o&&!c){if(i.l.set(t,s),n.R){const u=n.R[t];u&&u.map((d=>{try{const[[f,p]]=Object.entries(d);(128&a||1&p)&&(l?l[f](s,o,t):i.T.push((()=>{i.D[f](s,o,t)})))}catch(f){I(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,o,t)===!1&&!(16&a))return;16&a||te(i,!1)}}},Wt=(e,t)=>{var s,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Ge(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([o,[a]])=>{if(31&a||32&a){const{get:l,set:c}=j(i,o)||{};l&&(t.t[o][0]|=2048),c&&(t.t[o][0]|=4096),Object.defineProperty(i,o,{get(){return l?l.apply(this):(u=o,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(i,o,{set(u){const d=O(this);if(d){if(c)return(32&a?this[o]:d.$hostElement$[o])===void 0&&d.l.get(o)&&(u=d.l.get(o)),c.apply(this,[Be(u,a)]),void st(this,o,u=32&a?this[o]:d.$hostElement$[o],t);st(this,o,u,t)}}})}}));{const o=new Map;i.attributeChangedCallback=function(a,l,c){T.jmp((()=>{var u;const d=o.get(a),f=O(this);if(this.hasOwnProperty(d),i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const b=f?.i;if(f&&b&&!(8&b)&&c!==l){const _=this,m=(u=t.R)==null?void 0:u[a];m?.forEach((C=>{const[[v,x]]=Object.entries(C);_[v]!=null&&(128&b||1&x)&&_[v].call(_,c,l,a)}))}return}const p=r.find((([b])=>b===d)),h=p&&4&p[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(i,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...r.filter((([a,l])=>31&l[0])).map((([a,l])=>{var c;const u=l[1]||a;return o.set(u,a),512&l[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},_e=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.R=Ge(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(){((r,o)=>{const a={i:0,$hostElement$:r,o,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&o.i&&Rt(r,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&T.i)){const o=O(r);if(!o)return;const a=o.o;if(1&o.i)o?.D||o?.W&&o.W.then((()=>{}));else{o.i|=1,12&a.i&&(l=>{if(!w.document)return;const c=l["s-cr"]=w.document.createComment("");c["s-cn"]=!0,N(l,c,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){et(o,o.C=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Ie(u);K.has(S)||((y,b,_)=>{let m=K.get(y);re&&_?(m=m||new CSSStyleSheet,typeof m=="string"?m=b:m.replaceSync(b)):m=b,K.set(y,m)})(S,h,!!(1&u.i))}const f=c.C,p=()=>te(c,!0);f&&f["s-rc"]?f["s-rc"].push(p):p()}catch(f){I(f,l),c.A&&(c.A(),c.A=void 0),c.F&&c.F(l)}})(r,o,a)}}})(this),n&&n.call(this)},disconnectedCallback(){(async r=>{1&T.i||O(r),q.has(r)&&q.delete(r),r.shadowRoot&&q.has(r.shadowRoot)&&q.delete(r.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 $t.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Wt(e,s)}catch(n){return I(n),e}},nt=(e,t)=>t;function Js(e){return e}function it(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=it(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function k(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=it(e))&&(n&&(n+=" "),n+=t);return n}const Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>k("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>k("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"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>k("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"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:s,destructive:n,loading:i},r,o)=>k("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":r,"gids-button--loading":i},o)},Symbol.toStringTag,{value:"Module"})),rt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Jt=/\w/,Xt=e=>e.replace(Jt,t=>t.toLocaleUpperCase()),ot=(e,t)=>typeof e=="function"?e(t):t?Xt(e):e,Qt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const r=i?i(e):rt(e);if(t==="required")return ot(n&&n.length>0?n:"(required)",r);if(t==="optional")return ot(s&&s.length>0?s:"(optional)",r)},isSentence:rt},Symbol.toStringTag,{value:"Module"})),se=64,lt=10,at=se/2-lt/2,es=se/2,be=2*Math.PI*at,ts=`0 0 ${se} ${se}`,ss=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,r=(be*i/100).toFixed(2),o=(be-parseFloat(r)).toFixed(2);return`${r} ${o}`},centerPosition:es,circumference:be,radius:at,thickness:lt,viewBox:ts},Symbol.toStringTag,{value:"Module"})),ve=/[A-Z]/,ye=/[a-z]/,Se=/[0-9]/,we=/[^A-Za-z0-9]/,ns=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const s=t>0?e/t*100:0;return s<=20?"is-weak":s<=40?"is-medium":s<=60?"is-good-enough":s<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:s=0})=>{if(!e||e==="")return 0;let n=0;return t.includes("1-uppercase")&&ve.test(e)&&n++,t.includes("1-lowercase")&&ye.test(e)&&n++,t.includes("1-digit")&&Se.test(e)&&n++,t.includes("1-special-character")&&we.test(e)&&n++,t.includes("include-min-length")&&s&&s>0&&e.length>=s&&n++,n},include1DigitReg:Se,include1LowercaseLetterReg:ye,include1SpecialCharReg:we,include1UppercaseLetterReg:ve},Symbol.toStringTag,{value:"Module"})),W=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,xe=e=>{const t=[];return e&&e.length>0&&e.map(s=>{s?.requirementRule&&t.push(s.requirementRule)}),t},is=({rule:e,textMinLength:t=0,text:s})=>{if(!s||s===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ve.test(s);case"1-lowercase":return ye.test(s);case"1-digit":return Se.test(s);case"1-special-character":return we.test(s);case"include-min-length":return W({requirementRule:"include-min-length",textMinLength:t})===!0&&s.length>=t;default:return!1}},Ce=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 W({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:xe(t),defaultRequirementsMeterRules:t}},rs=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:is,getDefaultRulesAndRequirementsForMeters:Ce,getMeterRulesFromRequirements:xe,minLengthRuleCanBeApplied:W},Symbol.toStringTag,{value:"Module"})),os=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),ls=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},s)=>k("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"})),ds=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>k("gids-field",e)},Symbol.toStringTag,{value:"Module"})),cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>k("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),us=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>k("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"})),hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>k("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:fs}=ls,gs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":fs(e)},Symbol.toStringTag,{value:"Module"})),Te=Symbol("defaultPath"),dt=Symbol("pathSet"),Ee="gids-asset-paths-set";class ps 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(Ee))};haveAssetPathsBeenSet(){return this.#s(dt)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(Te,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(Te,s)}this.#e(dt,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(Te);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Ee,t,{once:!0}),()=>{this.removeEventListener(Ee,t)}}}const Re=Symbol.for("GIDS"),ms=()=>(globalThis[Re]===void 0&&(globalThis[Re]={assetPaths:{}}),globalThis[Re]),_s=e=>{const t=ms().assetPaths;return t[e]===void 0&&(t[e]=new ps),t[e]};function Le(){return _s("@ganpatiinfo/gids-web-shared")}function bs(){return Le().haveAssetPathsBeenSet()}function ct(e){return Le().getAssetFilePath(e)}function vs(e){return Le().onAssetPathsSet(e)}let ys=0;const ut=(e,t="gids")=>e||`${t}-${ys++}`,Ss=e=>e.type==="hidden",ws=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&&!Ss(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},ht=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),V=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ft=!1;V&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(V):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Ne=null;const $e=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{gt()})):void 0,gt=()=>{if(V===void 0)return!1;const e=(()=>{if(V===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,r=0;for(let o=0;o<n.cssRules.length;o++){const a=n.cssRules.item(o);if(a?.cssText.startsWith("gids-global-styles-start"))i=o;else if(i>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=o-i+1;break}t.push(a)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:r,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return $e!==void 0&&t!==Ne&&(Ne&&$e.disconnect(),t instanceof Element&&$e.observe(t,{childList:!0,characterData:!0,subtree:!0}),Ne=t),V.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:r}=s;for(let o=0;o<i;o++)r.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},pt=()=>(ft||(ft=gt()),V),mt={"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"]},_t=new Map;for(const e in mt)for(const t of mt[e])_t.set(t,e);function xs(e){return _t.get(e)}function bt(e,t="regular",s){const n=xs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Cs}=Yt,U=({name:e,size:t,appearance:s,alt:n,class:i,titleId:r,src:o,...a})=>{const l=ut(r);let c=o;return c===void 0&&bs()&&(c=bt(e,s,ct)),g("svg",{ref:u=>{c===void 0&&vs((()=>{(function(d,f,p){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",bt(f,p,ct)),d.appendChild(h)})(u,e,s)}))},width:"16",height:"16",class:Cs({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...a},n!==""&&g("title",{id:l},n||e),c!==void 0?g("use",{href:c}):null)},{getIndicatorText:Ts}=Qt,{getGidsLabelClassNames:Es}=Ut,Rs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:r,labelId:o,class:a,isLabelSentence:l,...c},u)=>{const d=Ts({children:u,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return g("div",{class:Es({disabled:e},a),...c},g("label",{htmlFor:r,id:o},u,d&&g("span",{class:"gids-label__field-requirement"},d)),i)},{getGidsDismissButtonClassNames:Ls}=as,Ns=({appearance:e="subtle",size:t="md",disabled:s=!1,class:n,onPressDismiss:i,label:r,...o})=>g("button",{class:Ls({appearance:e,size:t},n),onClick:i,disabled:s,"aria-label":r,...o},g(U,{name:"cross",appearance:"regular"})),{getGidsSpinnerControlClassNames:$s}=Kt,{calculateStrokeDasharray:Os,thickness:vt,radius:yt,centerPosition:ne,viewBox:Ms}=ss,St=({size:e,indeterminate:t,value:s,max:n,...i})=>{let r;return t||(r={strokeDashArray:Os(s,n||0),strokeDashoffset:"0"}),g("svg",{class:$s({size:e,indeterminate:t,value:s}),viewBox:Ms,...i},g("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:yt,"stroke-width":vt}),g("circle",{style:r,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:yt,"stroke-width":vt}))},{getGidsButtonClassNames:ks}=Zt,qs=({appearance:e,size:t,destructive:s,loading:n,width:i,leadingIcon:r,trailingIcon:o,as:a,disabled:l,class:c,forceIconOnly:u=!1,...d},f)=>{const p=a||"button",h=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in d||(d.type="button"),g(p,{class:ks({appearance:e,size:t,destructive:s,loading:n,width:i},u||f.length===0&&ht(r)&&!ht(o),c),disabled:p==="button"?l:void 0,...d},g("span",{class:"gids-button__content"},r,f),n&&g(St,{size:h,indeterminate:!0}),o)},{getGidsFieldClassNames:Ps}=ds,As=_e(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],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=pt();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 g(Fe,{key:"fed52ee2bacf334f4ec630fdaea5285d8aee56b3"},g("div",{key:"fe65a5714ae0e8369a2e6d91f5ccbe37ce1b04b4",class:Ps()},g("div",{key:"37d656971e39e9c26085b54fd253f9758e6110fa",class:"gids-field__header",hidden:!this._hasLabelContent()},g("slot",{key:"eda62c8170fb5caf2e69f66bae079d1646a52ff8",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),g("div",{key:"28677c5ebd0e8bfb7f9f0c43634c9a70b84f4cd0",class:"gids-field__count","aria-live":"polite"},this.count)),g("div",{key:"0a816504a863304e13be74c64429b74700fc3590",class:"gids-field__control"},g("slot",{key:"1081771bfb182da6b0527303132555458de3ff2e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),g("p",{key:"632636f8c4d819b6c32658a7ae72ab9308973fda",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?g("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?g("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const 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"),g(U,{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 wt(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,As))}))}wt();const js=_e(class extends ie{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(ws(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return g(nt,{key:"9d1ed3749495c830b3940d4da09056620ccaef1d"},g("slot",{key:"ae4b6e25b50e1b2fc04ff7eb1b2695437b25b974",name:"leadingIcon"}),this.leadingLabel&&g("span",{key:"408038e8921dc443f14b5c57541d8ca74205e193",class:"gids-input__label"},this.leadingLabel),g("slot",{key:"033b3c940545c99f3aa356e08267c77c25c0f89c",name:"leadingAccessory"}),g("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}),g("slot",{key:"85d41d8a06da0c88a6defe65eae2d6f1e69c3abd",name:"trailingAccessory"}),this.trailingLabel&&g("span",{key:"1fec370bdb270031d6e3cdd9bed84871116be21f",class:"gids-input__label"},this.trailingLabel),g("slot",{key:"65800ff524221d70b659901d440c5459e64975a8",name:"trailingIcon"}),this.status==="incomplete"&&g(U,{key:"2bec2513415dad3294abc23ebcdc0493fa44399a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&g(U,{key:"2e21e9cb5ccfad300400c97dba89642395f84b04",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&g(St,{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 xt(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,js))}))}xt();const{getGidsStrengthMeterClassNames:Is}=cs,{getStrengthMeterScore:Fs,getColorModifierByScore:Vs}=ns,Gs=({text:e,textMinLength:t,meterRules:s=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const i=(r,o,a)=>g("div",{key:r,class:["gids-strength-meter__strength-"+r,a?"is-active":"",a?o:""].filter(Boolean).join(" ")});return s.length>0?g("div",{class:Is(n)},(()=>{const r=s.length,o=Fs({text:e,textMinLength:t,meterRules:s}),a=Vs({textScore:o,maxScore:r});return Array.from({length:r},((l,c)=>{const u=c+1,d=u<=o;return s[u]==="include-min-length"?W({requirementRule:"include-min-length",textMinLength:t})?i(u,a,d):null:i(u,a,d)}))})()):null},{getGidsRequirementsMeterLabelClassNames:Bs}=us,{getRequirementsMeterLabelLeadingIcon:zs}=os,Ds=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,r=zs(s);return g("div",{class:Bs({status:s},i)},n&&s&&r?g(U,{name:r,size:"sm",appearance:"filled"}):null,t&&t!==""?g("span",null,t):null)},{checkRequirementRuleSatisfied:Hs}=rs,{getGidsRequirementsMeterClassNames:Ws}=hs,Us=({requirements:e=[],text:t,textMinLength:s,class:n})=>{const i=(r,o)=>g(Ds,{status:o?"success":"error",label:r.requirementText});return g("div",{class:Ws(n)},(console.log("requirements",e),e.map((r=>{if(r?.requirementText&&r?.requirementRule){const o=Hs({rule:r.requirementRule,textMinLength:s,text:t});return r.requirementRule==="include-min-length"?W({requirementRule:r.requirementRule,textMinLength:s})?i(r,o):null:i(r,o)}return null}))))},{inputToGidsFieldStatusForPassword:Ks}=gs,Ct=_e(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=ze(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=ze(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=ut(),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?xe(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{zt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=Ce(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=Ce(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=pt();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,r={...t},o=r?.placeholder&&r.placeholder!=""?r.placeholder:"Enter password",a=this.isPasswordRevealed,l=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return g(nt,{key:"548bcf66b7ee93974d790e7b3a44ba764ace509f"},g("gids-field",{key:"4e52e64a5ad558317cb35b72121be744befeab1b",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:Ks(this.status)},g(Rs,{key:"2b797611f9f104f9a99a9e0d4bdda31dee0839b4",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),g("gids-input",{key:"725f94aff51966525b640f1fe1e010c700c1ddc8",ref:u=>this.#e=u,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...r,placeholder:o,type:a?"text":"password",id:s,maxLength:this.maxLength}},g("slot",{key:"ef742cdd2cb00887f74589ad44304cb401194688",name:"leadingIcon"}),g("slot",{key:"6f38de10ddb3acd5ec39b72bea3e3b4b08aabc9e",name:"leadingAccessory"}),g("div",{key:"c607f812340a2a5e22323682d3a739b31d8fb66c",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&g(Ns,{key:"a12067b7e8b1cd30edd61fae71c980ad1c5f269a",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&g(qs,{key:"0b2a76bd61aba94d2fa17c2a97f87b28f99b2a0e",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},a?"Hide":"Show")))),g("div",{key:"9a6624d2963148db0c20713a565be4dcf6815f7b",class:"gids-password-field__meters-container"},g(Gs,{key:"f5edecbaf4438d0ca4cb457034fe8f59cd665a1d",meterRules:l,text:this.value,textMinLength:c}),g(Us,{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 Tt(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Ct);break;case"gids-field":customElements.get(e)||wt();break;case"gids-input":customElements.get(e)||xt()}}))}Tt();const Ys=Ct,Zs=Tt;P.GidsPasswordField=Ys,P.defineCustomElement=Zs,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,5 @@
1
+ (function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R.gidsCoreWebGidsSnackbar={}))})(this,(function(R){"use strict";function P(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var D,Le=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],i=P(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(c){i.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},T=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ae=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),q=new Map,ue="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},Pe=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Y=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Z=!!Y&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,J=!1,de=[],fe=[],Me=(e,t)=>o=>{e.push(o),J||(J=!0,4&O.i?X(K):O.raf(K))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},K=()=>{he(de),he(fe),(J=de.length>0)&&O.raf(K)},X=e=>Promise.resolve(void 0).then(e),He=Me(fe);function De(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(Z?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var pe=e=>{const t=te(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ee(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Be(s,B(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&te(s,"childNodes").length&&pe(s)}};function ee(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||B(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...ee(s.childNodes,t,o)]}return r}var Be=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!o&&n["s-sr"]||s.push(n);return s},me=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function te(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var se,L,x=new WeakMap,ge=e=>"sc-"+e.p,oe=e=>(e=typeof e)=="object"||e==="function",We=(e,t,...o)=>{let s=null,n=null,r=null,i=!1,c=!1;const l=[],a=u=>{for(let h=0;h<u.length;h++)s=u[h],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=!oe(s))&&(s=String(s)),i&&c?l[l.length-1].h+=s:l.push(i?ne(null,s):s),c=i)};a(o);const f=ne(e,null);return f.v=t,l.length>0&&(f.m=l),f.$=n,f.j=r,f},ne=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Fe={},ye=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},Se=(e,t)=>e==null||oe(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Ve=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},be=(e,t,o,s,n,r)=>{if(o===s)return;let i=ae(e,t),c=t.toLowerCase();if(t==="class"){const l=e.classList,a=ve(o);let f=ve(s);l.remove(...a.filter((u=>u&&!f.includes(u)))),l.add(...f.filter((u=>u&&!a.includes(u))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&Ue(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let a;{const f=T(e);if(f&&f.o&&f.o.t){const u=f.o.t[l];u&&u[1]&&(a=u[1])}}return a||(a=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(a)!==""||e.removeAttribute(a):e.setAttribute(a,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=oe(s);if((i||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const f=s??"";t==="list"?i=!1:o!=null&&e[t]===f||(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(a?e.removeAttributeNS(ue,t):e.removeAttribute(t)):(!i||4&r||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,a?e.setAttributeNS(ue,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ae(w,c)?c.slice(2):c[2]+t.slice(3),o||s){const l=t.endsWith(we);t=t.replace(ze,""),o&&O.rel(e,t,o,l),s&&O.ael(e,t,s,l)}}},qe=/\s/,ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(qe):[]),we="Capture",ze=new RegExp(we+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const i of Ne(Object.keys(n)))i in r||be(s,i,n[i],void 0,o,t.i);for(const i of Ne(Object.keys(r)))be(s,i,n[i],r[i],o,t.i)};function Ne(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,z=!1,U=!1,k=!1,re=[],ie=[],I=(e,t,o)=>{var s;const n=t.m[o];let r,i,c,l=0;if(W||(U=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=w.document.createTextNode(n.h);else if(1&n.i)r=n.S=w.document.createTextNode(""),le(null,n,k);else{if(k||(k=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=w.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),le(null,n,k),n.m){const a=n.O==="template"?r.content:r;for(l=0;l<n.m.length;++l)i=I(e,n,l),i&&a.appendChild(i)}n.O==="svg"?k=!1:r.tagName==="foreignObject"&&(k=!0)}return r["s-hn"]=L,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=se,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(a){if(a.assignedElements||a.assignedNodes||!a["s-sr"])return;const f=u=>(function(h){const g=[],d=this["s-sn"];h?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
4
+ If you have a particular use case, please open an issue on the Stencil repo.
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(b=>{const y=[];for(let m=0;m<b.length;m++){const p=b[m]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(v.childNodes)).forEach((b=>{d===B(b)&&g.push(b)})),u?g.filter((b=>b.nodeType===1)):g}).bind(a);a.assignedElements=f(!0),a.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&_e(e.S)),r},_e=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,U=!0)}O.i&=-2},Q=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(F(n).parentNode,n,F(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,U=!0),t&&Q(n,t)}O.i&=-2},Oe=(e,t,o,s,n,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=r;++n)s[n]&&(i=I(null,o,n),i&&(s[n].S=i,$(c,i,F(t))))},ke=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ee(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():Q(r,!0),r.remove())}}},G=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,c=t.h;let l;c==null?(k=i==="svg"||i!=="foreignObject"&&k,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",_e(t.S.parentElement)),le(e,t,k),n!==null&&r!==null?((a,f,u,h,g=!1)=>{let d,v,b=0,y=0,m=0,p=0,_=f.length-1,S=f[0],N=f[_],E=h.length-1,C=h[0],j=h[E];const Re=u.O==="template"?a.content:a;for(;b<=_&&y<=E;)if(S==null)S=f[++b];else if(N==null)N=f[--_];else if(C==null)C=h[++y];else if(j==null)j=h[--E];else if(G(S,C,g))H(S,C,g),S=f[++b],C=h[++y];else if(G(N,j,g))H(N,j,g),N=f[--_],j=h[--E];else if(G(S,j,g))S.O!=="slot"&&j.O!=="slot"||Q(S.S.parentNode,!1),H(S,j,g),$(Re,S.S,N.S.nextSibling),S=f[++b],j=h[--E];else if(G(N,C,g))S.O!=="slot"&&j.O!=="slot"||Q(N.S.parentNode,!1),H(N,C,g),$(Re,N.S,S.S),N=f[--_],C=h[++y];else{for(m=-1,p=b;p<=_;++p)if(f[p]&&f[p].$!==null&&f[p].$===C.$){m=p;break}m>=0?(v=f[m],v.O!==C.O?d=I(f&&f[y],u,m):(H(v,C,g),f[m]=void 0,d=v.S),C=h[++y]):(d=I(f&&f[y],u,y),C=h[++y]),d&&$(F(S.S).parentNode,d,F(S.S))}b>_?Oe(a,h[E+1]==null?null:h[E+1].S,u,h,y,E):y>E&&ke(f,b,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Oe(s,null,t,r,0,r.length-1)):!o&&n!==null&&ke(n,0,n.length-1),k&&i==="svg"&&(k=!1)):(l=s["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(me(t,i)){let c=A.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],A.push({N:r,k:t})),t["s-sr"]&&A.map((l=>{me(l.k,t["s-sn"])&&(c=A.find((a=>a.k===t)),c&&!l.N&&(l.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}r.nodeType===1&&Ce(r)}},Ee=e=>{e.v&&e.v.ref&&re.push((()=>e.v.ref(null))),e.m&&e.m.map(Ee)},Ue=(e,t)=>{ie.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var c;if(!(i=i||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=B(r)||"";return{slotNode:ee(te(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Ie=(e,t,o=!1)=>{var s,n,r,i,c;const l=e.$hostElement$,a=e.o,f=e.M||ne(null,null);var u;const h=(u=t)&&u.O===Fe?t:We(null,null,t);if(L=l.tagName,a._&&(h.v=h.v||{},a._.forEach((([g,d])=>{h.v[d]=l[g]}))),o&&h.v)for(const g of Object.keys(h.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=l[g]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=l.shadowRoot||l,W=!(!(1&a.i)||128&a.i),se=l["s-cr"],z=!1,H(f,h,o),O.i|=1,U){Ce(h.S);for(const g of A){const d=g.k;if(!d["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=d,$(d.parentNode,d["s-ol"]=v,d,o)}}for(const g of A){const d=g.k,v=g.N;if(d.nodeType===1&&o&&(d["s-ih"]=(s=d.hidden)!=null&&s),v){const b=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=d["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(r=m["s-nr"])!=null?r:null;if(p&&p["s-sn"]===d["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===d||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}m=m.previousSibling}}if((!y&&b!==(d.__parentNode||d.parentNode)||(d.__nextSibling||d.nextSibling)!==y)&&d!==y){if($(b,d,y,o),d.nodeType===8&&d.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(d.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=d["s-hn"],m["s-sn"]=d["s-sn"],m["s-sh"]=d["s-sh"],m["s-sr"]=d["s-sr"],m["s-ol"]=d["s-ol"],m["s-ol"]["s-nr"]=m,$(d.parentNode,m,d,o),d.parentNode.removeChild(d)}d.nodeType===1&&d.tagName!=="SLOT-FB"&&(d.hidden=(i=d["s-ih"])!=null&&i)}d&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else d.nodeType===1&&(d.hidden=!0)}}if(z&&pe(h.S),O.i&=-2,A.length=0,!W&&!(1&a.i)&&l["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const d of g)if(d["s-hn"]!==L&&!d["s-sh"]){if(o&&d["s-ih"]==null&&(d["s-ih"]=(c=d.hidden)!=null&&c),d.nodeType===1)d.hidden=!0;else if(d.nodeType===3&&d.nodeValue.trim()){const v=w.document.createComment("s-nt-"+d.nodeValue);v["s-sn"]=d["s-sn"],$(d.parentNode,v,d,o),d.parentNode.removeChild(d)}}}se=void 0,re.forEach((g=>g())),re.length=0,ie.forEach((g=>g())),ie.length=0},$e=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);$e(e,e.C);const o=()=>Qe(e,t);if(!t)return He(o);queueMicrotask((()=>{o()}))},Qe=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=V(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=je(n,(()=>V(s,"componentWillRender",void 0,o))),je(n,(()=>Ye(e,s,t)))},je=(e,t)=>Ge(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ye=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const c=i.o,l=i.$hostElement$,a=c.i,f=((u,h)=>{var g,d,v;const b=ge(h),y=q.get(b);if(!w.document)return b;if(u=u.nodeType===11?u:w.document,y)if(typeof y=="string"){let m,p=x.get(u=u.head||u);if(p||x.set(u,p=new Set),!p.has(b)){m=w.document.createElement("style"),m.textContent=y;const _=(g=O.L)!=null?g:(function(){var S,N,E;return(E=(N=(S=w.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?E:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&h.i))if(u.nodeName==="HEAD"){const S=u.querySelectorAll("link[rel=preconnect]"),N=S.length>0?S[S.length-1].nextSibling:u.querySelector("style");u.insertBefore(m,N?.parentNode===u?N:null)}else if("host"in u)if(Y){const S=new((d=u.defaultView)!=null?d:u.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(y),Z?u.adoptedStyleSheets.unshift(S):u.adoptedStyleSheets=[S,...u.adoptedStyleSheets]}else{const S=u.querySelector("style");S?S.textContent=y+S.textContent:u.prepend(m)}else u.append(m);1&h.i&&u.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let m=x.get(u);if(m||x.set(u,m=new Set),!m.has(b)){const p=(v=u.defaultView)!=null?v:u.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let S=0;S<y.cssRules.length;S++)_.insertRule(y.cssRules[S].cssText,S)}Z?u.adoptedStyleSheets.push(_):u.adoptedStyleSheets=[...u.adoptedStyleSheets,_],m.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&a&&(l["s-sc"]=f,l.classList.add(f+"-h"))})(e),Ze(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>Je(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},Ze=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ie(e,t,s)}catch(n){M(n,e.$hostElement$)}return null},Je=e=>{const t=e.$hostElement$,o=t,s=e.C;V(o,"componentDidRender",void 0,t),64&e.i?V(o,"componentDidUpdate",void 0,t):(e.i|=64,Xe(t),V(o,"componentDidLoad",void 0,t),e.F(t),s||Ke()),e.A&&(e.A(),e.A=void 0),512&e.i&&X((()=>ce(e,!1))),e.i&=-517},Ke=()=>{X((()=>Ve(w,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){M(n,s)}},Xe=e=>e.classList.add("hydrated"),Ae=(e,t,o,s)=>{const n=T(e);if(!n)return;const r=e,i=n.l.get(t),c=n.i,l=r;o=Se(o,s.t[t][0]);const a=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!a){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((u=>{try{const[[h,g]]=Object.entries(u);(128&c||1&g)&&(l?l[h](o,i,t):n.T.push((()=>{n.D[h](o,i,t)})))}catch(h){M(h,r)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||ce(n,!1)}}},et=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=ye(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([i,[c]])=>{if(31&c||32&c){const{get:l,set:a}=P(n,i)||{};l&&(t.t[i][0]|=2048),a&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return l?l.apply(this):(f=i,T(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(f){const u=T(this);if(u){if(a)return(32&c?this[i]:u.$hostElement$[i])===void 0&&u.l.get(i)&&(f=u.l.get(i)),a.apply(this,[Se(f,c)]),void Ae(this,i,f=32&c?this[i]:u.$hostElement$[i],t);Ae(this,i,f,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(c,l,a){O.jmp((()=>{var f;const u=i.get(c),h=T(this);if(this.hasOwnProperty(u),n.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==a)return;if(u==null){const y=h?.i;if(h&&y&&!(8&y)&&a!==l){const m=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((_=>{const[[S,N]]=Object.entries(_);m[S]!=null&&(128&y||1&N)&&m[S].call(m,a,l,c)}))}return}const g=r.find((([y])=>y===u)),d=g&&4&g[1][0],v=d&&a===null&&this[u]===void 0;d&&(a=a!==null&&a!=="false");const b=Object.getOwnPropertyDescriptor(n,u);v||a==this[u]||b.get&&!b.set||(this[u]=a)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,l])=>31&l[0])).map((([c,l])=>{var a;const f=l[1]||c;return i.set(f,c),512&l[0]&&((a=t._)==null||a.push([c,f])),f}))]))}}return e},tt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=ye(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const c={i:0,$hostElement$:r,o:i,l:new Map,U:new Map};c.W=new Promise((a=>c.F=a)),r["s-p"]=[],r["s-rc"]=[];const l=c;r.__stencil__getHostRef=()=>l,512&i.i&&Le(r,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!T(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=T(r);if(!i)return;const c=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&c.i&&(l=>{if(!w.document)return;const a=l["s-cr"]=w.document.createComment("");a["s-cn"]=!0,$(l,a,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){$e(i,i.C=l);break}}c.t&&Object.entries(c.t).map((([l,[a]])=>{if(31&a&&Object.prototype.hasOwnProperty.call(r,l)){const f=r[l];delete r[l],r[l]=f}})),(async(l,a,f)=>{let u;try{if(!(32&a.i)&&(a.i|=32,u=l.constructor,customElements.whenDefined(l.localName).then((()=>a.i|=128)),u&&u.style)){let d;typeof u.style=="string"&&(d=u.style);const v=ge(f);q.has(v)||((b,y,m)=>{let p=q.get(b);Y&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,q.set(b,p)})(v,d,!!(1&f.i))}const h=a.C,g=()=>ce(a,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){M(h,l),a.A&&(a.A(),a.A=void 0),a.F&&a.F(l)}})(r,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||T(r),x.has(r)&&x.delete(r),r.shadowRoot&&x.has(r.shadowRoot)&&x.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else De.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),et(e,o)}catch(s){return M(s),e}};function lt(e){return e}const st=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Te=tt(class extends Pe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=st(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function xe(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,Te))}))}xe();const ot=Te,nt=xe;R.GidsSnackbar=ot,R.defineCustomElement=nt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,5 @@
1
+ (function(M,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(M=typeof globalThis<"u"?globalThis:M||self,P(M.gidsCoreWebGidsTextField={}))})(this,(function(M){"use strict";function P(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var G,_t=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[n]])=>{if(31&n||32&n){const o=e[s],l=P(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},we=(e,t)=>t in e,F=(e,t)=>(0,console.error)(e,t),W=new Map,Te="http://www.w3.org/1999/xlink",x=typeof window<"u"?window:{},ie=x.HTMLElement||class{},T={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},ne=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ne&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,le=!1,Ee=[],Ne=[],bt=(e,t)=>i=>{e.push(i),le||(le=!0,4&T.i?ae(re):T.raf(re))},Le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){F(i)}e.length=0},re=()=>{Le(Ee),Le(Ne),(le=Ee.length>0)&&T.raf(re)},ae=e=>Promise.resolve(void 0).then(e),vt=bt(Ne);function yt(){const e=this.attachShadow({mode:"open"});G===void 0&&(G=null),G&&(oe?e.adoptedStyleSheets.push(G):e.adoptedStyleSheets=[...e.adoptedStyleSheets,G])}var $e=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!St(s,B(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ce(s,"childNodes").length&&$e(s)}};function de(e,t,i){let s,n=0,o=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||B(s)===i)&&(o.push(s),i!==void 0))return o;o=[...o,...de(s.childNodes,t,i)]}return o}var St=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!i&&n["s-sr"]||s.push(n);return s},ke=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ue,j,I=new WeakMap,Oe=e=>"sc-"+e.p,he=e=>(e=typeof e)=="object"||e==="function",_=(e,t,...i)=>{let s=null,n=null,o=null,l=!1,a=!1;const r=[],c=d=>{for(let f=0;f<d.length;f++)s=d[f],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!he(s))&&(s=String(s)),l&&a?r[r.length-1].h+=s:r.push(l?U(null,s):s),a=l)};if(c(i),t){t.key&&(n=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,xt);const u=U(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=n,u.j=o,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ae={},xt={forEach:(e,t)=>e.map(Ie).forEach(t),map:(e,t)=>e.map(Ie).map(t).map(Ct)},Ie=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ct=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),_(e.vtag,i,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Me=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const n of t){if(i)break;for(const o of e[n])if(typeof o=="string"){i=!0;break}}if(!i)return e;const s={};for(const n of t)s[n]=e[n].map((o=>typeof o=="string"?{[o]:0}:o));return s},je=(e,t)=>e==null||he(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,wt=(e,t)=>{const i=e;return{emit:s=>Pe(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},Pe=(e,t,i)=>{const s=T.ce(t,i);return e.dispatchEvent(s),s},Fe=(e,t,i,s,n,o)=>{if(i===s)return;let l=we(e,t),a=t.toLowerCase();if(t==="class"){const r=e.classList,c=Ve(i);let u=Ve(s);r.remove(...c.filter((d=>d&&!u.includes(d)))),r.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const r in i)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)i&&s[r]===i[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&Nt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let c;{const u=O(e);if(u&&u.o&&u.o.t){const d=u.o.t[r];d&&d[1]&&(c=d[1])}}return c||(c=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=he(s);if((l||r&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?l=!1:i!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Te,t):e.removeAttribute(t)):(!l||4&o||n)&&!r&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Te,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):we(x,a)?a.slice(2):a[2]+t.slice(3),i||s){const r=t.endsWith(Re);t=t.replace(Et,""),i&&T.rel(e,t,i,r),s&&T.ael(e,t,s,r)}}},Tt=/\s/,Ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Tt):[]),Re="Capture",Et=new RegExp(Re+"$"),fe=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},o=t.v||{};for(const l of Ge(Object.keys(n)))l in o||Fe(s,l,n[l],void 0,i,t.i);for(const l of Ge(Object.keys(o)))Fe(s,l,n[l],o[l],i,t.i)};function Ge(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,K=!1,Y=!1,E=!1,pe=[],ge=[],J=(e,t,i)=>{var s;const n=t.m[i];let o,l,a,r=0;if(D||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)o=n.S=x.document.createTextNode(n.h);else if(1&n.i)o=n.S=x.document.createTextNode(""),fe(null,n,E);else{if(E||(E=n.O==="svg"),!x.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=n.S=x.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),E&&n.O==="foreignObject"&&(E=!1),fe(null,n,E),n.m){const c=n.O==="template"?o.content:o;for(r=0;r<n.m.length;++r)l=J(e,n,r),l&&c.appendChild(l)}n.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=j,3&n.i&&(o["s-sr"]=!0,o["s-cr"]=ue,o["s-sn"]=n.j||"",o["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const g=[],h=this["s-sn"];f?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
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 b=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&b.push(p)}return b})(S.childNodes)).forEach((y=>{h===B(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==j&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(l=J(null,i,n),l&&(s[n].S=l,$(a,l,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,l=t.O,a=t.h;let r;a==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,b=0,m=0,p=0,w=u.length-1,v=u[0],C=u[w],L=f.length-1,N=f[0],k=f[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(C==null)C=u[--w];else if(N==null)N=f[++b];else if(k==null)k=f[--L];else if(Z(v,N,g))V(v,N,g),v=u[++y],N=f[++b];else if(Z(C,k,g))V(C,k,g),C=u[--w],k=f[--L];else if(Z(v,k,g))v.O!=="slot"&&k.O!=="slot"||X(v.S.parentNode,!1),V(v,k,g),$(mt,v.S,C.S.nextSibling),v=u[++y],k=f[--L];else if(Z(C,N,g))v.O!=="slot"&&k.O!=="slot"||X(C.S.parentNode,!1),V(C,N,g),$(mt,C.S,v.S),C=u[--w],N=f[++b];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===N.$){m=p;break}m>=0?(S=u[m],S.O!==N.O?h=J(u&&u[b],d,m):(V(S,N,g),u[m]=void 0,h=S.S),N=f[++b]):(h=J(u&&u[b],d,b),N=f[++b]),h&&$(q(v.S).parentNode,h,q(v.S))}y>w?De(c,f[L+1]==null?null:f[L+1].S,d,f,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&l==="svg"&&(E=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,l)){let a=A.find((r=>r.k===t));K=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((r=>{ke(r.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,l){var a;if(!(l=l||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=B(o)||"";return{slotNode:de(ce(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Lt=(e,t,i=!1)=>{var s,n,o,l,a;const r=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const f=(d=t)&&d.O===Ae?t:_(null,null,t);if(j=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=r[g]}))),i&&f.v)for(const g of Object.keys(f.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=r[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,D=!(!(1&c.i)||128&c.i),ue=r["s-cr"],K=!1,V(u,f,i),T.i|=1,Y){He(f.S);for(const g of A){const h=g.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,i)}}for(const g of A){const h=g.k,S=g.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(o=m["s-nr"])!=null?o:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){b=p;break}}m=m.previousSibling}}if((!b&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if($(y,h,b,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(K&&$e(f.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&r["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==j&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}ue=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.C);const i=()=>$t(e,t);if(!t)return vt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Ot(e,s,t)))},Ue=(e,t)=>kt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(l=>{const a=l.o,r=l.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Oe(f),b=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,b)if(typeof b=="string"){let m,p=I.get(d=d.head||d);if(p||I.set(d,p=new Set),!p.has(y)){m=x.document.createElement("style"),m.textContent=b;const w=(g=T.L)!=null?g:(function(){var v,C,L;return(L=(C=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),C=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===p.CSSStyleSheet)w=b;else{w=new p.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,n,i),o&&(o.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>It(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},At=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,i=t,s=e.C;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),H(i,"componentDidLoad",void 0,t),e.F(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Mt=e=>{var t;{const i=O(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Pt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=O(e);if(!n)return;const o=e,l=n.l.get(t),a=n.i,r=o;i=je(i,s.t[t][0]);const c=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!c){if(n.l.set(t,i),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(r?r[f](i,l,t):n.T.push((()=>{n.D[f](i,l,t)})))}catch(f){F(f,o)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(i,l,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Ft=(e,t)=>{var i,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Me(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((i=t.t)!=null?i:{});o.map((([l,[a]])=>{if(31&a||32&a){const{get:r,set:c}=P(n,l)||{};r&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return r?r.apply(this):(u=l,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(u){const d=O(this);if(d){if(c)return(32&a?this[l]:d.$hostElement$[l])===void 0&&d.l.get(l)&&(u=d.l.get(l)),c.apply(this,[je(u,a)]),void Ke(this,l,u=32&a?this[l]:d.$hostElement$[l],t);Ke(this,l,u,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,r,c){T.jmp((()=>{var u;const d=l.get(a),f=O(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const b=f?.i;if(f&&b&&!(8&b)&&c!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,C]]=Object.entries(w);m[v]!=null&&(128&b||1&C)&&m[v].call(m,c,r,a)}))}return}const g=o.find((([b])=>b===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...o.filter((([a,r])=>31&r[0])).map((([a,r])=>{var c;const u=r[1]||a;return l.set(u,a),512&r[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.R=Me(e.R),i.H=e.H,i.P=e.P,i._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,l)=>{const a={i:0,$hostElement$:o,o:l,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=a;o.__stencil__getHostRef=()=>r,512&l.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const l=O(o);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!x.document)return;const c=r["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){We(l,l.C=r);break}}a.t&&Object.entries(a.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Oe(u);W.has(S)||((y,b,m)=>{let p=W.get(y);ne&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=b:p.replaceSync(b)):p=b,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>Q(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){F(f,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||O(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ft(e,i)}catch(s){return F(s),e}},Vt=(e,t)=>t;function ws(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Rt=/\w/,Gt=e=>e.replace(Rt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Bt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,Dt=ee/2,_e=2*Math.PI*Ze,qt=`0 0 ${ee} ${ee}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),l=(_e-parseFloat(o)).toFixed(2);return`${o} ${l}`},centerPosition:Dt,circumference:_e,radius:Ze,thickness:Xe,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Jt}=Qe,Xt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Jt(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),tt=Symbol("pathSet"),ve="gids-asset-paths-set";class Zt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),Qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),es=e=>{const t=Qt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return es("@ganpatiinfo/gids-web-shared")}function ts(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function ss(e){return Se().onAssetPathsSet(e)}let is=0;const it=(e,t="gids")=>e||`${t}-${is++}`,ns=e=>e.type==="hidden",os=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ns(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let l=0;l<n;l++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),rt={"icons-other.svg":["accessibility","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"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function ls(e){return at.get(e)}function dt(e,t="regular",i){const s=ls(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Ut,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:l,...a})=>{const r=it(o);let c=l;return c===void 0&&ts()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&ss((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",dt(f,g,st)),d.appendChild(h)})(u,e,i)}))},width:"16",height:"16",class:rs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&_("title",{id:r},s||e),c!==void 0?_("use",{href:c}):null)},{getIndicatorText:as}=Bt,{getGidsLabelClassNames:ds}=zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:l,class:a,isLabelSentence:r,...c},u)=>{const d=as({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:r});return _("div",{class:ds({disabled:e},a),...c},_("label",{htmlFor:o,id:l},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},{getGidsDismissButtonClassNames:us}=Kt,hs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...l})=>_("button",{class:us({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...l},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:fs}=Yt,ps=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"fed52ee2bacf334f4ec630fdaea5285d8aee56b3"},_("div",{key:"fe65a5714ae0e8369a2e6d91f5ccbe37ce1b04b4",class:fs()},_("div",{key:"37d656971e39e9c26085b54fd253f9758e6110fa",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"eda62c8170fb5caf2e69f66bae079d1646a52ff8",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"28677c5ebd0e8bfb7f9f0c43634c9a70b84f4cd0",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"0a816504a863304e13be74c64429b74700fc3590",class:"gids-field__control"},_("slot",{key:"1081771bfb182da6b0527303132555458de3ff2e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"632636f8c4d819b6c32658a7ae72ab9308973fda",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ps))}))}ct();const{getGidsSpinnerControlClassNames:gs}=Wt,{calculateStrokeDasharray:ms,thickness:ut,radius:ht,centerPosition:se,viewBox:_s}=Ht,bs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:ms(i,s||0),strokeDashoffset:"0"}),_("svg",{class:gs({size:e,indeterminate:t,value:i}),viewBox:_s,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},vs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(os(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return _(Vt,{key:"9d1ed3749495c830b3940d4da09056620ccaef1d"},_("slot",{key:"ae4b6e25b50e1b2fc04ff7eb1b2695437b25b974",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"408038e8921dc443f14b5c57541d8ca74205e193",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"033b3c940545c99f3aa356e08267c77c25c0f89c",name:"leadingAccessory"}),_("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}),_("slot",{key:"85d41d8a06da0c88a6defe65eae2d6f1e69c3abd",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"1fec370bdb270031d6e3cdd9bed84871116be21f",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"65800ff524221d70b659901d440c5459e64975a8",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"2bec2513415dad3294abc23ebcdc0493fa44399a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"2e21e9cb5ccfad300400c97dba89642395f84b04",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(bs,{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 ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}ft();const{formatCharCount:ys}=Qe,{inputToGidsFieldStatus:Ss}=Xt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=wt(this,"gidsTextFieldClear"),this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Mt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"cc94d948b69f9a9cfeee2b9df2a06d8985448963",disabled:this.disabled,count:ys(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ss(this.status)},_(cs,{key:"16ed76aa12c2a256cd7ca7d2862b552e444f57c7",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"2b5ac45e1c828db13394d003cec5acfef2d02f82",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"e36107774a78bf7162d88784474b9dc77aa4fffa",name:"leadingIcon"}),_("slot",{key:"0c8d888dc3f46d2d49be0e55e1833604e703724c",name:"leadingAccessory"}),s&&_(hs,{key:"06804811547b79a273271a467cc3020e49b66ea6",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("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 gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const xs=pt,Cs=gt;M.GidsTextField=xs,M.defineCustomElement=Cs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));