@ganpatiinfo/gids-core-web 8.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +696 -0
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +332 -0
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-overflow-container.d.ts +11 -0
- package/dist/gids-overflow-container.js +1 -0
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-popover.d.ts +11 -0
- package/dist/gids-popover.js +1 -0
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +11 -0
- package/dist/gids-tooltip.js +1 -0
- package/dist/index.js +1 -1
- package/dist/p-B8kX8Vqv.js +1 -0
- package/dist/p-CFw4_-5A.js +1 -0
- package/dist/{p-BVh4zbX4.js → p-DvoHLz_5.js} +1 -1
- package/dist/p-a3JfEYJp.js +1 -0
- package/dist/{p-BplPYg8z.js → p-iCAclJND.js} +1 -1
- package/dist/types/components/html/GidsAccordionItem/GidsAccordionItem.d.ts +4 -0
- package/dist/types/components/html/GidsAccordionItemContent/GidsAccordionItemContent.d.ts +5 -0
- package/dist/types/components/html/GidsAccordionItemHeader/GidsAccordionItemHeader.d.ts +4 -0
- package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
- package/dist/types/components/html/GidsFeedbackBlock/GidsFeedbackBlock.d.ts +4 -0
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsProgressBar/GidsProgressBar.d.ts +4 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
- package/dist/types/components/webComponents/GidsOverflowContainer/GidsOverflowContainer.d.ts +10 -0
- package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
- package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
- package/dist/types/components.d.ts +101 -2
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
- package/dist-bundled/es/gids-field.js +2 -2
- package/dist-bundled/es/gids-icon.js +9 -9
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +39 -0
- package/dist-bundled/es/gids-overlay-provider.js +3 -3
- package/dist-bundled/es/gids-password-field.js +14 -14
- package/dist-bundled/es/gids-popover.js +110 -0
- package/dist-bundled/es/gids-scrim.js +5 -5
- package/dist-bundled/es/gids-text-field.js +13 -13
- package/dist-bundled/es/gids-toggle-button.js +5 -5
- package/dist-bundled/es/gids-tooltip.js +66 -0
- package/dist-bundled/es/index.js +33 -19
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
- package/dist-bundled/es/p-CFw4_-5A-Dzvju3VE.js +25 -0
- package/dist-bundled/es/{p-DijVkS9b-CtFkEtlE.js → p-DijVkS9b-CeV1i4T-.js} +1 -1
- package/dist-bundled/es/{p-BVh4zbX4-C4UJ8LPX.js → p-DvoHLz_5-C5EvA91N.js} +6 -6
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
- package/dist-bundled/es/{p-BplPYg8z-B8uAAfo4.js → p-iCAclJND-Bmsvd-W1.js} +2 -2
- package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-veoOgDXg-fRinub-C.js} +12 -5
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +5 -0
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
- package/package.json +278 -254
- package/dist/p-CWdkmFbc.js +0 -1
- package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
|
@@ -1,5 +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,
|
|
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,De=(e,t)=>{const s=e;return{emit:n=>ze(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},ze=(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 D=!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(D||(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",!D&&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
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const 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:"4bd0ef4ac11ded5f563595485082650801fdbe1b"},g("div",{key:"3617e3301f53dcb21a9beb98b4a23d620e3dd39d",class:Ps()},g("div",{key:"bb1f6710ee27c94346f7ee9459389d901b23d913",class:"gids-field__header",hidden:!this._hasLabelContent()},g("slot",{key:"8fa03ca31936bc6082052b099ac29afea2ec3032",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),g("div",{key:"1b50c69005c2d0b89c47dc01c2dcbb343bdeecff",class:"gids-field__count","aria-live":"polite"},this.count)),g("div",{key:"b8664a96496a6e7289fb14bdadbb59dcee9af3d1",class:"gids-field__control"},g("slot",{key:"bff757557406c0165be3569c4eb34adb1fe346ca",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),g("p",{key:"0638e493fc4ac98f6c10a8392c45ffde8b8340a4",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:"281c832656cace745109fdd8208fe24b90f2c126"},g("slot",{key:"5f8424a1d9bc196e3efee9d1e5d099bed15ddb4b",name:"leadingIcon"}),this.leadingLabel&&g("span",{key:"2ce161a38f74618d60f38028c646c80e361aeced",class:"gids-input__label"},this.leadingLabel),g("slot",{key:"12383525faf774eef618705cf68338a4fc9c9e55",name:"leadingAccessory"}),g("input",{key:"19de1aa1ad2a47db2979dfcbbf9b8e49d045f5af",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),g("slot",{key:"3e0f6ae8c23b2536891ddd0adb7be1215d86ac66",name:"trailingAccessory"}),this.trailingLabel&&g("span",{key:"9b2ac9fbf6c198dd0a4e1decf4631b2b46902587",class:"gids-input__label"},this.trailingLabel),g("slot",{key:"d9848f786ce38136f1ad8c07d685215ede87f157",name:"trailingIcon"}),this.status==="incomplete"&&g(U,{key:"bc8bcc01f07bd345b448f4662a37b28d8029a94f",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&g(U,{key:"cafc44041a1d4eac859face7ec5eea2ced1ca3f5",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&g(St,{key:"0daca638742b098d06da6cd9a7b9cfd6e9c90921",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function 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)},e.map((r=>{if(r?.requirementText!=null&&r?.requirementRule!=null){const o=Hs({rule:r.requirementRule,textMinLength:s,text:t});return r.requirementRule==="include-min-length"?W({requirementRule:r.requirementRule,textMinLength:s})===!0?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!==void 0&&r.placeholder!==null&&r.placeholder!=""?r.placeholder:"Enter password",a=this.isPasswordRevealed,l=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return g(nt,{key:"b83ca111267e69120811c23a02754fc2f3132131"},g("gids-field",{key:"b10ea7b36a8f7daa4b5877e541ffa468ca06c474",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:Ks(this.status)},g(Rs,{key:"04f8c7ee920968585e77dff7e67494547285b6a6",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:"2892c5cda5ac6125e1b1c16195cbe45fed9ed0cd",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:"e6690ff215ac059385463b250d4b75876af23b6b",name:"leadingIcon"}),g("slot",{key:"a22761b031bc9e5d7d115d2c82969685dc4ec150",name:"leadingAccessory"}),g("div",{key:"6e4ddee96b624e07453b06966d02fe22060bdddf",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&g(Ns,{key:"1499342b7785379b68472713b19f2846cb39315c",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&g(qs,{key:"b309f288c0e7108f0896de407e1b8b4b6cd1f628",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},a?"Hide":"Show")))),g("div",{key:"7cbcb6a793de21d9f990b26ee0ff956a73d3f20e",class:"gids-password-field__meters-container"},g(Gs,{key:"f0085914442e068821fc01304e75a0fab47d3dd5",meterRules:l,text:this.value,textMinLength:c}),g(Us,{key:"832be45d45074a520896001b80a20a0fd54695b7",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function 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"})}));
|
|
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(z(i).parentNode,i,z(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,z(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.$),z=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"||D||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(z(v.S).parentNode,h,z(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,D=!(!(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,!D&&!(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||zt()),e.A&&(e.A(),e.A=void 0),512&e.i&&de((()=>te(e,!1))),e.i&=-517},Dt=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}},zt=()=>{de((()=>ze(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,positive:i,loading:r},o,a)=>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&&!i,"gids-button--positive":i&&!n,"gids-button--icon-only":o,"gids-button--loading":r},a)},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","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},_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,positive:n,loading:i,width:r,leadingIcon:o,trailingIcon:a,as:l,disabled:c,class:u,forceIconOnly:d=!1,...f},p)=>{const h=l||"button",S=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in f||(f.type="button"),g(h,{class:ks({appearance:e,size:t,destructive:s,loading:i,width:r,positive:n},d||p.length===0&&ht(o)&&!ht(a),u),disabled:h==="button"?c:void 0,...f},g("span",{class:"gids-button__content"},o,p),i&&g(St,{size:S,indeterminate:!0}),a)},{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:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},g("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:Ps()},g("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},g("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),g("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),g("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},g("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),g("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?g("p",{class: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:"c1e035111a8a80ef0b442bc0298785f0c7445113"},g("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&g("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),g("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),g("input",{key:"2bc7f84858a8533f33c66834ad212c38ad698075",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),g("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&g("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),g("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&g(U,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&g(U,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&g(St,{key:"4dd22cd62d87ff444794fc8f1c4f0cc78e14738a",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function 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:Ds}=os,zs=e=>{const{label:t,status:s="default",leadingIconVisible:n=!0,class:i}=e,r=Ds(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(zs,{status:o?"success":"error",label:r.requirementText});return g("div",{class:Ws(n)},e.map((r=>{if(r?.requirementText!=null&&r?.requirementRule!=null){const o=Hs({rule:r.requirementRule,textMinLength:s,text:t});return r.requirementRule==="include-min-length"?W({requirementRule:r.requirementRule,textMinLength:s})===!0?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=De(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=De(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((()=>{Dt(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!==void 0&&r.placeholder!==null&&r.placeholder!=""?r.placeholder:"Enter password",a=this.isPasswordRevealed,l=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return g(nt,{key:"674d6baf90ed0a3b9bf6821fb288972ffe255909"},g("gids-field",{key:"2b1f7f67ef3616edf29843b663c4e1efa8ce416a",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:Ks(this.status)},g(Rs,{key:"ccd09eba06b8876d216181b8dd7fbcb1ff742d86",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:s},this.label),g("gids-input",{key:"f9a8c8f13347b5dd7620e8498aeb85ec646f000f",ref:u=>this.#e=u,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...r,placeholder:o,type:a?"text":"password",id:s,maxLength:this.maxLength}},g("slot",{key:"56c43774f755d7ae1ac6e633e39426d2b489414a",name:"leadingIcon"}),g("slot",{key:"1e964257af8f053e0d7c9de51fc0ec48a38b6d18",name:"leadingAccessory"}),g("div",{key:"f453197e76a4c8c01f1fa12a6f0c551a14f71f5d",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&g(Ns,{key:"3127641007c6eb5db4e9b8c6bd521e6cdf80e59b",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),i&&g(qs,{key:"bc537fa18fabe13e16ec2a7c8b5f4611e589c4c7",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},a?"Hide":"Show")))),g("div",{key:"355033afd60090f7b04e48db5c1d675f29663e18",class:"gids-password-field__meters-container"},g(Gs,{key:"fb407fffb5de91b9bc30c1e7593fee01b5fa2a09",meterRules:l,text:this.value,textMinLength:c}),g(Us,{key:"6888d147c99ea7902954e55ad91a5d64d7c1a031",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function 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(Y,oe){typeof exports=="object"&&typeof module<"u"?oe(exports):typeof define=="function"&&define.amd?define(["exports"],oe):(Y=typeof globalThis<"u"?globalThis:Y||self,oe(Y.gidsCoreWebGidsPopover={}))})(this,(function(Y){"use strict";function oe(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!o||i.get))return i;e=Object.getPrototypeOf(e)}}var ue,on=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[i]])=>{if(31&i||32&i){const s=e[n],r=oe(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(c){r.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):s!==void 0&&(e[n]=s)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ut=(e,t)=>t in e,ie=(e,t)=>(0,console.error)(e,t),Se=new Map,dt="http://www.w3.org/1999/xlink",O=typeof window<"u"?window:{},ht=O.HTMLElement||class{},A={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)},We=(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),je=!!We&&!!O.document&&Object.getOwnPropertyDescriptor(O.document.adoptedStyleSheets,"length").writable,Ve=!1,pt=[],mt=[],sn=(e,t)=>o=>{e.push(o),Ve||(Ve=!0,4&A.i?He(Ie):A.raf(Ie))},gt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){ie(o)}e.length=0},Ie=()=>{gt(pt),gt(mt),(Ve=pt.length>0)&&A.raf(Ie)},He=e=>Promise.resolve(void 0).then(e),rn=sn(mt);function ln(){const e=this.attachShadow({mode:"open"});ue===void 0&&(ue=null),ue&&(je?e.adoptedStyleSheets.push(ue):e.adoptedStyleSheets=[...e.adoptedStyleSheets,ue])}var yt=e=>{const t=Be(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ze(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!cn(n,de(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&Be(n,"childNodes").length&&yt(n)}};function ze(e,t,o){let n,i=0,s=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||de(n)===o)&&(s.push(n),o!==void 0))return s;s=[...s,...ze(n.childNodes,t,o)]}return s}var cn=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)de(i)!==t||!o&&i["s-sr"]||n.push(i);return n},vt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",de=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Be(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 Ue,K,z=new WeakMap,wt=e=>"sc-"+e.p,qe=e=>(e=typeof e)=="object"||e==="function",B=(e,t,...o)=>{let n=null,i=null,s=null,r=!1,c=!1;const l=[],a=f=>{for(let h=0;h<f.length;h++)n=f[h],Array.isArray(n)?a(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!qe(n))&&(n=String(n)),r&&c?l[l.length-1].h+=n:l.push(r?Oe(null,n):n),c=r)};if(a(o),t){t.key&&(i=t.key),t.name&&(s=t.name);{const f=t.className||t.class;f&&(t.class=typeof f!="object"?f:Object.keys(f).filter((h=>f[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,fn);const u=Oe(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=s,u},Oe=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),an={},fn={forEach:(e,t)=>e.map(bt).forEach(t),map:(e,t)=>e.map(bt).map(t).map(un)},bt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),un=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),B(e.vtag,o,...e.vchildren||[])}const t=Oe(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Et=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const i of t){if(o)break;for(const s of e[i])if(typeof s=="string"){o=!0;break}}if(!o)return e;const n={};for(const i of t)n[i]=e[i].map((s=>typeof s=="string"?{[s]:0}:s));return n},xt=(e,t)=>e==null||qe(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,dn=(e,t,o)=>{const n=A.ce(t,o);return e.dispatchEvent(n),n},St=(e,t,o,n,i,s)=>{if(o===n)return;let r=ut(e,t),c=t.toLowerCase();if(t==="class"){const l=e.classList,a=Ot(o);let u=Ot(n);l.remove(...a.filter((f=>f&&!u.includes(f)))),l.add(...u.filter((f=>f&&!a.includes(f))))}else if(t==="style"){for(const l in o)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)o&&n[l]===o[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&mn(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 a;{const u=H(e);if(u&&u.o&&u.o.t){const f=u.o.t[l];f&&f[1]&&(a=f[1])}}return a||(a=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(a)!==""||e.removeAttribute(a):e.setAttribute(a,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=qe(n);if((r||l&&n!==null)&&!i)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 a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(a?e.removeAttributeNS(dt,t):e.removeAttribute(t)):(!r||4&s||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,a?e.setAttributeNS(dt,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):ut(O,c)?c.slice(2):c[2]+t.slice(3),o||n){const l=t.endsWith(Nt);t=t.replace(pn,""),o&&A.rel(e,t,o,l),n&&A.ael(e,t,n,l)}}},hn=/\s/,Ot=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(hn):[]),Nt="Capture",pn=new RegExp(Nt+"$"),Xe=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},s=t.v||{};for(const r of Ct(Object.keys(i)))r in s||St(n,r,i[r],void 0,o,t.i);for(const r of Ct(Object.keys(s)))St(n,r,i[r],s[r],o,t.i)};function Ct(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var he=!1,Ne=!1,Ce=!1,P=!1,Ye=[],Ke=[],Ae=(e,t,o)=>{var n;const i=t.m[o];let s,r,c,l=0;if(he||(Ce=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)s=i.S=O.document.createTextNode(i.h);else if(1&i.i)s=i.S=O.document.createTextNode(""),Xe(null,i,P);else{if(P||(P=i.O==="svg"),!O.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=i.S=O.document.createElementNS(P?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!he&&2&i.i?"slot-fb":i.O),P&&i.O==="foreignObject"&&(P=!1),Xe(null,i,P),i.m){const a=i.O==="template"?s.content:s;for(l=0;l<i.m.length;++l)r=Ae(e,i,l),r&&a.appendChild(r)}i.O==="svg"?P=!1:s.tagName==="foreignObject"&&(P=!0)}return s["s-hn"]=K,3&i.i&&(s["s-sr"]=!0,s["s-cr"]=Ue,s["s-sn"]=i.j||"",s["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(a){if(a.assignedElements||a.assignedNodes||!a["s-sr"])return;const u=f=>(function(h){const p=[],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:(w=>{const m=[];for(let y=0;y<w.length;y++){const g=w[y]["s-nr"]||void 0;g&&g.isConnected&&m.push(g)}return m})(v.childNodes)).forEach((w=>{d===de(w)&&p.push(w)})),f?p.filter((w=>w.nodeType===1)):p}).bind(a);a.assignedElements=u(!0),a.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&At(e.S)),s},At=e=>{A.i|=1;const t=e.closest(K.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(k(t,i,o??null),i["s-sh"]=void 0,Ce=!0)}A.i&=-2},Re=(e,t)=>{A.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"]===K&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==K&&i["s-ol"]&&(k(pe(i).parentNode,i,pe(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ce=!0),t&&Re(i,t)}A.i&=-2},Rt=(e,t,o,n,i,s)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===K&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(r=Ae(null,o,i),r&&(n[i].S=r,k(c,r,pe(t))))},Pt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;_t(i),s&&(Ne=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),pe=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,r=t.O,c=t.h;let l;c==null?(P=r==="svg"||r!=="foreignObject"&&P,r!=="slot"||he||e.j!==t.j&&(t.S["s-sn"]=t.j||"",At(t.S.parentElement)),Xe(e,t,P),i!==null&&s!==null?((a,u,f,h,p=!1)=>{let d,v,w=0,m=0,y=0,g=0,E=u.length-1,b=u[0],x=u[E],S=h.length-1,N=h[0],C=h[S];const _=f.O==="template"?a.content:a;for(;w<=E&&m<=S;)if(b==null)b=u[++w];else if(x==null)x=u[--E];else if(N==null)N=h[++m];else if(C==null)C=h[--S];else if(Pe(b,N,p))se(b,N,p),b=u[++w],N=h[++m];else if(Pe(x,C,p))se(x,C,p),x=u[--E],C=h[--S];else if(Pe(b,C,p))b.O!=="slot"&&C.O!=="slot"||Re(b.S.parentNode,!1),se(b,C,p),k(_,b.S,x.S.nextSibling),b=u[++w],C=h[--S];else if(Pe(x,N,p))b.O!=="slot"&&C.O!=="slot"||Re(x.S.parentNode,!1),se(x,N,p),k(_,x.S,b.S),x=u[--E],N=h[++m];else{for(y=-1,g=w;g<=E;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){y=g;break}y>=0?(v=u[y],v.O!==N.O?d=Ae(u&&u[m],f,y):(se(v,N,p),u[y]=void 0,d=v.S),N=h[++m]):(d=Ae(u&&u[m],f,m),N=h[++m]),d&&k(pe(b.S).parentNode,d,pe(b.S))}w>E?Rt(a,h[S+1]==null?null:h[S+1].S,f,h,m,S):m>S&&Pt(u,w,E)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),Rt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Pt(i,0,i.length-1),P&&r==="svg"&&(P=!1)):(l=n["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(n.data=c)},j=[],Tt=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(vt(t,r)){let c=j.find((l=>l.k===t));Ne=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],j.push({N:s,k:t})),t["s-sr"]&&j.map((l=>{vt(l.k,t["s-sn"])&&(c=j.find((a=>a.k===t)),c&&!l.N&&(l.N=c.N))}))}else j.some((c=>c.k===t))||j.push({k:t})}s.nodeType===1&&Tt(s)}},_t=e=>{e.v&&e.v.ref&&Ye.push((()=>e.v.ref(null))),e.m&&e.m.map(_t)},mn=(e,t)=>{Ke.push((()=>e(t)))},k=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,r){var c;if(!(r=r||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=s["s-sn"]=de(s)||"";return{slotNode:ze(Be(r,"childNodes"),r.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,o):e?.insertBefore(t,o)},gn=(e,t,o=!1)=>{var n,i,s,r,c;const l=e.$hostElement$,a=e.o,u=e.M||Oe(null,null);var f;const h=(f=t)&&f.O===an?t:B(null,null,t);if(K=l.tagName,a._&&(h.v=h.v||{},a._.forEach((([p,d])=>{h.v[d]=l[p]}))),o&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,he=!(!(1&a.i)||128&a.i),Ue=l["s-cr"],Ne=!1,se(u,h,o),A.i|=1,Ce){Tt(h.S);for(const p of j){const d=p.k;if(!d["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=d,k(d.parentNode,d["s-ol"]=v,d,o)}}for(const p of j){const d=p.k,v=p.N;if(d.nodeType===1&&o&&(d["s-ih"]=(n=d.hidden)!=null&&n),v){const w=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let y=(i=d["s-ol"])==null?void 0:i.previousSibling;for(;y;){let g=(s=y["s-nr"])!=null?s:null;if(g&&g["s-sn"]===d["s-sn"]&&w===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===d||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){m=g;break}}y=y.previousSibling}}if((!m&&w!==(d.__parentNode||d.parentNode)||(d.__nextSibling||d.nextSibling)!==m)&&d!==m){if(k(w,d,m,o),d.nodeType===8&&d.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(d.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=d["s-hn"],y["s-sn"]=d["s-sn"],y["s-sh"]=d["s-sh"],y["s-sr"]=d["s-sr"],y["s-ol"]=d["s-ol"],y["s-ol"]["s-nr"]=y,k(d.parentNode,y,d,o),d.parentNode.removeChild(d)}d.nodeType===1&&d.tagName!=="SLOT-FB"&&(d.hidden=(r=d["s-ih"])!=null&&r)}d&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else d.nodeType===1&&(d.hidden=!0)}}if(Ne&&yt(h.S),A.i&=-2,j.length=0,!he&&!(1&a.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const d of p)if(d["s-hn"]!==K&&!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=O.document.createComment("s-nt-"+d.nodeValue);v["s-sn"]=d["s-sn"],k(d.parentNode,v,d,o),d.parentNode.removeChild(d)}}}Ue=void 0,Ye.forEach((p=>p())),Ye.length=0,Ke.forEach((p=>p())),Ke.length=0},kt=(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()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);kt(e,e.C);const o=()=>yn(e,t);if(!t)return rn(o);queueMicrotask((()=>{o()}))},yn=(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 i;return i=me(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Lt(i,(()=>me(n,"componentWillRender",void 0,o))),Lt(i,(()=>wn(e,n,t)))},Lt=(e,t)=>vn(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),vn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wn=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(r=>{const c=r.o,l=r.$hostElement$,a=c.i,u=((f,h)=>{var p,d,v;const w=wt(h),m=Se.get(w);if(!O.document)return w;if(f=f.nodeType===11?f:O.document,m)if(typeof m=="string"){let y,g=z.get(f=f.head||f);if(g||z.set(f,g=new Set),!g.has(w)){y=O.document.createElement("style"),y.textContent=m;const E=(p=A.L)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&y.setAttribute("nonce",E),!(1&h.i))if(f.nodeName==="HEAD"){const b=f.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:f.querySelector("style");f.insertBefore(y,x?.parentNode===f?x:null)}else if("host"in f)if(We){const b=new((d=f.defaultView)!=null?d:f.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),je?f.adoptedStyleSheets.unshift(b):f.adoptedStyleSheets=[b,...f.adoptedStyleSheets]}else{const b=f.querySelector("style");b?b.textContent=m+b.textContent:f.prepend(y)}else f.append(y);1&h.i&&f.insertBefore(y,null),4&h.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(w)}}else{let y=z.get(f);if(y||z.set(f,y=new Set),!y.has(w)){const g=(v=f.defaultView)!=null?v:f.ownerDocument.defaultView;let E;if(m.constructor===g.CSSStyleSheet)E=m;else{E=new g.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)E.insertRule(m.cssRules[b].cssText,b)}je?f.adoptedStyleSheets.push(E):f.adoptedStyleSheets=[...f.adoptedStyleSheets,E],y.add(w)}}return w})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&a&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),bn(e,t,i,o),s&&(s.map((r=>r())),i["s-rc"]=void 0);{const r=(n=i["s-p"])!=null?n:[],c=()=>En(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},bn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,gn(e,t,n)}catch(i){ie(i,e.$hostElement$)}return null},En=e=>{const t=e.$hostElement$,o=t,n=e.C;me(o,"componentDidRender",void 0,t),64&e.i?me(o,"componentDidUpdate",void 0,t):(e.i|=64,Sn(t),me(o,"componentDidLoad",void 0,t),e.F(t),n||xn()),e.A&&(e.A(),e.A=void 0),512&e.i&&He((()=>Ge(e,!1))),e.i&=-517},xn=()=>{He((()=>dn(O,"appload",{detail:{namespace:"gids-core-web"}})))},me=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){ie(i,n)}},Sn=e=>e.classList.add("hydrated"),Ft=(e,t,o,n)=>{const i=H(e);if(!i)return;const s=e,r=i.l.get(t),c=i.i,l=s;o=xt(o,n.t[t][0]);const a=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!a){if(i.l.set(t,o),n.R){const u=n.R[t];u&&u.map((f=>{try{const[[h,p]]=Object.entries(f);(128&c||1&p)&&(l?l[h](o,r,t):i.T.push((()=>{i.D[h](o,r,t)})))}catch(h){ie(h,s)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},On=(e,t)=>{var o,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Et(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const s=Object.entries((o=t.t)!=null?o:{});s.map((([r,[c]])=>{if(31&c||32&c){const{get:l,set:a}=oe(i,r)||{};l&&(t.t[r][0]|=2048),a&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return l?l.apply(this):(u=r,H(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(u){const f=H(this);if(f){if(a)return(32&c?this[r]:f.$hostElement$[r])===void 0&&f.l.get(r)&&(u=f.l.get(r)),a.apply(this,[xt(u,c)]),void Ft(this,r,u=32&c?this[r]:f.$hostElement$[r],t);Ft(this,r,u,t)}}})}}));{const r=new Map;i.attributeChangedCallback=function(c,l,a){A.jmp((()=>{var u;const f=r.get(c),h=H(this);if(this.hasOwnProperty(f),i.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==a)return;if(f==null){const m=h?.i;if(h&&m&&!(8&m)&&a!==l){const y=this,g=(u=t.R)==null?void 0:u[c];g?.forEach((E=>{const[[b,x]]=Object.entries(E);y[b]!=null&&(128&m||1&x)&&y[b].call(y,a,l,c)}))}return}const p=s.find((([m])=>m===f)),d=p&&4&p[1][0],v=d&&a===null&&this[f]===void 0;d&&(a=a!==null&&a!=="false");const w=Object.getOwnPropertyDescriptor(i,f);v||a==this[f]||w.get&&!w.set||(this[f]=a)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...s.filter((([c,l])=>31&l[0])).map((([c,l])=>{var a;const u=l[1]||c;return r.set(u,c),512&l[0]&&((a=t._)==null||a.push([c,u])),u}))]))}}return e},Nn=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Et(e.R),o.H=e.H,o.P=e.P,o._=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,r)=>{const c={i:0,$hostElement$:s,o:r,l:new Map,U:new Map};c.W=new Promise((a=>c.F=a)),s["s-p"]=[],s["s-rc"]=[];const l=c;s.__stencil__getHostRef=()=>l,512&r.i&&on(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!H(this))return;this.__hasHostListenerAttached=!0}(s=>{if(!(1&A.i)){const r=H(s);if(!r)return;const c=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&c.i&&(l=>{if(!O.document)return;const a=l["s-cr"]=O.document.createComment("");a["s-cn"]=!0,k(l,a,l.firstChild)})(s);{let l=s;for(;l=l.parentNode||l.host;)if(l["s-p"]){kt(r,r.C=l);break}}c.t&&Object.entries(c.t).map((([l,[a]])=>{if(31&a&&Object.prototype.hasOwnProperty.call(s,l)){const u=s[l];delete s[l],s[l]=u}})),(async(l,a,u)=>{let f;try{if(!(32&a.i)&&(a.i|=32,f=l.constructor,customElements.whenDefined(l.localName).then((()=>a.i|=128)),f&&f.style)){let d;typeof f.style=="string"&&(d=f.style);const v=wt(u);Se.has(v)||((w,m,y)=>{let g=Se.get(w);We&&y?(g=g||new CSSStyleSheet,typeof g=="string"?g=m:g.replaceSync(m)):g=m,Se.set(w,g)})(v,d,!!(1&u.i))}const h=a.C,p=()=>Ge(a,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){ie(h,l),a.A&&(a.A(),a.A=void 0),a.F&&a.F(l)}})(s,r,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{1&A.i||H(s),z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ln.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),On(e,o)}catch(n){return ie(n),e}},Cn=(e,t)=>t;function xo(e){return e}const re=Math.min,G=Math.max,Te=Math.round,_e=Math.floor,M=e=>({x:e,y:e}),An={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,o){return G(e,re(t,o))}function ge(e,t){return typeof e=="function"?e(t):e}function Z(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return $t(U(e))}function Rn(e,t,o){o===void 0&&(o=!1);const n=ye(e),i=Qe(e),s=Je(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=ke(r)),[r,ke(r)]}function Pn(e){const t=ke(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Mt=["right","left"],Tn=["top","bottom"],_n=["bottom","top"];function kn(e,t,o){switch(e){case"top":case"bottom":return o?t?Mt:Dt:t?Dt:Mt;case"left":case"right":return t?Tn:_n;default:return[]}}function Ln(e,t,o,n){const i=ye(e);let s=kn(Z(e),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),t&&(s=s.concat(s.map(et)))),s}function ke(e){const t=Z(e);return An[t]+e.slice(t.length)}function Fn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wt(e){return typeof e!="number"?Fn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function jt(e,t,o){let{reference:n,floating:i}=e;const s=U(t),r=Qe(t),c=Je(r),l=Z(t),a=s==="y",u=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,h=n[c]/2-i[c]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-i.width,y:f};break;default:p={x:n.x,y:n.y}}switch(ye(t)){case"start":p[r]-=h*(o&&a?-1:1);break;case"end":p[r]+=h*(o&&a?-1:1);break}return p}async function $n(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=ge(t,e),d=Wt(p),w=c[h?f==="floating"?"reference":"floating":f],m=Le(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:l})),y=f==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-b.top+d.top)/E.y,bottom:(b.bottom-m.bottom+d.bottom)/E.y,left:(m.left-b.left+d.left)/E.x,right:(b.right-m.right+d.right)/E.x}}const Dn=50,Mn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:r}=o,c=r.detectOverflow?r:{...r,detectOverflow:$n},l=await(r.isRTL==null?void 0:r.isRTL(t));let a=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=jt(a,n,l),h=n,p=0;const d={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:m,fn:y}=w,{x:g,y:E,data:b,reset:x}=await y({x:u,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:d,rects:a,platform:c,elements:{reference:e,floating:t}});u=g??u,f=E??f,d[m]={...d[m],...b},x&&p<Dn&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(a=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:f}=jt(a,h,l)),v=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:d}},Wn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:r,elements:c,middlewareData:l}=t,{element:a,padding:u=0}=ge(e,t)||{};if(a==null)return{};const f=Wt(u),h={x:o,y:n},p=Qe(i),d=Je(p),v=await r.getDimensions(a),w=p==="y",m=w?"top":"left",y=w?"bottom":"right",g=w?"clientHeight":"clientWidth",E=s.reference[d]+s.reference[p]-h[p]-s.floating[d],b=h[p]-s.reference[p],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let S=x?x[g]:0;(!S||!await(r.isElement==null?void 0:r.isElement(x)))&&(S=c.floating[g]||s.floating[d]);const N=E/2-b/2,C=S/2-v[d]/2-1,_=re(f[m],C),Ee=re(f[y],C),te=_,xe=S-v[d]-Ee,R=S/2-v[d]/2+N,ne=Ze(te,R,xe),I=!l.arrow&&ye(i)!=null&&R!==ne&&s.reference[d]/2-(R<te?_:Ee)-v[d]/2<0,$=I?R<te?R-te:R-xe:0;return{[p]:h[p]+$,data:{[p]:ne,centerOffset:R-ne-$,...I&&{alignmentOffset:$}},reset:I}}}),jn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:a}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=ge(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=Z(i),y=U(c),g=Z(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(a.floating)),b=h||(g||!v?[ke(c)]:Pn(c)),x=d!=="none";!h&&x&&b.push(...Ln(c,v,d,E));const S=[c,...b],N=await l.detectOverflow(t,w),C=[];let _=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&C.push(N[m]),f){const R=Rn(i,r,E);C.push(N[R[0]],N[R[1]])}if(_=[..._,{placement:i,overflows:C}],!C.every(R=>R<=0)){var Ee,te;const R=(((Ee=s.flip)==null?void 0:Ee.index)||0)+1,ne=S[R];if(ne&&(!(f==="alignment"?y!==U(ne):!1)||_.every(D=>U(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:R,overflows:_},reset:{placement:ne}};let I=(te=_.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:te.placement;if(!I)switch(p){case"bestFit":{var xe;const $=(xe=_.filter(D=>{if(x){const X=U(D.placement);return X===y||X==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(X=>X>0).reduce((X,Eo)=>X+Eo,0)]).sort((D,X)=>D[1]-X[1])[0])==null?void 0:xe[0];$&&(I=$);break}case"initialPlacement":I=c;break}if(i!==I)return{reset:{placement:I}}}return{}}}},Vn=new Set(["left","top"]);async function In(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=Z(o),c=ye(o),l=U(o)==="y",a=Vn.has(r)?-1:1,u=s&&l?-1:1,f=ge(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof d=="number"&&(p=c==="end"?d*-1:d),l?{x:p*u,y:h*a}:{x:h*a,y:p*u}}const Hn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:r,middlewareData:c}=t,l=await In(t,e);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},zn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:r=!0,crossAxis:c=!1,limiter:l={fn:m=>{let{x:y,y:g}=m;return{x:y,y:g}}},...a}=ge(e,t),u={x:o,y:n},f=await s.detectOverflow(t,a),h=U(Z(i)),p=$t(h);let d=u[p],v=u[h];if(r){const m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",g=d+f[m],E=d-f[y];d=Ze(g,d,E)}if(c){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=v+f[m],E=v-f[y];v=Ze(g,v,E)}const w=l.fn({...t,[p]:d,[h]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:r,[h]:c}}}}}};function Fe(){return typeof window<"u"}function le(e){return Vt(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(Vt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vt(e){return Fe()?e instanceof Node||e instanceof T(e).Node:!1}function L(e){return Fe()?e instanceof Element||e instanceof T(e).Element:!1}function V(e){return Fe()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function It(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Bn(e){return/^(table|td|th)$/.test(le(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Un=/transform|translate|scale|rotate|perspective|filter/,qn=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let tt;function nt(e){const t=L(e)?F(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!ot()&&(J(t.backdropFilter)||J(t.filter))||Un.test(t.willChange||"")||qn.test(t.contain||"")}function Xn(e){let t=q(e);for(;V(t)&&!ce(t);){if(nt(t))return t;if($e(t))return null;t=q(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function ce(e){return/^(html|body|#document)$/.test(le(e))}function F(e){return T(e).getComputedStyle(e)}function De(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||W(e);return It(t)?t.host:t}function Ht(e){const t=q(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:V(t)&&ve(t)?t:Ht(t)}function we(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ht(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),r=T(i);if(s){const c=it(r);return t.concat(r,r.visualViewport||[],ve(i)?i:[],c&&o?we(c):[])}else return t.concat(i,we(i,[],o))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zt(e){const t=F(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=V(e),s=i?e.offsetWidth:o,r=i?e.offsetHeight:n,c=Te(o)!==s||Te(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function st(e){return L(e)?e:e.contextElement}function ae(e){const t=st(e);if(!V(t))return M(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=zt(t);let r=(s?Te(o.width):o.width)/n,c=(s?Te(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Yn=M(0);function Bt(e){const t=T(e);return!ot()||!t.visualViewport?Yn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kn(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==T(e)?!1:t}function Q(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=st(e);let r=M(1);t&&(n?L(n)&&(r=ae(n)):r=ae(e));const c=Kn(s,o,n)?Bt(s):M(0);let l=(i.left+c.x)/r.x,a=(i.top+c.y)/r.y,u=i.width/r.x,f=i.height/r.y;if(s){const h=T(s),p=n&&L(n)?T(n):n;let d=h,v=it(d);for(;v&&n&&p!==d;){const w=ae(v),m=v.getBoundingClientRect(),y=F(v),g=m.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,a*=w.y,u*=w.x,f*=w.y,l+=g,a+=E,d=T(v),v=it(d)}}return Le({width:u,height:f,x:l,y:a})}function Me(e,t){const o=De(e).scrollLeft;return t?t.left+o:Q(W(e)).left+o}function Ut(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Me(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function Gn(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",r=W(n),c=t?$e(t.floating):!1;if(n===r||c&&s)return o;let l={scrollLeft:0,scrollTop:0},a=M(1);const u=M(0),f=V(n);if((f||!f&&!s)&&((le(n)!=="body"||ve(r))&&(l=De(n)),f)){const p=Q(n);a=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const h=r&&!f&&!s?Ut(r,l):M(0);return{width:o.width*a.x,height:o.height*a.y,x:o.x*a.x-l.scrollLeft*a.x+u.x+h.x,y:o.y*a.y-l.scrollTop*a.y+u.y+h.y}}function Zn(e){return Array.from(e.getClientRects())}function Jn(e){const t=W(e),o=De(e),n=e.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=G(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+Me(e);const c=-o.scrollTop;return F(n).direction==="rtl"&&(r+=G(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const qt=25;function Qn(e,t){const o=T(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,r=n.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const u=ot();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const a=Me(n);if(a<=0){const u=n.ownerDocument,f=u.body,h=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,d=Math.abs(n.clientWidth-f.clientWidth-p);d<=qt&&(s-=d)}else a<=qt&&(s+=a);return{width:s,height:r,x:c,y:l}}function eo(e,t){const o=Q(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=V(e)?ae(e):M(1),r=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,a=n*s.y;return{width:r,height:c,x:l,y:a}}function Xt(e,t,o){let n;if(t==="viewport")n=Qn(e,o);else if(t==="document")n=Jn(W(e));else if(L(t))n=eo(t,o);else{const i=Bt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(n)}function Yt(e,t){const o=q(e);return o===t||!L(o)||ce(o)?!1:F(o).position==="fixed"||Yt(o,t)}function to(e,t){const o=t.get(e);if(o)return o;let n=we(e,[],!1).filter(c=>L(c)&&le(c)!=="body"),i=null;const s=F(e).position==="fixed";let r=s?q(e):e;for(;L(r)&&!ce(r);){const c=F(r),l=nt(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ve(r)&&!l&&Yt(e,r))?n=n.filter(u=>u!==r):i=c,r=q(r)}return t.set(e,n),n}function no(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const r=[...o==="clippingAncestors"?$e(t)?[]:to(t,this._c):[].concat(o),n],c=Xt(t,r[0],i);let l=c.top,a=c.right,u=c.bottom,f=c.left;for(let h=1;h<r.length;h++){const p=Xt(t,r[h],i);l=G(p.top,l),a=re(p.right,a),u=re(p.bottom,u),f=G(p.left,f)}return{width:a-f,height:u-l,x:f,y:l}}function oo(e){const{width:t,height:o}=zt(e);return{width:t,height:o}}function io(e,t,o){const n=V(t),i=W(t),s=o==="fixed",r=Q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=M(0);function a(){l.x=Me(i)}if(n||!n&&!s)if((le(t)!=="body"||ve(i))&&(c=De(t)),n){const p=Q(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&a();s&&!n&&i&&a();const u=i&&!n&&!s?Ut(i,c):M(0),f=r.left+c.scrollLeft-l.x-u.x,h=r.top+c.scrollTop-l.y-u.y;return{x:f,y:h,width:r.width,height:r.height}}function rt(e){return F(e).position==="static"}function Kt(e,t){if(!V(e)||F(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Gt(e,t){const o=T(e);if($e(e))return o;if(!V(e)){let i=q(e);for(;i&&!ce(i);){if(L(i)&&!rt(i))return i;i=q(i)}return o}let n=Kt(e,t);for(;n&&Bn(n)&&rt(n);)n=Kt(n,t);return n&&ce(n)&&rt(n)&&!nt(n)?o:n||Xn(e)||o}const so=async function(e){const t=this.getOffsetParent||Gt,o=this.getDimensions,n=await o(e.floating);return{reference:io(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ro(e){return F(e).direction==="rtl"}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:Gn,getDocumentElement:W,getClippingRect:no,getOffsetParent:Gt,getElementRects:so,getClientRects:Zn,getDimensions:oo,getScale:ae,isElement:L,isRTL:ro};function Zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const a=e.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=a;if(c||t(),!h||!p)return;const d=_e(f),v=_e(i.clientWidth-(u+h)),w=_e(i.clientHeight-(f+p)),m=_e(u),g={rootMargin:-d+"px "+-v+"px "+-w+"px "+-m+"px",threshold:G(0,re(1,l))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!E)return r();S?r(!1,S):n=setTimeout(()=>{r(!1,1e-7)},1e3)}S===1&&!Zt(a,e.getBoundingClientRect())&&r(),E=!1}try{o=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,g)}o.observe(e)}return r(!0),s}function co(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,a=st(e),u=i||s?[...a?we(a):[],...t?we(t):[]]:[];u.forEach(m=>{i&&m.addEventListener("scroll",o,{passive:!0}),s&&m.addEventListener("resize",o)});const f=a&&c?lo(a,o):null;let h=-1,p=null;r&&(p=new ResizeObserver(m=>{let[y]=m;y&&y.target===a&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),o()}),a&&!l&&p.observe(a),t&&p.observe(t));let d,v=l?Q(e):null;l&&w();function w(){const m=Q(e);v&&!Zt(v,m)&&o(),v=m,d=requestAnimationFrame(w)}return o(),()=>{var m;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),f?.(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(d)}}const ao=Hn,fo=zn,uo=jn,ho=Wn,po=(e,t,o)=>{const n=new Map,i={platform:lt,...o},s={...i.platform,_c:n};return Mn(e,t,{...i,platform:s})};var be;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(be||(be={}));function Jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const mo=/transform|translate|scale|rotate|perspective|filter/,go=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let ct;function yo(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof Jt(o).Element)?Jt(n=e).getComputedStyle(n):e);var o,n;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(ee(t.backdropFilter)||ee(t.filter)))||mo.test(t.willChange||"")||go.test(t.contain||"")}function vo(e){return(function(t){for(let o=t;o;o=at(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=at(t);o;o=at(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||yo(n)||o.tagName==="BODY"))return o}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const fe=class fe{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=co(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[ao(this.offset)],o=uo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===be.POPOVER,i=fo({padding:this.offset,mainAxis:this.config.elementType===be.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(ho({element:this.arrowEl,padding:this.offset})),po(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...lt,getOffsetParent:s=>lt.getOffsetParent(s,vo)}}).then((({x:s,y:r,middlewareData:c,placement:l})=>{if(n){const h=l.startsWith("left")||l.startsWith("right"),p=l.startsWith("top")||l.startsWith("bottom"),d=this.isAnchorInViewport(),v=!!p||(h?d:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=l,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const a=l.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[a],{arrowZIndex:f}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const h=this.arrowEl.offsetWidth,{x:p,y:d}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(a)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(a)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:d!==null?`${d}px`:"",right:"",bottom:"",[u]:-h/2+"px",transform:"rotate(45deg)",zIndex:`${f}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const r=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(r,10),l=window.getComputedStyle?.(s).position??"";(r===""||r==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,l!==""&&l!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),fe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=fe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),fe.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};fe.currentFloatingElements=new Map;let ft=fe;const Qt=Nn(class extends ht{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const o=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!o&&this.floatingElementManager.isVisible()?this.onPopoverShow():o&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new ft(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:be.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],o=tn(e);t.push(...o);const n=this._el.shadowRoot?.querySelector("slot:not([name])");n&&n.assignedElements({flatten:!0}).forEach((i=>{const s=tn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const r=i.compareDocumentPosition(s),c=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let n=document.activeElement;if(n===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(n=s)}const i=this.focusableElements.indexOf(n)!==-1;e.shiftKey?n!==t&&i||(e.preventDefault(),o&&o.focus()):n!==o&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return B(Cn,{key:"da6cbab41d3390a940444809d9fe809225c9426e"},B("slot",{key:"5a5e5f72ab9c793e02b7bd633381363ab37cbf22",name:"anchor"}),B("div",{key:"49ab365961e8a3d9bf0e6ac67f2c73fda1eb7bb3",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},B("span",{key:"9815148f291ebca88b4a2bbe09b0e93fcbaab4a7",id:"arrow"}),B("div",{key:"b6d83da9bd180933b5f2453f3e66f66f692e35c1"},B("slot",{key:"90aaeadfe9d09ebdd6534afa762b35c38a5cc57f"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),en=e=>{if(!(e instanceof ht)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const o=e.tabIndex;e.tabIndex=-1,e.focus();const n=document.activeElement===e;return e.tabIndex=o,n&&e.blur(),n}catch{return!1}},tn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>en(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];en(e)&&o.push(e);let n=t.nextNode();for(;n!==null;)o.push(n),n=t.nextNode();return o};function nn(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,Qt))}))}nn();const wo=Qt,bo=nn;Y.GidsPopover=wo,Y.defineCustomElement=bo,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})}));
|