@ganpatiinfo/gids-core-web 5.0.0 → 6.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.
@@ -1 +1 @@
1
- import{h as t,t as i,p as n,H as e,F as a}from"./p-ibikYq-w.js";import{g as o}from"./p-B2zUuNXz.js";import{g as s,a as r}from"./p-CVtNa0cL.js";import{GidsSnackbarContainerWebUtils as l,GidsNotificationContainerWebUtils as m,GidsOverlayProviderWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-veoOgDXg.js";import{G as p}from"./p-CWdkmFbc.js";const{getGidsSnackbarContainerClassNames:f,getSnackbarContainerIconNames:u}=l,g=({appearance:i="default",children:n,button:e,class:a,...o})=>{const s=u(i);return t("div",{...o,class:f({appearance:i},a)},t("div",{class:"gids-snackbar-container__content"},"default"!==i&&null!=s?t(d,{name:s,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,"string"==typeof n?t("p",null,n):n),e)},{getGidsNotificationContainerClassNames:h,getNotificationContainerIconNames:v}=m,b=({notificationTitle:i,children:n,button:e,appearance:a="default",pronunciation:o="standard",onCloseNotificationClick:s,class:r,...l})=>{const m=v(a);return t("div",{class:h({appearance:a},r),...l},"default"!==a&&m?t("div",{class:"gids-notification-container__leading-icon-wrapper"},t(d,{size:"md",name:m,alt:"",appearance:"filled"})):null,t("div",{class:"gids-notification-container__content-wrapper"},t("div",{class:"gids-notification-container__top-content"},t("div",{class:"gids-notification-container__text-content"},null!=i&&""!==i?t("span",{class:"gids-notification-container__title"},i):null,n?"string"==typeof n?t("p",null,n):n:null),"standard"===o?t("div",{class:"gids-notification-container__cross-btn-wrapper"},t(p,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:t(d,{name:"cross",size:"md",appearance:"regular"}),onClick:s})):null),e?t("div",{class:"gids-notification-container__bottom-content"},e):null))},{getComponentClasses:y,getComponentStackClasses:k}=c,w=n(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(i,n)=>{const{id:e,message:a,appearance:o,buttonLabel:s,onButtonClick:r}=i;return console.log("_renderSnackbar_called"),t(g,{key:e,class:n,children:a,appearance:o,button:null!=s&&""!==s?t(p,{appearance:"subtle",onClick:r},s):void 0})},this._renderNotification=(i,n)=>{const{id:e,notificationTitle:a,message:o,pronunciation:s,appearance:r,buttonLabel:l,onButtonClick:m,timerInMs:c}=i;return t(b,{key:e,class:n,notificationTitle:a,children:o,pronunciation:s,appearance:r,onCloseNotificationClick:()=>this.removeComponent(i,c||0,!0),button:null!=l&&""!==l?t(p,{appearance:"default",size:"sm",onClick:m},l):void 0})},this._renderComponent=t=>{const{componentName:i,position:n="bottom-center",id:e}=t,a=y({position:n,id:e,exitingComponents:this._exitingComponents});return console.log("_renderComponent_called",i),null==i||"snackbar"===i?this._renderSnackbar(t,a):"notification"===i?this._renderNotification(t,a):null}}connectedCallback(){const t=o();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t),this._parentOverlayProvider=s(this._el)}_isRoot(){return null===this._parentOverlayProvider}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(t){return new Promise((i=>{const n=setTimeout((()=>(clearTimeout(n),i({isTimeout:!0}))),t)}))}async _queueSnackbar(t){const{appearance:i,message:n,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r}=t,l={id:""+(Date.now()+Math.random()),message:n,appearance:i,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r};console.log("component_1",l),this._componentQueue=[...this._componentQueue,l],this.processSingleComponentQueue()}async _queueNotification(t){const{appearance:i,notificationTitle:n,pronunciation:e,message:a,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m}=t,c={id:""+(Date.now()+Math.random()),notificationTitle:n,message:a,pronunciation:e,appearance:i,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(t){if(await this._isRoot()){const{componentName:i}=t;null!=i&&"snackbar"!==i||this._queueSnackbar(t),"notification"===i&&this._queueNotification(t)}else(await this.getRootOverlayProvider()).queueComponent(t)}async removeComponent(t,i,n){return n||await this.autoHide(i),this._exitingComponents=[...this._exitingComponents,t.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==t.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==t.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(0===this._componentQueue.length)return;const t=this._componentQueue[0];if(!t)return;this._allowedComponentQueue=[t],await new Promise((t=>requestAnimationFrame((()=>t()))));const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const t=this._componentQueue;0!==t.length&&(this._allowedComponentQueue=t,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const i=this._allowedComponentQueue[0]?.position||"bottom-center";return t(a,{key:"cc411e4a7fd0174d11d189a107dc1558a93c8ea2"},t("slot",{key:"724e2c2ccdd2e3e7917808906d7308067da2ae87"}),this._isRoot()?t("div",{class:k({position:i})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function C(){"undefined"!=typeof customElements&&["gids-overlay-provider"].forEach((t=>{"gids-overlay-provider"===t&&(customElements.get(i(t))||customElements.define(i(t),w))}))}C();const _=w,N=C;export{_ as GidsOverlayProvider,N as defineCustomElement}
1
+ import{h as t,t as i,p as n,H as e,F as a}from"./p-ibikYq-w.js";import{g as o}from"./p-B2zUuNXz.js";import{g as s,a as r}from"./p-CVtNa0cL.js";import{GidsSnackbarContainerWebUtils as l,GidsNotificationContainerWebUtils as m,GidsOverlayProviderWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{G as d}from"./p-veoOgDXg.js";import{G as p}from"./p-CWdkmFbc.js";const{getGidsSnackbarContainerClassNames:f,getSnackbarContainerIconNames:u}=l,g=({appearance:i="default",children:n,button:e,class:a,...o})=>{const s=u(i);return t("div",{...o,class:f({appearance:i},a)},t("div",{class:"gids-snackbar-container__content"},"default"!==i&&null!=s?t(d,{name:s,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,"string"==typeof n?t("p",null,n):n),e)},{getGidsNotificationContainerClassNames:h,getNotificationContainerIconNames:b}=m,v=({notificationTitle:i,children:n,button:e,appearance:a="default",pronunciation:o="standard",onCloseNotificationClick:s,class:r,...l})=>{const m=b(a);return t("div",{class:h({appearance:a},r),...l},"default"!==a&&m?t("div",{class:"gids-notification-container__leading-icon-wrapper"},t(d,{size:"md",name:m,alt:"",appearance:"filled"})):null,t("div",{class:"gids-notification-container__content-wrapper"},t("div",{class:"gids-notification-container__top-content"},t("div",{class:"gids-notification-container__text-content"},null!=i&&""!==i?t("span",{class:"gids-notification-container__title"},i):null,n?"string"==typeof n?t("p",null,n):n:null),"standard"===o?t("div",{class:"gids-notification-container__cross-btn-wrapper"},t(p,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:t(d,{name:"cross",size:"md",appearance:"regular"}),onClick:s})):null),e?t("div",{class:"gids-notification-container__bottom-content"},e):null))},{getComponentClasses:y,getComponentStackClasses:k}=c,w=n(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(i,n)=>{const{id:e,message:a,appearance:o,buttonLabel:s,onButtonClick:r}=i;return t(g,{key:e,class:n,children:a,appearance:o,button:null!=s&&""!==s?t(p,{appearance:"subtle",onClick:r},s):void 0})},this._renderNotification=(i,n)=>{const{id:e,notificationTitle:a,message:o,pronunciation:s,appearance:r,buttonLabel:l,onButtonClick:m,timerInMs:c}=i;return t(v,{key:e,class:n,notificationTitle:a,children:o,pronunciation:s,appearance:r,onCloseNotificationClick:()=>this.removeComponent(i,c||0,!0),button:null!=l&&""!==l?t(p,{appearance:"default",size:"sm",onClick:m},l):void 0})},this._renderComponent=t=>{const{componentName:i,position:n="bottom-center",id:e}=t,a=y({position:n,id:e,exitingComponents:this._exitingComponents});return null==i||"snackbar"===i?this._renderSnackbar(t,a):"notification"===i?this._renderNotification(t,a):null}}connectedCallback(){const t=o();void 0!==t&&this._el.shadowRoot?.adoptedStyleSheets.push(t),this._parentOverlayProvider=s(this._el)}_isRoot(){return null===this._parentOverlayProvider}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(t){return new Promise((i=>{const n=setTimeout((()=>(clearTimeout(n),i({isTimeout:!0}))),t)}))}async _queueSnackbar(t){const{appearance:i,message:n,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r}=t,l={id:""+(Date.now()+Math.random()),message:n,appearance:i,buttonLabel:e,onButtonClick:a,position:o,componentName:s,...r};this._componentQueue=[...this._componentQueue,l],this.processSingleComponentQueue()}async _queueNotification(t){const{appearance:i,notificationTitle:n,pronunciation:e,message:a,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m}=t,c={id:""+(Date.now()+Math.random()),notificationTitle:n,message:a,pronunciation:e,appearance:i,buttonLabel:o,onButtonClick:s,position:r,componentName:l,...m};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(t){if(await this._isRoot()){const{componentName:i}=t;null!=i&&"snackbar"!==i||this._queueSnackbar(t),"notification"===i&&this._queueNotification(t)}else(await this.getRootOverlayProvider()).queueComponent(t)}async removeComponent(t,i,n){return n||await this.autoHide(i),this._exitingComponents=[...this._exitingComponents,t.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((i=>i.id!==t.id)),this._exitingComponents=this._exitingComponents.filter((i=>i!==t.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(0===this._componentQueue.length)return;const t=this._componentQueue[0];if(!t)return;this._allowedComponentQueue=[t],await new Promise((t=>requestAnimationFrame((()=>t()))));const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const t=this._componentQueue;0!==t.length&&(this._allowedComponentQueue=t,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=r({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const i=this._allowedComponentQueue[0]?.position||"bottom-center";return t(a,{key:"90aa53804ede45cefeb6439d7d5466fbf3ce9bd9"},t("slot",{key:"5705eaedb944a16514dc3570258ec67d60ad82c2"}),this._isRoot()?t("div",{class:k({position:i})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function C(){"undefined"!=typeof customElements&&["gids-overlay-provider"].forEach((t=>{"gids-overlay-provider"===t&&(customElements.get(i(t))||customElements.define(i(t),w))}))}C();const _=w,N=C;export{_ as GidsOverlayProvider,N as defineCustomElement}
@@ -1 +1 @@
1
- import{h as e,t,p as s,H as i,c as n,f as a,F as r}from"./p-ibikYq-w.js";import{GidsStrengthMeterWebUtils as d,GidsRequirementsMeterLabelWebUtils as l,GidsRequirementsMeterWebUtils as o,generateId as h,GidsPasswordFieldWebUtils as c}from"@ganpatiinfo/gids-web-shared";import{g as u}from"./p-B2zUuNXz.js";import{G as m,a as f}from"./p-DijVkS9b.js";import{G as g}from"./p-CWdkmFbc.js";import{minLengthRuleCanBeApplied as p,getMeterRulesFromRequirements as b,getDefaultRulesAndRequirementsForMeters as x}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils.js";import{GidsStrengthMeterCommonUtils as q,GidsRequirementsMeterLabelCommonUtils as R,GidsRequirementsMeterCommonUtils as w}from"@ganpatiinfo/gids-core-shared";import{minLengthRuleCanBeApplied as v}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils";import{G as y}from"./p-veoOgDXg.js";import{d as L}from"./p-BplPYg8z.js";import{d as M}from"./p-BVh4zbX4.js";const{getGidsStrengthMeterClassNames:k}=d,{getStrengthMeterScore:C,getColorModifierByScore:S}=q,P=({text:t,textMinLength:s,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const a=(t,s,i)=>e("div",{key:t,class:["gids-strength-meter__strength-"+t,i?"is-active":"",i?s:""].filter(Boolean).join(" ")});return i.length>0?e("div",{class:k(n)},(()=>{const e=i.length,n=C({text:t,textMinLength:s,meterRules:i}),r=S({textScore:n,maxScore:e});return Array.from({length:e},((e,t)=>{const d=t+1,l=d<=n;return"include-min-length"===i[d]?v({requirementRule:"include-min-length",textMinLength:s})?a(d,r,l):null:a(d,r,l)}))})()):null},{getGidsRequirementsMeterLabelClassNames:_}=l,{getRequirementsMeterLabelLeadingIcon:F}=R,G=t=>{const{label:s,status:i="default",leadingIconVisible:n=!0,class:a}=t,r=F(i);return e("div",{class:_({status:i},a)},n&&i&&r?e(y,{name:r,size:"sm",appearance:"filled"}):null,s&&""!==s?e("span",null,s):null)},{checkRequirementRuleSatisfied:T}=w,{getGidsRequirementsMeterClassNames:j}=o,B=({requirements:t=[],text:s,textMinLength:i,class:n})=>{const a=(t,s)=>e(G,{status:s?"success":"error",label:t.requirementText});return e("div",{class:j(n)},(console.log("requirements",t),t.map((e=>{if(e?.requirementText&&e?.requirementRule){const t=T({rule:e.requirementRule,textMinLength:i,text:s});return"include-min-length"===e.requirementRule?p({requirementRule:e.requirementRule,textMinLength:i})?a(e,t):null:a(e,t)}return null}))))},{inputToGidsFieldStatusForPassword:E}=c,z=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsPasswordFieldClear=n(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=n(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=h(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const e=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=null!=e?.value&&""!==e.value&&!1===this.isPasswordRevealed,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const e=this.requirements;return!!(e&&e.length>0)},this._handleRequirementsMeter=()=>{const e=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=e?b(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{a(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){void 0===e&&(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=u();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:t,...s}=this.inputProps??{},i=t??this.#e,n=this.showClearButton&&void 0!==this.value&&this.value.length>0,a=this.showRevealPasswordButton,d={...s},l=d?.placeholder&&""!=d.placeholder?d.placeholder:"Enter password",o=this.isPasswordRevealed,h=this.meterRules,c=void 0!==this.textMinLength?this.textMinLength:8;return e(r,{key:"84bc020da1e496c4127ef65e4f7432b1ffb9654c"},e("gids-field",{key:"484452f7974320a9aa937435cfb2a38027de9bc8",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:E(this.status)},e(m,{key:"d89c25ed9f385009ce353bb5ceee083f25b6a685",slot:"label",disabled:this.disabled,info:e("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),e("gids-input",{key:"83c256b3a95e253c9fed98c31b28350dfaa91f01",ref:e=>this.#t=e,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:{...d,placeholder:l,type:o?"text":"password",id:i,maxLength:this.maxLength}},e("slot",{key:"7c60013a0c976f72e68c7055885969d0dfcc86bc",name:"leadingIcon"}),e("slot",{key:"d04ba13ed7d1188085cee4f77f2ead6f5d63688e",name:"leadingAccessory"}),e("div",{key:"a527bcf421410accbb74effe758eee728c152ac8",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&e(f,{key:"9a2aa3cd9bd7cb11dc48976e7bafa1ac9c86fde8",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&e(g,{key:"d1b11a62438c98f74ce0c52b49ebd72727a42305",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},o?"Hide":"Show")))),e("div",{key:"2ba8e5b0e4c3fef3c19d151455cdefea6c619126",class:"gids-password-field__meters-container"},e(P,{key:"57b83f9ac75d5fac702b7992863ea6603fc48dd1",meterRules:h,text:this.value,textMinLength:c}),e(B,{key:"018f5c35f66b3d80aade1b827b323274b27fd7bb",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function O(){"undefined"!=typeof customElements&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(t(e))||customElements.define(t(e),z);break;case"gids-field":customElements.get(t(e))||L();break;case"gids-input":customElements.get(t(e))||M()}}))}O();const I=z,V=O;export{I as GidsPasswordField,V as defineCustomElement}
1
+ import{h as e,t,p as s,H as i,c as n,f as r,F as a}from"./p-ibikYq-w.js";import{GidsStrengthMeterWebUtils as l,GidsRequirementsMeterLabelWebUtils as d,GidsRequirementsMeterWebUtils as o,generateId as h,GidsPasswordFieldWebUtils as u}from"@ganpatiinfo/gids-web-shared";import{g as c}from"./p-B2zUuNXz.js";import{G as m,a as g}from"./p-DijVkS9b.js";import{G as f}from"./p-CWdkmFbc.js";import{minLengthRuleCanBeApplied as p,getMeterRulesFromRequirements as b,getDefaultRulesAndRequirementsForMeters as x}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils.js";import{GidsStrengthMeterCommonUtils as q,GidsRequirementsMeterLabelCommonUtils as R,GidsRequirementsMeterCommonUtils as w}from"@ganpatiinfo/gids-core-shared";import{minLengthRuleCanBeApplied as v}from"@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils";import{G as y}from"./p-veoOgDXg.js";import{d as L}from"./p-BplPYg8z.js";import{d as M}from"./p-BVh4zbX4.js";const{getGidsStrengthMeterClassNames:k}=l,{getStrengthMeterScore:C,getColorModifierByScore:S}=q,P=({text:t,textMinLength:s,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:n})=>{const r=(t,s,i)=>e("div",{key:t,class:["gids-strength-meter__strength-"+t,i?"is-active":"",i?s:""].filter(Boolean).join(" ")});return i.length>0?e("div",{class:k(n)},(()=>{const e=i.length,n=C({text:t,textMinLength:s,meterRules:i}),a=S({textScore:n,maxScore:e});return Array.from({length:e},((e,t)=>{const l=t+1,d=l<=n;return"include-min-length"===i[l]?v({requirementRule:"include-min-length",textMinLength:s})?r(l,a,d):null:r(l,a,d)}))})()):null},{getGidsRequirementsMeterLabelClassNames:_}=d,{getRequirementsMeterLabelLeadingIcon:F}=R,G=t=>{const{label:s,status:i="default",leadingIconVisible:n=!0,class:r}=t,a=F(i);return e("div",{class:_({status:i},r)},n&&i&&a?e(y,{name:a,size:"sm",appearance:"filled"}):null,s&&""!==s?e("span",null,s):null)},{checkRequirementRuleSatisfied:T}=w,{getGidsRequirementsMeterClassNames:j}=o,B=({requirements:t=[],text:s,textMinLength:i,class:n})=>{const r=(t,s)=>e(G,{status:s?"success":"error",label:t.requirementText});return e("div",{class:j(n)},t.map((e=>{if(null!=e?.requirementText&&null!=e?.requirementRule){const t=T({rule:e.requirementRule,textMinLength:i,text:s});return"include-min-length"===e.requirementRule?!0===p({requirementRule:e.requirementRule,textMinLength:i})?r(e,t):null:r(e,t)}return null})))},{inputToGidsFieldStatusForPassword:E}=u,z=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.gidsPasswordFieldClear=n(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=n(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=h(),this._handleDismiss=()=>{const e=this.#t?.querySelector("input.gids-input__control");e&&(e.value="",e.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const e=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=null!=e?.value&&""!==e.value&&!1===this.isPasswordRevealed,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=e=>{this.value=e.target?.value},this._handleInputFocusAndBlur=e=>{this._el.dispatchEvent(new FocusEvent(e.type,{relatedTarget:e.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const e=this.requirements;return!!(e&&e.length>0)},this._handleRequirementsMeter=()=>{const e=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=e?b(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{r(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){void 0===e&&(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=x(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=c();void 0!==e&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:t,...s}=this.inputProps??{},i=t??this.#e,n=this.showClearButton&&void 0!==this.value&&this.value.length>0,r=this.showRevealPasswordButton,l={...s},d=void 0!==l?.placeholder&&null!==l.placeholder&&""!=l.placeholder?l.placeholder:"Enter password",o=this.isPasswordRevealed,h=this.meterRules,u=void 0!==this.textMinLength?this.textMinLength:8;return e(a,{key:"b83ca111267e69120811c23a02754fc2f3132131"},e("gids-field",{key:"b10ea7b36a8f7daa4b5877e541ffa468ca06c474",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:E(this.status)},e(m,{key:"04f8c7ee920968585e77dff7e67494547285b6a6",slot:"label",disabled:this.disabled,info:e("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),e("gids-input",{key:"2892c5cda5ac6125e1b1c16195cbe45fed9ed0cd",ref:e=>this.#t=e,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:{...l,placeholder:d,type:o?"text":"password",id:i,maxLength:this.maxLength}},e("slot",{key:"e6690ff215ac059385463b250d4b75876af23b6b",name:"leadingIcon"}),e("slot",{key:"a22761b031bc9e5d7d115d2c82969685dc4ec150",name:"leadingAccessory"}),e("div",{key:"6e4ddee96b624e07453b06966d02fe22060bdddf",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},n&&e(g,{key:"1499342b7785379b68472713b19f2846cb39315c",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),r&&e(f,{key:"b309f288c0e7108f0896de407e1b8b4b6cd1f628",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},o?"Hide":"Show")))),e("div",{key:"7cbcb6a793de21d9f990b26ee0ff956a73d3f20e",class:"gids-password-field__meters-container"},e(P,{key:"f0085914442e068821fc01304e75a0fab47d3dd5",meterRules:h,text:this.value,textMinLength:u}),e(B,{key:"832be45d45074a520896001b80a20a0fd54695b7",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:u})))}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 O(){"undefined"!=typeof customElements&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(t(e))||customElements.define(t(e),z);break;case"gids-field":customElements.get(t(e))||L();break;case"gids-input":customElements.get(t(e))||M()}}))}O();const I=z,V=O;export{I as GidsPasswordField,V as defineCustomElement}
@@ -1 +1 @@
1
- import{t as s,p as t,H as e,h as i}from"./p-ibikYq-w.js";import{g as r}from"./p-B2zUuNXz.js";import{GidsScrimWebUtils as o}from"@ganpatiinfo/gids-web-shared";const{getGidsScrimClassNames:c}=o,n=t(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const s=r();void 0!==s&&this._el.shadowRoot?.adoptedStyleSheets.push(s)}render(){return i("div",{key:"befcd12706dbf780586972ee76bda7d7a64e8702",class:c(this.extraClasses)},i("slot",{key:"a7bf7c4732706d7bc954d5160b6154868a785913"}))}get _el(){return this}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(calc(var(24px) / 2))}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"]}]);function a(){"undefined"!=typeof customElements&&["gids-scrim"].forEach((t=>{"gids-scrim"===t&&(customElements.get(s(t))||customElements.define(s(t),n))}))}a();const d=n,l=a;export{d as GidsScrim,l as defineCustomElement}
1
+ import{t as s,p as t,H as e,h as i}from"./p-ibikYq-w.js";import{g as c}from"./p-B2zUuNXz.js";import{GidsScrimWebUtils as r}from"@ganpatiinfo/gids-web-shared";const{getGidsScrimClassNames:o}=r,n=t(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const s=c();void 0!==s&&this._el.shadowRoot?.adoptedStyleSheets.push(s)}render(){return i("div",{key:"e00fc92fcb3ec6168367571260a8bfabc41d620a",class:o(this.extraClasses)},i("slot",{key:"c5dbff95f6d3b14ec79fa7102ad3948fcbc94965"}))}get _el(){return this}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"]}]);function a(){"undefined"!=typeof customElements&&["gids-scrim"].forEach((t=>{"gids-scrim"===t&&(customElements.get(s(t))||customElements.define(s(t),n))}))}a();const d=n,l=a;export{d as GidsScrim,l as defineCustomElement}
@@ -1,6 +1,6 @@
1
1
  import { type VNode } from '../../../stencil-public-runtime';
2
2
  import { FunctionalComponent, JSXBase } from '../../../stencil-public-runtime';
3
- import { GidsHeadingCommonProps } from '@ganpatiinfo/gids-core-shared';
4
- export interface GidsHeadingProps extends GidsHeadingCommonProps<VNode, VNode | string>, Omit<JSXBase.IntrinsicElements['div'], 'onClick'> {
3
+ import { GidsHeadingWebProps } from '@ganpatiinfo/gids-web-shared';
4
+ export interface GidsHeadingProps extends GidsHeadingWebProps<VNode, VNode | string>, Omit<JSXBase.IntrinsicElements['div'], 'onClick'> {
5
5
  }
6
6
  export declare const GidsHeading: FunctionalComponent<GidsHeadingProps>;
@@ -1,10 +1,9 @@
1
1
  import { type GidsSearchBarWebProps } from '@ganpatiinfo/gids-web-shared';
2
2
  import { JSXBase, VNode } from '../../../stencil-public-runtime';
3
3
  import { GidsTextField } from '../../webComponents/GidsTextField/GidsTextField.js';
4
- type GidsTextFieldBaseProps = JSXBase.HTMLAttributes<typeof GidsTextField>;
4
+ export type GidsTextFieldBaseProps = JSXBase.HTMLAttributes<typeof GidsTextField>;
5
5
  export interface GidsSearchBarProps extends GidsSearchBarWebProps<VNode, Omit<JSXBase.IntrinsicElements['input'], 'ref'>>, Pick<GidsTextFieldBaseProps, 'onChange' | 'onInput' | 'onFocus' | 'onBlur'> {
6
6
  wrapperClass?: string;
7
7
  onGidsSearchBarClear?: (event: CustomEvent<void>) => void;
8
8
  }
9
9
  export declare const GidsSearchBar: (props: GidsSearchBarProps) => any;
10
- export {};
@@ -0,0 +1,5 @@
1
+ import { FunctionalComponent } from '../../../stencil-public-runtime';
2
+ import { JSXBase, VNode } from '../../../stencil-public-runtime';
3
+ import { GidsSideMenuWebProps } from '@ganpatiinfo/gids-web-shared';
4
+ export type GidsSideMenuProps = GidsSideMenuWebProps<VNode> & Omit<JSXBase.IntrinsicElements['div'], 'children' | 'onClick'>;
5
+ export declare const GidsSideMenu: FunctionalComponent<GidsSideMenuProps>;
@@ -0,0 +1,8 @@
1
+ import { VNode } from '../../../stencil-public-runtime';
2
+ import { GidsSideMenuHeaderWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ import { FunctionalComponent, JSXBase } from '../../../stencil-public-runtime';
4
+ import { GidsSearchBarProps } from '../GidsSearchBar/GidsSearchBar.js';
5
+ export interface GidsSideMenuHeaderProps extends GidsSideMenuHeaderWebProps<VNode, VNode, Omit<JSXBase.IntrinsicElements['input'], 'ref'>>, Pick<GidsSearchBarProps, 'wrapperClass' | 'onGidsSearchBarClear' | 'onChange' | 'onInput' | 'onFocus' | 'onBlur'> {
6
+ headerClasses?: string;
7
+ }
8
+ export declare const GidsSideMenuHeader: FunctionalComponent<GidsSideMenuHeaderProps>;
@@ -0,0 +1,7 @@
1
+ import { type GidsSideNavigationWebProps } from '@ganpatiinfo/gids-web-shared';
2
+ import { FunctionalComponent, JSXBase, VNode } from '../../../stencil-public-runtime';
3
+ import { GidsSideMenuHeaderProps } from '../GidsSideMenuHeader/GidsSideMenuHeader.js';
4
+ export interface GidsSideNavigationProps extends GidsSideNavigationWebProps<VNode, VNode, VNode, Omit<JSXBase.IntrinsicElements['input'], 'ref'>>, Pick<GidsSideMenuHeaderProps, 'headerClasses' | 'wrapperClass' | 'onGidsSearchBarClear' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
5
+ extraSideNavigationClasses?: string;
6
+ }
7
+ export declare const GidsSideNavigation: FunctionalComponent<GidsSideNavigationProps>;
@@ -1,5 +1,5 @@
1
1
  import { GidsScrimWebProps } from '@ganpatiinfo/gids-web-shared';
2
- export declare class GidsIconWebComponent implements Omit<GidsScrimWebProps<never>, 'children'> {
2
+ export declare class GidsScrim implements Omit<GidsScrimWebProps<never>, 'children'> {
3
3
  extraClasses?: string | undefined;
4
4
  private _el;
5
5
  connectedCallback(): void;
@@ -1,12 +1,12 @@
1
- import { C as o, H as t, f as a, R as d } from "./p-ibikYq-w-BsGxk8ro.js";
2
- import { i as n } from "./p-B2zUuNXz-BLBgQDu7.js";
1
+ import { C as o, H as e, f as n, R as d } from "./p-ibikYq-w-BsGxk8ro.js";
2
+ import { i as a } from "./p-B2zUuNXz-BLBgQDu7.js";
3
3
  import { d as c } from "./p-veoOgDXg-DElc87c0.js";
4
- const e = o(class extends a {
4
+ const t = o(class extends n {
5
5
  constructor(i) {
6
6
  super(), i !== !1 && this.__registerHost(), this.__attachShadow();
7
7
  }
8
8
  connectedCallback() {
9
- const i = n();
9
+ const i = a();
10
10
  i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
11
11
  }
12
12
  render() {
@@ -16,16 +16,16 @@ const e = o(class extends a {
16
16
  return this;
17
17
  }
18
18
  static get style() {
19
- return ".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%)}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
19
+ return ".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
20
20
  }
21
21
  }, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
22
22
  function s() {
23
23
  typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
24
- i === "gids-icon" && (customElements.get(t(i)) || customElements.define(t(i), e));
24
+ i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), t));
25
25
  }));
26
26
  }
27
27
  s();
28
- const l = e, m = s;
28
+ const l = t, m = s;
29
29
  export {
30
30
  l as GidsIcon,
31
31
  m as defineCustomElement
@@ -125,13 +125,13 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
125
125
  constructor(t) {
126
126
  super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this._parentOverlayProvider = null, this._componentQueue = [], this._allowedComponentQueue = [], this._exitingComponents = [], this._renderSnackbar = (e, n) => {
127
127
  const { id: i, message: a, appearance: r, buttonLabel: s, onButtonClick: m } = e;
128
- return console.log("_renderSnackbar_called"), o(R, { key: i, class: n, children: a, appearance: r, button: s != null && s !== "" ? o(u, { appearance: "subtle", onClick: m }, s) : void 0 });
128
+ return o(R, { key: i, class: n, children: a, appearance: r, button: s != null && s !== "" ? o(u, { appearance: "subtle", onClick: m }, s) : void 0 });
129
129
  }, this._renderNotification = (e, n) => {
130
130
  const { id: i, notificationTitle: a, message: r, pronunciation: s, appearance: m, buttonLabel: c, onButtonClick: l, timerInMs: d } = e;
131
131
  return o(E, { key: i, class: n, notificationTitle: a, children: r, pronunciation: s, appearance: m, onCloseNotificationClick: () => this.removeComponent(e, d || 0, !0), button: c != null && c !== "" ? o(u, { appearance: "default", size: "sm", onClick: l }, c) : void 0 });
132
132
  }, this._renderComponent = (e) => {
133
133
  const { componentName: n, position: i = "bottom-center", id: a } = e, r = B({ position: i, id: a, exitingComponents: this._exitingComponents });
134
- return console.log("_renderComponent_called", n), n == null || n === "snackbar" ? this._renderSnackbar(e, r) : n === "notification" ? this._renderNotification(e, r) : null;
134
+ return n == null || n === "snackbar" ? this._renderSnackbar(e, r) : n === "notification" ? this._renderNotification(e, r) : null;
135
135
  };
136
136
  }
137
137
  connectedCallback() {
@@ -151,7 +151,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
151
151
  }
152
152
  async _queueSnackbar(t) {
153
153
  const { appearance: e, message: n, buttonLabel: i, onButtonClick: a, position: r, componentName: s, ...m } = t, c = { id: "" + (Date.now() + Math.random()), message: n, appearance: e, buttonLabel: i, onButtonClick: a, position: r, componentName: s, ...m };
154
- console.log("component_1", c), this._componentQueue = [...this._componentQueue, c], this.processSingleComponentQueue();
154
+ this._componentQueue = [...this._componentQueue, c], this.processSingleComponentQueue();
155
155
  }
156
156
  async _queueNotification(t) {
157
157
  const { appearance: e, notificationTitle: n, pronunciation: i, message: a, buttonLabel: r, onButtonClick: s, position: m, componentName: c, ...l } = t, d = { id: "" + (Date.now() + Math.random()), notificationTitle: n, message: a, pronunciation: i, appearance: e, buttonLabel: r, onButtonClick: s, position: m, componentName: c, ...l };
@@ -187,7 +187,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
187
187
  }
188
188
  render() {
189
189
  const t = this._allowedComponentQueue[0]?.position || "bottom-center";
190
- return o(w, { key: "cc411e4a7fd0174d11d189a107dc1558a93c8ea2" }, o("slot", { key: "724e2c2ccdd2e3e7917808906d7308067da2ae87" }), this._isRoot() ? o("div", { class: G({ position: t }) }, [...this._allowedComponentQueue].reverse().map(((e) => this._renderComponent(e)))) : null);
190
+ return o(w, { key: "90aa53804ede45cefeb6439d7d5466fbf3ce9bd9" }, o("slot", { key: "5705eaedb944a16514dc3570258ec67d60ad82c2" }), this._isRoot() ? o("div", { class: G({ position: t }) }, [...this._allowedComponentQueue].reverse().map(((e) => this._renderComponent(e)))) : null);
191
191
  }
192
192
  get _el() {
193
193
  return this;
@@ -141,13 +141,13 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
141
141
  return i("div", { class: ne({ status: s }, a) }, n && s && r ? i(j, { name: r, size: "sm", appearance: "filled" }) : null, t && t !== "" ? i("span", null, t) : null);
142
142
  }, { checkRequirementRuleSatisfied: ue } = V, { getGidsRequirementsMeterClassNames: oe } = Q, de = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
143
143
  const a = (r, l) => i(ae, { status: l ? "success" : "error", label: r.requirementText });
144
- return i("div", { class: oe(n) }, (console.log("requirements", e), e.map(((r) => {
145
- if (r?.requirementText && r?.requirementRule) {
144
+ return i("div", { class: oe(n) }, e.map(((r) => {
145
+ if (r?.requirementText != null && r?.requirementRule != null) {
146
146
  const l = ue({ rule: r.requirementRule, textMinLength: s, text: t });
147
- return r.requirementRule === "include-min-length" ? d({ requirementRule: r.requirementRule, textMinLength: s }) ? a(r, l) : null : a(r, l);
147
+ return r.requirementRule === "include-min-length" ? d({ requirementRule: r.requirementRule, textMinLength: s }) === !0 ? a(r, l) : null : a(r, l);
148
148
  }
149
149
  return null;
150
- }))));
150
+ })));
151
151
  }, { inputToGidsFieldStatusForPassword: ce } = ee, M = S(class extends P {
152
152
  constructor(e) {
153
153
  super(), e !== !1 && this.__registerHost(), this.gidsPasswordFieldClear = v(this, "gidsPasswordFieldClear"), this.gidsPasswordFieldRevealPassword = v(this, "gidsPasswordFieldRevealPassword"), this.isPasswordRevealed = !1, this.meterRules = [], this.requirementsMeterRequirements = [], this.requirements = [], this.#t = k(), this._handleDismiss = () => {
@@ -189,8 +189,8 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
189
189
  #t;
190
190
  #e;
191
191
  render() {
192
- const { id: e, ...t } = this.inputProps ?? {}, s = e ?? this.#t, n = this.showClearButton && this.value !== void 0 && this.value.length > 0, a = this.showRevealPasswordButton, r = { ...t }, l = r?.placeholder && r.placeholder != "" ? r.placeholder : "Enter password", u = this.isPasswordRevealed, _ = this.meterRules, c = this.textMinLength !== void 0 ? this.textMinLength : 8;
193
- return i(T, { key: "84bc020da1e496c4127ef65e4f7432b1ffb9654c" }, i("gids-field", { key: "484452f7974320a9aa937435cfb2a38027de9bc8", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(L, { key: "d89c25ed9f385009ce353bb5ceee083f25b6a685", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: s }, this.label), i("gids-input", { key: "83c256b3a95e253c9fed98c31b28350dfaa91f01", ref: (o) => this.#e = o, 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: l, type: u ? "text" : "password", id: s, maxLength: this.maxLength } }, i("slot", { key: "7c60013a0c976f72e68c7055885969d0dfcc86bc", name: "leadingIcon" }), i("slot", { key: "d04ba13ed7d1188085cee4f77f2ead6f5d63688e", name: "leadingAccessory" }), i("div", { key: "a527bcf421410accbb74effe758eee728c152ac8", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(O, { key: "9a2aa3cd9bd7cb11dc48976e7bafa1ac9c86fde8", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(F, { key: "d1b11a62438c98f74ce0c52b49ebd72727a42305", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "2ba8e5b0e4c3fef3c19d151455cdefea6c619126", class: "gids-password-field__meters-container" }, i(ie, { key: "57b83f9ac75d5fac702b7992863ea6603fc48dd1", meterRules: _, text: this.value, textMinLength: c }), i(de, { key: "018f5c35f66b3d80aade1b827b323274b27fd7bb", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
192
+ const { id: e, ...t } = this.inputProps ?? {}, s = e ?? this.#t, n = this.showClearButton && this.value !== void 0 && this.value.length > 0, a = this.showRevealPasswordButton, r = { ...t }, l = r?.placeholder !== void 0 && r.placeholder !== null && r.placeholder != "" ? r.placeholder : "Enter password", u = this.isPasswordRevealed, _ = this.meterRules, c = this.textMinLength !== void 0 ? this.textMinLength : 8;
193
+ return i(T, { key: "b83ca111267e69120811c23a02754fc2f3132131" }, i("gids-field", { key: "b10ea7b36a8f7daa4b5877e541ffa468ca06c474", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(L, { key: "04f8c7ee920968585e77dff7e67494547285b6a6", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: s }, this.label), i("gids-input", { key: "2892c5cda5ac6125e1b1c16195cbe45fed9ed0cd", ref: (o) => this.#e = o, 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: l, type: u ? "text" : "password", id: s, maxLength: this.maxLength } }, i("slot", { key: "e6690ff215ac059385463b250d4b75876af23b6b", name: "leadingIcon" }), i("slot", { key: "a22761b031bc9e5d7d115d2c82969685dc4ec150", name: "leadingAccessory" }), i("div", { key: "6e4ddee96b624e07453b06966d02fe22060bdddf", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(O, { key: "1499342b7785379b68472713b19f2846cb39315c", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(F, { key: "b309f288c0e7108f0896de407e1b8b4b6cd1f628", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "7cbcb6a793de21d9f990b26ee0ff956a73d3f20e", class: "gids-password-field__meters-container" }, i(ie, { key: "f0085914442e068821fc01304e75a0fab47d3dd5", meterRules: _, text: this.value, textMinLength: c }), i(de, { key: "832be45d45074a520896001b80a20a0fd54695b7", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
194
194
  }
195
195
  get _el() {
196
196
  return this;
@@ -1,10 +1,10 @@
1
- import { C as i, f as c, R as t, H as s } from "./p-ibikYq-w-BsGxk8ro.js";
1
+ import { C as c, f as i, R as t, H as s } from "./p-ibikYq-w-BsGxk8ro.js";
2
2
  import { i as a } from "./p-B2zUuNXz-BLBgQDu7.js";
3
3
  import { c as n } from "./clsx-OuTLNxxd.js";
4
4
  const l = (e) => n("gids-scrim", e), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
5
  __proto__: null,
6
6
  getGidsScrimClassNames: l
7
- }, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: m } = d, o = i(class extends c {
7
+ }, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: m } = d, o = c(class extends i {
8
8
  constructor(e) {
9
9
  super(), e !== !1 && this.__registerHost(), this.__attachShadow();
10
10
  }
@@ -13,13 +13,13 @@ const l = (e) => n("gids-scrim", e), d = /* @__PURE__ */ Object.freeze(/* @__PUR
13
13
  e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e);
14
14
  }
15
15
  render() {
16
- return t("div", { key: "befcd12706dbf780586972ee76bda7d7a64e8702", class: m(this.extraClasses) }, t("slot", { key: "a7bf7c4732706d7bc954d5160b6154868a785913" }));
16
+ return t("div", { key: "e00fc92fcb3ec6168367571260a8bfabc41d620a", class: m(this.extraClasses) }, t("slot", { key: "c5dbff95f6d3b14ec79fa7102ad3948fcbc94965" }));
17
17
  }
18
18
  get _el() {
19
19
  return this;
20
20
  }
21
21
  static get style() {
22
- return ".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(calc(var(24px) / 2))}";
22
+ return ".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}";
23
23
  }
24
24
  }, [257, "gids-scrim", { extraClasses: [513, "extra-classes"] }]);
25
25
  function r() {
@@ -28,8 +28,8 @@ function r() {
28
28
  }));
29
29
  }
30
30
  r();
31
- const b = o, p = r;
31
+ const b = o, h = r;
32
32
  export {
33
33
  b as GidsScrim,
34
- p as defineCustomElement
34
+ h as defineCustomElement
35
35
  };
@@ -1,5 +1,5 @@
1
- (function(T,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(T=typeof globalThis<"u"?globalThis:T||self,I(T.gidsCoreWebGidsIcon={}))})(this,(function(T){"use strict";function I(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,Je=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],l=I(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ye=(e,t)=>t in e,L=(e,t)=>(0,console.error)(e,t),V=new Map,ve="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},Qe=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ee=!1,Se=[],be=[],Xe=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&O.i?se(te):O.raf(te))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){L(o)}e.length=0},te=()=>{we(Se),we(be),(ee=Se.length>0)&&O.raf(te)},se=e=>Promise.resolve(void 0).then(e),et=Xe(be);function tt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var Ne=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!st(s,W(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&Ne(s)}};function oe(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||W(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...oe(s.childNodes,t,o)]}return r}var st=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)W(n)!==t||!o&&n["s-sr"]||s.push(n);return s},_e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",W=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(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 re,R,x=new WeakMap,Oe=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",M=(e,t,...o)=>{let s=null,n=null,r=null,l=!1,a=!1;const i=[],d=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!ie(s))&&(s=String(s)),l&&a?i[i.length-1].h+=s:i.push(l?q(null,s):s),a=l)};if(d(o),t){t.key&&(n=t.key),t.name&&(r=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((f=>c[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,i,nt);const h=q(e,null);return h.v=t,i.length>0&&(h.m=i),h.$=n,h.j=r,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ot={},nt={forEach:(e,t)=>e.map($e).forEach(t),map:(e,t)=>e.map($e).map(t).map(rt)},$e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),rt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),M(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},ke=(e,t)=>e==null||ie(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,it=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},Ee=(e,t,o,s,n,r)=>{if(o===s)return;let l=ye(e,t),a=t.toLowerCase();if(t==="class"){const i=e.classList,d=Ce(o);let h=Ce(s);i.remove(...d.filter((c=>c&&!h.includes(c)))),i.add(...h.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const i in o)s&&s[i]!=null||(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)o&&s[i]===o[i]||(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key"){if(t==="ref")s&&ct(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const i=t.slice(5);let d;{const h=P(e);if(h&&h.o&&h.o.t){const c=h.o.t[i];c&&c[1]&&(d=c[1])}}return d||(d=i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const i=t.slice(5);try{e[i]=s}catch{}return}{const i=ie(s);if((l||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?l=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!l||4&r||n)&&!i&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ye(w,a)?a.slice(2):a[2]+t.slice(3),o||s){const i=t.endsWith(je);t=t.replace(at,""),o&&O.rel(e,t,o,i),s&&O.ael(e,t,s,i)}}},lt=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(lt):[]),je="Capture",at=new RegExp(je+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const l of Pe(Object.keys(n)))l in r||Ee(s,l,n[l],void 0,o,t.i);for(const l of Pe(Object.keys(r)))Ee(s,l,n[l],r[l],o,t.i)};function Pe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,U=!1,K=!1,$=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let r,l,a,i=0;if(B||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=w.document.createTextNode(n.h);else if(1&n.i)r=n.S=w.document.createTextNode(""),le(null,n,$);else{if($||($=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=w.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&n.i?"slot-fb":n.O),$&&n.O==="foreignObject"&&($=!1),le(null,n,$),n.m){const d=n.O==="template"?r.content:r;for(i=0;i<n.m.length;++i)l=Y(e,n,i),l&&d.appendChild(l)}n.O==="svg"?$=!1:r.tagName==="foreignObject"&&($=!0)}return r["s-hn"]=R,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=re,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=c=>(function(f){const m=[],u=this["s-sn"];f?.flatten&&console.error(`
1
+ (function(T,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(T=typeof globalThis<"u"?globalThis:T||self,I(T.gidsCoreWebGidsIcon={}))})(this,(function(T){"use strict";function I(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,Je=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],l=I(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ye=(e,t)=>t in e,L=(e,t)=>(0,console.error)(e,t),V=new Map,ve="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},Qe=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ee=!1,Se=[],be=[],Xe=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&O.i?se(te):O.raf(te))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){L(o)}e.length=0},te=()=>{we(Se),we(be),(ee=Se.length>0)&&O.raf(te)},se=e=>Promise.resolve(void 0).then(e),et=Xe(be);function tt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var Ne=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!st(s,W(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&Ne(s)}};function oe(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||W(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...oe(s.childNodes,t,o)]}return r}var st=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)W(n)!==t||!o&&n["s-sr"]||s.push(n);return s},_e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",W=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(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 re,R,P=new WeakMap,Oe=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",M=(e,t,...o)=>{let s=null,n=null,r=null,l=!1,a=!1;const i=[],d=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!ie(s))&&(s=String(s)),l&&a?i[i.length-1].h+=s:i.push(l?q(null,s):s),a=l)};if(d(o),t){t.key&&(n=t.key),t.name&&(r=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((f=>c[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,i,nt);const h=q(e,null);return h.v=t,i.length>0&&(h.m=i),h.$=n,h.j=r,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ot={},nt={forEach:(e,t)=>e.map($e).forEach(t),map:(e,t)=>e.map($e).map(t).map(rt)},$e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),rt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),M(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},ke=(e,t)=>e==null||ie(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,it=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},Ee=(e,t,o,s,n,r)=>{if(o===s)return;let l=ye(e,t),a=t.toLowerCase();if(t==="class"){const i=e.classList,d=Ce(o);let h=Ce(s);i.remove(...d.filter((c=>c&&!h.includes(c)))),i.add(...h.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const i in o)s&&s[i]!=null||(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)o&&s[i]===o[i]||(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key"){if(t==="ref")s&&ct(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const i=t.slice(5);let d;{const h=x(e);if(h&&h.o&&h.o.t){const c=h.o.t[i];c&&c[1]&&(d=c[1])}}return d||(d=i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const i=t.slice(5);try{e[i]=s}catch{}return}{const i=ie(s);if((l||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?l=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!l||4&r||n)&&!i&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ye(w,a)?a.slice(2):a[2]+t.slice(3),o||s){const i=t.endsWith(je);t=t.replace(at,""),o&&O.rel(e,t,o,i),s&&O.ael(e,t,s,i)}}},lt=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(lt):[]),je="Capture",at=new RegExp(je+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const l of xe(Object.keys(n)))l in r||Ee(s,l,n[l],void 0,o,t.i);for(const l of xe(Object.keys(r)))Ee(s,l,n[l],r[l],o,t.i)};function xe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,U=!1,K=!1,$=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let r,l,a,i=0;if(B||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=w.document.createTextNode(n.h);else if(1&n.i)r=n.S=w.document.createTextNode(""),le(null,n,$);else{if($||($=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=w.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&n.i?"slot-fb":n.O),$&&n.O==="foreignObject"&&($=!1),le(null,n,$),n.m){const d=n.O==="template"?r.content:r;for(i=0;i<n.m.length;++i)l=Y(e,n,i),l&&d.appendChild(l)}n.O==="svg"?$=!1:r.tagName==="foreignObject"&&($=!0)}return r["s-hn"]=R,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=re,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=c=>(function(f){const m=[],u=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 b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const y=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&xe(e.S)),r},xe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",xe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,y=0,g=0,p=0,_=h.length-1,v=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&y<=k;)if(v==null)v=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++y];else if(C==null)C=f[--k];else if(J(v,A,m))D(v,A,m),v=h[++S],A=f[++y];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(v,C,m))v.O!=="slot"&&C.O!=="slot"||Z(v.S.parentNode,!1),D(v,C,m),E(Ze,v.S,N.S.nextSibling),v=h[++S],C=f[--k];else if(J(N,A,m))v.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,v.S),N=h[--_],A=f[++y];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[y],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++y]):(u=Y(h&&h[y],c,y),A=f[++y]),u&&E(z(v.S).parentNode,u,z(v.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,y,k):y>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(E(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),y=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=x.get(c=c.head||c);if(p||x.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(m=O.L)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const v=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=x.get(c);if(g||x.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=P(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},vt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,P(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=P(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=P(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const y=f?.i;if(f&&y&&!(8&y)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[v,N]]=Object.entries(_);g[v]!=null&&(128&y||1&N)&&g[v].call(g,d,i,a)}))}return}const m=r.find((([y])=>y===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!P(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=P(r);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,y,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||P(r),x.has(r)&&x.delete(r),r.shadowRoot&&x.has(r.shadowRoot)&&x.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),vt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"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"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("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"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:Pt}=_t,xt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:Pt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(xt,{key:"d1215bf1b178ca6fb73458ecb8370b315239fa5b",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%)}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const y=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Pe(e.S)),r},Pe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Pe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,y=0,g=0,p=0,_=h.length-1,v=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&y<=k;)if(v==null)v=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++y];else if(C==null)C=f[--k];else if(J(v,A,m))D(v,A,m),v=h[++S],A=f[++y];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(v,C,m))v.O!=="slot"&&C.O!=="slot"||Z(v.S.parentNode,!1),D(v,C,m),E(Ze,v.S,N.S.nextSibling),v=h[++S],C=f[--k];else if(J(N,A,m))v.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,v.S),N=h[--_],A=f[++y];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[y],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++y]):(u=Y(h&&h[y],c,y),A=f[++y]),u&&E(z(v.S).parentNode,u,z(v.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,y,k):y>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(E(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),y=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(m=O.L)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const v=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=x(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},vt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,x(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=x(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=x(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const y=f?.i;if(f&&y&&!(8&y)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[v,N]]=Object.entries(_);g[v]!=null&&(128&y||1&N)&&g[v].call(g,d,i,a)}))}return}const m=r.find((([y])=>y===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=x(r);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,y,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||x(r),P.has(r)&&P.delete(r),r.shadowRoot&&P.has(r.shadowRoot)&&P.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),vt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"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"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("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"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:xt}=_t,Pt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Pt,{key:"d1215bf1b178ca6fb73458ecb8370b315239fa5b",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));